@umbraco-cms/backoffice 14.0.0-9cc9c792 → 14.0.0-a0074b6e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/dist-cms/apps/backoffice/backoffice.element.d.ts +6 -0
  2. package/dist-cms/apps/backoffice/backoffice.element.js +14 -3
  3. package/dist-cms/apps/backoffice/{extension-initializer.controller.d.ts → server-extension-registrator.controller.d.ts} +1 -4
  4. package/dist-cms/apps/backoffice/{extension-initializer.controller.js → server-extension-registrator.controller.js} +4 -22
  5. package/dist-cms/custom-elements.json +917 -920
  6. package/dist-cms/external/uui/index.js +291 -250
  7. package/dist-cms/libs/extension-api/bundle-extension-initializer.d.ts +2 -2
  8. package/dist-cms/libs/extension-api/bundle-extension-initializer.js +4 -2
  9. package/dist-cms/libs/extension-api/entry-point-extension-initializer.d.ts +2 -1
  10. package/dist-cms/libs/extension-api/entry-point-extension-initializer.js +4 -2
  11. package/dist-cms/mocks/data/stylesheet.data.d.ts +27 -5
  12. package/dist-cms/mocks/data/stylesheet.data.js +197 -10
  13. package/dist-cms/mocks/data/utils.d.ts +2 -1
  14. package/dist-cms/mocks/data/utils.js +5 -0
  15. package/dist-cms/mocks/handlers/manifests.handlers.js +12 -0
  16. package/dist-cms/mocks/handlers/stylesheet.handlers.js +97 -1
  17. package/dist-cms/packages/core/collection/collection-selection-actions.element.js +3 -3
  18. package/dist-cms/packages/core/components/index.d.ts +0 -1
  19. package/dist-cms/packages/core/components/index.js +0 -1
  20. package/dist-cms/packages/core/components/input-tiny-mce/input-tiny-mce.element.d.ts +2 -2
  21. package/dist-cms/packages/core/components/input-tiny-mce/tiny-mce-plugin.d.ts +3 -2
  22. package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.d.ts +5 -24
  23. package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.js +12 -66
  24. package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.d.ts +0 -16
  25. package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.js +4 -44
  26. package/dist-cms/packages/core/components/variant-selector/variant-selector.element.d.ts +2 -3
  27. package/dist-cms/packages/core/components/variant-selector/variant-selector.element.js +25 -27
  28. package/dist-cms/packages/core/content-type/content-type-structure-manager.class.d.ts +4 -0
  29. package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +45 -0
  30. package/dist-cms/packages/core/extension-registry/interfaces/property-editor-ui-extension-element.interface.d.ts +2 -2
  31. package/dist-cms/packages/core/extension-registry/models/property-editor.model.d.ts +2 -2
  32. package/dist-cms/packages/core/property-editor/config/index.d.ts +2 -0
  33. package/dist-cms/packages/core/property-editor/config/index.js +2 -0
  34. package/dist-cms/packages/core/{components/data-type/data-type-property-collection.class.d.ts → property-editor/config/property-editor-config-collection.class.d.ts} +4 -4
  35. package/dist-cms/packages/core/{components/data-type/data-type-property-collection.class.js → property-editor/config/property-editor-config-collection.class.js} +1 -1
  36. package/dist-cms/packages/core/property-editor/config/property-editor-config.type.d.ts +3 -0
  37. package/dist-cms/packages/core/property-editor/index.d.ts +1 -1
  38. package/dist-cms/packages/core/property-editor/index.js +1 -1
  39. package/dist-cms/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.d.ts +2 -3
  40. package/dist-cms/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.d.ts +3 -3
  41. package/dist-cms/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.d.ts +2 -2
  42. package/dist-cms/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.d.ts +2 -2
  43. package/dist-cms/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.d.ts +2 -2
  44. package/dist-cms/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.d.ts +2 -2
  45. package/dist-cms/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.d.ts +2 -2
  46. package/dist-cms/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.d.ts +2 -2
  47. package/dist-cms/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.d.ts +2 -2
  48. package/dist-cms/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.d.ts +2 -2
  49. package/dist-cms/packages/core/property-editor/uis/label/property-editor-ui-label.element.d.ts +2 -2
  50. package/dist-cms/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.d.ts +2 -2
  51. package/dist-cms/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.d.ts +2 -2
  52. package/dist-cms/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.d.ts +2 -2
  53. package/dist-cms/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.d.ts +2 -2
  54. package/dist-cms/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.d.ts +2 -2
  55. package/dist-cms/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.d.ts +2 -2
  56. package/dist-cms/packages/core/property-editor/uis/number/property-editor-ui-number.element.d.ts +2 -2
  57. package/dist-cms/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.d.ts +2 -2
  58. package/dist-cms/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.d.ts +2 -2
  59. package/dist-cms/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.d.ts +2 -2
  60. package/dist-cms/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.d.ts +2 -2
  61. package/dist-cms/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.d.ts +2 -2
  62. package/dist-cms/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.d.ts +2 -2
  63. package/dist-cms/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.d.ts +2 -2
  64. package/dist-cms/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts +2 -2
  65. package/dist-cms/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.d.ts +2 -2
  66. package/dist-cms/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.d.ts +2 -2
  67. package/dist-cms/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.d.ts +2 -2
  68. package/dist-cms/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.d.ts +2 -2
  69. package/dist-cms/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.d.ts +2 -2
  70. package/dist-cms/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.d.ts +2 -2
  71. package/dist-cms/packages/core/repositories/index.d.ts +1 -0
  72. package/dist-cms/packages/core/repositories/index.js +1 -0
  73. package/dist-cms/packages/core/repositories/repository.interface.d.ts +10 -0
  74. package/dist-cms/packages/core/variant/variant-id.class.d.ts +5 -0
  75. package/dist-cms/packages/core/variant/variant-id.class.js +16 -2
  76. package/dist-cms/packages/core/workspace/index.d.ts +3 -2
  77. package/dist-cms/packages/core/workspace/index.js +3 -2
  78. package/dist-cms/packages/core/workspace/types/workspace-property-data.type.d.ts +2 -2
  79. package/dist-cms/packages/core/workspace/variant-context/index.d.ts +5 -0
  80. package/dist-cms/packages/core/workspace/variant-context/index.js +5 -0
  81. package/dist-cms/packages/core/workspace/variant-context/invariant-workspace-variant-context.d.ts +28 -0
  82. package/dist-cms/packages/core/workspace/variant-context/invariant-workspace-variant-context.js +48 -0
  83. package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.interface.d.ts +7 -0
  84. package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.token.d.ts +5 -0
  85. package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.token.js +3 -0
  86. package/dist-cms/packages/core/workspace/variant-context/variant-context.interface.d.ts +26 -0
  87. package/dist-cms/packages/core/workspace/variant-context/variant-context.token.d.ts +3 -0
  88. package/dist-cms/packages/core/workspace/variant-context/variant-context.token.js +2 -0
  89. package/dist-cms/packages/core/workspace/workspace-context/index.d.ts +7 -4
  90. package/dist-cms/packages/core/workspace/workspace-context/index.js +7 -4
  91. package/dist-cms/packages/core/workspace/workspace-context/property-structure-workspace-context.interface.d.ts +6 -0
  92. package/dist-cms/packages/core/workspace/workspace-context/publishable-workspace-context.interface.d.ts +4 -0
  93. package/dist-cms/packages/core/workspace/workspace-context/publishable-workspace-context.interface.js +1 -0
  94. package/dist-cms/packages/core/workspace/workspace-context/saveable-workspace-context.interface.d.ts +4 -0
  95. package/dist-cms/packages/core/workspace/workspace-context/saveable-workspace-context.interface.js +1 -0
  96. package/dist-cms/packages/core/workspace/workspace-context/variant-workspace-context.token.d.ts +5 -0
  97. package/dist-cms/packages/core/workspace/workspace-context/variant-workspace-context.token.js +2 -0
  98. package/dist-cms/packages/core/workspace/workspace-context/workspace-context.d.ts +2 -2
  99. package/dist-cms/packages/core/workspace/workspace-context/workspace-context.interface.d.ts +5 -7
  100. package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.d.ts +13 -0
  101. package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.js +1 -0
  102. package/dist-cms/packages/core/workspace/workspace-context/workspace-variantable-context.interface.d.ts +18 -0
  103. package/dist-cms/packages/core/workspace/workspace-context/workspace-variantable-context.interface.js +1 -0
  104. package/dist-cms/packages/core/workspace/workspace-editor/workspace-editor.element.js +1 -1
  105. package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.d.ts +8 -8
  106. package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.js +49 -35
  107. package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.d.ts +2 -19
  108. package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.js +3 -30
  109. package/dist-cms/packages/core/workspace/workspace-split-view/index.d.ts +2 -0
  110. package/dist-cms/packages/core/workspace/workspace-split-view/index.js +2 -0
  111. package/dist-cms/packages/core/workspace/workspace-split-view/workspace-split-view.context.d.ts +16 -0
  112. package/dist-cms/packages/core/workspace/workspace-split-view/workspace-split-view.context.js +66 -0
  113. package/dist-cms/packages/core/workspace/{workspace-variant/workspace-variant.element.d.ts → workspace-split-view/workspace-split-view.element.d.ts} +5 -6
  114. package/dist-cms/packages/core/workspace/{workspace-variant/workspace-variant.element.js → workspace-split-view/workspace-split-view.element.js} +12 -18
  115. package/dist-cms/packages/dictionary/dictionary/workspace/dictionary-workspace.context.d.ts +3 -3
  116. package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.context.d.ts +3 -3
  117. package/dist-cms/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.d.ts +2 -2
  118. package/dist-cms/packages/documents/documents/variant-context/document-variant-context.d.ts +35 -0
  119. package/dist-cms/packages/documents/documents/variant-context/document-variant-context.js +89 -0
  120. package/dist-cms/packages/documents/documents/variant-context/document-variant-context.token.d.ts +5 -0
  121. package/dist-cms/packages/documents/documents/variant-context/document-variant-context.token.js +3 -0
  122. package/dist-cms/packages/documents/documents/workspace/document-workspace-editor.element.js +1 -0
  123. package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.d.ts +0 -1
  124. package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.js +3 -5
  125. package/dist-cms/packages/documents/documents/workspace/document-workspace.context.d.ts +20 -11
  126. package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +57 -39
  127. package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.js +1 -1
  128. package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit.element.js +1 -1
  129. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-chart.element.d.ts +1 -1
  130. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-chart.element.js +3 -3
  131. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-slice.element.d.ts +1 -1
  132. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-slice.element.js +1 -1
  133. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-date-range-selector.element.d.ts +1 -1
  134. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-date-range-selector.element.js +4 -4
  135. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-too-many-logs-warning.element.d.ts +1 -1
  136. package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-too-many-logs-warning.element.js +1 -1
  137. package/dist-cms/packages/log-viewer/manifests.d.ts +1 -0
  138. package/dist-cms/packages/log-viewer/menu-item/manifests.d.ts +2 -0
  139. package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/log-viewer.repository.d.ts +8 -8
  140. package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/log-viewer.repository.js +2 -2
  141. package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/sources/index.d.ts +2 -2
  142. package/dist-cms/packages/log-viewer/repository/sources/index.js +1 -0
  143. package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/sources/log-viewer.server.data.d.ts +11 -11
  144. package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/sources/log-viewer.server.data.js +2 -2
  145. package/dist-cms/packages/log-viewer/umbraco-package.d.ts +7 -0
  146. package/dist-cms/packages/log-viewer/umbraco-package.js +9 -0
  147. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/logviewer-workspace.element.d.ts +2 -2
  148. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/logviewer-workspace.element.js +3 -3
  149. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/manifests.d.ts +1 -1
  150. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer.context.d.ts +8 -8
  151. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer.context.js +6 -6
  152. package/dist-cms/packages/log-viewer/workspace/manifests.d.ts +1 -0
  153. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-level-overview.element.d.ts +1 -1
  154. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-level-overview.element.js +2 -2
  155. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-types-chart.element.d.ts +1 -1
  156. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-types-chart.element.js +2 -2
  157. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-message-templates-overview.element.d.ts +1 -1
  158. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-message-templates-overview.element.js +3 -3
  159. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-saved-searches-overview.element.d.ts +1 -1
  160. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-saved-searches-overview.element.js +3 -3
  161. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/log-overview-view.element.d.ts +1 -1
  162. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/log-overview-view.element.js +2 -2
  163. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-level-tag.element.d.ts +3 -3
  164. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-level-tag.element.js +1 -1
  165. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-log-level-filter-menu.element.d.ts +1 -1
  166. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-log-level-filter-menu.element.js +5 -5
  167. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-message.element.d.ts +3 -3
  168. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-message.element.js +4 -4
  169. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-messages-list.element.d.ts +1 -1
  170. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-messages-list.element.js +3 -3
  171. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-polling-button.element.d.ts +1 -1
  172. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-polling-button.element.js +2 -2
  173. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input-modal.element.d.ts +2 -2
  174. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input-modal.element.js +2 -2
  175. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input.element.d.ts +2 -2
  176. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input.element.js +5 -5
  177. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/log-search-view.element.d.ts +1 -1
  178. package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/log-search-view.element.js +3 -3
  179. package/dist-cms/packages/media/media/workspace/media-workspace.context.d.ts +3 -3
  180. package/dist-cms/packages/media/media-types/workspace/media-type-workspace.context.d.ts +3 -3
  181. package/dist-cms/packages/members/member-groups/workspace/member-group-workspace.context.d.ts +3 -3
  182. package/dist-cms/packages/members/member-types/workspace/member-type-workspace.context.d.ts +3 -3
  183. package/dist-cms/packages/members/members/workspace/member-workspace.context.d.ts +3 -3
  184. package/dist-cms/packages/search/manifests.js +5 -5
  185. package/dist-cms/packages/settings/data-types/index.d.ts +1 -0
  186. package/dist-cms/packages/settings/data-types/index.js +1 -0
  187. package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.d.ts +7 -0
  188. package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.js +8 -0
  189. package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.token.d.ts +5 -0
  190. package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.token.js +3 -0
  191. package/dist-cms/packages/settings/data-types/variant-context/index.d.ts +2 -0
  192. package/dist-cms/packages/settings/data-types/variant-context/index.js +2 -0
  193. package/dist-cms/packages/settings/data-types/workspace/data-type-workspace-editor.element.js +1 -0
  194. package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.d.ts +29 -9
  195. package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.js +85 -4
  196. package/dist-cms/packages/settings/data-types/workspace/views/details/data-type-details-workspace-view.element.js +3 -3
  197. package/dist-cms/packages/settings/extensions/workspace/extension-root-workspace.element.js +1 -2
  198. package/dist-cms/packages/settings/languages/app-language-select/app-language-select.element.js +7 -6
  199. package/dist-cms/packages/settings/languages/workspace/language/language-workspace.context.d.ts +3 -3
  200. package/dist-cms/packages/settings/manifests.js +0 -2
  201. package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.context.d.ts +3 -3
  202. package/dist-cms/packages/tags/property-editors/tags/property-editor-ui-tags.element.d.ts +2 -2
  203. package/dist-cms/packages/templating/partial-views/workspace/manifests.js +1 -2
  204. package/dist-cms/packages/templating/partial-views/workspace/partial-view-workspace.context.d.ts +3 -3
  205. package/dist-cms/packages/templating/partial-views/workspace/partial-view-workspace.context.js +0 -1
  206. package/dist-cms/packages/templating/stylesheets/config.d.ts +10 -0
  207. package/dist-cms/packages/templating/stylesheets/config.js +10 -0
  208. package/dist-cms/packages/templating/stylesheets/entity-actions/create/create-rtf.action.d.ts +8 -0
  209. package/dist-cms/packages/templating/stylesheets/entity-actions/create/create-rtf.action.js +9 -0
  210. package/dist-cms/packages/templating/stylesheets/entity-actions/create/create.action.d.ts +8 -0
  211. package/dist-cms/packages/templating/stylesheets/entity-actions/create/create.action.js +9 -0
  212. package/dist-cms/packages/templating/stylesheets/entity-actions/manifests.d.ts +2 -0
  213. package/dist-cms/packages/templating/stylesheets/entity-actions/manifests.js +73 -0
  214. package/dist-cms/packages/templating/stylesheets/index.d.ts +2 -5
  215. package/dist-cms/packages/templating/stylesheets/index.js +0 -1
  216. package/dist-cms/packages/templating/stylesheets/manifests.d.ts +1 -1
  217. package/dist-cms/packages/templating/stylesheets/manifests.js +8 -1
  218. package/dist-cms/packages/templating/stylesheets/repository/manifests.d.ts +0 -3
  219. package/dist-cms/packages/templating/stylesheets/repository/manifests.js +1 -3
  220. package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.folder.server.data.d.ts +17 -0
  221. package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.folder.server.data.js +23 -0
  222. package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.server.data.d.ts +50 -6
  223. package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.server.data.js +58 -5
  224. package/dist-cms/packages/templating/stylesheets/repository/stylesheet.repository.d.ts +53 -12
  225. package/dist-cms/packages/templating/stylesheets/repository/stylesheet.repository.js +93 -10
  226. package/dist-cms/packages/templating/stylesheets/tree/manifests.js +1 -2
  227. package/dist-cms/packages/templating/stylesheets/workspace/manifests.d.ts +3 -2
  228. package/dist-cms/packages/templating/stylesheets/workspace/manifests.js +68 -3
  229. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-editor.element.d.ts +17 -0
  230. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-editor.element.js +107 -0
  231. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.context.d.ts +23 -5
  232. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.context.js +115 -6
  233. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.element.js +14 -4
  234. package/dist-cms/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.d.ts +16 -0
  235. package/dist-cms/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.js +95 -0
  236. package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-rule.element.d.ts +16 -0
  237. package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-rule.element.js +82 -0
  238. package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-style-sidebar.element.d.ts +19 -0
  239. package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-style-sidebar.element.js +159 -0
  240. package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor.element.d.ts +22 -0
  241. package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor.element.js +125 -0
  242. package/dist-cms/packages/templating/templates/workspace/template-workspace.context.d.ts +3 -3
  243. package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.d.ts +3 -3
  244. package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.js +1 -1
  245. package/dist-cms/packages/users/users/modals/create/user-create-modal.element.js +1 -1
  246. package/dist-cms/packages/users/users/workspace/user-workspace.context.d.ts +3 -3
  247. package/dist-cms/shared/style/text-style.style.d.ts +1 -1
  248. package/dist-cms/shared/style/text-style.style.js +2 -2
  249. package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
  250. package/dist-cms/vscode-html-custom-data.json +208 -223
  251. package/package.json +4 -4
  252. package/dist-cms/packages/core/components/data-type/index.d.ts +0 -1
  253. package/dist-cms/packages/core/components/data-type/index.js +0 -1
  254. package/dist-cms/packages/core/property-editor/types/data-type-config.type.d.ts +0 -3
  255. package/dist-cms/packages/core/property-editor/types/index.d.ts +0 -1
  256. package/dist-cms/packages/core/property-editor/types/index.js +0 -1
  257. package/dist-cms/packages/core/workspace/workspace-context/workspace-entity-context.interface.d.ts +0 -5
  258. package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-entity-context.interface.d.ts +0 -11
  259. package/dist-cms/packages/core/workspace/workspace-context/workspace-variable-entity-context.interface.d.ts +0 -16
  260. package/dist-cms/packages/core/workspace/workspace-variant/index.d.ts +0 -3
  261. package/dist-cms/packages/core/workspace/workspace-variant/index.js +0 -3
  262. package/dist-cms/packages/core/workspace/workspace-variant/variantable-property/variantable-property.element.d.ts +0 -20
  263. package/dist-cms/packages/core/workspace/workspace-variant/variantable-property/variantable-property.element.js +0 -71
  264. package/dist-cms/packages/core/workspace/workspace-variant/workspace-variant.context.d.ts +0 -26
  265. package/dist-cms/packages/core/workspace/workspace-variant/workspace-variant.context.js +0 -89
  266. package/dist-cms/packages/settings/logviewer/manifests.d.ts +0 -1
  267. package/dist-cms/packages/settings/logviewer/menu-item/manifests.d.ts +0 -2
  268. package/dist-cms/packages/settings/logviewer/workspace/manifests.d.ts +0 -1
  269. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-edit.element.d.ts +0 -11
  270. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-edit.element.js +0 -27
  271. /package/dist-cms/packages/core/property-editor/{types/data-type-config.type.js → config/property-editor-config.type.js} +0 -0
  272. /package/dist-cms/packages/core/{workspace/workspace-context/workspace-entity-context.interface.js → repositories/repository.interface.js} +0 -0
  273. /package/dist-cms/packages/core/workspace/{workspace-context/workspace-invariantable-entity-context.interface.js → variant-context/nameable-variant-context.interface.js} +0 -0
  274. /package/dist-cms/packages/core/workspace/{workspace-context/workspace-variable-entity-context.interface.js → variant-context/variant-context.interface.js} +0 -0
  275. /package/dist-cms/packages/{settings/logviewer/repository/sources/index.js → core/workspace/workspace-context/property-structure-workspace-context.interface.js} +0 -0
  276. /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/index.d.ts +0 -0
  277. /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/index.js +0 -0
  278. /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/index.d.ts +0 -0
  279. /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/index.js +0 -0
  280. /package/dist-cms/packages/{settings/logviewer → log-viewer}/index.d.ts +0 -0
  281. /package/dist-cms/packages/{settings/logviewer → log-viewer}/index.js +0 -0
  282. /package/dist-cms/packages/{settings/logviewer → log-viewer}/manifests.js +0 -0
  283. /package/dist-cms/packages/{settings/logviewer → log-viewer}/menu-item/manifests.js +0 -0
  284. /package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/index.d.ts +0 -0
  285. /package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/index.js +0 -0
  286. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/manifests.js +0 -0
  287. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/manifests.js +0 -0
  288. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/index.d.ts +0 -0
  289. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/index.js +0 -0
  290. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/index.d.ts +0 -0
  291. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/index.js +0 -0
  292. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/index.d.ts +0 -0
  293. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/index.js +0 -0
  294. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/index.d.ts +0 -0
  295. /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/index.js +0 -0
@@ -2,21 +2,21 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const Gr=window,qi=Gr.ShadowRoot&&(Gr.ShadyCSS===void 0||Gr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wi=Symbol(),es=new WeakMap;let ts=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(qi&&e===void 0){const o=r!==void 0&&r.length===1;o&&(e=es.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&es.set(r,e))}return e}toString(){return this.cssText}};const Ve=t=>new ts(typeof t=="string"?t:t+"",void 0,Wi),d=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((o,i,s)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new ts(r,t,Wi)},Nl=(t,e)=>{qi?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const o=document.createElement("style"),i=Gr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)})},rs=qi?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return Ve(r)})(t):t;/**
5
+ */const qr=window,Wi=qr.ShadowRoot&&(qr.ShadyCSS===void 0||qr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ki=Symbol(),ns=new WeakMap;let as=class{constructor(e,r,o){if(this._$cssResult$=!0,o!==Ki)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Wi&&e===void 0){const o=r!==void 0&&r.length===1;o&&(e=ns.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ns.set(r,e))}return e}toString(){return this.cssText}};const Ve=t=>new as(typeof t=="string"?t:t+"",void 0,Ki),d=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((o,i,s)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1],t[0]);return new as(r,t,Ki)},eu=(t,e)=>{Wi?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const o=document.createElement("style"),i=qr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)})},ls=Wi?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const o of e.cssRules)r+=o.cssText;return Ve(r)})(t):t;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var Ki;const qr=window,is=qr.trustedTypes,Hl=is?is.emptyScript:"",os=qr.reactiveElementPolyfillSupport,Xi={toAttribute(t,e){switch(e){case Boolean:t=t?Hl:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},ss=(t,e)=>e!==t&&(e==e||t==t),Yi={attribute:!0,type:String,converter:Xi,reflect:!1,hasChanged:ss};let $t=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,o)=>{const i=this._$Ep(o,r);i!==void 0&&(this._$Ev.set(i,o),e.push(i))}),e}static createProperty(e,r=Yi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,o,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){return{get(){return this[r]},set(i){const s=this[e];this[r]=i,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Yi}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of o)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const i of o)r.unshift(rs(i))}else e!==void 0&&r.push(rs(e));return r}static _$Ep(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,o;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Nl(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EO(e,r,o=Yi){var i;const s=this.constructor._$Ep(e,o);if(s!==void 0&&o.reflect===!0){const n=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:Xi).toAttribute(r,o.type);this._$El=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,r){var o;const i=this.constructor,s=i._$Ev.get(e);if(s!==void 0&&this._$El!==s){const n=i.getPropertyOptions(s),u=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Xi;this._$El=s,this[s]=u.fromAttribute(r,n.type),this._$El=null}}requestUpdate(e,r,o){let i=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||ss)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,s)=>this[s]=i),this._$Ei=void 0);let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(o)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(o)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$EO(o,this[o],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};$t.finalized=!0,$t.elementProperties=new Map,$t.elementStyles=[],$t.shadowRootOptions={mode:"open"},os?.({ReactiveElement:$t}),((Ki=qr.reactiveElementVersions)!==null&&Ki!==void 0?Ki:qr.reactiveElementVersions=[]).push("1.6.1");/**
9
+ */var Xi;const Wr=window,us=Wr.trustedTypes,tu=us?us.emptyScript:"",cs=Wr.reactiveElementPolyfillSupport,Yi={toAttribute(t,e){switch(e){case Boolean:t=t?tu:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},hs=(t,e)=>e!==t&&(e==e||t==t),Zi={attribute:!0,type:String,converter:Yi,reflect:!1,hasChanged:hs};let $t=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,o)=>{const i=this._$Ep(o,r);i!==void 0&&(this._$Ev.set(i,o),e.push(i))}),e}static createProperty(e,r=Zi){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const o=typeof e=="symbol"?Symbol():"__"+e,i=this.getPropertyDescriptor(e,o,r);i!==void 0&&Object.defineProperty(this.prototype,e,i)}}static getPropertyDescriptor(e,r,o){return{get(){return this[r]},set(i){const s=this[e];this[r]=i,this.requestUpdate(e,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Zi}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,o=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const i of o)this.createProperty(i,r[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const o=new Set(e.flat(1/0).reverse());for(const i of o)r.unshift(ls(i))}else e!==void 0&&r.push(ls(e));return r}static _$Ep(e,r){const o=r.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,o;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((o=e.hostConnected)===null||o===void 0||o.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return eu(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostConnected)===null||o===void 0?void 0:o.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var o;return(o=r.hostDisconnected)===null||o===void 0?void 0:o.call(r)})}attributeChangedCallback(e,r,o){this._$AK(e,o)}_$EO(e,r,o=Zi){var i;const s=this.constructor._$Ep(e,o);if(s!==void 0&&o.reflect===!0){const n=(((i=o.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?o.converter:Yi).toAttribute(r,o.type);this._$El=e,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(e,r){var o;const i=this.constructor,s=i._$Ev.get(e);if(s!==void 0&&this._$El!==s){const n=i.getPropertyOptions(s),u=typeof n.converter=="function"?{fromAttribute:n.converter}:((o=n.converter)===null||o===void 0?void 0:o.fromAttribute)!==void 0?n.converter:Yi;this._$El=s,this[s]=u.fromAttribute(r,n.type),this._$El=null}}requestUpdate(e,r,o){let i=!0;e!==void 0&&(((o=o||this.constructor.getPropertyOptions(e)).hasChanged||hs)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),o.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,o))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((i,s)=>this[s]=i),this._$Ei=void 0);let r=!1;const o=this._$AL;try{r=this.shouldUpdate(o),r?(this.willUpdate(o),(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdate)===null||s===void 0?void 0:s.call(i)}),this.update(o)):this._$Ek()}catch(i){throw r=!1,this._$Ek(),i}r&&this._$AE(o)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(o=>{var i;return(i=o.hostUpdated)===null||i===void 0?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,o)=>this._$EO(o,this[o],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};$t.finalized=!0,$t.elementProperties=new Map,$t.elementStyles=[],$t.shadowRootOptions={mode:"open"},cs?.({ReactiveElement:$t}),((Xi=Wr.reactiveElementVersions)!==null&&Xi!==void 0?Xi:Wr.reactiveElementVersions=[]).push("1.6.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Zi;const Wr=window,Et=Wr.trustedTypes,ns=Et?Et.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kr="$lit$",Ee=`lit$${(Math.random()+"").slice(9)}$`,Qi="?"+Ee,Tl=`<${Qi}>`,Je=document,nr=()=>Je.createComment(""),ar=t=>t===null||typeof t!="object"&&typeof t!="function",as=Array.isArray,ls=t=>as(t)||typeof t?.[Symbol.iterator]=="function",Ji=`[
14
- \f\r]`,lr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,us=/-->/g,cs=/>/g,et=RegExp(`>|${Ji}(?:([^\\s"'>=/]+)(${Ji}*=${Ji}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),hs=/'/g,ds=/"/g,ps=/^(?:script|style|textarea|title)$/i,vs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),l=vs(1),g=vs(2),F=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),fs=new WeakMap,tt=Je.createTreeWalker(Je,129,null,!1);function bs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ns!==void 0?ns.createHTML(e):e}const gs=(t,e)=>{const r=t.length-1,o=[];let i,s=e===2?"<svg>":"",n=lr;for(let u=0;u<r;u++){const c=t[u];let h,m,y=-1,b=0;for(;b<c.length&&(n.lastIndex=b,m=n.exec(c),m!==null);)b=n.lastIndex,n===lr?m[1]==="!--"?n=us:m[1]!==void 0?n=cs:m[2]!==void 0?(ps.test(m[2])&&(i=RegExp("</"+m[2],"g")),n=et):m[3]!==void 0&&(n=et):n===et?m[0]===">"?(n=i??lr,y=-1):m[1]===void 0?y=-2:(y=n.lastIndex-m[2].length,h=m[1],n=m[3]===void 0?et:m[3]==='"'?ds:hs):n===ds||n===hs?n=et:n===us||n===cs?n=lr:(n=et,i=void 0);const w=n===et&&t[u+1].startsWith("/>")?" ":"";s+=n===lr?c+Tl:y>=0?(o.push(h),c.slice(0,y)+Kr+c.slice(y)+Ee+w):c+Ee+(y===-2?(o.push(void 0),u):w)}return[bs(t,s+(t[r]||"<?>")+(e===2?"</svg>":"")),o]};let eo=class Dl{constructor({strings:e,_$litType$:r},o){let i;this.parts=[];let s=0,n=0;const u=e.length-1,c=this.parts,[h,m]=gs(e,r);if(this.el=Dl.createElement(h,o),tt.currentNode=this.el.content,r===2){const y=this.el.content,b=y.firstChild;b.remove(),y.append(...b.childNodes)}for(;(i=tt.nextNode())!==null&&c.length<u;){if(i.nodeType===1){if(i.hasAttributes()){const y=[];for(const b of i.getAttributeNames())if(b.endsWith(Kr)||b.startsWith(Ee)){const w=m[n++];if(y.push(b),w!==void 0){const $=i.getAttribute(w.toLowerCase()+Kr).split(Ee),E=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:E[2],strings:$,ctor:E[1]==="."?_s:E[1]==="?"?ys:E[1]==="@"?ws:ur})}else c.push({type:6,index:s})}for(const b of y)i.removeAttribute(b)}if(ps.test(i.tagName)){const y=i.textContent.split(Ee),b=y.length-1;if(b>0){i.textContent=Et?Et.emptyScript:"";for(let w=0;w<b;w++)i.append(y[w],nr()),tt.nextNode(),c.push({type:2,index:++s});i.append(y[b],nr())}}}else if(i.nodeType===8)if(i.data===Qi)c.push({type:2,index:s});else{let y=-1;for(;(y=i.data.indexOf(Ee,y+1))!==-1;)c.push({type:7,index:s}),y+=Ee.length-1}s++}}static createElement(e,r){const o=Je.createElement("template");return o.innerHTML=e,o}};function rt(t,e,r=t,o){var i,s,n,u;if(e===F)return e;let c=o!==void 0?(i=r._$Co)===null||i===void 0?void 0:i[o]:r._$Cl;const h=ar(e)?void 0:e._$litDirective$;return c?.constructor!==h&&((s=c?._$AO)===null||s===void 0||s.call(c,!1),h===void 0?c=void 0:(c=new h(t),c._$AT(t,r,o)),o!==void 0?((n=(u=r)._$Co)!==null&&n!==void 0?n:u._$Co=[])[o]=c:r._$Cl=c),c!==void 0&&(e=rt(t,c._$AS(t,e.values),c,o)),e}let ms=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var r;const{el:{content:o},parts:i}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Je).importNode(o,!0);tt.currentNode=s;let n=tt.nextNode(),u=0,c=0,h=i[0];for(;h!==void 0;){if(u===h.index){let m;h.type===2?m=new or(n,n.nextSibling,this,e):h.type===1?m=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(m=new xs(n,this,e)),this._$AV.push(m),h=i[++c]}u!==h?.index&&(n=tt.nextNode(),u++)}return tt.currentNode=Je,s}v(e){let r=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}};class or{constructor(e,r,o,i){var s;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=i,this._$Cp=(s=i?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=rt(this,e,r),ar(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==F&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ls(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==x&&ar(this._$AH)?this._$AA.nextSibling.data=e:this.$(Je.createTextNode(e)),this._$AH=e}g(e){var r;const{values:o,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=eo.createElement(bs(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.v(o);else{const n=new ms(s,this),u=n.u(this.options);n.v(o),this.$(u),this._$AH=n}}_$AC(e){let r=fs.get(e.strings);return r===void 0&&fs.set(e.strings,r=new eo(e)),r}T(e){as(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let o,i=0;for(const s of e)i===r.length?r.push(o=new or(this.k(nr()),this.k(nr()),this,this.options)):o=r[i],o._$AI(s),i++;i<r.length&&(this._$AR(o&&o._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cp=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}}let ur=class{constructor(e,r,o,i,s){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,o,i){const s=this.strings;let n=!1;if(s===void 0)e=rt(this,e,r,0),n=!ar(e)||e!==this._$AH&&e!==F,n&&(this._$AH=e);else{const u=e;let c,h;for(e=s[0],c=0;c<s.length-1;c++)h=rt(this,u[o+c],r,c),h===F&&(h=this._$AH[c]),n||(n=!ar(h)||h!==this._$AH[c]),h===x?e=x:e!==x&&(e+=(h??"")+s[c+1]),this._$AH[c]=h}n&&!i&&this.j(e)}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},_s=class extends ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===x?void 0:e}};const Ml=Et?Et.emptyScript:"";class ys extends ur{constructor(){super(...arguments),this.type=4}j(e){e&&e!==x?this.element.setAttribute(this.name,Ml):this.element.removeAttribute(this.name)}}class ws extends ur{constructor(e,r,o,i,s){super(e,r,o,i,s),this.type=5}_$AI(e,r=this){var o;if((e=(o=rt(this,e,r,0))!==null&&o!==void 0?o:x)===F)return;const i=this._$AH,s=e===x&&i!==x||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==x&&(i===x||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,o;typeof this._$AH=="function"?this._$AH.call((o=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class xs{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){rt(this,e)}}const jl={O:Kr,P:Ee,A:Qi,C:1,M:gs,L:ms,R:ls,D:rt,I:or,V:ur,H:ys,N:ws,U:_s,F:xs},$s=Wr.litHtmlPolyfillSupport;$s?.(eo,or),((Zi=Wr.litHtmlVersions)!==null&&Zi!==void 0?Zi:Wr.litHtmlVersions=[]).push("2.8.0");const Vl=(t,e,r)=>{var o,i;const s=(o=r?.renderBefore)!==null&&o!==void 0?o:e;let n=s._$litPart$;if(n===void 0){const u=(i=r?.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new or(e.insertBefore(nr(),u),u,void 0,r??{})}return n._$AI(t),n};/**
13
+ */var Qi;const Kr=window,Et=Kr.trustedTypes,ds=Et?Et.createPolicy("lit-html",{createHTML:t=>t}):void 0,Xr="$lit$",Ee=`lit$${(Math.random()+"").slice(9)}$`,Ji="?"+Ee,ru=`<${Ji}>`,Je=document,nr=()=>Je.createComment(""),ar=t=>t===null||typeof t!="object"&&typeof t!="function",ps=Array.isArray,vs=t=>ps(t)||typeof t?.[Symbol.iterator]=="function",eo=`[
14
+ \f\r]`,lr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fs=/-->/g,bs=/>/g,et=RegExp(`>|${eo}(?:([^\\s"'>=/]+)(${eo}*=${eo}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),gs=/'/g,ms=/"/g,_s=/^(?:script|style|textarea|title)$/i,ys=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),l=ys(1),g=ys(2),F=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),ws=new WeakMap,tt=Je.createTreeWalker(Je,129,null,!1);function xs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ds!==void 0?ds.createHTML(e):e}const $s=(t,e)=>{const r=t.length-1,o=[];let i,s=e===2?"<svg>":"",n=lr;for(let u=0;u<r;u++){const c=t[u];let h,m,y=-1,b=0;for(;b<c.length&&(n.lastIndex=b,m=n.exec(c),m!==null);)b=n.lastIndex,n===lr?m[1]==="!--"?n=fs:m[1]!==void 0?n=bs:m[2]!==void 0?(_s.test(m[2])&&(i=RegExp("</"+m[2],"g")),n=et):m[3]!==void 0&&(n=et):n===et?m[0]===">"?(n=i??lr,y=-1):m[1]===void 0?y=-2:(y=n.lastIndex-m[2].length,h=m[1],n=m[3]===void 0?et:m[3]==='"'?ms:gs):n===ms||n===gs?n=et:n===fs||n===bs?n=lr:(n=et,i=void 0);const w=n===et&&t[u+1].startsWith("/>")?" ":"";s+=n===lr?c+ru:y>=0?(o.push(h),c.slice(0,y)+Xr+c.slice(y)+Ee+w):c+Ee+(y===-2?(o.push(void 0),u):w)}return[xs(t,s+(t[r]||"<?>")+(e===2?"</svg>":"")),o]};let to=class Ql{constructor({strings:e,_$litType$:r},o){let i;this.parts=[];let s=0,n=0;const u=e.length-1,c=this.parts,[h,m]=$s(e,r);if(this.el=Ql.createElement(h,o),tt.currentNode=this.el.content,r===2){const y=this.el.content,b=y.firstChild;b.remove(),y.append(...b.childNodes)}for(;(i=tt.nextNode())!==null&&c.length<u;){if(i.nodeType===1){if(i.hasAttributes()){const y=[];for(const b of i.getAttributeNames())if(b.endsWith(Xr)||b.startsWith(Ee)){const w=m[n++];if(y.push(b),w!==void 0){const $=i.getAttribute(w.toLowerCase()+Xr).split(Ee),E=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:E[2],strings:$,ctor:E[1]==="."?Ps:E[1]==="?"?Cs:E[1]==="@"?Os:ur})}else c.push({type:6,index:s})}for(const b of y)i.removeAttribute(b)}if(_s.test(i.tagName)){const y=i.textContent.split(Ee),b=y.length-1;if(b>0){i.textContent=Et?Et.emptyScript:"";for(let w=0;w<b;w++)i.append(y[w],nr()),tt.nextNode(),c.push({type:2,index:++s});i.append(y[b],nr())}}}else if(i.nodeType===8)if(i.data===Ji)c.push({type:2,index:s});else{let y=-1;for(;(y=i.data.indexOf(Ee,y+1))!==-1;)c.push({type:7,index:s}),y+=Ee.length-1}s++}}static createElement(e,r){const o=Je.createElement("template");return o.innerHTML=e,o}};function rt(t,e,r=t,o){var i,s,n,u;if(e===F)return e;let c=o!==void 0?(i=r._$Co)===null||i===void 0?void 0:i[o]:r._$Cl;const h=ar(e)?void 0:e._$litDirective$;return c?.constructor!==h&&((s=c?._$AO)===null||s===void 0||s.call(c,!1),h===void 0?c=void 0:(c=new h(t),c._$AT(t,r,o)),o!==void 0?((n=(u=r)._$Co)!==null&&n!==void 0?n:u._$Co=[])[o]=c:r._$Cl=c),c!==void 0&&(e=rt(t,c._$AS(t,e.values),c,o)),e}let Es=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var r;const{el:{content:o},parts:i}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Je).importNode(o,!0);tt.currentNode=s;let n=tt.nextNode(),u=0,c=0,h=i[0];for(;h!==void 0;){if(u===h.index){let m;h.type===2?m=new or(n,n.nextSibling,this,e):h.type===1?m=new h.ctor(n,h.name,h.strings,this,e):h.type===6&&(m=new ks(n,this,e)),this._$AV.push(m),h=i[++c]}u!==h?.index&&(n=tt.nextNode(),u++)}return tt.currentNode=Je,s}v(e){let r=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,r),r+=o.strings.length-2):o._$AI(e[r])),r++}};class or{constructor(e,r,o,i){var s;this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=o,this.options=i,this._$Cp=(s=i?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cp}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=rt(this,e,r),ar(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==F&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):vs(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==x&&ar(this._$AH)?this._$AA.nextSibling.data=e:this.$(Je.createTextNode(e)),this._$AH=e}g(e){var r;const{values:o,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=to.createElement(xs(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.v(o);else{const n=new Es(s,this),u=n.u(this.options);n.v(o),this.$(u),this._$AH=n}}_$AC(e){let r=ws.get(e.strings);return r===void 0&&ws.set(e.strings,r=new to(e)),r}T(e){ps(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let o,i=0;for(const s of e)i===r.length?r.push(o=new or(this.k(nr()),this.k(nr()),this,this.options)):o=r[i],o._$AI(s),i++;i<r.length&&(this._$AR(o&&o._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var o;for((o=this._$AP)===null||o===void 0||o.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cp=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}}let ur=class{constructor(e,r,o,i,s){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=x}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,o,i){const s=this.strings;let n=!1;if(s===void 0)e=rt(this,e,r,0),n=!ar(e)||e!==this._$AH&&e!==F,n&&(this._$AH=e);else{const u=e;let c,h;for(e=s[0],c=0;c<s.length-1;c++)h=rt(this,u[o+c],r,c),h===F&&(h=this._$AH[c]),n||(n=!ar(h)||h!==this._$AH[c]),h===x?e=x:e!==x&&(e+=(h??"")+s[c+1]),this._$AH[c]=h}n&&!i&&this.j(e)}j(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ps=class extends ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===x?void 0:e}};const iu=Et?Et.emptyScript:"";class Cs extends ur{constructor(){super(...arguments),this.type=4}j(e){e&&e!==x?this.element.setAttribute(this.name,iu):this.element.removeAttribute(this.name)}}class Os extends ur{constructor(e,r,o,i,s){super(e,r,o,i,s),this.type=5}_$AI(e,r=this){var o;if((e=(o=rt(this,e,r,0))!==null&&o!==void 0?o:x)===F)return;const i=this._$AH,s=e===x&&i!==x||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==x&&(i===x||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,o;typeof this._$AH=="function"?this._$AH.call((o=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&o!==void 0?o:this.element,e):this._$AH.handleEvent(e)}}class ks{constructor(e,r,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){rt(this,e)}}const ou={O:Xr,P:Ee,A:Ji,C:1,M:$s,L:Es,R:vs,D:rt,I:or,V:ur,H:Cs,N:Os,U:Ps,F:ks},Ss=Kr.litHtmlPolyfillSupport;Ss?.(to,or),((Qi=Kr.litHtmlVersions)!==null&&Qi!==void 0?Qi:Kr.litHtmlVersions=[]).push("2.8.0");const su=(t,e,r)=>{var o,i;const s=(o=r?.renderBefore)!==null&&o!==void 0?o:e;let n=s._$litPart$;if(n===void 0){const u=(i=r?.renderBefore)!==null&&i!==void 0?i:null;s._$litPart$=n=new or(e.insertBefore(nr(),u),u,void 0,r??{})}return n._$AI(t),n};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */var to,ro;let v=class extends $t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const o=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=o.firstChild),o}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Vl(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return F}};v.finalized=!0,v._$litElement$=!0,(to=globalThis.litElementHydrateSupport)===null||to===void 0||to.call(globalThis,{LitElement:v});const Es=globalThis.litElementPolyfillSupport;Es?.({LitElement:v}),((ro=globalThis.litElementVersions)!==null&&ro!==void 0?ro:globalThis.litElementVersions=[]).push("3.3.2");var Bl=`.uui-text {
19
+ */var ro,io;let v=class extends $t{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const o=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=o.firstChild),o}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=su(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return F}};v.finalized=!0,v._$litElement$=!0,(ro=globalThis.litElementHydrateSupport)===null||ro===void 0||ro.call(globalThis,{LitElement:v});const Is=globalThis.litElementPolyfillSupport;Is?.({LitElement:v}),((io=globalThis.litElementVersions)!==null&&io!==void 0?io:globalThis.litElementVersions=[]).push("3.3.2");var nu=`.uui-text {
20
20
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
21
21
  font-size: 15px;
22
22
  line-height: calc(var(--uui-size-2,6px) * 4);
@@ -184,15 +184,15 @@
184
184
  margin-top: var(--uui-size-layout-1,24px);
185
185
  margin-bottom: var(--uui-size-layout-1,24px);
186
186
  }
187
- `;const Xr=Ve(Bl);/**
187
+ `;const Yr=Ve(nu);/**
188
188
  * @license
189
189
  * Copyright 2017 Google LLC
190
190
  * SPDX-License-Identifier: BSD-3-Clause
191
- */const io=t=>e=>typeof e=="function"?((r,o)=>(customElements.define(r,o),o))(t,e):((r,o)=>{const{kind:i,elements:s}=o;return{kind:i,elements:s,finisher(n){customElements.define(r,n)}}})(t,e);/**
191
+ */const oo=t=>e=>typeof e=="function"?((r,o)=>(customElements.define(r,o),o))(t,e):((r,o)=>{const{kind:i,elements:s}=o;return{kind:i,elements:s,finisher(n){customElements.define(r,n)}}})(t,e);/**
192
192
  * @license
193
193
  * Copyright 2017 Google LLC
194
194
  * SPDX-License-Identifier: BSD-3-Clause
195
- */const Rl=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function a(t){return(e,r)=>r!==void 0?((o,i,s)=>{i.constructor.createProperty(s,o)})(t,e,r):Rl(t,e)}/**
195
+ */const au=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function a(t){return(e,r)=>r!==void 0?((o,i,s)=>{i.constructor.createProperty(s,o)})(t,e,r):au(t,e)}/**
196
196
  * @license
197
197
  * Copyright 2017 Google LLC
198
198
  * SPDX-License-Identifier: BSD-3-Clause
@@ -200,19 +200,19 @@
200
200
  * @license
201
201
  * Copyright 2017 Google LLC
202
202
  * SPDX-License-Identifier: BSD-3-Clause
203
- */const oo=({finisher:t,descriptor:e})=>(r,o)=>{var i;if(o===void 0){const s=(i=r.originalKey)!==null&&i!==void 0?i:r.key,n=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(n.finisher=function(u){t(u,s)}),n}{const s=r.constructor;e!==void 0&&Object.defineProperty(r,o,e(o)),t?.(s,o)}};/**
203
+ */const so=({finisher:t,descriptor:e})=>(r,o)=>{var i;if(o===void 0){const s=(i=r.originalKey)!==null&&i!==void 0?i:r.key,n=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(n.finisher=function(u){t(u,s)}),n}{const s=r.constructor;e!==void 0&&Object.defineProperty(r,o,e(o)),t?.(s,o)}};/**
204
204
  * @license
205
205
  * Copyright 2017 Google LLC
206
206
  * SPDX-License-Identifier: BSD-3-Clause
207
- */function C(t,e){return oo({descriptor:r=>{const o={get(){var i,s;return(s=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const i=typeof r=="symbol"?Symbol():"__"+r;o.get=function(){var s,n;return this[i]===void 0&&(this[i]=(n=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&n!==void 0?n:null),this[i]}}return o}})}/**
207
+ */function C(t,e){return so({descriptor:r=>{const o={get(){var i,s;return(s=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){const i=typeof r=="symbol"?Symbol():"__"+r;o.get=function(){var s,n;return this[i]===void 0&&(this[i]=(n=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&n!==void 0?n:null),this[i]}}return o}})}/**
208
208
  * @license
209
209
  * Copyright 2017 Google LLC
210
210
  * SPDX-License-Identifier: BSD-3-Clause
211
- */function Fl(t){return oo({descriptor:e=>({get(){var r,o;return(o=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}/**
211
+ */function lu(t){return so({descriptor:e=>({get(){var r,o;return(o=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&o!==void 0?o:[]},enumerable:!0,configurable:!0})})}/**
212
212
  * @license
213
213
  * Copyright 2021 Google LLC
214
214
  * SPDX-License-Identifier: BSD-3-Clause
215
- */var so;const Gl=((so=window.HTMLSlotElement)===null||so===void 0?void 0:so.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Be(t){const{slot:e,selector:r}=t??{};return oo({descriptor:o=>({get(){var i;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(s),u=n!=null?Gl(n,t):[];return r?u.filter(c=>c.matches(r)):u},enumerable:!0,configurable:!0})})}const ql=d`
215
+ */var no;const uu=((no=window.HTMLSlotElement)===null||no===void 0?void 0:no.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Be(t){const{slot:e,selector:r}=t??{};return so({descriptor:o=>({get(){var i;const s="slot"+(e?`[name=${e}]`:":not([name])"),n=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(s),u=n!=null?uu(n,t):[];return r?u.filter(c=>c.matches(r)):u},enumerable:!0,configurable:!0})})}const cu=d`
216
216
  @keyframes uui-blink {
217
217
  0%,
218
218
  100% {
@@ -222,7 +222,7 @@
222
222
  opacity: 1;
223
223
  }
224
224
  }
225
- `,Wl=Ve("uui-blink 0.9s infinite both"),Kl=d`
225
+ `,hu=Ve("uui-blink 0.9s infinite both"),du=d`
226
226
  @keyframes pulse {
227
227
  0% {
228
228
  -webkit-transform: translate(-50%, -50%) scale(0.2);
@@ -240,7 +240,7 @@
240
240
  opacity: 0;
241
241
  }
242
242
  }
243
- `,Xl=Ve("pulse 0.8s ease-in-out infinite both"),Yl=d`
243
+ `,pu=Ve("pulse 0.8s ease-in-out infinite both"),vu=d`
244
244
  @keyframes uui-horizontal-shake {
245
245
  10%,
246
246
  90% {
@@ -263,14 +263,14 @@
263
263
  transform: translateX(2px);
264
264
  }
265
265
  }
266
- `,Zl=Ve("uui-horizontal-shake 600ms ease backwards");var Ql=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Jl=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,Cs=(t,e,r)=>e in t?Ql(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,tu=(t,e)=>{for(var r in e||(e={}))Jl.call(e,r)&&Cs(t,r,e[r]);if(Ps)for(var r of Ps(e))eu.call(e,r)&&Cs(t,r,e[r]);return t};let no=class extends Event{constructor(e,r={}){super(e,tu({},r)),this.detail=r.detail||{}}};var ru=Object.defineProperty,Os=Object.getOwnPropertySymbols,iu=Object.prototype.hasOwnProperty,ou=Object.prototype.propertyIsEnumerable,Ss=(t,e,r)=>e in t?ru(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ks=(t,e)=>{for(var r in e||(e={}))iu.call(e,r)&&Ss(t,r,e[r]);if(Os)for(var r of Os(e))ou.call(e,r)&&Ss(t,r,e[r]);return t};let it=class extends no{constructor(e,r={}){super(e,ks(ks({},{bubbles:!0}),r))}};it.VALID="valid",it.INVALID="invalid";var su=Object.defineProperty,zs=Object.getOwnPropertySymbols,nu=Object.prototype.hasOwnProperty,au=Object.prototype.propertyIsEnumerable,Is=(t,e,r)=>e in t?su(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,As=(t,e)=>{for(var r in e||(e={}))nu.call(e,r)&&Is(t,r,e[r]);if(zs)for(var r of zs(e))au.call(e,r)&&Is(t,r,e[r]);return t};let ot=class extends no{constructor(e,r={}){super(e,As(As({},{bubbles:!0,cancelable:!0}),r))}};ot.SELECTED="selected",ot.DESELECTED="deselected";var lu=Object.defineProperty,uu=Object.getOwnPropertyDescriptor,cu=(t,e,r,o)=>{for(var i=o>1?void 0:o?uu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&lu(e,r,i),i};const hu=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return cu([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var du=Object.defineProperty,pu=Object.getOwnPropertyDescriptor,Us=(t,e,r,o)=>{for(var i=o>1?void 0:o?pu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&du(e,r,i),i};const vu=(t,e)=>{class r extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`
266
+ `,fu=Ve("uui-horizontal-shake 600ms ease backwards");var bu=Object.defineProperty,zs=Object.getOwnPropertySymbols,gu=Object.prototype.hasOwnProperty,mu=Object.prototype.propertyIsEnumerable,As=(t,e,r)=>e in t?bu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_u=(t,e)=>{for(var r in e||(e={}))gu.call(e,r)&&As(t,r,e[r]);if(zs)for(var r of zs(e))mu.call(e,r)&&As(t,r,e[r]);return t};let ao=class extends Event{constructor(e,r={}){super(e,_u({},r)),this.detail=r.detail||{}}};var yu=Object.defineProperty,Us=Object.getOwnPropertySymbols,wu=Object.prototype.hasOwnProperty,xu=Object.prototype.propertyIsEnumerable,Ds=(t,e,r)=>e in t?yu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ls=(t,e)=>{for(var r in e||(e={}))wu.call(e,r)&&Ds(t,r,e[r]);if(Us)for(var r of Us(e))xu.call(e,r)&&Ds(t,r,e[r]);return t};let it=class extends ao{constructor(e,r={}){super(e,Ls(Ls({},{bubbles:!0}),r))}};it.VALID="valid",it.INVALID="invalid";var $u=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Eu=Object.prototype.hasOwnProperty,Pu=Object.prototype.propertyIsEnumerable,Ts=(t,e,r)=>e in t?$u(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Hs=(t,e)=>{for(var r in e||(e={}))Eu.call(e,r)&&Ts(t,r,e[r]);if(Ns)for(var r of Ns(e))Pu.call(e,r)&&Ts(t,r,e[r]);return t};let ot=class extends ao{constructor(e,r={}){super(e,Hs(Hs({},{bubbles:!0,cancelable:!0}),r))}};ot.SELECTED="selected",ot.DESELECTED="deselected";var Cu=Object.defineProperty,Ou=Object.getOwnPropertyDescriptor,ku=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ou(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cu(e,r,i),i};const Su=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return ku([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Iu=Object.defineProperty,zu=Object.getOwnPropertyDescriptor,Ms=(t,e,r,o)=>{for(var i=o>1?void 0:o?zu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Iu(e,r,i),i};const Au=(t,e)=>{class r extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`
267
267
  ${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}
268
268
  <slot
269
269
  class="label"
270
270
  style=${this._labelSlotHasContent?"":"visibility: hidden"}
271
271
  name=${t||""}
272
272
  @slotchange=${this.labelSlotChanged}></slot>
273
- `}}return Us([a({type:String})],r.prototype,"label",2),Us([f()],r.prototype,"_labelSlotHasContent",2),r};var fu=Object.defineProperty,bu=Object.getOwnPropertyDescriptor,Ds=(t,e,r,o)=>{for(var i=o>1?void 0:o?bu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fu(e,r,i),i};const gu=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=i=>{if(this.selectableTarget===this){if(i.key!==" "&&i.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const i=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selected",i)}_select(){if(!this.selectable)return;const o=new ot(ot.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new ot(ot.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Ds([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Ds([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var mu=Object.defineProperty,_u=Object.getOwnPropertyDescriptor,yu=(t,e,r,o)=>{for(var i=o>1?void 0:o?_u(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&mu(e,r,i),i};const wu=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const i=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",i)}}return yu([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var xu=Object.defineProperty,$u=Object.getOwnPropertyDescriptor,st=(t,e,r,o)=>{for(var i=o>1?void 0:o?$u(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&xu(e,r,i),i};const Eu=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const i=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,i,s){const n={flagKey:o,getMessageMethod:i,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const i=this._validators.indexOf(o);i!==-1&&this._validators.splice(i,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const s in i.validity)s!=="valid"&&i.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new it(it.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new it(it.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,st([a({type:String})],e.prototype,"name",2),st([a()],e.prototype,"value",1),st([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),st([a({type:Boolean,reflect:!0})],e.prototype,"required",2),st([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),st([a({type:Boolean,reflect:!0})],e.prototype,"error",2),st([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};function Pu(t,e){return r=>{if(t.indexOf("-")>0===!1){console.error(`${t} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(t)||window.customElements.define(t,r,e)}}const Cu=["default","primary","secondary","outline","placeholder"],Ou=["default","positive","warning","danger"],Su=["h1","h2","h3","h4","h5","h6"];let ku=class{constructor(e,r){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(r)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const zu=(t,e,r=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",r,t)},Iu=(t,e)=>{function r(i){const s=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,u=s.left+n.scrollX,c=s.top+n.scrollY;let h;i instanceof TouchEvent?h=i.touches[0]:h=i;const m=h.pageX-u,y=h.pageY-c;e?.onMove&&e.onMove(m,y)}function o(){document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",o),e?.onStop&&e.onStop()}document.addEventListener("pointermove",r,{passive:!0}),document.addEventListener("pointerup",o),e?.initialEvent&&r(e.initialEvent)},Au=(t,e,r)=>Math.min(Math.max(t,e),r),Uu=(t,e,r)=>r+e-t,Du=t=>{const e=Math.round(t).toString(16);return e.length===1?`0${e}`:e};function p(t,e){return r=>{if(t.indexOf("-")>0===!1){console.error(`${t} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(t)||window.customElements.define(t,r,e)}}var Lu=Object.defineProperty,Nu=Object.getOwnPropertyDescriptor,Hu=(t,e,r,o)=>{for(var i=o>1?void 0:o?Nu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Lu(e,r,i),i};let Pt=class extends v{render(){return l`<slot></slot>`}};Pt.styles=[d`
273
+ `}}return Ms([a({type:String})],r.prototype,"label",2),Ms([f()],r.prototype,"_labelSlotHasContent",2),r};var Uu=Object.defineProperty,Du=Object.getOwnPropertyDescriptor,js=(t,e,r,o)=>{for(var i=o>1?void 0:o?Du(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Uu(e,r,i),i};const Lu=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=i=>{if(this.selectableTarget===this){if(i.key!==" "&&i.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const i=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selectable",i)}_select(){if(!this.selectable)return;const o=new ot(ot.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new ot(ot.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return js([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),js([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Nu=Object.defineProperty,Tu=Object.getOwnPropertyDescriptor,Hu=(t,e,r,o)=>{for(var i=o>1?void 0:o?Tu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Nu(e,r,i),i};const Mu=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const i=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",i)}}return Hu([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var ju=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,st=(t,e,r,o)=>{for(var i=o>1?void 0:o?Vu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ju(e,r,i),i};const Bu=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const i=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,i,s){const n={flagKey:o,getMessageMethod:i,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const i=this._validators.indexOf(o);i!==-1&&this._validators.splice(i,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const s in i.validity)s!=="valid"&&i.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new it(it.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new it(it.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,st([a({type:String})],e.prototype,"name",2),st([a()],e.prototype,"value",1),st([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),st([a({type:Boolean,reflect:!0})],e.prototype,"required",2),st([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),st([a({type:Boolean,reflect:!0})],e.prototype,"error",2),st([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};function Ru(t,e){return r=>{if(t.indexOf("-")>0===!1){console.error(`${t} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(t)||window.customElements.define(t,r,e)}}const Fu=["default","primary","secondary","outline","placeholder"],Gu=["default","positive","warning","danger"],qu=["h1","h2","h3","h4","h5","h6"];let Wu=class{constructor(e,r){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(r)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}};const Ku=(t,e,r=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",r,t)},Xu=(t,e)=>{function r(i){const s=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,u=s.left+n.scrollX,c=s.top+n.scrollY;let h;i instanceof TouchEvent?h=i.touches[0]:h=i;const m=h.pageX-u,y=h.pageY-c;e?.onMove&&e.onMove(m,y)}function o(){document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",o),e?.onStop&&e.onStop()}document.addEventListener("pointermove",r,{passive:!0}),document.addEventListener("pointerup",o),e?.initialEvent&&r(e.initialEvent)},Yu=(t,e,r)=>Math.min(Math.max(t,e),r),Zu=(t,e,r)=>r+e-t,Qu=t=>{const e=Math.round(t).toString(16);return e.length===1?`0${e}`:e};function p(t,e){return r=>{if(t.indexOf("-")>0===!1){console.error(`${t} is not a valid custom element name. A custom element name should consist of at least two words separated by a hyphen.`);return}window.customElements.get(t)||window.customElements.define(t,r,e)}}var Ju=Object.defineProperty,ec=Object.getOwnPropertyDescriptor,tc=(t,e,r,o)=>{for(var i=o>1?void 0:o?ec(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ju(e,r,i),i};let Pt=class extends v{render(){return l`<slot></slot>`}};Pt.styles=[d`
274
274
  :host {
275
275
  display: inline-flex;
276
276
  align-items: stretch;
@@ -316,7 +316,7 @@
316
316
  ::slotted(*:hover) {
317
317
  z-index: 1;
318
318
  }
319
- `],Pt=Hu([p("uui-button-group")],Pt);var Tu=Object.defineProperty,Mu=Object.getOwnPropertyDescriptor,ju=(t,e,r,o)=>{for(var i=o>1?void 0:o?Mu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Tu(e,r,i),i};let Yr=class extends Pt{};Yr.styles=[...Pt.styles,d`
319
+ `],Pt=tc([p("uui-button-group")],Pt);var rc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,oc=(t,e,r,o)=>{for(var i=o>1?void 0:o?ic(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&rc(e,r,i),i};let Zr=class extends Pt{};Zr.styles=[...Pt.styles,d`
320
320
  ::slotted(*) {
321
321
  --uui-button-padding-left-factor: 0.5;
322
322
  --uui-button-padding-right-factor: 0.5;
@@ -358,7 +358,7 @@
358
358
  --uui-button-padding-left-factor: 1.5;
359
359
  --uui-button-padding-right-factor: 1.5;
360
360
  }
361
- `],Yr=ju([p("uui-action-bar")],Yr);var Vu=Object.defineProperty,Bu=Object.getOwnPropertyDescriptor,Zr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vu(e,r,i),i};let nt=class extends v{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return l`
361
+ `],Zr=oc([p("uui-action-bar")],Zr);var sc=Object.defineProperty,nc=Object.getOwnPropertyDescriptor,Qr=(t,e,r,o)=>{for(var i=o>1?void 0:o?nc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sc(e,r,i),i};let nt=class extends v{constructor(){super(...arguments),this._avatarArray=[],this.limit=0}firstUpdated(){this._setAvatarArray()}_onSlotChange(){this._setAvatarArray(),this._updateAvatarVisibility()}_setAvatarArray(){this._avatarArray=this._avatarNodes?this._avatarNodes:[]}updated(t){t.has("limit")&&this._updateAvatarVisibility()}_updateAvatarVisibility(){this._avatarArray.forEach((t,e)=>{t.style.display=e<this.limit||this.limit===0?"":"none"})}_isLimitExceeded(){return this.limit!==0&&this._avatarArray.length>this.limit}render(){return l`
362
362
  <slot @slotchange=${this._onSlotChange}></slot>
363
363
  ${this._isLimitExceeded()?l`<small id="overflow-indication">+${this._avatarArray.length-this.limit}</small>`:""}
364
364
  `}};nt.styles=[d`
@@ -378,7 +378,7 @@
378
378
  #overflow-indication {
379
379
  margin-left: 6px;
380
380
  }
381
- `],Zr([Be({selector:"uui-avatar, [uui-avatar]",flatten:!0})],nt.prototype,"_avatarNodes",2),Zr([f()],nt.prototype,"_avatarArray",2),Zr([a({type:Number,attribute:!0})],nt.prototype,"limit",2),nt=Zr([p("uui-avatar-group")],nt);var Ru=Object.defineProperty,Fu=Object.getOwnPropertyDescriptor,Ct=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ru(e,r,i),i};let Pe=class extends v{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(!t)return e;const r=t.match(/(\w+)/g);return r?.length?(e=r[0].substring(0,1),r.length>1&&(e+=r[r.length-1].substring(0,1)),e.toUpperCase()):e}renderImage(){return l` <img
381
+ `],Qr([Be({selector:"uui-avatar, [uui-avatar]",flatten:!0})],nt.prototype,"_avatarNodes",2),Qr([f()],nt.prototype,"_avatarArray",2),Qr([a({type:Number,attribute:!0})],nt.prototype,"limit",2),nt=Qr([p("uui-avatar-group")],nt);var ac=Object.defineProperty,lc=Object.getOwnPropertyDescriptor,Ct=(t,e,r,o)=>{for(var i=o>1?void 0:o?lc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ac(e,r,i),i};let Pe=class extends v{constructor(){super(...arguments),this.overflow=!0,this.imgSrc="",this.imgSrcset="",this._name="",this.initials=""}get name(){return this._name}set name(t){const e=this._name;this._name=t,this.initials=this.createInitials(this._name),this.requestUpdate("title",e)}connectedCallback(){super.connectedCallback(),this.name||console.warn(this.tagName+" needs a `name`",this)}createInitials(t){let e="";if(!t)return e;const r=t.match(/(\w+)/g);return r?.length?(e=r[0].substring(0,1),r.length>1&&(e+=r[r.length-1].substring(0,1)),e.toUpperCase()):e}renderImage(){return l` <img
382
382
  src="${this.imgSrc}"
383
383
  srcset="${this.imgSrcset}"
384
384
  alt="${this.initials}"
@@ -417,7 +417,7 @@
417
417
  overflow: hidden;
418
418
  border-radius: 50%;
419
419
  }
420
- `],Ct([a({type:Boolean,attribute:!0,reflect:!0})],Pe.prototype,"overflow",2),Ct([a({type:String,attribute:"img-src"})],Pe.prototype,"imgSrc",2),Ct([a({type:String,attribute:"img-srcset"})],Pe.prototype,"imgSrcset",2),Ct([a({type:String,reflect:!0})],Pe.prototype,"name",1),Ct([f()],Pe.prototype,"initials",2),Pe=Ct([p("uui-avatar")],Pe);var Gu=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Qr=(t,e,r,o)=>{for(var i=o>1?void 0:o?qu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Gu(e,r,i),i};let at=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return l` <slot></slot> `}};at.styles=[d`
420
+ `],Ct([a({type:Boolean,attribute:!0,reflect:!0})],Pe.prototype,"overflow",2),Ct([a({type:String,attribute:"img-src"})],Pe.prototype,"imgSrc",2),Ct([a({type:String,attribute:"img-srcset"})],Pe.prototype,"imgSrcset",2),Ct([a({type:String,reflect:!0})],Pe.prototype,"name",1),Ct([f()],Pe.prototype,"initials",2),Pe=Ct([p("uui-avatar")],Pe);var uc=Object.defineProperty,cc=Object.getOwnPropertyDescriptor,Jr=(t,e,r,o)=>{for(var i=o>1?void 0:o?cc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&uc(e,r,i),i};let at=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary",this.attention=!1}render(){return l` <slot></slot> `}};at.styles=[d`
421
421
  :host {
422
422
  position: var(--uui-badge-position, absolute);
423
423
  display: flex;
@@ -527,14 +527,14 @@
527
527
  animation: none;
528
528
  }
529
529
  }
530
- `],Qr([a({reflect:!0})],at.prototype,"color",2),Qr([a({reflect:!0})],at.prototype,"look",2),Qr([a({type:Boolean,reflect:!0})],at.prototype,"attention",2),at=Qr([p("uui-badge")],at);var Wu=Object.defineProperty,Ku=Object.getOwnPropertyDescriptor,Xu=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ku(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Wu(e,r,i),i};const cr=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return Xu([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var Yu=Object.defineProperty,Zu=Object.getOwnPropertyDescriptor,Ls=(t,e,r,o)=>{for(var i=o>1?void 0:o?Zu(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Yu(e,r,i),i};const ve=(t,e)=>{class r extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`
530
+ `],Jr([a({reflect:!0})],at.prototype,"color",2),Jr([a({reflect:!0})],at.prototype,"look",2),Jr([a({type:Boolean,reflect:!0})],at.prototype,"attention",2),at=Jr([p("uui-badge")],at);var hc=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,pc=(t,e,r,o)=>{for(var i=o>1?void 0:o?dc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&hc(e,r,i),i};const cr=t=>{class e extends t{constructor(){super(...arguments),this.active=!1}}return pc([a({type:Boolean,reflect:!0})],e.prototype,"active",2),e};var vc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,Vs=(t,e,r,o)=>{for(var i=o>1?void 0:o?fc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&vc(e,r,i),i};const ve=(t,e)=>{class r extends e{constructor(){super(...arguments),this._labelSlotHasContent=!1}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}labelSlotChanged(i){this._labelSlotHasContent=i.target.assignedNodes({flatten:!0}).length>0}renderLabel(){return l`
531
531
  ${this._labelSlotHasContent===!1?l`<span class="label">${this.label}</span>`:""}
532
532
  <slot
533
533
  class="label"
534
534
  style=${this._labelSlotHasContent?"":"visibility: hidden"}
535
535
  name=${t||""}
536
536
  @slotchange=${this.labelSlotChanged}></slot>
537
- `}}return Ls([a({type:String})],r.prototype,"label",2),Ls([f()],r.prototype,"_labelSlotHasContent",2),r};var Qu=Object.defineProperty,Ns=Object.getOwnPropertySymbols,Ju=Object.prototype.hasOwnProperty,ec=Object.prototype.propertyIsEnumerable,Hs=(t,e,r)=>e in t?Qu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,tc=(t,e)=>{for(var r in e||(e={}))Ju.call(e,r)&&Hs(t,r,e[r]);if(Ns)for(var r of Ns(e))ec.call(e,r)&&Hs(t,r,e[r]);return t};let rc=class extends Event{constructor(e,r={}){super(e,tc({},r)),this.detail=r.detail||{}}};var ic=Object.defineProperty,Ts=Object.getOwnPropertySymbols,oc=Object.prototype.hasOwnProperty,sc=Object.prototype.propertyIsEnumerable,Ms=(t,e,r)=>e in t?ic(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,js=(t,e)=>{for(var r in e||(e={}))oc.call(e,r)&&Ms(t,r,e[r]);if(Ts)for(var r of Ts(e))sc.call(e,r)&&Ms(t,r,e[r]);return t};let Ot=class extends rc{constructor(e,r={}){super(e,js(js({},{bubbles:!0,cancelable:!0}),r))}};Ot.SELECTED="selected",Ot.DESELECTED="deselected";var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,Vs=(t,e,r,o)=>{for(var i=o>1?void 0:o?ac(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&nc(e,r,i),i};const St=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=i=>{if(this.selectableTarget===this){if(i.key!==" "&&i.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const i=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selected",i)}_select(){if(!this.selectable)return;const o=new Ot(Ot.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new Ot(Ot.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Vs([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Vs([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var lc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,cc=(t,e,r,o)=>{for(var i=o>1?void 0:o?uc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&lc(e,r,i),i};const Jr=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const i=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",i)}}return cc([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var hc=Object.defineProperty,Bs=Object.getOwnPropertySymbols,dc=Object.prototype.hasOwnProperty,pc=Object.prototype.propertyIsEnumerable,Rs=(t,e,r)=>e in t?hc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vc=(t,e)=>{for(var r in e||(e={}))dc.call(e,r)&&Rs(t,r,e[r]);if(Bs)for(var r of Bs(e))pc.call(e,r)&&Rs(t,r,e[r]);return t};let Fs=class extends Event{constructor(e,r={}){super(e,vc({},r)),this.detail=r.detail||{}}};var fc=Object.defineProperty,Gs=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,gc=Object.prototype.propertyIsEnumerable,qs=(t,e,r)=>e in t?fc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ws=(t,e)=>{for(var r in e||(e={}))bc.call(e,r)&&qs(t,r,e[r]);if(Gs)for(var r of Gs(e))gc.call(e,r)&&qs(t,r,e[r]);return t};let kt=class extends Fs{constructor(e,r={}){super(e,Ws(Ws({},{bubbles:!0}),r))}};kt.VALID="valid",kt.INVALID="invalid";var mc=Object.defineProperty,Ks=Object.getOwnPropertySymbols,_c=Object.prototype.hasOwnProperty,yc=Object.prototype.propertyIsEnumerable,Xs=(t,e,r)=>e in t?mc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ys=(t,e)=>{for(var r in e||(e={}))_c.call(e,r)&&Xs(t,r,e[r]);if(Ks)for(var r of Ks(e))yc.call(e,r)&&Xs(t,r,e[r]);return t};let Zs=class extends Fs{constructor(e,r={}){super(e,Ys(Ys({},{bubbles:!0,cancelable:!0}),r))}};Zs.SELECTED="selected",Zs.DESELECTED="deselected";var wc=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,lt=(t,e,r,o)=>{for(var i=o>1?void 0:o?xc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&wc(e,r,i),i};const fe=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const i=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,i,s){const n={flagKey:o,getMessageMethod:i,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const i=this._validators.indexOf(o);i!==-1&&this._validators.splice(i,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const s in i.validity)s!=="valid"&&i.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new kt(kt.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new kt(kt.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,lt([a({type:String})],e.prototype,"name",2),lt([a()],e.prototype,"value",1),lt([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),lt([a({type:Boolean,reflect:!0})],e.prototype,"required",2),lt([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),lt([a({type:Boolean,reflect:!0})],e.prototype,"error",2),lt([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var $c=Object.defineProperty,Qs=Object.getOwnPropertySymbols,Ec=Object.prototype.hasOwnProperty,Pc=Object.prototype.propertyIsEnumerable,Js=(t,e,r)=>e in t?$c(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Cc=(t,e)=>{for(var r in e||(e={}))Ec.call(e,r)&&Js(t,r,e[r]);if(Qs)for(var r of Qs(e))Pc.call(e,r)&&Js(t,r,e[r]);return t};class O extends Event{constructor(e,r={}){super(e,Cc({},r)),this.detail=r.detail||{}}}var Oc=Object.defineProperty,en=Object.getOwnPropertySymbols,Sc=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable,tn=(t,e,r)=>e in t?Oc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,rn=(t,e)=>{for(var r in e||(e={}))Sc.call(e,r)&&tn(t,r,e[r]);if(en)for(var r of en(e))kc.call(e,r)&&tn(t,r,e[r]);return t};class zt extends O{constructor(e,r={}){super(e,rn(rn({},{bubbles:!0}),r))}}zt.VALID="valid",zt.INVALID="invalid";var zc=Object.defineProperty,on=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,Ac=Object.prototype.propertyIsEnumerable,sn=(t,e,r)=>e in t?zc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,nn=(t,e)=>{for(var r in e||(e={}))Ic.call(e,r)&&sn(t,r,e[r]);if(on)for(var r of on(e))Ac.call(e,r)&&sn(t,r,e[r]);return t};class Re extends O{constructor(e,r={}){super(e,nn(nn({},{bubbles:!0,cancelable:!0}),r))}}Re.SELECTED="selected",Re.DESELECTED="deselected";var Uc=Object.defineProperty,an=Object.getOwnPropertySymbols,Dc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,ln=(t,e,r)=>e in t?Uc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,un=(t,e)=>{for(var r in e||(e={}))Dc.call(e,r)&&ln(t,r,e[r]);if(an)for(var r of an(e))Lc.call(e,r)&&ln(t,r,e[r]);return t};class ei extends O{constructor(e,r={}){super(e,un(un({},{bubbles:!0}),r))}}ei.CHANGE="change";var Nc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,ti=(t,e,r,o)=>{for(var i=o>1?void 0:o?Hc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Nc(e,r,i),i};class be extends fe(ve("",v)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const r=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",r)}get checked(){return this._checked}set checked(e){const r=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",r)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var r;super.firstUpdated(e);const o=(r=this.shadowRoot)==null?void 0:r.querySelector("label");let i=!1;this._input.addEventListener("blur",()=>{i===!1&&this.style.setProperty("--uui-show-focus-outline","1"),i=!1}),o.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),i=!0}),o.addEventListener("mouseup",()=>{i=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new ei(ei.CHANGE))}render(){return l`
537
+ `}}return Vs([a({type:String})],r.prototype,"label",2),Vs([f()],r.prototype,"_labelSlotHasContent",2),r};var bc=Object.defineProperty,Bs=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,mc=Object.prototype.propertyIsEnumerable,Rs=(t,e,r)=>e in t?bc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_c=(t,e)=>{for(var r in e||(e={}))gc.call(e,r)&&Rs(t,r,e[r]);if(Bs)for(var r of Bs(e))mc.call(e,r)&&Rs(t,r,e[r]);return t};let yc=class extends Event{constructor(e,r={}){super(e,_c({},r)),this.detail=r.detail||{}}};var wc=Object.defineProperty,Fs=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty,$c=Object.prototype.propertyIsEnumerable,Gs=(t,e,r)=>e in t?wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,qs=(t,e)=>{for(var r in e||(e={}))xc.call(e,r)&&Gs(t,r,e[r]);if(Fs)for(var r of Fs(e))$c.call(e,r)&&Gs(t,r,e[r]);return t};let Ot=class extends yc{constructor(e,r={}){super(e,qs(qs({},{bubbles:!0,cancelable:!0}),r))}};Ot.SELECTED="selected",Ot.DESELECTED="deselected";var Ec=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,Ws=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ec(e,r,i),i};const kt=t=>{class e extends t{constructor(...o){super(...o),this._selectable=!1,this.deselectable=!0,this.selected=!1,this.selectableTarget=this,this.handleSelectKeydown=i=>{if(this.selectableTarget===this){if(i.key!==" "&&i.key!=="Enter")return;this._toggleSelect()}},this.addEventListener("click",this._handleClick),this.addEventListener("keydown",this.handleSelectKeydown)}get selectable(){return this._selectable}set selectable(o){const i=this._selectable;this._selectable=o,this.selectableTarget||this.setAttribute("tabindex",`${o?"0":"-1"}`),this.requestUpdate("selectable",i)}_select(){if(!this.selectable)return;const o=new Ot(Ot.SELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!0)}_deselect(){if(!this.deselectable)return;const o=new Ot(Ot.DESELECTED);this.dispatchEvent(o),!o.defaultPrevented&&(this.selected=!1)}_handleClick(o){o.composedPath().indexOf(this.selectableTarget)!==-1&&this._toggleSelect()}_toggleSelect(){this.selectable&&(this.deselectable===!1?this._select():this.selected?this._deselect():this._select())}}return Ws([a({type:Boolean,reflect:!0})],e.prototype,"selectable",1),Ws([a({type:Boolean,reflect:!0})],e.prototype,"selected",2),e};var Cc=Object.defineProperty,Oc=Object.getOwnPropertyDescriptor,kc=(t,e,r,o)=>{for(var i=o>1?void 0:o?Oc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cc(e,r,i),i};const ei=t=>{class e extends t{constructor(){super(...arguments),this._selectOnly=!1}get selectOnly(){return this._selectOnly}set selectOnly(o){const i=this._selectOnly;this._selectOnly=o,this.requestUpdate("selectOnly",i)}}return kc([a({type:Boolean,reflect:!0,attribute:"select-only"})],e.prototype,"selectOnly",1),e};var Sc=Object.defineProperty,Ks=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,zc=Object.prototype.propertyIsEnumerable,Xs=(t,e,r)=>e in t?Sc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ac=(t,e)=>{for(var r in e||(e={}))Ic.call(e,r)&&Xs(t,r,e[r]);if(Ks)for(var r of Ks(e))zc.call(e,r)&&Xs(t,r,e[r]);return t};let Ys=class extends Event{constructor(e,r={}){super(e,Ac({},r)),this.detail=r.detail||{}}};var Uc=Object.defineProperty,Zs=Object.getOwnPropertySymbols,Dc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Qs=(t,e,r)=>e in t?Uc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Js=(t,e)=>{for(var r in e||(e={}))Dc.call(e,r)&&Qs(t,r,e[r]);if(Zs)for(var r of Zs(e))Lc.call(e,r)&&Qs(t,r,e[r]);return t};let St=class extends Ys{constructor(e,r={}){super(e,Js(Js({},{bubbles:!0}),r))}};St.VALID="valid",St.INVALID="invalid";var Nc=Object.defineProperty,en=Object.getOwnPropertySymbols,Tc=Object.prototype.hasOwnProperty,Hc=Object.prototype.propertyIsEnumerable,tn=(t,e,r)=>e in t?Nc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,rn=(t,e)=>{for(var r in e||(e={}))Tc.call(e,r)&&tn(t,r,e[r]);if(en)for(var r of en(e))Hc.call(e,r)&&tn(t,r,e[r]);return t};let on=class extends Ys{constructor(e,r={}){super(e,rn(rn({},{bubbles:!0,cancelable:!0}),r))}};on.SELECTED="selected",on.DESELECTED="deselected";var Mc=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,lt=(t,e,r,o)=>{for(var i=o>1?void 0:o?jc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Mc(e,r,i),i};const fe=t=>{class e extends t{constructor(...o){super(...o),this.name="",this._validityState={},this.pristine=!0,this.required=!1,this.requiredMessage="This field is required",this.error=!1,this.errorMessage="This field is invalid",this._value="",this._form=null,this._validators=[],this._formCtrlElements=[],this._onFormSubmit=()=>{this.pristine=!1},this._internals=this.attachInternals(),this.addValidator("valueMissing",()=>this.requiredMessage,()=>this.hasAttribute("required")&&this.hasValue()===!1),this.addValidator("customError",()=>this.errorMessage,()=>this.error),this.addEventListener("blur",()=>{this.pristine=!1})}get value(){return this._value}set value(o){const i=this._value;this._value=o,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",i)}hasValue(){return this.value!==""}disconnectedCallback(){super.disconnectedCallback(),this._removeFormListeners()}_removeFormListeners(){this._form&&this._form.removeEventListener("submit",this._onFormSubmit)}addValidator(o,i,s){const n={flagKey:o,getMessageMethod:i,checkMethod:s};return this._validators.push(n),n}removeValidator(o){const i=this._validators.indexOf(o);i!==-1&&this._validators.splice(i,1)}addFormControlElement(o){this._formCtrlElements.push(o)}setCustomValidity(o){this._customValidityObject&&this.removeValidator(this._customValidityObject),o!=null&&o!==""&&(this._customValidityObject=this.addValidator("customError",()=>o,()=>!0)),this._runValidators()}_runValidators(){this._validityState={},this._formCtrlElements.forEach(i=>{for(const s in i.validity)s!=="valid"&&i.validity[s]&&(this._validityState[s]=!0,this._internals.setValidity(this._validityState,i.validationMessage,i))}),this._validators.forEach(i=>{i.checkMethod()&&(this._validityState[i.flagKey]=!0,this._internals.setValidity(this._validityState,i.getMessageMethod(),this.getFormElement()))});const o=Object.values(this._validityState).includes(!0);this._validityState.valid=!o,o?this.dispatchEvent(new St(St.INVALID)):(this._internals.setValidity({}),this.dispatchEvent(new St(St.VALID)))}updated(o){super.updated(o),this._runValidators()}submit(){var o;(o=this._form)==null||o.requestSubmit()}formAssociatedCallback(){this._removeFormListeners(),this._form=this._internals.form,this._form&&(this._form.hasAttribute("submit-invalid")&&(this.pristine=!1),this._form.addEventListener("submit",this._onFormSubmit))}formResetCallback(){this.pristine=!0,this.value=this.getAttribute("value")||""}checkValidity(){var o;for(const i in this._formCtrlElements)if(this._formCtrlElements[i].checkValidity()===!1)return!1;return(o=this._internals)==null?void 0:o.checkValidity()}get validity(){return this._validityState}get validationMessage(){var o;return(o=this._internals)==null?void 0:o.validationMessage}}return e.formAssociated=!0,lt([a({type:String})],e.prototype,"name",2),lt([a()],e.prototype,"value",1),lt([a({type:Boolean,reflect:!0})],e.prototype,"pristine",2),lt([a({type:Boolean,reflect:!0})],e.prototype,"required",2),lt([a({type:String,attribute:"required-message"})],e.prototype,"requiredMessage",2),lt([a({type:Boolean,reflect:!0})],e.prototype,"error",2),lt([a({type:String,attribute:"error-message"})],e.prototype,"errorMessage",2),e};var Vc=Object.defineProperty,sn=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,Rc=Object.prototype.propertyIsEnumerable,nn=(t,e,r)=>e in t?Vc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Fc=(t,e)=>{for(var r in e||(e={}))Bc.call(e,r)&&nn(t,r,e[r]);if(sn)for(var r of sn(e))Rc.call(e,r)&&nn(t,r,e[r]);return t};class k extends Event{constructor(e,r={}){super(e,Fc({},r)),this.detail=r.detail||{}}}var Gc=Object.defineProperty,an=Object.getOwnPropertySymbols,qc=Object.prototype.hasOwnProperty,Wc=Object.prototype.propertyIsEnumerable,ln=(t,e,r)=>e in t?Gc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,un=(t,e)=>{for(var r in e||(e={}))qc.call(e,r)&&ln(t,r,e[r]);if(an)for(var r of an(e))Wc.call(e,r)&&ln(t,r,e[r]);return t};class It extends k{constructor(e,r={}){super(e,un(un({},{bubbles:!0}),r))}}It.VALID="valid",It.INVALID="invalid";var Kc=Object.defineProperty,cn=Object.getOwnPropertySymbols,Xc=Object.prototype.hasOwnProperty,Yc=Object.prototype.propertyIsEnumerable,hn=(t,e,r)=>e in t?Kc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,dn=(t,e)=>{for(var r in e||(e={}))Xc.call(e,r)&&hn(t,r,e[r]);if(cn)for(var r of cn(e))Yc.call(e,r)&&hn(t,r,e[r]);return t};class Re extends k{constructor(e,r={}){super(e,dn(dn({},{bubbles:!0,cancelable:!0}),r))}}Re.SELECTED="selected",Re.DESELECTED="deselected";var Zc=Object.defineProperty,pn=Object.getOwnPropertySymbols,Qc=Object.prototype.hasOwnProperty,Jc=Object.prototype.propertyIsEnumerable,vn=(t,e,r)=>e in t?Zc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,fn=(t,e)=>{for(var r in e||(e={}))Qc.call(e,r)&&vn(t,r,e[r]);if(pn)for(var r of pn(e))Jc.call(e,r)&&vn(t,r,e[r]);return t};class ti extends k{constructor(e,r={}){super(e,fn(fn({},{bubbles:!0}),r))}}ti.CHANGE="change";var eh=Object.defineProperty,th=Object.getOwnPropertyDescriptor,ri=(t,e,r,o)=>{for(var i=o>1?void 0:o?th(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&eh(e,r,i),i};class be extends fe(ve("",v)){constructor(e="checkbox"){super(),this.labelPosition="right",this._checked=!1,this.disabled=!1,this._value===""&&(this._value="on"),this.inputRole=e,this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(e){const r=this._value;this._value=e,"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._checked&&this.name!==""?this._value:null),this.requestUpdate("value",r)}get checked(){return this._checked}set checked(e){const r=this._checked;this._checked=e,this._internals.setFormValue(this._checked&&this.name!==""?this._value?this._value:"on":null),this.requestUpdate("checked",r)}getFormElement(){return this._input}_onKeypress(e){e.key=="Enter"&&this.submit()}hasValue(){return this.checked}formResetCallback(){super.formResetCallback(),this.checked=this.hasAttribute("checked")}firstUpdated(e){var r;super.firstUpdated(e);const o=(r=this.shadowRoot)==null?void 0:r.querySelector("label");let i=!1;this._input.addEventListener("blur",()=>{i===!1&&this.style.setProperty("--uui-show-focus-outline","1"),i=!1}),o.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),i=!0}),o.addEventListener("mouseup",()=>{i=!1})}focus(){this._input.focus()}click(){this._input.click()}_onInputChange(e){e.stopPropagation(),this.pristine=!1,this.checked=this._input.checked,this.dispatchEvent(new ti(ti.CHANGE))}render(){return l`
538
538
  <label>
539
539
  <input
540
540
  id="input"
@@ -587,12 +587,12 @@
587
587
  :host([disabled]) .label {
588
588
  opacity: 0.5;
589
589
  }
590
- `],ti([a({type:String,attribute:"label-position",reflect:!0})],be.prototype,"labelPosition",2),ti([a({type:Boolean})],be.prototype,"checked",1),ti([a({type:Boolean,reflect:!0})],be.prototype,"disabled",2),ti([C("#input")],be.prototype,"_input",2);/**
590
+ `],ri([a({type:String,attribute:"label-position",reflect:!0})],be.prototype,"labelPosition",2),ri([a({type:Boolean})],be.prototype,"checked",1),ri([a({type:Boolean,reflect:!0})],be.prototype,"disabled",2),ri([C("#input")],be.prototype,"_input",2);/**
591
591
  * @license
592
592
  * Copyright 2020 Google LLC
593
593
  * SPDX-License-Identifier: BSD-3-Clause
594
- */const ao=Symbol.for(""),Tc=t=>{if(t?.r===ao)return t?._$litStatic$},Mc=t=>({_$litStatic$:t,r:ao}),cn=(t,...e)=>({_$litStatic$:e.reduce((r,o,i)=>r+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
595
- take care to ensure page security.`)})(o)+t[i+1],t[0]),r:ao}),hn=new Map,jc=t=>(e,...r)=>{const o=r.length;let i,s;const n=[],u=[];let c,h=0,m=!1;for(;h<o;){for(c=e[h];h<o&&(s=r[h],(i=Tc(s))!==void 0);)c+=i+e[++h],m=!0;h!==o&&u.push(s),n.push(c),h++}if(h===o&&n.push(e[o]),m){const y=n.join("$$lit$$");(e=hn.get(y))===void 0&&(n.raw=n,hn.set(y,e=n)),r=u}return t(e,...r)},dn=jc(l);var Vc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,It=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vc(e,r,i),i};let Ce=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag=cn`h5`,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}set headlineVariant(t){t?this._headlineVariantTag=Mc(t):this._headlineVariantTag=cn`h5`}renderHeader(){return dn`<div
594
+ */const lo=Symbol.for(""),rh=t=>{if(t?.r===lo)return t?._$litStatic$},ih=t=>({_$litStatic$:t,r:lo}),bn=(t,...e)=>({_$litStatic$:e.reduce((r,o,i)=>r+(s=>{if(s._$litStatic$!==void 0)return s._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${s}. Use 'unsafeStatic' to pass non-literal values, but
595
+ take care to ensure page security.`)})(o)+t[i+1],t[0]),r:lo}),gn=new Map,oh=t=>(e,...r)=>{const o=r.length;let i,s;const n=[],u=[];let c,h=0,m=!1;for(;h<o;){for(c=e[h];h<o&&(s=r[h],(i=rh(s))!==void 0);)c+=i+e[++h],m=!0;h!==o&&u.push(s),n.push(c),h++}if(h===o&&n.push(e[o]),m){const y=n.join("$$lit$$");(e=gn.get(y))===void 0&&(n.raw=n,gn.set(y,e=n)),r=u}return t(e,...r)},mn=oh(l);var sh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,zt=(t,e,r,o)=>{for(var i=o>1?void 0:o?nh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sh(e,r,i),i};let Ce=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineVariantTag=bn`h5`,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._headerSlotHasContent=!1,this._headerSlotChanged=t=>{this._headerSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}set headlineVariant(t){t?this._headlineVariantTag=ih(t):this._headlineVariantTag=bn`h5`}renderHeader(){return mn`<div
596
596
  id="header"
597
597
  class="uui-text"
598
598
  style=${this._headerSlotHasContent||this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
@@ -604,10 +604,10 @@
604
604
  <slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
605
605
  </${this._headlineVariantTag}>
606
606
  <slot name="header" @slotchange=${this._headerSlotChanged}></slot>
607
- </div>`}render(){return dn`
607
+ </div>`}render(){return mn`
608
608
  ${this.renderHeader()}
609
609
  <slot></slot>
610
- `}};Ce.styles=[Xr,d`
610
+ `}};Ce.styles=[Yr,d`
611
611
  :host {
612
612
  display: block;
613
613
  box-shadow: var(--uui-shadow-depth-1,0 1px 3px rgba(0,0,0,0.12) , 0 1px 2px rgba(0,0,0,0.24));
@@ -625,7 +625,7 @@
625
625
  display: block;
626
626
  padding: var(--uui-box-default-padding, var(--uui-size-space-5,18px));
627
627
  }
628
- `],It([a({type:String})],Ce.prototype,"headline",2),It([a({attribute:"headline-variant"})],Ce.prototype,"headlineVariant",1),It([f()],Ce.prototype,"_headlineVariantTag",2),It([f()],Ce.prototype,"_headlineSlotHasContent",2),It([f()],Ce.prototype,"_headerSlotHasContent",2),Ce=It([p("uui-box")],Ce);var Rc=Object.defineProperty,Fc=Object.getOwnPropertyDescriptor,lo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rc(e,r,i),i};let ut=class extends v{constructor(){super(...arguments),this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return l`<a id="link" href=${this.href}><slot></slot></a
628
+ `],zt([a({type:String})],Ce.prototype,"headline",2),zt([a({attribute:"headline-variant"})],Ce.prototype,"headlineVariant",1),zt([f()],Ce.prototype,"_headlineVariantTag",2),zt([f()],Ce.prototype,"_headlineSlotHasContent",2),zt([f()],Ce.prototype,"_headerSlotHasContent",2),Ce=zt([p("uui-box")],Ce);var ah=Object.defineProperty,lh=Object.getOwnPropertyDescriptor,uo=(t,e,r,o)=>{for(var i=o>1?void 0:o?lh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ah(e,r,i),i};let ut=class extends v{constructor(){super(...arguments),this.href="#",this.lastItem=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","listitem")}renderLinkAndSeparator(){return l`<a id="link" href=${this.href}><slot></slot></a
629
629
  ><span part="separator"></span>`}renderCurrent(){return l`<span id="last-item"><slot></slot></span>`}render(){return l`${this.lastItem?this.renderCurrent():this.renderLinkAndSeparator()}`}};ut.styles=[d`
630
630
  :host {
631
631
  font-size: var(--uui-type-small-size,12px);
@@ -664,7 +664,7 @@
664
664
  #link {
665
665
  cursor: pointer;
666
666
  }
667
- `],lo([a()],ut.prototype,"href",2),lo([a({type:Boolean,attribute:"last-item"})],ut.prototype,"lastItem",2),ut=lo([p("uui-breadcrumb-item")],ut);var Gc=Object.defineProperty,qc=Object.getOwnPropertyDescriptor,pn=(t,e,r,o)=>{for(var i=o>1?void 0:o?qc(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Gc(e,r,i),i};let hr=class extends v{elementIsBreadcrumbItem(t){return t instanceof ut}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return l`<ol id="breadcrumbs-list">
667
+ `],uo([a()],ut.prototype,"href",2),uo([a({type:Boolean,attribute:"last-item"})],ut.prototype,"lastItem",2),ut=uo([p("uui-breadcrumb-item")],ut);var uh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,_n=(t,e,r,o)=>{for(var i=o>1?void 0:o?ch(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&uh(e,r,i),i};let hr=class extends v{elementIsBreadcrumbItem(t){return t instanceof ut}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label","breadcrumb"),this.setAttribute("role","navigation")}handleSlotChange(){if(this.slotNodes.length>0){const t=this.slotNodes[this.slotNodes.length-1];t.setAttribute("aria-current","page"),this.elementIsBreadcrumbItem(t)&&(t.lastItem=!0)}}render(){return l`<ol id="breadcrumbs-list">
668
668
  <slot @slotchange=${this.handleSlotChange}></slot>
669
669
  </ol>`}};hr.styles=[d`
670
670
  :host {
@@ -680,7 +680,7 @@
680
680
  margin-inline-end: 0px;
681
681
  padding-inline-start: 0px;
682
682
  }
683
- `],pn([Be({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],hr.prototype,"slotNodes",2),hr=pn([p("uui-breadcrumbs")],hr);const Wc=d`
683
+ `],_n([Be({flatten:!0,selector:"uui-breadcrumb-item, [uui-breadcrumb-item], [role=listitem]"})],hr.prototype,"slotNodes",2),hr=_n([p("uui-breadcrumbs")],hr);const hh=d`
684
684
  @keyframes uui-blink {
685
685
  0%,
686
686
  100% {
@@ -690,7 +690,7 @@
690
690
  opacity: 1;
691
691
  }
692
692
  }
693
- `,Kc=Ve("uui-blink 0.9s infinite both"),vn=d`
693
+ `,dh=Ve("uui-blink 0.9s infinite both"),yn=d`
694
694
  @keyframes pulse {
695
695
  0% {
696
696
  -webkit-transform: translate(-50%, -50%) scale(0.2);
@@ -708,7 +708,7 @@
708
708
  opacity: 0;
709
709
  }
710
710
  }
711
- `;Ve("pulse 0.8s ease-in-out infinite both");const ri=d`
711
+ `;Ve("pulse 0.8s ease-in-out infinite both");const ii=d`
712
712
  @keyframes uui-horizontal-shake {
713
713
  10%,
714
714
  90% {
@@ -731,7 +731,7 @@
731
731
  transform: translateX(2px);
732
732
  }
733
733
  }
734
- `,ii=Ve("uui-horizontal-shake 600ms ease backwards");/**
734
+ `,oi=Ve("uui-horizontal-shake 600ms ease backwards");/**
735
735
  * @license
736
736
  * Copyright 2017 Google LLC
737
737
  * SPDX-License-Identifier: BSD-3-Clause
@@ -739,7 +739,7 @@
739
739
  * @license
740
740
  * Copyright 2018 Google LLC
741
741
  * SPDX-License-Identifier: BSD-3-Clause
742
- */const fn="important",Xc=" !"+fn,ge=At(class extends Ut{constructor(t){var e;if(super(t),t.type!==le.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ht===void 0){this.ht=new Set;for(const o in e)this.ht.add(o);return this.render(e)}this.ht.forEach(o=>{e[o]==null&&(this.ht.delete(o),o.includes("-")?r.removeProperty(o):r[o]="")});for(const o in e){const i=e[o];if(i!=null){this.ht.add(o);const s=typeof i=="string"&&i.endsWith(Xc);o.includes("-")||s?r.setProperty(o,s?i.slice(0,-11):i,s?fn:""):r[o]=i}}return F}});var Yc=Object.defineProperty,bn=Object.getOwnPropertySymbols,Zc=Object.prototype.hasOwnProperty,Qc=Object.prototype.propertyIsEnumerable,gn=(t,e,r)=>e in t?Yc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,mn=(t,e)=>{for(var r in e||(e={}))Zc.call(e,r)&&gn(t,r,e[r]);if(bn)for(var r of bn(e))Qc.call(e,r)&&gn(t,r,e[r]);return t};class oi extends O{constructor(e,r={}){super(e,mn(mn({},{bubbles:!0,composed:!0}),r))}}oi.CLICK="click";var Jc=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,si=(t,e,r,o)=>{for(var i=o>1?void 0:o?eh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Jc(e,r,i),i};let ct=class extends v{constructor(){super(...arguments),this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new oi(oi.CLICK))}render(){return l`
742
+ */const wn="important",ph=" !"+wn,ge=At(class extends Ut{constructor(t){var e;if(super(t),t.type!==le.ATTRIBUTE||t.name!=="style"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return o==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(this.ht===void 0){this.ht=new Set;for(const o in e)this.ht.add(o);return this.render(e)}this.ht.forEach(o=>{e[o]==null&&(this.ht.delete(o),o.includes("-")?r.removeProperty(o):r[o]="")});for(const o in e){const i=e[o];if(i!=null){this.ht.add(o);const s=typeof i=="string"&&i.endsWith(ph);o.includes("-")||s?r.setProperty(o,s?i.slice(0,-11):i,s?wn:""):r[o]=i}}return F}});var vh=Object.defineProperty,xn=Object.getOwnPropertySymbols,fh=Object.prototype.hasOwnProperty,bh=Object.prototype.propertyIsEnumerable,$n=(t,e,r)=>e in t?vh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,En=(t,e)=>{for(var r in e||(e={}))fh.call(e,r)&&$n(t,r,e[r]);if(xn)for(var r of xn(e))bh.call(e,r)&&$n(t,r,e[r]);return t};class si extends k{constructor(e,r={}){super(e,En(En({},{bubbles:!0,composed:!0}),r))}}si.CLICK="click";var gh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,ni=(t,e,r,o)=>{for(var i=o>1?void 0:o?mh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gh(e,r,i),i};let ct=class extends v{constructor(){super(...arguments),this._position=0,this.vertical=!1}_onMouseMove(t){this._position=this.vertical?t.offsetY:t.offsetX}_handleClick(t){t.preventDefault(),t.stopImmediatePropagation(),this.dispatchEvent(new si(si.CLICK))}render(){return l`
743
743
  <button
744
744
  id="button-wrapper"
745
745
  @mousemove=${this._onMouseMove}
@@ -757,7 +757,7 @@
757
757
  </svg>
758
758
  </div>
759
759
  </button>
760
- `}};ct.styles=[Wc,d`
760
+ `}};ct.styles=[hh,d`
761
761
  :host {
762
762
  display: flex;
763
763
  position: relative;
@@ -811,7 +811,7 @@
811
811
  :host(:focus) #button-wrapper:before,
812
812
  :host(:focus-within) #button-wrapper:before,
813
813
  :host(:hover) #button-wrapper:before {
814
- animation: ${Kc};
814
+ animation: ${dh};
815
815
  background-color: var(--uui-color-interactive-emphasis,#3544b1);
816
816
  border-color: var(--uui-color-surface,#fff) !important;
817
817
  }
@@ -907,25 +907,25 @@
907
907
  #button-wrapper:active #plus {
908
908
  transform: scale(1.1);
909
909
  }
910
- `],si([f()],ct.prototype,"_position",2),si([a({type:String})],ct.prototype,"label",2),si([a({type:Boolean,reflect:!0})],ct.prototype,"vertical",2),ct=si([p("uui-button-inline-create")],ct);class th{constructor(e,r){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(r)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}}const _=(t,e,r=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",r,t)},_n=(t,e)=>{function r(i){const s=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,u=s.left+n.scrollX,c=s.top+n.scrollY;let h;i instanceof TouchEvent?h=i.touches[0]:h=i;const m=h.pageX-u,y=h.pageY-c;e?.onMove&&e.onMove(m,y)}function o(){document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",o),e?.onStop&&e.onStop()}document.addEventListener("pointermove",r,{passive:!0}),document.addEventListener("pointerup",o),e?.initialEvent&&r(e.initialEvent)},L=(t,e,r)=>Math.min(Math.max(t,e),r),yn=(t,e,r)=>r+e-t,ni=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
910
+ `],ni([f()],ct.prototype,"_position",2),ni([a({type:String})],ct.prototype,"label",2),ni([a({type:Boolean,reflect:!0})],ct.prototype,"vertical",2),ct=ni([p("uui-button-inline-create")],ct);class _h{constructor(e,r){this._callback=e,this._timerId=null,this._remaining=null,this._onComplete=()=>{this._remaining=null,this._callback()},this.setDuration(r)}setDuration(e){this._duration=e,this._timerId!==null&&this.restart()}start(){this._timerId===null&&this.resume()}restart(){this._remaining=this._duration,this.resume()}pause(){this._timerId!==null&&(window.clearTimeout(this._timerId),this._timerId=null,this._remaining!==null&&(this._remaining-=Date.now()-this._startTime))}resume(){this._timerId!==null&&window.clearTimeout(this._timerId),this._remaining===null&&(this._remaining=this._duration),this._startTime=Date.now(),this._timerId=window.setTimeout(this._onComplete,this._remaining)}destroy(){this.pause()}}const _=(t,e,r=`This element has to be present for ${t.nodeName} to work appropriate.`)=>{customElements.get(e)||console.warn(`%c ${t.nodeName} requires ${e} element to be registered!`,"font-weight: bold;",r,t)},Pn=(t,e)=>{function r(i){const s=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,u=s.left+n.scrollX,c=s.top+n.scrollY;let h;i instanceof TouchEvent?h=i.touches[0]:h=i;const m=h.pageX-u,y=h.pageY-c;e?.onMove&&e.onMove(m,y)}function o(){document.removeEventListener("pointermove",r),document.removeEventListener("pointerup",o),e?.onStop&&e.onStop()}document.addEventListener("pointermove",r,{passive:!0}),document.addEventListener("pointerup",o),e?.initialEvent&&r(e.initialEvent)},L=(t,e,r)=>Math.min(Math.max(t,e),r),Cn=(t,e,r)=>r+e-t,ai=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
911
911
  <path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/>
912
- </svg>`,rh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,ih=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,oh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,wn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,sh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,nh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,ah=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,xn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
912
+ </svg>`,yh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,wh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,xh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,On=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,$h=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Eh=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,Ph=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,kn=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
913
913
  <path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/>
914
914
  </svg>`;/**
915
915
  * @license
916
916
  * Copyright 2018 Google LLC
917
917
  * SPDX-License-Identifier: BSD-3-Clause
918
- */const I=t=>t??x;var lh=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,me=(t,e,r,o)=>{for(var i=o>1?void 0:o?uh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&lh(e,r,i),i};let W=class extends fe(ve("",v)){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t;switch(this.state){case"waiting":_(this,"uui-loader-circle"),t=l`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":_(this,"uui-icon"),t=l`<uui-icon
918
+ */const O=t=>t??x;var Ch=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,me=(t,e,r,o)=>{for(var i=o>1?void 0:o?Oh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ch(e,r,i),i};let K=class extends fe(ve("",v)){constructor(){super(),this.type="button",this.disabled=!1,this.look="default",this.color="default",this.compact=!1,this.state=void 0,this.addEventListener("click",this._onHostClick)}getFormElement(){return this._button}_onHostClick(t){var e;if(this.disabled){t.preventDefault(),t.stopImmediatePropagation();return}if((e=this._internals)!=null&&e.form)switch(this.type){case"reset":this._internals.form.reset();break;case"button":break;default:this._internals.form.requestSubmit?this._internals.form.requestSubmit():this._internals.form.dispatchEvent(new SubmitEvent("submit"));break}}updated(t){super.updated(t),t.has("state")&&(clearTimeout(this._resetStateTimeout),(this.state==="success"||this.state==="failed")&&(this._resetStateTimeout=setTimeout(()=>this.state=void 0,2e3)))}renderState(){let t;switch(this.state){case"waiting":_(this,"uui-loader-circle"),t=l`<uui-loader-circle id="loader"></uui-loader-circle>`;break;case"success":_(this,"uui-icon"),t=l`<uui-icon
919
919
  name="check"
920
- .fallback=${ni.strings[0]}></uui-icon>`;break;case"failed":_(this,"uui-icon"),t=l`<uui-icon
920
+ .fallback=${ai.strings[0]}></uui-icon>`;break;case"failed":_(this,"uui-icon"),t=l`<uui-icon
921
921
  name="wrong"
922
- .fallback=${xn.strings[0]}></uui-icon>`;break;default:return x}return l`<div id="state">${t}</div>`}render(){return this.href?l`
922
+ .fallback=${kn.strings[0]}></uui-icon>`;break;default:return x}return l`<div id="state">${t}</div>`}render(){return this.href?l`
923
923
  <a
924
924
  id="button"
925
925
  aria-label=${this.label}
926
- href=${I(this.disabled?void 0:this.href)}
927
- target=${I(this.target||void 0)}
928
- rel=${I(this.target==="_blank"?"noopener noreferrer":void 0)}>
926
+ href=${O(this.disabled?void 0:this.href)}
927
+ target=${O(this.target||void 0)}
928
+ rel=${O(this.target==="_blank"?"noopener noreferrer":void 0)}>
929
929
  ${this.renderState()} ${this.renderLabel()}
930
930
  <slot name="extra"></slot>
931
931
  </a>
@@ -937,7 +937,7 @@
937
937
  ${this.renderState()} ${this.renderLabel()}
938
938
  <slot name="extra"></slot>
939
939
  </button>
940
- `}};W.styles=[ri,d`
940
+ `}};K.styles=[ii,d`
941
941
  :host {
942
942
  position: relative;
943
943
  display: inline-flex;
@@ -1025,7 +1025,7 @@
1025
1025
  }
1026
1026
  button[disabled]:active,
1027
1027
  a:not([href]):active {
1028
- animation: ${ii};
1028
+ animation: ${oi};
1029
1029
  }
1030
1030
  #icon-check,
1031
1031
  #icon-wrong {
@@ -1240,7 +1240,7 @@
1240
1240
  var(--color-standalone)
1241
1241
  );
1242
1242
  }
1243
- `],me([a({type:String,reflect:!0})],W.prototype,"type",2),me([a({type:Boolean,reflect:!0})],W.prototype,"disabled",2),me([a({reflect:!0})],W.prototype,"look",2),me([a({reflect:!0})],W.prototype,"color",2),me([a({type:Boolean,reflect:!0})],W.prototype,"compact",2),me([a({type:String,reflect:!0})],W.prototype,"state",2),me([a({type:String})],W.prototype,"href",2),me([a({type:String})],W.prototype,"target",2),me([C("#button")],W.prototype,"_button",2),W=me([p("uui-button")],W);class Dt extends O{}Dt.OPEN="open";var ch=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,uo=(t,e,r,o)=>{for(var i=o>1?void 0:o?hh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ch(e,r,i),i};let J=class extends Jr(St(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new Dt(Dt.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Dt(Dt.OPEN)))}};J.styles=[d`
1243
+ `],me([a({type:String,reflect:!0})],K.prototype,"type",2),me([a({type:Boolean,reflect:!0})],K.prototype,"disabled",2),me([a({reflect:!0})],K.prototype,"look",2),me([a({reflect:!0})],K.prototype,"color",2),me([a({type:Boolean,reflect:!0})],K.prototype,"compact",2),me([a({type:String,reflect:!0})],K.prototype,"state",2),me([a({type:String})],K.prototype,"href",2),me([a({type:String})],K.prototype,"target",2),me([C("#button")],K.prototype,"_button",2),K=me([p("uui-button")],K);class Dt extends k{}Dt.OPEN="open";var kh=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,dr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Sh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&kh(e,r,i),i};let G=class extends ei(kt(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){this.disabled||(t.stopPropagation(),this.dispatchEvent(new Dt(Dt.OPEN)))}handleOpenKeydown(t){this.disabled||t.key==="Enter"&&(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Dt(Dt.OPEN)))}render(){return l`<slot></slot>`}};G.styles=[d`
1244
1244
  :host {
1245
1245
  position: relative;
1246
1246
  display: flex;
@@ -1319,25 +1319,41 @@
1319
1319
  :host([select-only]) ::slotted(*) {
1320
1320
  pointer-events: none;
1321
1321
  }
1322
- `],uo([a({type:Boolean,reflect:!0,attribute:"disabled"})],J.prototype,"disabled",2),uo([a({type:Boolean,reflect:!0})],J.prototype,"error",2),J=uo([p("uui-card")],J);var dh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,co=(t,e,r,o)=>{for(var i=o>1?void 0:o?ph(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&dh(e,r,i),i};let Lt=class extends J{constructor(){super(...arguments),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return _(this,"uui-icon"),l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`
1323
- <div
1324
- id="open-part"
1325
- tabindex=${this.disabled?x:0}
1326
- @click=${this.handleOpenClick}
1327
- @keydown=${this.handleOpenKeydown}>
1328
- <span id="icon">
1329
- <slot name="icon" @slotchange=${this._onSlotIconChange}></slot>
1330
- ${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}
1331
- </span>
1332
- <span id="name"> ${this.name} </span>
1333
- </div>
1322
+
1323
+ a {
1324
+ text-decoration: none;
1325
+ color: inherit;
1326
+ }
1327
+ `],dr([a({type:Boolean,reflect:!0,attribute:"disabled"})],G.prototype,"disabled",2),dr([a({type:Boolean,reflect:!0})],G.prototype,"error",2),dr([a({type:String})],G.prototype,"href",2),dr([a({type:String})],G.prototype,"target",2),G=dr([p("uui-card")],G);var Ih=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,co=(t,e,r,o)=>{for(var i=o>1?void 0:o?zh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ih(e,r,i),i},Ah=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Sn=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},In=(t,e,r)=>(Ah(t,e,"access private method"),r),ho,zn,po,An;let Lt=class extends G{constructor(){super(...arguments),Sn(this,ho),Sn(this,po),this.name="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}_renderFallbackIcon(){return _(this,"uui-icon"),l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`
1328
+ ${this.href?In(this,po,An).call(this):In(this,ho,zn).call(this)}
1334
1329
  <!-- Select border must be right after #open-part -->
1335
1330
  <div id="select-border"></div>
1336
1331
 
1337
1332
  <slot></slot>
1338
1333
  <slot name="tag"></slot>
1339
1334
  <slot name="actions"></slot>
1340
- `}};Lt.styles=[...J.styles,d`
1335
+ `}};ho=new WeakSet,zn=function(){return l`<div
1336
+ id="open-part"
1337
+ tabindex=${this.disabled?x:0}
1338
+ @click=${this.handleOpenClick}
1339
+ @keydown=${this.handleOpenKeydown}>
1340
+ <span id="icon">
1341
+ <slot name="icon" @slotchange=${this._onSlotIconChange}></slot>
1342
+ ${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}
1343
+ </span>
1344
+ <span id="name"> ${this.name} </span>
1345
+ </div>`},po=new WeakSet,An=function(){return l`<a
1346
+ id="open-part"
1347
+ tabindex=${this.disabled?x:0}
1348
+ href=${O(this.disabled?void 0:this.href)}
1349
+ target=${O(this.target||void 0)}
1350
+ rel=${O(this.target==="_blank"?"noopener noreferrer":void 0)}>
1351
+ <span id="icon">
1352
+ <slot name="icon" @slotchange=${this._onSlotIconChange}></slot>
1353
+ ${this._iconSlotHasContent===!1?this._renderFallbackIcon():""}
1354
+ </span>
1355
+ <span id="name"> ${this.name} </span>
1356
+ </a>`},Lt.styles=[...G.styles,d`
1341
1357
  :host {
1342
1358
  min-width: 250px;
1343
1359
  flex-direction: column;
@@ -1405,14 +1421,14 @@
1405
1421
  #name {
1406
1422
  margin-top: 4px;
1407
1423
  }
1408
- `],co([a({type:String})],Lt.prototype,"name",2),co([f()],Lt.prototype,"_iconSlotHasContent",2),Lt=co([p("uui-card-content-node")],Lt);var vh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,bh=(t,e,r,o)=>{for(var i=o>1?void 0:o?fh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&vh(e,r,i),i};let ai=class extends v{render(){return l`<svg
1424
+ `],co([a({type:String})],Lt.prototype,"name",2),co([f()],Lt.prototype,"_iconSlotHasContent",2),Lt=co([p("uui-card-content-node")],Lt);var Uh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Lh=(t,e,r,o)=>{for(var i=o>1?void 0:o?Dh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Uh(e,r,i),i};let li=class extends v{render(){return l`<svg
1409
1425
  xmlns="http://www.w3.org/2000/svg"
1410
1426
  viewBox="0 0 512 512"
1411
1427
  width="100%"
1412
1428
  id="icon">
1413
1429
  <path
1414
1430
  d="M450.962 169.833v-19.248c0-23.398-19.035-42.436-42.434-42.436H257.306c-5.885-16.926-21.99-29.1-40.885-29.1h-89.758c-20.545 0-37.795 14.391-42.191 33.623-13.891 7.016-23.486 21.45-23.486 37.912V169.897c-7.148 7.774-11.443 18.122-11.443 29.287v.956l.062.953c.045.704 4.639 70.713 5.469 95.492l3.137 93.62c.033 6.024.682 14.788 5.271 23.301 6.564 12.175 19.002 19.442 33.273 19.442h318.49c14.273 0 26.713-7.268 33.275-19.445 4.588-8.512 5.236-17.275 5.271-23.298l3.135-93.62c.832-24.782 5.424-94.788 5.471-95.492l.061-.953v-.956c0-11.203-4.314-21.574-11.496-29.351zM90.093 150.585c0-7.281 5.84-13.189 13.09-13.318h-.125c5.324 0 9.441-9.694 9.441-13.382l-.006-1.562c0-7.824 6.344-14.168 14.17-14.168h89.758c7.826 0 14.166 6.344 14.166 14.168v1.562c0 3.663 4.062 13.239 9.332 13.37h168.609c7.363 0 13.328 5.969 13.328 13.33v9.201H90.093v-9.201zm337.744 145.028c-.854 25.538-3.15 94.062-3.15 94.062 0 7.825-1.617 14.171-9.441 14.171H96.755c-7.822 0-9.439-6.346-9.439-14.171l-3.152-94.062c-.855-25.538-5.516-96.428-5.516-96.428 0-6.893 4.926-12.631 11.445-13.9l331.764-.009c6.547 1.251 11.494 6.998 11.494 13.909 0 .001-4.657 70.89-5.514 96.428z" />
1415
- </svg> `}};ai.styles=[d`
1431
+ </svg> `}};li.styles=[d`
1416
1432
  :host {
1417
1433
  display: block;
1418
1434
  box-sizing: border-box;
@@ -1423,7 +1439,7 @@
1423
1439
  #icon {
1424
1440
  fill: var(--uui-color-border,#d8d7d9);
1425
1441
  }
1426
- `],ai=bh([p("uui-symbol-folder")],ai);var gh=Object.defineProperty,mh=Object.getOwnPropertyDescriptor,$n=(t,e,r,o)=>{for(var i=o>1?void 0:o?mh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gh(e,r,i),i};let dr=class extends v{constructor(){super(...arguments),this.type=""}render(){return l`<svg
1442
+ `],li=Lh([p("uui-symbol-folder")],li);var Nh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Un=(t,e,r,o)=>{for(var i=o>1?void 0:o?Th(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Nh(e,r,i),i};let pr=class extends v{constructor(){super(...arguments),this.type=""}render(){return l`<svg
1427
1443
  xmlns="http://www.w3.org/2000/svg"
1428
1444
  viewBox="0 0 512 512"
1429
1445
  width="100%"
@@ -1431,7 +1447,7 @@
1431
1447
  <path
1432
1448
  d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z" />
1433
1449
  </svg>
1434
- ${this.type?l`<span id="file-type">${this.type.toUpperCase()}</span>`:""} `}};dr.styles=[d`
1450
+ ${this.type?l`<span id="file-type">${this.type.toUpperCase()}</span>`:""} `}};pr.styles=[d`
1435
1451
  :host {
1436
1452
  position: relative;
1437
1453
  display: block;
@@ -1454,10 +1470,16 @@
1454
1470
  #icon {
1455
1471
  fill: var(--uui-color-border-standalone,#c2c2c2);
1456
1472
  }
1457
- `],$n([a({type:String})],dr.prototype,"type",2),dr=$n([p("uui-symbol-file")],dr);var _h=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,li=(t,e,r,o)=>{for(var i=o>1?void 0:o?yh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&_h(e,r,i),i};let ht=class extends J{constructor(){super(...arguments),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-folder"),_(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?l`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:l`<uui-symbol-file
1473
+ `],Un([a({type:String})],pr.prototype,"type",2),pr=Un([p("uui-symbol-file")],pr);var Hh=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,ui=(t,e,r,o)=>{for(var i=o>1?void 0:o?Mh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Hh(e,r,i),i},jh=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Dn=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Ln=(t,e,r)=>(jh(t,e,"access private method"),r),vo,Nn,fo,Tn;let ht=class extends G{constructor(){super(...arguments),Dn(this,vo),Dn(this,fo),this.name="",this.fileExt="",this.hasPreview=!1}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-folder"),_(this,"uui-symbol-file")}queryPreviews(t){this.hasPreview=t.composedPath()[0].assignedElements({flatten:!0}).length>0}renderMedia(){return this.hasPreview===!0?"":this.fileExt===""?l`<uui-symbol-folder id="folder-symbol"></uui-symbol-folder>`:l`<uui-symbol-file
1458
1474
  id="file-symbol"
1459
1475
  type="${this.fileExt}"></uui-symbol-file>`}render(){return l` ${this.renderMedia()}
1460
1476
  <slot @slotchange=${this.queryPreviews}></slot>
1477
+ ${this.href?Ln(this,fo,Tn).call(this):Ln(this,vo,Nn).call(this)}
1478
+ <!-- Select border must be right after .open-part -->
1479
+ <div id="select-border"></div>
1480
+
1481
+ <slot name="tag"></slot>
1482
+ <slot name="actions"></slot>`}};vo=new WeakSet,Nn=function(){return l`
1461
1483
  <button
1462
1484
  id="open-part"
1463
1485
  tabindex=${this.disabled?x:"0"}
@@ -1473,11 +1495,24 @@
1473
1495
  -->
1474
1496
  <span>${this.name}</span>
1475
1497
  </button>
1476
- <!-- Select border must be right after .open-part -->
1477
- <div id="select-border"></div>
1478
-
1479
- <slot name="tag"></slot>
1480
- <slot name="actions"></slot>`}};ht.styles=[...J.styles,d`
1498
+ `},fo=new WeakSet,Tn=function(){return l`
1499
+ <a
1500
+ id="open-part"
1501
+ tabindex=${this.disabled?x:"0"}
1502
+ href=${O(this.disabled?void 0:this.href)}
1503
+ target=${O(this.target||void 0)}
1504
+ rel=${O(this.target==="_blank"?"noopener noreferrer":void 0)}>
1505
+ <!--
1506
+ TODO: Implement when pop-out is ready
1507
+ <uui-icon
1508
+ id="info-icon"
1509
+ name="info"
1510
+ style="color: currentColor">
1511
+ </uui-icon>
1512
+ -->
1513
+ <span>${this.name}</span>
1514
+ </a>
1515
+ `},ht.styles=[...G.styles,d`
1481
1516
  #file-symbol,
1482
1517
  #folder-symbol {
1483
1518
  align-self: center;
@@ -1572,19 +1607,26 @@
1572
1607
  height: var(--uui-size-8);
1573
1608
  }
1574
1609
  */
1575
- `],li([a({type:String})],ht.prototype,"name",2),li([a({type:String,attribute:"file-ext"})],ht.prototype,"fileExt",2),li([f()],ht.prototype,"hasPreview",2),ht=li([p("uui-card-media")],ht);var wh=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,En=(t,e,r,o)=>{for(var i=o>1?void 0:o?xh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&wh(e,r,i),i};let pr=class extends J{constructor(){super(...arguments),this.name=""}connectedCallback(){super.connectedCallback(),_(this,"uui-avatar")}render(){return l`
1610
+ `],ui([a({type:String})],ht.prototype,"name",2),ui([a({type:String,attribute:"file-ext"})],ht.prototype,"fileExt",2),ui([f()],ht.prototype,"hasPreview",2),ht=ui([p("uui-card-media")],ht);var Vh=Object.defineProperty,Bh=Object.getOwnPropertyDescriptor,Hn=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vh(e,r,i),i},Rh=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Mn=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},jn=(t,e,r)=>(Rh(t,e,"access private method"),r),bo,Vn,go,Bn;let vr=class extends G{constructor(){super(...arguments),Mn(this,bo),Mn(this,go),this.name=""}connectedCallback(){super.connectedCallback(),_(this,"uui-avatar")}render(){return l`
1576
1611
  <uui-avatar id="avatar" name=${this.name} size="m"></uui-avatar>
1577
- <div
1578
- id="open-part"
1579
- tabindex=${this.disabled?x:"0"}
1580
- @click=${this.handleOpenClick}
1581
- @keydown=${this.handleOpenKeydown}>
1582
- <span> ${this.name} </span>
1583
- </div>
1612
+ ${this.href?jn(this,go,Bn).call(this):jn(this,bo,Vn).call(this)}
1584
1613
  <slot></slot>
1585
1614
  <slot name="tag"></slot>
1586
1615
  <slot name="actions"></slot>
1587
- `}};pr.styles=[...J.styles,d`
1616
+ `}};bo=new WeakSet,Vn=function(){return l`<div
1617
+ id="open-part"
1618
+ tabindex=${this.disabled?x:"0"}
1619
+ @click=${this.handleOpenClick}
1620
+ @keydown=${this.handleOpenKeydown}>
1621
+ <span> ${this.name} </span>
1622
+ </div>`},go=new WeakSet,Bn=function(){return l`<a
1623
+ id="open-part"
1624
+ tabindex=${this.disabled?x:"0"}
1625
+ href=${O(this.disabled?void 0:this.href)}
1626
+ target=${O(this.target||void 0)}
1627
+ rel=${O(this.target==="_blank"?"noopener noreferrer":void 0)}>
1628
+ <span>${this.name}</span>
1629
+ </a>`},vr.styles=[...G.styles,d`
1588
1630
  :host {
1589
1631
  min-width: 250px;
1590
1632
  flex-direction: column;
@@ -1656,9 +1698,9 @@
1656
1698
  text-decoration: underline;
1657
1699
  color: var(--uui-color-interactive-emphasis,#3544b1);
1658
1700
  }
1659
- `],En([a({type:String})],pr.prototype,"name",2),pr=En([p("uui-card-user")],pr);var $h=Object.defineProperty,Eh=Object.getOwnPropertyDescriptor,Pn=(t,e,r,o)=>{for(var i=o>1?void 0:o?Eh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$h(e,r,i),i};let vr=class extends v{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return l`<svg viewBox="0 0 512 512">
1701
+ `],Hn([a({type:String})],vr.prototype,"name",2),vr=Hn([p("uui-card-user")],vr);var Fh=Object.defineProperty,Gh=Object.getOwnPropertyDescriptor,Rn=(t,e,r,o)=>{for(var i=o>1?void 0:o?Gh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fh(e,r,i),i};let fr=class extends v{constructor(){super(),this.open=!1,console.error("\xB4uui-caret\xB4 is deprecated, please use \xB4uui-symbol-expand\xB4 or \xB4uui-symbol-sort\xB4")}render(){return l`<svg viewBox="0 0 512 512">
1660
1702
  <path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path>
1661
- </svg>`}};vr.styles=[d`
1703
+ </svg>`}};fr.styles=[d`
1662
1704
  :host {
1663
1705
  display: inline-block;
1664
1706
  width: 12px;
@@ -1674,11 +1716,11 @@
1674
1716
  :host([open]) svg {
1675
1717
  transform: rotate(180deg);
1676
1718
  }
1677
- `],Pn([a({type:Boolean,reflect:!0})],vr.prototype,"open",2),vr=Pn([p("uui-caret")],vr);var Ph=Object.defineProperty,Ch=Object.getOwnPropertyDescriptor,Oh=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ch(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ph(e,r,i),i};let fr=class extends be{renderCheckbox(){return l`
1719
+ `],Rn([a({type:Boolean,reflect:!0})],fr.prototype,"open",2),fr=Rn([p("uui-caret")],fr);var qh=Object.defineProperty,Wh=Object.getOwnPropertyDescriptor,Kh=(t,e,r,o)=>{for(var i=o>1?void 0:o?Wh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&qh(e,r,i),i};let br=class extends be{renderCheckbox(){return l`
1678
1720
  <div id="ticker">
1679
- <div id="icon-check">${ni}</div>
1721
+ <div id="icon-check">${ai}</div>
1680
1722
  </div>
1681
- `}};fr.formAssociated=!0,fr.styles=[...be.styles,ri,d`
1723
+ `}};br.formAssociated=!0,br.styles=[...be.styles,ii,d`
1682
1724
  :host {
1683
1725
  --uui-checkbox-size: 18px;
1684
1726
  }
@@ -1814,16 +1856,16 @@
1814
1856
  fill: var(--uui-color-disabled-contrast,#c4c4c4);
1815
1857
  }
1816
1858
  :host([disabled]) label:active #ticker {
1817
- animation: ${ii};
1859
+ animation: ${oi};
1818
1860
  }
1819
1861
  :host([disabled]) input:checked + #ticker #icon-check {
1820
1862
  fill: var(--uui-color-disabled-contrast,#c4c4c4);
1821
1863
  }
1822
- `],fr=Oh([p("uui-checkbox")],fr);/**
1864
+ `],br=Kh([p("uui-checkbox")],br);/**
1823
1865
  * @license
1824
1866
  * Copyright 2018 Google LLC
1825
1867
  * SPDX-License-Identifier: BSD-3-Clause
1826
- */const ui=At(class extends Ut{constructor(t){var e;if(super(t),t.type!==le.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,o;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!(!((r=this.nt)===null||r===void 0)&&r.has(s))&&this.it.add(s);return this.render(e)}const i=t.element.classList;this.it.forEach(s=>{s in e||(i.remove(s),this.it.delete(s))});for(const s in e){const n=!!e[s];n===this.it.has(s)||!((o=this.nt)===null||o===void 0)&&o.has(s)||(n?(i.add(s),this.it.add(s)):(i.remove(s),this.it.delete(s)))}return F}});var Sh={grad:.9,turn:360,rad:360/(2*Math.PI)},Oe=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},N=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ee=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Cn=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},On=function(t){return{r:ee(t.r,0,255),g:ee(t.g,0,255),b:ee(t.b,0,255),a:ee(t.a)}},ho=function(t){return{r:N(t.r),g:N(t.g),b:N(t.b),a:N(t.a,3)}},kh=/^#([0-9a-f]{3,8})$/i,ci=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Sn=function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=Math.max(e,r,o),n=s-Math.min(e,r,o),u=n?s===e?(r-o)/n:s===r?2+(o-e)/n:4+(e-r)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:i}},kn=function(t){var e=t.h,r=t.s,o=t.v,i=t.a;e=e/360*6,r/=100,o/=100;var s=Math.floor(e),n=o*(1-r),u=o*(1-(e-s)*r),c=o*(1-(1-e+s)*r),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:i}},zn=function(t){return{h:Cn(t.h),s:ee(t.s,0,100),l:ee(t.l,0,100),a:ee(t.a)}},In=function(t){return{h:N(t.h),s:N(t.s),l:N(t.l),a:N(t.a,3)}},An=function(t){return kn((r=(e=t).s,{h:e.h,s:(r*=((o=e.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:e.a}));var e,r,o},br=function(t){return{h:(e=Sn(t)).h,s:(i=(200-(r=e.s))*(o=e.v)/100)>0&&i<200?r*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,o,i},zh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ih=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ah=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Uh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Un={string:[[function(t){var e=kh.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?N(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?N(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Ah.exec(t)||Uh.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:On({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=zh.exec(t)||Ih.exec(t);if(!e)return null;var r,o,i=zn({h:(r=e[1],o=e[2],o===void 0&&(o="deg"),Number(r)*(Sh[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return An(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=i===void 0?1:i;return Oe(e)&&Oe(r)&&Oe(o)?On({r:Number(e),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,o=t.l,i=t.a,s=i===void 0?1:i;if(!Oe(e)||!Oe(r)||!Oe(o))return null;var n=zn({h:Number(e),s:Number(r),l:Number(o),a:Number(s)});return An(n)},"hsl"],[function(t){var e=t.h,r=t.s,o=t.v,i=t.a,s=i===void 0?1:i;if(!Oe(e)||!Oe(r)||!Oe(o))return null;var n=function(u){return{h:Cn(u.h),s:ee(u.s,0,100),v:ee(u.v,0,100),a:ee(u.a)}}({h:Number(e),s:Number(r),v:Number(o),a:Number(s)});return kn(n)},"hsv"]]},Dn=function(t,e){for(var r=0;r<e.length;r++){var o=e[r][0](t);if(o)return[o,e[r][1]]}return[null,void 0]},Dh=function(t){return typeof t=="string"?Dn(t.trim(),Un.string):typeof t=="object"&&t!==null?Dn(t,Un.object):[null,void 0]},po=function(t,e){var r=br(t);return{h:r.h,s:ee(r.s+100*e,0,100),l:r.l,a:r.a}},vo=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Ln=function(t,e){var r=br(t);return{h:r.h,s:r.s,l:ee(r.l+100*e,0,100),a:r.a}},Nn=function(){function t(e){this.parsed=Dh(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return N(vo(this.rgba),2)},t.prototype.isDark=function(){return vo(this.rgba)<.5},t.prototype.isLight=function(){return vo(this.rgba)>=.5},t.prototype.toHex=function(){return e=ho(this.rgba),r=e.r,o=e.g,i=e.b,n=(s=e.a)<1?ci(N(255*s)):"","#"+ci(r)+ci(o)+ci(i)+n;var e,r,o,i,s,n},t.prototype.toRgb=function(){return ho(this.rgba)},t.prototype.toRgbString=function(){return e=ho(this.rgba),r=e.r,o=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+o+", "+i+", "+s+")":"rgb("+r+", "+o+", "+i+")";var e,r,o,i,s},t.prototype.toHsl=function(){return In(br(this.rgba))},t.prototype.toHslString=function(){return e=In(br(this.rgba)),r=e.h,o=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+o+"%, "+i+"%, "+s+")":"hsl("+r+", "+o+"%, "+i+"%)";var e,r,o,i,s},t.prototype.toHsv=function(){return e=Sn(this.rgba),{h:N(e.h),s:N(e.s),v:N(e.v),a:N(e.a,3)};var e},t.prototype.invert=function(){return te({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),te(po(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),te(po(this.rgba,-e))},t.prototype.grayscale=function(){return te(po(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),te(Ln(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),te(Ln(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?te({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):N(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=br(this.rgba);return typeof e=="number"?te({h:e,s:r.s,l:r.l,a:r.a}):N(r.h)},t.prototype.isEqual=function(e){return this.toHex()===te(e).toHex()},t}(),te=function(t){return t instanceof Nn?t:new Nn(t)},Lh=Object.defineProperty,Hn=Object.getOwnPropertySymbols,Nh=Object.prototype.hasOwnProperty,Hh=Object.prototype.propertyIsEnumerable,Tn=(t,e,r)=>e in t?Lh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Mn=(t,e)=>{for(var r in e||(e={}))Nh.call(e,r)&&Tn(t,r,e[r]);if(Hn)for(var r of Hn(e))Hh.call(e,r)&&Tn(t,r,e[r]);return t};class hi extends O{constructor(e,r={}){super(e,Mn(Mn({},{bubbles:!0}),r))}}hi.CHANGE="change";var Th=Object.defineProperty,Mh=Object.getOwnPropertyDescriptor,Se=(t,e,r,o)=>{for(var i=o>1?void 0:o?Mh(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Th(e,r,i),i};let re=class extends v{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000",this.disabled=!1}get value(){return this._value}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e);try{const r=te(t);if(r.isValid()){const{h:o,s:i,l:s}=r.toHsl();this.hue=o,this.saturation=i,this.lightness=s,this.brightness=this.getBrightness(s)}}catch(r){console.error("Something went wrong parsing the color string.",r)}}handleGridDrag(t){if(this.disabled)return;const e=this.shadowRoot.querySelector(".color-area"),r=e.querySelector(".color-area__handle"),{width:o,height:i}=e.getBoundingClientRect();r.focus(),t.preventDefault(),t.stopPropagation(),this.isDraggingGridHandle=!0,_n(e,{onMove:(s,n)=>{isNaN(s)||isNaN(n)||(this.saturation=L(s/o*100,0,100),this.brightness=L(100-n/i*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:t})}handleGridKeyDown(t){if(this.disabled)return;const e=t.shiftKey?10:1;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=L(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=L(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=L(this.brightness+e,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=L(this.brightness-e,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(t){return L(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return L((200-this.saturation)*t/100*5/10,0,100)}syncValues(){const t=te({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=t.toRgbString(),this.dispatchEvent(new hi(hi.CHANGE))}getHexString(t,e,r,o=100){const i=te(`hsla(${t}, ${e}%, ${r}%, ${o/100})`);return i.isValid()?i.toHex():""}render(){const t=this.saturation,e=100-this.brightness;return l`
1868
+ */const ci=At(class extends Ut{constructor(t){var e;if(super(t),t.type!==le.ATTRIBUTE||t.name!=="class"||((e=t.strings)===null||e===void 0?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){var r,o;if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(const s in e)e[s]&&!(!((r=this.nt)===null||r===void 0)&&r.has(s))&&this.it.add(s);return this.render(e)}const i=t.element.classList;this.it.forEach(s=>{s in e||(i.remove(s),this.it.delete(s))});for(const s in e){const n=!!e[s];n===this.it.has(s)||!((o=this.nt)===null||o===void 0)&&o.has(s)||(n?(i.add(s),this.it.add(s)):(i.remove(s),this.it.delete(s)))}return F}});var Xh={grad:.9,turn:360,rad:360/(2*Math.PI)},Oe=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},N=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ee=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Fn=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Gn=function(t){return{r:ee(t.r,0,255),g:ee(t.g,0,255),b:ee(t.b,0,255),a:ee(t.a)}},mo=function(t){return{r:N(t.r),g:N(t.g),b:N(t.b),a:N(t.a,3)}},Yh=/^#([0-9a-f]{3,8})$/i,hi=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},qn=function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=Math.max(e,r,o),n=s-Math.min(e,r,o),u=n?s===e?(r-o)/n:s===r?2+(o-e)/n:4+(e-r)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:i}},Wn=function(t){var e=t.h,r=t.s,o=t.v,i=t.a;e=e/360*6,r/=100,o/=100;var s=Math.floor(e),n=o*(1-r),u=o*(1-(e-s)*r),c=o*(1-(1-e+s)*r),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:i}},Kn=function(t){return{h:Fn(t.h),s:ee(t.s,0,100),l:ee(t.l,0,100),a:ee(t.a)}},Xn=function(t){return{h:N(t.h),s:N(t.s),l:N(t.l),a:N(t.a,3)}},Yn=function(t){return Wn((r=(e=t).s,{h:e.h,s:(r*=((o=e.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:e.a}));var e,r,o},gr=function(t){return{h:(e=qn(t)).h,s:(i=(200-(r=e.s))*(o=e.v)/100)>0&&i<200?r*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,o,i},Zh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Qh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Jh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ed=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Zn={string:[[function(t){var e=Yh.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?N(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?N(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Jh.exec(t)||ed.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Gn({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=Zh.exec(t)||Qh.exec(t);if(!e)return null;var r,o,i=Kn({h:(r=e[1],o=e[2],o===void 0&&(o="deg"),Number(r)*(Xh[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Yn(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=i===void 0?1:i;return Oe(e)&&Oe(r)&&Oe(o)?Gn({r:Number(e),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,o=t.l,i=t.a,s=i===void 0?1:i;if(!Oe(e)||!Oe(r)||!Oe(o))return null;var n=Kn({h:Number(e),s:Number(r),l:Number(o),a:Number(s)});return Yn(n)},"hsl"],[function(t){var e=t.h,r=t.s,o=t.v,i=t.a,s=i===void 0?1:i;if(!Oe(e)||!Oe(r)||!Oe(o))return null;var n=function(u){return{h:Fn(u.h),s:ee(u.s,0,100),v:ee(u.v,0,100),a:ee(u.a)}}({h:Number(e),s:Number(r),v:Number(o),a:Number(s)});return Wn(n)},"hsv"]]},Qn=function(t,e){for(var r=0;r<e.length;r++){var o=e[r][0](t);if(o)return[o,e[r][1]]}return[null,void 0]},td=function(t){return typeof t=="string"?Qn(t.trim(),Zn.string):typeof t=="object"&&t!==null?Qn(t,Zn.object):[null,void 0]},_o=function(t,e){var r=gr(t);return{h:r.h,s:ee(r.s+100*e,0,100),l:r.l,a:r.a}},yo=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Jn=function(t,e){var r=gr(t);return{h:r.h,s:r.s,l:ee(r.l+100*e,0,100),a:r.a}},ea=function(){function t(e){this.parsed=td(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return N(yo(this.rgba),2)},t.prototype.isDark=function(){return yo(this.rgba)<.5},t.prototype.isLight=function(){return yo(this.rgba)>=.5},t.prototype.toHex=function(){return e=mo(this.rgba),r=e.r,o=e.g,i=e.b,n=(s=e.a)<1?hi(N(255*s)):"","#"+hi(r)+hi(o)+hi(i)+n;var e,r,o,i,s,n},t.prototype.toRgb=function(){return mo(this.rgba)},t.prototype.toRgbString=function(){return e=mo(this.rgba),r=e.r,o=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+o+", "+i+", "+s+")":"rgb("+r+", "+o+", "+i+")";var e,r,o,i,s},t.prototype.toHsl=function(){return Xn(gr(this.rgba))},t.prototype.toHslString=function(){return e=Xn(gr(this.rgba)),r=e.h,o=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+o+"%, "+i+"%, "+s+")":"hsl("+r+", "+o+"%, "+i+"%)";var e,r,o,i,s},t.prototype.toHsv=function(){return e=qn(this.rgba),{h:N(e.h),s:N(e.s),v:N(e.v),a:N(e.a,3)};var e},t.prototype.invert=function(){return te({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),te(_o(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),te(_o(this.rgba,-e))},t.prototype.grayscale=function(){return te(_o(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),te(Jn(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),te(Jn(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?te({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):N(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=gr(this.rgba);return typeof e=="number"?te({h:e,s:r.s,l:r.l,a:r.a}):N(r.h)},t.prototype.isEqual=function(e){return this.toHex()===te(e).toHex()},t}(),te=function(t){return t instanceof ea?t:new ea(t)},rd=Object.defineProperty,ta=Object.getOwnPropertySymbols,id=Object.prototype.hasOwnProperty,od=Object.prototype.propertyIsEnumerable,ra=(t,e,r)=>e in t?rd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ia=(t,e)=>{for(var r in e||(e={}))id.call(e,r)&&ra(t,r,e[r]);if(ta)for(var r of ta(e))od.call(e,r)&&ra(t,r,e[r]);return t};class di extends k{constructor(e,r={}){super(e,ia(ia({},{bubbles:!0}),r))}}di.CHANGE="change";var sd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,ke=(t,e,r,o)=>{for(var i=o>1?void 0:o?nd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sd(e,r,i),i};let re=class extends v{constructor(){super(...arguments),this.isDraggingGridHandle=!1,this.hue=0,this.saturation=0,this.lightness=0,this.brightness=0,this.alpha=100,this._value="#000",this.disabled=!1}get value(){return this._value}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e);try{const r=te(t);if(r.isValid()){const{h:o,s:i,l:s}=r.toHsl();this.hue=o,this.saturation=i,this.lightness=s,this.brightness=this.getBrightness(s)}}catch(r){console.error("Something went wrong parsing the color string.",r)}}handleGridDrag(t){if(this.disabled)return;const e=this.shadowRoot.querySelector(".color-area"),r=e.querySelector(".color-area__handle"),{width:o,height:i}=e.getBoundingClientRect();r.focus(),t.preventDefault(),t.stopPropagation(),this.isDraggingGridHandle=!0,Pn(e,{onMove:(s,n)=>{isNaN(s)||isNaN(n)||(this.saturation=L(s/o*100,0,100),this.brightness=L(100-n/i*100,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())},onStop:()=>this.isDraggingGridHandle=!1,initialEvent:t})}handleGridKeyDown(t){if(this.disabled)return;const e=t.shiftKey?10:1;t.key==="ArrowLeft"&&(t.preventDefault(),this.saturation=L(this.saturation-e,0,100),this.syncValues()),t.key==="ArrowRight"&&(t.preventDefault(),this.saturation=L(this.saturation+e,0,100),this.syncValues()),t.key==="ArrowUp"&&(t.preventDefault(),this.brightness=L(this.brightness+e,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues()),t.key==="ArrowDown"&&(t.preventDefault(),this.brightness=L(this.brightness-e,0,100),this.lightness=this.getLightness(this.brightness),this.syncValues())}getBrightness(t){return L(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return L((200-this.saturation)*t/100*5/10,0,100)}syncValues(){const t=te({h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha/100});this._value=t.toRgbString(),this.dispatchEvent(new di(di.CHANGE))}getHexString(t,e,r,o=100){const i=te(`hsla(${t}, ${e}%, ${r}%, ${o/100})`);return i.isValid()?i.toHex():""}render(){const t=this.saturation,e=100-this.brightness;return l`
1827
1869
  <div
1828
1870
  part="grid"
1829
1871
  class="color-area"
@@ -1832,10 +1874,10 @@
1832
1874
  @touchstart=${this.handleGridDrag}>
1833
1875
  <span
1834
1876
  part="grid-handle"
1835
- class=${ui({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}
1877
+ class=${ci({"color-area__handle":!0,"color-area__handle--dragging":this.isDraggingGridHandle})}
1836
1878
  style=${ge({top:`${e}%`,left:`${t}%`,backgroundColor:this.getHexString(this.hue,this.saturation,this.lightness,this.alpha)})}
1837
1879
  role="application"
1838
- tabindex=${I(this.disabled?void 0:"0")}
1880
+ tabindex=${O(this.disabled?void 0:"0")}
1839
1881
  aria-label="HSB"
1840
1882
  @keydown=${this.handleGridKeyDown}></span>
1841
1883
  </div>
@@ -1889,17 +1931,17 @@
1889
1931
  .color-area__handle--empty {
1890
1932
  display: none;
1891
1933
  }
1892
- `],Se([f()],re.prototype,"isDraggingGridHandle",2),Se([a({type:Number})],re.prototype,"hue",2),Se([a({type:Number})],re.prototype,"saturation",2),Se([a({type:Number})],re.prototype,"lightness",2),Se([a({type:Number})],re.prototype,"brightness",2),Se([a({type:Number})],re.prototype,"alpha",2),Se([a({type:String})],re.prototype,"value",1),Se([a({type:Boolean,reflect:!0})],re.prototype,"disabled",2),re=Se([p("uui-color-area")],re);/**
1934
+ `],ke([f()],re.prototype,"isDraggingGridHandle",2),ke([a({type:Number})],re.prototype,"hue",2),ke([a({type:Number})],re.prototype,"saturation",2),ke([a({type:Number})],re.prototype,"lightness",2),ke([a({type:Number})],re.prototype,"brightness",2),ke([a({type:Number})],re.prototype,"alpha",2),ke([a({type:String})],re.prototype,"value",1),ke([a({type:Boolean,reflect:!0})],re.prototype,"disabled",2),re=ke([p("uui-color-area")],re);/**
1893
1935
  * @license
1894
1936
  * Copyright 2020 Google LLC
1895
1937
  * SPDX-License-Identifier: BSD-3-Clause
1896
- */const{I:jh}=jl,jn=t=>t.strings===void 0,Vn=()=>document.createComment(""),gr=(t,e,r)=>{var o;const i=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){const n=i.insertBefore(Vn(),s),u=i.insertBefore(Vn(),s);r=new jh(n,u,t,t.options)}else{const n=r._$AB.nextSibling,u=r._$AM,c=u!==t;if(c){let h;(o=r._$AQ)===null||o===void 0||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==u._$AU&&r._$AP(h)}if(n!==s||c){let h=r._$AA;for(;h!==n;){const m=h.nextSibling;i.insertBefore(h,s),h=m}}}return r},dt=(t,e,r=t)=>(t._$AI(e,r),t),Vh={},Bn=(t,e=Vh)=>t._$AH=e,Bh=t=>t._$AH,fo=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA;const o=t._$AB.nextSibling;for(;r!==o;){const i=r.nextSibling;r.remove(),r=i}};/**
1938
+ */const{I:ad}=ou,oa=t=>t.strings===void 0,sa=()=>document.createComment(""),mr=(t,e,r)=>{var o;const i=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){const n=i.insertBefore(sa(),s),u=i.insertBefore(sa(),s);r=new ad(n,u,t,t.options)}else{const n=r._$AB.nextSibling,u=r._$AM,c=u!==t;if(c){let h;(o=r._$AQ)===null||o===void 0||o.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==u._$AU&&r._$AP(h)}if(n!==s||c){let h=r._$AA;for(;h!==n;){const m=h.nextSibling;i.insertBefore(h,s),h=m}}}return r},dt=(t,e,r=t)=>(t._$AI(e,r),t),ld={},na=(t,e=ld)=>t._$AH=e,ud=t=>t._$AH,wo=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA;const o=t._$AB.nextSibling;for(;r!==o;){const i=r.nextSibling;r.remove(),r=i}};/**
1897
1939
  * @license
1898
1940
  * Copyright 2020 Google LLC
1899
1941
  * SPDX-License-Identifier: BSD-3-Clause
1900
- */const Rh=At(class extends Ut{constructor(t){if(super(t),t.type!==le.PROPERTY&&t.type!==le.ATTRIBUTE&&t.type!==le.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!jn(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===F||e===x)return e;const r=t.element,o=t.name;if(t.type===le.PROPERTY){if(e===r[o])return F}else if(t.type===le.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(o))return F}else if(t.type===le.ATTRIBUTE&&r.getAttribute(o)===e+"")return F;return Bn(t),e}});var Fh={grad:.9,turn:360,rad:360/(2*Math.PI)},ke=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},H=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ie=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Rn=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Fn=function(t){return{r:ie(t.r,0,255),g:ie(t.g,0,255),b:ie(t.b,0,255),a:ie(t.a)}},bo=function(t){return{r:H(t.r),g:H(t.g),b:H(t.b),a:H(t.a,3)}},Gh=/^#([0-9a-f]{3,8})$/i,di=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Gn=function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=Math.max(e,r,o),n=s-Math.min(e,r,o),u=n?s===e?(r-o)/n:s===r?2+(o-e)/n:4+(e-r)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:i}},qn=function(t){var e=t.h,r=t.s,o=t.v,i=t.a;e=e/360*6,r/=100,o/=100;var s=Math.floor(e),n=o*(1-r),u=o*(1-(e-s)*r),c=o*(1-(1-e+s)*r),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:i}},Wn=function(t){return{h:Rn(t.h),s:ie(t.s,0,100),l:ie(t.l,0,100),a:ie(t.a)}},Kn=function(t){return{h:H(t.h),s:H(t.s),l:H(t.l),a:H(t.a,3)}},Xn=function(t){return qn((r=(e=t).s,{h:e.h,s:(r*=((o=e.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:e.a}));var e,r,o},mr=function(t){return{h:(e=Gn(t)).h,s:(i=(200-(r=e.s))*(o=e.v)/100)>0&&i<200?r*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,o,i},qh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wh=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Kh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xh=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,go={string:[[function(t){var e=Gh.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?H(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?H(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Kh.exec(t)||Xh.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Fn({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=qh.exec(t)||Wh.exec(t);if(!e)return null;var r,o,i=Wn({h:(r=e[1],o=e[2],o===void 0&&(o="deg"),Number(r)*(Fh[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Xn(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=i===void 0?1:i;return ke(e)&&ke(r)&&ke(o)?Fn({r:Number(e),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,o=t.l,i=t.a,s=i===void 0?1:i;if(!ke(e)||!ke(r)||!ke(o))return null;var n=Wn({h:Number(e),s:Number(r),l:Number(o),a:Number(s)});return Xn(n)},"hsl"],[function(t){var e=t.h,r=t.s,o=t.v,i=t.a,s=i===void 0?1:i;if(!ke(e)||!ke(r)||!ke(o))return null;var n=function(u){return{h:Rn(u.h),s:ie(u.s,0,100),v:ie(u.v,0,100),a:ie(u.a)}}({h:Number(e),s:Number(r),v:Number(o),a:Number(s)});return qn(n)},"hsv"]]},Yn=function(t,e){for(var r=0;r<e.length;r++){var o=e[r][0](t);if(o)return[o,e[r][1]]}return[null,void 0]},Yh=function(t){return typeof t=="string"?Yn(t.trim(),go.string):typeof t=="object"&&t!==null?Yn(t,go.object):[null,void 0]},mo=function(t,e){var r=mr(t);return{h:r.h,s:ie(r.s+100*e,0,100),l:r.l,a:r.a}},_o=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Zn=function(t,e){var r=mr(t);return{h:r.h,s:r.s,l:ie(r.l+100*e,0,100),a:r.a}},pi=function(){function t(e){this.parsed=Yh(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return H(_o(this.rgba),2)},t.prototype.isDark=function(){return _o(this.rgba)<.5},t.prototype.isLight=function(){return _o(this.rgba)>=.5},t.prototype.toHex=function(){return e=bo(this.rgba),r=e.r,o=e.g,i=e.b,n=(s=e.a)<1?di(H(255*s)):"","#"+di(r)+di(o)+di(i)+n;var e,r,o,i,s,n},t.prototype.toRgb=function(){return bo(this.rgba)},t.prototype.toRgbString=function(){return e=bo(this.rgba),r=e.r,o=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+o+", "+i+", "+s+")":"rgb("+r+", "+o+", "+i+")";var e,r,o,i,s},t.prototype.toHsl=function(){return Kn(mr(this.rgba))},t.prototype.toHslString=function(){return e=Kn(mr(this.rgba)),r=e.h,o=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+o+"%, "+i+"%, "+s+")":"hsl("+r+", "+o+"%, "+i+"%)";var e,r,o,i,s},t.prototype.toHsv=function(){return e=Gn(this.rgba),{h:H(e.h),s:H(e.s),v:H(e.v),a:H(e.a,3)};var e},t.prototype.invert=function(){return _e({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),_e(mo(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),_e(mo(this.rgba,-e))},t.prototype.grayscale=function(){return _e(mo(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),_e(Zn(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),_e(Zn(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?_e({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):H(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=mr(this.rgba);return typeof e=="number"?_e({h:e,s:r.s,l:r.l,a:r.a}):H(r.h)},t.prototype.isEqual=function(e){return this.toHex()===_e(e).toHex()},t}(),_e=function(t){return t instanceof pi?t:new pi(t)},Qn=[],Zh=function(t){t.forEach(function(e){Qn.indexOf(e)<0&&(e(pi,go),Qn.push(e))})};function Qh(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var i in r)o[r[i]]=i;var s={};t.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var u,c,h=o[this.toHex()];if(h)return h;if(n?.closest){var m=this.toRgb(),y=1/0,b="black";if(!s.length)for(var w in r)s[w]=new t(r[w]).toRgb();for(var $ in r){var E=(u=m,c=s[$],Math.pow(u.r-c.r,2)+Math.pow(u.g-c.g,2)+Math.pow(u.b-c.b,2));E<y&&(y=E,b=$)}return b}},e.string.push([function(n){var u=n.toLowerCase(),c=u==="transparent"?"#0000":r[u];return c?new t(c).toRgb():null},"name"])}var Jh=Object.defineProperty,Jn=Object.getOwnPropertySymbols,ed=Object.prototype.hasOwnProperty,td=Object.prototype.propertyIsEnumerable,ea=(t,e,r)=>e in t?Jh(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ta=(t,e)=>{for(var r in e||(e={}))ed.call(e,r)&&ea(t,r,e[r]);if(Jn)for(var r of Jn(e))td.call(e,r)&&ea(t,r,e[r]);return t};class vi extends O{constructor(e,r={}){super(e,ta(ta({},{bubbles:!0}),r))}}vi.CHANGE="change";var rd=Object.defineProperty,id=Object.getOwnPropertyDescriptor,A=(t,e,r,o)=>{for(var i=o>1?void 0:o?id(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&rd(e,r,i),i};Zh([Qh]);const ra="EyeDropper"in window;let z=class extends ve("label",v){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=_e("hsl(0, 0%, 0%)"),this.value="",this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}connectedCallback(){super.connectedCallback(),this.value?this.setColor(this.value):this.setColor("#000"),_(this,"uui-icon"),_(this,"uui-icon-registry-essential"),_(this,"uui-input"),_(this,"uui-button"),_(this,"uui-button-group"),_(this,"uui-popover"),_(this,"uui-color-swatches"),_(this,"uui-color-swatch"),_(this,"uui-color-area"),_(this,"uui-color-slider")}getFormattedValue(t){const e=this.opacity?`${t}a`:t,{h:r,l:o,s:i}=this._colord.toHsl(),{r:s,g:n,b:u}=this._colord.toRgb(),c=this.setLetterCase(this._colord.toHex()),h=this.setLetterCase(c.length>7?c.substring(0,c.length-2):c);switch(e){case"hex":return h;case"hexa":return c;case"rgb":return`rgb(${s} ${n} ${u})`;case"rgba":return this._colord.toRgbString();case"hsl":return`hsl(${r} ${i} ${o})`;case"hsla":return this._colord.toHslString();default:return""}}getBrightness(t){return L(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return L((200-this.saturation)*t/100*5/10,0,100)}handleFormatToggle(){const t=["hex","rgb","hsl"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this._syncValues()}handleAlphaChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const r=t.target,o={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(r.value)/100};this.setColor(o)}handleHueChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const o={h:t.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(o)}handleGridChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const r=t.target,o={h:this.hue,s:r.saturation,l:r.lightness,a:this.alpha/100};this.setColor(o)}handleInputChange(t){var e;(e=this._swatches)==null||e.resetSelection();const r=t.target;r.value?(this.setColor(r.value),r.value=this.value):this.setColor("#000"),t.stopPropagation()}handleInputKeyDown(t){var e;t.key==="Enter"&&(this.inputValue?(this.setColor(this.inputValue),(e=this._swatches)==null||e.resetSelection(),this.inputValue=this.value,setTimeout(()=>this._input.select())):this.setColor("#000"))}handleColorSwatchChange(t){t.stopImmediatePropagation();const e=t.target;e.value?this.setColor(e.value):this.setColor("#000")}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}openColorPicker(t){t.stopImmediatePropagation();const e=t.target,r=e.nextElementSibling;r.open=!r?.open,e.setAttribute("aria-expanded",r.open.toString())}closeColorPicker(t){const r=t.target.previousElementSibling;r&&r.setAttribute("aria-expanded","false")}handleEyeDropper(){if(!ra)return;new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(t){this._colord=new pi(t);const{h:e,l:r,s:o,a:i}=this._colord.toHsl();return this.hue=e,this.saturation=o,this.lightness=r,this.alpha=this.opacity?i*100:100,this._syncValues(),this.dispatchEvent(new vi(vi.CHANGE)),!0}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this.value=this.inputValue}_renderColorPicker(){return l`
1942
+ */const cd=At(class extends Ut{constructor(t){if(super(t),t.type!==le.PROPERTY&&t.type!==le.ATTRIBUTE&&t.type!==le.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!oa(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===F||e===x)return e;const r=t.element,o=t.name;if(t.type===le.PROPERTY){if(e===r[o])return F}else if(t.type===le.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(o))return F}else if(t.type===le.ATTRIBUTE&&r.getAttribute(o)===e+"")return F;return na(t),e}});var hd={grad:.9,turn:360,rad:360/(2*Math.PI)},Se=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},T=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},ie=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},aa=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},la=function(t){return{r:ie(t.r,0,255),g:ie(t.g,0,255),b:ie(t.b,0,255),a:ie(t.a)}},xo=function(t){return{r:T(t.r),g:T(t.g),b:T(t.b),a:T(t.a,3)}},dd=/^#([0-9a-f]{3,8})$/i,pi=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},ua=function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=Math.max(e,r,o),n=s-Math.min(e,r,o),u=n?s===e?(r-o)/n:s===r?2+(o-e)/n:4+(e-r)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:i}},ca=function(t){var e=t.h,r=t.s,o=t.v,i=t.a;e=e/360*6,r/=100,o/=100;var s=Math.floor(e),n=o*(1-r),u=o*(1-(e-s)*r),c=o*(1-(1-e+s)*r),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:i}},ha=function(t){return{h:aa(t.h),s:ie(t.s,0,100),l:ie(t.l,0,100),a:ie(t.a)}},da=function(t){return{h:T(t.h),s:T(t.s),l:T(t.l),a:T(t.a,3)}},pa=function(t){return ca((r=(e=t).s,{h:e.h,s:(r*=((o=e.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:e.a}));var e,r,o},_r=function(t){return{h:(e=ua(t)).h,s:(i=(200-(r=e.s))*(o=e.v)/100)>0&&i<200?r*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,o,i},pd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$o={string:[[function(t){var e=dd.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?T(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?T(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=fd.exec(t)||bd.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:la({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=pd.exec(t)||vd.exec(t);if(!e)return null;var r,o,i=ha({h:(r=e[1],o=e[2],o===void 0&&(o="deg"),Number(r)*(hd[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return pa(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=i===void 0?1:i;return Se(e)&&Se(r)&&Se(o)?la({r:Number(e),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,o=t.l,i=t.a,s=i===void 0?1:i;if(!Se(e)||!Se(r)||!Se(o))return null;var n=ha({h:Number(e),s:Number(r),l:Number(o),a:Number(s)});return pa(n)},"hsl"],[function(t){var e=t.h,r=t.s,o=t.v,i=t.a,s=i===void 0?1:i;if(!Se(e)||!Se(r)||!Se(o))return null;var n=function(u){return{h:aa(u.h),s:ie(u.s,0,100),v:ie(u.v,0,100),a:ie(u.a)}}({h:Number(e),s:Number(r),v:Number(o),a:Number(s)});return ca(n)},"hsv"]]},va=function(t,e){for(var r=0;r<e.length;r++){var o=e[r][0](t);if(o)return[o,e[r][1]]}return[null,void 0]},gd=function(t){return typeof t=="string"?va(t.trim(),$o.string):typeof t=="object"&&t!==null?va(t,$o.object):[null,void 0]},Eo=function(t,e){var r=_r(t);return{h:r.h,s:ie(r.s+100*e,0,100),l:r.l,a:r.a}},Po=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},fa=function(t,e){var r=_r(t);return{h:r.h,s:r.s,l:ie(r.l+100*e,0,100),a:r.a}},vi=function(){function t(e){this.parsed=gd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return T(Po(this.rgba),2)},t.prototype.isDark=function(){return Po(this.rgba)<.5},t.prototype.isLight=function(){return Po(this.rgba)>=.5},t.prototype.toHex=function(){return e=xo(this.rgba),r=e.r,o=e.g,i=e.b,n=(s=e.a)<1?pi(T(255*s)):"","#"+pi(r)+pi(o)+pi(i)+n;var e,r,o,i,s,n},t.prototype.toRgb=function(){return xo(this.rgba)},t.prototype.toRgbString=function(){return e=xo(this.rgba),r=e.r,o=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+o+", "+i+", "+s+")":"rgb("+r+", "+o+", "+i+")";var e,r,o,i,s},t.prototype.toHsl=function(){return da(_r(this.rgba))},t.prototype.toHslString=function(){return e=da(_r(this.rgba)),r=e.h,o=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+o+"%, "+i+"%, "+s+")":"hsl("+r+", "+o+"%, "+i+"%)";var e,r,o,i,s},t.prototype.toHsv=function(){return e=ua(this.rgba),{h:T(e.h),s:T(e.s),v:T(e.v),a:T(e.a,3)};var e},t.prototype.invert=function(){return _e({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),_e(Eo(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),_e(Eo(this.rgba,-e))},t.prototype.grayscale=function(){return _e(Eo(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),_e(fa(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),_e(fa(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?_e({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):T(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=_r(this.rgba);return typeof e=="number"?_e({h:e,s:r.s,l:r.l,a:r.a}):T(r.h)},t.prototype.isEqual=function(e){return this.toHex()===_e(e).toHex()},t}(),_e=function(t){return t instanceof vi?t:new vi(t)},ba=[],md=function(t){t.forEach(function(e){ba.indexOf(e)<0&&(e(vi,$o),ba.push(e))})};function _d(t,e){var r={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var i in r)o[r[i]]=i;var s={};t.prototype.toName=function(n){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var u,c,h=o[this.toHex()];if(h)return h;if(n?.closest){var m=this.toRgb(),y=1/0,b="black";if(!s.length)for(var w in r)s[w]=new t(r[w]).toRgb();for(var $ in r){var E=(u=m,c=s[$],Math.pow(u.r-c.r,2)+Math.pow(u.g-c.g,2)+Math.pow(u.b-c.b,2));E<y&&(y=E,b=$)}return b}},e.string.push([function(n){var u=n.toLowerCase(),c=u==="transparent"?"#0000":r[u];return c?new t(c).toRgb():null},"name"])}var yd=Object.defineProperty,ga=Object.getOwnPropertySymbols,wd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,ma=(t,e,r)=>e in t?yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_a=(t,e)=>{for(var r in e||(e={}))wd.call(e,r)&&ma(t,r,e[r]);if(ga)for(var r of ga(e))xd.call(e,r)&&ma(t,r,e[r]);return t};class fi extends k{constructor(e,r={}){super(e,_a(_a({},{bubbles:!0}),r))}}fi.CHANGE="change";var $d=Object.defineProperty,Ed=Object.getOwnPropertyDescriptor,A=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ed(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$d(e,r,i),i};md([_d]);const ya="EyeDropper"in window;let z=class extends ve("label",v){constructor(){super(...arguments),this.inputValue="",this.hue=0,this.saturation=0,this.lightness=0,this.alpha=100,this._colord=_e("hsl(0, 0%, 0%)"),this.value="",this.format="hex",this.name="",this.size="medium",this.noFormatToggle=!1,this.inline=!1,this.disabled=!1,this.opacity=!1,this.uppercase=!1,this.swatches=["#d0021b","#f5a623","#f8e71c","#8b572a","#7ed321","#417505","#bd10e0","#9013fe","#4a90e2","#50e3c2","#b8e986","#000","#444","#888","#ccc","#fff"]}connectedCallback(){super.connectedCallback(),this.value?this.setColor(this.value):this.setColor("#000"),_(this,"uui-icon"),_(this,"uui-icon-registry-essential"),_(this,"uui-input"),_(this,"uui-button"),_(this,"uui-button-group"),_(this,"uui-popover"),_(this,"uui-color-swatches"),_(this,"uui-color-swatch"),_(this,"uui-color-area"),_(this,"uui-color-slider")}getFormattedValue(t){const e=this.opacity?`${t}a`:t,{h:r,l:o,s:i}=this._colord.toHsl(),{r:s,g:n,b:u}=this._colord.toRgb(),c=this.setLetterCase(this._colord.toHex()),h=this.setLetterCase(c.length>7?c.substring(0,c.length-2):c);switch(e){case"hex":return h;case"hexa":return c;case"rgb":return`rgb(${s} ${n} ${u})`;case"rgba":return this._colord.toRgbString();case"hsl":return`hsl(${r} ${i} ${o})`;case"hsla":return this._colord.toHslString();default:return""}}getBrightness(t){return L(-1*(200*t/(this.saturation-200)),0,100)}getLightness(t){return L((200-this.saturation)*t/100*5/10,0,100)}handleFormatToggle(){const t=["hex","rgb","hsl"],e=(t.indexOf(this.format)+1)%t.length;this.format=t[e],this._syncValues()}handleAlphaChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const r=t.target,o={h:this.hue,s:this.saturation,l:this.lightness,a:Math.round(r.value)/100};this.setColor(o)}handleHueChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const o={h:t.target.value,s:this.saturation,l:this.lightness,a:this.alpha/100};this.setColor(o)}handleGridChange(t){var e;t.stopPropagation(),(e=this._swatches)==null||e.resetSelection();const r=t.target,o={h:this.hue,s:r.saturation,l:r.lightness,a:this.alpha/100};this.setColor(o)}handleInputChange(t){var e;(e=this._swatches)==null||e.resetSelection();const r=t.target;r.value?(this.setColor(r.value),r.value=this.value):this.setColor("#000"),t.stopPropagation()}handleInputKeyDown(t){var e;t.key==="Enter"&&(this.inputValue?(this.setColor(this.inputValue),(e=this._swatches)==null||e.resetSelection(),this.inputValue=this.value,setTimeout(()=>this._input.select())):this.setColor("#000"))}handleColorSwatchChange(t){t.stopImmediatePropagation();const e=t.target;e.value?this.setColor(e.value):this.setColor("#000")}handleCopy(){navigator.clipboard.writeText(this._input.value).then(()=>{this._previewButton.classList.add("color-picker__preview-color--copied"),this._previewButton.addEventListener("animationend",()=>{this._previewButton.classList.remove("color-picker__preview-color--copied")})})}openColorPicker(t){t.stopImmediatePropagation();const e=t.target,r=e.nextElementSibling;r.open=!r?.open,e.setAttribute("aria-expanded",r.open.toString())}closeColorPicker(t){const r=t.target.previousElementSibling;r&&r.setAttribute("aria-expanded","false")}handleEyeDropper(){if(!ya)return;new EyeDropper().open().then(e=>this.setColor(e.sRGBHex)).catch(()=>{})}setColor(t){this._colord=new vi(t);const{h:e,l:r,s:o,a:i}=this._colord.toHsl();return this.hue=e,this.saturation=o,this.lightness=r,this.alpha=this.opacity?i*100:100,this._syncValues(),this.dispatchEvent(new fi(fi.CHANGE)),!0}setLetterCase(t){return typeof t!="string"?"":this.uppercase?t.toUpperCase():t.toLowerCase()}_syncValues(){this.inputValue=this.getFormattedValue(this.format),this.value=this.inputValue}_renderColorPicker(){return l`
1901
1943
  <div
1902
- class=${ui({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}
1944
+ class=${ci({"color-picker":!0,"color-picker--inline":this.inline,"color-picker--disabled":this.disabled})}
1903
1945
  aria-disabled=${this.disabled?"true":"false"}>
1904
1946
  <uui-color-area .value="${this.value}" @change=${this.handleGridChange}>
1905
1947
  </uui-color-area>
@@ -1940,7 +1982,7 @@
1940
1982
  autocomplete="off"
1941
1983
  autocapitalize="off"
1942
1984
  spellcheck="false"
1943
- .value=${Rh(this.inputValue)}
1985
+ .value=${cd(this.inputValue)}
1944
1986
  ?disabled=${this.disabled}
1945
1987
  @keydown=${this.handleInputKeyDown}
1946
1988
  @change=${this.handleInputChange}>
@@ -1955,7 +1997,7 @@
1955
1997
  <span>${this.format}</span>
1956
1998
  </uui-button>
1957
1999
  `}
1958
- ${ra?l` <uui-button
2000
+ ${ya?l` <uui-button
1959
2001
  label="Select a color"
1960
2002
  compact
1961
2003
  @click=${this.handleEyeDropper}>
@@ -1978,7 +2020,7 @@
1978
2020
  type="button"
1979
2021
  slot="trigger"
1980
2022
  aria-label="${this.label||"Open Color picker"}"
1981
- class=${ui({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}
2023
+ class=${ci({"color-picker__trigger":!0,"color-dropdown__trigger--disabled":this.disabled,"color-dropdown__trigger--small":this.size==="small","color-dropdown__trigger--medium":this.size==="medium","color-dropdown__trigger--large":this.size==="large","color-picker__transparent-bg":!0})}
1982
2024
  style=${ge({"--preview-color":`hsla(${this.hue}deg, ${this.saturation}%, ${this.lightness}%, ${this.alpha/100})`})}
1983
2025
  @click=${this.openColorPicker}
1984
2026
  aria-haspopup="true"
@@ -2125,7 +2167,7 @@
2125
2167
  uui-color-area {
2126
2168
  width: 100%;
2127
2169
  }
2128
- `],A([C('[part="input"]')],z.prototype,"_input",2),A([C(".color-picker__preview")],z.prototype,"_previewButton",2),A([C("#swatches")],z.prototype,"_swatches",2),A([f()],z.prototype,"inputValue",2),A([f()],z.prototype,"hue",2),A([f()],z.prototype,"saturation",2),A([f()],z.prototype,"lightness",2),A([f()],z.prototype,"alpha",2),A([f()],z.prototype,"_colord",2),A([a()],z.prototype,"value",2),A([a()],z.prototype,"format",2),A([a()],z.prototype,"name",2),A([a()],z.prototype,"size",2),A([a({attribute:"no-format-toggle",type:Boolean})],z.prototype,"noFormatToggle",2),A([a({type:Boolean,reflect:!0})],z.prototype,"inline",2),A([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2),A([a({type:Boolean})],z.prototype,"opacity",2),A([a({type:Boolean})],z.prototype,"uppercase",2),A([a({attribute:!1})],z.prototype,"swatches",2),z=A([p("uui-color-picker")],z);var od=Object.defineProperty,ia=Object.getOwnPropertySymbols,sd=Object.prototype.hasOwnProperty,nd=Object.prototype.propertyIsEnumerable,oa=(t,e,r)=>e in t?od(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sa=(t,e)=>{for(var r in e||(e={}))sd.call(e,r)&&oa(t,r,e[r]);if(ia)for(var r of ia(e))nd.call(e,r)&&oa(t,r,e[r]);return t};class fi extends O{constructor(e,r={}){super(e,sa(sa({},{bubbles:!0}),r))}}fi.CHANGE="change";var ad=Object.defineProperty,ld=Object.getOwnPropertyDescriptor,ze=(t,e,r,o)=>{for(var i=o>1?void 0:o?ld(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ad(e,r,i),i};let oe=class extends ve("label",v){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(t){t.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(t){if(this.disabled||!this.container||!this.handle)return;const{width:e,height:r}=this.container.getBoundingClientRect();this.handle.focus(),t.preventDefault(),_n(this.container,{onMove:(o,i)=>{this.vertical?this.value=yn(L(i/r*this.max,this.min,this.max),this.min,this.max):this.value=L(o/e*this.max,this.min,this.max),this.syncValues()},initialEvent:t})}handleClick(t){this.disabled||(this.value=this.getValueFromMousePosition(t),this.syncValues())}handleKeyDown(t){const e=t.shiftKey?10:1;t.key==="ArrowLeft"?(t.preventDefault(),this.value=L(this.value-e,this.min,this.max),this.syncValues()):t.key==="ArrowRight"?(t.preventDefault(),this.value=L(this.value+e,this.min,this.max),this.syncValues()):t.key==="ArrowUp"?(t.preventDefault(),this.value=L(this.value+e,this.min,this.max),this.syncValues()):t.key==="ArrowDown"?(t.preventDefault(),this.value=L(this.value-e,this.min,this.max),this.syncValues()):t.key==="Home"?(t.preventDefault(),this.value=this.min,this.syncValues()):t.key==="End"&&(t.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(t){return this.vertical?this.getValueFromYCoordinate(t.clientY):this.getValueFromXCoordinate(t.clientX)}getValueFromTouchPosition(t){return this.vertical?this.getValueFromYCoordinate(t.touches[0].clientY):this.getValueFromXCoordinate(t.touches[0].clientX)}getValueFromXCoordinate(t){const{left:e,width:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((t-e)/r*this.max),this.min,this.max)}getValueFromYCoordinate(t){const{top:e,height:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((t-e)/r*this.max),this.min,this.max)}roundToPrecision(t){const e=1/this.precision;return Math.ceil(t*e)/e}syncValues(){this.dispatchEvent(new fi(fi.CHANGE))}get ccsPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/yn(this.value,this.min,this.max):this.max/this.value)}render(){return l` <div
2170
+ `],A([C('[part="input"]')],z.prototype,"_input",2),A([C(".color-picker__preview")],z.prototype,"_previewButton",2),A([C("#swatches")],z.prototype,"_swatches",2),A([f()],z.prototype,"inputValue",2),A([f()],z.prototype,"hue",2),A([f()],z.prototype,"saturation",2),A([f()],z.prototype,"lightness",2),A([f()],z.prototype,"alpha",2),A([f()],z.prototype,"_colord",2),A([a()],z.prototype,"value",2),A([a()],z.prototype,"format",2),A([a()],z.prototype,"name",2),A([a()],z.prototype,"size",2),A([a({attribute:"no-format-toggle",type:Boolean})],z.prototype,"noFormatToggle",2),A([a({type:Boolean,reflect:!0})],z.prototype,"inline",2),A([a({type:Boolean,reflect:!0})],z.prototype,"disabled",2),A([a({type:Boolean})],z.prototype,"opacity",2),A([a({type:Boolean})],z.prototype,"uppercase",2),A([a({attribute:!1})],z.prototype,"swatches",2),z=A([p("uui-color-picker")],z);var Pd=Object.defineProperty,wa=Object.getOwnPropertySymbols,Cd=Object.prototype.hasOwnProperty,Od=Object.prototype.propertyIsEnumerable,xa=(t,e,r)=>e in t?Pd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$a=(t,e)=>{for(var r in e||(e={}))Cd.call(e,r)&&xa(t,r,e[r]);if(wa)for(var r of wa(e))Od.call(e,r)&&xa(t,r,e[r]);return t};class bi extends k{constructor(e,r={}){super(e,$a($a({},{bubbles:!0}),r))}}bi.CHANGE="change";var kd=Object.defineProperty,Sd=Object.getOwnPropertyDescriptor,Ie=(t,e,r,o)=>{for(var i=o>1?void 0:o?Sd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&kd(e,r,i),i};let oe=class extends ve("label",v){constructor(){super(...arguments),this.type="hue",this.color="",this.min=0,this.max=100,this.precision=1,this.vertical=!1,this.value=0,this.disabled=!1}willUpdate(t){t.has("type")&&(this.type==="hue"?(this.max=360,this.precision=1):this.type==="opacity"&&(this.max=100,this.precision=1))}firstUpdated(){this.container=this.shadowRoot.querySelector("#color-slider"),this.handle=this.container.querySelector("#color-slider__handle")}handleDrag(t){if(this.disabled||!this.container||!this.handle)return;const{width:e,height:r}=this.container.getBoundingClientRect();this.handle.focus(),t.preventDefault(),Pn(this.container,{onMove:(o,i)=>{this.vertical?this.value=Cn(L(i/r*this.max,this.min,this.max),this.min,this.max):this.value=L(o/e*this.max,this.min,this.max),this.syncValues()},initialEvent:t})}handleClick(t){this.disabled||(this.value=this.getValueFromMousePosition(t),this.syncValues())}handleKeyDown(t){const e=t.shiftKey?10:1;t.key==="ArrowLeft"?(t.preventDefault(),this.value=L(this.value-e,this.min,this.max),this.syncValues()):t.key==="ArrowRight"?(t.preventDefault(),this.value=L(this.value+e,this.min,this.max),this.syncValues()):t.key==="ArrowUp"?(t.preventDefault(),this.value=L(this.value+e,this.min,this.max),this.syncValues()):t.key==="ArrowDown"?(t.preventDefault(),this.value=L(this.value-e,this.min,this.max),this.syncValues()):t.key==="Home"?(t.preventDefault(),this.value=this.min,this.syncValues()):t.key==="End"&&(t.preventDefault(),this.value=this.max,this.syncValues())}getValueFromMousePosition(t){return this.vertical?this.getValueFromYCoordinate(t.clientY):this.getValueFromXCoordinate(t.clientX)}getValueFromTouchPosition(t){return this.vertical?this.getValueFromYCoordinate(t.touches[0].clientY):this.getValueFromXCoordinate(t.touches[0].clientX)}getValueFromXCoordinate(t){const{left:e,width:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((t-e)/r*this.max),this.min,this.max)}getValueFromYCoordinate(t){const{top:e,height:r}=this.container.getBoundingClientRect();return L(this.roundToPrecision((t-e)/r*this.max),this.min,this.max)}roundToPrecision(t){const e=1/this.precision;return Math.ceil(t*e)/e}syncValues(){this.dispatchEvent(new bi(bi.CHANGE))}get ccsPropCurrentValue(){return this.value===0?this.vertical?100:0:100/(this.vertical?this.max/Cn(this.value,this.min,this.max):this.max/this.value)}render(){return l` <div
2129
2171
  part="slider"
2130
2172
  id="color-slider"
2131
2173
  role="slider"
@@ -2148,7 +2190,7 @@
2148
2190
  <span
2149
2191
  id="color-slider__handle"
2150
2192
  style="--current-value: ${this.ccsPropCurrentValue}%;"
2151
- tabindex=${I(this.disabled?void 0:"0")}></span>
2193
+ tabindex=${O(this.disabled?void 0:"0")}></span>
2152
2194
  </div>
2153
2195
  ${Math.round(this.value)}`}};oe.styles=[d`
2154
2196
  :host {
@@ -2259,18 +2301,18 @@
2259
2301
  position: absolute;
2260
2302
  inset: 0 0 0 0;
2261
2303
  }
2262
- `],ze([a({reflect:!0})],oe.prototype,"type",2),ze([a()],oe.prototype,"color",2),ze([a({type:Number})],oe.prototype,"min",2),ze([a({type:Number})],oe.prototype,"max",2),ze([a({type:Number})],oe.prototype,"precision",2),ze([a({type:Boolean,reflect:!0})],oe.prototype,"vertical",2),ze([a()],oe.prototype,"value",2),ze([a({type:Boolean,reflect:!0})],oe.prototype,"disabled",2),oe=ze([p("uui-color-slider")],oe);var ud={grad:.9,turn:360,rad:360/(2*Math.PI)},Ie=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},T=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},se=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},na=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},aa=function(t){return{r:se(t.r,0,255),g:se(t.g,0,255),b:se(t.b,0,255),a:se(t.a)}},yo=function(t){return{r:T(t.r),g:T(t.g),b:T(t.b),a:T(t.a,3)}},cd=/^#([0-9a-f]{3,8})$/i,bi=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},la=function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=Math.max(e,r,o),n=s-Math.min(e,r,o),u=n?s===e?(r-o)/n:s===r?2+(o-e)/n:4+(e-r)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:i}},ua=function(t){var e=t.h,r=t.s,o=t.v,i=t.a;e=e/360*6,r/=100,o/=100;var s=Math.floor(e),n=o*(1-r),u=o*(1-(e-s)*r),c=o*(1-(1-e+s)*r),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:i}},ca=function(t){return{h:na(t.h),s:se(t.s,0,100),l:se(t.l,0,100),a:se(t.a)}},ha=function(t){return{h:T(t.h),s:T(t.s),l:T(t.l),a:T(t.a,3)}},da=function(t){return ua((r=(e=t).s,{h:e.h,s:(r*=((o=e.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:e.a}));var e,r,o},_r=function(t){return{h:(e=la(t)).h,s:(i=(200-(r=e.s))*(o=e.v)/100)>0&&i<200?r*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,o,i},hd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,dd=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,pa={string:[[function(t){var e=cd.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?T(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?T(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=pd.exec(t)||vd.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:aa({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=hd.exec(t)||dd.exec(t);if(!e)return null;var r,o,i=ca({h:(r=e[1],o=e[2],o===void 0&&(o="deg"),Number(r)*(ud[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return da(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=i===void 0?1:i;return Ie(e)&&Ie(r)&&Ie(o)?aa({r:Number(e),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,o=t.l,i=t.a,s=i===void 0?1:i;if(!Ie(e)||!Ie(r)||!Ie(o))return null;var n=ca({h:Number(e),s:Number(r),l:Number(o),a:Number(s)});return da(n)},"hsl"],[function(t){var e=t.h,r=t.s,o=t.v,i=t.a,s=i===void 0?1:i;if(!Ie(e)||!Ie(r)||!Ie(o))return null;var n=function(u){return{h:na(u.h),s:se(u.s,0,100),v:se(u.v,0,100),a:se(u.a)}}({h:Number(e),s:Number(r),v:Number(o),a:Number(s)});return ua(n)},"hsv"]]},va=function(t,e){for(var r=0;r<e.length;r++){var o=e[r][0](t);if(o)return[o,e[r][1]]}return[null,void 0]},fd=function(t){return typeof t=="string"?va(t.trim(),pa.string):typeof t=="object"&&t!==null?va(t,pa.object):[null,void 0]},wo=function(t,e){var r=_r(t);return{h:r.h,s:se(r.s+100*e,0,100),l:r.l,a:r.a}},xo=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},fa=function(t,e){var r=_r(t);return{h:r.h,s:r.s,l:se(r.l+100*e,0,100),a:r.a}},$o=function(){function t(e){this.parsed=fd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return T(xo(this.rgba),2)},t.prototype.isDark=function(){return xo(this.rgba)<.5},t.prototype.isLight=function(){return xo(this.rgba)>=.5},t.prototype.toHex=function(){return e=yo(this.rgba),r=e.r,o=e.g,i=e.b,n=(s=e.a)<1?bi(T(255*s)):"","#"+bi(r)+bi(o)+bi(i)+n;var e,r,o,i,s,n},t.prototype.toRgb=function(){return yo(this.rgba)},t.prototype.toRgbString=function(){return e=yo(this.rgba),r=e.r,o=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+o+", "+i+", "+s+")":"rgb("+r+", "+o+", "+i+")";var e,r,o,i,s},t.prototype.toHsl=function(){return ha(_r(this.rgba))},t.prototype.toHslString=function(){return e=ha(_r(this.rgba)),r=e.h,o=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+o+"%, "+i+"%, "+s+")":"hsl("+r+", "+o+"%, "+i+"%)";var e,r,o,i,s},t.prototype.toHsv=function(){return e=la(this.rgba),{h:T(e.h),s:T(e.s),v:T(e.v),a:T(e.a,3)};var e},t.prototype.invert=function(){return Ae({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Ae(wo(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Ae(wo(this.rgba,-e))},t.prototype.grayscale=function(){return Ae(wo(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Ae(fa(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Ae(fa(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Ae({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):T(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=_r(this.rgba);return typeof e=="number"?Ae({h:e,s:r.s,l:r.l,a:r.a}):T(r.h)},t.prototype.isEqual=function(e){return this.toHex()===Ae(e).toHex()},t}(),Ae=function(t){return t instanceof $o?t:new $o(t)},bd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,gi=(t,e,r,o)=>{for(var i=o>1?void 0:o?gd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bd(e,r,i),i};let pt=class extends ve("label",St(cr(v))){constructor(){super(),this._value="",this.disabled=!1,this.showLabel=!1,this._color=null,this.addEventListener("click",this._setAriaAttributes)}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get color(){return this._color}set color(t){}get isLight(){var t,e;return(e=(t=this.color)==null?void 0:t.isLight())!=null?e:!1}_initializeColor(){var t;this._color=new $o((t=this.value)!=null?t:""),this._color.isValid()||(this.disabled=!0,console.error(`Invalid color provided to uui-color-swatch: ${this.value}`))}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._initializeColor(),this._setAriaAttributes()}willUpdate(t){t.has("value")&&this._initializeColor(),t.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(t.has("selectable")||t.has("selected"))&&this._setAriaAttributes()}render(){return l`
2304
+ `],Ie([a({reflect:!0})],oe.prototype,"type",2),Ie([a()],oe.prototype,"color",2),Ie([a({type:Number})],oe.prototype,"min",2),Ie([a({type:Number})],oe.prototype,"max",2),Ie([a({type:Number})],oe.prototype,"precision",2),Ie([a({type:Boolean,reflect:!0})],oe.prototype,"vertical",2),Ie([a()],oe.prototype,"value",2),Ie([a({type:Boolean,reflect:!0})],oe.prototype,"disabled",2),oe=Ie([p("uui-color-slider")],oe);var Id={grad:.9,turn:360,rad:360/(2*Math.PI)},ze=function(t){return typeof t=="string"?t.length>0:typeof t=="number"},H=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=Math.pow(10,e)),Math.round(r*t)/r+0},se=function(t,e,r){return e===void 0&&(e=0),r===void 0&&(r=1),t>r?r:t>e?t:e},Ea=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Pa=function(t){return{r:se(t.r,0,255),g:se(t.g,0,255),b:se(t.b,0,255),a:se(t.a)}},Co=function(t){return{r:H(t.r),g:H(t.g),b:H(t.b),a:H(t.a,3)}},zd=/^#([0-9a-f]{3,8})$/i,gi=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Ca=function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=Math.max(e,r,o),n=s-Math.min(e,r,o),u=n?s===e?(r-o)/n:s===r?2+(o-e)/n:4+(e-r)/n:0;return{h:60*(u<0?u+6:u),s:s?n/s*100:0,v:s/255*100,a:i}},Oa=function(t){var e=t.h,r=t.s,o=t.v,i=t.a;e=e/360*6,r/=100,o/=100;var s=Math.floor(e),n=o*(1-r),u=o*(1-(e-s)*r),c=o*(1-(1-e+s)*r),h=s%6;return{r:255*[o,u,n,n,c,o][h],g:255*[c,o,o,u,n,n][h],b:255*[n,n,c,o,o,u][h],a:i}},ka=function(t){return{h:Ea(t.h),s:se(t.s,0,100),l:se(t.l,0,100),a:se(t.a)}},Sa=function(t){return{h:H(t.h),s:H(t.s),l:H(t.l),a:H(t.a,3)}},Ia=function(t){return Oa((r=(e=t).s,{h:e.h,s:(r*=((o=e.l)<50?o:100-o)/100)>0?2*r/(o+r)*100:0,v:o+r,a:e.a}));var e,r,o},yr=function(t){return{h:(e=Ca(t)).h,s:(i=(200-(r=e.s))*(o=e.v)/100)>0&&i<200?r*o/100/(i<=100?i:200-i)*100:0,l:i/2,a:e.a};var e,r,o,i},Ad=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ud=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Dd=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ld=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,za={string:[[function(t){var e=zd.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:t.length===4?H(parseInt(t[3]+t[3],16)/255,2):1}:t.length===6||t.length===8?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:t.length===8?H(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=Dd.exec(t)||Ld.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Pa({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=Ad.exec(t)||Ud.exec(t);if(!e)return null;var r,o,i=ka({h:(r=e[1],o=e[2],o===void 0&&(o="deg"),Number(r)*(Id[o]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ia(i)},"hsl"]],object:[[function(t){var e=t.r,r=t.g,o=t.b,i=t.a,s=i===void 0?1:i;return ze(e)&&ze(r)&&ze(o)?Pa({r:Number(e),g:Number(r),b:Number(o),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,r=t.s,o=t.l,i=t.a,s=i===void 0?1:i;if(!ze(e)||!ze(r)||!ze(o))return null;var n=ka({h:Number(e),s:Number(r),l:Number(o),a:Number(s)});return Ia(n)},"hsl"],[function(t){var e=t.h,r=t.s,o=t.v,i=t.a,s=i===void 0?1:i;if(!ze(e)||!ze(r)||!ze(o))return null;var n=function(u){return{h:Ea(u.h),s:se(u.s,0,100),v:se(u.v,0,100),a:se(u.a)}}({h:Number(e),s:Number(r),v:Number(o),a:Number(s)});return Oa(n)},"hsv"]]},Aa=function(t,e){for(var r=0;r<e.length;r++){var o=e[r][0](t);if(o)return[o,e[r][1]]}return[null,void 0]},Nd=function(t){return typeof t=="string"?Aa(t.trim(),za.string):typeof t=="object"&&t!==null?Aa(t,za.object):[null,void 0]},Oo=function(t,e){var r=yr(t);return{h:r.h,s:se(r.s+100*e,0,100),l:r.l,a:r.a}},ko=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Ua=function(t,e){var r=yr(t);return{h:r.h,s:r.s,l:se(r.l+100*e,0,100),a:r.a}},So=function(){function t(e){this.parsed=Nd(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return this.parsed!==null},t.prototype.brightness=function(){return H(ko(this.rgba),2)},t.prototype.isDark=function(){return ko(this.rgba)<.5},t.prototype.isLight=function(){return ko(this.rgba)>=.5},t.prototype.toHex=function(){return e=Co(this.rgba),r=e.r,o=e.g,i=e.b,n=(s=e.a)<1?gi(H(255*s)):"","#"+gi(r)+gi(o)+gi(i)+n;var e,r,o,i,s,n},t.prototype.toRgb=function(){return Co(this.rgba)},t.prototype.toRgbString=function(){return e=Co(this.rgba),r=e.r,o=e.g,i=e.b,(s=e.a)<1?"rgba("+r+", "+o+", "+i+", "+s+")":"rgb("+r+", "+o+", "+i+")";var e,r,o,i,s},t.prototype.toHsl=function(){return Sa(yr(this.rgba))},t.prototype.toHslString=function(){return e=Sa(yr(this.rgba)),r=e.h,o=e.s,i=e.l,(s=e.a)<1?"hsla("+r+", "+o+"%, "+i+"%, "+s+")":"hsl("+r+", "+o+"%, "+i+"%)";var e,r,o,i,s},t.prototype.toHsv=function(){return e=Ca(this.rgba),{h:H(e.h),s:H(e.s),v:H(e.v),a:H(e.a,3)};var e},t.prototype.invert=function(){return Ae({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},t.prototype.saturate=function(e){return e===void 0&&(e=.1),Ae(Oo(this.rgba,e))},t.prototype.desaturate=function(e){return e===void 0&&(e=.1),Ae(Oo(this.rgba,-e))},t.prototype.grayscale=function(){return Ae(Oo(this.rgba,-1))},t.prototype.lighten=function(e){return e===void 0&&(e=.1),Ae(Ua(this.rgba,e))},t.prototype.darken=function(e){return e===void 0&&(e=.1),Ae(Ua(this.rgba,-e))},t.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},t.prototype.alpha=function(e){return typeof e=="number"?Ae({r:(r=this.rgba).r,g:r.g,b:r.b,a:e}):H(this.rgba.a,3);var r},t.prototype.hue=function(e){var r=yr(this.rgba);return typeof e=="number"?Ae({h:e,s:r.s,l:r.l,a:r.a}):H(r.h)},t.prototype.isEqual=function(e){return this.toHex()===Ae(e).toHex()},t}(),Ae=function(t){return t instanceof So?t:new So(t)},Td=Object.defineProperty,Hd=Object.getOwnPropertyDescriptor,mi=(t,e,r,o)=>{for(var i=o>1?void 0:o?Hd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Td(e,r,i),i};let pt=class extends ve("label",kt(cr(v))){constructor(){super(),this._value="",this.disabled=!1,this.showLabel=!1,this._color=null,this.addEventListener("click",this._setAriaAttributes)}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get color(){return this._color}set color(t){}get isLight(){var t,e;return(e=(t=this.color)==null?void 0:t.isLight())!=null?e:!1}_initializeColor(){var t;this._color=new So((t=this.value)!=null?t:""),this._color.isValid()||(this.disabled=!0,console.error(`Invalid color provided to uui-color-swatch: ${this.value}`))}_setAriaAttributes(){this.selectable&&this.setAttribute("aria-checked",this.selected.toString())}firstUpdated(){this._initializeColor(),this._setAriaAttributes()}willUpdate(t){t.has("value")&&this._initializeColor(),t.has("disabled")&&this.selectable&&(this.selectable=!this.disabled,this.deselectable=!this.disabled),(t.has("selectable")||t.has("selected"))&&this._setAriaAttributes()}render(){return l`
2263
2305
  <button
2264
2306
  id="swatch"
2265
2307
  aria-label=${this.label}
2266
2308
  aria-disabled="${this.disabled}"
2267
2309
  title="${this.label}">
2268
2310
  <div
2269
- class=${ui({"color-swatch":!0,"color-swatch--transparent-bg":!0,"color-swatch--light":this.isLight,"color-swatch--big":this.showLabel})}>
2311
+ class=${ci({"color-swatch":!0,"color-swatch--transparent-bg":!0,"color-swatch--light":this.isLight,"color-swatch--big":this.showLabel})}>
2270
2312
  <div
2271
2313
  class="color-swatch__color"
2272
2314
  style=${ge({backgroundColor:this.value})}></div>
2273
- <div class="color-swatch__check">${ni}</div>
2315
+ <div class="color-swatch__check">${ai}</div>
2274
2316
  </div>
2275
2317
  ${this._renderWithLabel()}
2276
2318
  </button>
@@ -2437,19 +2479,19 @@
2437
2479
  white-space: nowrap;
2438
2480
  box-sizing: border-box;
2439
2481
  }
2440
- `],gi([a()],pt.prototype,"value",1),gi([a({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),gi([a({type:Boolean,attribute:"show-label"})],pt.prototype,"showLabel",2),pt=gi([p("uui-color-swatch")],pt);var md=Object.defineProperty,ba=Object.getOwnPropertySymbols,_d=Object.prototype.hasOwnProperty,yd=Object.prototype.propertyIsEnumerable,ga=(t,e,r)=>e in t?md(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ma=(t,e)=>{for(var r in e||(e={}))_d.call(e,r)&&ga(t,r,e[r]);if(ba)for(var r of ba(e))yd.call(e,r)&&ga(t,r,e[r]);return t};class Nt extends O{constructor(e,r={}){super(e,ma(ma({},{bubbles:!0}),r))}}Nt.CHANGE="change";var wd=Object.defineProperty,xd=Object.getOwnPropertyDescriptor,Eo=(t,e,r,o)=>{for(var i=o>1?void 0:o?xd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&wd(e,r,i),i};let Ht=class extends ve("label",v){constructor(){super(),this.value="",this._onSelected=t=>{const e=t.target;this.swatches.includes(e)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new Nt(Nt.CHANGE)))},this._onDeselected=t=>{const e=t.target;this.swatches.includes(e)&&(this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new Nt(Nt.CHANGE))))},this.addEventListener(Re.SELECTED,this._onSelected),this.addEventListener(Re.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(t){t.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(t=>{var e;t.setAttribute("selectable","selectable"),t.setAttribute("aria-checked","false"),t.setAttribute("role","radio"),this.value!==""&&((e=t.color)!=null&&e.isEqual(this.value))&&(t.selected=!0,t.setAttribute("aria-checked","true"),this._selectedElement=t,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(t=>{t.selected=!1,t.active=!1,t.selectable=!0}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return l`<slot @slotchange=${this._handleSlotChange}></slot>`}};Ht.styles=[d`
2482
+ `],mi([a()],pt.prototype,"value",1),mi([a({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),mi([a({type:Boolean,attribute:"show-label"})],pt.prototype,"showLabel",2),pt=mi([p("uui-color-swatch")],pt);var Md=Object.defineProperty,Da=Object.getOwnPropertySymbols,jd=Object.prototype.hasOwnProperty,Vd=Object.prototype.propertyIsEnumerable,La=(t,e,r)=>e in t?Md(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Na=(t,e)=>{for(var r in e||(e={}))jd.call(e,r)&&La(t,r,e[r]);if(Da)for(var r of Da(e))Vd.call(e,r)&&La(t,r,e[r]);return t};class Nt extends k{constructor(e,r={}){super(e,Na(Na({},{bubbles:!0}),r))}}Nt.CHANGE="change";var Bd=Object.defineProperty,Rd=Object.getOwnPropertyDescriptor,Io=(t,e,r,o)=>{for(var i=o>1?void 0:o?Rd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Bd(e,r,i),i};let Tt=class extends ve("label",v){constructor(){super(),this.value="",this._onSelected=t=>{const e=t.target;this.swatches.includes(e)&&(this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=e,this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.dispatchEvent(new Nt(Nt.CHANGE)))},this._onDeselected=t=>{const e=t.target;this.swatches.includes(e)&&(this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0,this.value="",this.dispatchEvent(new Nt(Nt.CHANGE))))},this.addEventListener(Re.SELECTED,this._onSelected),this.addEventListener(Re.DESELECTED,this._onDeselected)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.setAttribute("aria-label",this.label)}willUpdate(t){t.has("label")&&this.setAttribute("aria-label",this.label)}_handleSlotChange(){!this.swatches||this.swatches.length===0||this.swatches.forEach(t=>{var e;t.setAttribute("selectable","selectable"),t.setAttribute("aria-checked","false"),t.setAttribute("role","radio"),this.value!==""&&((e=t.color)!=null&&e.isEqual(this.value))&&(t.selected=!0,t.setAttribute("aria-checked","true"),this._selectedElement=t,this._activeElement=this._selectedElement)})}resetSelection(){this.swatches.forEach(t=>{t.selected=!1,t.active=!1,t.selectable=!0}),this._activeElement=void 0,this._selectedElement=void 0,this.value=""}render(){return l`<slot @slotchange=${this._handleSlotChange}></slot>`}};Tt.styles=[d`
2441
2483
  :host {
2442
2484
  display: flex;
2443
2485
  flex-wrap: wrap;
2444
2486
  gap: 0.4rem;
2445
2487
  }
2446
- `],Eo([a()],Ht.prototype,"value",2),Eo([Be({selector:"uui-color-swatch"})],Ht.prototype,"swatches",2),Ht=Eo([p("uui-color-swatches")],Ht);var $d=Object.defineProperty,_a=Object.getOwnPropertySymbols,Ed=Object.prototype.hasOwnProperty,Pd=Object.prototype.propertyIsEnumerable,ya=(t,e,r)=>e in t?$d(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,wa=(t,e)=>{for(var r in e||(e={}))Ed.call(e,r)&&ya(t,r,e[r]);if(_a)for(var r of _a(e))Pd.call(e,r)&&ya(t,r,e[r]);return t};class ue extends O{constructor(e,r={}){super(e,wa(wa({},{bubbles:!0}),r))}}ue.CHANGE="change",ue.INNER_SLOT_CHANGE="inner-slot-change";var Cd=Object.defineProperty,Od=Object.getOwnPropertyDescriptor,vt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Od(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cd(e,r,i),i};let ye=class extends v{constructor(){super(...arguments),this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection(),this.dispatchEvent(new ue(ue.INNER_SLOT_CHANGE))},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new ue(ue.CHANGE))},this._onDeselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new ue(ue.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Re.SELECTED,this._onSelected),this.addEventListener(Re.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Re.SELECTED,this._onSelected),this.removeEventListener(Re.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return l` <slot @slotchange=${this._onSlotChange}></slot> `}};ye.styles=[d`
2488
+ `],Io([a()],Tt.prototype,"value",2),Io([Be({selector:"uui-color-swatch"})],Tt.prototype,"swatches",2),Tt=Io([p("uui-color-swatches")],Tt);var Fd=Object.defineProperty,Ta=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,qd=Object.prototype.propertyIsEnumerable,Ha=(t,e,r)=>e in t?Fd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ma=(t,e)=>{for(var r in e||(e={}))Gd.call(e,r)&&Ha(t,r,e[r]);if(Ta)for(var r of Ta(e))qd.call(e,r)&&Ha(t,r,e[r]);return t};class ue extends k{constructor(e,r={}){super(e,Ma(Ma({},{bubbles:!0}),r))}}ue.CHANGE="change",ue.INNER_SLOT_CHANGE="inner-slot-change";var Wd=Object.defineProperty,Kd=Object.getOwnPropertyDescriptor,vt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Kd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Wd(e,r,i),i};let ye=class extends v{constructor(){super(...arguments),this.displayValue="",this._value="",this._onSlotChange=()=>{this._activeElement=void 0;for(let t=0;t<this._activeOptions.length;t++)t===0?this._activeElement=this._activeOptions[t]:this._activeOptions[t].active=!1;this._updateSelection(),this.dispatchEvent(new ue(ue.INNER_SLOT_CHANGE))},this._onSelected=t=>{this._selectedElement&&(this._selectedElement.selected=!1,this._selectedElement.active=!1,this._selectedElement=void 0),this._selectedElement=t.composedPath()[0],this._activeElement=this._selectedElement,this.value=this._selectedElement.value||"",this.displayValue=this._selectedElement.displayValue||"",this.dispatchEvent(new ue(ue.CHANGE))},this._onDeselected=t=>{const e=t.composedPath()[0];this._activeElement===e&&(this._activeElement=void 0),this._selectedElement===e&&(this.value="",this.displayValue="",this.dispatchEvent(new ue(ue.CHANGE)))},this._moveIndex=t=>{const e=Math.min(Math.max(this._getActiveIndex()+t,0),this._options.length-1);this._goToIndex(e)},this._onKeyDown=t=>{var e;if(!(this._options.length<=0))switch(t.key){case"ArrowUp":t.preventDefault(),t.ctrlKey?this._moveIndex(-10):this._moveIndex(-1);break;case"ArrowDown":t.preventDefault(),t.ctrlKey?this._moveIndex(10):this._moveIndex(1);break;case"Home":{t.preventDefault(),this._goToIndex(0);break}case"Enter":{t.preventDefault(),(e=this._activeElement)==null||e.click();break}case"End":{t.preventDefault(),this._goToIndex(this._options.length-1);break}}}}get value(){return this._value}set value(t){if(this._value===t)return;const e=this._value;this._value=t,this._updateSelection(),this.requestUpdate("value",e)}get for(){return this._for}set for(t){this._for&&this._for.removeEventListener("keydown",this._onKeyDown),this._for=t,this._for&&this._for.addEventListener("keydown",this._onKeyDown)}get _activeElement(){return this.__activeElement}set _activeElement(t){this.__activeElement&&(this.__activeElement.active=!1),t&&(t.active=!0,this.__activeElement=t)}connectedCallback(){super.connectedCallback(),this._for||(this._for=this),this.addEventListener(Re.SELECTED,this._onSelected),this.addEventListener(Re.DESELECTED,this._onDeselected)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeyDown),this.removeEventListener(Re.SELECTED,this._onSelected),this.removeEventListener(Re.DESELECTED,this._onDeselected)}_updateSelection(){this.displayValue="";for(const t of this._options)t.value===this._value?(this.displayValue=t.displayValue||"",t.selected=!0):t.selected=!1}_getActiveIndex(){return this._activeElement?this._options.indexOf(this._activeElement):-1}_goToIndex(t){t=Math.min(Math.max(t,0),this._options.length-1),this._activeElement=this._options[t],this._activeElement&&this._activeElement.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})}render(){return l` <slot @slotchange=${this._onSlotChange}></slot> `}};ye.styles=[d`
2447
2489
  :host {
2448
2490
  display: flex;
2449
2491
  flex-direction: column;
2450
2492
  box-sizing: border-box;
2451
2493
  }
2452
- `],vt([a()],ye.prototype,"value",1),vt([a({type:String})],ye.prototype,"displayValue",2),vt([a({attribute:!1})],ye.prototype,"for",1),vt([Be({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],ye.prototype,"_options",2),vt([Be({flatten:!0,selector:"uui-combobox-list-option[active]"})],ye.prototype,"_activeOptions",2),vt([f()],ye.prototype,"_value",2),ye=vt([p("uui-combobox-list")],ye);var Sd=Object.defineProperty,kd=Object.getOwnPropertyDescriptor,Tt=(t,e,r,o)=>{for(var i=o>1?void 0:o?kd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Sd(e,r,i),i};let Ue=class extends St(cr(v)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return l`<slot></slot>`}};Ue.styles=[d`
2494
+ `],vt([a()],ye.prototype,"value",1),vt([a({type:String})],ye.prototype,"displayValue",2),vt([a({attribute:!1})],ye.prototype,"for",1),vt([Be({flatten:!0,selector:"uui-combobox-list-option:not([disabled])"})],ye.prototype,"_options",2),vt([Be({flatten:!0,selector:"uui-combobox-list-option[active]"})],ye.prototype,"_activeOptions",2),vt([f()],ye.prototype,"_value",2),ye=vt([p("uui-combobox-list")],ye);var Xd=Object.defineProperty,Yd=Object.getOwnPropertyDescriptor,Ht=(t,e,r,o)=>{for(var i=o>1?void 0:o?Yd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Xd(e,r,i),i};let Ue=class extends kt(cr(v)){constructor(){super(),this._disabled=!1,this._displayValue="",this.selectable=!0,this.deselectable=!1}get value(){var t;return this._value?this._value:((t=this.textContent)==null?void 0:t.trim())||""}set value(t){const e=this._value;this._value=t,this.requestUpdate("value",e)}get displayValue(){var t;return this._displayValue?this._displayValue:((t=this.textContent)==null?void 0:t.trim())||""}set displayValue(t){const e=this._displayValue;this._displayValue=t,this.requestUpdate("displayValue",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.selectable=!this._disabled,this.requestUpdate("disabled",e)}render(){return l`<slot></slot>`}};Ue.styles=[d`
2453
2495
  :host {
2454
2496
  position: relative;
2455
2497
  cursor: pointer;
@@ -2518,7 +2560,7 @@
2518
2560
  color: var(--uui-color-disabled-contrast,#c4c4c4);
2519
2561
  background-color: var(--uui-color-disabled,#f3f3f5);
2520
2562
  }
2521
- `],Tt([f()],Ue.prototype,"_disabled",2),Tt([f()],Ue.prototype,"_displayValue",2),Tt([a({type:String})],Ue.prototype,"value",1),Tt([a({type:String,attribute:"display-value"})],Ue.prototype,"displayValue",1),Tt([a({type:Boolean,reflect:!0})],Ue.prototype,"disabled",1),Ue=Tt([p("uui-combobox-list-option")],Ue);var zd=Object.defineProperty,xa=Object.getOwnPropertySymbols,Id=Object.prototype.hasOwnProperty,Ad=Object.prototype.propertyIsEnumerable,$a=(t,e,r)=>e in t?zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ea=(t,e)=>{for(var r in e||(e={}))Id.call(e,r)&&$a(t,r,e[r]);if(xa)for(var r of xa(e))Ad.call(e,r)&&$a(t,r,e[r]);return t};class K extends O{constructor(e,r={}){super(e,Ea(Ea({},{bubbles:!0}),r))}}K.SEARCH="search",K.CHANGE="change";var Ud=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,ce=(t,e,r,o)=>{for(var i=o>1?void 0:o?Dd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ud(e,r,i),i};let G=class extends fe(v){constructor(){super(...arguments),this.open=!1,this.closeLabel="Close",this.disabled=!1,this._displayValue="",this._search="",this._isPhone=!1,this._onPhoneChange=()=>{this._isPhone=this.phoneMediaQuery.matches},this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{var t;(t=this.shadowRoot)!=null&&t.activeElement||this._onClose()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new K(K.SEARCH)),this._open()},this._onSlotChange=()=>{var t;this.value&&this.value!==((t=this._comboboxList)==null?void 0:t.value)&&this._updateValue(this.value)},this._onChange=()=>{var t;this.value=((t=this._comboboxList)==null?void 0:t.value)||"",this.search=this.value?this.search:"",this._onClose(),this.dispatchEvent(new K(K.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._onClose=()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new K(K.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._onClose()},this._onClear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new K(K.SEARCH)),this.dispatchEvent(new K(K.CHANGE)))},this._renderInput=()=>l` <uui-input
2563
+ `],Ht([f()],Ue.prototype,"_disabled",2),Ht([f()],Ue.prototype,"_displayValue",2),Ht([a({type:String})],Ue.prototype,"value",1),Ht([a({type:String,attribute:"display-value"})],Ue.prototype,"displayValue",1),Ht([a({type:Boolean,reflect:!0})],Ue.prototype,"disabled",1),Ue=Ht([p("uui-combobox-list-option")],Ue);var Zd=Object.defineProperty,ja=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,Jd=Object.prototype.propertyIsEnumerable,Va=(t,e,r)=>e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ba=(t,e)=>{for(var r in e||(e={}))Qd.call(e,r)&&Va(t,r,e[r]);if(ja)for(var r of ja(e))Jd.call(e,r)&&Va(t,r,e[r]);return t};class X extends k{constructor(e,r={}){super(e,Ba(Ba({},{bubbles:!0}),r))}}X.SEARCH="search",X.CHANGE="change";var ep=Object.defineProperty,tp=Object.getOwnPropertyDescriptor,ce=(t,e,r,o)=>{for(var i=o>1?void 0:o?tp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ep(e,r,i),i};let q=class extends fe(v){constructor(){super(...arguments),this.open=!1,this.closeLabel="Close",this.disabled=!1,this._displayValue="",this._search="",this._isPhone=!1,this._onPhoneChange=()=>{this._isPhone=this.phoneMediaQuery.matches},this._onMouseDown=()=>requestAnimationFrame(()=>this._input.focus()),this._onBlur=()=>requestAnimationFrame(()=>{var t;(t=this.shadowRoot)!=null&&t.activeElement||this._onClose()}),this._onInput=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.search=t.target.value,this.dispatchEvent(new X(X.SEARCH)),this._open()},this._onSlotChange=()=>{var t;this.value&&this.value!==((t=this._comboboxList)==null?void 0:t.value)&&this._updateValue(this.value)},this._onChange=()=>{var t;this.value=((t=this._comboboxList)==null?void 0:t.value)||"",this.search=this.value?this.search:"",this._onClose(),this.dispatchEvent(new X(X.CHANGE))},this._open=()=>{this.open||(this.open=!0)},this._onClose=()=>{this.open&&(this.open=!1,this.search="",this._input.value=this._displayValue,this.dispatchEvent(new X(X.SEARCH)))},this._onKeyDown=t=>{this.open===!1&&t.key==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation()),(t.key==="ArrowUp"||t.key==="ArrowDown")&&this._open(),(t.key==="Escape"||t.key==="Enter")&&this._onClose()},this._onClear=t=>{t.key&&t.key!=="Enter"||(t.preventDefault(),t.stopImmediatePropagation(),this.value="",this.search="",this._input.value=this._displayValue,this._input.focus(),this.dispatchEvent(new X(X.SEARCH)),this.dispatchEvent(new X(X.CHANGE)))},this._renderInput=()=>l` <uui-input
2522
2564
  slot="trigger"
2523
2565
  id="combobox-input"
2524
2566
  label="combobox-input"
@@ -2542,7 +2584,7 @@
2542
2584
  slot="append"
2543
2585
  compact
2544
2586
  style="height: 100%;">
2545
- <uui-icon name="remove" .fallback=${wn.strings[0]}></uui-icon>
2587
+ <uui-icon name="remove" .fallback=${On.strings[0]}></uui-icon>
2546
2588
  </uui-button>`:"",this._renderDropdown=()=>l`<div id="dropdown" slot="popover">
2547
2589
  <uui-scroll-container tabindex="-1" id="scroll-container">
2548
2590
  <slot></slot>
@@ -2559,7 +2601,7 @@
2559
2601
  @close=${()=>this._onClose()}>
2560
2602
  ${this._renderInput()} ${this._renderDropdown()}
2561
2603
  </uui-popover>
2562
- `}};G.styles=[d`
2604
+ `}};q.styles=[d`
2563
2605
  :host {
2564
2606
  display: inline-block;
2565
2607
  }
@@ -2627,7 +2669,7 @@
2627
2669
  #phone-wrapper #scroll-container {
2628
2670
  max-height: unset;
2629
2671
  }
2630
- `],ce([a({attribute:"value",reflect:!0})],G.prototype,"value",1),ce([a({type:String})],G.prototype,"search",1),ce([a({type:Boolean})],G.prototype,"open",2),ce([a({type:String})],G.prototype,"closeLabel",2),ce([a({type:Boolean,reflect:!0})],G.prototype,"disabled",2),ce([C("#combobox-input")],G.prototype,"_input",2),ce([Be({flatten:!0,selector:"uui-combobox-list"})],G.prototype,"_comboboxListElements",2),ce([f()],G.prototype,"_displayValue",2),ce([f()],G.prototype,"_search",2),ce([f()],G.prototype,"_isPhone",2),G=ce([p("uui-combobox")],G);var Ld=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Po=(t,e,r,o)=>{for(var i=o>1?void 0:o?Nd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ld(e,r,i),i};let Mt=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return l` <h3
2672
+ `],ce([a({attribute:"value",reflect:!0})],q.prototype,"value",1),ce([a({type:String})],q.prototype,"search",1),ce([a({type:Boolean})],q.prototype,"open",2),ce([a({type:String})],q.prototype,"closeLabel",2),ce([a({type:Boolean,reflect:!0})],q.prototype,"disabled",2),ce([C("#combobox-input")],q.prototype,"_input",2),ce([Be({flatten:!0,selector:"uui-combobox-list"})],q.prototype,"_comboboxListElements",2),ce([f()],q.prototype,"_displayValue",2),ce([f()],q.prototype,"_search",2),ce([f()],q.prototype,"_isPhone",2),q=ce([p("uui-combobox")],q);var rp=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,zo=(t,e,r,o)=>{for(var i=o>1?void 0:o?ip(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&rp(e,r,i),i};let Mt=class extends v{constructor(){super(...arguments),this.headline=null,this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}renderHeadline(){return l` <h3
2631
2673
  style=${this._headlineSlotHasContent||this.headline!==null?"":"display: none"}>
2632
2674
  ${this.headline}
2633
2675
  <slot name="headline" @slotchange=${this._headlineSlotChanged}></slot>
@@ -2645,11 +2687,11 @@
2645
2687
  justify-content: end;
2646
2688
  gap: var(--uui-size-4,12px);
2647
2689
  }
2648
- `],Po([a({type:String})],Mt.prototype,"headline",2),Po([f()],Mt.prototype,"_headlineSlotHasContent",2),Mt=Po([p("uui-dialog-layout")],Mt);var Hd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,Md=(t,e,r,o)=>{for(var i=o>1?void 0:o?Td(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Hd(e,r,i),i};let mi=class extends v{render(){return l`<slot></slot>`}};mi.styles=[d`
2690
+ `],zo([a({type:String})],Mt.prototype,"headline",2),zo([f()],Mt.prototype,"_headlineSlotHasContent",2),Mt=zo([p("uui-dialog-layout")],Mt);var op=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,np=(t,e,r,o)=>{for(var i=o>1?void 0:o?sp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&op(e,r,i),i};let _i=class extends v{render(){return l`<slot></slot>`}};_i.styles=[d`
2649
2691
  :host {
2650
2692
  position: relative;
2651
2693
  display: block;
2652
- max-width: 400px;
2694
+ max-width: 580px;
2653
2695
  color: var(--uui-color-text,#060606);
2654
2696
 
2655
2697
  background-color: var(
@@ -2663,7 +2705,7 @@
2663
2705
  calc(var(--uui-border-radius,3px) * 2)
2664
2706
  );
2665
2707
  }
2666
- `],mi=Md([p("uui-dialog")],mi);var jd=Object.defineProperty,Pa=Object.getOwnPropertySymbols,Vd=Object.prototype.hasOwnProperty,Bd=Object.prototype.propertyIsEnumerable,Ca=(t,e,r)=>e in t?jd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Oa=(t,e)=>{for(var r in e||(e={}))Vd.call(e,r)&&Ca(t,r,e[r]);if(Pa)for(var r of Pa(e))Bd.call(e,r)&&Ca(t,r,e[r]);return t};class jt extends O{constructor(e,r={}){super(e,Oa(Oa({},{bubbles:!0}),r))}}jt.CHANGE="change";var Rd=Object.defineProperty,Fd=Object.getOwnPropertyDescriptor,yr=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rd(e,r,i),i};let Fe=class extends ve("",v){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(t){if(t){const e=[],r=[];t.split(",").forEach(o=>{o=o.trim().toLowerCase(),new RegExp("[a-z]+\\/[a-z*]","s").test(o)?e.push(o):r.push(o.replace(/^\./,""))}),this._acceptedMimeTypes=e,this._acceptedFileExtensions=r}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[]}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-file-dropzone")}async _getAllFileEntries(t){const e=[],r=[...t];for(;r.length>0;){const o=r.shift();if(o.kind==="file"){const i=o.getAsFile();if(!i)continue;this._isAccepted(i)&&e.push(i)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const i=o.webkitGetAsEntry();r.push(...await this._readAllDirectoryEntries(i.createReader()))}}return e}async _readAllDirectoryEntries(t){const e=[];let r=await this._readEntriesPromise(t);for(;r.length>0;)e.push(...r),r=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){return new Promise((e,r)=>{try{t.readEntries(e,r)}catch(o){console.log(o),r(o)}})}_isAccepted(t){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const e=t.type.toLowerCase(),r=t.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o in this._acceptedMimeTypes){if(e===o)return!0;if(o.endsWith("/*")&&e.startsWith(o.replace("/*","")))return!0}return!1}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const r=(e=t.dataTransfer)==null?void 0:e.items;if(r){let o=await this._getAllFileEntries(r);this.multiple===!1&&o.length&&(o=[o[0]]),this.dispatchEvent(new jt(jt.CHANGE,{detail:{files:o}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new jt(jt.CHANGE,{detail:{files:t}}))}render(){return l`
2708
+ `],_i=np([p("uui-dialog")],_i);var ap=Object.defineProperty,Ra=Object.getOwnPropertySymbols,lp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,Fa=(t,e,r)=>e in t?ap(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ga=(t,e)=>{for(var r in e||(e={}))lp.call(e,r)&&Fa(t,r,e[r]);if(Ra)for(var r of Ra(e))up.call(e,r)&&Fa(t,r,e[r]);return t};class jt extends k{constructor(e,r={}){super(e,Ga(Ga({},{bubbles:!0}),r))}}jt.CHANGE="change";var cp=Object.defineProperty,hp=Object.getOwnPropertyDescriptor,wr=(t,e,r,o)=>{for(var i=o>1?void 0:o?hp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&cp(e,r,i),i};let Fe=class extends ve("",v){constructor(){super(),this._acceptedFileExtensions=[],this._acceptedMimeTypes=[],this.multiple=!1,this.addEventListener("dragenter",this._onDragEnter,!1),this.addEventListener("dragleave",this._onDragLeave,!1),this.addEventListener("dragover",this._onDragOver,!1),this.addEventListener("drop",this._onDrop,!1)}set accept(t){if(t){const e=[],r=[];t.split(",").forEach(o=>{o=o.trim().toLowerCase(),new RegExp("[a-z]+\\/[a-z*]","s").test(o)?e.push(o):r.push(o.replace(/^\./,""))}),this._acceptedMimeTypes=e,this._acceptedFileExtensions=r}else this._acceptedMimeTypes=[],this._acceptedFileExtensions=[]}browse(){this._input.click()}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-file-dropzone")}async _getAllFileEntries(t){const e=[],r=[...t];for(;r.length>0;){const o=r.shift();if(o.kind==="file"){const i=o.getAsFile();if(!i)continue;this._isAccepted(i)&&e.push(i)}else if(o.kind==="directory"){if(!("webkitGetAsEntry"in o))continue;const i=o.webkitGetAsEntry();r.push(...await this._readAllDirectoryEntries(i.createReader()))}}return e}async _readAllDirectoryEntries(t){const e=[];let r=await this._readEntriesPromise(t);for(;r.length>0;)e.push(...r),r=await this._readEntriesPromise(t);return e}async _readEntriesPromise(t){return new Promise((e,r)=>{try{t.readEntries(e,r)}catch(o){console.log(o),r(o)}})}_isAccepted(t){if(this._acceptedFileExtensions.length===0&&this._acceptedMimeTypes.length===0)return!0;const e=t.type.toLowerCase(),r=t.name.split(".").pop();if(r&&this._acceptedFileExtensions.includes(r.toLowerCase()))return!0;for(const o in this._acceptedMimeTypes){if(e===o)return!0;if(o.endsWith("/*")&&e.startsWith(o.replace("/*","")))return!0}return!1}async _onDrop(t){var e;t.preventDefault(),this._dropzone.classList.remove("hover");const r=(e=t.dataTransfer)==null?void 0:e.items;if(r){let o=await this._getAllFileEntries(r);this.multiple===!1&&o.length&&(o=[o[0]]),this.dispatchEvent(new jt(jt.CHANGE,{detail:{files:o}}))}}_onDragOver(t){t.preventDefault()}_onDragEnter(t){this._dropzone.classList.add("hover"),t.preventDefault()}_onDragLeave(t){this._dropzone.classList.remove("hover"),t.preventDefault()}_onFileInputChange(){const t=this._input.files?Array.from(this._input.files):[];this.dispatchEvent(new jt(jt.CHANGE,{detail:{files:t}}))}render(){return l`
2667
2709
  <div id="dropzone">
2668
2710
  <uui-symbol-file-dropzone id="symbol"></uui-symbol-file-dropzone>
2669
2711
  ${this.renderLabel()}
@@ -2715,7 +2757,7 @@
2715
2757
  opacity: 0;
2716
2758
  display: none;
2717
2759
  }
2718
- `],yr([C("#input")],Fe.prototype,"_input",2),yr([C("#dropzone")],Fe.prototype,"_dropzone",2),yr([a({type:String})],Fe.prototype,"accept",1),yr([a({type:Boolean})],Fe.prototype,"multiple",2),Fe=yr([p("uui-file-dropzone")],Fe);class Gd{static humanFileSize(e,r=!1,o=1){const i=r?1e3:1024;if(Math.abs(e)<i)return e+" B";const s=r?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let n=-1;const u=10**o;do e/=i,++n;while(Math.round(Math.abs(e)*u)/u>=i&&n<s.length-1);return e.toFixed(o)+" "+s[n]}}var qd=Object.defineProperty,Wd=Object.getOwnPropertyDescriptor,we=(t,e,r,o)=>{for(var i=o>1?void 0:o?Wd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&qd(e,r,i),i};let X=class extends v{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(r=>{this._src=r})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-file-thumbnail"),_(this,"uui-symbol-folder"),_(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?l`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?l`<uui-symbol-file-thumbnail
2760
+ `],wr([C("#input")],Fe.prototype,"_input",2),wr([C("#dropzone")],Fe.prototype,"_dropzone",2),wr([a({type:String})],Fe.prototype,"accept",1),wr([a({type:Boolean})],Fe.prototype,"multiple",2),Fe=wr([p("uui-file-dropzone")],Fe);class dp{static humanFileSize(e,r=!1,o=1){const i=r?1e3:1024;if(Math.abs(e)<i)return e+" B";const s=r?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let n=-1;const u=10**o;do e/=i,++n;while(Math.round(Math.abs(e)*u)/u>=i&&n<s.length-1);return e.toFixed(o)+" "+s[n]}}var pp=Object.defineProperty,vp=Object.getOwnPropertyDescriptor,we=(t,e,r,o)=>{for(var i=o>1?void 0:o?vp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pp(e,r,i),i};let Y=class extends v{constructor(){super(...arguments),this._name="",this._url="",this._extension="",this._src="",this._size=0,this._isDirectory=!1}get file(){return this._file}set file(t){const e=this._file;t instanceof File&&(this._name=t.name.split(".")[0],this._extension=t.name.split(".")[1],this._isDirectory=!1,this._size=t.size,this._isFileAnImage(t)&&(this._isImage=!0,this._getThumbnail(t).then(r=>{this._src=r})),this.requestUpdate("file",e))}connectedCallback(){super.connectedCallback(),_(this,"uui-symbol-file-thumbnail"),_(this,"uui-symbol-folder"),_(this,"uui-symbol-file")}_openSource(){window.open(this._url,"_blank")}_fileTypeTemplate(){return this._isDirectory?l`<uui-symbol-folder id="file-symbol"></uui-symbol-folder>`:this._isImage?l`<uui-symbol-file-thumbnail
2719
2761
  .src=${this._src}
2720
2762
  .alt=${this._name}
2721
2763
  id="file-symbol"></uui-symbol-file-thumbnail>`:l`<uui-symbol-file
@@ -2735,10 +2777,10 @@
2735
2777
  <div id="file-info">
2736
2778
  ${this._renderLongName()}
2737
2779
  <span id="file-size">
2738
- ${this._size&&!this._isDirectory?l`${Gd.humanFileSize(this._size,!0)}`:""}
2780
+ ${this._size&&!this._isDirectory?l`${dp.humanFileSize(this._size,!0)}`:""}
2739
2781
  </span>
2740
2782
  </div>
2741
- `}};X.styles=[d`
2783
+ `}};Y.styles=[d`
2742
2784
  :host {
2743
2785
  position: relative;
2744
2786
  display: grid;
@@ -2806,7 +2848,7 @@
2806
2848
  text-decoration: underline;
2807
2849
  cursor: pointer;
2808
2850
  }
2809
- `],we([f()],X.prototype,"_name",2),we([f()],X.prototype,"_url",2),we([f()],X.prototype,"_extension",2),we([f()],X.prototype,"_src",2),we([f()],X.prototype,"_size",2),we([f()],X.prototype,"_isDirectory",2),we([f()],X.prototype,"_file",2),we([f()],X.prototype,"_isImage",2),we([a({attribute:!1})],X.prototype,"file",1),X=we([p("uui-file-preview")],X);var Kd=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,_i=(t,e,r,o)=>{for(var i=o>1?void 0:o?Xd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Kd(e,r,i),i};let ft=class extends v{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),_(this,"uui-form-validation-message")}render(){return l`
2851
+ `],we([f()],Y.prototype,"_name",2),we([f()],Y.prototype,"_url",2),we([f()],Y.prototype,"_extension",2),we([f()],Y.prototype,"_src",2),we([f()],Y.prototype,"_size",2),we([f()],Y.prototype,"_isDirectory",2),we([f()],Y.prototype,"_file",2),we([f()],Y.prototype,"_isImage",2),we([a({attribute:!1})],Y.prototype,"file",1),Y=we([p("uui-file-preview")],Y);var fp=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,yi=(t,e,r,o)=>{for(var i=o>1?void 0:o?bp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fp(e,r,i),i};let ft=class extends v{constructor(){super(...arguments),this.description=null,this._labelSlotHasContent=!1,this._labelSlotChanged=t=>{this._labelSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._descriptionSlotHasContent=!1,this._descriptionSlotChanged=t=>{this._descriptionSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}connectedCallback(){super.connectedCallback(),_(this,"uui-form-validation-message")}render(){return l`
2810
2852
  <div id="label" style=${this._labelSlotHasContent?"":"display: none"}>
2811
2853
  <slot name="label" @slotchange=${this._labelSlotChanged}></slot>
2812
2854
  </div>
@@ -2841,25 +2883,25 @@
2841
2883
  margin-top: -8px;
2842
2884
  min-height: 8px;
2843
2885
  }
2844
- `],_i([a({type:String})],ft.prototype,"description",2),_i([f()],ft.prototype,"_labelSlotHasContent",2),_i([f()],ft.prototype,"_descriptionSlotHasContent",2),ft=_i([p("uui-form-layout-item")],ft);/**
2886
+ `],yi([a({type:String})],ft.prototype,"description",2),yi([f()],ft.prototype,"_labelSlotHasContent",2),yi([f()],ft.prototype,"_descriptionSlotHasContent",2),ft=yi([p("uui-form-layout-item")],ft);/**
2845
2887
  * @license
2846
2888
  * Copyright 2017 Google LLC
2847
2889
  * SPDX-License-Identifier: BSD-3-Clause
2848
- */const Sa=(t,e,r)=>{const o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},ka=At(class extends Ut{constructor(t){if(super(t),t.type!==le.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);const i=[],s=[];let n=0;for(const u of t)i[n]=o?o(u,n):n,s[n]=r(u,n),n++;return{values:s,keys:i}}render(t,e,r){return this.ct(t,e,r).values}update(t,[e,r,o]){var i;const s=Bh(t),{values:n,keys:u}=this.ct(e,r,o);if(!Array.isArray(s))return this.ut=u,n;const c=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],h=[];let m,y,b=0,w=s.length-1,$=0,E=n.length-1;for(;b<=w&&$<=E;)if(s[b]===null)b++;else if(s[w]===null)w--;else if(c[b]===u[$])h[$]=dt(s[b],n[$]),b++,$++;else if(c[w]===u[E])h[E]=dt(s[w],n[E]),w--,E--;else if(c[b]===u[E])h[E]=dt(s[b],n[E]),gr(t,h[E+1],s[b]),b++,E--;else if(c[w]===u[$])h[$]=dt(s[w],n[$]),gr(t,s[b],s[w]),w--,$++;else if(m===void 0&&(m=Sa(u,$,E),y=Sa(c,b,w)),m.has(c[b]))if(m.has(c[w])){const q=y.get(u[$]),Xe=q!==void 0?s[q]:null;if(Xe===null){const yt=gr(t,s[b]);dt(yt,n[$]),h[$]=yt}else h[$]=dt(Xe,n[$]),gr(t,s[b],Xe),s[q]=null;$++}else fo(s[w]),w--;else fo(s[b]),b++;for(;$<=E;){const q=gr(t,h[E+1]);dt(q,n[$]),h[$++]=q}for(;b<=w;){const q=s[b++];q!==null&&fo(q)}return this.ut=u,Bn(t,h),F}});var Yd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,za=(t,e,r,o)=>{for(var i=o>1?void 0:o?Zd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Yd(e,r,i),i};let wr=class extends v{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.composedPath()[0];e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{const e=t.composedPath()[0];this._messages.delete(e),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const i=this.getRootNode();e=i?.getElementById(t)}const r=e||this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(zt.INVALID,this._onControlInvalid),o.removeEventListener(zt.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(zt.INVALID,this._onControlInvalid),this._for.addEventListener(zt.VALID,this._onControlValid))}render(){return l`
2890
+ */const qa=(t,e,r)=>{const o=new Map;for(let i=e;i<=r;i++)o.set(t[i],i);return o},Wa=At(class extends Ut{constructor(t){if(super(t),t.type!==le.CHILD)throw Error("repeat() can only be used in text expressions")}ct(t,e,r){let o;r===void 0?r=e:e!==void 0&&(o=e);const i=[],s=[];let n=0;for(const u of t)i[n]=o?o(u,n):n,s[n]=r(u,n),n++;return{values:s,keys:i}}render(t,e,r){return this.ct(t,e,r).values}update(t,[e,r,o]){var i;const s=ud(t),{values:n,keys:u}=this.ct(e,r,o);if(!Array.isArray(s))return this.ut=u,n;const c=(i=this.ut)!==null&&i!==void 0?i:this.ut=[],h=[];let m,y,b=0,w=s.length-1,$=0,E=n.length-1;for(;b<=w&&$<=E;)if(s[b]===null)b++;else if(s[w]===null)w--;else if(c[b]===u[$])h[$]=dt(s[b],n[$]),b++,$++;else if(c[w]===u[E])h[E]=dt(s[w],n[E]),w--,E--;else if(c[b]===u[E])h[E]=dt(s[b],n[E]),mr(t,h[E+1],s[b]),b++,E--;else if(c[w]===u[$])h[$]=dt(s[w],n[$]),mr(t,s[b],s[w]),w--,$++;else if(m===void 0&&(m=qa(u,$,E),y=qa(c,b,w)),m.has(c[b]))if(m.has(c[w])){const W=y.get(u[$]),Xe=W!==void 0?s[W]:null;if(Xe===null){const yt=mr(t,s[b]);dt(yt,n[$]),h[$]=yt}else h[$]=dt(Xe,n[$]),mr(t,s[b],Xe),s[W]=null;$++}else wo(s[w]),w--;else wo(s[b]),b++;for(;$<=E;){const W=mr(t,h[E+1]);dt(W,n[$]),h[$++]=W}for(;b<=w;){const W=s[b++];W!==null&&wo(W)}return this.ut=u,na(t,h),F}});var gp=Object.defineProperty,mp=Object.getOwnPropertyDescriptor,Ka=(t,e,r,o)=>{for(var i=o>1?void 0:o?mp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gp(e,r,i),i};let xr=class extends v{constructor(){super(),this._for=null,this._messages=new Map,this._onControlInvalid=t=>{const e=t.composedPath()[0];e.pristine===!1?this._messages.set(e,e.validationMessage):this._messages.delete(e),this.requestUpdate()},this._onControlValid=t=>{const e=t.composedPath()[0];this._messages.delete(e),this.requestUpdate()},this.for===null&&(this.for=this)}get for(){return this._for}set for(t){let e=null;if(typeof t=="string"){const i=this.getRootNode();e=i?.getElementById(t)}const r=e||this,o=this._for;o!==r&&(o!==null&&(o.removeEventListener(It.INVALID,this._onControlInvalid),o.removeEventListener(It.VALID,this._onControlValid)),this._for=r,this._for.addEventListener(It.INVALID,this._onControlInvalid),this._for.addEventListener(It.VALID,this._onControlValid))}render(){return l`
2849
2891
  <slot></slot>
2850
2892
  <div id="messages">
2851
- ${ka(this._messages,t=>l`<div>${t[1]}</div>`)}
2893
+ ${Wa(this._messages,t=>l`<div>${t[1]}</div>`)}
2852
2894
  <slot name="message"></slot>
2853
2895
  </div>
2854
- `}};wr.styles=[d`
2896
+ `}};xr.styles=[d`
2855
2897
  #messages {
2856
2898
  color: var(--uui-color-danger-standalone,rgb(191, 33, 78));
2857
2899
  }
2858
- `],za([a({reflect:!1,attribute:!0})],wr.prototype,"for",1),wr=za([p("uui-form-validation-message")],wr);var Qd=Object.defineProperty,Jd=Object.getOwnPropertyDescriptor,ep=(t,e,r,o)=>{for(var i=o>1?void 0:o?Jd(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Qd(e,r,i),i};let Co=class extends v{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return l`<slot @slotchange=${this._onSlotChanged}></slot>`}};Co=ep([p("uui-form")],Co);/**
2900
+ `],Ka([a({reflect:!1,attribute:!0})],xr.prototype,"for",1),xr=Ka([p("uui-form-validation-message")],xr);var _p=Object.defineProperty,yp=Object.getOwnPropertyDescriptor,wp=(t,e,r,o)=>{for(var i=o>1?void 0:o?yp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&_p(e,r,i),i};let Ao=class extends v{constructor(){super(...arguments),this._formElement=null}getFormElement(){return this._formElement}_onSlotChanged(t){this._formElement&&(this._formElement.removeEventListener("submit",this._onSubmit),this._formElement.removeEventListener("reset",this._onReset));const e=t.target.assignedNodes({flatten:!0}).filter(r=>r instanceof HTMLFormElement);this._formElement=e.length>0?e[0]:null,this._formElement&&(this._formElement.setAttribute("novalidate",""),this._formElement.addEventListener("submit",this._onSubmit),this._formElement.addEventListener("reset",this._onReset))}_onSubmit(t){if(t.target===null)return;const e=t.target;if(!e.checkValidity()){e.setAttribute("submit-invalid","");return}e.removeAttribute("submit-invalid")}_onReset(t){t.target!==null&&t.target.removeAttribute("submit-invalid")}render(){return l`<slot @slotchange=${this._onSlotChanged}></slot>`}};Ao=wp([p("uui-form")],Ao);/**
2859
2901
  * @license
2860
2902
  * Copyright 2017 Google LLC
2861
2903
  * SPDX-License-Identifier: BSD-3-Clause
2862
- */class Oo extends Ut{constructor(e){if(super(e),this.et=x,e.type!==le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===x||e==null)return this.ft=void 0,this.et=e;if(e===F)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const r=[e];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Oo.directiveName="unsafeHTML",Oo.resultType=1;const So=At(Oo);var tp=Object.defineProperty,Ia=Object.getOwnPropertySymbols,rp=Object.prototype.hasOwnProperty,ip=Object.prototype.propertyIsEnumerable,Aa=(t,e,r)=>e in t?tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ua=(t,e)=>{for(var r in e||(e={}))rp.call(e,r)&&Aa(t,r,e[r]);if(Ia)for(var r of Ia(e))ip.call(e,r)&&Aa(t,r,e[r]);return t};class Vt extends O{constructor(e,r={}){super(e,Ua(Ua({},{bubbles:!0,composed:!0}),r)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}Vt.ICON_REQUEST="icon-request";var op=Object.defineProperty,sp=Object.getOwnPropertyDescriptor,Bt=(t,e,r,o)=>{for(var i=o>1?void 0:o?sp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&op(e,r,i),i};let De=class extends v{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new Vt(Vt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon()}render(){return this._useFallback===!0?this.fallback===null?l`<slot name="fallback"></slot>`:So(this.fallback):this._nameSvg!==null?So(this._nameSvg):this.svg!==null?So(this.svg):l`<slot></slot>`}};De.styles=[d`
2904
+ */class Uo extends Ut{constructor(e){if(super(e),this.et=x,e.type!==le.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===x||e==null)return this.ft=void 0,this.et=e;if(e===F)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.ft;this.et=e;const r=[e];return r.raw=r,this.ft={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Uo.directiveName="unsafeHTML",Uo.resultType=1;const Do=At(Uo);var xp=Object.defineProperty,Xa=Object.getOwnPropertySymbols,$p=Object.prototype.hasOwnProperty,Ep=Object.prototype.propertyIsEnumerable,Ya=(t,e,r)=>e in t?xp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Za=(t,e)=>{for(var r in e||(e={}))$p.call(e,r)&&Ya(t,r,e[r]);if(Xa)for(var r of Xa(e))Ep.call(e,r)&&Ya(t,r,e[r]);return t};class Vt extends k{constructor(e,r={}){super(e,Za(Za({},{bubbles:!0,composed:!0}),r)),this.icon=null}acceptRequest(e){this.icon=e,this.stopImmediatePropagation()}}Vt.ICON_REQUEST="icon-request";var Pp=Object.defineProperty,Cp=Object.getOwnPropertyDescriptor,Bt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Cp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Pp(e,r,i),i};let De=class extends v{constructor(){super(...arguments),this._name=null,this._retrievedNameIcon=!1,this._nameSvg=null,this.svg=null,this.fallback=null,this._useFallback=!1}get name(){return this._name}set name(t){this._name=t,this.shadowRoot&&this.requestIcon()}requestIcon(){if(this._name!==""&&this._name!==null){const t=new Vt(Vt.ICON_REQUEST,{detail:{iconName:this._name}});this.dispatchEvent(t),t.icon!==null?(this._retrievedNameIcon=!0,t.icon.then(e=>{this._useFallback=!1,this._nameSvg=e})):(this._retrievedNameIcon=!1,this._useFallback=!0)}}connectedCallback(){super.connectedCallback(),this._retrievedNameIcon===!1&&this.requestIcon()}disconnectedCallback(){this._retrievedNameIcon=!1}firstUpdated(){this._retrievedNameIcon===!1&&this.requestIcon()}render(){return this._useFallback===!0?this.fallback===null?l`<slot name="fallback"></slot>`:Do(this.fallback):this._nameSvg!==null?Do(this._nameSvg):this.svg!==null?Do(this.svg):l`<slot></slot>`}};De.styles=[d`
2863
2905
  :host {
2864
2906
  display: inline-block;
2865
2907
  vertical-align: bottom;
@@ -2879,20 +2921,20 @@
2879
2921
  :host-context(div[slot='append']) {
2880
2922
  margin-right: var(--uui-size-2, 6px);
2881
2923
  }
2882
- `],Bt([f()],De.prototype,"_nameSvg",2),Bt([a()],De.prototype,"name",1),Bt([a({attribute:!1})],De.prototype,"svg",2),Bt([a({attribute:!1})],De.prototype,"fallback",2),Bt([f()],De.prototype,"_useFallback",2),De=Bt([p("uui-icon")],De);class ko{constructor(e){this.promise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class zo{constructor(){this.icons={},this._onIconRequest=e=>{const r=this.getIcon(e.detail.iconName);r!==null&&e.acceptRequest(r)}}attach(e){e.addEventListener(Vt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Vt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,r){if(this.icons[e]){this.icons[e].svg=r;return}this.icons[e]=new ko(r)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new ko}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var np=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,Da=(t,e,r,o)=>{for(var i=o>1?void 0:o?ap(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&np(e,r,i),i};let xr=class extends v{constructor(){super(),this._icons={},this._registry=new zo,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,r])=>this._registry.defineIcon(e,r))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return l`<slot></slot>`}};Da([a({attribute:!1})],xr.prototype,"_icons",2),xr=Da([p("uui-icon-registry")],xr);const lp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg>`,up=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,cp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,hp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M475.88 151.615c-.583-.961-10.257-17.833-29.675-35.154-19.305-17.239-49.226-35.216-88.641-35.21-39.424-.02-69.047 18.022-87.958 35.329a162.852 162.852 0 0 0-14.814 15.459 167.873 167.873 0 0 0-15.325-15.578c-19.302-17.239-49.225-35.216-88.635-35.21-39.428-.02-69.049 18.022-87.962 35.329-19.041 17.4-28.3 34.322-28.873 35.328l-1.991 7.796v254.56l30.49 7.78.066.039c.423-.818 8.621-14.927 23.664-28.167 15.169-13.298 36.324-25.537 64.605-25.557 29.166.006 51.354 13.121 66.996 26.975a134.425 134.425 0 0 1 17.578 19.031 110.554 110.554 0 0 1 4.313 6.109 52.672 52.672 0 0 1 1.176 1.876l.008.006.006-.002c2.808 4.888 8.066 8.192 14.113 8.192 6.155 0 11.507-3.421 14.271-8.464h.002l.025-.049.008-.014c.617-1.129 8.778-15.029 23.632-28.104 15.169-13.298 36.327-25.537 64.603-25.557 29.178.006 51.36 13.121 67.002 26.975 7.752 6.894 13.677 13.88 17.576 19.031a110.974 110.974 0 0 1 4.312 6.109c.463.707.792 1.241.984 1.562.092.155.163.263.192.314l.004.006.029-.012 30.37-8.081v-254.56l-2.151-8.087zM150.832 335.806h-.062c-38.245 0-67.258 16.996-86.213 33.819V164.279c3.311-5.068 10.654-15.229 21.67-24.919 15.169-13.31 36.324-25.539 64.605-25.559 29.166 0 51.354 13.122 66.996 26.974a134.046 134.046 0 0 1 17.578 19.03 108.111 108.111 0 0 1 3.338 4.655v205.933c-19.321-17.044-48.976-34.587-87.912-34.587zm294.652 34.57c-19.324-17.04-48.99-34.57-87.92-34.57-38.292-.018-67.307 17.006-86.275 33.849V164.289c3.305-5.058 10.639-15.217 21.673-24.929 15.169-13.31 36.327-25.539 64.603-25.559 29.178 0 51.36 13.122 67.002 26.974 7.752 6.891 13.677 13.875 17.576 19.03a110.27 110.27 0 0 1 3.342 4.651v205.92z"/></svg>`,dp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,pp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2924
+ `],Bt([f()],De.prototype,"_nameSvg",2),Bt([a()],De.prototype,"name",1),Bt([a({attribute:!1})],De.prototype,"svg",2),Bt([a({attribute:!1})],De.prototype,"fallback",2),Bt([f()],De.prototype,"_useFallback",2),De=Bt([p("uui-icon")],De);class Lo{constructor(e){this.promise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),e&&this.resolve(e)}set svg(e){this.resolve(e)}}class No{constructor(){this.icons={},this._onIconRequest=e=>{const r=this.getIcon(e.detail.iconName);r!==null&&e.acceptRequest(r)}}attach(e){e.addEventListener(Vt.ICON_REQUEST,this._onIconRequest)}detach(e){e.removeEventListener(Vt.ICON_REQUEST,this._onIconRequest)}defineIcon(e,r){if(this.icons[e]){this.icons[e].svg=r;return}this.icons[e]=new Lo(r)}getIcon(e){return this.icons[e]||this.acceptIcon(e)?this.icons[e].promise:null}provideIcon(e){return this.icons[e]=new Lo}acceptIcon(e){return!1}getIconNames(){return Object.keys(this.icons)}}var Op=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,Qa=(t,e,r,o)=>{for(var i=o>1?void 0:o?kp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Op(e,r,i),i};let $r=class extends v{constructor(){super(),this._icons={},this._registry=new No,this._registry.attach(this)}get icons(){return this._icons}set icons(t){this._icons=t,this._registry&&Object.entries(this._icons).forEach(([e,r])=>this._registry.defineIcon(e,r))}get registry(){return this._registry}set registry(t){this.registry&&this.registry.detach(this),t.attach(this),this._registry=t}render(){return l`<slot></slot>`}};Qa([a({attribute:!1})],$r.prototype,"_icons",2),$r=Qa([p("uui-icon-registry")],$r);const Sp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M420.592 214.291H296.104V89.804h-83.102v124.487H88.518v83.104h124.484v124.488h83.102V297.395h124.488z"/></svg>`,Ip=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M255.399 66.934L36.38 444.893h438.036L255.399 66.934zm22.094 331.988h-46.29v-44.743h46.29v44.743zm-11.458-63.166h-23.068l-12.849-106.419v-57.846h48.458v57.846l-12.541 106.419z"/></svg>`,zp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M127.286 449.816c-21.564.006-43.317-8.494-59.885-25.062-16.578-16.575-25.083-38.336-25.079-59.897-.029-20.296 7.623-40.755 23.034-56.14l3.539-3.539 212.559-212.57c20.227-20.255 47.082-30.304 73.852-30.267 28.454-.012 57.219 11.208 79.179 33.159 21.937 21.949 33.153 50.698 33.147 79.151.028 26.779-10.016 53.627-30.268 73.865l-178.45 178.453-13.28 13.277-26.56-26.559 191.738-191.733c12.842-12.871 19.229-29.708 19.259-47.303-.004-18.645-7.323-37.759-22.152-52.592-14.834-14.838-33.958-22.152-52.613-22.165-17.588.034-34.423 6.418-47.284 19.266L95.447 331.734l-3.536 3.537c-8.011 8.031-11.994 18.482-12.029 29.585.014 11.761 4.614 23.877 14.079 33.345 9.455 9.446 21.562 14.043 33.326 14.056 11.102-.034 21.551-4.014 29.587-12.026l150.412-150.404 12.596-12.595c3.018-3.04 4.521-6.906 4.549-11.331 0-4.666-1.817-9.57-5.722-13.476-3.914-3.916-8.819-5.726-13.48-5.739-4.425.038-8.283 1.542-11.328 4.564L155.27 349.882l-26.561-26.56L267.33 184.703c10.408-10.44 24.289-15.604 37.897-15.57 14.468-.012 29.01 5.704 40.049 16.739 11.007 11.025 16.72 25.554 16.72 40.029.029 13.599-5.129 27.479-15.559 37.89l-12.601 12.595-150.41 150.41c-15.365 15.377-35.768 23.025-56.022 23.021l-.118-.001z"/></svg>`,Ap=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M475.88 151.615c-.583-.961-10.257-17.833-29.675-35.154-19.305-17.239-49.226-35.216-88.641-35.21-39.424-.02-69.047 18.022-87.958 35.329a162.852 162.852 0 0 0-14.814 15.459 167.873 167.873 0 0 0-15.325-15.578c-19.302-17.239-49.225-35.216-88.635-35.21-39.428-.02-69.049 18.022-87.962 35.329-19.041 17.4-28.3 34.322-28.873 35.328l-1.991 7.796v254.56l30.49 7.78.066.039c.423-.818 8.621-14.927 23.664-28.167 15.169-13.298 36.324-25.537 64.605-25.557 29.166.006 51.354 13.121 66.996 26.975a134.425 134.425 0 0 1 17.578 19.031 110.554 110.554 0 0 1 4.313 6.109 52.672 52.672 0 0 1 1.176 1.876l.008.006.006-.002c2.808 4.888 8.066 8.192 14.113 8.192 6.155 0 11.507-3.421 14.271-8.464h.002l.025-.049.008-.014c.617-1.129 8.778-15.029 23.632-28.104 15.169-13.298 36.327-25.537 64.603-25.557 29.178.006 51.36 13.121 67.002 26.975 7.752 6.894 13.677 13.88 17.576 19.031a110.974 110.974 0 0 1 4.312 6.109c.463.707.792 1.241.984 1.562.092.155.163.263.192.314l.004.006.029-.012 30.37-8.081v-254.56l-2.151-8.087zM150.832 335.806h-.062c-38.245 0-67.258 16.996-86.213 33.819V164.279c3.311-5.068 10.654-15.229 21.67-24.919 15.169-13.31 36.324-25.539 64.605-25.559 29.166 0 51.354 13.122 66.996 26.974a134.046 134.046 0 0 1 17.578 19.03 108.111 108.111 0 0 1 3.338 4.655v205.933c-19.321-17.044-48.976-34.587-87.912-34.587zm294.652 34.57c-19.324-17.04-48.99-34.57-87.92-34.57-38.292-.018-67.307 17.006-86.275 33.849V164.289c3.305-5.058 10.639-15.217 21.673-24.929 15.169-13.31 36.327-25.539 64.603-25.559 29.178 0 51.36 13.122 67.002 26.974 7.752 6.891 13.677 13.875 17.576 19.03a110.27 110.27 0 0 1 3.342 4.651v205.92z"/></svg>`,Up=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M342.391 352.428h-44.879v44.865h44.879v-44.865zm-63.234-120.071h-44.849v44.853h44.849v-44.853zm63.234 60.034h-44.879v44.859h44.879v-44.859zm63.174-60.034h-44.854v44.853h44.854v-44.853zm-126.408 60.034h-44.849v44.859h44.849v-44.859zm63.234-60.034h-44.879v44.853h44.879v-44.853zm63.174 60.034h-44.854v44.859h44.854v-44.859zm-252.803 60.037h-44.856v44.865h44.856v-44.865zm0-60.037h-44.856v44.859h44.856v-44.859zM394.024 74.208v19.691c7.737 6.847 12.642 16.825 12.642 27.969 0 20.634-16.732 37.367-37.369 37.367-20.642 0-37.367-16.733-37.367-37.367 0-11.147 4.903-21.124 12.643-27.969V74.208H169.97v19.691c7.739 6.847 12.643 16.825 12.643 27.969 0 20.634-16.732 37.367-37.369 37.367-20.64 0-37.367-16.733-37.367-37.367 0-11.147 4.904-21.124 12.642-27.969V74.208h-83.27v397.644h436.668V74.208h-79.893zm40.011 357.759H77.131V183.544h356.904v248.423zm-218.047-199.61h-44.881v44.853h44.881v-44.853zm0 120.071h-44.881v44.865h44.881v-44.865zm63.169 0h-44.849v44.865h44.849v-44.865zm-63.169-60.037h-44.881v44.859h44.881v-44.859zM145.245 143.64c10.273 0 18.603-8.326 18.603-18.599V58.035c0-10.267-8.329-18.6-18.603-18.6-10.274 0-18.602 8.333-18.602 18.6v67.006c0 10.272 8.328 18.599 18.602 18.599zm224.054 0c10.272 0 18.601-8.326 18.601-18.599V58.035c0-10.267-8.328-18.6-18.601-18.6-10.274 0-18.604 8.333-18.604 18.6v67.006c0 10.272 8.329 18.599 18.604 18.599z"/></svg>`,Dp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2883
2925
  <path d="M461.884 68.14c-132.601 81.297-228.817 183.87-272.048 235.345l-105.874-82.95-46.751 37.691 182.941 186.049c31.485-80.646 131.198-238.264 252.956-350.252L461.884 68.14z"/>
2884
- </svg>`,vp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,fp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,bp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,gp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,mp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,_p=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg>`,yp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,wp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,xp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,$p=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,Ep=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z"/></svg>`,Pp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,Cp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,Op=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,Sp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,kp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,zp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Ip=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Ap=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,Up=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,Dp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,Lp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,Np=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,Hp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,Tp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,Mp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,jp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2926
+ </svg>`,Lp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M380.295 95.092h-68.479a54.17 54.17 0 00.097-3.321c0-30.805-24.948-55.743-55.722-55.743-30.803 0-55.756 24.938-55.756 55.743 0 1.112.065 2.208.098 3.321h-68.446v57.766h248.208V95.092zm-124.104 21.76c-13.865-.033-25.049-11.232-25.079-25.081.03-13.862 11.214-25.081 25.079-25.1 13.834.019 25.083 11.237 25.083 25.1 0 13.848-11.249 25.047-25.083 25.081zm149.053 13.787v48.676H107.172v-48.676H79.537v345.078h353.307V130.639h-27.6z"/></svg>`,Np=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M38.299 255.395l137.255-137.248 46.782 46.789-90.458 90.459 90.458 90.46-46.782 46.792L38.299 255.395zm248.467 90.46l90.466-90.46-72.028-72.026-18.431-18.433 46.788-46.791 18.436 18.438L470.81 255.395 333.561 392.647l-46.795-46.792z"/></svg>`,Tp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M460.5 78.244l-26.472-26.473c-16.867-16.868-44.216-16.865-61.083.003l-61.466 61.468-29.702-29.699-58.764 58.763 24.501 24.499L79.748 334.573C68.761 345.557 62.6 359.972 61.767 374.81l-9.766 9.764c-20.867 20.881-20.863 54.838.002 75.704 10.106 10.108 23.548 15.679 37.85 15.679 14.297 0 27.733-5.568 37.847-15.67l9.758-9.765c15.211-.821 29.394-7.139 40.248-17.99l167.771-167.767 24.493 24.495 58.765-58.764-29.698-29.699 61.465-61.466c16.87-16.869 16.87-44.218-.002-61.087zM150.574 405.398a23.298 23.298 0 01-16.532 6.846c-3.501 0-7.007-.782-10.231-2.343v.007l-23.242 23.236a15.092 15.092 0 01-10.716 4.439 15.1 15.1 0 01-10.715-4.439c-5.919-5.922-5.919-15.516-.002-21.436l23.233-23.238.008-.004c-4.226-8.725-2.741-19.518 4.503-26.761l167.769-167.768 43.695 43.693-167.77 167.768z"></path></svg>`,Hp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M243.47 64.86l-7.335-7.333H36.725V474.23h298.07V156.187l-7.332-7.335L243.47 64.86zm66.287 384.329H61.761V82.566h141.615c37.203 0 19.276 88.18 19.276 88.18s86-20.9 87.104 18.53v259.913zm157.051-330.866l-81.266-81.268H258.938l25.043 25.038h71.481c.063 0 .12.01.185.01-.006.286-.023.547-.023.837 11.174 0 16.69 9.045 19.118 20.95 4.358 22.959-2.312 55.826-2.312 55.826s.137-.031.341-.082c-.114.602-.181.933-.181.933s67.129-16.325 75.793 10.732c.077.294.161.585.225.887.083.302.14.612.207.921.154.928.26 1.889.287 2.904v228.807h-87.998l.002 25.037h113.037V125.66l-7.335-7.337z"/></svg>`,Mp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M122.844 475.519h263.145V195.703H122.844v279.816zm181.281-223.79c0-8.498 6.891-15.386 15.395-15.386 8.494 0 15.385 6.888 15.385 15.386v162.128c0 8.496-6.891 15.394-15.385 15.394-8.504 0-15.395-6.897-15.395-15.394V251.729zm-65.101.003c0-8.496 6.892-15.392 15.39-15.392 8.496 0 15.392 6.896 15.392 15.392v162.125c0 8.496-6.896 15.391-15.392 15.391-8.498 0-15.39-6.895-15.39-15.391V251.732zm-65.098 0c0-8.501 6.895-15.392 15.389-15.392 8.498 0 15.391 6.891 15.391 15.392v162.127c0 8.498-6.893 15.389-15.391 15.389-8.494 0-15.389-6.891-15.389-15.389V251.732zM399.02 90.23h-57.209v-9.36c-.004-24.942-20.209-45.145-45.148-45.152h-84.498c-24.941.007-45.145 20.209-45.153 45.152v9.36h-57.2c-11.744 0-21.273 9.526-21.273 21.275v56.348h331.756v-56.348c-.002-11.748-9.527-21.275-21.275-21.275zm-87.989 0H197.785l-.004-9.36c.023-7.938 6.445-14.359 14.383-14.372h84.498c7.929.013 14.359 6.433 14.369 14.372v9.36z"/></svg>`,jp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"/></svg>`,Vp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.3,297.9v92.3H103.9v-92.3H73.2v122.9H439V297.9H408.3z M374.2,189.1h-77.7V90.8h-82.8v98.3h-77.6l119,144.2L374.2,189.1L374.2,189.1z"/></svg>`,Bp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M412.656 38.477l-49.973 49.975 58.761 58.76 49.976-49.98-58.764-58.755zM177.421 338.155l-15.932-15.935 190.923-190.928-16.286-16.283L85.215 365.922l.186.185-47.919 106.778 106.309-48.383.182.182.482-.482.006-.003 250.424-250.432-26.537-26.537-190.927 190.925zm-39.26 59.052l-46.369 21.102 20.9-46.572 23.388-23.387 3.367 22.301 22.097 3.164-23.383 23.392z"/></svg>`,Rp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M408.908 86.358c-55.975-26.379-122.761-2.379-149.132 53.615-1.831 3.885-3.421 8.767-4.813 14.428-1.391-5.661-2.984-10.543-4.814-14.428-26.373-55.994-93.143-79.994-149.135-53.615-55.959 26.371-79.969 93.122-53.597 149.113 26.369 55.989 207.502 216.478 207.502 216.478s.018-.203.042-.515l.043.515S436.139 291.46 462.506 235.471c26.373-55.991 2.397-122.742-53.598-149.113z"/></svg>`,Fp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.211 169.501v-.316H52.564v.328c-7.956 1.548-13.959 8.547-13.959 16.955 0 0 5.683 86.463 6.726 117.611 1.045 31.147 3.844 114.728 3.844 114.728 0 9.544 1.973 17.281 11.514 17.281h388.458c9.543 0 11.514-7.737 11.514-17.281 0 0 2.804-83.58 3.845-114.728 1.044-31.147 6.727-117.611 6.727-117.611-.002-8.433-6.036-15.442-14.022-16.967zm0-42.313c0-8.98-7.277-16.256-16.258-16.256H235.305c-6.43-.161-11.384-11.842-11.384-16.311l.003-1.902c0-9.546-7.737-17.28-17.28-17.28H97.168c-9.544 0-17.281 7.734-17.281 17.28l.004 1.902c0 4.5-5.021 16.322-11.517 16.322h.155c-8.844.157-15.965 7.364-15.965 16.244v11.223h404.647v-11.222z"/></svg>`,Gp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z"/></svg>`,qp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 38.7C136 38.7 38.7 136 38.7 256S136 473.3 256 473.3 473.3 376 473.3 256 376 38.7 256 38.7zm18.1 326h-36.2V237.9h36.2v126.8zM256 192.6c-15 0-27.2-12.2-27.2-27.2s12.2-27.2 27.2-27.2 27.2 12.2 27.2 27.2-12.2 27.2-27.2 27.2z"/></svg>`,Wp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M270.508 338.006c-27.316.03-54.696-10.671-75.323-31.318l-3.266-3.266 46.784-46.799 3.271 3.267c8.054 8.036 18.233 11.915 28.533 11.942 10.79-.043 21.088-3.93 29.123-11.942l76.701-76.701c8.024-8.05 11.909-18.306 11.945-28.895-.036-10.495-3.915-20.722-11.936-28.769l-3.268-3.266c-8.049-8.025-18.283-11.903-28.827-11.943-10.55.04-20.785 3.918-28.835 11.943l-31.537 31.543c-12.916 12.922-33.867 12.922-46.788 0-12.924-12.919-12.924-33.867-.005-46.789l31.542-31.544c20.794-20.821 48.361-31.36 75.623-31.327 27.256-.034 54.82 10.505 75.618 31.327l3.266 3.263a106.693 106.693 0 0131.319 75.561c.038 27.25-10.474 54.848-31.325 75.684l-76.704 76.7c-20.915 20.941-48.588 31.328-75.743 31.328l-.168.001zM163.966 468.393c-27.308.027-54.694-10.67-75.322-31.324l-3.264-3.26c-20.875-20.854-31.364-48.479-31.326-75.725-.033-27.27 10.556-54.782 31.326-75.518l76.704-76.707c20.794-20.821 48.361-31.366 75.623-31.327a106.798 106.798 0 0161.267 19.273 33.045 33.045 0 018.42 6.119l5.931 5.93 3.266 3.263h-.001l.001.003-46.781 46.798-.005-.006-3.266-3.266c-8.052-8.024-18.285-11.903-28.832-11.943-10.545.04-20.781 3.918-28.832 11.943l-76.711 76.712c-8.021 8.048-11.901 18.261-11.935 28.726.038 10.627 3.922 20.886 11.938 28.932l3.269 3.26c8.055 8.038 18.235 11.913 28.531 11.941 10.794-.043 21.092-3.928 29.13-11.941l33.051-33.051c12.923-12.915 33.872-12.915 46.788.006 12.921 12.917 12.921 33.863 0 46.787l-33.053 33.051c-20.914 20.938-48.592 31.324-75.745 31.324h-.172z"/></svg>`,Kp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"/></svg>`,Xp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M289.335 420.379V90.8h83.103v329.579h-83.103zm-152.737-.002V90.804h83.101v329.573h-83.101z"/></svg>`,Yp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M451.056 72.576H60.944c-10.72 0-19.424 8.688-19.424 19.424v328c0 10.72 8.688 19.424 19.424 19.424h390.128c10.72 0 19.424-8.688 19.424-19.424V92c-.016-10.72-8.72-19.424-19.44-19.424zm-19.408 328H80.352V111.424h351.28v289.152zm-309.424-34.48h267.568c6.112 0 11.472-4.096 13.056-10a13.513 13.513 0 00-6.224-15.232l-111.488-65.36a13.514 13.514 0 00-15.68 1.424l-27.264 23.504-52.736-45.328c-2.944-2.528-6.816-3.616-10.656-3.152a13.58 13.58 0 00-9.424 5.888l-58.4 87.168a13.519 13.519 0 00-.688 13.92 13.518 13.518 0 0011.936 7.168zm197.968-167.84a41.056 41.056 0 1182.112 0 41.056 41.056 0 11-82.112 0z"/></svg>`,Zp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M397.727 256.048l-286.7 166.932V89.114z"/></svg>`,Qp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M401.431 167.814l-58.757-58.76-88.029 88.026-88.028-88.026-58.76 58.76 88.026 88.027-88.026 88.024 58.76 58.768 88.028-88.031 88.029 88.031 58.757-58.768-88.027-88.024z"/></svg>`,Jp=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M470.704 407.906l-2.691-2.689.006-.002-107.514-107.523c14.938-25.733 23.616-55.565 23.82-87.451.626-97.615-77.99-177.243-175.599-177.857l-1.168-.002c-97.06.005-176.067 78.392-176.692 175.598-.618 97.609 77.999 177.236 175.597 177.859.389.002.766.004 1.155.004 32.442 0 62.846-8.79 88.998-24.075L404.035 469.2l.01-.01 2.686 2.686c8.125 8.124 21.293 8.117 29.414 0l34.56-34.554c8.115-8.117 8.121-21.293-.001-29.416zm-263.956-67.135c-72.589-.466-131.271-59.907-130.812-132.502C76.4 136.14 135.45 77.457 207.561 77.453l.88.002c35.167.22 68.144 14.124 92.851 39.148 24.705 25.025 38.188 58.178 37.962 93.352-.222 35.015-14.027 67.893-38.867 92.564-24.834 24.67-57.78 38.252-92.768 38.252h-.871z"/></svg>`,e0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M254.867 214.401c-22.305 0-40.45 18.143-40.45 40.439 0 22.316 18.145 40.474 40.45 40.474 22.319 0 40.474-18.157 40.474-40.474 0-22.296-18.155-40.439-40.474-40.439zm0-74.942c-107.278 0-215.312 116.648-215.312 116.648s108.034 116.646 215.312 116.646c107.294 0 215.329-116.646 215.329-116.646S362.161 139.459 254.867 139.459zm0 197.952c-45.586 0-82.546-36.925-82.546-82.57 0-45.587 36.96-82.535 82.546-82.535 45.612 0 82.571 36.948 82.571 82.535 0 45.645-36.959 82.57-82.571 82.57z"/></svg>`,t0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M469.92 279.717v-48.898l-6.906-2.256-52.35-17.091-13.971-33.728 26.852-56.814-34.586-34.581-6.477 3.288-49.1 24.937-33.721-13.971-21.198-59.171h-48.899l-2.253 6.912-17.091 52.352-33.712 13.966-56.833-26.849-34.573 34.58 3.287 6.474 24.933 49.116-13.96 33.707-59.182 21.189v48.909l6.914 2.253 52.352 17.094 13.966 33.718-26.845 56.82 34.567 34.587 6.484-3.294 49.103-24.931 33.719 13.968 21.188 59.165h48.902l2.26-6.908 17.094-52.35 33.721-13.967 56.818 26.855 34.584-34.59-3.286-6.48-24.937-49.094 13.969-33.726 59.167-21.191zM255.054 324.78c-37.819 0-68.478-30.657-68.478-68.479 0-37.819 30.659-68.481 68.478-68.481 37.819 0 68.475 30.662 68.475 68.481 0 37.822-30.656 68.479-68.475 68.479z"/></svg>`,r0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M88.871 297.086v-83.1h332.084v83.1H88.871z"/></svg>`,i0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M203.447 202.931l-54.568-54.566c27.503-27.173 65.183-43.913 106.927-43.913 42.13.014 79.972 16.983 107.622 44.577 27.594 27.648 44.561 65.492 44.578 107.629h66.177c-.024-120.624-97.761-218.361-218.376-218.386-59.897 0-114.277 24.203-153.724 63.295l-50.36-50.36.003 151.725h151.721zM363.991 363.67c-27.605 27.918-65.809 45.184-108.183 45.176-42.139-.008-79.978-16.981-107.623-44.574-27.601-27.645-44.565-65.482-44.582-107.614H37.436c.017 120.614 97.751 218.347 218.373 218.374 60.54-.008 115.433-24.73 154.979-64.562l48.997 49V311.423H311.742l52.249 52.247z"/></svg>`,o0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"/></svg>`,s0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512" xml:space="preserve"><path d="M88.89 398.032 396.834 90.09l23.476 23.476-307.942 307.942zM388.5 187.9l-52.4 52.4c.8 4.7 1.3 9.6 1.3 14.6 0 45.6-37 82.6-82.6 82.6-5 0-9.9-.5-14.6-1.3l-30.4 30.4c14.8 4 29.9 6.3 45 6.3 107.3 0 215.3-116.6 215.3-116.6s-33.4-36.4-81.6-68.4zM174 271.6c-1.1-5.4-1.7-11-1.7-16.7 0-45.6 37-82.5 82.5-82.5 5.7 0 11.3.6 16.7 1.7l28.3-28.3c-14.8-4-29.9-6.3-45-6.3-107.3 0-215.3 116.6-215.3 116.6s33.5 36.2 81.7 68.2l52.8-52.7z"/></svg>`,n0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M306.997 124.391c8.992 0 16.277-7.286 16.277-16.276V57.184c.002-8.989-7.285-16.276-16.277-16.276-8.983 0-16.271 7.287-16.273 16.276v50.932c0 8.989 7.29 16.278 16.273 16.275zm80.752 23.244l36.015-36.017c6.356-6.357 6.353-16.662 0-23.015-6.357-6.356-16.662-6.356-23.019 0l-36.013 36.014c-6.356 6.356-6.358 16.661 0 23.018 6.354 6.356 16.661 6.353 23.017 0zm-161.066 2.552c6.354 6.353 16.663 6.353 23.018 0 6.353-6.356 6.353-16.662 0-23.018l-36.018-36.018c-6.355-6.353-16.661-6.353-23.015 0-6.359 6.356-6.359 16.662 0 23.018l36.015 36.018zm159.5 113.463c-6.356-6.357-16.663-6.357-23.02 0-6.354 6.355-6.354 16.661 0 23.018l36.015 36.014c6.356 6.356 16.663 6.356 23.018 0 6.358-6.356 6.358-16.658 0-23.015l-36.013-36.017zm-70.019-131.061L37.625 411.125l58.761 58.76 278.541-278.533-58.763-58.763zm-65.195 99.172l67.606-67.608 24.787 24.788-67.606 67.608-24.787-24.788zm205.2-41.684h-50.934c-8.99 0-16.275 7.289-16.275 16.275-.004 8.985 7.285 16.275 16.275 16.275h50.934c8.988 0 16.273-7.29 16.273-16.275 0-8.99-7.285-16.275-16.273-16.275z"></path></svg>`,a0=g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2885
2927
  <path d="M422.952 371.305L307.064 255.418l115.884-115.887-51.722-51.723L255.34 203.693 139.457 87.812l-51.726 51.719 115.885 115.885L87.731 371.305l51.726 51.721L255.344 307.14l115.884 115.882z"/>
2886
- </svg>`;class La extends zo{constructor(){super(),this.defineIcon("add",lp.strings[0]),this.defineIcon("alert",up.strings[0]),this.defineIcon("attachment",cp.strings[0]),this.defineIcon("book-alt",hp.strings[0]),this.defineIcon("calendar",dp.strings[0]),this.defineIcon("check",pp.strings[0]),this.defineIcon("clipboard",vp.strings[0]),this.defineIcon("code",fp.strings[0]),this.defineIcon("colorpicker",bp.strings[0]),this.defineIcon("copy",gp.strings[0]),this.defineIcon("delete",mp.strings[0]),this.defineIcon("document",_p.strings[0]),this.defineIcon("download",yp.strings[0]),this.defineIcon("edit",wp.strings[0]),this.defineIcon("favorite",xp.strings[0]),this.defineIcon("folder",$p.strings[0]),this.defineIcon("forbidden",Ep.strings[0]),this.defineIcon("info",Pp.strings[0]),this.defineIcon("link",Cp.strings[0]),this.defineIcon("lock",Op.strings[0]),this.defineIcon("pause",Sp.strings[0]),this.defineIcon("picture",kp.strings[0]),this.defineIcon("play",zp.strings[0]),this.defineIcon("remove",Ip.strings[0]),this.defineIcon("search",Ap.strings[0]),this.defineIcon("see",Up.strings[0]),this.defineIcon("settings",Dp.strings[0]),this.defineIcon("subtract",Lp.strings[0]),this.defineIcon("sync",Np.strings[0]),this.defineIcon("unlock",Hp.strings[0]),this.defineIcon("unsee",Tp.strings[0]),this.defineIcon("wand",Mp.strings[0]),this.defineIcon("wrong",jp.strings[0])}}var Vp=Object.defineProperty,Bp=Object.getOwnPropertyDescriptor,Rp=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vp(e,r,i),i};let Io=class extends xr{constructor(){super(),this.registry=new La}};Io=Rp([p("uui-icon-registry-essential")],Io);var Fp=Object.defineProperty,Gp=Object.getOwnPropertyDescriptor,Rt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Gp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fp(e,r,i),i};let Le=class extends fe(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const r of t)this.multiple?e.push(r):e=[r];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-file-dropzone"),_(this,"uui-button"),_(this,"uui-action-bar"),_(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const r=t.detail.files.filter(i=>i instanceof File||i.isFile);if(!this.multiple){const i=r[0],n=i instanceof File?i:await this._getFile(i);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let o=this.value;if(r.length>0&&!(this.value instanceof FormData)&&(o=new FormData),o instanceof FormData)for(const i of r){const s=i instanceof File;o.append(this.name,s?i:await this._getFile(i))}this.value=o}async _getFile(t){return await new Promise((e,r)=>t.file(e,r))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const o=this.value.getAll(this.name).filter(i=>i!==e);if(o.length===0)this.value="";else{this.value.delete(this.name);for(const i of o)this.value.append(this.name,i)}this._updateFileWrappers(o)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return l`<uui-file-preview .file="${t}">
2928
+ </svg>`;class Ja extends No{constructor(){super(),this.defineIcon("add",Sp.strings[0]),this.defineIcon("alert",Ip.strings[0]),this.defineIcon("attachment",zp.strings[0]),this.defineIcon("book-alt",Ap.strings[0]),this.defineIcon("calendar",Up.strings[0]),this.defineIcon("check",Dp.strings[0]),this.defineIcon("clipboard",Lp.strings[0]),this.defineIcon("code",Np.strings[0]),this.defineIcon("colorpicker",Tp.strings[0]),this.defineIcon("copy",Hp.strings[0]),this.defineIcon("delete",Mp.strings[0]),this.defineIcon("document",jp.strings[0]),this.defineIcon("download",Vp.strings[0]),this.defineIcon("edit",Bp.strings[0]),this.defineIcon("favorite",Rp.strings[0]),this.defineIcon("folder",Fp.strings[0]),this.defineIcon("forbidden",Gp.strings[0]),this.defineIcon("info",qp.strings[0]),this.defineIcon("link",Wp.strings[0]),this.defineIcon("lock",Kp.strings[0]),this.defineIcon("pause",Xp.strings[0]),this.defineIcon("picture",Yp.strings[0]),this.defineIcon("play",Zp.strings[0]),this.defineIcon("remove",Qp.strings[0]),this.defineIcon("search",Jp.strings[0]),this.defineIcon("see",e0.strings[0]),this.defineIcon("settings",t0.strings[0]),this.defineIcon("subtract",r0.strings[0]),this.defineIcon("sync",i0.strings[0]),this.defineIcon("unlock",o0.strings[0]),this.defineIcon("unsee",s0.strings[0]),this.defineIcon("wand",n0.strings[0]),this.defineIcon("wrong",a0.strings[0])}}var l0=Object.defineProperty,u0=Object.getOwnPropertyDescriptor,c0=(t,e,r,o)=>{for(var i=o>1?void 0:o?u0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&l0(e,r,i),i};let To=class extends $r{constructor(){super(),this.registry=new Ja}};To=c0([p("uui-icon-registry-essential")],To);var h0=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,Rt=(t,e,r,o)=>{for(var i=o>1?void 0:o?d0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&h0(e,r,i),i};let Le=class extends fe(v){constructor(){super(),this.accept="",this.multiple=!1,this._files=[],this._updateFileWrappers=t=>{let e=[];for(const r of t)this.multiple?e.push(r):e=[r];this._files=e},this.addEventListener("dragenter",()=>this._setShowDropzone(!0)),this.addEventListener("dragleave",()=>this._setShowDropzone(!1)),this.addEventListener("drop",()=>this._setShowDropzone(!1))}get value(){return this._value}set value(t){if(super.value=t,t instanceof FormData){const e=this.multiple?t.getAll(this.name):[t.get(this.name)];this._updateFileWrappers(e);return}if(t instanceof File){this._updateFileWrappers([t]);return}}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-file-dropzone"),_(this,"uui-button"),_(this,"uui-action-bar"),_(this,"uui-file-preview")}getFormElement(){return this._dropZone}_handleClick(t){t.stopImmediatePropagation(),this._dropzone.browse()}async _handleFilesChange(t){const r=t.detail.files.filter(i=>i instanceof File||i.isFile);if(!this.multiple){const i=r[0],n=i instanceof File?i:await this._getFile(i);if(this.value instanceof File){this.value=n;return}if(this.value instanceof FormData){this.value.delete(this.name),this.value.append(this.name,n),this._updateFileWrappers([n]);return}}let o=this.value;if(r.length>0&&!(this.value instanceof FormData)&&(o=new FormData),o instanceof FormData)for(const i of r){const s=i instanceof File;o.append(this.name,s?i:await this._getFile(i))}this.value=o}async _getFile(t){return await new Promise((e,r)=>t.file(e,r))}_removeFile(t){const e=this._files[t];if(this.value instanceof FormData){const o=this.value.getAll(this.name).filter(i=>i!==e);if(o.length===0)this.value="";else{this.value.delete(this.name);for(const i of o)this.value.append(this.name,i)}this._updateFileWrappers(o)}this.value instanceof File&&(this.value="",this._updateFileWrappers([]))}_setShowDropzone(t){t?this._dropZone.style.display="flex":this._dropZone.style.display="none"}_renderFileItem(t,e){return l`<uui-file-preview .file="${t}">
2887
2929
  <uui-action-bar slot="actions">
2888
2930
  <uui-button
2889
2931
  @click=${()=>this._removeFile(e)}
2890
2932
  color="danger"
2891
2933
  label=${`Delete ${t.name}`}>
2892
- <uui-icon name="delete" .fallback=${rh.strings[0]}></uui-icon>
2934
+ <uui-icon name="delete" .fallback=${yh.strings[0]}></uui-icon>
2893
2935
  </uui-button>
2894
2936
  </uui-action-bar>
2895
- </uui-file-preview>`}_renderFiles(){return l`${ka(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return l`
2937
+ </uui-file-preview>`}_renderFiles(){return l`${Wa(this._files,t=>t.name+t.size,(t,e)=>this._renderFileItem(t,e))}`}render(){return l`
2896
2938
  <uui-file-dropzone
2897
2939
  id="dropzone"
2898
2940
  ?multiple=${this.multiple}
@@ -2956,33 +2998,32 @@
2956
2998
  justify-content: center;
2957
2999
  align-items: stretch;
2958
3000
  }
2959
- `],Rt([C("#dropzone")],Le.prototype,"_dropzone",2),Rt([C("#dropzone")],Le.prototype,"_dropZone",2),Rt([a({type:String})],Le.prototype,"accept",2),Rt([a({type:Boolean})],Le.prototype,"multiple",2),Rt([f()],Le.prototype,"_files",2),Le=Rt([p("uui-input-file")],Le);var qp=Object.defineProperty,Na=Object.getOwnPropertySymbols,Wp=Object.prototype.hasOwnProperty,Kp=Object.prototype.propertyIsEnumerable,Ha=(t,e,r)=>e in t?qp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ta=(t,e)=>{for(var r in e||(e={}))Wp.call(e,r)&&Ha(t,r,e[r]);if(Na)for(var r of Na(e))Kp.call(e,r)&&Ha(t,r,e[r]);return t};class bt extends O{constructor(e,r={}){super(e,Ta(Ta({},{bubbles:!0}),r))}}bt.CHANGE="change",bt.INPUT="input";var Xp=Object.defineProperty,Yp=Object.getOwnPropertyDescriptor,M=(t,e,r,o)=>{for(var i=o>1?void 0:o?Yp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Xp(e,r,i),i};let k=class extends fe(ve("",v)){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this._value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this._value).length>this.maxlength)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}_onKeypress(t){this.type!=="color"&&t.key=="Enter"&&this.submit()}blur(){this._input.blur()}focus(){this._input.focus()}select(){this._input.select()}getFormElement(){return this._input}onInput(t){t.stopPropagation(),this.value=t.target.value,this.dispatchEvent(new bt(bt.INPUT))}onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new bt(bt.CHANGE))}renderPrepend(){return l`<slot name="prepend"></slot>`}renderAppend(){return l`<slot name="append"></slot>`}render(){return l`
3001
+ `],Rt([C("#dropzone")],Le.prototype,"_dropzone",2),Rt([C("#dropzone")],Le.prototype,"_dropZone",2),Rt([a({type:String})],Le.prototype,"accept",2),Rt([a({type:Boolean})],Le.prototype,"multiple",2),Rt([f()],Le.prototype,"_files",2),Le=Rt([p("uui-input-file")],Le);var p0=Object.defineProperty,el=Object.getOwnPropertySymbols,v0=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable,tl=(t,e,r)=>e in t?p0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,rl=(t,e)=>{for(var r in e||(e={}))v0.call(e,r)&&tl(t,r,e[r]);if(el)for(var r of el(e))f0.call(e,r)&&tl(t,r,e[r]);return t};class bt extends k{constructor(e,r={}){super(e,rl(rl({},{bubbles:!0}),r))}}bt.CHANGE="change",bt.INPUT="input";var b0=Object.defineProperty,g0=Object.getOwnPropertyDescriptor,M=(t,e,r,o)=>{for(var i=o>1?void 0:o?g0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&b0(e,r,i),i};let I=class extends fe(ve("",v)){constructor(){super(),this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.disabled=!1,this.readonly=!1,this.placeholder="",this.autoWidth=!1,this.inputMode="",this._type="text",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&String(this._value).length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&String(this._value).length>this.maxlength)}get type(){return this._type}set type(t){this._type=t}firstUpdated(t){super.firstUpdated(t),this.addFormControlElement(this._input)}_onKeypress(t){this.type!=="color"&&t.key=="Enter"&&this.submit()}blur(){this._input.blur()}focus(){this._input.focus()}select(){this._input.select()}getFormElement(){return this._input}onInput(t){t.stopPropagation(),this.value=t.target.value,this.dispatchEvent(new bt(bt.INPUT))}onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new bt(bt.CHANGE))}renderPrepend(){return l`<slot name="prepend"></slot>`}renderAppend(){return l`<slot name="append"></slot>`}render(){return l`
2960
3002
  ${this.renderPrepend()}
2961
- <div id="control">
2962
- <input
2963
- id="input"
2964
- .type=${this.type}
2965
- .value=${this.value}
2966
- .name=${this.name}
2967
- pattern=${I(this.pattern)}
2968
- min=${I(this.min)}
2969
- max=${I(this.max)}
2970
- step=${I(this.step)}
2971
- spellcheck=${this.spellcheck}
2972
- autocomplete=${I(this.autocomplete)}
2973
- placeholder=${I(this.placeholder)}
2974
- aria-label=${I(this.label)}
2975
- inputmode=${I(this.inputMode)}
2976
- ?disabled=${this.disabled}
2977
- ?autofocus=${this.autofocus}
2978
- ?required=${this.required}
2979
- ?readonly=${this.readonly}
2980
- @input=${this.onInput}
2981
- @change=${this.onChange} />
2982
- ${this.autoWidth?this.renderAutoWidth():x}
2983
- </div>
3003
+ ${this.autoWidth?this.renderInputWithAutoWidth():this.renderInput()}
2984
3004
  ${this.renderAppend()}
2985
- `}renderAutoWidth(){return l` <div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return l`${this.value.length>0?this.value:this.placeholder}`}};k.formAssociated=!0,k.styles=[d`
3005
+ `}renderInputWithAutoWidth(){l`<div id="control">
3006
+ ${this.renderInput()}${this.renderAutoWidthBackground()}
3007
+ </div>`}renderInput(){return l`<input
3008
+ id="input"
3009
+ .type=${this.type}
3010
+ .value=${this.value}
3011
+ .name=${this.name}
3012
+ pattern=${O(this.pattern)}
3013
+ min=${O(this.min)}
3014
+ max=${O(this.max)}
3015
+ step=${O(this.step)}
3016
+ spellcheck=${this.spellcheck}
3017
+ autocomplete=${O(this.autocomplete)}
3018
+ placeholder=${O(this.placeholder)}
3019
+ aria-label=${O(this.label)}
3020
+ inputmode=${O(this.inputMode)}
3021
+ ?disabled=${this.disabled}
3022
+ ?autofocus=${this.autofocus}
3023
+ ?required=${this.required}
3024
+ ?readonly=${this.readonly}
3025
+ @input=${this.onInput}
3026
+ @change=${this.onChange} />`}renderAutoWidthBackground(){return l` <div id="auto" aria-hidden="true">${this.renderText()}</div>`}renderText(){return l`${this.value.length>0?this.value:this.placeholder}`}};I.formAssociated=!0,I.styles=[d`
2986
3027
  :host {
2987
3028
  position: relative;
2988
3029
  display: inline-flex;
@@ -3109,16 +3150,16 @@
3109
3150
  height: 100%;
3110
3151
  --uui-input-border-width: 0;
3111
3152
  }
3112
- `],M([a()],k.prototype,"min",2),M([a({type:Number})],k.prototype,"minlength",2),M([a({type:String,attribute:"minlength-message"})],k.prototype,"minlengthMessage",2),M([a()],k.prototype,"max",2),M([a({type:Number})],k.prototype,"maxlength",2),M([a({type:String,attribute:"maxlength-message"})],k.prototype,"maxlengthMessage",2),M([a({type:Number})],k.prototype,"step",2),M([a({type:Boolean,reflect:!0})],k.prototype,"disabled",2),M([a({type:Boolean,reflect:!0})],k.prototype,"readonly",2),M([a()],k.prototype,"placeholder",2),M([a()],k.prototype,"autocomplete",2),M([a({type:Boolean,reflect:!0,attribute:"auto-width"})],k.prototype,"autoWidth",2),M([a({type:String})],k.prototype,"type",1),M([a({type:String})],k.prototype,"pattern",2),M([a({type:String})],k.prototype,"inputMode",2),M([C("#input")],k.prototype,"_input",2),k=M([p("uui-input")],k);var Zp=Object.defineProperty,Qp=Object.getOwnPropertyDescriptor,Ma=(t,e,r,o)=>{for(var i=o>1?void 0:o?Qp(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Zp(e,r,i),i};let $r=class extends k{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?l`<uui-icon name="lock" .fallback=${ih.strings[0]}></uui-icon>`:l`<uui-icon
3153
+ `],M([a()],I.prototype,"min",2),M([a({type:Number})],I.prototype,"minlength",2),M([a({type:String,attribute:"minlength-message"})],I.prototype,"minlengthMessage",2),M([a()],I.prototype,"max",2),M([a({type:Number})],I.prototype,"maxlength",2),M([a({type:String,attribute:"maxlength-message"})],I.prototype,"maxlengthMessage",2),M([a({type:Number})],I.prototype,"step",2),M([a({type:Boolean,reflect:!0})],I.prototype,"disabled",2),M([a({type:Boolean,reflect:!0})],I.prototype,"readonly",2),M([a()],I.prototype,"placeholder",2),M([a()],I.prototype,"autocomplete",2),M([a({type:Boolean,reflect:!0,attribute:"auto-width"})],I.prototype,"autoWidth",2),M([a({type:String})],I.prototype,"type",1),M([a({type:String})],I.prototype,"pattern",2),M([a({type:String})],I.prototype,"inputMode",2),M([C("#input")],I.prototype,"_input",2),I=M([p("uui-input")],I);var m0=Object.defineProperty,_0=Object.getOwnPropertyDescriptor,il=(t,e,r,o)=>{for(var i=o>1?void 0:o?_0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&m0(e,r,i),i};let Er=class extends I{constructor(){super(),this.locked=!0,this.readonly=!0}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-button")}_onLockToggle(){this.readonly=this.locked=!this.locked}renderIcon(){return this.locked===!0?l`<uui-icon name="lock" .fallback=${wh.strings[0]}></uui-icon>`:l`<uui-icon
3113
3154
  name="unlock"
3114
- .fallback=${nh.strings[0]}></uui-icon>`}renderPrepend(){return l`<uui-button
3155
+ .fallback=${Eh.strings[0]}></uui-icon>`}renderPrepend(){return l`<uui-button
3115
3156
  .disabled=${this.disabled}
3116
3157
  @click=${this._onLockToggle}
3117
3158
  compact
3118
3159
  id="lock"
3119
3160
  label="${this.locked?"Unlock input":"Lock input"}">
3120
3161
  ${this.renderIcon()}
3121
- </uui-button>`}};$r.styles=[...k.styles,d`
3162
+ </uui-button>`}};Er.styles=[...I.styles,d`
3122
3163
  #lock {
3123
3164
  height: 100%;
3124
3165
 
@@ -3131,16 +3172,16 @@
3131
3172
  cursor: not-allowed;
3132
3173
  opacity: 0.55;
3133
3174
  }
3134
- `],Ma([a({type:Boolean,reflect:!0})],$r.prototype,"locked",2),$r=Ma([p("uui-input-lock")],$r);var Jp=Object.defineProperty,e0=Object.getOwnPropertyDescriptor,Ao=(t,e,r,o)=>{for(var i=o>1?void 0:o?e0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Jp(e,r,i),i};let Ft=class extends k{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?l`<uui-icon name="see" .fallback=${sh.strings[0]}></uui-icon>`:l`<uui-icon
3175
+ `],il([a({type:Boolean,reflect:!0})],Er.prototype,"locked",2),Er=il([p("uui-input-lock")],Er);var y0=Object.defineProperty,w0=Object.getOwnPropertyDescriptor,Ho=(t,e,r,o)=>{for(var i=o>1?void 0:o?w0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&y0(e,r,i),i};let Ft=class extends I{constructor(){super(...arguments),this.passwordType="password"}get type(){return this.passwordType}set type(t){}_onPasswordToggle(){this.passwordType==="password"?this.passwordType="text":this.passwordType="password"}connectedCallback(){super.connectedCallback(),_(this,"uui-icon"),_(this,"uui-button"),this.hasAttribute("spellcheck")||(this.spellcheck=!1)}renderIcon(){return this.passwordType==="password"?l`<uui-icon name="see" .fallback=${$h.strings[0]}></uui-icon>`:l`<uui-icon
3135
3176
  name="unsee"
3136
- .fallback=${ah.strings[0]}></uui-icon>`}renderAppend(){return l`<uui-button
3177
+ .fallback=${Ph.strings[0]}></uui-icon>`}renderAppend(){return l`<uui-button
3137
3178
  .disabled=${this.disabled}
3138
3179
  @click=${this._onPasswordToggle}
3139
3180
  compact
3140
3181
  label="${this.passwordType==="password"?"Show password":"Hide password"}"
3141
3182
  id="eye">
3142
3183
  ${this.renderIcon()}
3143
- </uui-button>`}};Ft.styles=[...k.styles,d`
3184
+ </uui-button>`}};Ft.styles=[...I.styles,d`
3144
3185
  #eye {
3145
3186
  height: 100%;
3146
3187
  margin-left: -6px;
@@ -3149,7 +3190,7 @@
3149
3190
  #clear:hover {
3150
3191
  color: black;
3151
3192
  }
3152
- `],Ao([f()],Ft.prototype,"passwordType",2),Ao([a()],Ft.prototype,"type",1),Ft=Ao([p("uui-input-password")],Ft);var t0=Object.defineProperty,r0=Object.getOwnPropertyDescriptor,i0=(t,e,r,o)=>{for(var i=o>1?void 0:o?r0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&t0(e,r,i),i};let yi=class extends v{render(){return l`<slot></slot>`}};yi.styles=[d`
3193
+ `],Ho([f()],Ft.prototype,"passwordType",2),Ho([a()],Ft.prototype,"type",1),Ft=Ho([p("uui-input-password")],Ft);var x0=Object.defineProperty,$0=Object.getOwnPropertyDescriptor,E0=(t,e,r,o)=>{for(var i=o>1?void 0:o?$0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&x0(e,r,i),i};let wi=class extends v{render(){return l`<slot></slot>`}};wi.styles=[d`
3153
3194
  :host {
3154
3195
  display: inline-block;
3155
3196
  font-family: inherit;
@@ -3164,7 +3205,7 @@
3164
3205
  ::slotted(*:last-child)uui-key {
3165
3206
  margin-right: 0px;
3166
3207
  }
3167
- `],yi=i0([p("uui-keyboard-shortcut")],yi);var o0=Object.defineProperty,s0=Object.getOwnPropertyDescriptor,n0=(t,e,r,o)=>{for(var i=o>1?void 0:o?s0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&o0(e,r,i),i};let wi=class extends v{render(){return l`<slot></slot>`}};wi.styles=[d`
3208
+ `],wi=E0([p("uui-keyboard-shortcut")],wi);var P0=Object.defineProperty,C0=Object.getOwnPropertyDescriptor,O0=(t,e,r,o)=>{for(var i=o>1?void 0:o?C0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&P0(e,r,i),i};let xi=class extends v{render(){return l`<slot></slot>`}};xi.styles=[d`
3168
3209
  :host {
3169
3210
  background: var(--uui-color-surface,#fff);
3170
3211
  border: 1px solid var(--uui-color-border,#d8d7d9);
@@ -3178,7 +3219,7 @@
3178
3219
  user-select: none;
3179
3220
  text-transform: lowercase;
3180
3221
  }
3181
- `],wi=n0([p("uui-key")],wi);var a0=Object.defineProperty,l0=Object.getOwnPropertyDescriptor,xi=(t,e,r,o)=>{for(var i=o>1?void 0:o?l0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&a0(e,r,i),i};let gt=class extends v{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return l`
3222
+ `],xi=O0([p("uui-key")],xi);var k0=Object.defineProperty,S0=Object.getOwnPropertyDescriptor,$i=(t,e,r,o)=>{for(var i=o>1?void 0:o?S0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&k0(e,r,i),i};let gt=class extends v{constructor(){super(),this.disabled=!1,this.for=null,this.required=!1,this.addEventListener("click",this._onClick)}_onClick(){if(this.disabled)return;const t=this.getForElement();t&&(t.focus(),t.click())}getForElement(){if(typeof this.for=="string"){const t=this.getRootNode();return t?.getElementById(this.for)||null}return this.for||null}render(){return l`
3182
3223
  <slot></slot>
3183
3224
  ${this.required?l`<div id="required">*</div>`:""}
3184
3225
  `}};gt.styles=[d`
@@ -3196,7 +3237,7 @@
3196
3237
  color: var(--uui-color-danger,#d42054);
3197
3238
  font-weight: 900;
3198
3239
  }
3199
- `],xi([a({type:Boolean,reflect:!0})],gt.prototype,"disabled",2),xi([a({reflect:!0,attribute:!0})],gt.prototype,"for",2),xi([a({type:Boolean,reflect:!0})],gt.prototype,"required",2),gt=xi([p("uui-label")],gt);var u0=Object.defineProperty,c0=Object.getOwnPropertyDescriptor,Uo=(t,e,r,o)=>{for(var i=o>1?void 0:o?c0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&u0(e,r,i),i};const h0=(t,e,r)=>Math.min(Math.max(t,e),r);let Gt=class extends v{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=h0(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}render(){return l`
3240
+ `],$i([a({type:Boolean,reflect:!0})],gt.prototype,"disabled",2),$i([a({reflect:!0,attribute:!0})],gt.prototype,"for",2),$i([a({type:Boolean,reflect:!0})],gt.prototype,"required",2),gt=$i([p("uui-label")],gt);var I0=Object.defineProperty,z0=Object.getOwnPropertyDescriptor,Mo=(t,e,r,o)=>{for(var i=o>1?void 0:o?z0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&I0(e,r,i),i};const A0=(t,e,r)=>Math.min(Math.max(t,e),r);let Gt=class extends v{constructor(){super(...arguments),this._progress=0,this._animationDuration=1}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=A0(t,0,100),this.requestUpdate("progress",e)}get animationDuration(){return this._animationDuration}set animationDuration(t){const e=this._animationDuration;this._animationDuration=t>=0?t:1,this.requestUpdate("animationDuration",e)}render(){return l`
3200
3241
  ${this.progress?l`<div
3201
3242
  id="bar"
3202
3243
  style="max-width: ${this.progress.toString()}%;"></div>`:""}
@@ -3264,7 +3305,7 @@
3264
3305
  transform-origin: 175% 0%;
3265
3306
  }
3266
3307
  }
3267
- `],Uo([a({type:Number})],Gt.prototype,"progress",1),Uo([a({type:Number})],Gt.prototype,"animationDuration",1),Gt=Uo([p("uui-loader-bar")],Gt);var d0=Object.defineProperty,p0=Object.getOwnPropertyDescriptor,Do=(t,e,r,o)=>{for(var i=o>1?void 0:o?p0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&d0(e,r,i),i};let qt=class extends v{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?l`<span id="progress-display">${this.progress}</span>`:""}render(){return l`
3308
+ `],Mo([a({type:Number})],Gt.prototype,"progress",1),Mo([a({type:Number})],Gt.prototype,"animationDuration",1),Gt=Mo([p("uui-loader-bar")],Gt);var U0=Object.defineProperty,D0=Object.getOwnPropertyDescriptor,jo=(t,e,r,o)=>{for(var i=o>1?void 0:o?D0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&U0(e,r,i),i};let qt=class extends v{constructor(){super(...arguments),this.progress=0,this.showProgress=!1,this._resizeObserver=new ResizeObserver(()=>this.onResize()),this._isLarge=!1}_circleStyle(){return this.progress?{strokeDasharray:`${this.progress} 100`}:{strokeDasharray:"100 100"}}firstUpdated(){this._resizeObserver.observe(this)}disconnectedCallback(){this._resizeObserver.disconnect()}onResize(){const t=this.clientHeight>=30;this._isLarge!=t&&(this._isLarge=t,this.requestUpdate())}renderProgress(){return this._isLarge&&this.progress&&this.showProgress?l`<span id="progress-display">${this.progress}</span>`:""}render(){return l`
3268
3309
  <svg
3269
3310
  id="spinner"
3270
3311
  class=${this.progress?"":"animate"}
@@ -3366,11 +3407,11 @@
3366
3407
  /* Center the text */
3367
3408
  padding-top: 0.09em;
3368
3409
  }
3369
- `],Do([a({type:Number})],qt.prototype,"progress",2),Do([a({type:Boolean,reflect:!0,attribute:"show-progress"})],qt.prototype,"showProgress",2),qt=Do([p("uui-loader-circle")],qt);var v0=Object.defineProperty,f0=Object.getOwnPropertyDescriptor,b0=(t,e,r,o)=>{for(var i=o>1?void 0:o?f0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&v0(e,r,i),i};let $i=class extends v{render(){return l`
3410
+ `],jo([a({type:Number})],qt.prototype,"progress",2),jo([a({type:Boolean,reflect:!0,attribute:"show-progress"})],qt.prototype,"showProgress",2),qt=jo([p("uui-loader-circle")],qt);var L0=Object.defineProperty,N0=Object.getOwnPropertyDescriptor,T0=(t,e,r,o)=>{for(var i=o>1?void 0:o?N0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&L0(e,r,i),i};let Ei=class extends v{render(){return l`
3370
3411
  <div></div>
3371
3412
  <div></div>
3372
3413
  <div></div>
3373
- `}};$i.styles=[d`
3414
+ `}};Ei.styles=[d`
3374
3415
  :host {
3375
3416
  color: var(--uui-color-default,#1b264f);
3376
3417
  }
@@ -3410,31 +3451,31 @@
3410
3451
  background-color: currentColor;
3411
3452
  }
3412
3453
  }
3413
- `],$i=b0([p("uui-loader")],$i);/**
3454
+ `],Ei=T0([p("uui-loader")],Ei);/**
3414
3455
  * @license
3415
3456
  * Copyright 2017 Google LLC
3416
3457
  * SPDX-License-Identifier: BSD-3-Clause
3417
- */const Er=(t,e)=>{var r,o;const i=t._$AN;if(i===void 0)return!1;for(const s of i)(o=(r=s)._$AO)===null||o===void 0||o.call(r,e,!1),Er(s,e);return!0},Ei=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ja=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),_0(e)}};function g0(t){this._$AN!==void 0?(Ei(this),this._$AM=t,ja(this)):this._$AM=t}function m0(t,e=!1,r=0){const o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let s=r;s<o.length;s++)Er(o[s],!1),Ei(o[s]);else o!=null&&(Er(o,!1),Ei(o));else Er(this,t)}const _0=t=>{var e,r,o,i;t.type==le.CHILD&&((e=(o=t)._$AP)!==null&&e!==void 0||(o._$AP=m0),(r=(i=t)._$AQ)!==null&&r!==void 0||(i._$AQ=g0))};class y0 extends Ut{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),ja(this),this.isConnected=e._$AU}_$AO(e,r=!0){var o,i;e!==this.isConnected&&(this.isConnected=e,e?(o=this.reconnected)===null||o===void 0||o.call(this):(i=this.disconnected)===null||i===void 0||i.call(this)),r&&(Er(this,e),Ei(this))}setValue(e){if(jn(this._$Ct))this._$Ct._$AI(e,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}const Lo=new WeakMap,No=At(class extends y0{render(t){return x}update(t,[e]){var r;const o=e!==this.G;return o&&this.G!==void 0&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.G=e,this.dt=(r=t.options)===null||r===void 0?void 0:r.host,this.ot(this.lt=t.element)),x}ot(t){var e;if(typeof this.G=="function"){const r=(e=this.dt)!==null&&e!==void 0?e:globalThis;let o=Lo.get(r);o===void 0&&(o=new WeakMap,Lo.set(r,o)),o.get(this.G)!==void 0&&this.G.call(this.dt,void 0),o.set(this.G,t),t!==void 0&&this.G.call(this.dt,t)}else this.G.value=t}get rt(){var t,e,r;return typeof this.G=="function"?(e=Lo.get((t=this.dt)!==null&&t!==void 0?t:globalThis))===null||e===void 0?void 0:e.get(this.G):(r=this.G)===null||r===void 0?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class Ne extends O{}Ne.SHOW_CHILDREN="show-children",Ne.HIDE_CHILDREN="hide-children",Ne.CLICK_LABEL="click-label";var w0=Object.defineProperty,x0=Object.getOwnPropertyDescriptor,He=(t,e,r,o)=>{for(var i=o>1?void 0:o?x0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&w0(e,r,i),i};let ne=class extends Jr(St(cr(ve("label",v)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1,this._labelButtonChanged=t=>{this.selectableTarget=t||this},this._iconSlotChanged=t=>{this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const t=this.showChildren?Ne.HIDE_CHILDREN:Ne.SHOW_CHILDREN,e=new Ne(t,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const t=new Ne(Ne.CLICK_LABEL);this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),_(this,"uui-symbol-expand"),_(this,"uui-loader-bar")}_renderLabelInside(){return l` <slot
3458
+ */const Pr=(t,e)=>{var r,o;const i=t._$AN;if(i===void 0)return!1;for(const s of i)(o=(r=s)._$AO)===null||o===void 0||o.call(r,e,!1),Pr(s,e);return!0},Pi=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},ol=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),j0(e)}};function H0(t){this._$AN!==void 0?(Pi(this),this._$AM=t,ol(this)):this._$AM=t}function M0(t,e=!1,r=0){const o=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(o))for(let s=r;s<o.length;s++)Pr(o[s],!1),Pi(o[s]);else o!=null&&(Pr(o,!1),Pi(o));else Pr(this,t)}const j0=t=>{var e,r,o,i;t.type==le.CHILD&&((e=(o=t)._$AP)!==null&&e!==void 0||(o._$AP=M0),(r=(i=t)._$AQ)!==null&&r!==void 0||(i._$AQ=H0))};class V0 extends Ut{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,o){super._$AT(e,r,o),ol(this),this.isConnected=e._$AU}_$AO(e,r=!0){var o,i;e!==this.isConnected&&(this.isConnected=e,e?(o=this.reconnected)===null||o===void 0||o.call(this):(i=this.disconnected)===null||i===void 0||i.call(this)),r&&(Pr(this,e),Pi(this))}setValue(e){if(oa(this._$Ct))this._$Ct._$AI(e,this);else{const r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}const Vo=new WeakMap,Bo=At(class extends V0{render(t){return x}update(t,[e]){var r;const o=e!==this.G;return o&&this.G!==void 0&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.G=e,this.dt=(r=t.options)===null||r===void 0?void 0:r.host,this.ot(this.lt=t.element)),x}ot(t){var e;if(typeof this.G=="function"){const r=(e=this.dt)!==null&&e!==void 0?e:globalThis;let o=Vo.get(r);o===void 0&&(o=new WeakMap,Vo.set(r,o)),o.get(this.G)!==void 0&&this.G.call(this.dt,void 0),o.set(this.G,t),t!==void 0&&this.G.call(this.dt,t)}else this.G.value=t}get rt(){var t,e,r;return typeof this.G=="function"?(e=Vo.get((t=this.dt)!==null&&t!==void 0?t:globalThis))===null||e===void 0?void 0:e.get(this.G):(r=this.G)===null||r===void 0?void 0:r.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});class Ne extends k{}Ne.SHOW_CHILDREN="show-children",Ne.HIDE_CHILDREN="hide-children",Ne.CLICK_LABEL="click-label";var B0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,Te=(t,e,r,o)=>{for(var i=o>1?void 0:o?R0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&B0(e,r,i),i};let ne=class extends ei(kt(cr(ve("label",v)))){constructor(){super(...arguments),this.disabled=!1,this.showChildren=!1,this.hasChildren=!1,this.loading=!1,this.iconSlotHasContent=!1,this._labelButtonChanged=t=>{this.selectableTarget=t||this},this._iconSlotChanged=t=>{this.iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0},this._onCaretClicked=()=>{const t=this.showChildren?Ne.HIDE_CHILDREN:Ne.SHOW_CHILDREN,e=new Ne(t,{cancelable:!0});this.dispatchEvent(e),!e.defaultPrevented&&(this.showChildren=!this.showChildren)},this._onLabelClicked=()=>{const t=new Ne(Ne.CLICK_LABEL);this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","menu"),_(this,"uui-symbol-expand"),_(this,"uui-loader-bar")}_renderLabelInside(){return l` <slot
3418
3459
  name="icon"
3419
3460
  id="icon"
3420
3461
  style=${this.iconSlotHasContent?"":"display: none;"}
3421
3462
  @slotchange=${this._iconSlotChanged}></slot>
3422
3463
  ${this.renderLabel()}
3423
- <slot name="badge" id="badge"> </slot>`}_renderLabelAsAnchor(){return this.disabled?l` <span id="label-button" ${No(this._labelButtonChanged)}>
3464
+ <slot name="badge" id="badge"> </slot>`}_renderLabelAsAnchor(){return this.disabled?l` <span id="label-button" ${Bo(this._labelButtonChanged)}>
3424
3465
  ${this._renderLabelInside()}
3425
3466
  </span>`:l` <a
3426
3467
  id="label-button"
3427
- ${No(this._labelButtonChanged)}
3428
- href=${I(this.href)}
3429
- target=${I(this.target||void 0)}
3430
- rel=${I(this.target==="_blank"?"noopener noreferrer":void 0)}
3468
+ ${Bo(this._labelButtonChanged)}
3469
+ href=${O(this.href)}
3470
+ target=${O(this.target||void 0)}
3471
+ rel=${O(this.target==="_blank"?"noopener noreferrer":void 0)}
3431
3472
  @click=${this._onLabelClicked}
3432
3473
  ?disabled=${this.disabled}
3433
3474
  aria-label="${this.label}">
3434
3475
  ${this._renderLabelInside()}
3435
3476
  </a>`}_renderLabelAsButton(){return l` <button
3436
3477
  id="label-button"
3437
- ${No(this._labelButtonChanged)}
3478
+ ${Bo(this._labelButtonChanged)}
3438
3479
  @click=${this._onLabelClicked}
3439
3480
  ?disabled=${this.disabled}
3440
3481
  aria-label="${this.label}">
@@ -3762,7 +3803,7 @@
3762
3803
  --uui-button-height: calc(var(--uui-size-base-unit) * 4);
3763
3804
  margin-right: var(--uui-size-base-unit);
3764
3805
  }
3765
- `],He([a({type:Boolean,reflect:!0})],ne.prototype,"disabled",2),He([a({type:Boolean,reflect:!0,attribute:"show-children"})],ne.prototype,"showChildren",2),He([a({type:Boolean,attribute:"has-children"})],ne.prototype,"hasChildren",2),He([a({type:Boolean,attribute:"loading"})],ne.prototype,"loading",2),He([a({type:String})],ne.prototype,"href",2),He([a({type:String})],ne.prototype,"target",2),He([a({type:String,attribute:"select-mode",reflect:!0})],ne.prototype,"selectMode",2),He([f()],ne.prototype,"iconSlotHasContent",2),ne=He([p("uui-menu-item")],ne);var $0=Object.defineProperty,E0=Object.getOwnPropertyDescriptor,Wt=(t,e,r,o)=>{for(var i=o>1?void 0:o?E0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$0(e,r,i),i};class Y extends v{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const r=new CustomEvent("open",{bubbles:!0,cancelable:!0});this.dispatchEvent(r),!r.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const r=new CustomEvent("close",{bubbles:!0,cancelable:!0});this.dispatchEvent(r),!r.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){var e,r;this.isOpen=!0,(e=this._dialogElement)==null||e.showModal(),(r=this._dialogElement)==null||r.addEventListener("cancel",this.close)}_closeModal(){var e;this.isClosing=!0,this.isOpen=!1,(e=this._dialogElement)==null||e.close(),this.remove()}}Y.styles=[d`
3806
+ `],Te([a({type:Boolean,reflect:!0})],ne.prototype,"disabled",2),Te([a({type:Boolean,reflect:!0,attribute:"show-children"})],ne.prototype,"showChildren",2),Te([a({type:Boolean,attribute:"has-children"})],ne.prototype,"hasChildren",2),Te([a({type:Boolean,attribute:"loading"})],ne.prototype,"loading",2),Te([a({type:String})],ne.prototype,"href",2),Te([a({type:String})],ne.prototype,"target",2),Te([a({type:String,attribute:"select-mode",reflect:!0})],ne.prototype,"selectMode",2),Te([f()],ne.prototype,"iconSlotHasContent",2),ne=Te([p("uui-menu-item")],ne);var F0=Object.defineProperty,G0=Object.getOwnPropertyDescriptor,Wt=(t,e,r,o)=>{for(var i=o>1?void 0:o?G0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&F0(e,r,i),i};class Z extends v{constructor(){super(...arguments),this.isOpen=!1,this.isClosing=!1,this.index=0,this.uniqueIndex=0,this._transitionDuration=250,this.open=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const r=new CustomEvent("open",{bubbles:!0,cancelable:!0});this.dispatchEvent(r),!r.defaultPrevented&&this._openModal()},this.close=e=>{e?.preventDefault(),e?.stopImmediatePropagation();const r=new CustomEvent("close",{bubbles:!0,cancelable:!0});this.dispatchEvent(r),!r.defaultPrevented&&this._closeModal()}}get transitionDuration(){return this._transitionDuration}set transitionDuration(e){this._transitionDuration=e,this.style.setProperty("--uui-modal-transition-duration",this._transitionDuration+"ms")}firstUpdated(e){super.firstUpdated(e),this.isClosing||this.open()}_openModal(){var e,r;this.isOpen=!0,(e=this._dialogElement)==null||e.showModal(),(r=this._dialogElement)==null||r.addEventListener("cancel",this.close)}_closeModal(){var e;this.isClosing=!0,this.isOpen=!1,(e=this._dialogElement)==null||e.close(),this.remove()}}Z.styles=[d`
3766
3807
  dialog {
3767
3808
  display: block;
3768
3809
  margin: 0;
@@ -3788,9 +3829,9 @@
3788
3829
  :host([index='0']) dialog::after {
3789
3830
  opacity: 0;
3790
3831
  }
3791
- `],Wt([C("dialog")],Y.prototype,"_dialogElement",2),Wt([a({type:Boolean,reflect:!0,attribute:"is-open"})],Y.prototype,"isOpen",2),Wt([a({type:Boolean,reflect:!0,attribute:"is-closing"})],Y.prototype,"isClosing",2),Wt([a({type:Number,reflect:!0})],Y.prototype,"index",2),Wt([a({type:Number,reflect:!0,attribute:"unique-index"})],Y.prototype,"uniqueIndex",2),Wt([a()],Y.prototype,"transitionDuration",1);var P0=Object.defineProperty,C0=Object.getOwnPropertyDescriptor,Va=(t,e,r,o)=>{for(var i=o>1?void 0:o?C0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&P0(e,r,i),i},Ba=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Ra=(t,e,r)=>(Ba(t,e,"read from private field"),r?r.call(t):e.get(t)),Fa=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},O0=(t,e,r)=>(Ba(t,e,"access private method"),r),Pi,Ho,To,Ga;let Kt=class extends Y{constructor(){super(),Fa(this,Pi),Fa(this,To),this.size="full",this.addEventListener("close",O0(this,To,Ga).bind(this))}firstUpdated(t){super.firstUpdated(t),this.style.setProperty("--uui-modal-offset",-Ra(this,Pi,Ho)+"px")}updated(t){super.updated(t),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return l`<dialog>
3832
+ `],Wt([C("dialog")],Z.prototype,"_dialogElement",2),Wt([a({type:Boolean,reflect:!0,attribute:"is-open"})],Z.prototype,"isOpen",2),Wt([a({type:Boolean,reflect:!0,attribute:"is-closing"})],Z.prototype,"isClosing",2),Wt([a({type:Number,reflect:!0})],Z.prototype,"index",2),Wt([a({type:Number,reflect:!0,attribute:"unique-index"})],Z.prototype,"uniqueIndex",2),Wt([a()],Z.prototype,"transitionDuration",1);var q0=Object.defineProperty,W0=Object.getOwnPropertyDescriptor,sl=(t,e,r,o)=>{for(var i=o>1?void 0:o?W0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&q0(e,r,i),i},nl=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},al=(t,e,r)=>(nl(t,e,"read from private field"),r?r.call(t):e.get(t)),ll=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},K0=(t,e,r)=>(nl(t,e,"access private method"),r),Ci,Ro,Fo,ul;let Kt=class extends Z{constructor(){super(),ll(this,Ci),ll(this,Fo),this.size="full",this.addEventListener("close",K0(this,Fo,ul).bind(this))}firstUpdated(t){super.firstUpdated(t),this.style.setProperty("--uui-modal-offset",-al(this,Ci,Ro)+"px")}updated(t){super.updated(t),this.uniqueIndex>10?this.setAttribute("hide",""):this.removeAttribute("hide")}render(){return l`<dialog>
3792
3833
  <slot></slot>
3793
- </dialog>`}};Pi=new WeakSet,Ho=function(){var t,e;return(e=(t=this._dialogElement)==null?void 0:t.getBoundingClientRect().width)!=null?e:0},To=new WeakSet,Ga=function(t){t.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-Ra(this,Pi,Ho)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},Kt.styles=[...Y.styles,d`
3834
+ </dialog>`}};Ci=new WeakSet,Ro=function(){var t,e;return(e=(t=this._dialogElement)==null?void 0:t.getBoundingClientRect().width)!=null?e:0},Fo=new WeakSet,ul=function(t){t.preventDefault(),!this.isClosing&&(this.isClosing=!0,this.style.setProperty("--uui-modal-offset",-al(this,Ci,Ro)+"px"),setTimeout(()=>{this._closeModal()},this.transitionDuration))},Kt.styles=[...Z.styles,d`
3794
3835
  :host {
3795
3836
  --uui-modal-sidebar-left-gap: 24px;
3796
3837
  }
@@ -3826,7 +3867,7 @@
3826
3867
  :host([size='small']) dialog {
3827
3868
  max-width: min(400px, calc(100% - var(--uui-modal-sidebar-left-gap)));
3828
3869
  }
3829
- `],Va([a({reflect:!0})],Kt.prototype,"size",2),Kt=Va([io("uui-modal-sidebar")],Kt);var S0=Object.defineProperty,k0=Object.getOwnPropertyDescriptor,Xt=(t,e,r,o)=>{for(var i=o>1?void 0:o?k0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&S0(e,r,i),i},qa=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},Wa=(t,e,r)=>(qa(t,e,"read from private field"),r?r.call(t):e.get(t)),Ci=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Oi=(t,e,r)=>(qa(t,e,"access private method"),r),Mo,jo,Si,Vo,ki,Bo;let Te=class extends v{constructor(){super(),Ci(this,Si),Ci(this,ki),this.sidebarGap=64,this.transitionDurationMS=250,Ci(this,Mo,()=>{var t,e;if(this._modals=(e=(t=this.modalSlot)==null?void 0:t.assignedElements({flatten:!0}).filter(r=>r instanceof Y))!=null?e:[],this._sidebars=this._modals.filter(r=>r instanceof Kt),this._modals.length===0){this.removeAttribute("backdrop");return}Oi(this,Si,Vo).call(this),Oi(this,ki,Bo).call(this)}),Ci(this,jo,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}Oi(this,Si,Vo).call(this),Oi(this,ki,Bo).call(this)}),this.addEventListener("close",Wa(this,jo))}firstUpdated(t){super.firstUpdated(t),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return l`<slot @slotchange=${Wa(this,Mo)}></slot>`}};Mo=new WeakMap,jo=new WeakMap,Si=new WeakSet,Vo=function(){var t,e;this.setAttribute("backdrop","");const r=(e=(t=this._modals)==null?void 0:t.filter(o=>!o.isClosing).reverse())!=null?e:[];r?.forEach((o,i)=>{o.index=i,o.transitionDuration=this.transitionDurationMS}),r?.forEach(o=>{var i;const s=r?.filter(n=>n.constructor.name===o.constructor.name);o.uniqueIndex=(i=s?.indexOf(o))!=null?i:0})},ki=new WeakSet,Bo=function(){requestAnimationFrame(()=>{var t,e,r,o,i,s,n,u;let c=0;const h=(e=(t=this._sidebars)==null?void 0:t.filter(m=>!m.isClosing).reverse())!=null?e:[];for(let m=0;m<h.length;m++){const y=h[m],b=h[m+1];if(y.style.setProperty("--uui-modal-offset",c+"px"),b?.hasAttribute("hide"))break;const w=(i=(o=(r=y.shadowRoot)==null?void 0:r.querySelector("dialog"))==null?void 0:o.getBoundingClientRect().width)!=null?i:0,$=(u=(n=(s=b?.shadowRoot)==null?void 0:s.querySelector("dialog"))==null?void 0:n.getBoundingClientRect().width)!=null?u:0,E=w+c+this.sidebarGap-$;c=E>0?E:0}})},Te.styles=d`
3870
+ `],sl([a({reflect:!0})],Kt.prototype,"size",2),Kt=sl([oo("uui-modal-sidebar")],Kt);var X0=Object.defineProperty,Y0=Object.getOwnPropertyDescriptor,Xt=(t,e,r,o)=>{for(var i=o>1?void 0:o?Y0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&X0(e,r,i),i},cl=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},hl=(t,e,r)=>(cl(t,e,"read from private field"),r?r.call(t):e.get(t)),Oi=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ki=(t,e,r)=>(cl(t,e,"access private method"),r),Go,qo,Si,Wo,Ii,Ko;let He=class extends v{constructor(){super(),Oi(this,Si),Oi(this,Ii),this.sidebarGap=64,this.transitionDurationMS=250,Oi(this,Go,()=>{var t,e;if(this._modals=(e=(t=this.modalSlot)==null?void 0:t.assignedElements({flatten:!0}).filter(r=>r instanceof Z))!=null?e:[],this._sidebars=this._modals.filter(r=>r instanceof Kt),this._modals.length===0){this.removeAttribute("backdrop");return}ki(this,Si,Wo).call(this),ki(this,Ii,Ko).call(this)}),Oi(this,qo,()=>{if(!this._modals||this._modals.length<=1){this.removeAttribute("backdrop");return}ki(this,Si,Wo).call(this),ki(this,Ii,Ko).call(this)}),this.addEventListener("close",hl(this,qo))}firstUpdated(t){super.firstUpdated(t),this.style.setProperty("--uui-modal-transition-duration",this.transitionDurationMS+"ms")}render(){return l`<slot @slotchange=${hl(this,Go)}></slot>`}};Go=new WeakMap,qo=new WeakMap,Si=new WeakSet,Wo=function(){var t,e;this.setAttribute("backdrop","");const r=(e=(t=this._modals)==null?void 0:t.filter(o=>!o.isClosing).reverse())!=null?e:[];r?.forEach((o,i)=>{o.index=i,o.transitionDuration=this.transitionDurationMS}),r?.forEach(o=>{var i;const s=r?.filter(n=>n.constructor.name===o.constructor.name);o.uniqueIndex=(i=s?.indexOf(o))!=null?i:0})},Ii=new WeakSet,Ko=function(){requestAnimationFrame(()=>{var t,e,r,o,i,s,n,u;let c=0;const h=(e=(t=this._sidebars)==null?void 0:t.filter(m=>!m.isClosing).reverse())!=null?e:[];for(let m=0;m<h.length;m++){const y=h[m],b=h[m+1];if(y.style.setProperty("--uui-modal-offset",c+"px"),b?.hasAttribute("hide"))break;const w=(i=(o=(r=y.shadowRoot)==null?void 0:r.querySelector("dialog"))==null?void 0:o.getBoundingClientRect().width)!=null?i:0,$=(u=(n=(s=b?.shadowRoot)==null?void 0:s.querySelector("dialog"))==null?void 0:n.getBoundingClientRect().width)!=null?u:0,E=w+c+this.sidebarGap-$;c=E>0?E:0}})},He.styles=d`
3830
3871
  :host {
3831
3872
  position: fixed;
3832
3873
  --uui-modal-color-backdrop: rgba(0, 0, 0, 0.5);
@@ -3843,11 +3884,11 @@
3843
3884
  :host([backdrop])::after {
3844
3885
  opacity: 1;
3845
3886
  }
3846
- `,Xt([C("slot")],Te.prototype,"modalSlot",2),Xt([f()],Te.prototype,"_modals",2),Xt([f()],Te.prototype,"_sidebars",2),Xt([a({type:Number})],Te.prototype,"sidebarGap",2),Xt([a({type:Number})],Te.prototype,"transitionDurationMS",2),Te=Xt([io("uui-modal-container")],Te);var z0=Object.defineProperty,I0=Object.getOwnPropertyDescriptor,A0=(t,e,r,o)=>{for(var i=o>1?void 0:o?I0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&z0(e,r,i),i};let zi=class extends Y{render(){return l`
3887
+ `,Xt([C("slot")],He.prototype,"modalSlot",2),Xt([f()],He.prototype,"_modals",2),Xt([f()],He.prototype,"_sidebars",2),Xt([a({type:Number})],He.prototype,"sidebarGap",2),Xt([a({type:Number})],He.prototype,"transitionDurationMS",2),He=Xt([oo("uui-modal-container")],He);var Z0=Object.defineProperty,Q0=Object.getOwnPropertyDescriptor,J0=(t,e,r,o)=>{for(var i=o>1?void 0:o?Q0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Z0(e,r,i),i};let zi=class extends Z{render(){return l`
3847
3888
  <dialog>
3848
3889
  <slot></slot>
3849
3890
  </dialog>
3850
- `}};zi.styles=[...Y.styles,d`
3891
+ `}};zi.styles=[...Z.styles,d`
3851
3892
  dialog {
3852
3893
  margin: auto;
3853
3894
  max-width: 100%;
@@ -3860,7 +3901,7 @@
3860
3901
  :host(:not([index='0'])) dialog {
3861
3902
  outline: 1px solid rgba(0, 0, 0, 0.1);
3862
3903
  }
3863
- `],zi=A0([io("uui-modal-dialog")],zi);var U0=Object.defineProperty,Ka=Object.getOwnPropertySymbols,D0=Object.prototype.hasOwnProperty,L0=Object.prototype.propertyIsEnumerable,Xa=(t,e,r)=>e in t?U0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ya=(t,e)=>{for(var r in e||(e={}))D0.call(e,r)&&Xa(t,r,e[r]);if(Ka)for(var r of Ka(e))L0.call(e,r)&&Xa(t,r,e[r]);return t};class Ge extends O{constructor(e,r={}){super(e,Ya(Ya({},{bubbles:!0}),r))}}Ge.CHANGE="change";var N0=Object.defineProperty,H0=Object.getOwnPropertyDescriptor,Me=(t,e,r,o)=>{for(var i=o>1?void 0:o?H0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&N0(e,r,i),i};const T0=45,Ro=(t,e,r)=>Math.min(Math.max(t,e),r),M0=(t,e)=>Array.from({length:e-t+1},(r,o)=>t+o);let ae=class extends v{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),_(this,"uui-button"),_(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((i,s)=>i+s.getBoundingClientRect().width,0),o=(t-e)/T0/2;this._range=Math.max(1,Math.floor(o)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,r=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return M0(Ro(e,1,this.total),Ro(r,1,this.total))}get total(){return this._total}set total(t){this._total=t,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",t)}get current(){return this._current}set current(t){const e=this._current;this._current=Ro(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new Ge(Ge.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Ge(Ge.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new Ge(Ge.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.focus()})}renderFirst(){return l`<uui-button
3904
+ `],zi=J0([oo("uui-modal-dialog")],zi);var e1=Object.defineProperty,dl=Object.getOwnPropertySymbols,t1=Object.prototype.hasOwnProperty,r1=Object.prototype.propertyIsEnumerable,pl=(t,e,r)=>e in t?e1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,vl=(t,e)=>{for(var r in e||(e={}))t1.call(e,r)&&pl(t,r,e[r]);if(dl)for(var r of dl(e))r1.call(e,r)&&pl(t,r,e[r]);return t};class Ge extends k{constructor(e,r={}){super(e,vl(vl({},{bubbles:!0}),r))}}Ge.CHANGE="change";var i1=Object.defineProperty,o1=Object.getOwnPropertyDescriptor,Me=(t,e,r,o)=>{for(var i=o>1?void 0:o?o1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&i1(e,r,i),i};const s1=45,Xo=(t,e,r)=>Math.min(Math.max(t,e),r),n1=(t,e)=>Array.from({length:e-t+1},(r,o)=>t+o);let ae=class extends v{constructor(){super(...arguments),this._observer=new ResizeObserver(this._calculateRange.bind(this)),this.label="",this.ariaLabel="",this._total=100,this._range=0,this._visiblePages=[],this._current=1}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","navigation"),this._visiblePages=this._generateVisiblePages(this.current),_(this,"uui-button"),_(this,"uui-button-group")}disconnectedCallback(){this._observer.disconnect()}firstUpdated(){this._observer.observe(this._pagesGroup),this.updateLabel(),this._calculateRange()}willUpdate(t){(t.has("current")||t.has("label"))&&this.updateLabel()}updateLabel(){this.ariaLabel=`${this.label||"Pagination navigation"}. Current page: ${this.current}.`}_calculateRange(){const t=this.offsetWidth,e=Array.from(this._navButtons).reduce((i,s)=>i+s.getBoundingClientRect().width,0),o=(t-e)/s1/2;this._range=Math.max(1,Math.floor(o)),this._visiblePages=this._generateVisiblePages(this.current)}_generateVisiblePages(t){const e=t<this._range?1:t<this.total-this._range?t-this._range:this.total-this._range*2,r=t<=this._range?this._range*2+1:t<this.total-this._range?t+this._range:this.total;return n1(Xo(e,1,this.total),Xo(r,1,this.total))}get total(){return this._total}set total(t){this._total=t,this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("total",t)}get current(){return this._current}set current(t){const e=this._current;this._current=Xo(t,1,this.total),this._visiblePages=this._generateVisiblePages(this._current),this.requestUpdate("current",e)}goToNextPage(){this.current++,this.dispatchEvent(new Ge(Ge.CHANGE))}goToPreviousPage(){this.current--,this.dispatchEvent(new Ge(Ge.CHANGE))}goToPage(t){this.current=t,this.dispatchEvent(new Ge(Ge.CHANGE))}focusActivePage(){requestAnimationFrame(()=>{const t=this.renderRoot.querySelector(".active");t&&t.focus()})}renderFirst(){return l`<uui-button
3864
3905
  compact
3865
3906
  look="outline"
3866
3907
  class="nav"
@@ -3952,7 +3993,7 @@
3952
3993
  .active {
3953
3994
  pointer-events: none;
3954
3995
  }
3955
- `],Me([Fl("uui-button.nav")],ae.prototype,"_navButtons",2),Me([C("#pages")],ae.prototype,"_pagesGroup",2),Me([a()],ae.prototype,"label",2),Me([a({reflect:!0,attribute:"aria-label"})],ae.prototype,"ariaLabel",2),Me([a({type:Number})],ae.prototype,"total",1),Me([f()],ae.prototype,"_range",2),Me([f()],ae.prototype,"_visiblePages",2),Me([a({type:Number})],ae.prototype,"current",1),ae=Me([p("uui-pagination")],ae);class Fo extends O{}Fo.CLOSE="close";var j0=Object.defineProperty,V0=Object.getOwnPropertyDescriptor,Pr=(t,e,r,o)=>{for(var i=o>1?void 0:o?V0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&j0(e,r,i),i};function Ii(t,e,r){return t<e?e:t>r?r:t}let qe=class extends v{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=t=>{if(t.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const t=new Fo(Fo.CLOSE,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.open=!1)}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const r=e.position==="absolute",o=/(auto|scroll)/;let i=t;for(;i=i.parentElement;)if(e=getComputedStyle(i),!(r&&e.position==="static")&&(o.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(i),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const r=this.containerElement;if(!r)return;const o=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),i=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(i!=null&&o!=null){const s=this._scrollParents.map(pe=>pe.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,s));let n=this._currentPlacement.indexOf("top")!==-1,u=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const m=this._currentPlacement.indexOf("-start")!==-1,y=this._currentPlacement.indexOf("-end")!==-1;let b=.5,w=.5,$=.5,E=.5,q=0,Xe=0;if(this.placement==="auto"){const pe=this._scrollParents[0],sr=pe.clientWidth,Qe=pe.clientHeight,wt=i.x-o.width,xt=sr-(i.x+i.width)-o.width,Gi=i.y-o.height,Br=Qe-(i.y+i.height)-o.height;let Rr=.5,Fr=.5;const Ll=Math.max(wt,xt);let Jo=Math.max(Gi,Br);Br>Gi&&Br>this.margin&&(Jo+=9999),Ll>Jo?(wt>xt?(Rr=0,c=!0):(Rr=1,h=!0),q=this.margin):(Gi>Br?(Fr=0,n=!0):(Fr=1,u=!0),Xe=this.margin),b=Rr,w=Fr,$=1-Rr,E=1-Fr}else n&&(E=1,w=0),u&&(E=0,w=1),(n||u)&&(Xe=this.margin,m&&($=0,b=0),y&&($=1,b=1)),c&&($=1,b=0),h&&($=0,b=1),(c||h)&&(q=this.margin,m&&(E=0,w=0),y&&(E=1,w=1));const yt=-o.width*$+i.width*b-q*($*2-1),Fi=-o.height*E+i.height*w-Xe*(E*2-1);let Ye=yt,Ze=Fi;n||u?(this._scrollParents.forEach((pe,sr)=>{const Qe=pe===document.body?0:s[sr].x,wt=-i.x+Qe,xt=pe.clientWidth-i.x-i.width+yt+Qe-(o.width-i.width)*(1-b);Ye=Ii(Ye,wt,xt)}),Ye=Ii(Ye,-o.width,i.width)):(c||h)&&(this._scrollParents.forEach((pe,sr)=>{const Qe=pe===document.body?0:s[sr].y,wt=-i.y+Qe,xt=pe.clientHeight-i.y-i.height+Fi+Qe-(o.height-i.height)*(1-w);Ze=Ii(Ze,wt,xt)}),Ze=Ii(Ze,-o.height,i.height)),(this._positionX!==Ye||this._positionY!==Ze)&&(this._positionX=Ye,this._positionY=Ze,yt===Ye&&Fi===Ze&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,r){const i=t.split("-"),s=i[0],n=i[1]||null;let u;return this._scrollParents.some((c,h)=>{const m=c===document.body?0:r[h].x,y=c===document.body?0:r[h].y;return s==="top"&&e.y-2<=y?(u="bottom",!0):s==="bottom"&&e.y+e.height+2>=c.clientHeight+y?(u="top",!0):s==="left"&&e.x-2<=m?(u="right",!0):s==="right"&&e.x+e.width+2>=c.clientWidth+m?(u="left",!0):!1}),u?(this._startScrollListener(),u+(n?`-${n}`:"")):t}render(){return l`
3996
+ `],Me([lu("uui-button.nav")],ae.prototype,"_navButtons",2),Me([C("#pages")],ae.prototype,"_pagesGroup",2),Me([a()],ae.prototype,"label",2),Me([a({reflect:!0,attribute:"aria-label"})],ae.prototype,"ariaLabel",2),Me([a({type:Number})],ae.prototype,"total",1),Me([f()],ae.prototype,"_range",2),Me([f()],ae.prototype,"_visiblePages",2),Me([a({type:Number})],ae.prototype,"current",1),ae=Me([p("uui-pagination")],ae);class Yo extends k{}Yo.CLOSE="close";var a1=Object.defineProperty,l1=Object.getOwnPropertyDescriptor,Cr=(t,e,r,o)=>{for(var i=o>1?void 0:o?l1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&a1(e,r,i),i};function Ai(t,e,r){return t<e?e:t>r?r:t}let qe=class extends v{constructor(){super(...arguments),this.scrollEventHandler=this._updatePlacement.bind(this),this._open=!1,this._placement="bottom-start",this._currentPlacement=null,this._scrollParents=[],this.margin=0,this._onTriggerSlotChanged=t=>{this._trigger=t.target.assignedElements({flatten:!0})[0]},this._intersectionCallback=t=>{t.forEach(e=>{e.isIntersecting===!1&&(this._startScrollListener(),this._updatePlacement())})},this._onKeyUp=t=>{if(t.key==="Escape"){this._triggerPopoverClose();return}},this._onDocumentClick=t=>{t.composedPath().includes(this)||this._triggerPopoverClose()}}get placement(){return this._placement}set placement(t){const e=this._placement;this._placement=t||"bottom-start",this._currentPlacement=null,this._updatePlacement(),this.requestUpdate("placement",e)}get open(){return this._open}set open(t){const e=this._open;this._open=t,t?this._openPopover():this._closePopover(),this.requestUpdate("open",e)}connectedCallback(){super.connectedCallback(),this._getScrollParents()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),document.removeEventListener("scroll",this.scrollEventHandler),this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),this._scrollParents=[]}_openPopover(){this.containerElement&&(this.containerElement.style.opacity="0",document.addEventListener("mousedown",this._onDocumentClick),document.addEventListener("keyup",this._onKeyUp),this._currentPlacement=null,requestAnimationFrame(()=>{this._updatePlacement(),this._createIntersectionObserver(),this.containerElement.style.opacity="1"}))}_closePopover(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),delete this.intersectionObserver),document.removeEventListener("mousedown",this._onDocumentClick),document.removeEventListener("keyup",this._onKeyUp),this._currentPlacement=null}_triggerPopoverClose(){const t=new Yo(Yo.CLOSE,{cancelable:!0});this.dispatchEvent(t),!t.defaultPrevented&&(this.open=!1)}_getScrollParents(){const t=this.shadowRoot.host;let e=getComputedStyle(t);if(e.position==="fixed")return;const r=e.position==="absolute",o=/(auto|scroll)/;let i=t;for(;i=i.parentElement;)if(e=getComputedStyle(i),!(r&&e.position==="static")&&(o.test(e.overflow+e.overflowY+e.overflowX)&&this._scrollParents.push(i),e.position==="fixed"))return;this._scrollParents.push(document.body)}_createIntersectionObserver(){if(this.intersectionObserver)return;const t={root:null,rootMargin:"0px",threshold:1};this.intersectionObserver=new IntersectionObserver(this._intersectionCallback,t),this.intersectionObserver.observe(this.containerElement)}_startScrollListener(){this._scrollParents.forEach(t=>{t.addEventListener("scroll",this.scrollEventHandler)}),document.addEventListener("scroll",this.scrollEventHandler)}_stopScrollListener(){this._scrollParents.forEach(t=>{t.removeEventListener("scroll",this.scrollEventHandler)}),document.removeEventListener("scroll",this.scrollEventHandler)}_updatePlacement(){var t,e;if(!this.shadowRoot)return;const r=this.containerElement;if(!r)return;const o=(t=this.containerElement)==null?void 0:t.getBoundingClientRect(),i=(e=this._trigger)==null?void 0:e.getBoundingClientRect();if(i!=null&&o!=null){const s=this._scrollParents.map(pe=>pe.getBoundingClientRect());this._currentPlacement=this._currentPlacement||this._placement,this._placement!=="auto"&&(this._currentPlacement=this._managePlacementFlip(this._currentPlacement,o,s));let n=this._currentPlacement.indexOf("top")!==-1,u=this._currentPlacement.indexOf("bottom")!==-1,c=this._currentPlacement.indexOf("left")!==-1,h=this._currentPlacement.indexOf("right")!==-1;const m=this._currentPlacement.indexOf("-start")!==-1,y=this._currentPlacement.indexOf("-end")!==-1;let b=.5,w=.5,$=.5,E=.5,W=0,Xe=0;if(this.placement==="auto"){const pe=this._scrollParents[0],sr=pe.clientWidth,Qe=pe.clientHeight,wt=i.x-o.width,xt=sr-(i.x+i.width)-o.width,qi=i.y-o.height,Rr=Qe-(i.y+i.height)-o.height;let Fr=.5,Gr=.5;const Jl=Math.max(wt,xt);let ss=Math.max(qi,Rr);Rr>qi&&Rr>this.margin&&(ss+=9999),Jl>ss?(wt>xt?(Fr=0,c=!0):(Fr=1,h=!0),W=this.margin):(qi>Rr?(Gr=0,n=!0):(Gr=1,u=!0),Xe=this.margin),b=Fr,w=Gr,$=1-Fr,E=1-Gr}else n&&(E=1,w=0),u&&(E=0,w=1),(n||u)&&(Xe=this.margin,m&&($=0,b=0),y&&($=1,b=1)),c&&($=1,b=0),h&&($=0,b=1),(c||h)&&(W=this.margin,m&&(E=0,w=0),y&&(E=1,w=1));const yt=-o.width*$+i.width*b-W*($*2-1),Gi=-o.height*E+i.height*w-Xe*(E*2-1);let Ye=yt,Ze=Gi;n||u?(this._scrollParents.forEach((pe,sr)=>{const Qe=pe===document.body?0:s[sr].x,wt=-i.x+Qe,xt=pe.clientWidth-i.x-i.width+yt+Qe-(o.width-i.width)*(1-b);Ye=Ai(Ye,wt,xt)}),Ye=Ai(Ye,-o.width,i.width)):(c||h)&&(this._scrollParents.forEach((pe,sr)=>{const Qe=pe===document.body?0:s[sr].y,wt=-i.y+Qe,xt=pe.clientHeight-i.y-i.height+Gi+Qe-(o.height-i.height)*(1-w);Ze=Ai(Ze,wt,xt)}),Ze=Ai(Ze,-o.height,i.height)),(this._positionX!==Ye||this._positionY!==Ze)&&(this._positionX=Ye,this._positionY=Ze,yt===Ye&&Gi===Ze&&this._stopScrollListener(),r.style.left=`${this._positionX}px`,r.style.top=`${this._positionY}px`)}}_managePlacementFlip(t,e,r){const i=t.split("-"),s=i[0],n=i[1]||null;let u;return this._scrollParents.some((c,h)=>{const m=c===document.body?0:r[h].x,y=c===document.body?0:r[h].y;return s==="top"&&e.y-2<=y?(u="bottom",!0):s==="bottom"&&e.y+e.height+2>=c.clientHeight+y?(u="top",!0):s==="left"&&e.x-2<=m?(u="right",!0):s==="right"&&e.x+e.width+2>=c.clientWidth+m?(u="left",!0):!1}),u?(this._startScrollListener(),u+(n?`-${n}`:"")):t}render(){return l`
3956
3997
  <slot
3957
3998
  id="trigger"
3958
3999
  name="trigger"
@@ -3987,9 +4028,9 @@
3987
4028
  --uui-popover-toggle-slot-button-merge-border-left
3988
4029
  );
3989
4030
  }
3990
- `],Pr([C("#container")],qe.prototype,"containerElement",2),Pr([a({type:Number})],qe.prototype,"margin",2),Pr([a({type:String,reflect:!0})],qe.prototype,"placement",1),Pr([a({type:Boolean,reflect:!0})],qe.prototype,"open",1),qe=Pr([p("uui-popover")],qe);var B0=Object.defineProperty,R0=Object.getOwnPropertyDescriptor,Za=(t,e,r,o)=>{for(var i=o>1?void 0:o?R0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&B0(e,r,i),i};const F0=(t,e,r)=>Math.min(Math.max(t,e),r);let Cr=class extends v{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=F0(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return l`
4031
+ `],Cr([C("#container")],qe.prototype,"containerElement",2),Cr([a({type:Number})],qe.prototype,"margin",2),Cr([a({type:String,reflect:!0})],qe.prototype,"placement",1),Cr([a({type:Boolean,reflect:!0})],qe.prototype,"open",1),qe=Cr([p("uui-popover")],qe);var u1=Object.defineProperty,c1=Object.getOwnPropertyDescriptor,fl=(t,e,r,o)=>{for(var i=o>1?void 0:o?c1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&u1(e,r,i),i};const h1=(t,e,r)=>Math.min(Math.max(t,e),r);let Or=class extends v{constructor(){super(...arguments),this._progress=0}get progress(){return this._progress}set progress(t){const e=this._progress;this._progress=h1(t,0,100),this.requestUpdate("progress",e)}_getProgressStyle(){return{width:`${this._progress}%`}}render(){return l`
3991
4032
  <div id="bar" style=${ge(this._getProgressStyle())}></div>
3992
- `}};Cr.styles=[d`
4033
+ `}};Or.styles=[d`
3993
4034
  :host {
3994
4035
  width: 100%;
3995
4036
  height: 4px;
@@ -4006,7 +4047,7 @@
4006
4047
  height: 100%;
4007
4048
  width: 0%;
4008
4049
  }
4009
- `],Za([a({type:Number})],Cr.prototype,"progress",1),Cr=Za([p("uui-progress-bar")],Cr);var G0=Object.defineProperty,Qa=Object.getOwnPropertySymbols,q0=Object.prototype.hasOwnProperty,W0=Object.prototype.propertyIsEnumerable,Ja=(t,e,r)=>e in t?G0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,el=(t,e)=>{for(var r in e||(e={}))q0.call(e,r)&&Ja(t,r,e[r]);if(Qa)for(var r of Qa(e))W0.call(e,r)&&Ja(t,r,e[r]);return t};class Yt extends O{constructor(e,r={}){super(e,el(el({},{bubbles:!0}),r))}}Yt.CHANGE="change";var K0=Object.defineProperty,X0=Object.getOwnPropertyDescriptor,mt=(t,e,r,o)=>{for(var i=o>1?void 0:o?X0(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&K0(e,r,i),i},Y0=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},tl=(t,e,r)=>(Y0(t,e,"read from private field"),r?r.call(t):e.get(t)),rl=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Go,qo;let he=class extends v{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,rl(this,Go,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),rl(this,qo,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",tl(this,qo)),this.addEventListener("blur",tl(this,Go))}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-hidden",t?"true":"false"),this.setAttribute("tabindex",t?"-1":"0"),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(t){t.stopPropagation();const e=this.inputElement.checked;this.checked=e,e&&this.focus(),this.dispatchEvent(new Yt(Yt.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return l` <label>
4050
+ `],fl([a({type:Number})],Or.prototype,"progress",1),Or=fl([p("uui-progress-bar")],Or);var d1=Object.defineProperty,bl=Object.getOwnPropertySymbols,p1=Object.prototype.hasOwnProperty,v1=Object.prototype.propertyIsEnumerable,gl=(t,e,r)=>e in t?d1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ml=(t,e)=>{for(var r in e||(e={}))p1.call(e,r)&&gl(t,r,e[r]);if(bl)for(var r of bl(e))v1.call(e,r)&&gl(t,r,e[r]);return t};class Yt extends k{constructor(e,r={}){super(e,ml(ml({},{bubbles:!0}),r))}}Yt.CHANGE="change";var f1=Object.defineProperty,b1=Object.getOwnPropertyDescriptor,mt=(t,e,r,o)=>{for(var i=o>1?void 0:o?b1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&f1(e,r,i),i},g1=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},_l=(t,e,r)=>(g1(t,e,"read from private field"),r?r.call(t):e.get(t)),yl=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},Zo,Qo;let he=class extends v{constructor(){super(),this.name="",this.value="",this.label="",this._checked=!1,this._disabled=!1,yl(this,Zo,()=>{this.style.setProperty("--uui-show-focus-outline","1")}),yl(this,Qo,()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("mousedown",_l(this,Qo)),this.addEventListener("blur",_l(this,Zo))}get checked(){return this._checked}set checked(t){const e=this._checked;this._checked=t,t===!0?(this.setAttribute("aria-checked",""),this.disabled||this.setAttribute("tabindex","0")):(this.setAttribute("tabindex","-1"),this.removeAttribute("aria-checked")),this.requestUpdate("checked",e)}get disabled(){return this._disabled}set disabled(t){const e=this._disabled;this._disabled=t,this.setAttribute("aria-hidden",t?"true":"false"),this.setAttribute("tabindex",t?"-1":"0"),this.requestUpdate("disabled",e)}focus(){this.inputElement.focus()}click(){this.inputElement.click()}_onChange(t){t.stopPropagation();const e=this.inputElement.checked;this.checked=e,e&&this.focus(),this.dispatchEvent(new Yt(Yt.CHANGE))}uncheck(){this.checked=!1}check(){this.checked=!0}makeFocusable(){this.disabled||this.setAttribute("tabindex","0")}makeUnfocusable(){this.disabled||this.setAttribute("tabindex","-1")}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this.hasAttribute("aria-checked")||this.removeAttribute("aria-checked")}render(){return l` <label>
4010
4051
  <input
4011
4052
  id="input"
4012
4053
  type="radio"
@@ -4019,7 +4060,7 @@
4019
4060
  <div id="label">
4020
4061
  ${this.label?l`<span>${this.label}</span>`:l`<slot></slot>`}
4021
4062
  </div>
4022
- </label>`}};Go=new WeakMap,qo=new WeakMap,he.styles=[ri,d`
4063
+ </label>`}};Zo=new WeakMap,Qo=new WeakMap,he.styles=[ii,d`
4023
4064
  :host {
4024
4065
  display: block;
4025
4066
  box-sizing: border-box;
@@ -4124,7 +4165,7 @@
4124
4165
  }
4125
4166
 
4126
4167
  :host([disabled]:active) #button {
4127
- animation: ${ii};
4168
+ animation: ${oi};
4128
4169
  }
4129
4170
 
4130
4171
  @media (prefers-reduced-motion) {
@@ -4136,7 +4177,7 @@
4136
4177
  transition: none;
4137
4178
  }
4138
4179
  }
4139
- `],mt([C("#input")],he.prototype,"inputElement",2),mt([a({type:String})],he.prototype,"name",2),mt([a({type:String})],he.prototype,"value",2),mt([a({type:String})],he.prototype,"label",2),mt([a({type:Boolean,reflect:!0})],he.prototype,"checked",1),mt([a({type:Boolean,reflect:!0})],he.prototype,"disabled",1),he=mt([p("uui-radio")],he);var Z0=Object.defineProperty,il=Object.getOwnPropertySymbols,Q0=Object.prototype.hasOwnProperty,J0=Object.prototype.propertyIsEnumerable,ol=(t,e,r)=>e in t?Z0(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,sl=(t,e)=>{for(var r in e||(e={}))Q0.call(e,r)&&ol(t,r,e[r]);if(il)for(var r of il(e))J0.call(e,r)&&ol(t,r,e[r]);return t};class Ai extends O{constructor(e,r={}){super(e,sl(sl({},{bubbles:!0}),r))}}Ai.CHANGE="change";var e1=Object.defineProperty,t1=Object.getOwnPropertyDescriptor,nl=(t,e,r,o)=>{for(var i=o>1?void 0:o?t1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&e1(e,r,i),i};const r1="ArrowLeft",i1="ArrowUp",o1="ArrowRight",s1="ArrowDown",n1=" ";let Zt=class extends fe(v){constructor(){super(),this.disabled=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(t)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.name=t)}_updateRadioElementsCheckedState(t){this._radioElements.forEach((e,r)=>{e.value===t?(e.checked=!0,this._selected=r):e.checked=!1})}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.disabled=t)}_handleSlotChange(t){var e;if(t.stopPropagation(),(e=this._radioElements)==null||e.forEach(o=>{o.removeEventListener(Yt.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(o=>o instanceof he),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(Yt.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0);const r=this._radioElements.filter(o=>o.checked===!0);r.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),r.length===1?(this.value=r[0].value,this._selected=this._radioElements.indexOf(r[0]),r[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r[0].makeFocusable()):this._makeFirstEnabledFocusable()):this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(r=>{r.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let i=(e+o*t)%r;if(i<0&&(i+=r),this._radioElements[i].disabled===!1)return this._radioElements[i];o++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case r1:case i1:{t.preventDefault(),this._selectPreviousElement();break}case o1:case s1:{t.preventDefault(),this._selectNextElement();break}case n1:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_onKeypress(t){t.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new Ai(Ai.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(this.disabled),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return l` <slot @slotchange=${this._handleSlotChange}></slot> `}};Zt.formAssociated=!0,Zt.styles=[d`
4180
+ `],mt([C("#input")],he.prototype,"inputElement",2),mt([a({type:String})],he.prototype,"name",2),mt([a({type:String})],he.prototype,"value",2),mt([a({type:String})],he.prototype,"label",2),mt([a({type:Boolean,reflect:!0})],he.prototype,"checked",1),mt([a({type:Boolean,reflect:!0})],he.prototype,"disabled",1),he=mt([p("uui-radio")],he);var m1=Object.defineProperty,wl=Object.getOwnPropertySymbols,_1=Object.prototype.hasOwnProperty,y1=Object.prototype.propertyIsEnumerable,xl=(t,e,r)=>e in t?m1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,$l=(t,e)=>{for(var r in e||(e={}))_1.call(e,r)&&xl(t,r,e[r]);if(wl)for(var r of wl(e))y1.call(e,r)&&xl(t,r,e[r]);return t};class Ui extends k{constructor(e,r={}){super(e,$l($l({},{bubbles:!0}),r))}}Ui.CHANGE="change";var w1=Object.defineProperty,x1=Object.getOwnPropertyDescriptor,El=(t,e,r,o)=>{for(var i=o>1?void 0:o?x1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&w1(e,r,i),i};const $1="ArrowLeft",E1="ArrowUp",P1="ArrowRight",C1="ArrowDown",O1=" ";let Zt=class extends fe(v){constructor(){super(),this.disabled=!1,this._selected=null,this._radioElements=[],this._onChildBlur=()=>{this.pristine=!1},this._handleSelectOnClick=t=>{t.target.checked===!0&&(this.value=t.target.value,this._fireChangeEvent())},this.addEventListener("keydown",this._onKeydown),this.addEventListener("keypress",this._onKeypress),this.updateComplete.then(()=>{this._updateRadioElementsCheckedState(this.value)})}get value(){return this._value}set value(t){super.value=t,(t===null||t==="")&&this._makeFirstEnabledFocusable(),this._updateRadioElementsCheckedState(t)}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","radiogroup")}focus(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.focus():(e=this._findNextEnabledElement())==null||e.focus()}click(){var t,e;this._selected!==null?(t=this._radioElements[this._selected])==null||t.click():(e=this._findNextEnabledElement())==null||e.click()}getFormElement(){if(this._radioElements&&this._selected)return this._radioElements[this._selected]}_setNameOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.name=t)}_updateRadioElementsCheckedState(t){this._radioElements.forEach((e,r)=>{e.value===t?(e.checked=!0,this._selected=r):e.checked=!1})}_setDisableOnRadios(t){var e;(e=this._radioElements)==null||e.forEach(r=>r.disabled=t)}_handleSlotChange(t){var e;if(t.stopPropagation(),(e=this._radioElements)==null||e.forEach(o=>{o.removeEventListener(Yt.CHANGE,this._handleSelectOnClick),o.removeEventListener("blur",this._onChildBlur)}),this._selected=null,this._radioElements=t.target.assignedElements({flatten:!0}).filter(o=>o instanceof he),this._radioElements.length===0)return;this._radioElements.forEach(o=>{o.addEventListener(Yt.CHANGE,this._handleSelectOnClick),o.addEventListener("blur",this._onChildBlur)}),this._setNameOnRadios(this.name),this.disabled&&this._setDisableOnRadios(!0);const r=this._radioElements.filter(o=>o.checked===!0);r.length>1&&(this._radioElements.forEach(o=>{o.checked=!1}),this.value="",console.error("There can only be one checked radio among the <"+this.nodeName+"> children",this)),r.length===1?(this.value=r[0].value,this._selected=this._radioElements.indexOf(r[0]),r[0].disabled===!1?(this._radioElements.forEach(o=>{o.makeUnfocusable()}),r[0].makeFocusable()):this._makeFirstEnabledFocusable()):this._makeFirstEnabledFocusable()}_makeFirstEnabledFocusable(){var t,e;this._selected=null,(t=this._radioElements)==null||t.forEach(r=>{r.makeUnfocusable()}),(e=this._findNextEnabledElement())==null||e.makeFocusable()}_findNextEnabledElement(t=1){if(!this._radioElements)return null;const e=this._selected||0,r=this._radioElements.length;let o=this._selected===null?0:1;for(;o<r;){let i=(e+o*t)%r;if(i<0&&(i+=r),this._radioElements[i].disabled===!1)return this._radioElements[i];o++}return null}_selectPreviousElement(){var t,e;this.value=((t=this._findNextEnabledElement(-1))==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_selectNextElement(){var t,e;this.value=((t=this._findNextEnabledElement())==null?void 0:t.value)||"",(e=this._radioElements[this._selected||0])==null||e.focus(),this._fireChangeEvent()}_onKeydown(t){var e;switch(t.key){case $1:case E1:{t.preventDefault(),this._selectPreviousElement();break}case P1:case C1:{t.preventDefault(),this._selectNextElement();break}case O1:this._selected===null&&(this.value=(e=this._findNextEnabledElement())==null?void 0:e.value,this._fireChangeEvent())}}_onKeypress(t){t.key=="Enter"&&this.submit()}_fireChangeEvent(){this.pristine=!1,this.dispatchEvent(new Ui(Ui.CHANGE))}updated(t){super.updated(t),t.has("disabled")&&this._setDisableOnRadios(this.disabled),t.has("name")&&this._setNameOnRadios(t.get("name"))}render(){return l` <slot @slotchange=${this._handleSlotChange}></slot> `}};Zt.formAssociated=!0,Zt.styles=[d`
4140
4181
  :host {
4141
4182
  display: inline-block;
4142
4183
  padding-right: 3px;
@@ -4149,7 +4190,7 @@
4149
4190
  :host(:not([pristine])[internals-invalid]) {
4150
4191
  border: 1px solid var(--uui-color-danger-standalone,rgb(191, 33, 78));
4151
4192
  }
4152
- `],nl([a({type:Boolean,reflect:!0})],Zt.prototype,"disabled",2),Zt=nl([p("uui-radio-group")],Zt);var a1=Object.defineProperty,al=Object.getOwnPropertySymbols,l1=Object.prototype.hasOwnProperty,u1=Object.prototype.propertyIsEnumerable,ll=(t,e,r)=>e in t?a1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,ul=(t,e)=>{for(var r in e||(e={}))l1.call(e,r)&&ll(t,r,e[r]);if(al)for(var r of al(e))u1.call(e,r)&&ll(t,r,e[r]);return t};class V extends O{constructor(e,r={}){super(e,ul(ul({},{bubbles:!0}),r))}}V.INPUT="input",V.CHANGE="change";var c1=Object.defineProperty,h1=Object.getOwnPropertyDescriptor,S=(t,e,r,o)=>{for(var i=o>1?void 0:o?h1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&c1(e,r,i),i},d1=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},p1=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},v1=(t,e,r)=>(d1(t,e,"access private method"),r),Wo,cl;const de=12,hl=24;let P=class extends fe(v){constructor(){super(),p1(this,Wo),this.disabled=!1,this.step=1,this.hideStepValues=!1,this.min=0,this.max=100,this._valueLow=0,this._valueHigh=100,this._trackWidth=0,this._currentThumbFocus="low",this._startPos=0,this._startLow=0,this._startHigh=0,this._onMouseDown=t=>{if(t.preventDefault(),this.disabled)return;window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove);const e=t.composedPath()[0],r=t.pageX;if(e==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onMouseMove=t=>{t.preventDefault();const e=t.pageX,r=this._getValue(e);this._grabbingBoth?this._moveBoth(e):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new V(V.INPUT))},this._onMouseUp=()=>{this._stop(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this._onTouchStart=t=>{if(t.preventDefault(),this.disabled)return;window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove);const e=t.composedPath()[0],r=t.touches[0].pageX;if(e==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onTouchMove=t=>{const e=t.touches[0].pageX,r=this._getValue(e);this._grabbingBoth?this._moveBoth(e):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new V(V.INPUT))},this._onTouchEnd=()=>{this._stop(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),this.addValidator("stepMismatch",()=>"Step property needs to be higher than 0",()=>this.step<=0),this.addValidator("stepMismatch",()=>"Maxmimum gap needs to be higher than minimum gap",()=>!!this.maxGap&&!!this.minGap&&this.maxGap<=this.minGap),this.addValidator("rangeUnderflow",()=>`The lower end value (${this.valueLow}) cannot be below the the minimum value setting (${this.min})`,()=>this.valueLow<this.min),this.addValidator("rangeOverflow",()=>`The higher end value (${this.valueHigh}) cannot be above the the maximum value setting (${this.max})`,()=>this.valueHigh>this.max)}get value(){return this._value}set value(t){if(t instanceof String){super.value=t;const e=t.split(",");this.valueLow=parseInt(e[0]),this.valueHigh=parseInt(e[1])}}set valueLow(t){const e=this._valueHigh;if(t<=this.min){this._valueLow=this.min,super.value=`${this.min},${this.valueHigh}`,this.requestUpdate("valueLow",e);return}if(t>=this.valueHigh-this.step){this._valueLow=this.valueHigh-this.step,super.value=`${this.valueHigh-this.step},${this.valueHigh}`,this.requestUpdate("valueLow",e);return}this._valueLow=t,super.value=`${t},${this.valueHigh}`,this.requestUpdate("valueLow",e)}get valueLow(){return this._valueLow}set valueHigh(t){const e=this._valueHigh;if(t>=this.max){this._valueHigh=this.max,super.value=`${this.valueLow},${this.max}`,this.requestUpdate("valueHigh",e);return}if(t<=this.valueLow+this.step){this._valueHigh=this.valueLow+this.step,super.value=`${this.valueLow},${this.valueLow+this.step}`,this.requestUpdate("valueHigh",e);return}this._valueHigh=t,super.value=`${this.valueLow},${t}`,this.requestUpdate("valueHigh",e)}get valueHigh(){return this._valueHigh}getFormElement(){return this._currentInputFocus?this._currentInputFocus:this._inputLow}focus(){this._currentInputFocus?this._currentInputFocus.focus():this._inputLow.focus()}_onKeypress(t){t.key=="Enter"&&this.submit()}_sliderLowThumbPosition(){const t=(this.valueLow-this.min)/(this.max-this.min);return`${Math.floor(t*1e5)/1e3}%`}_sliderHighThumbPosition(){const t=(this.valueHigh-this.min)/(this.max-this.min);return`${Math.floor(t*1e5)/1e3}%`}_fillColor(){const t=(this.valueLow-this.min)/(this.max-this.min)*100,e=(this.valueHigh-this.min)/(this.max-this.min)*100;this._innerColor.style.left=`${t}%`,this._innerColor.style.right=`${100-e}%`}_moveThumb(t){const e=this._getValue(t);e>=this.valueHigh&&this._setThumb(this._thumbHigh),e<=this.valueLow&&this._setThumb(this._thumbLow),this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(e))}_stop(){this._grabbingBoth=!1,this.pristine=!1,this.dispatchEvent(new V(V.CHANGE))}_setThumb(t){this._currentThumbFocus=t===this._thumbLow?"low":"high",this._currentThumbFocus==="low"?this._currentInputFocus=this._inputLow:this._currentInputFocus=this._inputHigh,this.focus()}_setValueBasedOnCurrentThumb(t){this._currentThumbFocus==="low"?this.valueLow=t:this.valueHigh=t}_getValue(t){const o=(t-this._innerTrack.getBoundingClientRect().left)/(this._trackWidth-de*2)*(this.max-this.min)+this.min;return Math.round(o/this.step)*this.step}_validateLowByMinGap(t){return!this.minGap||this.minGap<=this.step?t:t+this.minGap>=this.valueHigh?this.valueHigh-this.minGap:t}_validateLowByMaxGap(t){return this.maxGap&&this.valueHigh-t>=this.maxGap?this.valueHigh-this.maxGap:t}_validateHighByMinGap(t){return!this.minGap||this.minGap<=this.step?t:t<=this.valueLow+this.minGap?this.valueLow+this.minGap:t}_validateHighByMaxGap(t){return this.maxGap&&t>=this.valueLow+this.maxGap?this.valueLow+this.maxGap:t}_validateValueBasedOnCurrentThumb(t){if(this._currentThumbFocus=="low"){let r;return r=t<this.valueHigh-this.step?t:this.valueHigh-this.step,r=r>=this.min?r:this.min,r=this.minGap?this._validateLowByMinGap(r):r,r=this.maxGap?this._validateLowByMaxGap(r):r,r}let e;return e=t>this.valueLow+this.step?t:this.valueLow+this.step,e=e<=this.max?e:this.max,e=this.minGap?this._validateHighByMinGap(e):e,e=this.maxGap?this._validateHighByMaxGap(e):e,e}_saveStartPoint(t,e,r){this._startPos=t,this._startLow=e,this._startHigh=r}_moveBoth(t){const e=t-this._startPos,r=this.max-this.min,o=e/(this._trackWidth+de*2),i=Math.round(o*r/this.step)*this.step,s=this._startLow+i,n=this._startHigh+i,u=this._getValidatedValues(s,n);s===u.low&&n===u.high&&(this.valueLow=s,this.valueHigh=n,this.dispatchEvent(new V(V.INPUT)))}_getValidatedValues(t,e){const r=t>this.min?t:this.min,o=e<this.max?e:this.max;return{low:r,high:o}}_onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new V(V.CHANGE))}_onLowInput(t){t.stopPropagation();let e=parseInt(this._inputLow.value);e=this._validateLowByMinGap(e),e=this._validateLowByMaxGap(e),this._inputLow.value=String(e),this.valueLow=e,this.dispatchEvent(new V(V.INPUT))}_onHighInput(t){t.stopPropagation();let e=parseInt(this._inputHigh.value);e=this._validateHighByMinGap(e),e=this._validateHighByMaxGap(e),this._inputHigh.value=String(e),this.valueHigh=e,this.dispatchEvent(new V(V.INPUT))}connectedCallback(){super.connectedCallback(),v1(this,Wo,cl).call(this),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack.offsetWidth})}updated(t){super.updated(t),this._trackWidth=this._outerTrack.offsetWidth,this._fillColor()}render(){return l`
4193
+ `],El([a({type:Boolean,reflect:!0})],Zt.prototype,"disabled",2),Zt=El([p("uui-radio-group")],Zt);var k1=Object.defineProperty,Pl=Object.getOwnPropertySymbols,S1=Object.prototype.hasOwnProperty,I1=Object.prototype.propertyIsEnumerable,Cl=(t,e,r)=>e in t?k1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ol=(t,e)=>{for(var r in e||(e={}))S1.call(e,r)&&Cl(t,r,e[r]);if(Pl)for(var r of Pl(e))I1.call(e,r)&&Cl(t,r,e[r]);return t};class V extends k{constructor(e,r={}){super(e,Ol(Ol({},{bubbles:!0}),r))}}V.INPUT="input",V.CHANGE="change";var z1=Object.defineProperty,A1=Object.getOwnPropertyDescriptor,S=(t,e,r,o)=>{for(var i=o>1?void 0:o?A1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&z1(e,r,i),i},U1=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},D1=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},L1=(t,e,r)=>(U1(t,e,"access private method"),r),Jo,kl;const de=12,Sl=24;let P=class extends fe(v){constructor(){super(),D1(this,Jo),this.disabled=!1,this.step=1,this.hideStepValues=!1,this.min=0,this.max=100,this._valueLow=0,this._valueHigh=100,this._trackWidth=0,this._currentThumbFocus="low",this._startPos=0,this._startLow=0,this._startHigh=0,this._onMouseDown=t=>{if(t.preventDefault(),this.disabled)return;window.addEventListener("mouseup",this._onMouseUp),window.addEventListener("mousemove",this._onMouseMove);const e=t.composedPath()[0],r=t.pageX;if(e==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onMouseMove=t=>{t.preventDefault();const e=t.pageX,r=this._getValue(e);this._grabbingBoth?this._moveBoth(e):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new V(V.INPUT))},this._onMouseUp=()=>{this._stop(),window.removeEventListener("mouseup",this._onMouseUp),window.removeEventListener("mousemove",this._onMouseMove)},this._onTouchStart=t=>{if(t.preventDefault(),this.disabled)return;window.addEventListener("touchend",this._onTouchEnd),window.addEventListener("touchmove",this._onTouchMove);const e=t.composedPath()[0],r=t.touches[0].pageX;if(e==this._bothThumbsTarget?this._grabbingBoth=!0:this._grabbingBoth=!1,this._grabbingBoth){this._saveStartPoint(r,this.valueLow,this.valueHigh);return}this._moveThumb(r)},this._onTouchMove=t=>{const e=t.touches[0].pageX,r=this._getValue(e);this._grabbingBoth?this._moveBoth(e):this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(r)),this.dispatchEvent(new V(V.INPUT))},this._onTouchEnd=()=>{this._stop(),window.removeEventListener("touchend",this._onTouchEnd),window.removeEventListener("touchmove",this._onTouchMove)},this.addEventListener("keypress",this._onKeypress),this.addEventListener("mousedown",this._onMouseDown),this.addEventListener("touchstart",this._onTouchStart),this.addValidator("stepMismatch",()=>"Step property needs to be higher than 0",()=>this.step<=0),this.addValidator("stepMismatch",()=>"Maxmimum gap needs to be higher than minimum gap",()=>!!this.maxGap&&!!this.minGap&&this.maxGap<=this.minGap),this.addValidator("rangeUnderflow",()=>`The lower end value (${this.valueLow}) cannot be below the the minimum value setting (${this.min})`,()=>this.valueLow<this.min),this.addValidator("rangeOverflow",()=>`The higher end value (${this.valueHigh}) cannot be above the the maximum value setting (${this.max})`,()=>this.valueHigh>this.max)}get value(){return this._value}set value(t){if(t instanceof String){super.value=t;const e=t.split(",");this.valueLow=parseInt(e[0]),this.valueHigh=parseInt(e[1])}}set valueLow(t){const e=this._valueHigh;if(t<=this.min){this._valueLow=this.min,super.value=`${this.min},${this.valueHigh}`,this.requestUpdate("valueLow",e);return}if(t>=this.valueHigh-this.step){this._valueLow=this.valueHigh-this.step,super.value=`${this.valueHigh-this.step},${this.valueHigh}`,this.requestUpdate("valueLow",e);return}this._valueLow=t,super.value=`${t},${this.valueHigh}`,this.requestUpdate("valueLow",e)}get valueLow(){return this._valueLow}set valueHigh(t){const e=this._valueHigh;if(t>=this.max){this._valueHigh=this.max,super.value=`${this.valueLow},${this.max}`,this.requestUpdate("valueHigh",e);return}if(t<=this.valueLow+this.step){this._valueHigh=this.valueLow+this.step,super.value=`${this.valueLow},${this.valueLow+this.step}`,this.requestUpdate("valueHigh",e);return}this._valueHigh=t,super.value=`${this.valueLow},${t}`,this.requestUpdate("valueHigh",e)}get valueHigh(){return this._valueHigh}getFormElement(){return this._currentInputFocus?this._currentInputFocus:this._inputLow}focus(){this._currentInputFocus?this._currentInputFocus.focus():this._inputLow.focus()}_onKeypress(t){t.key=="Enter"&&this.submit()}_sliderLowThumbPosition(){const t=(this.valueLow-this.min)/(this.max-this.min);return`${Math.floor(t*1e5)/1e3}%`}_sliderHighThumbPosition(){const t=(this.valueHigh-this.min)/(this.max-this.min);return`${Math.floor(t*1e5)/1e3}%`}_fillColor(){const t=(this.valueLow-this.min)/(this.max-this.min)*100,e=(this.valueHigh-this.min)/(this.max-this.min)*100;this._innerColor.style.left=`${t}%`,this._innerColor.style.right=`${100-e}%`}_moveThumb(t){const e=this._getValue(t);e>=this.valueHigh&&this._setThumb(this._thumbHigh),e<=this.valueLow&&this._setThumb(this._thumbLow),this._setValueBasedOnCurrentThumb(this._validateValueBasedOnCurrentThumb(e))}_stop(){this._grabbingBoth=!1,this.pristine=!1,this.dispatchEvent(new V(V.CHANGE))}_setThumb(t){this._currentThumbFocus=t===this._thumbLow?"low":"high",this._currentThumbFocus==="low"?this._currentInputFocus=this._inputLow:this._currentInputFocus=this._inputHigh,this.focus()}_setValueBasedOnCurrentThumb(t){this._currentThumbFocus==="low"?this.valueLow=t:this.valueHigh=t}_getValue(t){const o=(t-this._innerTrack.getBoundingClientRect().left)/(this._trackWidth-de*2)*(this.max-this.min)+this.min;return Math.round(o/this.step)*this.step}_validateLowByMinGap(t){return!this.minGap||this.minGap<=this.step?t:t+this.minGap>=this.valueHigh?this.valueHigh-this.minGap:t}_validateLowByMaxGap(t){return this.maxGap&&this.valueHigh-t>=this.maxGap?this.valueHigh-this.maxGap:t}_validateHighByMinGap(t){return!this.minGap||this.minGap<=this.step?t:t<=this.valueLow+this.minGap?this.valueLow+this.minGap:t}_validateHighByMaxGap(t){return this.maxGap&&t>=this.valueLow+this.maxGap?this.valueLow+this.maxGap:t}_validateValueBasedOnCurrentThumb(t){if(this._currentThumbFocus=="low"){let r;return r=t<this.valueHigh-this.step?t:this.valueHigh-this.step,r=r>=this.min?r:this.min,r=this.minGap?this._validateLowByMinGap(r):r,r=this.maxGap?this._validateLowByMaxGap(r):r,r}let e;return e=t>this.valueLow+this.step?t:this.valueLow+this.step,e=e<=this.max?e:this.max,e=this.minGap?this._validateHighByMinGap(e):e,e=this.maxGap?this._validateHighByMaxGap(e):e,e}_saveStartPoint(t,e,r){this._startPos=t,this._startLow=e,this._startHigh=r}_moveBoth(t){const e=t-this._startPos,r=this.max-this.min,o=e/(this._trackWidth+de*2),i=Math.round(o*r/this.step)*this.step,s=this._startLow+i,n=this._startHigh+i,u=this._getValidatedValues(s,n);s===u.low&&n===u.high&&(this.valueLow=s,this.valueHigh=n,this.dispatchEvent(new V(V.INPUT)))}_getValidatedValues(t,e){const r=t>this.min?t:this.min,o=e<this.max?e:this.max;return{low:r,high:o}}_onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new V(V.CHANGE))}_onLowInput(t){t.stopPropagation();let e=parseInt(this._inputLow.value);e=this._validateLowByMinGap(e),e=this._validateLowByMaxGap(e),this._inputLow.value=String(e),this.valueLow=e,this.dispatchEvent(new V(V.INPUT))}_onHighInput(t){t.stopPropagation();let e=parseInt(this._inputHigh.value);e=this._validateHighByMinGap(e),e=this._validateHighByMaxGap(e),this._inputHigh.value=String(e),this.valueHigh=e,this.dispatchEvent(new V(V.INPUT))}connectedCallback(){super.connectedCallback(),L1(this,Jo,kl).call(this),window.addEventListener("resize",()=>{this._trackWidth=this._outerTrack.offsetWidth})}updated(t){super.updated(t),this._trackWidth=this._outerTrack.offsetWidth,this._fillColor()}render(){return l`
4153
4194
  <div id="range-slider">
4154
4195
  ${this.renderNativeInputs()}
4155
4196
  <div id="inner-track">
@@ -4197,8 +4238,8 @@
4197
4238
  <rect x="9" y="9" height="3" rx="2" />
4198
4239
  ${this.renderSteps()}
4199
4240
  </svg>
4200
- </div>`}renderSteps(){const t=(this.max-this.min)/this.step,e=(this._trackWidth-de*2)/t,r=this._trackWidth/(this.max-this.min);if(e>=hl){let o=0;const i=[];for(o;o<=t;o++)i.push(o*e);const s=this.disabled==!1?"filled":"filled-disabled";return g`
4201
- ${i.map(n=>{const u=n+de;return u/r>this.valueLow-this.min&&u/r<this.valueHigh-this.min?g`<circle class="track-step ${s}" cx="${u}" cy="50%" r="4.5" />`:g`<circle class="track-step" cx="${u}" cy="50%" r="4.5" />`})}`}else return g``}renderStepValues(){if(this.hideStepValues)return x;const t=(this.max-this.min)/this.step;if((this._trackWidth-de*2)/t>=hl&&t<=20){let r=0;const o=[];for(r;r<=t;r++)o.push(r*this.step+this.min);return l` ${o.map(i=>l`<span><span>${i}</span></span>`)}`}else return x}};Wo=new WeakSet,cl=function(t){this._value=t||`${this.valueLow},${this.valueHigh}`},P.styles=[vn,d`
4241
+ </div>`}renderSteps(){const t=(this.max-this.min)/this.step,e=(this._trackWidth-de*2)/t,r=this._trackWidth/(this.max-this.min);if(e>=Sl){let o=0;const i=[];for(o;o<=t;o++)i.push(o*e);const s=this.disabled==!1?"filled":"filled-disabled";return g`
4242
+ ${i.map(n=>{const u=n+de;return u/r>this.valueLow-this.min&&u/r<this.valueHigh-this.min?g`<circle class="track-step ${s}" cx="${u}" cy="50%" r="4.5" />`:g`<circle class="track-step" cx="${u}" cy="50%" r="4.5" />`})}`}else return g``}renderStepValues(){if(this.hideStepValues)return x;const t=(this.max-this.min)/this.step;if((this._trackWidth-de*2)/t>=Sl&&t<=20){let r=0;const o=[];for(r;r<=t;r++)o.push(r*this.step+this.min);return l` ${o.map(i=>l`<span><span>${i}</span></span>`)}`}else return x}};Jo=new WeakSet,kl=function(t){this._value=t||`${this.valueLow},${this.valueHigh}`},P.styles=[yn,d`
4202
4243
  :host {
4203
4244
  display: block;
4204
4245
  min-height: 50px;
@@ -4536,7 +4577,7 @@
4536
4577
  input[type='range']:disabled::-ms-thumb {
4537
4578
  cursor: default;
4538
4579
  }
4539
- `],P.formAssociated=!0,S([a({type:Boolean,reflect:!0})],P.prototype,"disabled",2),S([a({type:String})],P.prototype,"label",2),S([a({type:Number})],P.prototype,"step",2),S([a({type:Boolean,attribute:"hide-step-values"})],P.prototype,"hideStepValues",2),S([a({type:Number})],P.prototype,"min",2),S([a({type:Number})],P.prototype,"max",2),S([a({type:Number,attribute:"min-gap"})],P.prototype,"minGap",2),S([a({type:Number,attribute:"max-gap"})],P.prototype,"maxGap",2),S([a({type:String})],P.prototype,"value",1),S([a({type:Number,attribute:"value-low"})],P.prototype,"valueLow",1),S([a({type:Number,attribute:"value-high"})],P.prototype,"valueHigh",1),S([f()],P.prototype,"_trackWidth",2),S([f()],P.prototype,"_currentInputFocus",2),S([f()],P.prototype,"_currentThumbFocus",2),S([f()],P.prototype,"_grabbingBoth",2),S([f()],P.prototype,"_startPos",2),S([f()],P.prototype,"_startLow",2),S([f()],P.prototype,"_startHigh",2),S([C("#low-input")],P.prototype,"_inputLow",2),S([C("#high-input")],P.prototype,"_inputHigh",2),S([C("#range-slider")],P.prototype,"_outerTrack",2),S([C("#inner-track")],P.prototype,"_innerTrack",2),S([C("#low-thumb")],P.prototype,"_thumbLow",2),S([C("#high-thumb")],P.prototype,"_thumbHigh",2),S([C(".color")],P.prototype,"_innerColor",2),S([C(".color-target")],P.prototype,"_bothThumbsTarget",2),P=S([p("uui-range-slider")],P);var f1=Object.defineProperty,b1=Object.getOwnPropertyDescriptor,g1=(t,e,r,o)=>{for(var i=o>1?void 0:o?b1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&f1(e,r,i),i};let Ui=class extends v{render(){return l`<slot></slot>`}};Ui.styles=[d`
4580
+ `],P.formAssociated=!0,S([a({type:Boolean,reflect:!0})],P.prototype,"disabled",2),S([a({type:String})],P.prototype,"label",2),S([a({type:Number})],P.prototype,"step",2),S([a({type:Boolean,attribute:"hide-step-values"})],P.prototype,"hideStepValues",2),S([a({type:Number})],P.prototype,"min",2),S([a({type:Number})],P.prototype,"max",2),S([a({type:Number,attribute:"min-gap"})],P.prototype,"minGap",2),S([a({type:Number,attribute:"max-gap"})],P.prototype,"maxGap",2),S([a({type:String})],P.prototype,"value",1),S([a({type:Number,attribute:"value-low"})],P.prototype,"valueLow",1),S([a({type:Number,attribute:"value-high"})],P.prototype,"valueHigh",1),S([f()],P.prototype,"_trackWidth",2),S([f()],P.prototype,"_currentInputFocus",2),S([f()],P.prototype,"_currentThumbFocus",2),S([f()],P.prototype,"_grabbingBoth",2),S([f()],P.prototype,"_startPos",2),S([f()],P.prototype,"_startLow",2),S([f()],P.prototype,"_startHigh",2),S([C("#low-input")],P.prototype,"_inputLow",2),S([C("#high-input")],P.prototype,"_inputHigh",2),S([C("#range-slider")],P.prototype,"_outerTrack",2),S([C("#inner-track")],P.prototype,"_innerTrack",2),S([C("#low-thumb")],P.prototype,"_thumbLow",2),S([C("#high-thumb")],P.prototype,"_thumbHigh",2),S([C(".color")],P.prototype,"_innerColor",2),S([C(".color-target")],P.prototype,"_bothThumbsTarget",2),P=S([p("uui-range-slider")],P);var N1=Object.defineProperty,T1=Object.getOwnPropertyDescriptor,H1=(t,e,r,o)=>{for(var i=o>1?void 0:o?T1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&N1(e,r,i),i};let Di=class extends v{render(){return l`<slot></slot>`}};Di.styles=[d`
4540
4581
  :host {
4541
4582
  display: block;
4542
4583
  }
@@ -4552,7 +4593,7 @@
4552
4593
  right: 0;
4553
4594
  border-top: 1px solid var(--uui-color-border,#d8d7d9);
4554
4595
  }
4555
- `],Ui=g1([p("uui-ref-list")],Ui);class Qt extends O{}Qt.OPEN="open";var m1=Object.defineProperty,_1=Object.getOwnPropertyDescriptor,Ko=(t,e,r,o)=>{for(var i=o>1?void 0:o?_1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&m1(e,r,i),i};let We=class extends Jr(St(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN)))}};We.styles=[d`
4596
+ `],Di=H1([p("uui-ref-list")],Di);class Qt extends k{}Qt.OPEN="open";var M1=Object.defineProperty,j1=Object.getOwnPropertyDescriptor,es=(t,e,r,o)=>{for(var i=o>1?void 0:o?j1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&M1(e,r,i),i};let We=class extends ei(kt(v)){constructor(){super(...arguments),this.disabled=!1,this.error=!1}handleOpenClick(t){t.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN))}handleOpenKeydown(t){t.key!==" "&&t.key!=="Enter"||(t.preventDefault(),t.stopPropagation(),this.dispatchEvent(new Qt(Qt.OPEN)))}};We.styles=[d`
4556
4597
  :host {
4557
4598
  position: relative;
4558
4599
  display: flex;
@@ -4700,7 +4741,7 @@
4700
4741
  justify-content: flex-end;
4701
4742
  align-items: center;
4702
4743
  }
4703
- `],Ko([a({type:Boolean,reflect:!0})],We.prototype,"disabled",2),Ko([a({type:Boolean,reflect:!0})],We.prototype,"error",2),We=Ko([p("uui-ref")],We);var y1=Object.defineProperty,w1=Object.getOwnPropertyDescriptor,Di=(t,e,r,o)=>{for(var i=o>1?void 0:o?w1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&y1(e,r,i),i};let D=class extends We{constructor(){super(...arguments),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),_(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return l`<small id="detail"
4744
+ `],es([a({type:Boolean,reflect:!0})],We.prototype,"disabled",2),es([a({type:Boolean,reflect:!0})],We.prototype,"error",2),We=es([p("uui-ref")],We);var V1=Object.defineProperty,B1=Object.getOwnPropertyDescriptor,Li=(t,e,r,o)=>{for(var i=o>1?void 0:o?B1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&V1(e,r,i),i};let D=class extends We{constructor(){super(...arguments),this.name="",this.detail="",this._iconSlotHasContent=!1,this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M396.441 138.878l-83.997-83.993-7.331-7.333H105.702v416.701h298.071V146.214l-7.332-7.336zM130.74 439.217V72.591h141.613c37.201 0 19.274 88.18 19.274 88.18s86-20.901 87.104 18.534v259.912H130.74z"></path></svg>'}connectedCallback(){super.connectedCallback(),_(this,"uui-icon")}_onSlotIconChange(t){this._iconSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}renderDetail(){return l`<small id="detail"
4704
4745
  >${this.detail}<slot name="detail"></slot
4705
4746
  ></small>`}_renderFallbackIcon(){return l`<uui-icon .svg="${this.fallbackIcon}"></uui-icon>`}render(){return l`
4706
4747
  <button
@@ -4784,17 +4825,17 @@
4784
4825
  :host([disabled]) #detail {
4785
4826
  color: var(--uui-color-disabled-contrast,#c4c4c4);
4786
4827
  }
4787
- `],Di([a({type:String})],D.prototype,"name",2),Di([a({type:String})],D.prototype,"detail",2),Di([f()],D.prototype,"_iconSlotHasContent",2),D=Di([p("uui-ref-node")],D);var x1=Object.defineProperty,$1=Object.getOwnPropertyDescriptor,dl=(t,e,r,o)=>{for(var i=o>1?void 0:o?$1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&x1(e,r,i),i};let Or=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail"
4828
+ `],Li([a({type:String})],D.prototype,"name",2),Li([a({type:String})],D.prototype,"detail",2),Li([f()],D.prototype,"_iconSlotHasContent",2),D=Li([p("uui-ref-node")],D);var R1=Object.defineProperty,F1=Object.getOwnPropertyDescriptor,Il=(t,e,r,o)=>{for(var i=o>1?void 0:o?F1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&R1(e,r,i),i};let kr=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M142.212 397.267l106.052-48.024L398.479 199.03l-26.405-26.442-90.519 90.517-15.843-15.891 90.484-90.486-16.204-16.217-150.246 150.243-47.534 106.513zm74.904-100.739l23.285-23.283 3.353 22.221 22.008 3.124-23.283 23.313-46.176 20.991 20.813-46.366zm257.6-173.71L416.188 64.3l-49.755 49.785 58.504 58.503 49.779-49.77zM357.357 300.227h82.826v116.445H68.929V300.227h88.719v-30.648H38.288v177.733h432.537V269.578H357.357v30.649z"></path></svg>',this.alias=""}renderDetail(){const t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail"
4788
4829
  >${t.join(" | ")}<slot name="detail"></slot
4789
- ></small>`}};Or.styles=[...D.styles],dl([a({type:String})],Or.prototype,"alias",2),Or=dl([p("uui-ref-node-data-type")],Or);var E1=Object.defineProperty,P1=Object.getOwnPropertyDescriptor,pl=(t,e,r,o)=>{for(var i=o>1?void 0:o?P1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&E1(e,r,i),i};let Sr=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail"
4830
+ ></small>`}};kr.styles=[...D.styles],Il([a({type:String})],kr.prototype,"alias",2),kr=Il([p("uui-ref-node-data-type")],kr);var G1=Object.defineProperty,q1=Object.getOwnPropertyDescriptor,zl=(t,e,r,o)=>{for(var i=o>1?void 0:o?q1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&G1(e,r,i),i};let Sr=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M49.035 60.434h413.93v33.592H49.035zm0 82.005h86.578v86.577H49.035zm163.677 0h86.576v86.577h-86.576zm163.676 0h86.576v86.577h-86.576zM49.035 282.984h413.93v33.593H49.035zm0 82.006h86.578v86.576H49.035zm163.677 0h86.576v86.576h-86.576zm163.676 0h86.576v86.576h-86.576z"></path></svg>',this.alias=""}renderDetail(){const t=[];return this.alias!==""&&t.push(this.alias),this.detail!==""&&t.push(this.detail),l`<small id="detail"
4790
4831
  >${t.join(" | ")}<slot name="detail"></slot
4791
- ></small>`}};Sr.styles=[...D.styles],pl([a({type:String})],Sr.prototype,"alias",2),Sr=pl([p("uui-ref-node-document-type")],Sr);var C1=Object.defineProperty,O1=Object.getOwnPropertyDescriptor,S1=(t,e,r,o)=>{for(var i=o>1?void 0:o?O1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&C1(e,r,i),i};let Li=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}};Li.styles=[...D.styles],Li=S1([p("uui-ref-node-form")],Li);var k1=Object.defineProperty,z1=Object.getOwnPropertyDescriptor,vl=(t,e,r,o)=>{for(var i=o>1?void 0:o?z1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&k1(e,r,i),i};let kr=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail"
4832
+ ></small>`}};Sr.styles=[...D.styles],zl([a({type:String})],Sr.prototype,"alias",2),Sr=zl([p("uui-ref-node-document-type")],Sr);var W1=Object.defineProperty,K1=Object.getOwnPropertyDescriptor,X1=(t,e,r,o)=>{for(var i=o>1?void 0:o?K1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&W1(e,r,i),i};let Ni=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M444.72 215.28H67.28c-11.04 0-20-8.96-20-20V64.896c0-11.04 8.96-20 20-20h377.44c11.04 0 20 8.96 20 20V195.28c0 11.056-8.96 20-20 20zm-357.44-40h337.44V84.896H87.28v90.384zm185.504 215.696c0-6.848.704-13.504 1.936-20H87.28v-90.384h337.44v12.496a108.098 108.098 0 0140 31.36v-63.856c0-11.04-8.96-20-20-20H67.28c-11.04 0-20 8.96-20 20v130.384c0 11.04 8.96 20 20 20h207.44c-1.232-6.496-1.936-13.152-1.936-20zm107.552-76.128c-41.968 0-76.112 34.16-76.112 76.128s34.144 76.128 76.112 76.128 76.128-34.16 76.128-76.128-34.144-76.128-76.128-76.128zm46.016 80.464a7.293 7.293 0 01-7.296 7.296h-27.072v27.088a7.293 7.293 0 01-7.296 7.296H376a7.293 7.293 0 01-7.296-7.296v-27.088h-27.072a7.293 7.293 0 01-7.296-7.296v-8.672a7.293 7.293 0 017.296-7.296h27.072v-27.088A7.293 7.293 0 01376 344.96h8.688a7.293 7.293 0 017.296 7.296v27.088h27.072a7.293 7.293 0 017.296 7.296v8.672z"></path></svg>'}};Ni.styles=[...D.styles],Ni=X1([p("uui-ref-node-form")],Ni);var Y1=Object.defineProperty,Z1=Object.getOwnPropertyDescriptor,Al=(t,e,r,o)=>{for(var i=o>1?void 0:o?Z1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Y1(e,r,i),i};let Ir=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail"
4792
4833
  >${t.join(" | ")}<slot name="detail"></slot
4793
- ></small>`}};kr.styles=[...D.styles],vl([a({type:String,attribute:"group-name"})],kr.prototype,"groupName",2),kr=vl([p("uui-ref-node-member")],kr);var I1=Object.defineProperty,A1=Object.getOwnPropertyDescriptor,Xo=(t,e,r,o)=>{for(var i=o>1?void 0:o?A1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&I1(e,r,i),i};let Jt=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),l`<small id="detail"
4834
+ ></small>`}};Ir.styles=[...D.styles],Al([a({type:String,attribute:"group-name"})],Ir.prototype,"groupName",2),Ir=Al([p("uui-ref-node-member")],Ir);var Q1=Object.defineProperty,J1=Object.getOwnPropertyDescriptor,ts=(t,e,r,o)=>{for(var i=o>1?void 0:o?J1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Q1(e,r,i),i};let Jt=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M161.08 106.29l-70.073 40.452 165.498 95.545 70.076-40.453L161.08 106.29zm259.851 41.077L255.435 51.815l-63.578 36.709 165.499 95.542 63.575-36.699zm-150.11 122.19V459.43l164.966-95.238V174.32l-164.966 95.237zM75.082 364.191l164.959 95.234V268.32L75.082 173.09v191.101z"></path></svg>',this.version="",this.author=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.version!==""&&t.push(this.version),this.author!==""&&t.push(this.author),l`<small id="detail"
4794
4835
  >${t.join(" | ")}<slot name="detail"></slot
4795
- ></small>`}};Jt.styles=[...D.styles],Xo([a({type:String})],Jt.prototype,"version",2),Xo([a({type:String})],Jt.prototype,"author",2),Jt=Xo([p("uui-ref-node-package")],Jt);var U1=Object.defineProperty,D1=Object.getOwnPropertyDescriptor,fl=(t,e,r,o)=>{for(var i=o>1?void 0:o?D1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&U1(e,r,i),i};let zr=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail"
4836
+ ></small>`}};Jt.styles=[...D.styles],ts([a({type:String})],Jt.prototype,"version",2),ts([a({type:String})],Jt.prototype,"author",2),Jt=ts([p("uui-ref-node-package")],Jt);var ev=Object.defineProperty,tv=Object.getOwnPropertyDescriptor,Ul=(t,e,r,o)=>{for(var i=o>1?void 0:o?tv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&ev(e,r,i),i};let zr=class extends D{constructor(){super(...arguments),this.fallbackIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M331.135 98.375c3.677 14.798 4.045 16.031 3.702 31.225-.138 5.855-3.5 32.936-2.586 41.242.751 6.851 2.46 7.395 5.162 13.041 4.705 9.824 3.13 23.376 1.325 33.282-.988 5.42-3.076 13.136-6.248 17.561-3.497 4.876-10.498 4.913-13.592 10.602-4.459 8.195-1.941 19.692-4.752 28.54-3.193 10.033-11.325 10.738-11.938 23.867 3.986.562 7.962 1.134 11.938 1.703 3.99 8.484 11.297 25.552 18.759 30.688 6.25 1.705 12.505 3.411 18.752 5.113 21.907 8.982 46.251 19.732 68.204 28.987 19.991 8.434 43.927 11.439 51.151 32.396 0 14.229 1.343 47.849.976 66.497H36.514c-.367-18.648.974-52.268.974-66.497 7.226-20.957 31.16-23.963 51.151-32.396 21.953-9.255 46.297-20.005 68.201-28.987 6.25-1.702 12.506-3.408 18.754-5.113 7.461-5.136 14.77-22.203 18.76-30.688l8.877-2.158c-2.017-11.206-8.954-12.078-11.845-20.01a91882.59 91882.59 0 00-3.408-35.806c.055.563-8.163-1.497-9.238-2.171-11.58-7.256-11.816-36.723-12.931-48.978-.508-5.603 7.283-10.193 5.118-20.465-12.69-60.138 5.486-88.282 34.229-97.614 19.95-8.083 57.198-23.074 91.941-1.703l8.621 7.991 13.952 2.405c7 4.041 11.465 17.446 11.465 17.446z"></path></svg>',this.groupName=""}renderDetail(){const t=[];return this.detail!==""&&t.push(this.detail),this.groupName!==""&&t.push(this.groupName),l`<small id="detail"
4796
4837
  >${t.join(" | ")}<slot name="detail"></slot
4797
- ></small>`}};zr.styles=[...D.styles],fl([a({type:String,attribute:"group-name"})],zr.prototype,"groupName",2),zr=fl([p("uui-ref-node-user")],zr);var L1=Object.defineProperty,N1=Object.getOwnPropertyDescriptor,bl=(t,e,r,o)=>{for(var i=o>1?void 0:o?N1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&L1(e,r,i),i};let Ir=class extends v{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return l`<slot></slot>`}};Ir.styles=[d`
4838
+ ></small>`}};zr.styles=[...D.styles],Ul([a({type:String,attribute:"group-name"})],zr.prototype,"groupName",2),zr=Ul([p("uui-ref-node-user")],zr);var rv=Object.defineProperty,iv=Object.getOwnPropertyDescriptor,Dl=(t,e,r,o)=>{for(var i=o>1?void 0:o?iv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&rv(e,r,i),i};let Ar=class extends v{constructor(){super(...arguments),this.enforceScroll=!1}connectedCallback(){super.connectedCallback(),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}render(){return l`<slot></slot>`}};Ar.styles=[d`
4798
4839
  :host {
4799
4840
  display: block;
4800
4841
  scrollbar-width: thin;
@@ -4820,7 +4861,7 @@
4820
4861
  background-color: var(--uui-color-disabled-contrast,#c4c4c4);
4821
4862
  border-radius: 3px;
4822
4863
  }
4823
- `],bl([a({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],Ir.prototype,"enforceScroll",2),Ir=bl([p("uui-scroll-container")],Ir);var H1=Object.defineProperty,gl=Object.getOwnPropertySymbols,T1=Object.prototype.hasOwnProperty,M1=Object.prototype.propertyIsEnumerable,ml=(t,e,r)=>e in t?H1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,_l=(t,e)=>{for(var r in e||(e={}))T1.call(e,r)&&ml(t,r,e[r]);if(gl)for(var r of gl(e))M1.call(e,r)&&ml(t,r,e[r]);return t};class Ni extends O{constructor(e,r={}){super(e,_l(_l({},{bubbles:!0}),r))}}Ni.CHANGE="change";var j1=Object.defineProperty,V1=Object.getOwnPropertyDescriptor,xe=(t,e,r,o)=>{for(var i=o>1?void 0:o?V1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&j1(e,r,i),i};let Z=class extends fe(v){constructor(){super(),this.placeholder="",this.disabled=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}focus(){this._input.focus()}click(){this._input.click()}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const e=this.options.find(r=>r.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){t.stopPropagation();const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new Ni(Ni.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,r,o){return l`<option
4864
+ `],Dl([a({type:Boolean,reflect:!0,attribute:"enforce-scroll"})],Ar.prototype,"enforceScroll",2),Ar=Dl([p("uui-scroll-container")],Ar);var ov=Object.defineProperty,Ll=Object.getOwnPropertySymbols,sv=Object.prototype.hasOwnProperty,nv=Object.prototype.propertyIsEnumerable,Nl=(t,e,r)=>e in t?ov(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Tl=(t,e)=>{for(var r in e||(e={}))sv.call(e,r)&&Nl(t,r,e[r]);if(Ll)for(var r of Ll(e))nv.call(e,r)&&Nl(t,r,e[r]);return t};class Ti extends k{constructor(e,r={}){super(e,Tl(Tl({},{bubbles:!0}),r))}}Ti.CHANGE="change";var av=Object.defineProperty,lv=Object.getOwnPropertyDescriptor,xe=(t,e,r,o)=>{for(var i=o>1?void 0:o?lv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&av(e,r,i),i};let Q=class extends fe(v){constructor(){super(),this.placeholder="",this.disabled=!1,this.error=!1,this.options=[],this._groups=[],this.disabledGroups="",this._disabledGroups=[],this._values=[],this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")})}focus(){this._input.focus()}click(){this._input.click()}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}_createDisabledGroups(){this.disabledGroups.length!==0&&(this._disabledGroups=this.disabledGroups.split(","))}_extractGroups(){this.options.length!==0&&(this._groups=Array.from(new Set(this.options.filter(t=>t.group).map(t=>t.group))))}willUpdate(t){if(t.has("options")){this._extractGroups(),this._values=this.options.map(r=>r.value);const e=this.options.find(r=>r.selected);this.value=e?e.value:""}t.has("value")&&(this.value=this._values.includes(this.value)?this.value:""),t.has("disabledGroups")&&this._createDisabledGroups()}setValue(t){t.stopPropagation();const e=t.target;t.target&&(this.value=e.value),this.dispatchEvent(new Ti(Ti.CHANGE,{bubbles:!0,composed:!1}))}getFormElement(){return this._input}_renderOption(t,e,r,o){return l`<option
4824
4865
  value="${e}"
4825
4866
  ?selected=${r}
4826
4867
  ?disabled=${o}>
@@ -4841,7 +4882,7 @@
4841
4882
  <option disabled selected value="" hidden>${this.placeholder}</option>
4842
4883
  ${this._renderGrouped()}
4843
4884
  ${this.options.filter(t=>!t.group).map(t=>this._renderOption(t.name,t.value,t.selected,t.disabled))}
4844
- </select>`}};Z.styles=[d`
4885
+ </select>`}};Q.styles=[d`
4845
4886
  :host {
4846
4887
  position: relative;
4847
4888
  font-family: inherit;
@@ -4912,7 +4953,7 @@
4912
4953
  :host([error]) #native[disabled] {
4913
4954
  border: 1px solid var(--uui-color-danger-standalone,rgb(191, 33, 78));
4914
4955
  }
4915
- `],xe([a({type:String})],Z.prototype,"label",2),xe([a()],Z.prototype,"placeholder",2),xe([a({type:Boolean,reflect:!0})],Z.prototype,"disabled",2),xe([a({type:Boolean,reflect:!0})],Z.prototype,"error",2),xe([a({type:Array,attribute:!1})],Z.prototype,"options",2),xe([f()],Z.prototype,"_groups",2),xe([a()],Z.prototype,"disabledGroups",2),xe([f()],Z.prototype,"_disabledGroups",2),xe([C("#native")],Z.prototype,"_input",2),Z=xe([p("uui-select")],Z);const B1=d`
4956
+ `],xe([a({type:String})],Q.prototype,"label",2),xe([a()],Q.prototype,"placeholder",2),xe([a({type:Boolean,reflect:!0})],Q.prototype,"disabled",2),xe([a({type:Boolean,reflect:!0})],Q.prototype,"error",2),xe([a({type:Array,attribute:!1})],Q.prototype,"options",2),xe([f()],Q.prototype,"_groups",2),xe([a()],Q.prototype,"disabledGroups",2),xe([f()],Q.prototype,"_disabledGroups",2),xe([C("#native")],Q.prototype,"_input",2),Q=xe([p("uui-select")],Q);const uv=d`
4916
4957
  input[type='range'] {
4917
4958
  left: 0;
4918
4959
  position: absolute;
@@ -5019,15 +5060,15 @@
5019
5060
  input[type='range']:focus::-ms-fill-upper {
5020
5061
  background: transparent;
5021
5062
  }
5022
- `;var R1=Object.defineProperty,yl=Object.getOwnPropertySymbols,F1=Object.prototype.hasOwnProperty,G1=Object.prototype.propertyIsEnumerable,wl=(t,e,r)=>e in t?R1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,xl=(t,e)=>{for(var r in e||(e={}))F1.call(e,r)&&wl(t,r,e[r]);if(yl)for(var r of yl(e))G1.call(e,r)&&wl(t,r,e[r]);return t};class _t extends O{constructor(e,r={}){super(e,xl(xl({},{bubbles:!0}),r))}}_t.INPUT="input",_t.CHANGE="change";var q1=Object.defineProperty,W1=Object.getOwnPropertyDescriptor,Q=(t,e,r,o)=>{for(var i=o>1?void 0:o?W1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&q1(e,r,i),i};const Ar=12,$l=24,K1=(t,e)=>g`
5023
- ${t.map(r=>{if(e>=$l){const o=Math.round(Ar+e*t.indexOf(r));return g`<circle class="track-step" cx="${o}" cy="50%" r="4.5" />`}return g``})}
5024
- `,X1=(t,e,r)=>r?x:l`<div id="step-values">
5063
+ `;var cv=Object.defineProperty,Hl=Object.getOwnPropertySymbols,hv=Object.prototype.hasOwnProperty,dv=Object.prototype.propertyIsEnumerable,Ml=(t,e,r)=>e in t?cv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,jl=(t,e)=>{for(var r in e||(e={}))hv.call(e,r)&&Ml(t,r,e[r]);if(Hl)for(var r of Hl(e))dv.call(e,r)&&Ml(t,r,e[r]);return t};class _t extends k{constructor(e,r={}){super(e,jl(jl({},{bubbles:!0}),r))}}_t.INPUT="input",_t.CHANGE="change";var pv=Object.defineProperty,vv=Object.getOwnPropertyDescriptor,J=(t,e,r,o)=>{for(var i=o>1?void 0:o?vv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pv(e,r,i),i};const Ur=12,Vl=24,fv=(t,e)=>g`
5064
+ ${t.map(r=>{if(e>=Vl){const o=Math.round(Ur+e*t.indexOf(r));return g`<circle class="track-step" cx="${o}" cy="50%" r="4.5" />`}return g``})}
5065
+ `,bv=(t,e,r)=>r?x:l`<div id="step-values">
5025
5066
  ${t.map(o=>l` <span
5026
5067
  ><span>
5027
- ${t.length<=20&&e>=$l?o.toFixed(0):x}
5068
+ ${t.length<=20&&e>=Vl?o.toFixed(0):x}
5028
5069
  </span></span
5029
5070
  >`)}
5030
- </div>`,Y1=(t,e,r)=>Array.from({length:(e-t)/r+1},(o,i)=>t+i*r);let j=class extends fe(v){constructor(){super(),this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let r=t?parseFloat(t):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),this._value=r.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=Y1(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Ar*2)/(this._steps.length-1)}_onKeypress(t){t.key=="Enter"&&this.submit()}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(t){t.stopPropagation(),this.value=this._input.value,this.dispatchEvent(new _t(_t.INPUT))}_onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new _t(_t.CHANGE))}render(){return l`
5071
+ </div>`,gv=(t,e,r)=>Array.from({length:(e-t)/r+1},(o,i)=>t+i*r);let j=class extends fe(v){constructor(){super(),this.hideStepValues=!1,this.min=0,this.max=100,this.step=1,this.disabled=!1,this._stepWidth=0,this.onWindowResize=()=>{this._stepWidth=this._calculateStepWidth()},this._steps=[],this._sliderPosition="0%",this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addEventListener("keypress",this._onKeypress)}get value(){return this._value}set value(t){if(t instanceof File)return;const e=this._value;let r=t?parseFloat(t):0;r=Math.min(Math.max(r,this.min),this.max),this.step>0&&(r=Math.round(r/this.step)*this.step),this._value=r.toString(),this._calculateSliderPosition(),"ElementInternals"in window&&"setFormValue"in window.ElementInternals.prototype&&this._internals.setFormValue(this._value),this.requestUpdate("value",e)}focus(){this._input.focus()}getFormElement(){return this._input}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this.onWindowResize),this.label||console.warn(this.tagName+" needs a `label`",this)}disconnectedCallback(){window.removeEventListener("resize",this.onWindowResize),super.disconnectedCallback()}firstUpdated(){this._calculateSliderPosition(),this._updateSteps()}updated(t){super.updated(t),(t.get("max")||t.get("min")||t.get("step"))&&(this.value=this.value,this._updateSteps())}_updateSteps(){this._steps=gv(this.min,this.max,this.step),this._stepWidth=this._calculateStepWidth()}_calculateStepWidth(){return(this._track.getBoundingClientRect().width-Ur*2)/(this._steps.length-1)}_onKeypress(t){t.key=="Enter"&&this.submit()}_calculateSliderPosition(){const t=(parseFloat(this._value||"0")-this.min)/(this.max-this.min);this._sliderPosition=`${Math.floor(t*1e5)/1e3}%`}_onInput(t){t.stopPropagation(),this.value=this._input.value,this.dispatchEvent(new _t(_t.INPUT))}_onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new _t(_t.CHANGE))}render(){return l`
5031
5072
  <input
5032
5073
  id="input"
5033
5074
  type="range"
@@ -5042,7 +5083,7 @@
5042
5083
  <div id="track" aria-hidden="true">
5043
5084
  <svg height="100%" width="100%">
5044
5085
  <rect x="9" y="9" height="3" rx="2" />
5045
- ${K1(this._steps,this._stepWidth)}
5086
+ ${fv(this._steps,this._stepWidth)}
5046
5087
  </svg>
5047
5088
 
5048
5089
  <div id="track-inner" aria-hidden="true">
@@ -5051,8 +5092,8 @@
5051
5092
  </div>
5052
5093
  </div>
5053
5094
  </div>
5054
- ${X1(this._steps,this._stepWidth,this.hideStepValues)}
5055
- `}};j.formAssociated=!0,j.styles=[vn,B1,d`
5095
+ ${bv(this._steps,this._stepWidth,this.hideStepValues)}
5096
+ `}};j.formAssociated=!0,j.styles=[yn,uv,d`
5056
5097
  :host {
5057
5098
  display: inline-block;
5058
5099
  width: 100%;
@@ -5100,8 +5141,8 @@
5100
5141
 
5101
5142
  #track-inner {
5102
5143
  position: absolute;
5103
- left: ${Ar}px; /* Match TRACK_MARGIN */
5104
- right: ${Ar}px; /* Match TRACK_MARGIN */
5144
+ left: ${Ur}px; /* Match TRACK_MARGIN */
5145
+ right: ${Ur}px; /* Match TRACK_MARGIN */
5105
5146
  }
5106
5147
 
5107
5148
  #thumb {
@@ -5160,7 +5201,7 @@
5160
5201
  }
5161
5202
 
5162
5203
  #step-values {
5163
- margin: 0 ${Ar}px; /* Match TRACK_MARGIN */
5204
+ margin: 0 ${Ur}px; /* Match TRACK_MARGIN */
5164
5205
  margin-top: 6px;
5165
5206
  display: flex;
5166
5207
  align-items: flex-end;
@@ -5191,9 +5232,9 @@
5191
5232
  :host(:not([pristine]):invalid) #thumb:after {
5192
5233
  background-color: var(--uui-color-danger,#d42054);
5193
5234
  }
5194
- `],Q([a({type:Boolean,attribute:"hide-step-values"})],j.prototype,"hideStepValues",2),Q([a({type:Number})],j.prototype,"min",2),Q([a({type:Number})],j.prototype,"max",2),Q([a({type:Number})],j.prototype,"step",2),Q([a({type:String})],j.prototype,"value",1),Q([a({type:Boolean,reflect:!0})],j.prototype,"disabled",2),Q([a({type:String})],j.prototype,"label",2),Q([C("#input")],j.prototype,"_input",2),Q([C("#track")],j.prototype,"_track",2),Q([f()],j.prototype,"_stepWidth",2),Q([f()],j.prototype,"_steps",2),Q([f()],j.prototype,"_sliderPosition",2),j=Q([p("uui-slider")],j);var Z1=Object.defineProperty,Q1=Object.getOwnPropertyDescriptor,El=(t,e,r,o)=>{for(var i=o>1?void 0:o?Q1(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Z1(e,r,i),i};let Ur=class extends v{constructor(){super(...arguments),this.open=!1}render(){return l`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
5235
+ `],J([a({type:Boolean,attribute:"hide-step-values"})],j.prototype,"hideStepValues",2),J([a({type:Number})],j.prototype,"min",2),J([a({type:Number})],j.prototype,"max",2),J([a({type:Number})],j.prototype,"step",2),J([a({type:String})],j.prototype,"value",1),J([a({type:Boolean,reflect:!0})],j.prototype,"disabled",2),J([a({type:String})],j.prototype,"label",2),J([C("#input")],j.prototype,"_input",2),J([C("#track")],j.prototype,"_track",2),J([f()],j.prototype,"_stepWidth",2),J([f()],j.prototype,"_steps",2),J([f()],j.prototype,"_sliderPosition",2),j=J([p("uui-slider")],j);var mv=Object.defineProperty,_v=Object.getOwnPropertyDescriptor,Bl=(t,e,r,o)=>{for(var i=o>1?void 0:o?_v(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&mv(e,r,i),i};let Dr=class extends v{constructor(){super(...arguments),this.open=!1}render(){return l`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
5195
5236
  <path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path>
5196
- </svg>`}};Ur.styles=[d`
5237
+ </svg>`}};Dr.styles=[d`
5197
5238
  :host {
5198
5239
  display: inline-block;
5199
5240
  width: 12px;
@@ -5212,13 +5253,13 @@
5212
5253
  :host([open]) svg {
5213
5254
  transform: rotate(0deg);
5214
5255
  }
5215
- `],El([a({type:Boolean,reflect:!0})],Ur.prototype,"open",2),Ur=El([p("uui-symbol-expand")],Ur);var J1=Object.defineProperty,ev=Object.getOwnPropertyDescriptor,Pl=(t,e,r,o)=>{for(var i=o>1?void 0:o?ev(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&J1(e,r,i),i};let Dr=class extends v{constructor(){super(...arguments),this.error=!1}render(){return l`<svg
5256
+ `],Bl([a({type:Boolean,reflect:!0})],Dr.prototype,"open",2),Dr=Bl([p("uui-symbol-expand")],Dr);var yv=Object.defineProperty,wv=Object.getOwnPropertyDescriptor,Rl=(t,e,r,o)=>{for(var i=o>1?void 0:o?wv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&yv(e,r,i),i};let Lr=class extends v{constructor(){super(...arguments),this.error=!1}render(){return l`<svg
5216
5257
  xmlns="http://www.w3.org/2000/svg"
5217
5258
  viewBox="0 0 512 512"
5218
5259
  id="upload-icon">
5219
5260
  <path
5220
5261
  d=${this.error?"M254.501 38.16c-120.308 0-217.838 97.53-217.838 217.838 0 120.31 97.53 217.838 217.838 217.838 120.31 0 217.838-97.528 217.838-217.838 0-120.308-97.528-217.838-217.838-217.838zm151.667 217.838c0 29.861-8.711 57.708-23.671 81.209L173.293 128.002c23.499-14.961 51.345-23.67 81.208-23.67 83.629.001 151.667 68.037 151.667 151.666zm-303.332 0c0-29.859 8.71-57.707 23.67-81.204l209.201 209.201c-23.498 14.96-51.346 23.671-81.206 23.671-83.632 0-151.665-68.04-151.665-151.668z":"M206.491 364.184h99.013V223.676h92.922L255.997 51.111 113.575 223.676h92.916zM85.043 398.311h341.912v62.578H85.043z"} />
5221
- </svg> `}};Dr.styles=[d`
5262
+ </svg> `}};Lr.styles=[d`
5222
5263
  :host {
5223
5264
  display: flex;
5224
5265
  flex-direction: column;
@@ -5237,9 +5278,9 @@
5237
5278
  :host([error]) #upload-icon {
5238
5279
  fill: var(--uui-color-danger,#d42054);
5239
5280
  }
5240
- `],Pl([a({type:Boolean,reflect:!0})],Dr.prototype,"error",2),Dr=Pl([p("uui-symbol-file-dropzone")],Dr);var tv=Object.defineProperty,rv=Object.getOwnPropertyDescriptor,Yo=(t,e,r,o)=>{for(var i=o>1?void 0:o?rv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&tv(e,r,i),i};let er=class extends v{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),_(this,"uui-icon")}render(){return this.src?l`<img src=${this.src} alt=${this.alt} />`:l`<uui-icon
5281
+ `],Rl([a({type:Boolean,reflect:!0})],Lr.prototype,"error",2),Lr=Rl([p("uui-symbol-file-dropzone")],Lr);var xv=Object.defineProperty,$v=Object.getOwnPropertyDescriptor,rs=(t,e,r,o)=>{for(var i=o>1?void 0:o?$v(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&xv(e,r,i),i};let er=class extends v{constructor(){super(...arguments),this.src="",this.alt=""}connectedCallback(){super.connectedCallback(),_(this,"uui-icon")}render(){return this.src?l`<img src=${this.src} alt=${this.alt} />`:l`<uui-icon
5241
5282
  name="picture"
5242
- .fallback=${oh.strings[0]}></uui-icon>`}};er.styles=[d`
5283
+ .fallback=${xh.strings[0]}></uui-icon>`}};er.styles=[d`
5243
5284
  :host {
5244
5285
  display: block;
5245
5286
  width: 100%;
@@ -5262,9 +5303,9 @@
5262
5303
  color: var(--uui-color-surface,#fff);
5263
5304
  background: var(--uui-color-surface-alt,#f3f3f5);
5264
5305
  }
5265
- `],Yo([a({type:String})],er.prototype,"src",2),Yo([a({type:String})],er.prototype,"alt",2),er=Yo([p("uui-symbol-file-thumbnail")],er);var iv=Object.defineProperty,ov=Object.getOwnPropertyDescriptor,Cl=(t,e,r,o)=>{for(var i=o>1?void 0:o?ov(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&iv(e,r,i),i};let Lr=class extends v{constructor(){super(...arguments),this.open=!1}render(){return g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
5306
+ `],rs([a({type:String})],er.prototype,"src",2),rs([a({type:String})],er.prototype,"alt",2),er=rs([p("uui-symbol-file-thumbnail")],er);var Ev=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,Fl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ev(e,r,i),i};let Nr=class extends v{constructor(){super(...arguments),this.open=!1}render(){return g`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
5266
5307
  ${this.open===!0?g`<path d="M457.915 242.222H269.053l-.004-78.416c0-33.277-12.63-63.824-33.538-86.175-20.82-22.357-50.579-36.756-83.391-36.731-32.814-.024-62.57 14.375-83.391 36.731-20.915 22.351-33.541 52.897-33.547 86.175v103.859H96.19v-13.476l-35.656-35.656H96.19v-54.728c0-17.765 6.717-33.406 17.084-44.502 10.463-11.09 23.927-17.37 38.845-17.394 14.916.024 28.375 6.304 38.837 17.394 10.375 11.096 17.092 26.738 17.087 44.502v78.416h-26.189c-9.159 0-16.582 7.426-16.582 16.585v194.53c0 9.158 7.423 16.583 16.582 16.583h276.06c9.164 0 16.587-7.425 16.587-16.583v-194.53c.001-9.159-7.422-16.584-16.586-16.584z"></path>`:g`<path d="M404.84 246.573h-22.084l-.002-73.603c0-36.675-13.921-70.311-36.917-94.892-22.91-24.584-55.547-40.367-91.539-40.336-36.003-.031-68.643 15.752-91.55 40.336-23.001 24.582-36.918 58.217-36.925 94.892v73.603h-22.082c-9.16 0-16.585 7.421-16.585 16.583v194.531c0 9.158 7.425 16.585 16.585 16.585H404.84c9.162 0 16.586-7.427 16.586-16.585V263.156c0-9.161-7.424-16.583-16.586-16.583zm-218.013-73.602c0-21.167 8.012-39.893 20.468-53.219 12.552-13.316 28.896-20.982 47.003-21.007 18.095.025 34.438 7.685 46.987 21.007 12.455 13.326 20.467 32.052 20.467 53.219v73.603H186.827v-73.603z"></path>`}
5267
- </svg>`}};Lr.styles=[d`
5308
+ </svg>`}};Nr.styles=[d`
5268
5309
  :host {
5269
5310
  display: inline-block;
5270
5311
  vertical-align: middle;
@@ -5274,7 +5315,7 @@
5274
5315
  svg {
5275
5316
  fill: currentColor;
5276
5317
  }
5277
- `],Cl([a({type:Boolean,reflect:!0})],Lr.prototype,"open",2),Lr=Cl([p("uui-symbol-lock")],Lr);var sv=Object.defineProperty,nv=Object.getOwnPropertyDescriptor,av=(t,e,r,o)=>{for(var i=o>1?void 0:o?nv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sv(e,r,i),i};let Hi=class extends v{render(){return l`•••`}};Hi.styles=[d`
5318
+ `],Fl([a({type:Boolean,reflect:!0})],Nr.prototype,"open",2),Nr=Fl([p("uui-symbol-lock")],Nr);var Cv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,kv=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ov(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cv(e,r,i),i};let Hi=class extends v{render(){return l`•••`}};Hi.styles=[d`
5278
5319
  :host {
5279
5320
  display: inline-block;
5280
5321
  font-size: 0.8em;
@@ -5283,7 +5324,7 @@
5283
5324
  line-height: 1em;
5284
5325
  user-select: none;
5285
5326
  }
5286
- `],Hi=av([p("uui-symbol-more")],Hi);var lv=Object.defineProperty,uv=Object.getOwnPropertyDescriptor,Ol=(t,e,r,o)=>{for(var i=o>1?void 0:o?uv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&lv(e,r,i),i};let Nr=class extends cr(v){constructor(){super(...arguments),this.descending=!1}render(){return l`<svg
5327
+ `],Hi=kv([p("uui-symbol-more")],Hi);var Sv=Object.defineProperty,Iv=Object.getOwnPropertyDescriptor,Gl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Iv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Sv(e,r,i),i};let Tr=class extends cr(v){constructor(){super(...arguments),this.descending=!1}render(){return l`<svg
5287
5328
  id="up"
5288
5329
  xmlns="http://www.w3.org/2000/svg"
5289
5330
  viewBox="0 0 512 512">
@@ -5291,7 +5332,7 @@
5291
5332
  </svg>
5292
5333
  <svg id="down" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
5293
5334
  <path d="M 255.125 400.35 L 88.193 188.765 H 422.055 Z"></path>
5294
- </svg>`}};Nr.styles=[d`
5335
+ </svg>`}};Tr.styles=[d`
5295
5336
  :host {
5296
5337
  position: relative;
5297
5338
  display: inline-block;
@@ -5348,7 +5389,7 @@
5348
5389
  :host([active][descending]) #down {
5349
5390
  opacity: calc(0.25 * var(--uui-symbol-sort-hover, 0));
5350
5391
  }
5351
- `],Ol([a({type:Boolean,reflect:!0})],Nr.prototype,"descending",2),Nr=Ol([p("uui-symbol-sort")],Nr);var cv=Object.defineProperty,hv=Object.getOwnPropertyDescriptor,dv=(t,e,r,o)=>{for(var i=o>1?void 0:o?hv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&cv(e,r,i),i};let Ti=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return l`<slot></slot>`}};Ti.styles=[d`
5392
+ `],Gl([a({type:Boolean,reflect:!0})],Tr.prototype,"descending",2),Tr=Gl([p("uui-symbol-sort")],Tr);var zv=Object.defineProperty,Av=Object.getOwnPropertyDescriptor,Uv=(t,e,r,o)=>{for(var i=o>1?void 0:o?Av(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&zv(e,r,i),i};let Mi=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","table")}render(){return l`<slot></slot>`}};Mi.styles=[d`
5352
5393
  :host {
5353
5394
  display: table;
5354
5395
  width: 100%;
@@ -5356,7 +5397,7 @@
5356
5397
  background-color: var(--uui-color-surface,#fff);
5357
5398
  cursor: default;
5358
5399
  }
5359
- `],Ti=dv([p("uui-table")],Ti);var pv=Object.defineProperty,vv=Object.getOwnPropertyDescriptor,Mi=(t,e,r,o)=>{for(var i=o>1?void 0:o?vv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pv(e,r,i),i};let $e=class extends v{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return l` <slot @slotchange=${this._detectOverflow}></slot>`}};$e.styles=[d`
5400
+ `],Mi=Uv([p("uui-table")],Mi);var Dv=Object.defineProperty,Lv=Object.getOwnPropertyDescriptor,ji=(t,e,r,o)=>{for(var i=o>1?void 0:o?Lv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Dv(e,r,i),i};let $e=class extends v{constructor(){super(...arguments),this.disableChildInteraction=!1,this.noPadding=!1,this.clipText=!1,this._observer=new ResizeObserver(()=>{this._detectOverflow()})}_detectOverflow(){this.scrollWidth>this.clientWidth?this.setAttribute("title",this.innerText):this.removeAttribute("title")}connectedCallback(){super.connectedCallback(),this.setAttribute("role","cell")}disconnectedCallback(){super.disconnectedCallback(),this._observer.disconnect()}updated(t){super.updated(t),t.has("clipText")&&(this.clipText?(this._detectOverflow(),this._observer.observe(this)):this._observer.disconnect())}render(){return l` <slot @slotchange=${this._detectOverflow}></slot>`}};$e.styles=[d`
5360
5401
  :host {
5361
5402
  position: relative;
5362
5403
  display: table-cell;
@@ -5390,20 +5431,20 @@
5390
5431
  :host([no-padding]) {
5391
5432
  padding: 0;
5392
5433
  }
5393
- `],Mi([a({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],$e.prototype,"disableChildInteraction",2),Mi([a({type:Boolean,reflect:!0,attribute:"no-padding"})],$e.prototype,"noPadding",2),Mi([a({type:Boolean,reflect:!0,attribute:"clip-text"})],$e.prototype,"clipText",2),$e=Mi([p("uui-table-cell")],$e);var fv=Object.defineProperty,bv=Object.getOwnPropertyDescriptor,gv=(t,e,r,o)=>{for(var i=o>1?void 0:o?bv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&fv(e,r,i),i};let ji=class extends v{};ji.styles=[d`
5434
+ `],ji([a({type:Boolean,reflect:!0,attribute:"disable-child-interaction"})],$e.prototype,"disableChildInteraction",2),ji([a({type:Boolean,reflect:!0,attribute:"no-padding"})],$e.prototype,"noPadding",2),ji([a({type:Boolean,reflect:!0,attribute:"clip-text"})],$e.prototype,"clipText",2),$e=ji([p("uui-table-cell")],$e);var Nv=Object.defineProperty,Tv=Object.getOwnPropertyDescriptor,Hv=(t,e,r,o)=>{for(var i=o>1?void 0:o?Tv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Nv(e,r,i),i};let Vi=class extends v{};Vi.styles=[d`
5394
5435
  :host {
5395
5436
  display: table-column;
5396
5437
  }
5397
- `],ji=gv([p("uui-table-column")],ji);var mv=Object.defineProperty,_v=Object.getOwnPropertyDescriptor,yv=(t,e,r,o)=>{for(var i=o>1?void 0:o?_v(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&mv(e,r,i),i};let Vi=class extends $e{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}};Vi.styles=[...$e.styles,d`
5438
+ `],Vi=Hv([p("uui-table-column")],Vi);var Mv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,Vv=(t,e,r,o)=>{for(var i=o>1?void 0:o?jv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Mv(e,r,i),i};let Bi=class extends $e{connectedCallback(){super.connectedCallback(),this.setAttribute("role","columnheader")}};Bi.styles=[...$e.styles,d`
5398
5439
  :host {
5399
5440
  border-top: none;
5400
5441
  }
5401
- `],Vi=yv([p("uui-table-head-cell")],Vi);var wv=Object.defineProperty,xv=Object.getOwnPropertyDescriptor,$v=(t,e,r,o)=>{for(var i=o>1?void 0:o?xv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&wv(e,r,i),i};let Bi=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return l`<slot></slot>`}};Bi.styles=[d`
5442
+ `],Bi=Vv([p("uui-table-head-cell")],Bi);var Bv=Object.defineProperty,Rv=Object.getOwnPropertyDescriptor,Fv=(t,e,r,o)=>{for(var i=o>1?void 0:o?Rv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Bv(e,r,i),i};let Ri=class extends v{connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}render(){return l`<slot></slot>`}};Ri.styles=[d`
5402
5443
  :host {
5403
5444
  display: table-header-group;
5404
5445
  font-weight: bold;
5405
5446
  }
5406
- `],Bi=$v([p("uui-table-head")],Bi);var Ev=Object.defineProperty,Pv=Object.getOwnPropertyDescriptor,Sl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Pv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Ev(e,r,i),i};let Hr=class extends Jr(St(v)){constructor(){super();let t=!1;this.addEventListener("blur",()=>{t===!1&&this.style.setProperty("--uui-show-focus-outline","1"),t=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),t=!0}),this.addEventListener("mouseup",()=>{t=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof $e}render(){return l` <slot @slotchanged=${this.updateChildSelectOnly}></slot> `}};Hr.styles=[d`
5447
+ `],Ri=Fv([p("uui-table-head")],Ri);var Gv=Object.defineProperty,qv=Object.getOwnPropertyDescriptor,ql=(t,e,r,o)=>{for(var i=o>1?void 0:o?qv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Gv(e,r,i),i};let Hr=class extends ei(kt(v)){constructor(){super();let t=!1;this.addEventListener("blur",()=>{t===!1&&this.style.setProperty("--uui-show-focus-outline","1"),t=!1}),this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0"),t=!0}),this.addEventListener("mouseup",()=>{t=!1})}connectedCallback(){super.connectedCallback(),this.setAttribute("role","row")}updated(t){t.has("selectOnly")&&this.updateChildSelectOnly()}updateChildSelectOnly(){this.slotCellNodes&&this.slotCellNodes.forEach(t=>{this.elementIsTableCell(t)&&(t.disableChildInteraction=this.selectOnly)})}elementIsTableCell(t){return t instanceof $e}render(){return l` <slot @slotchanged=${this.updateChildSelectOnly}></slot> `}};Hr.styles=[d`
5407
5448
  :host {
5408
5449
  display: table-row;
5409
5450
  position: relative;
@@ -5425,12 +5466,12 @@
5425
5466
  :host([selected]:focus) {
5426
5467
  outline-color: var(--uui-color-focus,#3879ff);
5427
5468
  }
5428
- `],Sl([Be({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],Hr.prototype,"slotCellNodes",2),Hr=Sl([p("uui-table-row")],Hr);var Cv=Object.defineProperty,Ov=Object.getOwnPropertyDescriptor,Ri=(t,e,r,o)=>{for(var i=o>1?void 0:o?Ov(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Cv(e,r,i),i};let Ke=class extends cr(ve("",v)){constructor(){super(),this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return this.href?l`
5469
+ `],ql([Be({flatten:!0,selector:"uui-table-cell, [uui-table-cell], [role=cell]"})],Hr.prototype,"slotCellNodes",2),Hr=ql([p("uui-table-row")],Hr);var Wv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,Fi=(t,e,r,o)=>{for(var i=o>1?void 0:o?Kv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Wv(e,r,i),i};let Ke=class extends cr(ve("",v)){constructor(){super(),this.disabled=!1,this.addEventListener("click",this.onHostClick)}onHostClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}render(){return this.href?l`
5429
5470
  <a
5430
5471
  id="button"
5431
- href=${I(this.disabled?void 0:this.href)}
5432
- target=${I(this.target||void 0)}
5433
- rel=${I(this.target==="_blank"?"noopener noreferrer":void 0)}
5472
+ href=${O(this.disabled?void 0:this.href)}
5473
+ target=${O(this.target||void 0)}
5474
+ rel=${O(this.target==="_blank"?"noopener noreferrer":void 0)}
5434
5475
  role="tab">
5435
5476
  <slot name="icon"></slot>
5436
5477
  ${this.renderLabel()}
@@ -5524,7 +5565,7 @@
5524
5565
  font-size: 20px;
5525
5566
  margin-bottom: var(--uui-size-2,6px);
5526
5567
  }
5527
- `],Ri([a({type:Boolean,reflect:!0})],Ke.prototype,"disabled",2),Ri([a({type:String})],Ke.prototype,"href",2),Ri([a({type:String})],Ke.prototype,"target",2),Ke=Ri([p("uui-tab")],Ke);var Sv=Object.defineProperty,kv=Object.getOwnPropertyDescriptor,kl=(t,e,r,o)=>{for(var i=o>1?void 0:o?kv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Sv(e,r,i),i};let Tr=class extends v{constructor(){super(...arguments),this._tabElements=[],this._onTabClicked=t=>{const e=t.currentTarget;this._elementIsTabLike(e)&&(e.active=!0,this._tabElements.filter(o=>o!==e).forEach(o=>{this._elementIsTabLike(o)&&(o.active=!1)}))}}_setTabArray(){this._tabElements=this._slottedNodes?this._slottedNodes:[]}_onSlotChange(){this._tabElements.forEach(t=>{t.removeEventListener("click",this._onTabClicked)}),this._setTabArray(),this._tabElements.forEach(t=>{t.addEventListener("click",this._onTabClicked)})}_elementIsTabLike(t){return t instanceof Ke||"active"in t}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return l` <slot @slotchange=${this._onSlotChange}></slot> `}};Tr.styles=[d`
5568
+ `],Fi([a({type:Boolean,reflect:!0})],Ke.prototype,"disabled",2),Fi([a({type:String})],Ke.prototype,"href",2),Fi([a({type:String})],Ke.prototype,"target",2),Ke=Fi([p("uui-tab")],Ke);var Xv=Object.defineProperty,Yv=Object.getOwnPropertyDescriptor,Wl=(t,e,r,o)=>{for(var i=o>1?void 0:o?Yv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Xv(e,r,i),i};let Mr=class extends v{constructor(){super(...arguments),this._tabElements=[],this._onTabClicked=t=>{const e=t.currentTarget;this._elementIsTabLike(e)&&(e.active=!0,this._tabElements.filter(o=>o!==e).forEach(o=>{this._elementIsTabLike(o)&&(o.active=!1)}))}}_setTabArray(){this._tabElements=this._slottedNodes?this._slottedNodes:[]}_onSlotChange(){this._tabElements.forEach(t=>{t.removeEventListener("click",this._onTabClicked)}),this._setTabArray(),this._tabElements.forEach(t=>{t.addEventListener("click",this._onTabClicked)})}_elementIsTabLike(t){return t instanceof Ke||"active"in t}connectedCallback(){super.connectedCallback(),this.hasAttribute("role")||this.setAttribute("role","tablist")}render(){return l` <slot @slotchange=${this._onSlotChange}></slot> `}};Mr.styles=[d`
5528
5569
  :host {
5529
5570
  display: flex;
5530
5571
  flex-wrap: wrap;
@@ -5537,7 +5578,7 @@
5537
5578
  ::slotted(*:not(:last-of-type)) {
5538
5579
  border-right: 1px solid var(--uui-tab-divider, none);
5539
5580
  }
5540
- `],kl([Be({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],Tr.prototype,"_slottedNodes",2),Tr=kl([p("uui-tab-group")],Tr);class zv extends O{}class Iv extends O{}var Av=Object.defineProperty,Uv=Object.getOwnPropertyDescriptor,Zo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Uv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Av(e,r,i),i};let tr=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return l`<slot></slot>`}};tr.styles=[d`
5581
+ `],Wl([Be({flatten:!0,selector:"uui-tab, [uui-tab], [role=tab]"})],Mr.prototype,"_slottedNodes",2),Mr=Wl([p("uui-tab-group")],Mr);class Zv extends k{}class Qv extends k{}var Jv=Object.defineProperty,ef=Object.getOwnPropertyDescriptor,is=(t,e,r,o)=>{for(var i=o>1?void 0:o?ef(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Jv(e,r,i),i};let tr=class extends v{constructor(){super(...arguments),this.color="default",this.look="primary"}render(){return l`<slot></slot>`}};tr.styles=[d`
5541
5582
  :host {
5542
5583
  display: inline-block;
5543
5584
  font-size: var(--uui-tag-font-size, var(--uui-type-small-size,12px));
@@ -5604,14 +5645,14 @@
5604
5645
  color: var(--color-standalone);
5605
5646
  border-color: var(--uui-color-border-standalone,#c2c2c2);
5606
5647
  }
5607
- `],Zo([a({reflect:!0})],tr.prototype,"color",2),Zo([a({reflect:!0})],tr.prototype,"look",2),tr=Zo([p("uui-tag")],tr);var Dv=Object.defineProperty,zl=Object.getOwnPropertySymbols,Lv=Object.prototype.hasOwnProperty,Nv=Object.prototype.propertyIsEnumerable,Il=(t,e,r)=>e in t?Dv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Al=(t,e)=>{for(var r in e||(e={}))Lv.call(e,r)&&Il(t,r,e[r]);if(zl)for(var r of zl(e))Nv.call(e,r)&&Il(t,r,e[r]);return t};class Mr extends O{constructor(e,r={}){super(e,Al(Al({},{bubbles:!0}),r))}}Mr.CHANGE="change",Mr.INPUT="input";var Hv=Object.defineProperty,Tv=Object.getOwnPropertyDescriptor,B=(t,e,r,o)=>{for(var i=o>1?void 0:o?Tv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Hv(e,r,i),i};let U=class extends fe(v){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this._value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this._value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new Mr(Mr.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,r=t.scrollTop,o=getComputedStyle(t).height;t.style.display="block",t.style.height=o,e.style.height="auto",e.scrollHeight>e.clientHeight&&(e.style.height=e.scrollHeight+"px"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=r}render(){return l`
5648
+ `],is([a({reflect:!0})],tr.prototype,"color",2),is([a({reflect:!0})],tr.prototype,"look",2),tr=is([p("uui-tag")],tr);var tf=Object.defineProperty,Kl=Object.getOwnPropertySymbols,rf=Object.prototype.hasOwnProperty,of=Object.prototype.propertyIsEnumerable,Xl=(t,e,r)=>e in t?tf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Yl=(t,e)=>{for(var r in e||(e={}))rf.call(e,r)&&Xl(t,r,e[r]);if(Kl)for(var r of Kl(e))of.call(e,r)&&Xl(t,r,e[r]);return t};class jr extends k{constructor(e,r={}){super(e,Yl(Yl({},{bubbles:!0}),r))}}jr.CHANGE="change",jr.INPUT="input";var sf=Object.defineProperty,nf=Object.getOwnPropertyDescriptor,B=(t,e,r,o)=>{for(var i=o>1?void 0:o?nf(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sf(e,r,i),i};let U=class extends fe(v){constructor(){super(),this.placeholder="",this.disabled=!1,this.readonly=!1,this.name="",this.error=!1,this.minlengthMessage="This field need more characters",this.maxlengthMessage="This field exceeds the allowed amount of characters",this.autoHeight=!1,this.addEventListener("mousedown",()=>{this.style.setProperty("--uui-show-focus-outline","0")}),this.addEventListener("blur",()=>{this.style.setProperty("--uui-show-focus-outline","")}),this.addValidator("tooShort",()=>this.minlengthMessage,()=>!!this.minlength&&this._value.length<this.minlength),this.addValidator("tooLong",()=>this.maxlengthMessage,()=>!!this.maxlength&&this._value.length>this.maxlength)}connectedCallback(){super.connectedCallback(),this.label||console.warn(this.tagName+" needs a `label`",this)}focus(){var t;(t=this._textarea)==null||t.focus()}getFormElement(){return this._textarea}onInput(t){this.value=t.target.value,this.autoHeight&&this.autoUpdateHeight()}onChange(t){t.stopPropagation(),this.pristine=!1,this.dispatchEvent(new jr(jr.CHANGE))}autoUpdateHeight(){const t=this.shadowRoot.host,e=this._textarea,r=t.scrollTop,o=getComputedStyle(t).height;t.style.display="block",t.style.height=o,e.style.height="auto",e.scrollHeight>e.clientHeight&&(e.style.height=e.scrollHeight+"px"),t.style.removeProperty("display"),t.style.removeProperty("height"),t.scrollTop=r}render(){return l`
5608
5649
  <textarea
5609
5650
  id="textarea"
5610
5651
  .rows=${this.rows}
5611
5652
  .cols=${this.cols}
5612
5653
  .value=${this.value}
5613
5654
  .name=${this.name}
5614
- wrap=${I(this.wrap)}
5655
+ wrap=${O(this.wrap)}
5615
5656
  placeholder=${this.placeholder}
5616
5657
  aria-label=${this.label}
5617
5658
  .disabled=${this.disabled}
@@ -5702,7 +5743,7 @@
5702
5743
  outline: calc(2px * var(--uui-show-focus-outline, 1)) solid
5703
5744
  var(--uui-color-focus,#3879ff);
5704
5745
  }
5705
- `],B([a()],U.prototype,"placeholder",2),B([a({type:Boolean,reflect:!0})],U.prototype,"disabled",2),B([a({type:Boolean,reflect:!0})],U.prototype,"readonly",2),B([a({type:String})],U.prototype,"name",2),B([a({type:Boolean,reflect:!0})],U.prototype,"error",2),B([a({type:Number})],U.prototype,"minlength",2),B([a({type:String,attribute:"minlength-message"})],U.prototype,"minlengthMessage",2),B([a({type:Number})],U.prototype,"maxlength",2),B([a({type:String,attribute:"maxlength-message"})],U.prototype,"maxlengthMessage",2),B([C("#textarea")],U.prototype,"_textarea",2),B([a({type:Boolean,attribute:"auto-height",reflect:!0})],U.prototype,"autoHeight",2),B([a({type:String})],U.prototype,"label",2),B([a({type:Number})],U.prototype,"rows",2),B([a({type:Number})],U.prototype,"cols",2),B([a({type:String})],U.prototype,"wrap",2),U=B([p("uui-textarea")],U);class R extends O{}R.OPENING="opening",R.OPENED="opened",R.CLOSING="closing",R.CLOSED="closed";var Mv=Object.defineProperty,jv=Object.getOwnPropertyDescriptor,rr=(t,e,r,o)=>{for(var i=o>1?void 0:o?jv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Mv(e,r,i),i};let je=class extends v{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new th(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),_(this,"uui-button"),_(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new R(R.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new R(R.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new R(R.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new R(R.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return l`
5746
+ `],B([a()],U.prototype,"placeholder",2),B([a({type:Boolean,reflect:!0})],U.prototype,"disabled",2),B([a({type:Boolean,reflect:!0})],U.prototype,"readonly",2),B([a({type:String})],U.prototype,"name",2),B([a({type:Boolean,reflect:!0})],U.prototype,"error",2),B([a({type:Number})],U.prototype,"minlength",2),B([a({type:String,attribute:"minlength-message"})],U.prototype,"minlengthMessage",2),B([a({type:Number})],U.prototype,"maxlength",2),B([a({type:String,attribute:"maxlength-message"})],U.prototype,"maxlengthMessage",2),B([C("#textarea")],U.prototype,"_textarea",2),B([a({type:Boolean,attribute:"auto-height",reflect:!0})],U.prototype,"autoHeight",2),B([a({type:String})],U.prototype,"label",2),B([a({type:Number})],U.prototype,"rows",2),B([a({type:Number})],U.prototype,"cols",2),B([a({type:String})],U.prototype,"wrap",2),U=B([p("uui-textarea")],U);class R extends k{}R.OPENING="opening",R.OPENED="opened",R.CLOSING="closing",R.CLOSED="closed";var af=Object.defineProperty,lf=Object.getOwnPropertyDescriptor,rr=(t,e,r,o)=>{for(var i=o>1?void 0:o?lf(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&af(e,r,i),i};let je=class extends v{constructor(){super(),this.color="",this._autoClose=null,this._onOpenTimerComplete=()=>{this._open&&(this.open=!1)},this._timer=null,this._pauseTimer=!1,this.isOpen=!1,this._open=!1,this._animate=!1,this._requestAnimationUpdate=0,this.addEventListener("keyup",t=>{t.key==="Escape"&&(this.open=!1)})}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,t!==null?(this._timer===null?this._timer=new _h(this._onOpenTimerComplete,t):this._timer.setDuration(t),this._pauseTimer===!1&&this.isOpen===!0&&this._animate===!1&&this._timer.start()):((e=this._timer)==null||e.destroy(),this._timer=null)}pauseAutoClose(){this._pauseTimer=!0,this._timer!==null&&this._timer.pause()}resumeAutoClose(){this._pauseTimer=!1,this._timer!==null&&this.isOpen===!0&&this._animate===!1&&this._timer.restart()}get open(){return this._open}set open(t){t===!0?this._makeOpen():this._makeClose()}connectedCallback(){super.connectedCallback(),_(this,"uui-button"),_(this,"uui-icon")}_getAnimationDuration(){return parseInt(getComputedStyle(this).getPropertyValue("--uui-toast-notification-animation-duration"),10)||480}_makeOpen(){this._open!==!0&&(this._open=!0,this.updateComplete.then(()=>{this._open===!0&&(cancelAnimationFrame(this._requestAnimationUpdate),this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!0,this.setAttribute("is-open",""),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,this.dispatchEvent(new R(R.OPENING)),this._animationTimeout=window.setTimeout(()=>{var t;this.isOpen===!0&&(this.style.height="auto",this._animate=!1,this._pauseTimer===!1&&((t=this._timer)==null||t.start()),this.dispatchEvent(new R(R.OPENED)))},this._getAnimationDuration())}))}))}_makeClose(){var t;if(this._open===!1)return;const e=new R(R.CLOSING,{cancelable:!0});this.dispatchEvent(e),e.defaultPrevented!==!0&&(this._open=!1,(t=this._timer)==null||t.pause(),cancelAnimationFrame(this._requestAnimationUpdate),this.isOpen===!0&&(this._requestAnimationUpdate=requestAnimationFrame(()=>{clearTimeout(this._animationTimeout),this.isOpen=!1,this.removeAttribute("is-open"),this.style.height=this._toastEl.getBoundingClientRect().height+"px",this._animate=!0,requestAnimationFrame(()=>{this.style.height="0"}),this._animationTimeout=window.setTimeout(()=>{this.isOpen===!1&&(this._animate=!1,this.dispatchEvent(new R(R.CLOSED)),this.parentNode&&this.parentNode.removeChild(this))},this._getAnimationDuration())})))}render(){return l`
5706
5747
  <div id="toast" class=${this._animate?"animate":""}>
5707
5748
  <div>
5708
5749
  <div id="close">
@@ -5713,13 +5754,13 @@
5713
5754
  @click=${()=>this.open=!1}>
5714
5755
  <uui-icon
5715
5756
  name="remove"
5716
- .fallback=${wn.strings[0]}></uui-icon>
5757
+ .fallback=${On.strings[0]}></uui-icon>
5717
5758
  </uui-button>
5718
5759
  </div>
5719
5760
  <slot></slot>
5720
5761
  </div>
5721
5762
  </div>
5722
- `}};je.styles=[Xr,d`
5763
+ `}};je.styles=[Yr,d`
5723
5764
  :host {
5724
5765
  --uui-toast-notification-margin: var(--uui-size-space-2,6px);
5725
5766
 
@@ -5815,7 +5856,7 @@
5815
5856
  color: var(--uui-color-danger-contrast,white);
5816
5857
  border-color: var(--uui-color-danger-standalone,rgb(191, 33, 78));
5817
5858
  }
5818
- `],rr([a({reflect:!0})],je.prototype,"color",2),rr([a({type:Number})],je.prototype,"autoClose",1),rr([C("#toast")],je.prototype,"_toastEl",2),rr([f()],je.prototype,"_animate",2),rr([a({type:Boolean,reflect:!0})],je.prototype,"open",1),je=rr([p("uui-toast-notification")],je);var Vv=Object.defineProperty,Bv=Object.getOwnPropertyDescriptor,Ul=(t,e,r,o)=>{for(var i=o>1?void 0:o?Bv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vv(e,r,i),i};let jr=class extends v{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(i=>i.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(i=>this._toasts.indexOf(i)===-1).forEach(i=>{i.removeEventListener(R.CLOSED,this.onToastClosed),i.removeEventListener("mouseenter",this.pauseAutoClose),i.removeEventListener("mouseleave",this.resumeAutoClose),i.removeEventListener("focus",this.pauseAutoClose),i.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(i=>e.indexOf(i)===-1).forEach(i=>{i.addEventListener(R.CLOSED,this.onToastClosed),i.addEventListener("mouseenter",this.pauseAutoClose),i.addEventListener("mouseleave",this.resumeAutoClose),i.addEventListener("focus",this.pauseAutoClose),i.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(i.autoClose=this._autoClose),this._autoClosePause===!0&&i.pauseAutoClose(),i.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(r=>r.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return l` <slot @slotchange=${this.onSlotChanged}></slot> `}};jr.styles=[d`
5859
+ `],rr([a({reflect:!0})],je.prototype,"color",2),rr([a({type:Number})],je.prototype,"autoClose",1),rr([C("#toast")],je.prototype,"_toastEl",2),rr([f()],je.prototype,"_animate",2),rr([a({type:Boolean,reflect:!0})],je.prototype,"open",1),je=rr([p("uui-toast-notification")],je);var uf=Object.defineProperty,cf=Object.getOwnPropertyDescriptor,Zl=(t,e,r,o)=>{for(var i=o>1?void 0:o?cf(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&uf(e,r,i),i};let Vr=class extends v{constructor(){super(...arguments),this._autoClose=null,this._autoClosePause=!1,this.pauseAutoClose=()=>{var t;this._autoClosePause=!0,(t=this._toasts)==null||t.forEach(e=>e.pauseAutoClose())},this.resumeAutoClose=()=>{var t;this.matches(":focus-within:not(:focus)")===!1&&(this._autoClosePause=!1,(t=this._toasts)==null||t.forEach(e=>e.resumeAutoClose()))},this.onToastClosed=t=>{this.removeToast(t.target)},this._toasts=[],this.onSlotChanged=t=>{const e=[...this._toasts];this._toasts=t.target.assignedElements({flatten:!0}).filter(i=>i.nodeName==="UUI-TOAST-NOTIFICATION"),e.filter(i=>this._toasts.indexOf(i)===-1).forEach(i=>{i.removeEventListener(R.CLOSED,this.onToastClosed),i.removeEventListener("mouseenter",this.pauseAutoClose),i.removeEventListener("mouseleave",this.resumeAutoClose),i.removeEventListener("focus",this.pauseAutoClose),i.removeEventListener("blur",this.resumeAutoClose)}),this._toasts.filter(i=>e.indexOf(i)===-1).forEach(i=>{i.addEventListener(R.CLOSED,this.onToastClosed),i.addEventListener("mouseenter",this.pauseAutoClose),i.addEventListener("mouseleave",this.resumeAutoClose),i.addEventListener("focus",this.pauseAutoClose),i.addEventListener("blur",this.resumeAutoClose),this._autoClose&&(i.autoClose=this._autoClose),this._autoClosePause===!0&&i.pauseAutoClose(),i.open=!0})}}get autoClose(){return this._autoClose}set autoClose(t){var e;this._autoClose=t,(e=this._toasts)==null||e.forEach(r=>r.autoClose=t)}removeToast(t){if(!t)t=this._toasts[this._toasts.length-1];else if(this._toasts.indexOf(t)===-1){console.warn("Toast-notification",t,"could not be removed as it is not a child of this toast-notification-container",this);return}this.removeChild(t)}closeToast(t){let e=t;e||(e=this._toasts[this._toasts.length-1]),e.open=!1}render(){return l` <slot @slotchange=${this.onSlotChanged}></slot> `}};Vr.styles=[d`
5819
5860
  :host {
5820
5861
  position: absolute;
5821
5862
  overflow: hidden;
@@ -5843,7 +5884,7 @@
5843
5884
  :host([left-align]) slot {
5844
5885
  align-items: start;
5845
5886
  }
5846
- `],Ul([a({type:Number,reflect:!0,attribute:"auto-close"})],jr.prototype,"_autoClose",2),jr=Ul([p("uui-toast-notification-container")],jr);var Rv=Object.defineProperty,Fv=Object.getOwnPropertyDescriptor,Qo=(t,e,r,o)=>{for(var i=o>1?void 0:o?Fv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rv(e,r,i),i};let ir=class extends v{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}render(){return l`
5887
+ `],Zl([a({type:Number,reflect:!0,attribute:"auto-close"})],Vr.prototype,"_autoClose",2),Vr=Zl([p("uui-toast-notification-container")],Vr);var hf=Object.defineProperty,df=Object.getOwnPropertyDescriptor,os=(t,e,r,o)=>{for(var i=o>1?void 0:o?df(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&hf(e,r,i),i};let ir=class extends v{constructor(){super(...arguments),this.headline="",this._headlineSlotHasContent=!1,this._headlineSlotChanged=t=>{this._headlineSlotHasContent=t.target.assignedNodes({flatten:!0}).length>0}}render(){return l`
5847
5888
  <div id="message" class="uui-text">
5848
5889
  <h5
5849
5890
  style=${this._headlineSlotHasContent||this.headline&&this.headline!==""?"":"display: none"}>
@@ -5853,7 +5894,7 @@
5853
5894
  <slot></slot>
5854
5895
  <slot id="actions" name="actions"></slot>
5855
5896
  </div>
5856
- `}};ir.styles=[Xr,d`
5897
+ `}};ir.styles=[Yr,d`
5857
5898
  #message {
5858
5899
  margin-bottom: calc(var(--uui-size-space-1,3px) * -1);
5859
5900
  }
@@ -5874,12 +5915,12 @@
5874
5915
  margin-top: var(--uui-size-space-4,12px);
5875
5916
  margin-bottom: calc(var(--uui-size-space-2,6px) * -1);
5876
5917
  }
5877
- `],Qo([a({type:String})],ir.prototype,"headline",2),Qo([f()],ir.prototype,"_headlineSlotHasContent",2),ir=Qo([p("uui-toast-notification-layout")],ir);var Gv=Object.defineProperty,qv=Object.getOwnPropertyDescriptor,Wv=(t,e,r,o)=>{for(var i=o>1?void 0:o?qv(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Gv(e,r,i),i};let Vr=class extends be{constructor(){super("switch")}renderCheckbox(){return l`
5918
+ `],os([a({type:String})],ir.prototype,"headline",2),os([f()],ir.prototype,"_headlineSlotHasContent",2),ir=os([p("uui-toast-notification-layout")],ir);var pf=Object.defineProperty,vf=Object.getOwnPropertyDescriptor,ff=(t,e,r,o)=>{for(var i=o>1?void 0:o?vf(e,r):e,s=t.length-1,n;s>=0;s--)(n=t[s])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pf(e,r,i),i};let Br=class extends be{constructor(){super("switch")}renderCheckbox(){return l`
5878
5919
  <div id="slider">
5879
- <div id="icon-check">${ni}</div>
5880
- <div id="icon-wrong">${xn}</div>
5920
+ <div id="icon-check">${ai}</div>
5921
+ <div id="icon-wrong">${kn}</div>
5881
5922
  </div>
5882
- `}};Vr.formAssociated=!0,Vr.styles=[...be.styles,ri,d`
5923
+ `}};Br.formAssociated=!0,Br.styles=[...be.styles,ii,d`
5883
5924
  :host {
5884
5925
  --uui-toggle-size: 18px;
5885
5926
  --uui-toggle-switch-width: calc(2 * var(--uui-toggle-size));
@@ -5999,7 +6040,7 @@
5999
6040
  fill: var(--uui-color-disabled-contrast,#c4c4c4);
6000
6041
  }
6001
6042
  :host([disabled]) label:active #slider {
6002
- animation: ${ii};
6043
+ animation: ${oi};
6003
6044
  }
6004
6045
  :host([disabled]) input:checked #slider #icon-check {
6005
6046
  fill: var(--uui-color-disabled-contrast,#c4c4c4);
@@ -6012,4 +6053,4 @@
6012
6053
  :host(:not([pristine])[internals-invalid]) label:hover #slider {
6013
6054
  border: 1px solid var(--uui-color-danger-standalone,rgb(191, 33, 78));
6014
6055
  }
6015
- `],Vr=Wv([p("uui-toggle")],Vr);export{hu as ActiveMixin,Eu as FormControlMixin,Ou as InterfaceColorValues,Su as InterfaceHeadingValues,Cu as InterfaceLookValues,vu as LabelMixin,wu as SelectOnlyMixin,gu as SelectableMixin,ku as Timer,Yr as UUIActionBarElement,Pe as UUIAvatarElement,nt as UUIAvatarGroupElement,at as UUIBadgeElement,Wl as UUIBlinkAnimationValue,ql as UUIBlinkKeyframes,be as UUIBooleanInputElement,ei as UUIBooleanInputEvent,Ce as UUIBoxElement,ut as UUIBreadcrumbItemElement,hr as UUIBreadcrumbsElement,W as UUIButtonElement,Pt as UUIButtonGroupElement,ct as UUIButtonInlineCreateElement,oi as UUIButtonInlineCreateEvent,Lt as UUICardContentNodeElement,J as UUICardElement,Dt as UUICardEvent,ht as UUICardMediaElement,pr as UUICardUserElement,vr as UUICaretElement,fr as UUICheckboxElement,re as UUIColorAreaElement,hi as UUIColorAreaEvent,vi as UUIColorPickerChangeEvent,z as UUIColorPickerElement,oe as UUIColorSliderElement,fi as UUIColorSliderEvent,pt as UUIColorSwatchElement,Ht as UUIColorSwatchesElement,Nt as UUIColorSwatchesEvent,G as UUIComboboxElement,K as UUIComboboxEvent,ye as UUIComboboxListElement,ue as UUIComboboxListEvent,Ue as UUIComboboxListOptionElement,mi as UUIDialogElement,Mt as UUIDialogLayoutElement,no as UUIEvent,Fe as UUIFileDropzoneElement,jt as UUIFileDropzoneEvent,X as UUIFilePreviewElement,it as UUIFormControlEvent,Co as UUIFormElement,ft as UUIFormLayoutItemElement,wr as UUIFormValidationMessageElement,Xl as UUIHorizontalPulseAnimationValue,Kl as UUIHorizontalPulseKeyframes,Zl as UUIHorizontalShakeAnimationValue,Yl as UUIHorizontalShakeKeyframes,De as UUIIconElement,ko as UUIIconHost,zo as UUIIconRegistry,xr as UUIIconRegistryElement,La as UUIIconRegistryEssential,Io as UUIIconRegistryEssentialElement,Vt as UUIIconRequestEvent,k as UUIInputElement,bt as UUIInputEvent,Le as UUIInputFileElement,$r as UUIInputLockElement,Ft as UUIInputPasswordElement,wi as UUIKeyElement,yi as UUIKeyboardShortcutElement,gt as UUILabelElement,Gt as UUILoaderBarElement,qt as UUILoaderCircleElement,$i as UUILoaderElement,ne as UUIMenuItemElement,Ne as UUIMenuItemEvent,Te as UUIModalContainerElement,zi as UUIModalDialogElement,Y as UUIModalElement,Kt as UUIModalSidebarElement,ae as UUIPaginationElement,Ge as UUIPaginationEvent,qe as UUIPopoverElement,Cr as UUIProgressBarElement,he as UUIRadioElement,Yt as UUIRadioEvent,Zt as UUIRadioGroupElement,Ai as UUIRadioGroupEvent,P as UUIRangeSliderElement,We as UUIRefElement,Qt as UUIRefEvent,Ui as UUIRefListElement,Or as UUIRefNodeDataTypeElement,Sr as UUIRefNodeDocumentTypeElement,D as UUIRefNodeElement,Li as UUIRefNodeFormElement,kr as UUIRefNodeMemberElement,Jt as UUIRefNodePackageElement,zr as UUIRefNodeUserElement,Ir as UUIScrollContainerElement,Z as UUISelectElement,Ni as UUISelectEvent,ot as UUISelectableEvent,j as UUISliderElement,_t as UUISliderEvent,Ur as UUISymbolExpandElement,Dr as UUISymbolFileDropzoneElement,dr as UUISymbolFileElement,er as UUISymbolFileThumbnailElement,ai as UUISymbolFolderElement,Lr as UUISymbolLockElement,Hi as UUISymbolMoreElement,Nr as UUISymbolSortElement,Ke as UUITabElement,zv as UUITabEvent,Tr as UUITabGroupElement,Iv as UUITabGroupEvent,$e as UUITableCellElement,ji as UUITableColumnElement,Ti as UUITableElement,Vi as UUITableHeadCellElement,Bi as UUITableHeadElement,Hr as UUITableRowElement,tr as UUITagElement,Xr as UUITextStyles,U as UUITextareaElement,Mr as UUITextareaEvent,jr as UUIToastNotificationContainerElement,je as UUIToastNotificationElement,R as UUIToastNotificationEvent,ir as UUIToastNotificationLayoutElement,Vr as UUIToggleElement,Au as clamp,Pu as defineElement,zu as demandCustomElement,Iu as drag,Uu as reverseNumberInRange,Du as toHex};
6056
+ `],Br=ff([p("uui-toggle")],Br);export{Su as ActiveMixin,Bu as FormControlMixin,Gu as InterfaceColorValues,qu as InterfaceHeadingValues,Fu as InterfaceLookValues,Au as LabelMixin,Mu as SelectOnlyMixin,Lu as SelectableMixin,Wu as Timer,Zr as UUIActionBarElement,Pe as UUIAvatarElement,nt as UUIAvatarGroupElement,at as UUIBadgeElement,hu as UUIBlinkAnimationValue,cu as UUIBlinkKeyframes,be as UUIBooleanInputElement,ti as UUIBooleanInputEvent,Ce as UUIBoxElement,ut as UUIBreadcrumbItemElement,hr as UUIBreadcrumbsElement,K as UUIButtonElement,Pt as UUIButtonGroupElement,ct as UUIButtonInlineCreateElement,si as UUIButtonInlineCreateEvent,Lt as UUICardContentNodeElement,G as UUICardElement,Dt as UUICardEvent,ht as UUICardMediaElement,vr as UUICardUserElement,fr as UUICaretElement,br as UUICheckboxElement,re as UUIColorAreaElement,di as UUIColorAreaEvent,fi as UUIColorPickerChangeEvent,z as UUIColorPickerElement,oe as UUIColorSliderElement,bi as UUIColorSliderEvent,pt as UUIColorSwatchElement,Tt as UUIColorSwatchesElement,Nt as UUIColorSwatchesEvent,q as UUIComboboxElement,X as UUIComboboxEvent,ye as UUIComboboxListElement,ue as UUIComboboxListEvent,Ue as UUIComboboxListOptionElement,_i as UUIDialogElement,Mt as UUIDialogLayoutElement,ao as UUIEvent,Fe as UUIFileDropzoneElement,jt as UUIFileDropzoneEvent,Y as UUIFilePreviewElement,it as UUIFormControlEvent,Ao as UUIFormElement,ft as UUIFormLayoutItemElement,xr as UUIFormValidationMessageElement,pu as UUIHorizontalPulseAnimationValue,du as UUIHorizontalPulseKeyframes,fu as UUIHorizontalShakeAnimationValue,vu as UUIHorizontalShakeKeyframes,De as UUIIconElement,Lo as UUIIconHost,No as UUIIconRegistry,$r as UUIIconRegistryElement,Ja as UUIIconRegistryEssential,To as UUIIconRegistryEssentialElement,Vt as UUIIconRequestEvent,I as UUIInputElement,bt as UUIInputEvent,Le as UUIInputFileElement,Er as UUIInputLockElement,Ft as UUIInputPasswordElement,xi as UUIKeyElement,wi as UUIKeyboardShortcutElement,gt as UUILabelElement,Gt as UUILoaderBarElement,qt as UUILoaderCircleElement,Ei as UUILoaderElement,ne as UUIMenuItemElement,Ne as UUIMenuItemEvent,He as UUIModalContainerElement,zi as UUIModalDialogElement,Z as UUIModalElement,Kt as UUIModalSidebarElement,ae as UUIPaginationElement,Ge as UUIPaginationEvent,qe as UUIPopoverElement,Or as UUIProgressBarElement,he as UUIRadioElement,Yt as UUIRadioEvent,Zt as UUIRadioGroupElement,Ui as UUIRadioGroupEvent,P as UUIRangeSliderElement,We as UUIRefElement,Qt as UUIRefEvent,Di as UUIRefListElement,kr as UUIRefNodeDataTypeElement,Sr as UUIRefNodeDocumentTypeElement,D as UUIRefNodeElement,Ni as UUIRefNodeFormElement,Ir as UUIRefNodeMemberElement,Jt as UUIRefNodePackageElement,zr as UUIRefNodeUserElement,Ar as UUIScrollContainerElement,Q as UUISelectElement,Ti as UUISelectEvent,ot as UUISelectableEvent,j as UUISliderElement,_t as UUISliderEvent,Dr as UUISymbolExpandElement,Lr as UUISymbolFileDropzoneElement,pr as UUISymbolFileElement,er as UUISymbolFileThumbnailElement,li as UUISymbolFolderElement,Nr as UUISymbolLockElement,Hi as UUISymbolMoreElement,Tr as UUISymbolSortElement,Ke as UUITabElement,Zv as UUITabEvent,Mr as UUITabGroupElement,Qv as UUITabGroupEvent,$e as UUITableCellElement,Vi as UUITableColumnElement,Mi as UUITableElement,Bi as UUITableHeadCellElement,Ri as UUITableHeadElement,Hr as UUITableRowElement,tr as UUITagElement,Yr as UUITextStyles,U as UUITextareaElement,jr as UUITextareaEvent,Vr as UUIToastNotificationContainerElement,je as UUIToastNotificationElement,R as UUIToastNotificationEvent,ir as UUIToastNotificationLayoutElement,Br as UUIToggleElement,Yu as clamp,Ru as defineElement,Ku as demandCustomElement,Xu as drag,Zu as reverseNumberInRange,Qu as toHex};