alchemy_cms 8.4.4 → 8.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ module Alchemy
9
9
  def link = alchemy.admin_attachments_path
10
10
  def icon = "file-copy-2"
11
11
  def count = Alchemy::Attachment.count
12
- def infos = number_to_human_size(Alchemy::Attachment.sum(&:file_size))
12
+ def infos = number_to_human_size(Alchemy.storage_adapter.total_file_size)
13
13
  end
14
14
  end
15
15
  end
@@ -9,7 +9,7 @@ module Alchemy
9
9
  def link = alchemy.admin_pictures_path
10
10
  def icon = "multi-image"
11
11
  def count = Alchemy::Picture.count
12
- def infos = number_to_human_size(Alchemy::Picture.sum(&:image_file_size))
12
+ def infos = number_to_human_size(Alchemy.storage_adapter.total_image_file_size)
13
13
  end
14
14
  end
15
15
  end
@@ -19,7 +19,7 @@ module Alchemy
19
19
  def call
20
20
  content_tag "alchemy-uploader", "redirect-url": redirect_url, dropzone:, layout: do
21
21
  form_for [alchemy, :admin, object], html: {multipart: true, class: "upload-button"} do |f|
22
- safe_join([upload_hash_field(f), file_input(f), upload_label(f)].compact)
22
+ safe_join([upload_hash_field(f), upload_label(f)].compact)
23
23
  end
24
24
  end
25
25
  end
@@ -35,21 +35,30 @@ module Alchemy
35
35
  def file_input(f)
36
36
  f.file_field file_attribute,
37
37
  class: "fileupload fileupload--field", multiple: true, accept: accept,
38
- name: "#{f.object_name}[#{file_attribute}]", tabindex: "-1"
38
+ name: "#{f.object_name}[#{file_attribute}]"
39
39
  end
40
40
 
41
+ # The visually hidden file input is what the button is operated with, so it
42
+ # has to sit inside the label and the label inside the tooltip: the tooltip
43
+ # only opens for focus moving into itself.
41
44
  def upload_label(f)
42
- f.label file_attribute, data: {alchemy_hotkey: "alt+n"} do
43
- if inline_label
44
- tag.span class: "button with_icon", tabindex: "0" do
45
- render(Alchemy::Admin::Icon.new("upload-2")) + tooltip
46
- end
47
- else
48
- content_tag "sl-tooltip", content: tooltip, placement: "top-start" do
49
- tag.span class: "icon_button", tabindex: "0" do
50
- render Alchemy::Admin::Icon.new("upload-2")
51
- end
52
- end
45
+ label = f.label file_attribute, data: {alchemy_hotkey: "alt+n"} do
46
+ safe_join([button_content, file_input(f)])
47
+ end
48
+
49
+ return label if inline_label
50
+
51
+ content_tag "sl-tooltip", label, content: tooltip, placement: "top-start"
52
+ end
53
+
54
+ def button_content
55
+ if inline_label
56
+ tag.span class: "button with_icon" do
57
+ render(Alchemy::Admin::Icon.new("upload-2")) + tooltip
58
+ end
59
+ else
60
+ tag.span class: "icon_button" do
61
+ render Alchemy::Admin::Icon.new("upload-2")
53
62
  end
54
63
  end
55
64
  end
@@ -61,11 +61,10 @@ module Alchemy
61
61
  # If the value is a symbol it gets passed through i18n
62
62
  # inside the +alchemy.default_ingredient_texts+ scope
63
63
  def default_value
64
- case default
65
- when Symbol
64
+ if default.is_a?(Symbol)
66
65
  Alchemy.t(default, scope: :default_ingredient_texts)
67
- when String
68
- default
66
+ else
67
+ default&.to_s
69
68
  end
70
69
  end
71
70
 
@@ -165,7 +165,7 @@ module Alchemy
165
165
  validates_format_of :page_layout, with: /\A[a-z0-9_-]+\z/, unless: -> { page_layout.blank? }
166
166
  validates_presence_of :parent, unless: -> { layoutpage? || language_root? }
167
167
  validates_presence_of :permitted_roles, if: :restricted?
168
- validate :permitted_roles_are_configured
168
+ validate :permitted_roles_are_configured, if: :restricted?
169
169
 
170
170
  after_initialize :ensure_draft_version, if: :new_record?
171
171
 
@@ -140,6 +140,11 @@ module Alchemy
140
140
  attachment.file&.byte_size
141
141
  end
142
142
 
143
+ # @return [Integer]
144
+ def total_file_size
145
+ Attachment.joins(:file_blob).sum("active_storage_blobs.byte_size")
146
+ end
147
+
143
148
  # @param [Alchemy::Attachment]
144
149
  # @return [String]
145
150
  def file_mime_type(attachment)
@@ -189,6 +194,11 @@ module Alchemy
189
194
  picture.image_file&.byte_size
190
195
  end
191
196
 
197
+ # @return [Integer]
198
+ def total_image_file_size
199
+ Picture.joins(:image_file_blob).sum("active_storage_blobs.byte_size")
200
+ end
201
+
192
202
  # @param [Alchemy::Picture]
193
203
  # @return [Integer]
194
204
  def image_file_width(picture)
@@ -7,6 +7,10 @@ module Alchemy
7
7
  dragonfly_accessor :image_file, app: :alchemy_pictures do
8
8
  # Preprocess after uploading the picture
9
9
  after_assign do |image|
10
+ if Alchemy::StorageAdapter::Dragonfly.svg?(image)
11
+ write_attribute(:image_file_format, "svg")
12
+ end
13
+
10
14
  if has_convertible_format?
11
15
  Alchemy.storage_adapter.preprocessor_class.new(image).call
12
16
  end
@@ -46,6 +50,23 @@ module Alchemy
46
50
 
47
51
  CONVERTIBLE_FILE_FORMATS = %w[gif jpg jpeg png webp].freeze
48
52
 
53
+ SVG_MIME_TYPE = "image/svg+xml"
54
+
55
+ # Whether the attached file is an SVG
56
+ #
57
+ # ImageMagick renders SVGs through the rsvg delegate before reading them,
58
+ # so +identify+ reports the format of the rendered raster instead of the
59
+ # source file. The file itself has to be inspected to detect SVGs.
60
+ #
61
+ # @param [Dragonfly::Model::Attachment]
62
+ # @return [TrueClass, FalseClass]
63
+ def svg?(image_file)
64
+ mime_type = image_file.file do |file|
65
+ Marcel::MimeType.for(file, name: image_file.name)
66
+ end
67
+ mime_type == SVG_MIME_TYPE
68
+ end
69
+
49
70
  # Allows to set a custom Attachment Url class
50
71
  def attachment_url_class=(klass)
51
72
  @_attachment_url_class = klass
@@ -139,6 +160,11 @@ module Alchemy
139
160
  attachment.read_attribute(:file_size)
140
161
  end
141
162
 
163
+ # @return [Integer]
164
+ def total_file_size
165
+ Attachment.sum(:file_size)
166
+ end
167
+
142
168
  # @param [Alchemy::Attachment]
143
169
  # @return [String]
144
170
  def file_mime_type(attachment)
@@ -195,6 +221,11 @@ module Alchemy
195
221
  picture.read_attribute(:image_file_size)
196
222
  end
197
223
 
224
+ # @return [Integer]
225
+ def total_image_file_size
226
+ Picture.sum(:image_file_size)
227
+ end
228
+
198
229
  # @param [Alchemy::Picture]
199
230
  # @return [Integer]
200
231
  def image_file_width(picture)
@@ -34,6 +34,8 @@ module Alchemy
34
34
  :rescuable_errors,
35
35
  :searchable_alchemy_resource_attributes,
36
36
  :set_attachment_name?,
37
+ :total_file_size,
38
+ :total_image_file_size,
37
39
  to: :adapter
38
40
  )
39
41
 
@@ -1,4 +1,5 @@
1
1
  // Theme for the Tom Select powered `<select is="alchemy-select">`.
2
+ @use "../extends";
2
3
  @use "../mixins";
3
4
  @use "icons";
4
5
 
@@ -167,6 +168,16 @@
167
168
  );
168
169
  }
169
170
 
171
+ // Not `&.invalid`: Tom Select sets that on first render, before any user
172
+ // interaction.
173
+ select:user-invalid + & .ts-control {
174
+ @extend %field-with-error;
175
+
176
+ > input {
177
+ background-color: transparent;
178
+ }
179
+ }
180
+
170
181
  &.disabled .ts-control {
171
182
  background-color: var(--select-disabled-background-color);
172
183
  border-color: var(--select-disabled-border-color);
@@ -1,4 +1,5 @@
1
1
  @use "../extends";
2
+ @use "../mixins";
2
3
 
3
4
  .upload-button {
4
5
  display: inline-block;
@@ -6,6 +7,16 @@
6
7
  label {
7
8
  cursor: pointer;
8
9
  }
10
+
11
+ // The focus rests on the visually hidden file input, so the button standing in
12
+ // for it has to draw the focus ring.
13
+ label:focus-within {
14
+ &.icon_button,
15
+ .button,
16
+ .icon_button {
17
+ @include mixins.default-focus-style;
18
+ }
19
+ }
9
20
  }
10
21
 
11
22
  .fileupload--field {
@@ -3,12 +3,12 @@
3
3
 
4
4
  <alchemy-uploader redirect-url="<%= redirect_url %>">
5
5
  <%= form_for [:admin, object], html: {multipart: true, class: 'upload-button'} do |f| %>
6
- <%= f.file_field file_attribute,
7
- class: 'fileupload--field', accept: accept,
8
- name: "#{f.object_name}[#{file_attribute}]",
9
- id: "replace_#{dom_id(object)}" %>
10
6
  <%= label_tag "replace_#{dom_id(object)}", class: "icon_button" do %>
11
7
  <%= render_icon "file-upload" %>
8
+ <%= f.file_field file_attribute,
9
+ class: 'fileupload--field', accept: accept,
10
+ name: "#{f.object_name}[#{file_attribute}]",
11
+ id: "replace_#{dom_id(object)}" %>
12
12
  <% end %>
13
13
  <% end %>
14
14
  </alchemy-uploader>
@@ -1,11 +1,12 @@
1
1
  <% tinymce_base_path = "#{Rails.application.config.assets.prefix}/tinymce" %>
2
+ <% cache_suffix = Alchemy::Tinymce.cache_suffix(self) %>
2
3
 
3
- <link rel="preload" href="<%= asset_path("#{tinymce_base_path}/skins/ui/alchemy/skin.min.css") %>" as="style">
4
+ <link rel="preload" href="<%= asset_path("#{tinymce_base_path}/skins/ui/alchemy/skin.min.css") %>?<%= cache_suffix %>" as="style">
4
5
  <% if Alchemy::Tinymce.init[:content_css] %>
5
- <link rel="preload" href="<%= asset_path(Alchemy::Tinymce.init[:content_css]) %>" as="style">
6
+ <link rel="preload" href="<%= asset_path(Alchemy::Tinymce.init[:content_css]) %>?<%= cache_suffix %>" as="style">
6
7
  <% end %>
7
8
  <% Alchemy::Tinymce.preloadable_plugins.each do |plugin| %>
8
- <link rel="preload" href="<%= asset_path("#{tinymce_base_path}/plugins/#{plugin}/plugin.min.js") %>" as="script">
9
+ <link rel="preload" href="<%= asset_path("#{tinymce_base_path}/plugins/#{plugin}/plugin.min.js") %>?<%= cache_suffix %>" as="script">
9
10
  <% end %>
10
11
 
11
12
  <%= tag.script(type: "application/json", id: "alchemy_tinymce_defaults") do %>
@@ -14,6 +15,7 @@
14
15
  asset_url(tinymce_base_path, host: ActionController::Base.config.asset_host) :
15
16
  tinymce_base_path,
16
17
  suffix: ".min",
18
+ cache_suffix: cache_suffix,
17
19
  plugins: Alchemy::Tinymce.plugins.join(",")
18
20
  ).to_json %>
19
21
  <% end %>
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "alchemy/deprecation"
4
+
3
5
  module Alchemy
4
6
  module ConfigMissing
5
7
  def const_missing(missing_const_name)
@@ -54,8 +54,12 @@ module Alchemy
54
54
  )
55
55
  end
56
56
 
57
+ # Runs after initialization, so that importmaps added from an application
58
+ # initializer (those run after the engine's initializers) are picked up.
59
+ # It must not run again on reload: every entry it adds below lands in a
60
+ # registry that is never pruned.
57
61
  initializer "alchemy.importmap" do |app|
58
- app.config.to_prepare do
62
+ app.config.after_initialize do
59
63
  watch_paths = []
60
64
 
61
65
  Alchemy.config.admin_importmaps.each do |admin_import|
@@ -81,9 +85,10 @@ module Alchemy
81
85
  end
82
86
  end
83
87
 
84
- # All the initialization that needs to be re-triggered during reloads
85
- config.to_prepare do
86
- # Definition files
88
+ # Registered from a `to_prepare` block these watchers would pile up in the
89
+ # never pruned reloader registries on every reload, and with them the file
90
+ # system handles they hold open.
91
+ config.after_initialize do
87
92
  elements_reloader = Rails.application.config.file_watcher.new([ElementDefinition.definitions_file_path]) do
88
93
  Logger.info "Reloading Element Definitions."
89
94
  ElementDefinition.reset!
@@ -98,7 +103,10 @@ module Alchemy
98
103
  reloader.execute_if_updated
99
104
  end
100
105
  end
106
+ end
101
107
 
108
+ # All the initialization that needs to be re-triggered during reloads
109
+ config.to_prepare do
102
110
  # The storage adapter for Pictures and Attachments
103
111
  #
104
112
  # Chose between 'active_storage' (default) or 'dragonfly' (legacy)
@@ -15,6 +15,8 @@ module Alchemy
15
15
  alchemy_link
16
16
  ]
17
17
 
18
+ SKINS = %w[alchemy alchemy-dark]
19
+
18
20
  @@plugins = DEFAULT_PLUGINS
19
21
  @@init = {
20
22
  skin: "alchemy",
@@ -49,6 +51,29 @@ module Alchemy
49
51
  def preloadable_plugins
50
52
  @@plugins - DEFAULT_PLUGINS
51
53
  end
54
+
55
+ # Query string TinyMCE appends to every asset it loads at runtime.
56
+ #
57
+ # TinyMCE loads these from undigested asset paths that are served with a
58
+ # one year immutable cache, so they need a content dependent query string
59
+ # to ever be fetched again. The asset pipeline digests all of them
60
+ # individually, but TinyMCE only takes a single suffix for all of them.
61
+ def cache_suffix(view_context)
62
+ digested_paths = undigested_assets.map { |path| view_context.asset_path(path) }
63
+ ActiveSupport::Digest.hexdigest(digested_paths.join).first(8)
64
+ end
65
+
66
+ private
67
+
68
+ def undigested_assets
69
+ SKINS.flat_map do |skin|
70
+ [
71
+ "tinymce/skins/ui/#{skin}/skin.min.css",
72
+ "tinymce/skins/ui/#{skin}/content.min.css",
73
+ "tinymce/skins/content/#{skin}/content.min.css"
74
+ ]
75
+ end + preloadable_plugins.map { |plugin| "tinymce/plugins/#{plugin}/plugin.min.js" }
76
+ end
52
77
  end
53
78
  end
54
79
  end
@@ -3,7 +3,7 @@
3
3
  module Alchemy
4
4
  extend self
5
5
 
6
- VERSION = "8.4.4"
6
+ VERSION = "8.4.5"
7
7
 
8
8
  def version
9
9
  VERSION
data/lib/alchemy_cms.rb CHANGED
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Instantiate the global Alchemy namespace
4
- require "alchemy"
5
-
6
3
  # Require globally used external libraries
7
4
  require "acts_as_list"
8
5
  require "action_view/dependency_tracker"
@@ -19,6 +16,61 @@ require "turbo-rails"
19
16
  require "userstamp"
20
17
  require "view_component"
21
18
 
19
+ # Instantiate the global Alchemy namespace
20
+ module Alchemy
21
+ require "alchemy/config_missing"
22
+
23
+ include Alchemy::ConfigMissing
24
+ extend Alchemy::ConfigMissing
25
+
26
+ YAML_PERMITTED_CLASSES = %w[Symbol Date Regexp]
27
+
28
+ # JS Importmap instance
29
+ singleton_class.attr_accessor :importmap
30
+ self.importmap = Importmap::Map.new
31
+
32
+ mattr_accessor :storage_adapter
33
+
34
+ class << self
35
+ def config
36
+ require "alchemy/configurations/main"
37
+ @_config ||= Alchemy::Configurations::Main.new
38
+ end
39
+ delegate :configure, to: :config
40
+
41
+ enable_searchable_deprecation_msg = "Use `Alchemy.config.show_page_searchable_checkbox` instead."
42
+ def enable_searchable = config.show_page_searchable_checkbox
43
+ deprecate :enable_searchable= => enable_searchable_deprecation_msg, :deprecator => Alchemy::Deprecation
44
+
45
+ def enable_searchable=(other)
46
+ config.show_page_searchable_checkbox = other
47
+ end
48
+ deprecate enable_searchable: enable_searchable_deprecation_msg, deprecator: Alchemy::Deprecation
49
+
50
+ delegate :preview_sources, to: :config
51
+ delegate :preview_sources=, to: :config
52
+ deprecate preview_sources: "Use `Alchemy.config.preview_sources` instead.", deprecator: Alchemy::Deprecation
53
+ deprecate :preview_sources= => "Use `Alchemy.config.preview_sources=` instead.", :deprecator => Alchemy::Deprecation
54
+
55
+ delegate :admin_js_imports, to: :config
56
+ delegate :admin_js_imports=, to: :config
57
+ deprecate admin_js_imports: "Use `Alchemy.config.admin_js_imports` instead", deprecator: Alchemy::Deprecation
58
+ deprecate :admin_js_imports= => "Use `Alchemy.config.admin_js_imports=` instead", :deprecator => Alchemy::Deprecation
59
+
60
+ delegate :admin_importmaps, to: :config
61
+ deprecate admin_importmaps: "Use Alchemy.config.admin_importmaps instead", deprecator: Alchemy::Deprecation
62
+
63
+ delegate :admin_stylesheets, to: :config
64
+ deprecate admin_stylesheets: "Use Alchemy.config.admin_stylesheets instead", deprecator: Alchemy::Deprecation
65
+
66
+ delegate :publish_targets, to: :config
67
+ deprecate publish_targets: "Use Alchemy.config.publish_targets instead", deprecator: Alchemy::Deprecation
68
+
69
+ delegate :link_dialog_tabs, to: :config
70
+ deprecate link_dialog_tabs: "Use Alchemy.config.link_dialog_tabs instead", deprecator: Alchemy::Deprecation
71
+ end
72
+ end
73
+
22
74
  # Require globally used Alchemy mixins
23
75
  require_relative "alchemy/auth_accessors"
24
76
  require_relative "alchemy/cache_digests/template_tracker"
@@ -3,7 +3,7 @@ import{autoUpdate as t,offset as e,size as o,flip as r,shift as i,arrow as s,pla
3
3
  * @license
4
4
  * Copyright 2019 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const l=globalThis,c=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,h=Symbol(),d=new WeakMap;let u=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==h)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(c&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&d.set(e,t))}return t}toString(){return this.cssText}};const p=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,o,r)=>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[r+1],t[0]);return new u(o,t,h)},b=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,h))(e)})(t):t,{is:g,defineProperty:f,getOwnPropertyDescriptor:m,getOwnPropertyNames:v,getOwnPropertySymbols:y,getPrototypeOf:w}=Object,_=globalThis,k=_.trustedTypes,x=k?k.emptyScript:"",$=_.reactiveElementPolyfillSupport,C=(t,e)=>t,A={toAttribute(t,e){switch(e){case Boolean:t=t?x: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}},E=(t,e)=>!g(t,e),S={attribute:!0,type:String,converter:A,reflect:!1,useDefault:!1,hasChanged:E};
6
+ */const l=globalThis,c=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),h=new WeakMap;let u=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==d)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(c&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&h.set(e,t))}return t}toString(){return this.cssText}};const p=(t,...e)=>{const o=1===t.length?t[0]:e.reduce((e,o,r)=>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[r+1],t[0]);return new u(o,t,d)},b=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,d))(e)})(t):t,{is:g,defineProperty:f,getOwnPropertyDescriptor:m,getOwnPropertyNames:v,getOwnPropertySymbols:y,getPrototypeOf:w}=Object,_=globalThis,k=_.trustedTypes,x=k?k.emptyScript:"",$=_.reactiveElementPolyfillSupport,C=(t,e)=>t,A={toAttribute(t,e){switch(e){case Boolean:t=t?x: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}},E=(t,e)=>!g(t,e),S={attribute:!0,type:String,converter:A,reflect:!1,useDefault:!1,hasChanged:E};
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2017 Google LLC
@@ -14,7 +14,7 @@ import{autoUpdate as t,offset as e,size as o,flip as r,shift as i,arrow as s,pla
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
16
  */
17
- const T=globalThis,P=t=>t,O=T.trustedTypes,L=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,F="?"+D,M=`<${F}>`,N=document,U=()=>N.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,R="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,j=/>/g,q=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,Z=/"/g,G=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Q=new WeakMap,tt=N.createTreeWalker(N,129);function et(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}const ot=(t,e)=>{const o=t.length-1,r=[];let i,s=2===e?"<svg>":3===e?"<math>":"",n=V;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===V?"!--"===l[1]?n=W:void 0!==l[1]?n=j:void 0!==l[2]?(G.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=q):void 0!==l[3]&&(n=q):n===q?">"===l[0]?(n=i??V,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]?Z:K):n===Z||n===K?n=q:n===W||n===j?n=V:(n=q,i=void 0);const d=n===q&&t[e+1].startsWith("/>")?" ":"";s+=n===V?o+M:c>=0?(r.push(a),o.slice(0,c)+B+o.slice(c)+D+d):o+D+(-2===c?e:d)}return[et(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class rt{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,s=0;const n=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=rt.createElement(l,o),tt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=tt.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(B)){const e=c[s++],o=r.getAttribute(t).split(D),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:n[2],strings:o,ctor:"."===n[1]?lt:"?"===n[1]?ct:"@"===n[1]?ht:at}),r.removeAttribute(t)}else t.startsWith(D)&&(a.push({type:6,index:i}),r.removeAttribute(t));if(G.test(r.tagName)){const t=r.textContent.split(D),e=t.length-1;if(e>0){r.textContent=O?O.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],U()),tt.nextNode(),a.push({type:2,index:++i});r.append(t[e],U())}}}else if(8===r.nodeType)if(r.data===F)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(D,t+1));)a.push({type:7,index:i}),t+=D.length-1}i++}}static createElement(t,e){const o=N.createElement("template");return o.innerHTML=t,o}}function it(t,e,o=t,r){if(e===X)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const s=I(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),void 0===s?i=void 0:(i=new s(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=it(t,i._$AS(t,e.values),i,r)),e}class st{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,r=(t?.creationScope??N).importNode(e,!0);tt.currentNode=r;let i=tt.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new nt(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new dt(i,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(i=tt.nextNode(),s++)}return tt.currentNode=N,r}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 nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.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=it(this,t,e),I(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Y&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(et(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new st(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new rt(t)),e}k(t){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const i of t)r===e.length?e.push(o=new nt(this.O(U()),this.O(U()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=P(t).nextSibling;P(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class at{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Y}_$AI(t,e=this,o,r){const i=this.strings;let s=!1;if(void 0===i)t=it(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==X,s&&(this._$AH=t);else{const r=t;let n,a;for(t=i[0],n=0;n<i.length-1;n++)a=it(this,r[o+n],e,n),a===X&&(a=this._$AH[n]),s||=!I(a)||a!==this._$AH[n],a===Y?t=Y:t!==Y&&(t+=(a??"")+i[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}class ct extends at{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Y)}}class ht extends at{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??Y)===X)return;const o=this._$AH,r=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Y&&(o===Y||r);r&&this.element.removeEventListener(this.name,this,o),i&&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 dt{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){it(this,t)}}const ut=T.litHtmlPolyfillSupport;ut?.(rt,nt),(T.litHtmlVersions??=[]).push("3.3.3");const pt=globalThis;
17
+ const T=globalThis,P=t=>t,O=T.trustedTypes,L=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,F="?"+D,M=`<${F}>`,N=document,U=()=>N.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,R="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,j=/>/g,q=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,Z=/"/g,G=/^(?:script|style|textarea|title)$/i,J=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Q=new WeakMap,tt=N.createTreeWalker(N,129);function et(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==L?L.createHTML(e):e}const ot=(t,e)=>{const o=t.length-1,r=[];let i,s=2===e?"<svg>":3===e?"<math>":"",n=V;for(let e=0;e<o;e++){const o=t[e];let a,l,c=-1,d=0;for(;d<o.length&&(n.lastIndex=d,l=n.exec(o),null!==l);)d=n.lastIndex,n===V?"!--"===l[1]?n=W:void 0!==l[1]?n=j:void 0!==l[2]?(G.test(l[2])&&(i=RegExp("</"+l[2],"g")),n=q):void 0!==l[3]&&(n=q):n===q?">"===l[0]?(n=i??V,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]?Z:K):n===Z||n===K?n=q:n===W||n===j?n=V:(n=q,i=void 0);const h=n===q&&t[e+1].startsWith("/>")?" ":"";s+=n===V?o+M:c>=0?(r.push(a),o.slice(0,c)+B+o.slice(c)+D+h):o+D+(-2===c?e:h)}return[et(t,s+(t[o]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]};class rt{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,s=0;const n=t.length-1,a=this.parts,[l,c]=ot(t,e);if(this.el=rt.createElement(l,o),tt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=tt.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(B)){const e=c[s++],o=r.getAttribute(t).split(D),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:i,name:n[2],strings:o,ctor:"."===n[1]?lt:"?"===n[1]?ct:"@"===n[1]?dt:at}),r.removeAttribute(t)}else t.startsWith(D)&&(a.push({type:6,index:i}),r.removeAttribute(t));if(G.test(r.tagName)){const t=r.textContent.split(D),e=t.length-1;if(e>0){r.textContent=O?O.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],U()),tt.nextNode(),a.push({type:2,index:++i});r.append(t[e],U())}}}else if(8===r.nodeType)if(r.data===F)a.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(D,t+1));)a.push({type:7,index:i}),t+=D.length-1}i++}}static createElement(t,e){const o=N.createElement("template");return o.innerHTML=t,o}}function it(t,e,o=t,r){if(e===X)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const s=I(e)?void 0:e._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),void 0===s?i=void 0:(i=new s(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=it(t,i._$AS(t,e.values),i,r)),e}class st{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,r=(t?.creationScope??N).importNode(e,!0);tt.currentNode=r;let i=tt.nextNode(),s=0,n=0,a=o[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new nt(i,i.nextSibling,this,t):1===a.type?e=new a.ctor(i,a.name,a.strings,this,t):6===a.type&&(e=new ht(i,this,t)),this._$AV.push(e),a=o[++n]}s!==a?.index&&(i=tt.nextNode(),s++)}return tt.currentNode=N,r}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 nt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.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=it(this,t,e),I(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Y&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=rt.createElement(et(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new st(r,this),o=t.u(this.options);t.p(e),this.T(o),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new rt(t)),e}k(t){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const i of t)r===e.length?e.push(o=new nt(this.O(U()),this.O(U()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=P(t).nextSibling;P(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class at{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Y}_$AI(t,e=this,o,r){const i=this.strings;let s=!1;if(void 0===i)t=it(this,t,e,0),s=!I(t)||t!==this._$AH&&t!==X,s&&(this._$AH=t);else{const r=t;let n,a;for(t=i[0],n=0;n<i.length-1;n++)a=it(this,r[o+n],e,n),a===X&&(a=this._$AH[n]),s||=!I(a)||a!==this._$AH[n],a===Y?t=Y:t!==Y&&(t+=(a??"")+i[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}class ct extends at{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Y)}}class dt extends at{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??Y)===X)return;const o=this._$AH,r=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Y&&(o===Y||r);r&&this.element.removeEventListener(this.name,this,o),i&&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 ht{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){it(this,t)}}const ut=T.litHtmlPolyfillSupport;ut?.(rt,nt),(T.litHtmlVersions??=[]).push("3.3.3");const pt=globalThis;
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -710,7 +710,7 @@ function Gt(t,e){return(e,o,r)=>((t,e,o)=>(o.configurable=!0,o.enumerable=!0,Ref
710
710
  :host([data-sl-button-group__button][checked]) {
711
711
  z-index: 2;
712
712
  }
713
- `,ae=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)}},le="";function ce(t){le=t}var he={name:"default",resolver:t=>function(t=""){if(!le){const t=[...document.getElementsByTagName("script")],e=t.find(t=>t.hasAttribute("data-shoelace"));if(e)ce(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")),ce(o.split("/").slice(0,-1).join("/"))}}return le.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}(`assets/icons/${t}.svg`)},de={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 '},ue=[he,{name:"system",resolver:t=>t in de?`data:image/svg+xml,${encodeURIComponent(de[t])}`:""}],pe=[];function be(t){return ue.find(e=>e.name===t)}function ge(t,e){!function(t){ue=ue.filter(e=>e.name!==t)}(t),ue.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),pe.forEach(e=>{e.library===t&&e.setIcon()})}var fe=p`
713
+ `,ae=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)}},le="";function ce(t){le=t}var de={name:"default",resolver:t=>function(t=""){if(!le){const t=[...document.getElementsByTagName("script")],e=t.find(t=>t.hasAttribute("data-shoelace"));if(e)ce(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")),ce(o.split("/").slice(0,-1).join("/"))}}return le.replace(/\/$/,"")+(t?`/${t.replace(/^\//,"")}`:"")}(`assets/icons/${t}.svg`)},he={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 '},ue=[de,{name:"system",resolver:t=>t in he?`data:image/svg+xml,${encodeURIComponent(he[t])}`:""}],pe=[];function be(t){return ue.find(e=>e.name===t)}function ge(t,e){!function(t){ue=ue.filter(e=>e.name!==t)}(t),ue.push({name:t,resolver:e.resolver,mutator:e.mutator,spriteSheet:e.spriteSheet}),pe.forEach(e=>{e.library===t&&e.setIcon()})}var fe=p`
714
714
  :host {
715
715
  display: inline-block;
716
716
  width: 1em;
@@ -741,7 +741,7 @@ const $e=1,Ce=3,Ae=4,Ee=t=>(...e)=>({_$litDirective$:t,values:e});let Se=class{c
741
741
  * @license
742
742
  * Copyright 2018 Google LLC
743
743
  * SPDX-License-Identifier: BSD-3-Clause
744
- */const ze=Ee(class extends Se{constructor(t){if(super(t),t.type!==$e||"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 r=!!e[t];r===this.st.has(t)||this.nt?.has(t)||(r?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return X}}),Te=Symbol.for(""),Pe=t=>{if(t?.r===Te)return t?._$litStatic$},Oe=(t,...e)=>({_$litStatic$:e.reduce((e,o,r)=>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[r+1],t[0]),r:Te}),Le=new Map,Be=(t=>(e,...o)=>{const r=o.length;let i,s;const n=[],a=[];let l,c=0,h=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(s=o[c],i=Pe(s));)l+=i+e[++c],h=!0;c!==r&&a.push(s),n.push(l),c++}if(c===r&&n.push(e[r]),h){const t=n.join("$$lit$$");void 0===(e=Le.get(t))&&(n.raw=n,Le.set(t,e=n)),o=a}return t(e,...o)})(J),De=t=>t??Y;
744
+ */const ze=Ee(class extends Se{constructor(t){if(super(t),t.type!==$e||"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 r=!!e[t];r===this.st.has(t)||this.nt?.has(t)||(r?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return X}}),Te=Symbol.for(""),Pe=t=>{if(t?.r===Te)return t?._$litStatic$},Oe=(t,...e)=>({_$litStatic$:e.reduce((e,o,r)=>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[r+1],t[0]),r:Te}),Le=new Map,Be=(t=>(e,...o)=>{const r=o.length;let i,s;const n=[],a=[];let l,c=0,d=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(s=o[c],i=Pe(s));)l+=i+e[++c],d=!0;c!==r&&a.push(s),n.push(l),c++}if(c===r&&n.push(e[r]),d){const t=n.join("$$lit$$");void 0===(e=Le.get(t))&&(n.raw=n,Le.set(t,e=n)),o=a}return t(e,...o)})(J),De=t=>t??Y;
745
745
  /**
746
746
  * @license
747
747
  * Copyright 2020 Google LLC
@@ -795,7 +795,7 @@ const $e=1,Ce=3,Ae=4,Ee=t=>(...e)=>({_$litDirective$:t,values:e});let Se=class{c
795
795
  >
796
796
  <slot @slotchange=${this.handleSlotChange}></slot>
797
797
  </div>
798
- `}};function Ue(t){var e;const o="sl-button, sl-radio-button";return null!=(e=t.closest(o))?e:t.querySelector(o)}function*Ie(t=document.activeElement){var e,o,r,i,s;null!=t&&(yield t,"shadowRoot"in t&&t.shadowRoot&&"closed"!==t.shadowRoot.mode&&(yield*(e=Ie(t.shadowRoot.activeElement),r=e[Mt("asyncIterator")],i=!1,s={},null==r?(r=e[Mt("iterator")](),o=t=>s[t]=e=>r[t](e)):(r=r.call(e),o=t=>s[t]=e=>{if(i){if(i=!1,"throw"===t)throw e;return e}return i=!0,{done:!1,value:new Wt(new Promise(o=>{var i=r[t](e);i instanceof Object||Nt("Object expected"),o(i)}),1)}}),s[Mt("iterator")]=()=>s,o("next"),"throw"in r?o("throw"):s.throw=t=>{throw t},"return"in r&&o("return"),s)))}function He(){return[...Ie()].pop()}Ne.styles=[zt,Me],Rt([Gt("slot")],Ne.prototype,"defaultSlot",2),Rt([Zt()],Ne.prototype,"disableRole",2),Rt([Kt()],Ne.prototype,"label",2),Ne.define("sl-button-group");var Re=new WeakMap;function Ve(t){let e=Re.get(t);return e||(e=window.getComputedStyle(t,null),Re.set(t,e)),e}function We(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")){const e=t.getRootNode(),o=`input[type='radio'][name="${t.getAttribute("name")}"]`,r=e.querySelector(`${o}:checked`);if(r)return r===t;return e.querySelector(o)===t}if(!function(t){if("function"==typeof t.checkVisibility)return t.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const e=Ve(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=Ve(t),{overflowY:o,overflowX:r}=e;return"scroll"===o||"scroll"===r||"auto"===o&&"auto"===r&&(t.scrollHeight>t.clientHeight&&"auto"===o||!(!(t.scrollWidth>t.clientWidth)||"auto"!==r))}(t)}function je(t){const e=new WeakMap,o=[];return function r(i){if(i instanceof Element){if(i.hasAttribute("inert")||i.closest("[inert]"))return;if(e.has(i))return;e.set(i,!0),!o.includes(i)&&We(i)&&o.push(i),i instanceof HTMLSlotElement&&function(t,e){var o;return(null==(o=t.getRootNode({composed:!0}))?void 0:o.host)!==e}(i,t)&&i.assignedElements({flatten:!0}).forEach(t=>{r(t)}),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&r(i.shadowRoot)}for(const t of i.children)r(t)}(t),o.sort((t,e)=>{const o=Number(t.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-o})}var qe=[],Ke=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=He();if(this.previousFocus=o,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;t.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const r=je(this.element);let i=r.findIndex(t=>t===o);this.previousFocus=this.currentFocus;const s="forward"===this.tabDirection?1:-1;for(;;){i+s>=r.length?i=0:i+s<0?i=r.length-1:i+=s,this.previousFocus=this.currentFocus;const o=r[i];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=[...Ie()];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(){qe.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){qe=qe.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 qe[qe.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=je(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r="forward"===this.tabDirection?e:o;"function"==typeof(null==r?void 0:r.focus)&&(this.currentFocus=r,r.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}};var Ze=new Set;function Ge(t){if(Ze.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}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--sl-scroll-lock-gutter",e),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function Je(t){Ze.delete(t),0===Ze.size&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}function Xe(t,e,o="vertical",r="smooth"){const i=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=i.top+e.scrollTop,n=i.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:r}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:r})),"vertical"!==o&&"both"!==o||(s<c?e.scrollTo({top:s,behavior:r}):s+t.clientHeight>h&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:r}))}var Ye=p`
798
+ `}};function Ue(t){var e;const o="sl-button, sl-radio-button";return null!=(e=t.closest(o))?e:t.querySelector(o)}function*Ie(t=document.activeElement){var e,o,r,i,s;null!=t&&(yield t,"shadowRoot"in t&&t.shadowRoot&&"closed"!==t.shadowRoot.mode&&(yield*(e=Ie(t.shadowRoot.activeElement),r=e[Mt("asyncIterator")],i=!1,s={},null==r?(r=e[Mt("iterator")](),o=t=>s[t]=e=>r[t](e)):(r=r.call(e),o=t=>s[t]=e=>{if(i){if(i=!1,"throw"===t)throw e;return e}return i=!0,{done:!1,value:new Wt(new Promise(o=>{var i=r[t](e);i instanceof Object||Nt("Object expected"),o(i)}),1)}}),s[Mt("iterator")]=()=>s,o("next"),"throw"in r?o("throw"):s.throw=t=>{throw t},"return"in r&&o("return"),s)))}function He(){return[...Ie()].pop()}Ne.styles=[zt,Me],Rt([Gt("slot")],Ne.prototype,"defaultSlot",2),Rt([Zt()],Ne.prototype,"disableRole",2),Rt([Kt()],Ne.prototype,"label",2),Ne.define("sl-button-group");var Re=new WeakMap;function Ve(t){let e=Re.get(t);return e||(e=window.getComputedStyle(t,null),Re.set(t,e)),e}function We(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")){const e=t.getRootNode(),o=`input[type='radio'][name="${t.getAttribute("name")}"]`,r=e.querySelector(`${o}:checked`);if(r)return r===t;return e.querySelector(o)===t}if(!function(t){if("function"==typeof t.checkVisibility)return t.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const e=Ve(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=Ve(t),{overflowY:o,overflowX:r}=e;return"scroll"===o||"scroll"===r||"auto"===o&&"auto"===r&&(t.scrollHeight>t.clientHeight&&"auto"===o||!(!(t.scrollWidth>t.clientWidth)||"auto"!==r))}(t)}function je(t){const e=new WeakMap,o=[];return function r(i){if(i instanceof Element){if(i.hasAttribute("inert")||i.closest("[inert]"))return;if(e.has(i))return;e.set(i,!0),!o.includes(i)&&We(i)&&o.push(i),i instanceof HTMLSlotElement&&function(t,e){var o;return(null==(o=t.getRootNode({composed:!0}))?void 0:o.host)!==e}(i,t)&&i.assignedElements({flatten:!0}).forEach(t=>{r(t)}),null!==i.shadowRoot&&"open"===i.shadowRoot.mode&&r(i.shadowRoot)}for(const t of i.children)r(t)}(t),o.sort((t,e)=>{const o=Number(t.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-o})}var qe=[],Ke=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=He();if(this.previousFocus=o,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;t.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const r=je(this.element);let i=r.findIndex(t=>t===o);this.previousFocus=this.currentFocus;const s="forward"===this.tabDirection?1:-1;for(;;){i+s>=r.length?i=0:i+s<0?i=r.length-1:i+=s,this.previousFocus=this.currentFocus;const o=r[i];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=[...Ie()];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(){qe.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){qe=qe.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 qe[qe.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=je(this.element);if(!this.element.matches(":focus-within")){const e=t[0],o=t[t.length-1],r="forward"===this.tabDirection?e:o;"function"==typeof(null==r?void 0:r.focus)&&(this.currentFocus=r,r.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}};var Ze=new Set;function Ge(t){if(Ze.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}();let e=getComputedStyle(document.documentElement).scrollbarGutter;e&&"auto"!==e||(e="stable"),t<2&&(e=""),document.documentElement.style.setProperty("--sl-scroll-lock-gutter",e),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${t}px`)}}function Je(t){Ze.delete(t),0===Ze.size&&(document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size"))}function Xe(t,e,o="vertical",r="smooth"){const i=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=i.top+e.scrollTop,n=i.left+e.scrollLeft,a=e.scrollLeft,l=e.scrollLeft+e.offsetWidth,c=e.scrollTop,d=e.scrollTop+e.offsetHeight;"horizontal"!==o&&"both"!==o||(n<a?e.scrollTo({left:n,behavior:r}):n+t.clientWidth>l&&e.scrollTo({left:n-e.offsetWidth+t.clientWidth,behavior:r})),"vertical"!==o&&"both"!==o||(s<c?e.scrollTo({top:s,behavior:r}):s+t.clientHeight>d&&e.scrollTo({top:s-e.offsetHeight+t.clientHeight,behavior:r}))}var Ye=p`
799
799
  :host {
800
800
  --width: 31rem;
801
801
  --header-spacing: var(--sl-spacing-large);
@@ -1283,7 +1283,7 @@ const $e=1,Ce=3,Ae=4,Ee=t=>(...e)=>({_$litDirective$:t,values:e});let Se=class{c
1283
1283
  ${this.indeterminate?"":J` <slot part="label" class="progress-bar__label"></slot> `}
1284
1284
  </div>
1285
1285
  </div>
1286
- `}};To.styles=[zt,Ao],Rt([Kt({type:Number,reflect:!0})],To.prototype,"value",2),Rt([Kt({type:Boolean,reflect:!0})],To.prototype,"indeterminate",2),Rt([Kt()],To.prototype,"label",2),To.define("sl-progress-bar");var Po=p`
1286
+ `}};To.styles=[zt,Ao],Rt([Kt({type:Number,reflect:!0})],To.prototype,"value",2),Rt([Kt({type:Boolean,reflect:!0})],To.prototype,"indeterminate",2),Rt([Kt()],To.prototype,"label",2),To.define("sl-progress-bar"),Yt.define("sl-spinner");var Po=p`
1287
1287
  :host {
1288
1288
  display: inline-block;
1289
1289
  }