alchemy_cms 7.1.11 → 7.2.0.b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +132 -24
  3. data/Gemfile +2 -4
  4. data/LICENSE +1 -1
  5. data/README.md +5 -6
  6. data/SECURITY.md +1 -1
  7. data/alchemy_cms.gemspec +3 -4
  8. data/app/assets/javascripts/alchemy/admin.js +0 -9
  9. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +5 -15
  10. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +5 -4
  11. data/app/assets/javascripts/alchemy/templates/index.js +0 -1
  12. data/app/assets/javascripts/alchemy/templates/node_folder.hbs +1 -1
  13. data/app/assets/javascripts/alchemy/templates/page_folder.hbs +1 -1
  14. data/app/assets/javascripts/tinymce/plugins/alchemy_link/plugin.min.js +20 -7
  15. data/app/assets/stylesheets/alchemy/_custom-properties.scss +12 -0
  16. data/app/assets/stylesheets/alchemy/_mixins.scss +10 -6
  17. data/app/assets/stylesheets/alchemy/_variables.scss +3 -0
  18. data/app/assets/stylesheets/alchemy/admin.scss +2 -2
  19. data/app/assets/stylesheets/alchemy/archive.scss +4 -3
  20. data/app/assets/stylesheets/alchemy/attachment-select.scss +19 -0
  21. data/app/assets/stylesheets/alchemy/base.scss +31 -18
  22. data/app/assets/stylesheets/alchemy/buttons.scss +3 -4
  23. data/app/assets/stylesheets/alchemy/dashboard.scss +1 -1
  24. data/app/assets/stylesheets/alchemy/dialogs.scss +2 -5
  25. data/app/assets/stylesheets/alchemy/elements.scss +73 -41
  26. data/app/assets/stylesheets/alchemy/flash.scss +20 -70
  27. data/app/assets/stylesheets/alchemy/forms.scss +41 -36
  28. data/app/assets/stylesheets/alchemy/frame.scss +12 -3
  29. data/app/assets/stylesheets/alchemy/icons.scss +34 -2
  30. data/app/assets/stylesheets/alchemy/image_library.scss +18 -9
  31. data/app/assets/stylesheets/alchemy/{filter_field.scss → list_filter.scss} +8 -7
  32. data/app/assets/stylesheets/alchemy/lists.scss +1 -1
  33. data/app/assets/stylesheets/alchemy/navigation.scss +9 -12
  34. data/app/assets/stylesheets/alchemy/node-select.scss +1 -1
  35. data/app/assets/stylesheets/alchemy/nodes.scss +15 -13
  36. data/app/assets/stylesheets/alchemy/notices.scss +56 -39
  37. data/app/assets/stylesheets/alchemy/page-select.scss +1 -4
  38. data/app/assets/stylesheets/alchemy/pagination.scss +11 -1
  39. data/app/assets/stylesheets/alchemy/preview_window.scss +3 -3
  40. data/app/assets/stylesheets/alchemy/search.scss +4 -4
  41. data/app/assets/stylesheets/alchemy/selects.scss +13 -7
  42. data/app/assets/stylesheets/alchemy/shoelace.scss +33 -2
  43. data/app/assets/stylesheets/alchemy/sitemap.scss +155 -159
  44. data/app/assets/stylesheets/alchemy/tables.scss +49 -12
  45. data/app/assets/stylesheets/alchemy/tags.scss +17 -11
  46. data/app/assets/stylesheets/alchemy/toolbar.scss +2 -2
  47. data/app/assets/stylesheets/alchemy/typography.scss +41 -22
  48. data/app/assets/stylesheets/alchemy/upload.scss +5 -4
  49. data/app/components/alchemy/admin/attachment_select.rb +39 -0
  50. data/app/components/alchemy/admin/icon.rb +72 -0
  51. data/app/components/alchemy/admin/link_dialog/anchor_tab.rb +41 -0
  52. data/app/components/alchemy/admin/link_dialog/base_tab.rb +75 -0
  53. data/app/components/alchemy/admin/link_dialog/external_tab.rb +42 -0
  54. data/app/components/alchemy/admin/link_dialog/file_tab.rb +45 -0
  55. data/app/components/alchemy/admin/link_dialog/internal_tab.rb +66 -0
  56. data/app/components/alchemy/admin/link_dialog/tabs.rb +33 -0
  57. data/app/components/alchemy/admin/list_filter.rb +42 -0
  58. data/app/components/alchemy/admin/message.rb +19 -0
  59. data/app/components/alchemy/admin/tags_autocomplete.rb +25 -0
  60. data/app/components/alchemy/admin/toolbar_button.rb +111 -0
  61. data/app/components/alchemy/ingredients/link_view.rb +1 -7
  62. data/app/components/alchemy/ingredients/picture_view.rb +2 -2
  63. data/app/components/alchemy/ingredients/text_view.rb +1 -2
  64. data/app/controllers/alchemy/admin/base_controller.rb +1 -1
  65. data/app/controllers/alchemy/admin/elements_controller.rb +4 -2
  66. data/app/controllers/alchemy/admin/ingredients_controller.rb +2 -0
  67. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  68. data/app/controllers/alchemy/admin/layoutpages_controller.rb +0 -19
  69. data/app/controllers/alchemy/admin/legacy_page_urls_controller.rb +12 -4
  70. data/app/controllers/alchemy/admin/nodes_controller.rb +26 -0
  71. data/app/controllers/alchemy/admin/pages_controller.rb +11 -78
  72. data/app/controllers/alchemy/admin/picture_descriptions_controller.rb +15 -0
  73. data/app/controllers/alchemy/admin/pictures_controller.rb +18 -1
  74. data/app/controllers/alchemy/admin/resources_controller.rb +15 -10
  75. data/app/controllers/alchemy/api/attachments_controller.rb +44 -0
  76. data/app/controllers/alchemy/api/pages_controller.rb +10 -6
  77. data/app/controllers/alchemy/base_controller.rb +2 -2
  78. data/app/controllers/alchemy/messages_controller.rb +3 -3
  79. data/app/controllers/alchemy/pages_controller.rb +8 -6
  80. data/app/controllers/concerns/alchemy/admin/current_language.rb +1 -11
  81. data/app/controllers/concerns/alchemy/legacy_page_redirects.rb +1 -1
  82. data/app/decorators/alchemy/element_editor.rb +2 -2
  83. data/app/helpers/alchemy/admin/base_helper.rb +8 -60
  84. data/app/helpers/alchemy/admin/elements_helper.rb +1 -1
  85. data/app/helpers/alchemy/admin/ingredients_helper.rb +1 -1
  86. data/app/helpers/alchemy/base_helper.rb +9 -91
  87. data/app/helpers/alchemy/elements_helper.rb +3 -3
  88. data/app/helpers/alchemy/pages_helper.rb +16 -9
  89. data/app/javascript/alchemy_admin/components/attachment_select.js +24 -0
  90. data/app/javascript/alchemy_admin/components/button.js +3 -0
  91. data/app/javascript/alchemy_admin/components/clipboard_button.js +3 -2
  92. data/app/javascript/alchemy_admin/components/dialog_link.js +10 -7
  93. data/app/javascript/alchemy_admin/components/dom_id_select.js +69 -0
  94. data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +42 -0
  95. data/app/javascript/alchemy_admin/components/element_editor/publish_element_button.js +4 -2
  96. data/app/javascript/alchemy_admin/components/element_editor.js +21 -13
  97. data/app/javascript/alchemy_admin/components/elements_window.js +87 -0
  98. data/app/javascript/alchemy_admin/components/growl.js +13 -0
  99. data/app/javascript/alchemy_admin/components/icon.js +51 -0
  100. data/app/javascript/alchemy_admin/components/index.js +24 -0
  101. data/app/javascript/alchemy_admin/components/ingredient_group.js +6 -0
  102. data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +21 -11
  103. data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +2 -1
  104. data/app/javascript/alchemy_admin/components/link_buttons.js +1 -0
  105. data/app/javascript/alchemy_admin/components/list_filter.js +68 -0
  106. data/app/javascript/alchemy_admin/components/message.js +69 -0
  107. data/app/javascript/alchemy_admin/components/node_select.js +1 -1
  108. data/app/javascript/alchemy_admin/components/overlay.js +6 -6
  109. data/app/javascript/alchemy_admin/components/page_select.js +3 -7
  110. data/app/javascript/alchemy_admin/components/preview_window.js +121 -0
  111. data/app/javascript/alchemy_admin/components/remote_select.js +4 -1
  112. data/app/javascript/alchemy_admin/components/select.js +37 -1
  113. data/app/javascript/alchemy_admin/components/tags_autocomplete.js +57 -0
  114. data/app/javascript/alchemy_admin/components/uploader/file_upload.js +4 -3
  115. data/app/javascript/alchemy_admin/components/uploader/progress.js +1 -1
  116. data/app/javascript/alchemy_admin/confirm_dialog.js +133 -0
  117. data/app/javascript/alchemy_admin/dirty.js +19 -14
  118. data/app/javascript/alchemy_admin/fixed_elements.js +24 -0
  119. data/app/javascript/alchemy_admin/growler.js +15 -0
  120. data/app/javascript/alchemy_admin/gui.js +2 -4
  121. data/app/javascript/alchemy_admin/hotkeys.js +60 -0
  122. data/app/javascript/alchemy_admin/image_loader.js +2 -2
  123. data/app/javascript/alchemy_admin/ingredient_anchor_link.js +2 -3
  124. data/app/javascript/alchemy_admin/initializer.js +1 -8
  125. data/app/javascript/alchemy_admin/link_dialog.js +131 -0
  126. data/app/javascript/alchemy_admin/locales/en.js +3 -0
  127. data/app/javascript/alchemy_admin/node_tree.js +4 -3
  128. data/app/javascript/alchemy_admin/page_sorter.js +23 -14
  129. data/app/javascript/alchemy_admin/picture_editors.js +6 -5
  130. data/app/javascript/alchemy_admin/shoelace_theme.js +60 -0
  131. data/app/javascript/alchemy_admin/sitemap.js +9 -3
  132. data/app/javascript/alchemy_admin/sortable_elements.js +4 -6
  133. data/app/javascript/alchemy_admin.js +18 -42
  134. data/app/models/alchemy/current.rb +26 -0
  135. data/app/models/alchemy/element.rb +1 -1
  136. data/app/models/alchemy/ingredients/audio.rb +0 -11
  137. data/app/models/alchemy/ingredients/headline.rb +8 -1
  138. data/app/models/alchemy/ingredients/picture.rb +6 -0
  139. data/app/models/alchemy/ingredients/video.rb +0 -12
  140. data/app/models/alchemy/language.rb +8 -6
  141. data/app/models/alchemy/node.rb +2 -2
  142. data/app/models/alchemy/page/page_elements.rb +8 -8
  143. data/app/models/alchemy/page/page_layouts.rb +3 -3
  144. data/app/models/alchemy/page/page_natures.rb +13 -9
  145. data/app/models/alchemy/page/page_scopes.rb +2 -2
  146. data/app/models/alchemy/page/publisher.rb +1 -0
  147. data/app/models/alchemy/page.rb +13 -28
  148. data/app/models/alchemy/picture.rb +8 -0
  149. data/app/models/alchemy/picture_description.rb +8 -0
  150. data/app/models/alchemy/picture_variant.rb +1 -1
  151. data/app/models/alchemy/site.rb +10 -7
  152. data/app/serializers/alchemy/attachment_serializer.rb +8 -0
  153. data/app/serializers/alchemy/page_node_serializer.rb +9 -0
  154. data/app/views/alchemy/_menubar.html.erb +1 -1
  155. data/app/views/alchemy/_preview_mode_code.html.erb +1 -1
  156. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +2 -2
  157. data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
  158. data/app/views/alchemy/admin/attachments/edit.html.erb +3 -4
  159. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  160. data/app/views/alchemy/admin/clipboard/index.html.erb +1 -1
  161. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  162. data/app/views/alchemy/admin/clipboard/remove.js.erb +1 -1
  163. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
  164. data/app/views/alchemy/admin/dashboard/_sites.html.erb +1 -1
  165. data/app/views/alchemy/admin/dashboard/help.html.erb +48 -12
  166. data/app/views/alchemy/admin/dashboard/index.html.erb +1 -1
  167. data/app/views/alchemy/admin/dashboard/info.html.erb +5 -8
  168. data/app/views/alchemy/admin/elements/_add_nested_element_form.html.erb +1 -1
  169. data/app/views/alchemy/admin/elements/_element.html.erb +5 -5
  170. data/app/views/alchemy/admin/elements/_footer.html.erb +1 -1
  171. data/app/views/alchemy/admin/elements/_header.html.erb +6 -2
  172. data/app/views/alchemy/admin/elements/_toolbar.html.erb +8 -6
  173. data/app/views/alchemy/admin/elements/create.js.erb +0 -5
  174. data/app/views/alchemy/admin/elements/index.html.erb +70 -34
  175. data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +1 -2
  176. data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +3 -5
  177. data/app/views/alchemy/admin/languages/_language.html.erb +1 -1
  178. data/app/views/alchemy/admin/languages/index.html.erb +2 -2
  179. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +18 -18
  180. data/app/views/alchemy/admin/layoutpages/edit.html.erb +4 -5
  181. data/app/views/alchemy/admin/layoutpages/index.html.erb +2 -2
  182. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +10 -11
  183. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +15 -17
  184. data/app/views/alchemy/admin/legacy_page_urls/_table.html.erb +16 -0
  185. data/app/views/alchemy/admin/legacy_page_urls/_update.turbo_stream.erb +12 -0
  186. data/app/views/alchemy/admin/legacy_page_urls/create.turbo_stream.erb +8 -0
  187. data/app/views/alchemy/admin/legacy_page_urls/destroy.turbo_stream.erb +1 -0
  188. data/app/views/alchemy/admin/legacy_page_urls/edit.html.erb +27 -0
  189. data/app/views/alchemy/admin/legacy_page_urls/show.html.erb +1 -0
  190. data/app/views/alchemy/admin/legacy_page_urls/update.turbo_stream.erb +1 -0
  191. data/app/views/alchemy/admin/nodes/_form.html.erb +12 -11
  192. data/app/views/alchemy/admin/nodes/_label.html.erb +1 -0
  193. data/app/views/alchemy/admin/nodes/_node.html.erb +19 -19
  194. data/app/views/alchemy/admin/nodes/_page_nodes.html.erb +48 -0
  195. data/app/views/alchemy/admin/nodes/_update.turbo_stream.erb +9 -0
  196. data/app/views/alchemy/admin/nodes/create.turbo_stream.erb +1 -0
  197. data/app/views/alchemy/admin/nodes/destroy.turbo_stream.erb +1 -0
  198. data/app/views/alchemy/admin/nodes/index.html.erb +3 -3
  199. data/app/views/alchemy/admin/pages/_form.html.erb +3 -4
  200. data/app/views/alchemy/admin/pages/_legacy_urls.html.erb +4 -15
  201. data/app/views/alchemy/admin/pages/_page.html.erb +39 -39
  202. data/app/views/alchemy/admin/pages/_table_row.html.erb +3 -3
  203. data/app/views/alchemy/admin/pages/_toolbar.html.erb +2 -2
  204. data/app/views/alchemy/admin/pages/configure.html.erb +6 -0
  205. data/app/views/alchemy/admin/pages/edit.html.erb +15 -62
  206. data/app/views/alchemy/admin/pages/unlock.js.erb +3 -3
  207. data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +3 -1
  208. data/app/views/alchemy/admin/partials/_flash_notices.html.erb +4 -2
  209. data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
  210. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +5 -2
  211. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  212. data/app/views/alchemy/admin/partials/_search_form.html.erb +2 -2
  213. data/app/views/alchemy/admin/partials/_site_select.html.erb +1 -1
  214. data/app/views/alchemy/admin/picture_descriptions/_form.html.erb +11 -0
  215. data/app/views/alchemy/admin/picture_descriptions/edit.html.erb +6 -0
  216. data/app/views/alchemy/admin/pictures/_form.html.erb +4 -3
  217. data/app/views/alchemy/admin/pictures/_infos.html.erb +1 -1
  218. data/app/views/alchemy/admin/pictures/_picture_description_field.html.erb +29 -0
  219. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +2 -2
  220. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +0 -2
  221. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +3 -3
  222. data/app/views/alchemy/admin/pictures/show.html.erb +3 -3
  223. data/app/views/alchemy/admin/resources/_form.html.erb +3 -4
  224. data/app/views/alchemy/admin/resources/_per_page_select.html.erb +1 -1
  225. data/app/views/alchemy/admin/resources/_tag_list.html.erb +2 -2
  226. data/app/views/alchemy/admin/resources/index.html.erb +2 -2
  227. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  228. data/app/views/alchemy/admin/styleguide/index.html.erb +29 -24
  229. data/app/views/alchemy/admin/tags/_tag.html.erb +1 -1
  230. data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
  231. data/app/views/alchemy/admin/tags/index.html.erb +1 -1
  232. data/app/views/alchemy/base/500.html.erb +7 -18
  233. data/app/views/alchemy/base/error_notice.html.erb +3 -1
  234. data/app/views/alchemy/ingredients/_boolean_editor.html.erb +1 -1
  235. data/app/views/alchemy/ingredients/_datetime_editor.html.erb +1 -1
  236. data/app/views/alchemy/ingredients/_headline_editor.html.erb +13 -8
  237. data/app/views/alchemy/ingredients/_picture_editor.html.erb +1 -1
  238. data/app/views/alchemy/ingredients/shared/_picture_tools.html.erb +1 -1
  239. data/app/views/alchemy/language_links/_language.html.erb +1 -1
  240. data/app/views/kaminari/alchemy/_first_page.html.erb +2 -2
  241. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  242. data/app/views/kaminari/alchemy/_last_page.html.erb +2 -2
  243. data/app/views/kaminari/alchemy/_next_page.html.erb +2 -2
  244. data/app/views/kaminari/alchemy/_prev_page.html.erb +2 -2
  245. data/app/views/layouts/alchemy/admin.html.erb +2 -1
  246. data/bundles/shoelace.js +3 -1
  247. data/config/locales/alchemy.en.yml +16 -3
  248. data/config/routes.rb +4 -2
  249. data/db/migrate/20240314105244_create_alchemy_picture_descriptions.rb +11 -0
  250. data/lib/alchemy/configuration_methods.rb +1 -1
  251. data/lib/alchemy/controller_actions.rb +3 -3
  252. data/lib/alchemy/element_definition.rb +10 -6
  253. data/lib/alchemy/engine.rb +19 -2
  254. data/lib/alchemy/page_layout.rb +10 -6
  255. data/lib/alchemy/permissions.rb +4 -3
  256. data/lib/alchemy/routing_constraints.rb +1 -1
  257. data/lib/alchemy/seeder.rb +2 -2
  258. data/lib/alchemy/test_support/capybara_helpers.rb +4 -0
  259. data/lib/alchemy/test_support/factories/language_factory.rb +1 -1
  260. data/lib/alchemy/test_support/shared_contexts.rb +8 -0
  261. data/lib/alchemy/tinymce.rb +2 -1
  262. data/lib/alchemy/version.rb +1 -1
  263. data/lib/alchemy.rb +36 -0
  264. data/lib/alchemy_cms.rb +0 -1
  265. data/lib/generators/alchemy/menus/templates/node.html.erb +2 -2
  266. data/lib/generators/alchemy/menus/templates/node.html.haml +2 -2
  267. data/lib/generators/alchemy/menus/templates/node.html.slim +2 -2
  268. data/lib/generators/alchemy/menus/templates/wrapper.html.erb +1 -1
  269. data/lib/generators/alchemy/menus/templates/wrapper.html.haml +1 -1
  270. data/lib/generators/alchemy/menus/templates/wrapper.html.slim +1 -1
  271. data/lib/tasks/alchemy/sitemap.rake +97 -0
  272. data/lib/tasks/alchemy/tidy.rake +1 -0
  273. data/package.json +8 -8
  274. data/vendor/assets/fonts/remixicon.symbol.svg +11 -0
  275. data/vendor/javascript/shoelace.min.js +333 -118
  276. data/vendor/javascript/sortable.min.js +1 -1
  277. data/vendor/javascript/tinymce.min.js +1 -1
  278. data/vendor/javascript/ungap-custom-elements.min.js +1 -1
  279. metadata +61 -55
  280. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +0 -85
  281. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +0 -107
  282. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +0 -66
  283. data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +0 -45
  284. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +0 -24
  285. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +0 -49
  286. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +0 -0
  287. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +0 -230
  288. data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +0 -49
  289. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +0 -82
  290. data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +0 -11
  291. data/app/assets/javascripts/alchemy/templates/page.hbs +0 -19
  292. data/app/javascript/alchemy_admin/tags_autocomplete.js +0 -46
  293. data/app/models/alchemy/tree_node.rb +0 -7
  294. data/app/views/alchemy/admin/elements/destroy.js.erb +0 -8
  295. data/app/views/alchemy/admin/legacy_page_urls/_form.html.erb +0 -5
  296. data/app/views/alchemy/admin/legacy_page_urls/create.js.erb +0 -9
  297. data/app/views/alchemy/admin/legacy_page_urls/destroy.js.erb +0 -6
  298. data/app/views/alchemy/admin/legacy_page_urls/update.js.erb +0 -2
  299. data/app/views/alchemy/admin/pages/_anchor_link.html.erb +0 -22
  300. data/app/views/alchemy/admin/pages/_external_link.html.erb +0 -31
  301. data/app/views/alchemy/admin/pages/_file_link.html.erb +0 -31
  302. data/app/views/alchemy/admin/pages/_internal_link.html.erb +0 -35
  303. data/app/views/alchemy/admin/pages/link.html.erb +0 -26
  304. data/app/views/alchemy/admin/partials/_flash.html.erb +0 -4
  305. data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +0 -29
  306. data/lib/alchemy/test_support/current_language_shared_examples.rb +0 -33
  307. data/vendor/assets/fonts/remixicon.eot +0 -0
  308. data/vendor/assets/fonts/remixicon.svg +0 -7816
  309. data/vendor/assets/fonts/remixicon.ttf +0 -0
  310. data/vendor/assets/fonts/remixicon.woff +0 -0
  311. data/vendor/assets/fonts/remixicon.woff2 +0 -0
  312. data/vendor/assets/stylesheets/remixicon.scss +0 -10480
@@ -1,42 +1,26 @@
1
- var t=Object.defineProperty,e=Object.defineProperties,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(e,o,i)=>o in e?t(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i,l=(t,e)=>{for(var o in e||(e={}))s.call(e,o)&&a(t,o,e[o]);if(r)for(var o of r(e))n.call(e,o)&&a(t,o,e[o]);return t},c=(t,o)=>e(t,i(o)),h=(e,i,r,s)=>{for(var n,a=s>1?void 0:s?o(i,r):i,l=e.length-1;l>=0;l--)(n=e[l])&&(a=(s?n(i,r,a):n(a))||a);return s&&a&&t(i,r,a),a},d=new Map,p=new WeakMap;function u(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function f(t,e){d.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function b(t,e,o){const i=p.get(t);if(null==i?void 0:i[e])return u(i[e],o.dir);const r=d.get(e);return r?u(r,o.dir):{keyframes:[],options:{duration:0}}}
1
+ var t=Object.defineProperty,e=Object.defineProperties,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,a=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),l=(e,o,i)=>o in e?t(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i,c=(t,e)=>{for(var o in e||(e={}))r.call(e,o)&&l(t,o,e[o]);if(s)for(var o of s(e))n.call(e,o)&&l(t,o,e[o]);return t},h=(t,o)=>e(t,i(o)),d=(e,i,s,r)=>{for(var n,a=r>1?void 0:r?o(i,s):i,l=e.length-1;l>=0;l--)(n=e[l])&&(a=(r?n(i,s,a):n(a))||a);return r&&a&&t(i,s,a),a},p=function(t,e){this[0]=t,this[1]=e},u=t=>{var e,o=t[a("asyncIterator")],i=!1,s={};return null==o?(o=t[a("iterator")](),e=t=>s[t]=e=>o[t](e)):(o=o.call(t),e=t=>s[t]=e=>{if(i){if(i=!1,"throw"===t)throw e;return e}return i=!0,{done:!1,value:new p(new Promise((i=>{var s=o[t](e);if(!(s instanceof Object))throw TypeError("Object expected");i(s)})),1)}}),s[a("iterator")]=()=>s,e("next"),"throw"in o?e("throw"):s.throw=t=>{throw t},"return"in o&&e("return"),s},f=new Map,m=new WeakMap;function b(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function g(t,e){f.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function v(t,e,o){const i=m.get(t);if(null==i?void 0:i[e])return b(i[e],o.dir);const s=f.get(e);return s?b(s,o.dir):{keyframes:[],options:{duration:0}}}
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const g=globalThis,m=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),y=new WeakMap;let w=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(m&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=y.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&y.set(e,t))}return t}toString(){return this.cssText}};const _=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new w(o,t,v)},$=m?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new w("string"==typeof t?t:t+"",void 0,v))(e)})(t):t
6
+ */const y=globalThis,w=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_=Symbol(),x=new WeakMap;let $=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==_)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(w&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=x.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&x.set(e,t))}return t}toString(){return this.cssText}};const k=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1]),t[0]);return new $(o,t,_)},A=w?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new $("string"==typeof t?t:t+"",void 0,_))(e)})(t):t
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
10
10
  * SPDX-License-Identifier: BSD-3-Clause
11
- */,{is:x,defineProperty:k,getOwnPropertyDescriptor:A,getOwnPropertyNames:C,getOwnPropertySymbols:E,getPrototypeOf:S}=Object,z=globalThis,P=z.trustedTypes,T=P?P.emptyScript:"",L=z.reactiveElementPolyfillSupport,O=(t,e)=>t,R={toAttribute(t,e){switch(e){case Boolean:t=t?T:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},M=(t,e)=>!x(t,e),B={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:M};Symbol.metadata??=Symbol("metadata"),z.litPropertyMetadata??=new WeakMap;class D extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=B){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&k(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=A(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const s=i?.call(this);r.call(this,e),this.requestUpdate(t,s,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??B}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=S(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const t=this.properties,e=[...C(t),...E(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift($(t))}else void 0!==t&&e.push($(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(m)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=g.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:R).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:R;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??M)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[O("elementProperties")]=new Map,D[O("finalized")]=new Map,L?.({ReactiveElement:D}),(z.reactiveElementVersions??=[]).push("2.0.2");
11
+ */,{is:C,defineProperty:E,getOwnPropertyDescriptor:S,getOwnPropertyNames:z,getOwnPropertySymbols:T,getPrototypeOf:P}=Object,L=globalThis,O=L.trustedTypes,R=O?O.emptyScript:"",D=L.reactiveElementPolyfillSupport,F=(t,e)=>t,M={toAttribute(t,e){switch(e){case Boolean:t=t?R:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},B=(t,e)=>!C(t,e),N={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:B};Symbol.metadata??=Symbol("metadata"),L.litPropertyMetadata??=new WeakMap;class U extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&E(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:s}=S(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const r=i?.call(this);s.call(this,e),this.requestUpdate(t,r,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(F("elementProperties")))return;const t=P(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(F("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(F("properties"))){const t=this.properties,e=[...z(t),...T(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(A(t))}else void 0!==t&&e.push(A(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(w)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=y.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const s=(void 0!==o.converter?.toAttribute?o.converter:M).toAttribute(e,o.type);this._$Em=t,null==s?this.removeAttribute(i):this.setAttribute(i,s),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:M;this._$Em=i,this[i]=s.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??B)(this[t],e))return;this.P(t,e,o)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[F("elementProperties")]=new Map,U[F("finalized")]=new Map,D?.({ReactiveElement:U}),(L.reactiveElementVersions??=[]).push("2.0.4");
12
12
  /**
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const F=globalThis,U=F.trustedTypes,H=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",N=`lit$${(Math.random()+"").slice(9)}$`,I="?"+N,j=`<${I}>`,W=document,q=()=>W.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,G="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,X=/>/g,Q=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,ot=/^(?:script|style|textarea|title)$/i,it=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),rt=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),nt=new WeakMap,at=W.createTreeWalker(W,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==H?H.createHTML(e):e}const ct=(t,e)=>{const o=t.length-1,i=[];let r,s=2===e?"<svg>":"",n=Y;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,h=0;for(;h<o.length&&(n.lastIndex=h,l=n.exec(o),null!==l);)h=n.lastIndex,n===Y?"!--"===l[1]?n=J:void 0!==l[1]?n=X:void 0!==l[2]?(ot.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=Q):void 0!==l[3]&&(n=Q):n===Q?">"===l[0]?(n=r??Y,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?Q:'"'===l[3]?et:tt):n===et||n===tt?n=Q:n===J||n===X?n=Y:(n=Q,r=void 0);const d=n===Q&&t[e+1].startsWith("/>")?" ":"";s+=n===Y?o+j:c>=0?(i.push(a),o.slice(0,c)+V+o.slice(c)+N+d):o+N+(-2===c?e:d)}return[lt(t,s+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ht{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,s=0;const n=t.length-1,a=this.parts,[l,c]=ct(t,e);if(this.el=ht.createElement(l,o),at.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=at.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(V)){const e=c[s++],o=i.getAttribute(t).split(N),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?bt:"?"===n[1]?gt:"@"===n[1]?mt:ft}),i.removeAttribute(t)}else t.startsWith(N)&&(a.push({type:6,index:r}),i.removeAttribute(t));if(ot.test(i.tagName)){const t=i.textContent.split(N),e=t.length-1;if(e>0){i.textContent=U?U.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],q()),at.nextNode(),a.push({type:2,index:++r});i.append(t[e],q())}}}else if(8===i.nodeType)if(i.data===I)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(N,t+1));)a.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,e){const o=W.createElement("template");return o.innerHTML=t,o}}function dt(t,e,o=t,i){if(e===rt)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const s=K(e)?void 0:e._$litDirective$;return r?.constructor!==s&&(r?._$AO?.(!1),void 0===s?r=void 0:(r=new s(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=dt(t,r._$AS(t,e.values),r,i)),e}class pt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??W).importNode(e,!0);at.currentNode=i;let r=at.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new ut(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new vt(r,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(r=at.nextNode(),s++)}return at.currentNode=W,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ut{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=st,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=dt(this,t,e),K(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Z(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==st&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ht.createElement(lt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new pt(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=nt.get(t.strings);return void 0===e&&nt.set(t.strings,e=new ht(t)),e}T(t){Z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new ut(this.k(q()),this.k(q()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=st,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=st}_$AI(t,e=this,o,i){const r=this.strings;let s=!1;if(void 0===r)t=dt(this,t,e,0),s=!K(t)||t!==this._$AH&&t!==rt,s&&(this._$AH=t);else{const i=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=dt(this,i[o+n],e,n),a===rt&&(a=this._$AH[n]),s||=!K(a)||a!==this._$AH[n],a===st?t=st:t!==st&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}s&&!i&&this.O(t)}O(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bt extends ft{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===st?void 0:t}}class gt extends ft{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==st)}}class mt extends ft{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??st)===rt)return;const o=this._$AH,i=t===st&&o!==st||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==st&&(o===st||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class vt{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}}const yt=F.litHtmlPolyfillSupport;yt?.(ht,ut),(F.litHtmlVersions??=[]).push("3.1.0");
17
+ const H=globalThis,V=H.trustedTypes,I=V?V.createPolicy("lit-html",{createHTML:t=>t}):void 0,W="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,q="?"+j,K=`<${q}>`,Z=document,X=()=>Z.createComment(""),Y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,ot=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,st=/"/g,rt=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),at=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ht=Z.createTreeWalker(Z,129);function dt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(e):e}const pt=(t,e)=>{const o=t.length-1,i=[];let s,r=2===e?"<svg>":"",n=Q;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,h=0;for(;h<o.length&&(n.lastIndex=h,l=n.exec(o),null!==l);)h=n.lastIndex,n===Q?"!--"===l[1]?n=tt:void 0!==l[1]?n=et:void 0!==l[2]?(rt.test(l[2])&&(s=RegExp("</"+l[2],"g")),n=ot):void 0!==l[3]&&(n=ot):n===ot?">"===l[0]?(n=s??Q,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?ot:'"'===l[3]?st:it):n===st||n===it?n=ot:n===tt||n===et?n=Q:(n=ot,s=void 0);const d=n===ot&&t[e+1].startsWith("/>")?" ":"";r+=n===Q?o+K:c>=0?(i.push(a),o.slice(0,c)+W+o.slice(c)+j+d):o+j+(-2===c?e:d)}return[dt(t,r+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class ut{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let s=0,r=0;const n=t.length-1,a=this.parts,[l,c]=pt(t,e);if(this.el=ut.createElement(l,o),ht.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ht.nextNode())&&a.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(W)){const e=c[r++],o=i.getAttribute(t).split(j),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:n[2],strings:o,ctor:"."===n[1]?vt:"?"===n[1]?yt:"@"===n[1]?wt:gt}),i.removeAttribute(t)}else t.startsWith(j)&&(a.push({type:6,index:s}),i.removeAttribute(t));if(rt.test(i.tagName)){const t=i.textContent.split(j),e=t.length-1;if(e>0){i.textContent=V?V.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],X()),ht.nextNode(),a.push({type:2,index:++s});i.append(t[e],X())}}}else if(8===i.nodeType)if(i.data===q)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=i.data.indexOf(j,t+1));)a.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const o=Z.createElement("template");return o.innerHTML=t,o}}function ft(t,e,o=t,i){if(e===at)return e;let s=void 0!==i?o._$Co?.[i]:o._$Cl;const r=Y(e)?void 0:e._$litDirective$;return s?.constructor!==r&&(s?._$AO?.(!1),void 0===r?s=void 0:(s=new r(t),s._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=s:o._$Cl=s),void 0!==s&&(e=ft(t,s._$AS(t,e.values),s,i)),e}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??Z).importNode(e,!0);ht.currentNode=i;let s=ht.nextNode(),r=0,n=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new bt(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new _t(s,this,t)),this._$AV.push(e),a=o[++n]}r!==a?.index&&(s=ht.nextNode(),r++)}return ht.currentNode=Z,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class bt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ft(this,t,e),Y(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>G(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==lt&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(Z.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ut.createElement(dt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new mt(i,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const s of t)i===e.length?e.push(o=new bt(this.S(X()),this.S(X()),this,this.options)):o=e[i],o._$AI(s),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class gt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,s){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,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=lt}_$AI(t,e=this,o,i){const s=this.strings;let r=!1;if(void 0===s)t=ft(this,t,e,0),r=!Y(t)||t!==this._$AH&&t!==at,r&&(this._$AH=t);else{const i=t;let n,a;for(t=s[0],n=0;n<s.length-1;n++)a=ft(this,i[o+n],e,n),a===at&&(a=this._$AH[n]),r||=!Y(a)||a!==this._$AH[n],a===lt?t=lt:t!==lt&&(t+=(a??"")+s[n+1]),this._$AH[n]=a}r&&!i&&this.j(t)}j(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class vt extends gt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===lt?void 0:t}}class yt extends gt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}}class wt extends gt{constructor(t,e,o,i,s){super(t,e,o,i,s),this.type=5}_$AI(t,e=this){if((t=ft(this,t,e,0)??lt)===at)return;const o=this._$AH,i=t===lt&&o!==lt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==lt&&(o===lt||i);i&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class _t{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}}const xt=H.litHtmlPolyfillSupport;xt?.(ut,bt),(H.litHtmlVersions??=[]).push("3.1.2");
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */
23
- let wt=class extends D{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const i=o?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=o?.renderBefore??null;i._$litPart$=r=new ut(e.insertBefore(q(),t),t,void 0,o??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return rt}};wt._$litElement$=!0,wt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:wt});const _t=globalThis.litElementPolyfillSupport;_t?.({LitElement:wt}),(globalThis.litElementVersions??=[]).push("4.0.2");var $t=_`
24
- :host {
25
- box-sizing: border-box;
26
- }
27
-
28
- :host *,
29
- :host *::before,
30
- :host *::after {
31
- box-sizing: inherit;
32
- }
33
-
34
- [hidden] {
35
- display: none !important;
36
- }
37
- `,xt=_`
38
- ${$t}
39
-
23
+ let $t=class extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{const i=o?.renderBefore??e;let s=i._$litPart$;if(void 0===s){const t=o?.renderBefore??null;i._$litPart$=s=new bt(e.insertBefore(X(),t),t,void 0,o??{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return at}};$t._$litElement$=!0,$t.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$t});const kt=globalThis.litElementPolyfillSupport;kt?.({LitElement:$t}),(globalThis.litElementVersions??=[]).push("4.0.4");var At=k`
40
24
  :host {
41
25
  display: inline-block;
42
26
  }
@@ -191,6 +175,7 @@ let wt=class extends D{constructor(){super(...arguments),this.renderOptions={hos
191
175
 
192
176
  :host([required]) .switch__label::after {
193
177
  content: var(--sl-input-required-content);
178
+ color: var(--sl-input-required-content-color);
194
179
  margin-inline-start: var(--sl-input-required-content-offset);
195
180
  }
196
181
 
@@ -200,43 +185,114 @@ let wt=class extends D{constructor(){super(...arguments),this.renderOptions={hos
200
185
  background-color: ButtonText;
201
186
  }
202
187
  }
203
- `,kt=new WeakMap,At=new WeakMap,Ct=new WeakMap,Et=new WeakSet,St=new WeakMap,zt=class{constructor(t,e){this.handleFormData=t=>{const e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),r="sl-button"===this.host.tagName.toLowerCase();this.host.isConnected&&!e&&!r&&"string"==typeof o&&o.length>0&&void 0!==i&&(Array.isArray(i)?i.forEach((e=>{t.formData.append(o,e.toString())})):t.formData.append(o,i.toString()))},this.handleFormSubmit=t=>{var e;const o=this.options.disabled(this.host),i=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(e=kt.get(this.form))||e.forEach((t=>{this.setUserInteracted(t,!0)}))),!this.form||this.form.noValidate||o||i(this.host)||(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),St.set(this.host,[])},this.handleInteraction=t=>{const e=St.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.checkValidity&&!e.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.reportValidity&&!e.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=l({form:t=>{const e=t.form;if(e){const o=t.getRootNode().getElementById(e);if(o)return o}return t.closest("form")},name:t=>t.name,value:t=>t.value,defaultValue:t=>t.defaultValue,disabled:t=>{var e;return null!=(e=t.disabled)&&e},reportValidity:t=>"function"!=typeof t.reportValidity||t.reportValidity(),checkValidity:t=>"function"!=typeof t.checkValidity||t.checkValidity(),setValue:(t,e)=>t.value=e,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),St.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),St.delete(this.host),this.options.assumeInteractionOn.forEach((t=>{this.host.removeEventListener(t,this.handleInteraction)}))}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,kt.has(this.form)?kt.get(this.form).add(this.host):kt.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),At.has(this.form)||(At.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),Ct.has(this.form)||(Ct.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const t=kt.get(this.form);t&&(t.delete(this.host),t.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),At.has(this.form)&&(this.form.reportValidity=At.get(this.form),At.delete(this.form)),Ct.has(this.form)&&(this.form.checkValidity=Ct.get(this.form),Ct.delete(this.form)),this.form=void 0))}setUserInteracted(t,e){e?Et.add(t):Et.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&o.setAttribute(t,e.getAttribute(t))}))),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return null!=(t=this.form)?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=Boolean(Et.has(e)),i=Boolean(e.required);e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||null==t||t.preventDefault()}},Pt=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});function Tt(t,e){const o=l({waitUntilFirstUpdate:!1},e);return(e,i)=>{const{update:r}=e,s=Array.isArray(t)?t:[t];e.update=function(t){s.forEach((e=>{const r=e;if(t.has(r)){const e=t.get(r),s=this[r];e!==s&&(o.waitUntilFirstUpdate&&!this.hasUpdated||this[i](e,s))}})),r.call(this,t)}}}
188
+ `,Ct=k`
189
+ .form-control .form-control__label {
190
+ display: none;
191
+ }
192
+
193
+ .form-control .form-control__help-text {
194
+ display: none;
195
+ }
196
+
197
+ /* Label */
198
+ .form-control--has-label .form-control__label {
199
+ display: inline-block;
200
+ color: var(--sl-input-label-color);
201
+ margin-bottom: var(--sl-spacing-3x-small);
202
+ }
203
+
204
+ .form-control--has-label.form-control--small .form-control__label {
205
+ font-size: var(--sl-input-label-font-size-small);
206
+ }
207
+
208
+ .form-control--has-label.form-control--medium .form-control__label {
209
+ font-size: var(--sl-input-label-font-size-medium);
210
+ }
211
+
212
+ .form-control--has-label.form-control--large .form-control__label {
213
+ font-size: var(--sl-input-label-font-size-large);
214
+ }
215
+
216
+ :host([required]) .form-control--has-label .form-control__label::after {
217
+ content: var(--sl-input-required-content);
218
+ margin-inline-start: var(--sl-input-required-content-offset);
219
+ color: var(--sl-input-required-content-color);
220
+ }
221
+
222
+ /* Help text */
223
+ .form-control--has-help-text .form-control__help-text {
224
+ display: block;
225
+ color: var(--sl-input-help-text-color);
226
+ margin-top: var(--sl-spacing-3x-small);
227
+ }
228
+
229
+ .form-control--has-help-text.form-control--small .form-control__help-text {
230
+ font-size: var(--sl-input-help-text-font-size-small);
231
+ }
232
+
233
+ .form-control--has-help-text.form-control--medium .form-control__help-text {
234
+ font-size: var(--sl-input-help-text-font-size-medium);
235
+ }
236
+
237
+ .form-control--has-help-text.form-control--large .form-control__help-text {
238
+ font-size: var(--sl-input-help-text-font-size-large);
239
+ }
240
+
241
+ .form-control--has-help-text.form-control--radio-group .form-control__help-text {
242
+ margin-top: var(--sl-spacing-2x-small);
243
+ }
244
+ `,Et=new WeakMap,St=new WeakMap,zt=new WeakMap,Tt=new WeakSet,Pt=new WeakMap,Lt=class{constructor(t,e){this.handleFormData=t=>{const e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s="sl-button"===this.host.tagName.toLowerCase();this.host.isConnected&&!e&&!s&&"string"==typeof o&&o.length>0&&void 0!==i&&(Array.isArray(i)?i.forEach((e=>{t.formData.append(o,e.toString())})):t.formData.append(o,i.toString()))},this.handleFormSubmit=t=>{var e;const o=this.options.disabled(this.host),i=this.options.reportValidity;this.form&&!this.form.noValidate&&(null==(e=Et.get(this.form))||e.forEach((t=>{this.setUserInteracted(t,!0)}))),!this.form||this.form.noValidate||o||i(this.host)||(t.preventDefault(),t.stopImmediatePropagation())},this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),Pt.set(this.host,[])},this.handleInteraction=t=>{const e=Pt.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)},this.checkFormValidity=()=>{if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.checkValidity&&!e.checkValidity())return!1}return!0},this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){const t=this.form.querySelectorAll("*");for(const e of t)if("function"==typeof e.reportValidity&&!e.reportValidity())return!1}return!0},(this.host=t).addController(this),this.options=c({form:t=>{const e=t.form;if(e){const o=t.getRootNode().querySelector(`#${e}`);if(o)return o}return t.closest("form")},name:t=>t.name,value:t=>t.value,defaultValue:t=>t.defaultValue,disabled:t=>{var e;return null!=(e=t.disabled)&&e},reportValidity:t=>"function"!=typeof t.reportValidity||t.reportValidity(),checkValidity:t=>"function"!=typeof t.checkValidity||t.checkValidity(),setValue:(t,e)=>t.value=e,assumeInteractionOn:["sl-input"]},e)}hostConnected(){const t=this.options.form(this.host);t&&this.attachForm(t),Pt.set(this.host,[]),this.options.assumeInteractionOn.forEach((t=>{this.host.addEventListener(t,this.handleInteraction)}))}hostDisconnected(){this.detachForm(),Pt.delete(this.host),this.options.assumeInteractionOn.forEach((t=>{this.host.removeEventListener(t,this.handleInteraction)}))}hostUpdated(){const t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity(this.host.validity.valid)}attachForm(t){t?(this.form=t,Et.has(this.form)?Et.get(this.form).add(this.host):Et.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),St.has(this.form)||(St.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),zt.has(this.form)||(zt.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())):this.form=void 0}detachForm(){if(!this.form)return;const t=Et.get(this.form);t&&(t.delete(this.host),t.size<=0&&(this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),St.has(this.form)&&(this.form.reportValidity=St.get(this.form),St.delete(this.form)),zt.has(this.form)&&(this.form.checkValidity=zt.get(this.form),zt.delete(this.form)),this.form=void 0))}setUserInteracted(t,e){e?Tt.add(t):Tt.delete(t),t.requestUpdate()}doAction(t,e){if(this.form){const o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach((t=>{e.hasAttribute(t)&&o.setAttribute(t,e.getAttribute(t))}))),this.form.append(o),o.click(),o.remove()}}getForm(){var t;return null!=(t=this.form)?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){const e=this.host,o=Boolean(Tt.has(e)),i=Boolean(e.required);e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o)}updateValidity(){const t=this.host;this.setValidity(t.validity.valid)}emitInvalidEvent(t){const e=new CustomEvent("sl-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault(),this.host.dispatchEvent(e)||null==t||t.preventDefault()}},Ot=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1});Object.freeze(h(c({},Ot),{valid:!1,valueMissing:!0})),Object.freeze(h(c({},Ot),{valid:!1,customError:!0}));var Rt=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=t=>{const e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&""!==t.textContent.trim())return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if("sl-visually-hidden"===e.tagName.toLowerCase())return!1;if(!e.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(t){return null!==this.host.querySelector(`:scope > [slot="${t}"]`)}test(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}};function Dt(t,e){const o=c({waitUntilFirstUpdate:!1},e);return(e,i)=>{const{update:s}=e,r=Array.isArray(t)?t:[t];e.update=function(t){r.forEach((e=>{const s=e;if(t.has(s)){const e=t.get(s),r=this[s];e!==r&&(o.waitUntilFirstUpdate&&!this.hasUpdated||this[i](e,r))}})),s.call(this,t)}}}var Ft=k`
245
+ :host {
246
+ box-sizing: border-box;
247
+ }
248
+
249
+ :host *,
250
+ :host *::before,
251
+ :host *::after {
252
+ box-sizing: inherit;
253
+ }
254
+
255
+ [hidden] {
256
+ display: none !important;
257
+ }
258
+ `
204
259
  /**
205
260
  * @license
206
261
  * Copyright 2017 Google LLC
207
262
  * SPDX-License-Identifier: BSD-3-Clause
208
- */Object.freeze(c(l({},Pt),{valid:!1,valueMissing:!0})),Object.freeze(c(l({},Pt),{valid:!1,customError:!0}));const Lt={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:M},Ot=(t=Lt,e,o)=>{const{kind:i,metadata:r}=o;let s=globalThis.litPropertyMetadata.get(r);if(void 0===s&&globalThis.litPropertyMetadata.set(r,s=new Map),s.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function Rt(t){return(e,o)=>"object"==typeof o?Ot(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
263
+ */;const Mt={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:B},Bt=(t=Mt,e,o)=>{const{kind:i,metadata:s}=o;let r=globalThis.litPropertyMetadata.get(s);if(void 0===r&&globalThis.litPropertyMetadata.set(s,r=new Map),r.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const s=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,s,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const s=this[i];e.call(this,o),this.requestUpdate(i,s,t)}}throw Error("Unsupported decorator location: "+i)};function Nt(t){return(e,o)=>"object"==typeof o?Bt(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
209
264
  /**
210
265
  * @license
211
266
  * Copyright 2017 Google LLC
212
267
  * SPDX-License-Identifier: BSD-3-Clause
213
- */}function Mt(t){return Rt({...t,state:!0,attribute:!1})}
268
+ */}function Ut(t){return Nt({...t,state:!0,attribute:!1})}
214
269
  /**
215
270
  * @license
216
271
  * Copyright 2017 Google LLC
217
272
  * SPDX-License-Identifier: BSD-3-Clause
218
- */const Bt=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o)
273
+ */
219
274
  /**
220
275
  * @license
221
276
  * Copyright 2017 Google LLC
222
277
  * SPDX-License-Identifier: BSD-3-Clause
223
- */;function Dt(t,e){return(o,i,r)=>{const s=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Bt(o,i,{get(){let o=t.call(this);return void 0===o&&(o=s(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Bt(o,i,{get(){return s(this)}})}}var Ft=class extends wt{constructor(){super(),Object.entries(this.constructor.dependencies).forEach((([t,e])=>{this.constructor.define(t,e)}))}emit(t,e){const o=new CustomEvent(t,l({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const i=customElements.get(t);if(!i)return void customElements.define(t,class extends e{},o);let r=" (unknown version)",s=r;"version"in e&&e.version&&(r=" v"+e.version),"version"in i&&i.version&&(s=" v"+i.version),r&&s&&r===s||console.warn(`Attempted to register <${t}>${r}, but <${t}>${s} has already been registered.`)}};Ft.version="2.13.1",Ft.dependencies={},h([Rt()],Ft.prototype,"dir",2),h([Rt()],Ft.prototype,"lang",2);
278
+ */
279
+ function Ht(t,e){return(e,o,i)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,o),o))(e,o,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}var Vt=class extends $t{constructor(){super(),Object.entries(this.constructor.dependencies).forEach((([t,e])=>{this.constructor.define(t,e)}))}emit(t,e){const o=new CustomEvent(t,c({bubbles:!0,cancelable:!1,composed:!0,detail:{}},e));return this.dispatchEvent(o),o}static define(t,e=this,o={}){const i=customElements.get(t);if(!i)return void customElements.define(t,class extends e{},o);let s=" (unknown version)",r=s;"version"in e&&e.version&&(s=" v"+e.version),"version"in i&&i.version&&(r=" v"+i.version),s&&r&&s===r||console.warn(`Attempted to register <${t}>${s}, but <${t}>${r} has already been registered.`)}};Vt.version="2.15.0",Vt.dependencies={},d([Nt()],Vt.prototype,"dir",2),d([Nt()],Vt.prototype,"lang",2);
224
280
  /**
225
281
  * @license
226
282
  * Copyright 2017 Google LLC
227
283
  * SPDX-License-Identifier: BSD-3-Clause
228
284
  */
229
- const Ut=1,Ht=3,Vt=4,Nt=t=>(...e)=>({_$litDirective$:t,values:e});let It=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
285
+ const It=1,Wt=3,jt=4,qt=t=>(...e)=>({_$litDirective$:t,values:e});let Kt=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
230
286
  /**
231
287
  * @license
232
288
  * Copyright 2018 Google LLC
233
289
  * SPDX-License-Identifier: BSD-3-Clause
234
- */const jt=Nt(class extends It{constructor(t){if(super(t),t.type!==Ut||"class"!==t.name||t.strings?.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]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return rt}}),Wt=t=>t??st
290
+ */const Zt=qt(class extends Kt{constructor(t){if(super(t),t.type!==It||"class"!==t.name||t.strings?.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]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.st)t in e||(o.remove(t),this.st.delete(t));for(const t in e){const i=!!e[t];i===this.st.has(t)||this.nt?.has(t)||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return at}}),Xt=t=>t??lt
235
291
  /**
236
292
  * @license
237
293
  * Copyright 2020 Google LLC
238
294
  * SPDX-License-Identifier: BSD-3-Clause
239
- */,qt={},Kt=Nt(class extends It{constructor(t){if(super(t),t.type!==Ht&&t.type!==Ut&&t.type!==Vt)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===rt||e===st)return e;const o=t.element,i=t.name;if(t.type===Ht){if(e===o[i])return rt}else if(t.type===Vt){if(!!e===o.hasAttribute(i))return rt}else if(t.type===Ut&&o.getAttribute(i)===e+"")return rt;return((t,e=qt)=>{t._$AH=e;
295
+ */,Yt={},Gt=qt(class extends Kt{constructor(t){if(super(t),t.type!==Wt&&t.type!==It&&t.type!==jt)throw Error("The `live` directive is not allowed on child or event bindings");if(!(t=>void 0===t.strings)(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===at||e===lt)return e;const o=t.element,i=t.name;if(t.type===Wt){if(e===o[i])return at}else if(t.type===jt){if(!!e===o.hasAttribute(i))return at}else if(t.type===It&&o.getAttribute(i)===e+"")return at;return((t,e=Yt)=>{t._$AH=e;
240
296
  /**
241
297
  * @license
242
298
  * Copyright 2020 Google LLC
@@ -246,41 +302,53 @@ const Ut=1,Ht=3,Vt=4,Nt=t=>(...e)=>({_$litDirective$:t,values:e});let It=class{c
246
302
  * @license
247
303
  * Copyright 2018 Google LLC
248
304
  * SPDX-License-Identifier: BSD-3-Clause
249
- */var Zt=class extends Ft{constructor(){super(...arguments),this.formControlController=new zt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(t){"ArrowLeft"===t.key&&(t.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),"ArrowRight"===t.key&&(t.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){return it`
250
- <label
251
- part="base"
252
- class=${jt({switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled,"switch--focused":this.hasFocus,"switch--small":"small"===this.size,"switch--medium":"medium"===this.size,"switch--large":"large"===this.size})}
305
+ */var Jt=class extends Vt{constructor(){super(...arguments),this.formControlController=new Lt(this,{value:t=>t.checked?t.value||"on":void 0,defaultValue:t=>t.defaultChecked,setValue:(t,e)=>t.checked=e}),this.hasSlotController=new Rt(this,"help-text"),this.hasFocus=!1,this.title="",this.name="",this.size="medium",this.disabled=!1,this.checked=!1,this.defaultChecked=!1,this.form="",this.required=!1,this.helpText=""}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleInput(){this.emit("sl-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleClick(){this.checked=!this.checked,this.emit("sl-change")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleKeyDown(t){"ArrowLeft"===t.key&&(t.preventDefault(),this.checked=!1,this.emit("sl-change"),this.emit("sl-input")),"ArrowRight"===t.key&&(t.preventDefault(),this.checked=!0,this.emit("sl-change"),this.emit("sl-input"))}handleCheckedChange(){this.input.checked=this.checked,this.formControlController.updateValidity()}handleDisabledChange(){this.formControlController.setValidity(!0)}click(){this.input.click()}focus(t){this.input.focus(t)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}render(){const t=this.hasSlotController.test("help-text"),e=!!this.helpText||!!t;return nt`
306
+ <div
307
+ class=${Zt({"form-control":!0,"form-control--small":"small"===this.size,"form-control--medium":"medium"===this.size,"form-control--large":"large"===this.size,"form-control--has-help-text":e})}
253
308
  >
254
- <input
255
- class="switch__input"
256
- type="checkbox"
257
- title=${this.title}
258
- name=${this.name}
259
- value=${Wt(this.value)}
260
- .checked=${Kt(this.checked)}
261
- .disabled=${this.disabled}
262
- .required=${this.required}
263
- role="switch"
264
- aria-checked=${this.checked?"true":"false"}
265
- @click=${this.handleClick}
266
- @input=${this.handleInput}
267
- @invalid=${this.handleInvalid}
268
- @blur=${this.handleBlur}
269
- @focus=${this.handleFocus}
270
- @keydown=${this.handleKeyDown}
271
- />
272
-
273
- <span part="control" class="switch__control">
274
- <span part="thumb" class="switch__thumb"></span>
275
- </span>
276
-
277
- <div part="label" class="switch__label">
278
- <slot></slot>
309
+ <label
310
+ part="base"
311
+ class=${Zt({switch:!0,"switch--checked":this.checked,"switch--disabled":this.disabled,"switch--focused":this.hasFocus,"switch--small":"small"===this.size,"switch--medium":"medium"===this.size,"switch--large":"large"===this.size})}
312
+ >
313
+ <input
314
+ class="switch__input"
315
+ type="checkbox"
316
+ title=${this.title}
317
+ name=${this.name}
318
+ value=${Xt(this.value)}
319
+ .checked=${Gt(this.checked)}
320
+ .disabled=${this.disabled}
321
+ .required=${this.required}
322
+ role="switch"
323
+ aria-checked=${this.checked?"true":"false"}
324
+ aria-describedby="help-text"
325
+ @click=${this.handleClick}
326
+ @input=${this.handleInput}
327
+ @invalid=${this.handleInvalid}
328
+ @blur=${this.handleBlur}
329
+ @focus=${this.handleFocus}
330
+ @keydown=${this.handleKeyDown}
331
+ />
332
+
333
+ <span part="control" class="switch__control">
334
+ <span part="thumb" class="switch__thumb"></span>
335
+ </span>
336
+
337
+ <div part="label" class="switch__label">
338
+ <slot></slot>
339
+ </div>
340
+ </label>
341
+
342
+ <div
343
+ aria-hidden=${e?"false":"true"}
344
+ class="form-control__help-text"
345
+ id="help-text"
346
+ part="form-control-help-text"
347
+ >
348
+ <slot name="help-text">${this.helpText}</slot>
279
349
  </div>
280
- </label>
281
- `}};Zt.styles=xt,h([Dt('input[type="checkbox"]')],Zt.prototype,"input",2),h([Mt()],Zt.prototype,"hasFocus",2),h([Rt()],Zt.prototype,"title",2),h([Rt()],Zt.prototype,"name",2),h([Rt()],Zt.prototype,"value",2),h([Rt({reflect:!0})],Zt.prototype,"size",2),h([Rt({type:Boolean,reflect:!0})],Zt.prototype,"disabled",2),h([Rt({type:Boolean,reflect:!0})],Zt.prototype,"checked",2),h([((t="value")=>(e,o)=>{const i=e.constructor,r=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(e,s,n){var a;const l=i.getPropertyOptions(t);if(e===("string"==typeof l.attribute?l.attribute:t)){const e=l.converter||R,i=("function"==typeof e?e:null!=(a=null==e?void 0:e.fromAttribute)?a:R.fromAttribute)(n,l.type);this[t]!==i&&(this[o]=i)}r.call(this,e,s,n)}})("checked")],Zt.prototype,"defaultChecked",2),h([Rt({reflect:!0})],Zt.prototype,"form",2),h([Rt({type:Boolean,reflect:!0})],Zt.prototype,"required",2),h([Tt("checked",{waitUntilFirstUpdate:!0})],Zt.prototype,"handleCheckedChange",1),h([Tt("disabled",{waitUntilFirstUpdate:!0})],Zt.prototype,"handleDisabledChange",1),Zt.define("sl-switch");var Gt=_`
282
- ${$t}
283
-
350
+ </div>
351
+ `}};Jt.styles=[Ft,Ct,At],d([Ht('input[type="checkbox"]')],Jt.prototype,"input",2),d([Ut()],Jt.prototype,"hasFocus",2),d([Nt()],Jt.prototype,"title",2),d([Nt()],Jt.prototype,"name",2),d([Nt()],Jt.prototype,"value",2),d([Nt({reflect:!0})],Jt.prototype,"size",2),d([Nt({type:Boolean,reflect:!0})],Jt.prototype,"disabled",2),d([Nt({type:Boolean,reflect:!0})],Jt.prototype,"checked",2),d([((t="value")=>(e,o)=>{const i=e.constructor,s=i.prototype.attributeChangedCallback;i.prototype.attributeChangedCallback=function(e,r,n){var a;const l=i.getPropertyOptions(t);if(e===("string"==typeof l.attribute?l.attribute:t)){const e=l.converter||M,i=("function"==typeof e?e:null!=(a=null==e?void 0:e.fromAttribute)?a:M.fromAttribute)(n,l.type);this[t]!==i&&(this[o]=i)}s.call(this,e,r,n)}})("checked")],Jt.prototype,"defaultChecked",2),d([Nt({reflect:!0})],Jt.prototype,"form",2),d([Nt({type:Boolean,reflect:!0})],Jt.prototype,"required",2),d([Nt({attribute:"help-text"})],Jt.prototype,"helpText",2),d([Dt("checked",{waitUntilFirstUpdate:!0})],Jt.prototype,"handleCheckedChange",1),d([Dt("disabled",{waitUntilFirstUpdate:!0})],Jt.prototype,"handleDisabledChange",1),Jt.define("sl-switch");var Qt=k`
284
352
  :host {
285
353
  display: inline-block;
286
354
  }
@@ -348,9 +416,7 @@ const Ut=1,Ht=3,Vt=4,Nt=t=>(...e)=>({_$litDirective$:t,values:e});let It=class{c
348
416
  outline-offset: -3px;
349
417
  }
350
418
  }
351
- `,Yt=_`
352
- ${$t}
353
-
419
+ `,te=k`
354
420
  :host {
355
421
  display: inline-block;
356
422
  color: var(--sl-color-neutral-600);
@@ -397,9 +463,7 @@ const Ut=1,Ht=3,Vt=4,Nt=t=>(...e)=>({_$litDirective$:t,values:e});let It=class{c
397
463
  .icon-button__icon {
398
464
  pointer-events: none;
399
465
  }
400
- `,Jt="";function Xt(t){Jt=t}var Qt={name:"default",resolver:t=>function(t=""){if(!Jt){const t=[...document.getElementsByTagName("script")],e=t.find((t=>t.hasAttribute("data-shoelace")));if(e)Xt(e.getAttribute("data-shoelace"));else{const e=t.find((t=>/shoelace(\.min)?\.js($|\?)/.test(t.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(t.src)));let o="";e&&(o=e.getAttribute("src")),Xt(o.split("/").slice(0,-1).join("/"))}}return Jt.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}(`assets/icons/${t}.svg`)},te={caret:'\n <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="6 9 12 15 18 9"></polyline>\n </svg>\n ',check:'\n <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor">\n <g transform="translate(3.428571, 3.428571)">\n <path d="M0,5.71428571 L3.42857143,9.14285714"></path>\n <path d="M9.14285714,0 L3.42857143,9.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n </svg>\n ',"chevron-left":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>\n </svg>\n ',"chevron-right":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>\n </svg>\n ',copy:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>\n </svg>\n ',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">\n <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>\n <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n </svg>\n ',"eye-slash":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">\n <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>\n <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>\n <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>\n </svg>\n ',eyedropper:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">\n <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>\n </svg>\n ',"grip-vertical":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">\n <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>\n </svg>\n ',indeterminate:'\n <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor" stroke-width="2">\n <g transform="translate(2.285714, 6.857143)">\n <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n ',"person-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">\n <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n </svg>\n ',"play-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>\n </svg>\n ',"pause-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>\n </svg>\n ',radio:'\n <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <circle cx="8" cy="8" r="3.42857143"></circle>\n </g>\n </g>\n </svg>\n ',"star-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">\n <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n </svg>\n ',"x-lg":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n ',"x-circle-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">\n <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>\n </svg>\n '},ee=[Qt,{name:"system",resolver:t=>t in te?`data:image/svg+xml,${encodeURIComponent(te[t])}`:""}],oe=[];function ie(t){return ee.find((e=>e.name===t))}var re,se=_`
401
- ${$t}
402
-
466
+ `,ee="";function oe(t){ee=t}var ie={name:"default",resolver:t=>function(t=""){if(!ee){const t=[...document.getElementsByTagName("script")],e=t.find((t=>t.hasAttribute("data-shoelace")));if(e)oe(e.getAttribute("data-shoelace"));else{const e=t.find((t=>/shoelace(\.min)?\.js($|\?)/.test(t.src)||/shoelace-autoloader(\.min)?\.js($|\?)/.test(t.src)));let o="";e&&(o=e.getAttribute("src")),oe(o.split("/").slice(0,-1).join("/"))}}return ee.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}(`assets/icons/${t}.svg`)},se={caret:'\n <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="6 9 12 15 18 9"></polyline>\n </svg>\n ',check:'\n <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor">\n <g transform="translate(3.428571, 3.428571)">\n <path d="M0,5.71428571 L3.42857143,9.14285714"></path>\n <path d="M9.14285714,0 L3.42857143,9.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n </svg>\n ',"chevron-left":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>\n </svg>\n ',"chevron-right":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>\n </svg>\n ',copy:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>\n </svg>\n ',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">\n <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>\n <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n </svg>\n ',"eye-slash":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">\n <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>\n <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>\n <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>\n </svg>\n ',eyedropper:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">\n <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>\n </svg>\n ',"grip-vertical":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">\n <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>\n </svg>\n ',indeterminate:'\n <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor" stroke-width="2">\n <g transform="translate(2.285714, 6.857143)">\n <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n ',"person-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">\n <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n </svg>\n ',"play-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>\n </svg>\n ',"pause-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>\n </svg>\n ',radio:'\n <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <circle cx="8" cy="8" r="3.42857143"></circle>\n </g>\n </g>\n </svg>\n ',"star-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">\n <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n </svg>\n ',"x-lg":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n ',"x-circle-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">\n <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>\n </svg>\n '},re=[ie,{name:"system",resolver:t=>t in se?`data:image/svg+xml,${encodeURIComponent(se[t])}`:""}],ne=[];function ae(t){return re.find((e=>e.name===t))}function le(t,e){!function(t){re=re.filter((e=>e.name!==t))}(t),re.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),ne.forEach((e=>{e.library===t&&e.setIcon()}))}var ce,he=k`
403
467
  :host {
404
468
  display: inline-block;
405
469
  width: 1em;
@@ -412,25 +476,25 @@ const Ut=1,Ht=3,Vt=4,Nt=t=>(...e)=>({_$litDirective$:t,values:e});let It=class{c
412
476
  height: 100%;
413
477
  width: 100%;
414
478
  }
415
- `,ne=Symbol(),ae=Symbol(),le=new Map,ce=class extends Ft{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let i;if(null==e?void 0:e.spriteSheet)return it`<svg part="svg">
479
+ `,de=Symbol(),pe=Symbol(),ue=new Map,fe=class extends Vt{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,e){var o;let i;if(null==e?void 0:e.spriteSheet){this.svg=nt`<svg part="svg">
416
480
  <use part="use" href="${t}"></use>
417
- </svg>`;try{if(i=await fetch(t,{mode:"cors"}),!i.ok)return 410===i.status?ne:ae}catch(t){return ae}try{const t=document.createElement("div");t.innerHTML=await i.text();const e=t.firstElementChild;if("svg"!==(null==(o=null==e?void 0:e.tagName)?void 0:o.toLowerCase()))return ne;re||(re=new DOMParser);const r=re.parseFromString(e.outerHTML,"text/html").body.querySelector("svg");return r?(r.part.add("svg"),document.adoptNode(r)):ne}catch(t){return ne}}connectedCallback(){var t;super.connectedCallback(),t=this,oe.push(t)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var t;super.disconnectedCallback(),t=this,oe=oe.filter((e=>e!==t))}getIconSource(){const t=ie(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),i=o?ie(this.library):void 0;if(!e)return void(this.svg=null);let r=le.get(e);if(r||(r=this.resolveIcon(e,i),le.set(e,r)),!this.initialRender)return;const s=await r;if(s===ae&&le.delete(e),e===this.getIconSource().url)if(((t,e)=>void 0===e?void 0!==t?._$litType$:t?._$litType$===e)(s))this.svg=s;else switch(s){case ae:case ne:this.svg=null,this.emit("sl-error");break;default:this.svg=s.cloneNode(!0),null==(t=null==i?void 0:i.mutator)||t.call(i,this.svg),this.emit("sl-load")}}render(){return this.svg}};ce.styles=se,h([Mt()],ce.prototype,"svg",2),h([Rt({reflect:!0})],ce.prototype,"name",2),h([Rt()],ce.prototype,"src",2),h([Rt()],ce.prototype,"label",2),h([Rt({reflect:!0})],ce.prototype,"library",2),h([Tt("label")],ce.prototype,"handleLabelChange",1),h([Tt(["name","src","library"])],ce.prototype,"setIcon",1);
481
+ </svg>`,await this.updateComplete;const o=this.shadowRoot.querySelector("[part='svg']");return"function"==typeof e.mutator&&e.mutator(o),this.svg}try{if(i=await fetch(t,{mode:"cors"}),!i.ok)return 410===i.status?de:pe}catch(t){return pe}try{const t=document.createElement("div");t.innerHTML=await i.text();const e=t.firstElementChild;if("svg"!==(null==(o=null==e?void 0:e.tagName)?void 0:o.toLowerCase()))return de;ce||(ce=new DOMParser);const s=ce.parseFromString(e.outerHTML,"text/html").body.querySelector("svg");return s?(s.part.add("svg"),document.adoptNode(s)):de}catch(t){return de}}connectedCallback(){var t;super.connectedCallback(),t=this,ne.push(t)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var t;super.disconnectedCallback(),t=this,ne=ne.filter((e=>e!==t))}getIconSource(){const t=ae(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:e,fromLibrary:o}=this.getIconSource(),i=o?ae(this.library):void 0;if(!e)return void(this.svg=null);let s=ue.get(e);if(s||(s=this.resolveIcon(e,i),ue.set(e,s)),!this.initialRender)return;const r=await s;if(r===pe&&ue.delete(e),e===this.getIconSource().url)if(((t,e)=>void 0!==t?._$litType$)(r))this.svg=r;else switch(r){case pe:case de:this.svg=null,this.emit("sl-error");break;default:this.svg=r.cloneNode(!0),null==(t=null==i?void 0:i.mutator)||t.call(i,this.svg),this.emit("sl-load")}}render(){return this.svg}};fe.styles=[Ft,he],d([Ut()],fe.prototype,"svg",2),d([Nt({reflect:!0})],fe.prototype,"name",2),d([Nt()],fe.prototype,"src",2),d([Nt()],fe.prototype,"label",2),d([Nt({reflect:!0})],fe.prototype,"library",2),d([Dt("label")],fe.prototype,"handleLabelChange",1),d([Dt(["name","src","library"])],fe.prototype,"setIcon",1);
418
482
  /**
419
483
  * @license
420
484
  * Copyright 2020 Google LLC
421
485
  * SPDX-License-Identifier: BSD-3-Clause
422
486
  */
423
- const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=>({_$litStatic$:e.reduce(((e,o,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+t[i+1]),t[0]),r:he}),ue=new Map,fe=(t=>(e,...o)=>{const i=o.length;let r,s;const n=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(s=o[c],r=de(s));)l+=r+e[++c],h=!0;c!==i&&a.push(s),n.push(l),c++}if(c===i&&n.push(e[i]),h){const t=n.join("$$lit$$");void 0===(e=ue.get(t))&&(n.raw=n,ue.set(t,e=n)),o=a}return t(e,...o)})(it);var be=class extends Ft{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?pe`a`:pe`button`;return fe`
487
+ const me=Symbol.for(""),be=t=>{if(t?.r===me)return t?._$litStatic$},ge=(t,...e)=>({_$litStatic$:e.reduce(((e,o,i)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(o)+t[i+1]),t[0]),r:me}),ve=new Map,ye=(t=>(e,...o)=>{const i=o.length;let s,r;const n=[],a=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(r=o[c],s=be(r));)l+=s+e[++c],h=!0;c!==i&&a.push(r),n.push(l),c++}if(c===i&&n.push(e[i]),h){const t=n.join("$$lit$$");void 0===(e=ve.get(t))&&(n.raw=n,ve.set(t,e=n)),o=a}return t(e,...o)})(nt);var we=class extends Vt{constructor(){super(...arguments),this.hasFocus=!1,this.label="",this.disabled=!1}handleBlur(){this.hasFocus=!1,this.emit("sl-blur")}handleFocus(){this.hasFocus=!0,this.emit("sl-focus")}handleClick(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}click(){this.button.click()}focus(t){this.button.focus(t)}blur(){this.button.blur()}render(){const t=!!this.href,e=t?ge`a`:ge`button`;return ye`
424
488
  <${e}
425
489
  part="base"
426
- class=${jt({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
427
- ?disabled=${Wt(t?void 0:this.disabled)}
428
- type=${Wt(t?void 0:"button")}
429
- href=${Wt(t?this.href:void 0)}
430
- target=${Wt(t?this.target:void 0)}
431
- download=${Wt(t?this.download:void 0)}
432
- rel=${Wt(t&&this.target?"noreferrer noopener":void 0)}
433
- role=${Wt(t?void 0:"button")}
490
+ class=${Zt({"icon-button":!0,"icon-button--disabled":!t&&this.disabled,"icon-button--focused":this.hasFocus})}
491
+ ?disabled=${Xt(t?void 0:this.disabled)}
492
+ type=${Xt(t?void 0:"button")}
493
+ href=${Xt(t?this.href:void 0)}
494
+ target=${Xt(t?this.target:void 0)}
495
+ download=${Xt(t?this.download:void 0)}
496
+ rel=${Xt(t&&this.target?"noreferrer noopener":void 0)}
497
+ role=${Xt(t?void 0:"button")}
434
498
  aria-disabled=${this.disabled?"true":"false"}
435
499
  aria-label="${this.label}"
436
500
  tabindex=${this.disabled?"-1":"0"}
@@ -440,20 +504,20 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
440
504
  >
441
505
  <sl-icon
442
506
  class="icon-button__icon"
443
- name=${Wt(this.name)}
444
- library=${Wt(this.library)}
445
- src=${Wt(this.src)}
507
+ name=${Xt(this.name)}
508
+ library=${Xt(this.library)}
509
+ src=${Xt(this.src)}
446
510
  aria-hidden="true"
447
511
  ></sl-icon>
448
512
  </${e}>
449
- `}};be.styles=Yt,be.dependencies={"sl-icon":ce},h([Dt(".icon-button")],be.prototype,"button",2),h([Mt()],be.prototype,"hasFocus",2),h([Rt()],be.prototype,"name",2),h([Rt()],be.prototype,"library",2),h([Rt()],be.prototype,"src",2),h([Rt()],be.prototype,"href",2),h([Rt()],be.prototype,"target",2),h([Rt()],be.prototype,"download",2),h([Rt()],be.prototype,"label",2),h([Rt({type:Boolean,reflect:!0})],be.prototype,"disabled",2);const ge=new Set,me=new MutationObserver(xe),ve=new Map;let ye,we=document.documentElement.dir||"ltr",_e=document.documentElement.lang||navigator.language;function $e(...t){t.map((t=>{const e=t.$code.toLowerCase();ve.has(e)?ve.set(e,Object.assign(Object.assign({},ve.get(e)),t)):ve.set(e,t),ye||(ye=t)})),xe()}function xe(){we=document.documentElement.dir||"ltr",_e=document.documentElement.lang||navigator.language,[...ge.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}me.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let ke=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){ge.add(this.host)}hostDisconnected(){ge.delete(this.host)}dir(){return`${this.host.dir||we}`.toLowerCase()}lang(){return`${this.host.lang||_e}`.toLowerCase()}getTranslationData(t){var e,o;const i=new Intl.Locale(t.replace(/_/g,"-")),r=null==i?void 0:i.language.toLowerCase(),s=null!==(o=null===(e=null==i?void 0:i.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==o?o:"";return{locale:i,language:r,region:s,primary:ve.get(`${r}-${s}`),secondary:ve.get(r)}}exists(t,e){var o;const{primary:i,secondary:r}=this.getTranslationData(null!==(o=e.lang)&&void 0!==o?o:this.lang());return e=Object.assign({includeFallback:!1},e),!!(i&&i[t]||r&&r[t]||e.includeFallback&&ye&&ye[t])}term(t,...e){const{primary:o,secondary:i}=this.getTranslationData(this.lang());let r;if(o&&o[t])r=o[t];else if(i&&i[t])r=i[t];else{if(!ye||!ye[t])return console.error(`No translation found for: ${String(t)}`),String(t);r=ye[t]}return"function"==typeof r?r(...e):r}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(t,e)}};var Ae={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};$e(Ae);var Ce=Ae,Ee=class extends ke{};$e(Ce);var Se=0,ze=class extends Ft{constructor(){super(...arguments),this.localize=new Ee(this),this.attrId=++Se,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(t){t.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,it`
513
+ `}};we.styles=[Ft,te],we.dependencies={"sl-icon":fe},d([Ht(".icon-button")],we.prototype,"button",2),d([Ut()],we.prototype,"hasFocus",2),d([Nt()],we.prototype,"name",2),d([Nt()],we.prototype,"library",2),d([Nt()],we.prototype,"src",2),d([Nt()],we.prototype,"href",2),d([Nt()],we.prototype,"target",2),d([Nt()],we.prototype,"download",2),d([Nt()],we.prototype,"label",2),d([Nt({type:Boolean,reflect:!0})],we.prototype,"disabled",2);const _e=new Set,xe=new MutationObserver(Se),$e=new Map;let ke,Ae=document.documentElement.dir||"ltr",Ce=document.documentElement.lang||navigator.language;function Ee(...t){t.map((t=>{const e=t.$code.toLowerCase();$e.has(e)?$e.set(e,Object.assign(Object.assign({},$e.get(e)),t)):$e.set(e,t),ke||(ke=t)})),Se()}function Se(){Ae=document.documentElement.dir||"ltr",Ce=document.documentElement.lang||navigator.language,[..._e.keys()].map((t=>{"function"==typeof t.requestUpdate&&t.requestUpdate()}))}xe.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]});let ze=class{constructor(t){this.host=t,this.host.addController(this)}hostConnected(){_e.add(this.host)}hostDisconnected(){_e.delete(this.host)}dir(){return`${this.host.dir||Ae}`.toLowerCase()}lang(){return`${this.host.lang||Ce}`.toLowerCase()}getTranslationData(t){var e,o;const i=new Intl.Locale(t.replace(/_/g,"-")),s=null==i?void 0:i.language.toLowerCase(),r=null!==(o=null===(e=null==i?void 0:i.region)||void 0===e?void 0:e.toLowerCase())&&void 0!==o?o:"";return{locale:i,language:s,region:r,primary:$e.get(`${s}-${r}`),secondary:$e.get(s)}}exists(t,e){var o;const{primary:i,secondary:s}=this.getTranslationData(null!==(o=e.lang)&&void 0!==o?o:this.lang());return e=Object.assign({includeFallback:!1},e),!!(i&&i[t]||s&&s[t]||e.includeFallback&&ke&&ke[t])}term(t,...e){const{primary:o,secondary:i}=this.getTranslationData(this.lang());let s;if(o&&o[t])s=o[t];else if(i&&i[t])s=i[t];else{if(!ke||!ke[t])return console.error(`No translation found for: ${String(t)}`),String(t);s=ke[t]}return"function"==typeof s?s(...e):s}date(t,e){return t=new Date(t),new Intl.DateTimeFormat(this.lang(),e).format(t)}number(t,e){return t=Number(t),isNaN(t)?"":new Intl.NumberFormat(this.lang(),e).format(t)}relativeTime(t,e,o){return new Intl.RelativeTimeFormat(this.lang(),o).format(t,e)}};var Te={$code:"en",$name:"English",$dir:"ltr",carousel:"Carousel",clearEntry:"Clear entry",close:"Close",copied:"Copied",copy:"Copy",currentValue:"Current value",error:"Error",goToSlide:(t,e)=>`Go to slide ${t} of ${e}`,hidePassword:"Hide password",loading:"Loading",nextSlide:"Next slide",numOptionsSelected:t=>0===t?"No options selected":1===t?"1 option selected":`${t} options selected`,previousSlide:"Previous slide",progress:"Progress",remove:"Remove",resize:"Resize",scrollToEnd:"Scroll to end",scrollToStart:"Scroll to start",selectAColorFromTheScreen:"Select a color from the screen",showPassword:"Show password",slideNum:t=>`Slide ${t}`,toggleColorFormat:"Toggle color format"};Ee(Te);var Pe=Te,Le=class extends ze{};Ee(Pe);var Oe=0,Re=class extends Vt{constructor(){super(...arguments),this.localize=new Le(this),this.attrId=++Oe,this.componentId=`sl-tab-${this.attrId}`,this.panel="",this.active=!1,this.closable=!1,this.disabled=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tab")}handleCloseClick(t){t.stopPropagation(),this.emit("sl-close")}handleActiveChange(){this.setAttribute("aria-selected",this.active?"true":"false")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}focus(t){this.tab.focus(t)}blur(){this.tab.blur()}render(){return this.id=this.id.length>0?this.id:this.componentId,nt`
450
514
  <div
451
515
  part="base"
452
- class=${jt({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
516
+ class=${Zt({tab:!0,"tab--active":this.active,"tab--closable":this.closable,"tab--disabled":this.disabled})}
453
517
  tabindex=${this.disabled?"-1":"0"}
454
518
  >
455
519
  <slot></slot>
456
- ${this.closable?it`
520
+ ${this.closable?nt`
457
521
  <sl-icon-button
458
522
  part="close-button"
459
523
  exportparts="base:close-button__base"
@@ -466,9 +530,7 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
466
530
  ></sl-icon-button>
467
531
  `:""}
468
532
  </div>
469
- `}};ze.styles=Gt,ze.dependencies={"sl-icon-button":be},h([Dt(".tab")],ze.prototype,"tab",2),h([Rt({reflect:!0})],ze.prototype,"panel",2),h([Rt({type:Boolean,reflect:!0})],ze.prototype,"active",2),h([Rt({type:Boolean})],ze.prototype,"closable",2),h([Rt({type:Boolean,reflect:!0})],ze.prototype,"disabled",2),h([Tt("active")],ze.prototype,"handleActiveChange",1),h([Tt("disabled")],ze.prototype,"handleDisabledChange",1),ze.define("sl-tab");var Pe=_`
470
- ${$t}
471
-
533
+ `}};Re.styles=[Ft,Qt],Re.dependencies={"sl-icon-button":we},d([Ht(".tab")],Re.prototype,"tab",2),d([Nt({reflect:!0})],Re.prototype,"panel",2),d([Nt({type:Boolean,reflect:!0})],Re.prototype,"active",2),d([Nt({type:Boolean})],Re.prototype,"closable",2),d([Nt({type:Boolean,reflect:!0})],Re.prototype,"disabled",2),d([Dt("active")],Re.prototype,"handleActiveChange",1),d([Dt("disabled")],Re.prototype,"handleDisabledChange",1),Re.define("sl-tab");var De=k`
472
534
  :host {
473
535
  --indicator-color: var(--sl-color-primary-600);
474
536
  --track-color: var(--sl-color-neutral-200);
@@ -697,15 +759,15 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
697
759
  .tab-group--end ::slotted(sl-tab-panel) {
698
760
  --padding: 0 var(--sl-spacing-medium);
699
761
  }
700
- `;function Te(t,e,o="vertical",i="smooth"){const r=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),s=r.top+e.scrollTop,n=r.left+e.scrollLeft,a=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,h=e.scrollTop+e.offsetHeight;"horizontal"!==o&&"both"!==o||(n<a?e.scrollTo({left:n,behavior:i}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:i})),"vertical"!==o&&"both"!==o||(s<c?e.scrollTo({top:s,behavior:i}):s+t.clientHeight>h&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:i}))}var Le=class extends Ft{constructor(){super(...arguments),this.localize=new Ee(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const t=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.repositionIndicator(),this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{var o;t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(null!=(o=this.getActiveTab())?o:this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sl-tab"===e.tagName.toLowerCase():"sl-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sl-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.active))}handleClick(t){const e=t.target.closest("sl-tab");(null==e?void 0:e.closest("sl-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sl-tab");if((null==e?void 0:e.closest("sl-tab-group"))===this&&(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){const e=this.tabs.find((t=>t.matches(":focus"))),o="rtl"===this.localize.dir();if("sl-tab"===(null==e?void 0:e.tagName.toLowerCase())){let i=this.tabs.indexOf(e);"Home"===t.key?i=0:"End"===t.key?i=this.tabs.length-1:["top","bottom"].includes(this.placement)&&t.key===(o?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&"ArrowUp"===t.key?i--:(["top","bottom"].includes(this.placement)&&t.key===(o?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&"ArrowDown"===t.key)&&i++,i<0&&(i=this.tabs.length-1),i>this.tabs.length-1&&(i=0),this.tabs[i].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[i],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Te(this.tabs[i],this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=l({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){const o=this.activeTab;this.activeTab=t,this.tabs.forEach((t=>t.active=t===this.activeTab)),this.panels.forEach((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Te(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(o&&this.emit("sl-tab-hide",{detail:{name:o.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}repositionIndicator(){const t=this.getActiveTab();if(!t)return;const e=t.clientWidth,o=t.clientHeight,i="rtl"===this.localize.dir(),r=this.getAllTabs(),s=r.slice(0,r.indexOf(t)).reduce(((t,e)=>({left:t.left+e.clientWidth,top:t.top+e.clientHeight})),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${e}px`,this.indicator.style.height="auto",this.indicator.style.translate=i?-1*s.left+"px":`${s.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${o}px`,this.indicator.style.translate=`0 ${s.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then((()=>this.updateScrollControls()))}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return it`
762
+ `;var Fe=new Set;function Me(t){if(Fe.add(t),!document.documentElement.classList.contains("sl-scroll-lock")){const t=function(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}()+function(){const t=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));return isNaN(t)||!t?0:t}();document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function Be(t){Fe.delete(t),0===Fe.size&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}function Ne(t,e,o="vertical",i="smooth"){const s=function(t,e){return{top:Math.round(t.getBoundingClientRect().top-e.getBoundingClientRect().top),left:Math.round(t.getBoundingClientRect().left-e.getBoundingClientRect().left)}}(t,e),r=s.top+e.scrollTop,n=s.left+e.scrollLeft,a=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,h=e.scrollTop+e.offsetHeight;"horizontal"!==o&&"both"!==o||(n<a?e.scrollTo({left:n,behavior:i}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:i})),"vertical"!==o&&"both"!==o||(r<c?e.scrollTo({top:r,behavior:i}):r+t.clientHeight>h&&e.scrollTo({top:r-e.offsetHeight+t.clientHeight,behavior:i}))}var Ue=class extends Vt{constructor(){super(...arguments),this.localize=new Le(this),this.tabs=[],this.panels=[],this.hasScrollControls=!1,this.placement="top",this.activation="auto",this.noScrollControls=!1}connectedCallback(){const t=Promise.all([customElements.whenDefined("sl-tab"),customElements.whenDefined("sl-tab-panel")]);super.connectedCallback(),this.resizeObserver=new ResizeObserver((()=>{this.repositionIndicator(),this.updateScrollControls()})),this.mutationObserver=new MutationObserver((t=>{t.some((t=>!["aria-labelledby","aria-controls"].includes(t.attributeName)))&&setTimeout((()=>this.setAriaLabels())),t.some((t=>"disabled"===t.attributeName))&&this.syncTabsAndPanels()})),this.updateComplete.then((()=>{this.syncTabsAndPanels(),this.mutationObserver.observe(this,{attributes:!0,childList:!0,subtree:!0}),this.resizeObserver.observe(this.nav),t.then((()=>{new IntersectionObserver(((t,e)=>{var o;t[0].intersectionRatio>0&&(this.setAriaLabels(),this.setActiveTab(null!=(o=this.getActiveTab())?o:this.tabs[0],{emitEvents:!1}),e.unobserve(t[0].target))})).observe(this.tabGroup)}))}))}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver.disconnect(),this.resizeObserver.unobserve(this.nav)}getAllTabs(t={includeDisabled:!0}){return[...this.shadowRoot.querySelector('slot[name="nav"]').assignedElements()].filter((e=>t.includeDisabled?"sl-tab"===e.tagName.toLowerCase():"sl-tab"===e.tagName.toLowerCase()&&!e.disabled))}getAllPanels(){return[...this.body.assignedElements()].filter((t=>"sl-tab-panel"===t.tagName.toLowerCase()))}getActiveTab(){return this.tabs.find((t=>t.active))}handleClick(t){const e=t.target.closest("sl-tab");(null==e?void 0:e.closest("sl-tab-group"))===this&&null!==e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}handleKeyDown(t){const e=t.target.closest("sl-tab");if((null==e?void 0:e.closest("sl-tab-group"))===this&&(["Enter"," "].includes(t.key)&&null!==e&&(this.setActiveTab(e,{scrollBehavior:"smooth"}),t.preventDefault()),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(t.key))){const e=this.tabs.find((t=>t.matches(":focus"))),o="rtl"===this.localize.dir();if("sl-tab"===(null==e?void 0:e.tagName.toLowerCase())){let i=this.tabs.indexOf(e);"Home"===t.key?i=0:"End"===t.key?i=this.tabs.length-1:["top","bottom"].includes(this.placement)&&t.key===(o?"ArrowRight":"ArrowLeft")||["start","end"].includes(this.placement)&&"ArrowUp"===t.key?i--:(["top","bottom"].includes(this.placement)&&t.key===(o?"ArrowLeft":"ArrowRight")||["start","end"].includes(this.placement)&&"ArrowDown"===t.key)&&i++,i<0&&(i=this.tabs.length-1),i>this.tabs.length-1&&(i=0),this.tabs[i].focus({preventScroll:!0}),"auto"===this.activation&&this.setActiveTab(this.tabs[i],{scrollBehavior:"smooth"}),["top","bottom"].includes(this.placement)&&Ne(this.tabs[i],this.nav,"horizontal"),t.preventDefault()}}}handleScrollToStart(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft+this.nav.clientWidth:this.nav.scrollLeft-this.nav.clientWidth,behavior:"smooth"})}handleScrollToEnd(){this.nav.scroll({left:"rtl"===this.localize.dir()?this.nav.scrollLeft-this.nav.clientWidth:this.nav.scrollLeft+this.nav.clientWidth,behavior:"smooth"})}setActiveTab(t,e){if(e=c({emitEvents:!0,scrollBehavior:"auto"},e),t!==this.activeTab&&!t.disabled){const o=this.activeTab;this.activeTab=t,this.tabs.forEach((t=>t.active=t===this.activeTab)),this.panels.forEach((t=>{var e;return t.active=t.name===(null==(e=this.activeTab)?void 0:e.panel)})),this.syncIndicator(),["top","bottom"].includes(this.placement)&&Ne(this.activeTab,this.nav,"horizontal",e.scrollBehavior),e.emitEvents&&(o&&this.emit("sl-tab-hide",{detail:{name:o.panel}}),this.emit("sl-tab-show",{detail:{name:this.activeTab.panel}}))}}setAriaLabels(){this.tabs.forEach((t=>{const e=this.panels.find((e=>e.name===t.panel));e&&(t.setAttribute("aria-controls",e.getAttribute("id")),e.setAttribute("aria-labelledby",t.getAttribute("id")))}))}repositionIndicator(){const t=this.getActiveTab();if(!t)return;const e=t.clientWidth,o=t.clientHeight,i="rtl"===this.localize.dir(),s=this.getAllTabs(),r=s.slice(0,s.indexOf(t)).reduce(((t,e)=>({left:t.left+e.clientWidth,top:t.top+e.clientHeight})),{left:0,top:0});switch(this.placement){case"top":case"bottom":this.indicator.style.width=`${e}px`,this.indicator.style.height="auto",this.indicator.style.translate=i?-1*r.left+"px":`${r.left}px`;break;case"start":case"end":this.indicator.style.width="auto",this.indicator.style.height=`${o}px`,this.indicator.style.translate=`0 ${r.top}px`}}syncTabsAndPanels(){this.tabs=this.getAllTabs({includeDisabled:!1}),this.panels=this.getAllPanels(),this.syncIndicator(),this.updateComplete.then((()=>this.updateScrollControls()))}updateScrollControls(){this.noScrollControls?this.hasScrollControls=!1:this.hasScrollControls=["top","bottom"].includes(this.placement)&&this.nav.scrollWidth>this.nav.clientWidth+1}syncIndicator(){this.getActiveTab()?(this.indicator.style.display="block",this.repositionIndicator()):this.indicator.style.display="none"}show(t){const e=this.tabs.find((e=>e.panel===t));e&&this.setActiveTab(e,{scrollBehavior:"smooth"})}render(){const t="rtl"===this.localize.dir();return nt`
701
763
  <div
702
764
  part="base"
703
- class=${jt({"tab-group":!0,"tab-group--top":"top"===this.placement,"tab-group--bottom":"bottom"===this.placement,"tab-group--start":"start"===this.placement,"tab-group--end":"end"===this.placement,"tab-group--rtl":"rtl"===this.localize.dir(),"tab-group--has-scroll-controls":this.hasScrollControls})}
765
+ class=${Zt({"tab-group":!0,"tab-group--top":"top"===this.placement,"tab-group--bottom":"bottom"===this.placement,"tab-group--start":"start"===this.placement,"tab-group--end":"end"===this.placement,"tab-group--rtl":"rtl"===this.localize.dir(),"tab-group--has-scroll-controls":this.hasScrollControls})}
704
766
  @click=${this.handleClick}
705
767
  @keydown=${this.handleKeyDown}
706
768
  >
707
769
  <div class="tab-group__nav-container" part="nav">
708
- ${this.hasScrollControls?it`
770
+ ${this.hasScrollControls?nt`
709
771
  <sl-icon-button
710
772
  part="scroll-button scroll-button--start"
711
773
  exportparts="base:scroll-button__base"
@@ -724,7 +786,7 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
724
786
  </div>
725
787
  </div>
726
788
 
727
- ${this.hasScrollControls?it`
789
+ ${this.hasScrollControls?nt`
728
790
  <sl-icon-button
729
791
  part="scroll-button scroll-button--end"
730
792
  exportparts="base:scroll-button__base"
@@ -739,9 +801,7 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
739
801
 
740
802
  <slot part="body" class="tab-group__body" @slotchange=${this.syncTabsAndPanels}></slot>
741
803
  </div>
742
- `}};Le.styles=Pe,Le.dependencies={"sl-icon-button":be},h([Dt(".tab-group")],Le.prototype,"tabGroup",2),h([Dt(".tab-group__body")],Le.prototype,"body",2),h([Dt(".tab-group__nav")],Le.prototype,"nav",2),h([Dt(".tab-group__indicator")],Le.prototype,"indicator",2),h([Mt()],Le.prototype,"hasScrollControls",2),h([Rt()],Le.prototype,"placement",2),h([Rt()],Le.prototype,"activation",2),h([Rt({attribute:"no-scroll-controls",type:Boolean})],Le.prototype,"noScrollControls",2),h([Tt("noScrollControls",{waitUntilFirstUpdate:!0})],Le.prototype,"updateScrollControls",1),h([Tt("placement",{waitUntilFirstUpdate:!0})],Le.prototype,"syncIndicator",1),Le.define("sl-tab-group");var Oe=_`
743
- ${$t}
744
-
804
+ `}};Ue.styles=[Ft,De],Ue.dependencies={"sl-icon-button":we},d([Ht(".tab-group")],Ue.prototype,"tabGroup",2),d([Ht(".tab-group__body")],Ue.prototype,"body",2),d([Ht(".tab-group__nav")],Ue.prototype,"nav",2),d([Ht(".tab-group__indicator")],Ue.prototype,"indicator",2),d([Ut()],Ue.prototype,"hasScrollControls",2),d([Nt()],Ue.prototype,"placement",2),d([Nt()],Ue.prototype,"activation",2),d([Nt({attribute:"no-scroll-controls",type:Boolean})],Ue.prototype,"noScrollControls",2),d([Dt("noScrollControls",{waitUntilFirstUpdate:!0})],Ue.prototype,"updateScrollControls",1),d([Dt("placement",{waitUntilFirstUpdate:!0})],Ue.prototype,"syncIndicator",1),Ue.define("sl-tab-group");var He=k`
745
805
  :host {
746
806
  --padding: 0;
747
807
 
@@ -756,14 +816,12 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
756
816
  display: block;
757
817
  padding: var(--padding);
758
818
  }
759
- `,Re=0,Me=class extends Ft{constructor(){super(...arguments),this.attrId=++Re,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return it`
819
+ `,Ve=0,Ie=class extends Vt{constructor(){super(...arguments),this.attrId=++Ve,this.componentId=`sl-tab-panel-${this.attrId}`,this.name="",this.active=!1}connectedCallback(){super.connectedCallback(),this.id=this.id.length>0?this.id:this.componentId,this.setAttribute("role","tabpanel")}handleActiveChange(){this.setAttribute("aria-hidden",this.active?"false":"true")}render(){return nt`
760
820
  <slot
761
821
  part="base"
762
- class=${jt({"tab-panel":!0,"tab-panel--active":this.active})}
822
+ class=${Zt({"tab-panel":!0,"tab-panel--active":this.active})}
763
823
  ></slot>
764
- `}};Me.styles=Oe,h([Rt({reflect:!0})],Me.prototype,"name",2),h([Rt({type:Boolean,reflect:!0})],Me.prototype,"active",2),h([Tt("active")],Me.prototype,"handleActiveChange",1),Me.define("sl-tab-panel");var Be=_`
765
- ${$t}
766
-
824
+ `}};Ie.styles=[Ft,He],d([Nt({reflect:!0})],Ie.prototype,"name",2),d([Nt({type:Boolean,reflect:!0})],Ie.prototype,"active",2),d([Dt("active")],Ie.prototype,"handleActiveChange",1),Ie.define("sl-tab-panel");var We=k`
767
825
  :host {
768
826
  --max-width: 20rem;
769
827
  --hide-delay: 0ms;
@@ -813,9 +871,7 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
813
871
  user-select: none;
814
872
  -webkit-user-select: none;
815
873
  }
816
- `,De=_`
817
- ${$t}
818
-
874
+ `,je=k`
819
875
  :host {
820
876
  --arrow-color: var(--sl-color-neutral-1000);
821
877
  --arrow-size: 6px;
@@ -873,29 +929,29 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
873
929
  var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
874
930
  );
875
931
  }
876
- `;const Fe=Math.min,Ue=Math.max,He=Math.round,Ve=Math.floor,Ne=t=>({x:t,y:t}),Ie={left:"right",right:"left",bottom:"top",top:"bottom"},je={start:"end",end:"start"};function We(t,e,o){return Ue(t,Fe(e,o))}function qe(t,e){return"function"==typeof t?t(e):t}function Ke(t){return t.split("-")[0]}function Ze(t){return t.split("-")[1]}function Ge(t){return"x"===t?"y":"x"}function Ye(t){return"y"===t?"height":"width"}function Je(t){return["top","bottom"].includes(Ke(t))?"y":"x"}function Xe(t){return Ge(Je(t))}function Qe(t){return t.replace(/start|end/g,(t=>je[t]))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Ie[t]))}function eo(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function oo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function io(t,e,o){let{reference:i,floating:r}=t;const s=Je(e),n=Xe(e),a=Ye(n),l=Ke(e),c="y"===s,h=i.x+i.width/2-r.width/2,d=i.y+i.height/2-r.height/2,p=i[a]/2-r[a]/2;let u;switch(l){case"top":u={x:h,y:i.y-r.height};break;case"bottom":u={x:h,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:d};break;case"left":u={x:i.x-r.width,y:d};break;default:u={x:i.x,y:i.y}}switch(Ze(e)){case"start":u[n]-=p*(o&&c?-1:1);break;case"end":u[n]+=p*(o&&c?-1:1)}return u}async function ro(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:s,rects:n,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:u=0}=qe(e,t),f=eo(u),b=a[p?"floating"===d?"reference":"floating":d],g=oo(await s.getClippingRect({element:null==(o=await(null==s.isElement?void 0:s.isElement(b)))||o?b:b.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),m="floating"===d?{...n.floating,x:i,y:r}:n.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),y=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},w=oo(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:v,strategy:l}):m);return{top:(g.top-w.top+f.top)/y.y,bottom:(w.bottom-g.bottom+f.bottom)/y.y,left:(g.left-w.left+f.left)/y.x,right:(w.right-g.right+f.right)/y.x}}const so=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:r,y:s,placement:n,middlewareData:a}=e,l=await async function(t,e){const{placement:o,platform:i,elements:r}=t,s=await(null==i.isRTL?void 0:i.isRTL(r.floating)),n=Ke(o),a=Ze(o),l="y"===Je(o),c=["left","top"].includes(n)?-1:1,h=s&&l?-1:1,d=qe(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof f&&(u="end"===a?-1*f:f),l?{x:u*h,y:p*c}:{x:p*c,y:u*h}}(e,t);return n===(null==(o=a.offset)?void 0:o.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:n}}}}};function no(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function ao(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof ao(t).Node}function ho(t){return t instanceof Element||t instanceof ao(t).Element}function po(t){return t instanceof HTMLElement||t instanceof ao(t).HTMLElement}function uo(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof ao(t).ShadowRoot)}function fo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=yo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function bo(t){return["table","td","th"].includes(no(t))}function go(t){const e=mo(),o=yo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function mo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function vo(t){return["html","body","#document"].includes(no(t))}function yo(t){return ao(t).getComputedStyle(t)}function wo(t){return ho(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function _o(t){if("html"===no(t))return t;const e=t.assignedSlot||t.parentNode||uo(t)&&t.host||lo(t);return uo(e)?e.host:e}function $o(t){const e=_o(t);return vo(e)?t.ownerDocument?t.ownerDocument.body:t.body:po(e)&&fo(e)?e:$o(e)}function xo(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=$o(t),s=r===(null==(i=t.ownerDocument)?void 0:i.body),n=ao(r);return s?e.concat(n,n.visualViewport||[],fo(r)?r:[],n.frameElement&&o?xo(n.frameElement):[]):e.concat(r,xo(r,[],o))}function ko(t){const e=yo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=po(t),s=r?t.offsetWidth:o,n=r?t.offsetHeight:i,a=He(o)!==s||He(i)!==n;return a&&(o=s,i=n),{width:o,height:i,$:a}}function Ao(t){return ho(t)?t:t.contextElement}function Co(t){const e=Ao(t);if(!po(e))return Ne(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:s}=ko(e);let n=(s?He(o.width):o.width)/i,a=(s?He(o.height):o.height)/r;return n&&Number.isFinite(n)||(n=1),a&&Number.isFinite(a)||(a=1),{x:n,y:a}}const Eo=Ne(0);function So(t){const e=ao(t);return mo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Eo}function zo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),s=Ao(t);let n=Ne(1);e&&(i?ho(i)&&(n=Co(i)):n=Co(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==ao(t))&&e}(s,o,i)?So(s):Ne(0);let l=(r.left+a.x)/n.x,c=(r.top+a.y)/n.y,h=r.width/n.x,d=r.height/n.y;if(s){const t=ao(s),e=i&&ho(i)?ao(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Co(o),e=o.getBoundingClientRect(),i=yo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,s=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,d*=t.y,l+=r,c+=s,o=ao(o).frameElement}}return oo({width:h,height:d,x:l,y:c})}function Po(t){return zo(lo(t)).left+wo(t).scrollLeft}function To(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=ao(t),i=lo(t),r=o.visualViewport;let s=i.clientWidth,n=i.clientHeight,a=0,l=0;if(r){s=r.width,n=r.height;const t=mo();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:n,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=wo(t),i=t.ownerDocument.body,r=Ue(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=Ue(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let n=-o.scrollLeft+Po(t);const a=-o.scrollTop;return"rtl"===yo(i).direction&&(n+=Ue(e.clientWidth,i.clientWidth)-r),{width:r,height:s,x:n,y:a}}(lo(t));else if(ho(e))i=function(t,e){const o=zo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,s=po(t)?Co(t):Ne(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:r*s.x,y:i*s.y}}(e,o);else{const o=So(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return oo(i)}function Lo(t,e){const o=_o(t);return!(o===e||!ho(o)||vo(o))&&("fixed"===yo(o).position||Lo(o,e))}function Oo(t,e,o){const i=po(e),r=lo(e),s="fixed"===o,n=zo(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=Ne(0);if(i||!i&&!s)if(("body"!==no(e)||fo(r))&&(a=wo(e)),i){const t=zo(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Po(r));return{x:n.left+a.scrollLeft-l.x,y:n.top+a.scrollTop-l.y,width:n.width,height:n.height}}function Ro(t,e){return po(t)&&"fixed"!==yo(t).position?e?e(t):t.offsetParent:null}function Mo(t,e){const o=ao(t);if(!po(t))return o;let i=Ro(t,e);for(;i&&bo(i)&&"static"===yo(i).position;)i=Ro(i,e);return i&&("html"===no(i)||"body"===no(i)&&"static"===yo(i).position&&!go(i))?o:i||function(t){let e=_o(t);for(;po(e)&&!vo(e);){if(go(e))return e;e=_o(e)}return null}(t)||o}const Bo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=po(o),s=lo(o);if(o===s)return e;let n={scrollLeft:0,scrollTop:0},a=Ne(1);const l=Ne(0);if((r||!r&&"fixed"!==i)&&(("body"!==no(o)||fo(s))&&(n=wo(o)),po(o))){const t=zo(o);a=Co(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-n.scrollLeft*a.x+l.x,y:e.y*a.y-n.scrollTop*a.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const s=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=xo(t,[],!1).filter((t=>ho(t)&&"body"!==no(t))),r=null;const s="fixed"===yo(t).position;let n=s?_o(t):t;for(;ho(n)&&!vo(n);){const e=yo(n),o=go(n);o||"fixed"!==e.position||(r=null),(s?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||fo(n)&&!o&&Lo(t,n))?i=i.filter((t=>t!==n)):r=e,n=_o(n)}return e.set(t,i),i}(e,this._c):[].concat(o),i],n=s[0],a=s.reduce(((t,o)=>{const i=To(e,o,r);return t.top=Ue(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Ue(i.left,t.left),t}),To(e,n,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Mo,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Mo,s=this.getDimensions;return{reference:Oo(e,await r(o),i),floating:{x:0,y:0,...await s(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=ko(t);return{width:e,height:o}},getScale:Co,isElement:ho,isRTL:function(t){return"rtl"===yo(t).direction}};function Do(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Ao(t),h=r||s?[...c?xo(c):[],...xo(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",o,{passive:!0}),s&&t.addEventListener("resize",o)}));const d=c&&a?function(t,e){let o,i=null;const r=lo(t);function s(){clearTimeout(o),i&&i.disconnect(),i=null}return function n(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:c,top:h,width:d,height:p}=t.getBoundingClientRect();if(a||e(),!d||!p)return;const u={rootMargin:-Ve(h)+"px "+-Ve(r.clientWidth-(c+d))+"px "+-Ve(r.clientHeight-(h+p))+"px "+-Ve(c)+"px",threshold:Ue(0,Fe(1,l))||1};let f=!0;function b(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return n();e?n(!1,e):o=setTimeout((()=>{n(!1,1e-7)}),100)}f=!1}try{i=new IntersectionObserver(b,{...u,root:r.ownerDocument})}catch(t){i=new IntersectionObserver(b,u)}i.observe(t)}(!0),s}(c,o):null;let p,u=-1,f=null;n&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{f&&f.observe(e)}))),o()})),c&&!l&&f.observe(c),f.observe(e));let b=l?zo(t):null;return l&&function e(){const i=zo(t);!b||i.x===b.x&&i.y===b.y&&i.width===b.width&&i.height===b.height||o();b=i,p=requestAnimationFrame(e)}(),o(),()=>{h.forEach((t=>{r&&t.removeEventListener("scroll",o),s&&t.removeEventListener("resize",o)})),d&&d(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Fo=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:s=!0,crossAxis:n=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=qe(t,e),c={x:o,y:i},h=await ro(e,l),d=Je(Ke(r)),p=Ge(d);let u=c[p],f=c[d];if(s){const t="y"===p?"bottom":"right";u=We(u+h["y"===p?"top":"left"],u,u-h[t])}if(n){const t="y"===d?"bottom":"right";f=We(f+h["y"===d?"top":"left"],f,f-h[t])}const b=a.fn({...e,[p]:u,[d]:f});return{...b,data:{x:b.x-o,y:b.y-i}}}}},Uo=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:r,middlewareData:s,rects:n,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:b=!0,...g}=qe(t,e);if(null!=(o=s.arrow)&&o.alignmentOffset)return{};const m=Ke(r),v=Ke(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!b?[to(a)]:function(t){const e=to(t);return[Qe(t),e,Qe(e)]}(a));p||"none"===f||w.push(...function(t,e,o,i){const r=Ze(t);let s=function(t,e,o){const i=["left","right"],r=["right","left"],s=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return o?e?r:i:e?i:r;case"left":case"right":return e?s:n;default:return[]}}(Ke(t),"start"===o,i);return r&&(s=s.map((t=>t+"-"+r)),e&&(s=s.concat(s.map(Qe)))),s}(a,b,f,y));const _=[a,...w],$=await ro(e,g),x=[];let k=(null==(i=s.flip)?void 0:i.overflows)||[];if(h&&x.push($[m]),d){const t=function(t,e,o){void 0===o&&(o=!1);const i=Ze(t),r=Xe(t),s=Ye(r);let n="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(n=to(n)),[n,to(n)]}(r,n,y);x.push($[t[0]],$[t[1]])}if(k=[...k,{placement:r,overflows:x}],!x.every((t=>t<=0))){var A,C;const t=((null==(A=s.flip)?void 0:A.index)||0)+1,e=_[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let o=null==(C=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!o)switch(u){case"bestFit":{var E;const t=null==(E=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(o=t);break}case"initialPlacement":o=a}if(r!==o)return{reset:{placement:o}}}return{}}}},Ho=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:r,elements:s}=e,{apply:n=(()=>{}),...a}=qe(t,e),l=await ro(e,a),c=Ke(o),h=Ze(o),d="y"===Je(o),{width:p,height:u}=i.floating;let f,b;"top"===c||"bottom"===c?(f=c,b=h===(await(null==r.isRTL?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(b=c,f="end"===h?"top":"bottom");const g=u-l[f],m=p-l[b],v=!e.middlewareData.shift;let y=g,w=m;if(d){const t=p-l.left-l.right;w=h||v?Fe(m,t):t}else{const t=u-l.top-l.bottom;y=h||v?Fe(g,t):t}if(v&&!h){const t=Ue(l.left,0),e=Ue(l.right,0),o=Ue(l.top,0),i=Ue(l.bottom,0);d?w=p-2*(0!==t||0!==e?t+e:Ue(l.left,l.right)):y=u-2*(0!==o||0!==i?o+i:Ue(l.top,l.bottom))}await n({...e,availableWidth:w,availableHeight:y});const _=await r.getDimensions(s.floating);return p!==_.width||u!==_.height?{reset:{rects:!0}}:{}}}},Vo=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:r,rects:s,platform:n,elements:a,middlewareData:l}=e,{element:c,padding:h=0}=qe(t,e)||{};if(null==c)return{};const d=eo(h),p={x:o,y:i},u=Xe(r),f=Ye(u),b=await n.getDimensions(c),g="y"===u,m=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=s.reference[f]+s.reference[u]-p[u]-s.floating[f],_=p[u]-s.reference[u],$=await(null==n.getOffsetParent?void 0:n.getOffsetParent(c));let x=$?$[y]:0;x&&await(null==n.isElement?void 0:n.isElement($))||(x=a.floating[y]||s.floating[f]);const k=w/2-_/2,A=x/2-b[f]/2-1,C=Fe(d[m],A),E=Fe(d[v],A),S=C,z=x-b[f]-E,P=x/2-b[f]/2+k,T=We(S,P,z),L=!l.arrow&&null!=Ze(r)&&P!=T&&s.reference[f]/2-(P<S?C:E)-b[f]/2<0,O=L?P<S?P-S:P-z:0;return{[u]:p[u]+O,data:{[u]:T,centerOffset:P-T-O,...L&&{alignmentOffset:O}},reset:L}}}),No=(t,e,o)=>{const i=new Map,r={platform:Bo,...o},s={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:n}=o,a=s.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(e));let c=await n.getElementRects({reference:t,floating:e,strategy:r}),{x:h,y:d}=io(c,i,l),p=i,u={},f=0;for(let o=0;o<a.length;o++){const{name:s,fn:b}=a[o],{x:g,y:m,data:v,reset:y}=await b({x:h,y:d,initialPlacement:i,placement:p,strategy:r,middlewareData:u,rects:c,platform:n,elements:{reference:t,floating:e}});h=null!=g?g:h,d=null!=m?m:d,u={...u,[s]:{...u[s],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await n.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:h,y:d}=io(c,p,l))),o=-1)}return{x:h,y:d,placement:p,strategy:r,middlewareData:u}})(t,e,{...r,platform:s})};function Io(t){return function(t){for(let e=t;e;e=jo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=jo(t);e;e=jo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function jo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Wo=class extends Ft{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let o=0,i=0,r=0,s=0,n=0,a=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(o=t.left,i=t.bottom,r=t.right,s=t.bottom,n=e.left,a=e.top,l=e.right,c=e.top):(o=e.left,i=e.bottom,r=e.right,s=e.bottom,n=t.left,a=t.top,l=t.right,c=t.top):t.left<e.left?(o=t.right,i=t.top,r=e.left,s=e.top,n=t.right,a=t.bottom,l=e.left,c=e.bottom):(o=e.right,i=e.top,r=t.left,s=t.top,n=e.right,a=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${o}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${r}px`),this.style.setProperty("--hover-bridge-top-right-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${n}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${a}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||function(t){return null!==t&&"object"==typeof t&&"getBoundingClientRect"in t}(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=Do(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[so({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Ho({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=o?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Uo({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Fo({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Ho({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Vo({element:this.arrowEl,padding:this.arrowPadding}));const e="absolute"===this.strategy?t=>Bo.getOffsetParent(t,Io):Bo.getOffsetParent;No(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:c(l({},Bo),{getOffsetParent:e})}).then((({x:t,y:e,middlewareData:o,placement:i})=>{const r="rtl"===getComputedStyle(this).direction,s={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=o.arrow.x,e=o.arrow.y;let i="",n="",a="",l="";if("start"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",n=r?o:"",l=r?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";n=r?"":o,l=r?o:"",a="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:n,bottom:a,left:l,[s]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return it`
932
+ `;const qe=Math.min,Ke=Math.max,Ze=Math.round,Xe=Math.floor,Ye=t=>({x:t,y:t}),Ge={left:"right",right:"left",bottom:"top",top:"bottom"},Je={start:"end",end:"start"};function Qe(t,e,o){return Ke(t,qe(e,o))}function to(t,e){return"function"==typeof t?t(e):t}function eo(t){return t.split("-")[0]}function oo(t){return t.split("-")[1]}function io(t){return"x"===t?"y":"x"}function so(t){return"y"===t?"height":"width"}function ro(t){return["top","bottom"].includes(eo(t))?"y":"x"}function no(t){return io(ro(t))}function ao(t){return t.replace(/start|end/g,(t=>Je[t]))}function lo(t){return t.replace(/left|right|bottom|top/g,(t=>Ge[t]))}function co(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function ho(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function po(t,e,o){let{reference:i,floating:s}=t;const r=ro(e),n=no(e),a=so(n),l=eo(e),c="y"===r,h=i.x+i.width/2-s.width/2,d=i.y+i.height/2-s.height/2,p=i[a]/2-s[a]/2;let u;switch(l){case"top":u={x:h,y:i.y-s.height};break;case"bottom":u={x:h,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:d};break;case"left":u={x:i.x-s.width,y:d};break;default:u={x:i.x,y:i.y}}switch(oo(e)){case"start":u[n]-=p*(o&&c?-1:1);break;case"end":u[n]+=p*(o&&c?-1:1)}return u}async function uo(t,e){var o;void 0===e&&(e={});const{x:i,y:s,platform:r,rects:n,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:u=0}=to(e,t),f=co(u),m=a[p?"floating"===d?"reference":"floating":d],b=ho(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(m)))||o?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),g="floating"===d?{...n.floating,x:i,y:s}:n.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),y=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=ho(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:v,strategy:l}):g);return{top:(b.top-w.top+f.top)/y.y,bottom:(w.bottom-b.bottom+f.bottom)/y.y,left:(b.left-w.left+f.left)/y.x,right:(w.right-b.right+f.right)/y.x}}const fo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var o,i;const{x:s,y:r,placement:n,middlewareData:a}=e,l=await async function(t,e){const{placement:o,platform:i,elements:s}=t,r=await(null==i.isRTL?void 0:i.isRTL(s.floating)),n=eo(o),a=oo(o),l="y"===ro(o),c=["left","top"].includes(n)?-1:1,h=r&&l?-1:1,d=to(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof f&&(u="end"===a?-1*f:f),l?{x:u*h,y:p*c}:{x:p*c,y:u*h}}(e,t);return n===(null==(o=a.offset)?void 0:o.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:s+l.x,y:r+l.y,data:{...l,placement:n}}}}};function mo(t){return vo(t)?(t.nodeName||"").toLowerCase():"#document"}function bo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function go(t){var e;return null==(e=(vo(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function vo(t){return t instanceof Node||t instanceof bo(t).Node}function yo(t){return t instanceof Element||t instanceof bo(t).Element}function wo(t){return t instanceof HTMLElement||t instanceof bo(t).HTMLElement}function _o(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof bo(t).ShadowRoot)}function xo(t){const{overflow:e,overflowX:o,overflowY:i,display:s}=Eo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(s)}function $o(t){return["table","td","th"].includes(mo(t))}function ko(t){const e=Ao(),o=Eo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Ao(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Co(t){return["html","body","#document"].includes(mo(t))}function Eo(t){return bo(t).getComputedStyle(t)}function So(t){return yo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function zo(t){if("html"===mo(t))return t;const e=t.assignedSlot||t.parentNode||_o(t)&&t.host||go(t);return _o(e)?e.host:e}function To(t){const e=zo(t);return Co(e)?t.ownerDocument?t.ownerDocument.body:t.body:wo(e)&&xo(e)?e:To(e)}function Po(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const s=To(t),r=s===(null==(i=t.ownerDocument)?void 0:i.body),n=bo(s);return r?e.concat(n,n.visualViewport||[],xo(s)?s:[],n.frameElement&&o?Po(n.frameElement):[]):e.concat(s,Po(s,[],o))}function Lo(t){const e=Eo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const s=wo(t),r=s?t.offsetWidth:o,n=s?t.offsetHeight:i,a=Ze(o)!==r||Ze(i)!==n;return a&&(o=r,i=n),{width:o,height:i,$:a}}function Oo(t){return yo(t)?t:t.contextElement}function Ro(t){const e=Oo(t);if(!wo(e))return Ye(1);const o=e.getBoundingClientRect(),{width:i,height:s,$:r}=Lo(e);let n=(r?Ze(o.width):o.width)/i,a=(r?Ze(o.height):o.height)/s;return n&&Number.isFinite(n)||(n=1),a&&Number.isFinite(a)||(a=1),{x:n,y:a}}const Do=Ye(0);function Fo(t){const e=bo(t);return Ao()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Do}function Mo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const s=t.getBoundingClientRect(),r=Oo(t);let n=Ye(1);e&&(i?yo(i)&&(n=Ro(i)):n=Ro(t));const a=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==bo(t))&&e}(r,o,i)?Fo(r):Ye(0);let l=(s.left+a.x)/n.x,c=(s.top+a.y)/n.y,h=s.width/n.x,d=s.height/n.y;if(r){const t=bo(r),e=i&&yo(i)?bo(i):i;let o=t,s=o.frameElement;for(;s&&i&&e!==o;){const t=Ro(s),e=s.getBoundingClientRect(),i=Eo(s),r=e.left+(s.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(s.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,d*=t.y,l+=r,c+=n,o=bo(s),s=o.frameElement}}return ho({width:h,height:d,x:l,y:c})}const Bo=[":popover-open",":modal"];function No(t){return Bo.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Uo(t){return Mo(go(t)).left+So(t).scrollLeft}function Ho(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=bo(t),i=go(t),s=o.visualViewport;let r=i.clientWidth,n=i.clientHeight,a=0,l=0;if(s){r=s.width,n=s.height;const t=Ao();(!t||t&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:r,height:n,x:a,y:l}}(t,o);else if("document"===e)i=function(t){const e=go(t),o=So(t),i=t.ownerDocument.body,s=Ke(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=Ke(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let n=-o.scrollLeft+Uo(t);const a=-o.scrollTop;return"rtl"===Eo(i).direction&&(n+=Ke(e.clientWidth,i.clientWidth)-s),{width:s,height:r,x:n,y:a}}(go(t));else if(yo(e))i=function(t,e){const o=Mo(t,!0,"fixed"===e),i=o.top+t.clientTop,s=o.left+t.clientLeft,r=wo(t)?Ro(t):Ye(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:s*r.x,y:i*r.y}}(e,o);else{const o=Fo(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return ho(i)}function Vo(t,e){const o=zo(t);return!(o===e||!yo(o)||Co(o))&&("fixed"===Eo(o).position||Vo(o,e))}function Io(t,e,o){const i=wo(e),s=go(e),r="fixed"===o,n=Mo(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const l=Ye(0);if(i||!i&&!r)if(("body"!==mo(e)||xo(s))&&(a=So(e)),i){const t=Mo(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else s&&(l.x=Uo(s));return{x:n.left+a.scrollLeft-l.x,y:n.top+a.scrollTop-l.y,width:n.width,height:n.height}}function Wo(t,e){return wo(t)&&"fixed"!==Eo(t).position?e?e(t):t.offsetParent:null}function jo(t,e){const o=bo(t);if(!wo(t)||No(t))return o;let i=Wo(t,e);for(;i&&$o(i)&&"static"===Eo(i).position;)i=Wo(i,e);return i&&("html"===mo(i)||"body"===mo(i)&&"static"===Eo(i).position&&!ko(i))?o:i||function(t){let e=zo(t);for(;wo(e)&&!Co(e);){if(ko(e))return e;e=zo(e)}return null}(t)||o}const qo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:o,offsetParent:i,strategy:s}=t;const r="fixed"===s,n=go(i),a=!!e&&No(e.floating);if(i===n||a&&r)return o;let l={scrollLeft:0,scrollTop:0},c=Ye(1);const h=Ye(0),d=wo(i);if((d||!d&&!r)&&(("body"!==mo(i)||xo(n))&&(l=So(i)),wo(i))){const t=Mo(i);c=Ro(i),h.x=t.x+i.clientLeft,h.y=t.y+i.clientTop}return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+h.x,y:o.y*c.y-l.scrollTop*c.y+h.y}},getDocumentElement:go,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:s}=t;const r=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=Po(t,[],!1).filter((t=>yo(t)&&"body"!==mo(t))),s=null;const r="fixed"===Eo(t).position;let n=r?zo(t):t;for(;yo(n)&&!Co(n);){const e=Eo(n),o=ko(n);o||"fixed"!==e.position||(s=null),(r?!o&&!s:!o&&"static"===e.position&&s&&["absolute","fixed"].includes(s.position)||xo(n)&&!o&&Vo(t,n))?i=i.filter((t=>t!==n)):s=e,n=zo(n)}return e.set(t,i),i}(e,this._c):[].concat(o),i],n=r[0],a=r.reduce(((t,o)=>{const i=Ho(e,o,s);return t.top=Ke(i.top,t.top),t.right=qe(i.right,t.right),t.bottom=qe(i.bottom,t.bottom),t.left=Ke(i.left,t.left),t}),Ho(e,n,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:jo,getElementRects:async function(t){const e=this.getOffsetParent||jo,o=this.getDimensions;return{reference:Io(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await o(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:o}=Lo(t);return{width:e,height:o}},getScale:Ro,isElement:yo,isRTL:function(t){return"rtl"===Eo(t).direction}};function Ko(t,e,o,i){void 0===i&&(i={});const{ancestorScroll:s=!0,ancestorResize:r=!0,elementResize:n="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=Oo(t),h=s||r?[...c?Po(c):[],...Po(e)]:[];h.forEach((t=>{s&&t.addEventListener("scroll",o,{passive:!0}),r&&t.addEventListener("resize",o)}));const d=c&&a?function(t,e){let o,i=null;const s=go(t);function r(){var t;clearTimeout(o),null==(t=i)||t.disconnect(),i=null}return function n(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),r();const{left:c,top:h,width:d,height:p}=t.getBoundingClientRect();if(a||e(),!d||!p)return;const u={rootMargin:-Xe(h)+"px "+-Xe(s.clientWidth-(c+d))+"px "+-Xe(s.clientHeight-(h+p))+"px "+-Xe(c)+"px",threshold:Ke(0,qe(1,l))||1};let f=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return n();e?n(!1,e):o=setTimeout((()=>{n(!1,1e-7)}),100)}f=!1}try{i=new IntersectionObserver(m,{...u,root:s.ownerDocument})}catch(t){i=new IntersectionObserver(m,u)}i.observe(t)}(!0),r}(c,o):null;let p,u=-1,f=null;n&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&f&&(f.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),o()})),c&&!l&&f.observe(c),f.observe(e));let m=l?Mo(t):null;return l&&function e(){const i=Mo(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||o();m=i,p=requestAnimationFrame(e)}(),o(),()=>{var t;h.forEach((t=>{s&&t.removeEventListener("scroll",o),r&&t.removeEventListener("resize",o)})),null==d||d(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Zo=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:s}=e,{mainAxis:r=!0,crossAxis:n=!1,limiter:a={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=to(t,e),c={x:o,y:i},h=await uo(e,l),d=ro(eo(s)),p=io(d);let u=c[p],f=c[d];if(r){const t="y"===p?"bottom":"right";u=Qe(u+h["y"===p?"top":"left"],u,u-h[t])}if(n){const t="y"===d?"bottom":"right";f=Qe(f+h["y"===d?"top":"left"],f,f-h[t])}const m=a.fn({...e,[p]:u,[d]:f});return{...m,data:{x:m.x-o,y:m.y-i}}}}},Xo=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o,i;const{placement:s,middlewareData:r,rects:n,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...b}=to(t,e);if(null!=(o=r.arrow)&&o.alignmentOffset)return{};const g=eo(s),v=eo(a)===a,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(v||!m?[lo(a)]:function(t){const e=lo(t);return[ao(t),e,ao(e)]}(a));p||"none"===f||w.push(...function(t,e,o,i){const s=oo(t);let r=function(t,e,o){const i=["left","right"],s=["right","left"],r=["top","bottom"],n=["bottom","top"];switch(t){case"top":case"bottom":return o?e?s:i:e?i:s;case"left":case"right":return e?r:n;default:return[]}}(eo(t),"start"===o,i);return s&&(r=r.map((t=>t+"-"+s)),e&&(r=r.concat(r.map(ao)))),r}(a,m,f,y));const _=[a,...w],x=await uo(e,b),$=[];let k=(null==(i=r.flip)?void 0:i.overflows)||[];if(h&&$.push(x[g]),d){const t=function(t,e,o){void 0===o&&(o=!1);const i=oo(t),s=no(t),r=so(s);let n="x"===s?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(n=lo(n)),[n,lo(n)]}(s,n,y);$.push(x[t[0]],x[t[1]])}if(k=[...k,{placement:s,overflows:$}],!$.every((t=>t<=0))){var A,C;const t=((null==(A=r.flip)?void 0:A.index)||0)+1,e=_[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let o=null==(C=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:C.placement;if(!o)switch(u){case"bestFit":{var E;const t=null==(E=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(o=t);break}case"initialPlacement":o=a}if(s!==o)return{reset:{placement:o}}}return{}}}},Yo=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:o,rects:i,platform:s,elements:r}=e,{apply:n=(()=>{}),...a}=to(t,e),l=await uo(e,a),c=eo(o),h=oo(o),d="y"===ro(o),{width:p,height:u}=i.floating;let f,m;"top"===c||"bottom"===c?(f=c,m=h===(await(null==s.isRTL?void 0:s.isRTL(r.floating))?"start":"end")?"left":"right"):(m=c,f="end"===h?"top":"bottom");const b=u-l[f],g=p-l[m],v=!e.middlewareData.shift;let y=b,w=g;if(d){const t=p-l.left-l.right;w=h||v?qe(g,t):t}else{const t=u-l.top-l.bottom;y=h||v?qe(b,t):t}if(v&&!h){const t=Ke(l.left,0),e=Ke(l.right,0),o=Ke(l.top,0),i=Ke(l.bottom,0);d?w=p-2*(0!==t||0!==e?t+e:Ke(l.left,l.right)):y=u-2*(0!==o||0!==i?o+i:Ke(l.top,l.bottom))}await n({...e,availableWidth:w,availableHeight:y});const _=await s.getDimensions(r.floating);return p!==_.width||u!==_.height?{reset:{rects:!0}}:{}}}},Go=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:i,placement:s,rects:r,platform:n,elements:a,middlewareData:l}=e,{element:c,padding:h=0}=to(t,e)||{};if(null==c)return{};const d=co(h),p={x:o,y:i},u=no(s),f=so(u),m=await n.getDimensions(c),b="y"===u,g=b?"top":"left",v=b?"bottom":"right",y=b?"clientHeight":"clientWidth",w=r.reference[f]+r.reference[u]-p[u]-r.floating[f],_=p[u]-r.reference[u],x=await(null==n.getOffsetParent?void 0:n.getOffsetParent(c));let $=x?x[y]:0;$&&await(null==n.isElement?void 0:n.isElement(x))||($=a.floating[y]||r.floating[f]);const k=w/2-_/2,A=$/2-m[f]/2-1,C=qe(d[g],A),E=qe(d[v],A),S=C,z=$-m[f]-E,T=$/2-m[f]/2+k,P=Qe(S,T,z),L=!l.arrow&&null!=oo(s)&&T!==P&&r.reference[f]/2-(T<S?C:E)-m[f]/2<0,O=L?T<S?T-S:T-z:0;return{[u]:p[u]+O,data:{[u]:P,centerOffset:T-P-O,...L&&{alignmentOffset:O}},reset:L}}}),Jo=(t,e,o)=>{const i=new Map,s={platform:qo,...o},r={...s.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:s="absolute",middleware:r=[],platform:n}=o,a=r.filter(Boolean),l=await(null==n.isRTL?void 0:n.isRTL(e));let c=await n.getElementRects({reference:t,floating:e,strategy:s}),{x:h,y:d}=po(c,i,l),p=i,u={},f=0;for(let o=0;o<a.length;o++){const{name:r,fn:m}=a[o],{x:b,y:g,data:v,reset:y}=await m({x:h,y:d,initialPlacement:i,placement:p,strategy:s,middlewareData:u,rects:c,platform:n,elements:{reference:t,floating:e}});h=null!=b?b:h,d=null!=g?g:d,u={...u,[r]:{...u[r],...v}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await n.getElementRects({reference:t,floating:e,strategy:s}):y.rects),({x:h,y:d}=po(c,p,l))),o=-1)}return{x:h,y:d,placement:p,strategy:s,middlewareData:u}})(t,e,{...s,platform:r})};function Qo(t){return function(t){for(let e=t;e;e=ti(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=ti(t);e;e=ti(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function ti(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var ei=class extends Vt{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let o=0,i=0,s=0,r=0,n=0,a=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(o=t.left,i=t.bottom,s=t.right,r=t.bottom,n=e.left,a=e.top,l=e.right,c=e.top):(o=e.left,i=e.bottom,s=e.right,r=e.bottom,n=t.left,a=t.top,l=t.right,c=t.top):t.left<e.left?(o=t.right,i=t.top,s=e.left,r=e.top,n=t.right,a=t.bottom,l=e.left,c=e.bottom):(o=e.right,i=e.top,s=t.left,r=t.top,n=e.right,a=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${o}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${s}px`),this.style.setProperty("--hover-bridge-top-right-y",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${n}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${a}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||function(t){return null!==t&&"object"==typeof t&&"getBoundingClientRect"in t&&(!("contextElement"in t)||t instanceof Element)}(this.anchor)?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=Ko(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[fo({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(Yo({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,o="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=o?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(Xo({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(Zo({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(Yo({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(Go({element:this.arrowEl,padding:this.arrowPadding}));const e="absolute"===this.strategy?t=>qo.getOffsetParent(t,Qo):qo.getOffsetParent;Jo(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:h(c({},qo),{getOffsetParent:e})}).then((({x:t,y:e,middlewareData:o,placement:i})=>{const s="rtl"===getComputedStyle(this).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=o.arrow.x,e=o.arrow.y;let i="",n="",a="",l="";if("start"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",n=s?o:"",l=s?"":o}else if("end"===this.arrowPlacement){const o="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";n=s?"":o,l=s?o:"",a="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:n,bottom:a,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return nt`
877
933
  <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
878
934
 
879
935
  <span
880
936
  part="hover-bridge"
881
- class=${jt({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
937
+ class=${Zt({"popup-hover-bridge":!0,"popup-hover-bridge--visible":this.hoverBridge&&this.active})}
882
938
  ></span>
883
939
 
884
940
  <div
885
941
  part="popup"
886
- class=${jt({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow})}
942
+ class=${Zt({popup:!0,"popup--active":this.active,"popup--fixed":"fixed"===this.strategy,"popup--has-arrow":this.arrow})}
887
943
  >
888
944
  <slot></slot>
889
- ${this.arrow?it`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
945
+ ${this.arrow?nt`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
890
946
  </div>
891
- `}};function qo(t,e){return new Promise((o=>{t.addEventListener(e,(function i(r){r.target===t&&(t.removeEventListener(e,i),o())}))}))}function Ko(t,e,o){return new Promise((i=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const r=t.animate(e,c(l({},o),{duration:Go()?0:o.duration}));r.addEventListener("cancel",i,{once:!0}),r.addEventListener("finish",i,{once:!0})}))}function Zo(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function Go(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Yo(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel(),requestAnimationFrame(e)})))))}Wo.styles=De,h([Dt(".popup")],Wo.prototype,"popup",2),h([Dt(".popup__arrow")],Wo.prototype,"arrowEl",2),h([Rt()],Wo.prototype,"anchor",2),h([Rt({type:Boolean,reflect:!0})],Wo.prototype,"active",2),h([Rt({reflect:!0})],Wo.prototype,"placement",2),h([Rt({reflect:!0})],Wo.prototype,"strategy",2),h([Rt({type:Number})],Wo.prototype,"distance",2),h([Rt({type:Number})],Wo.prototype,"skidding",2),h([Rt({type:Boolean})],Wo.prototype,"arrow",2),h([Rt({attribute:"arrow-placement"})],Wo.prototype,"arrowPlacement",2),h([Rt({attribute:"arrow-padding",type:Number})],Wo.prototype,"arrowPadding",2),h([Rt({type:Boolean})],Wo.prototype,"flip",2),h([Rt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],Wo.prototype,"flipFallbackPlacements",2),h([Rt({attribute:"flip-fallback-strategy"})],Wo.prototype,"flipFallbackStrategy",2),h([Rt({type:Object})],Wo.prototype,"flipBoundary",2),h([Rt({attribute:"flip-padding",type:Number})],Wo.prototype,"flipPadding",2),h([Rt({type:Boolean})],Wo.prototype,"shift",2),h([Rt({type:Object})],Wo.prototype,"shiftBoundary",2),h([Rt({attribute:"shift-padding",type:Number})],Wo.prototype,"shiftPadding",2),h([Rt({attribute:"auto-size"})],Wo.prototype,"autoSize",2),h([Rt()],Wo.prototype,"sync",2),h([Rt({type:Object})],Wo.prototype,"autoSizeBoundary",2),h([Rt({attribute:"auto-size-padding",type:Number})],Wo.prototype,"autoSizePadding",2),h([Rt({attribute:"hover-bridge",type:Boolean})],Wo.prototype,"hoverBridge",2);var Jo=class extends Ft{constructor(){super(),this.localize=new Ee(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=Zo(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=Zo(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,e;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await Yo(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:e,options:o}=b(this,"tooltip.show",{dir:this.localize.dir()});await Ko(this.popup.popup,e,o),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),null==(e=this.closeWatcher)||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await Yo(this.body);const{keyframes:t,options:o}=b(this,"tooltip.hide",{dir:this.localize.dir()});await Ko(this.popup.popup,t,o),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,qo(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,qo(this,"sl-after-hide")}render(){return it`
947
+ `}};function oi(t,e){return new Promise((o=>{t.addEventListener(e,(function i(s){s.target===t&&(t.removeEventListener(e,i),o())}))}))}function ii(t,e,o){return new Promise((i=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const s=t.animate(e,h(c({},o),{duration:ri()?0:o.duration}));s.addEventListener("cancel",i,{once:!0}),s.addEventListener("finish",i,{once:!0})}))}function si(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function ri(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ni(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel(),requestAnimationFrame(e)})))))}ei.styles=[Ft,je],d([Ht(".popup")],ei.prototype,"popup",2),d([Ht(".popup__arrow")],ei.prototype,"arrowEl",2),d([Nt()],ei.prototype,"anchor",2),d([Nt({type:Boolean,reflect:!0})],ei.prototype,"active",2),d([Nt({reflect:!0})],ei.prototype,"placement",2),d([Nt({reflect:!0})],ei.prototype,"strategy",2),d([Nt({type:Number})],ei.prototype,"distance",2),d([Nt({type:Number})],ei.prototype,"skidding",2),d([Nt({type:Boolean})],ei.prototype,"arrow",2),d([Nt({attribute:"arrow-placement"})],ei.prototype,"arrowPlacement",2),d([Nt({attribute:"arrow-padding",type:Number})],ei.prototype,"arrowPadding",2),d([Nt({type:Boolean})],ei.prototype,"flip",2),d([Nt({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],ei.prototype,"flipFallbackPlacements",2),d([Nt({attribute:"flip-fallback-strategy"})],ei.prototype,"flipFallbackStrategy",2),d([Nt({type:Object})],ei.prototype,"flipBoundary",2),d([Nt({attribute:"flip-padding",type:Number})],ei.prototype,"flipPadding",2),d([Nt({type:Boolean})],ei.prototype,"shift",2),d([Nt({type:Object})],ei.prototype,"shiftBoundary",2),d([Nt({attribute:"shift-padding",type:Number})],ei.prototype,"shiftPadding",2),d([Nt({attribute:"auto-size"})],ei.prototype,"autoSize",2),d([Nt()],ei.prototype,"sync",2),d([Nt({type:Object})],ei.prototype,"autoSizeBoundary",2),d([Nt({attribute:"auto-size-padding",type:Number})],ei.prototype,"autoSizePadding",2),d([Nt({attribute:"hover-bridge",type:Boolean})],ei.prototype,"hoverBridge",2);var ai=class extends Vt{constructor(){super(),this.localize=new Le(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=si(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=si(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,e;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await ni(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:e,options:o}=v(this,"tooltip.show",{dir:this.localize.dir()});await ii(this.popup.popup,e,o),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),null==(e=this.closeWatcher)||e.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await ni(this.body);const{keyframes:t,options:o}=v(this,"tooltip.hide",{dir:this.localize.dir()});await ii(this.popup.popup,t,o),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,oi(this,"sl-after-hide")}render(){return nt`
892
948
  <sl-popup
893
949
  part="base"
894
950
  exportparts="
895
951
  popup:base__popup,
896
952
  arrow:base__arrow
897
953
  "
898
- class=${jt({tooltip:!0,"tooltip--open":this.open})}
954
+ class=${Zt({tooltip:!0,"tooltip--open":this.open})}
899
955
  placement=${this.placement}
900
956
  distance=${this.distance}
901
957
  skidding=${this.skidding}
@@ -913,9 +969,7 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
913
969
  <slot name="content">${this.content}</slot>
914
970
  </div>
915
971
  </sl-popup>
916
- `}};Jo.styles=Be,Jo.dependencies={"sl-popup":Wo},h([Dt("slot:not([name])")],Jo.prototype,"defaultSlot",2),h([Dt(".tooltip__body")],Jo.prototype,"body",2),h([Dt("sl-popup")],Jo.prototype,"popup",2),h([Rt()],Jo.prototype,"content",2),h([Rt()],Jo.prototype,"placement",2),h([Rt({type:Boolean,reflect:!0})],Jo.prototype,"disabled",2),h([Rt({type:Number})],Jo.prototype,"distance",2),h([Rt({type:Boolean,reflect:!0})],Jo.prototype,"open",2),h([Rt({type:Number})],Jo.prototype,"skidding",2),h([Rt()],Jo.prototype,"trigger",2),h([Rt({type:Boolean})],Jo.prototype,"hoist",2),h([Tt("open",{waitUntilFirstUpdate:!0})],Jo.prototype,"handleOpenChange",1),h([Tt(["content","distance","hoist","placement","skidding"])],Jo.prototype,"handleOptionsChange",1),h([Tt("disabled")],Jo.prototype,"handleDisabledChange",1),f("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),f("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),Jo.define("sl-tooltip");var Xo=_`
917
- ${$t}
918
-
972
+ `}};ai.styles=[Ft,We],ai.dependencies={"sl-popup":ei},d([Ht("slot:not([name])")],ai.prototype,"defaultSlot",2),d([Ht(".tooltip__body")],ai.prototype,"body",2),d([Ht("sl-popup")],ai.prototype,"popup",2),d([Nt()],ai.prototype,"content",2),d([Nt()],ai.prototype,"placement",2),d([Nt({type:Boolean,reflect:!0})],ai.prototype,"disabled",2),d([Nt({type:Number})],ai.prototype,"distance",2),d([Nt({type:Boolean,reflect:!0})],ai.prototype,"open",2),d([Nt({type:Number})],ai.prototype,"skidding",2),d([Nt()],ai.prototype,"trigger",2),d([Nt({type:Boolean})],ai.prototype,"hoist",2),d([Dt("open",{waitUntilFirstUpdate:!0})],ai.prototype,"handleOpenChange",1),d([Dt(["content","distance","hoist","placement","skidding"])],ai.prototype,"handleOptionsChange",1),d([Dt("disabled")],ai.prototype,"handleDisabledChange",1),g("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),g("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),ai.define("sl-tooltip");var li=k`
919
973
  :host {
920
974
  --height: 1rem;
921
975
  --track-color: var(--sl-color-neutral-200);
@@ -1002,19 +1056,180 @@ const he=Symbol.for(""),de=t=>{if(t?.r===he)return t?._$litStatic$},pe=(t,...e)=
1002
1056
  * @license
1003
1057
  * Copyright 2018 Google LLC
1004
1058
  * SPDX-License-Identifier: BSD-3-Clause
1005
- */;const Qo="important",ti=" !"+Qo,ei=Nt(class extends It{constructor(t){if(super(t),t.type!==Ut||"style"!==t.name||t.strings?.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,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ut.add(t);const e="string"==typeof i&&i.endsWith(ti);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?Qo:""):o[t]=i}}return rt}});var oi=class extends Ft{constructor(){super(...arguments),this.localize=new Ee(this),this.value=0,this.indeterminate=!1,this.label=""}render(){return it`
1059
+ */;const ci="important",hi=" !"+ci,di=qt(class extends Kt{constructor(t){if(super(t),t.type!==It||"style"!==t.name||t.strings?.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,o)=>{const i=t[o];return null==i?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const i=e[t];if(null!=i){this.ft.add(t);const e="string"==typeof i&&i.endsWith(hi);t.includes("-")||e?o.setProperty(t,e?i.slice(0,-11):i,e?ci:""):o[t]=i}}return at}});var pi=class extends Vt{constructor(){super(...arguments),this.localize=new Le(this),this.value=0,this.indeterminate=!1,this.label=""}render(){return nt`
1006
1060
  <div
1007
1061
  part="base"
1008
- class=${jt({"progress-bar":!0,"progress-bar--indeterminate":this.indeterminate,"progress-bar--rtl":"rtl"===this.localize.dir()})}
1062
+ class=${Zt({"progress-bar":!0,"progress-bar--indeterminate":this.indeterminate,"progress-bar--rtl":"rtl"===this.localize.dir()})}
1009
1063
  role="progressbar"
1010
- title=${Wt(this.title)}
1064
+ title=${Xt(this.title)}
1011
1065
  aria-label=${this.label.length>0?this.label:this.localize.term("progress")}
1012
1066
  aria-valuemin="0"
1013
1067
  aria-valuemax="100"
1014
1068
  aria-valuenow=${this.indeterminate?0:this.value}
1015
1069
  >
1016
- <div part="indicator" class="progress-bar__indicator" style=${ei({width:`${this.value}%`})}>
1017
- ${this.indeterminate?"":it` <slot part="label" class="progress-bar__label"></slot> `}
1070
+ <div part="indicator" class="progress-bar__indicator" style=${di({width:`${this.value}%`})}>
1071
+ ${this.indeterminate?"":nt` <slot part="label" class="progress-bar__label"></slot> `}
1072
+ </div>
1073
+ </div>
1074
+ `}};pi.styles=[Ft,li],d([Nt({type:Number,reflect:!0})],pi.prototype,"value",2),d([Nt({type:Boolean,reflect:!0})],pi.prototype,"indeterminate",2),d([Nt()],pi.prototype,"label",2),pi.define("sl-progress-bar");var ui=new WeakMap;function fi(t){let e=ui.get(t);return e||(e=window.getComputedStyle(t,null),ui.set(t,e)),e}function mi(t){const e=t.tagName.toLowerCase(),o=Number(t.getAttribute("tabindex"));if(t.hasAttribute("tabindex")&&(isNaN(o)||o<=-1))return!1;if(t.hasAttribute("disabled"))return!1;if(t.closest("[inert]"))return!1;if("input"===e&&"radio"===t.getAttribute("type")&&!t.hasAttribute("checked"))return!1;if(!function(t){if("function"==typeof t.checkVisibility)return t.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const e=fi(t);return"hidden"!==e.visibility&&"none"!==e.display}(t))return!1;if(("audio"===e||"video"===e)&&t.hasAttribute("controls"))return!0;if(t.hasAttribute("tabindex"))return!0;if(t.hasAttribute("contenteditable")&&"false"!==t.getAttribute("contenteditable"))return!0;return!!["button","input","select","textarea","a","audio","video","summary","iframe"].includes(e)||function(t){const e=fi(t),{overflowY:o,overflowX:i}=e;return"scroll"===o||"scroll"===i||"auto"===o&&"auto"===i&&(t.scrollHeight>t.clientHeight&&"auto"===o||!(!(t.scrollWidth>t.clientWidth)||"auto"!==i))}(t)}function bi(t){const e=new WeakMap,o=[];return function i(s){if(s instanceof Element){if(s.hasAttribute("inert")||s.closest("[inert]"))return;if(e.has(s))return;e.set(s,!0),!o.includes(s)&&mi(s)&&o.push(s),s instanceof HTMLSlotElement&&function(t,e){var o;return(null==(o=t.getRootNode({composed:!0}))?void 0:o.host)!==e}(s,t)&&s.assignedElements({flatten:!0}).forEach((t=>{i(t)})),null!==s.shadowRoot&&"open"===s.shadowRoot.mode&&i(s.shadowRoot)}for(const t of s.children)i(t)}(t),o.sort(((t,e)=>{const o=Number(t.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-o}))}function*gi(t=document.activeElement){null!=t&&(yield t,"shadowRoot"in t&&t.shadowRoot&&"closed"!==t.shadowRoot.mode&&(yield*u(gi(t.shadowRoot.activeElement))))}var vi=[],yi=class{constructor(t){this.tabDirection="forward",this.handleFocusIn=()=>{this.isActive()&&this.checkFocus()},this.handleKeyDown=t=>{var e;if("Tab"!==t.key||this.isExternalActivated)return;if(!this.isActive())return;const o=[...gi()].pop();if(this.previousFocus=o,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;t.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const i=bi(this.element);let s=i.findIndex((t=>t===o));this.previousFocus=this.currentFocus;const r="forward"===this.tabDirection?1:-1;for(;;){s+r>=i.length?s=0:s+r<0?s=i.length-1:s+=r,this.previousFocus=this.currentFocus;const o=i[s];if("backward"===this.tabDirection&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o&&this.possiblyHasTabbableChildren(o))return;t.preventDefault(),this.currentFocus=o,null==(e=this.currentFocus)||e.focus({preventScroll:!1});const n=[...gi()];if(n.includes(this.currentFocus)||!n.includes(this.previousFocus))break}setTimeout((()=>this.checkFocus()))},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t,this.elementsWithTabbableControls=["iframe"]}activate(){vi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){vi=vi.filter((t=>t!==this.element)),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return vi[vi.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=bi(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],i="forward"===this.tabDirection?e:o;"function"==typeof(null==i?void 0:i.focus)&&(this.currentFocus=i,i.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}},wi=k`
1075
+ :host {
1076
+ --width: 31rem;
1077
+ --header-spacing: var(--sl-spacing-large);
1078
+ --body-spacing: var(--sl-spacing-large);
1079
+ --footer-spacing: var(--sl-spacing-large);
1080
+
1081
+ display: contents;
1082
+ }
1083
+
1084
+ .dialog {
1085
+ display: flex;
1086
+ align-items: center;
1087
+ justify-content: center;
1088
+ position: fixed;
1089
+ top: 0;
1090
+ right: 0;
1091
+ bottom: 0;
1092
+ left: 0;
1093
+ z-index: var(--sl-z-index-dialog);
1094
+ }
1095
+
1096
+ .dialog__panel {
1097
+ display: flex;
1098
+ flex-direction: column;
1099
+ z-index: 2;
1100
+ width: var(--width);
1101
+ max-width: calc(100% - var(--sl-spacing-2x-large));
1102
+ max-height: calc(100% - var(--sl-spacing-2x-large));
1103
+ background-color: var(--sl-panel-background-color);
1104
+ border-radius: var(--sl-border-radius-medium);
1105
+ box-shadow: var(--sl-shadow-x-large);
1106
+ }
1107
+
1108
+ .dialog__panel:focus {
1109
+ outline: none;
1110
+ }
1111
+
1112
+ /* Ensure there's enough vertical padding for phones that don't update vh when chrome appears (e.g. iPhone) */
1113
+ @media screen and (max-width: 420px) {
1114
+ .dialog__panel {
1115
+ max-height: 80vh;
1116
+ }
1117
+ }
1118
+
1119
+ .dialog--open .dialog__panel {
1120
+ display: flex;
1121
+ opacity: 1;
1122
+ }
1123
+
1124
+ .dialog__header {
1125
+ flex: 0 0 auto;
1126
+ display: flex;
1127
+ }
1128
+
1129
+ .dialog__title {
1130
+ flex: 1 1 auto;
1131
+ font: inherit;
1132
+ font-size: var(--sl-font-size-large);
1133
+ line-height: var(--sl-line-height-dense);
1134
+ padding: var(--header-spacing);
1135
+ margin: 0;
1136
+ }
1137
+
1138
+ .dialog__header-actions {
1139
+ flex-shrink: 0;
1140
+ display: flex;
1141
+ flex-wrap: wrap;
1142
+ justify-content: end;
1143
+ gap: var(--sl-spacing-2x-small);
1144
+ padding: 0 var(--header-spacing);
1145
+ }
1146
+
1147
+ .dialog__header-actions sl-icon-button,
1148
+ .dialog__header-actions ::slotted(sl-icon-button) {
1149
+ flex: 0 0 auto;
1150
+ display: flex;
1151
+ align-items: center;
1152
+ font-size: var(--sl-font-size-medium);
1153
+ }
1154
+
1155
+ .dialog__body {
1156
+ flex: 1 1 auto;
1157
+ display: block;
1158
+ padding: var(--body-spacing);
1159
+ overflow: auto;
1160
+ -webkit-overflow-scrolling: touch;
1161
+ }
1162
+
1163
+ .dialog__footer {
1164
+ flex: 0 0 auto;
1165
+ text-align: right;
1166
+ padding: var(--footer-spacing);
1167
+ }
1168
+
1169
+ .dialog__footer ::slotted(sl-button:not(:first-of-type)) {
1170
+ margin-inline-start: var(--sl-spacing-x-small);
1171
+ }
1172
+
1173
+ .dialog:not(.dialog--has-footer) .dialog__footer {
1174
+ display: none;
1175
+ }
1176
+
1177
+ .dialog__overlay {
1178
+ position: fixed;
1179
+ top: 0;
1180
+ right: 0;
1181
+ bottom: 0;
1182
+ left: 0;
1183
+ background-color: var(--sl-overlay-background-color);
1184
+ }
1185
+
1186
+ @media (forced-colors: active) {
1187
+ .dialog__panel {
1188
+ border: solid 1px var(--sl-color-neutral-0);
1189
+ }
1190
+ }
1191
+ `,_i=class extends Vt{constructor(){super(...arguments),this.hasSlotController=new Rt(this,"footer"),this.localize=new Le(this),this.modal=new yi(this),this.open=!1,this.label="",this.noHeader=!1,this.handleDocumentKeyDown=t=>{"Escape"===t.key&&this.modal.isActive()&&this.open&&(t.stopPropagation(),this.requestClose("keyboard"))}}firstUpdated(){this.dialog.hidden=!this.open,this.open&&(this.addOpenListeners(),this.modal.activate(),Me(this))}disconnectedCallback(){var t;super.disconnectedCallback(),this.modal.deactivate(),Be(this),null==(t=this.closeWatcher)||t.destroy()}requestClose(t){if(this.emit("sl-request-close",{cancelable:!0,detail:{source:t}}).defaultPrevented){const t=v(this,"dialog.denyClose",{dir:this.localize.dir()});ii(this.panel,t.keyframes,t.options)}else this.hide()}addOpenListeners(){var t;"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")):document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){var t;null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}async handleOpenChange(){if(this.open){this.emit("sl-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.modal.activate(),Me(this);const t=this.querySelector("[autofocus]");t&&t.removeAttribute("autofocus"),await Promise.all([ni(this.dialog),ni(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame((()=>{this.emit("sl-initial-focus",{cancelable:!0}).defaultPrevented||(t?t.focus({preventScroll:!0}):this.panel.focus({preventScroll:!0})),t&&t.setAttribute("autofocus","")}));const e=v(this,"dialog.show",{dir:this.localize.dir()}),o=v(this,"dialog.overlay.show",{dir:this.localize.dir()});await Promise.all([ii(this.panel,e.keyframes,e.options),ii(this.overlay,o.keyframes,o.options)]),this.emit("sl-after-show")}else{this.emit("sl-hide"),this.removeOpenListeners(),this.modal.deactivate(),await Promise.all([ni(this.dialog),ni(this.overlay)]);const t=v(this,"dialog.hide",{dir:this.localize.dir()}),e=v(this,"dialog.overlay.hide",{dir:this.localize.dir()});await Promise.all([ii(this.overlay,e.keyframes,e.options).then((()=>{this.overlay.hidden=!0})),ii(this.panel,t.keyframes,t.options).then((()=>{this.panel.hidden=!0}))]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,Be(this);const o=this.originalTrigger;"function"==typeof(null==o?void 0:o.focus)&&setTimeout((()=>o.focus())),this.emit("sl-after-hide")}}async show(){if(!this.open)return this.open=!0,oi(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,oi(this,"sl-after-hide")}render(){return nt`
1192
+ <div
1193
+ part="base"
1194
+ class=${Zt({dialog:!0,"dialog--open":this.open,"dialog--has-footer":this.hasSlotController.test("footer")})}
1195
+ >
1196
+ <div part="overlay" class="dialog__overlay" @click=${()=>this.requestClose("overlay")} tabindex="-1"></div>
1197
+
1198
+ <div
1199
+ part="panel"
1200
+ class="dialog__panel"
1201
+ role="dialog"
1202
+ aria-modal="true"
1203
+ aria-hidden=${this.open?"false":"true"}
1204
+ aria-label=${Xt(this.noHeader?this.label:void 0)}
1205
+ aria-labelledby=${Xt(this.noHeader?void 0:"title")}
1206
+ tabindex="-1"
1207
+ >
1208
+ ${this.noHeader?"":nt`
1209
+ <header part="header" class="dialog__header">
1210
+ <h2 part="title" class="dialog__title" id="title">
1211
+ <slot name="label"> ${this.label.length>0?this.label:String.fromCharCode(65279)} </slot>
1212
+ </h2>
1213
+ <div part="header-actions" class="dialog__header-actions">
1214
+ <slot name="header-actions"></slot>
1215
+ <sl-icon-button
1216
+ part="close-button"
1217
+ exportparts="base:close-button__base"
1218
+ class="dialog__close"
1219
+ name="x-lg"
1220
+ label=${this.localize.term("close")}
1221
+ library="system"
1222
+ @click="${()=>this.requestClose("close-button")}"
1223
+ ></sl-icon-button>
1224
+ </div>
1225
+ </header>
1226
+ `}
1227
+ ${""}
1228
+ <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>
1229
+
1230
+ <footer part="footer" class="dialog__footer">
1231
+ <slot name="footer"></slot>
1232
+ </footer>
1018
1233
  </div>
1019
1234
  </div>
1020
- `}};oi.styles=Xo,h([Rt({type:Number,reflect:!0})],oi.prototype,"value",2),h([Rt({type:Boolean,reflect:!0})],oi.prototype,"indeterminate",2),h([Rt()],oi.prototype,"label",2),oi.define("sl-progress-bar");export{f as setDefaultAnimation};
1235
+ `}};_i.styles=[Ft,wi],_i.dependencies={"sl-icon-button":we},d([Ht(".dialog")],_i.prototype,"dialog",2),d([Ht(".dialog__panel")],_i.prototype,"panel",2),d([Ht(".dialog__overlay")],_i.prototype,"overlay",2),d([Nt({type:Boolean,reflect:!0})],_i.prototype,"open",2),d([Nt({reflect:!0})],_i.prototype,"label",2),d([Nt({attribute:"no-header",type:Boolean,reflect:!0})],_i.prototype,"noHeader",2),d([Dt("open",{waitUntilFirstUpdate:!0})],_i.prototype,"handleOpenChange",1),g("dialog.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:250,easing:"ease"}}),g("dialog.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:250,easing:"ease"}}),g("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:250}}),g("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}}),g("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}}),_i.define("sl-dialog");export{le as registerIconLibrary,g as setDefaultAnimation};