spell-ui 0.0.0-stage → 0.8.6
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.
- package/CHANGELOG.md +68 -0
- package/README-components.md +483 -0
- package/README-frameworks.md +436 -0
- package/README-migrating.md +474 -0
- package/README-runtime.md +657 -0
- package/README-site.md +619 -0
- package/README-themes.md +419 -0
- package/README.md +635 -2
- package/dist/CodeEngine-GL9EzwF1.js +6487 -0
- package/dist/CodeEngine-GL9EzwF1.js.map +1 -0
- package/dist/MarkdownEngine-CbuT9Mjc.js +1575 -0
- package/dist/MarkdownEngine-CbuT9Mjc.js.map +1 -0
- package/dist/MarkdownSanitizer-zTnnbrLe.js +884 -0
- package/dist/MarkdownSanitizer-zTnnbrLe.js.map +1 -0
- package/dist/PrefStore-CeaTtjTz.js +266 -0
- package/dist/PrefStore-CeaTtjTz.js.map +1 -0
- package/dist/SlottedItems-Ch0tzzlL.js +80 -0
- package/dist/SlottedItems-Ch0tzzlL.js.map +1 -0
- package/dist/TemporalPolyfill-D9mr7_wA.js +3182 -0
- package/dist/TemporalPolyfill-D9mr7_wA.js.map +1 -0
- package/dist/UIButton-XkfGqgh6.js +6 -0
- package/dist/UIButton-XkfGqgh6.js.map +1 -0
- package/dist/UIInput-BUudZstW.js +6 -0
- package/dist/UIInput-BUudZstW.js.map +1 -0
- package/dist/UIKeys-DJF2TIKE.js +254 -0
- package/dist/UIKeys-DJF2TIKE.js.map +1 -0
- package/dist/UILabel-C1jy3Yl8.js +6 -0
- package/dist/UILabel-C1jy3Yl8.js.map +1 -0
- package/dist/UIMenu-Btd-8V3A.js +42 -0
- package/dist/UIMenu-Btd-8V3A.js.map +1 -0
- package/dist/UIRuntime-BBuehGly.js +1753 -0
- package/dist/UIRuntime-BBuehGly.js.map +1 -0
- package/dist/UISegment-CMMIW7cZ.js +6 -0
- package/dist/UISegment-CMMIW7cZ.js.map +1 -0
- package/dist/_spell-element/Cell.d.ts +21 -0
- package/dist/_spell-element/DOMElement.d.ts +325 -0
- package/dist/_spell-element/Disclosure.d.ts +124 -0
- package/dist/_spell-element/ElementDefinition.d.ts +124 -0
- package/dist/_spell-element/OwnControls.d.ts +26 -0
- package/dist/_spell-element/OwnerContext.d.ts +33 -0
- package/dist/_spell-element/ParentLink.d.ts +71 -0
- package/dist/_spell-element/PartContext.d.ts +162 -0
- package/dist/_spell-element/Reactive.d.ts +486 -0
- package/dist/_spell-element/RichAttributes.d.ts +82 -0
- package/dist/_spell-element/ShadowEvents.d.ts +84 -0
- package/dist/_spell-element/SlotContent.d.ts +24 -0
- package/dist/_spell-element/SpellSolid.d.ts +42 -0
- package/dist/_spell-element/UIComponent.d.ts +647 -0
- package/dist/_spell-element/elements.types.d.ts +525 -0
- package/dist/_spell-element/index.d.ts +56 -0
- package/dist/_spell-element/vocabulary.types.d.ts +574 -0
- package/dist/_util/class.d.ts +18 -0
- package/dist/_util/color.d.ts +75 -0
- package/dist/_util/decorators.d.ts +93 -0
- package/dist/_util/dom.d.ts +90 -0
- package/dist/_util/number.d.ts +19 -0
- package/dist/_util/persist/ColorScheme.d.ts +67 -0
- package/dist/_util/persist/MemoryStorage.d.ts +21 -0
- package/dist/_util/persist/PrefPlace.d.ts +42 -0
- package/dist/_util/persist/PrefStore.d.ts +142 -0
- package/dist/_util/persist/StoragePlace.d.ts +53 -0
- package/dist/_util/persist/persist.types.d.ts +125 -0
- package/dist/_util/persist/values.d.ts +25 -0
- package/dist/_util/string.d.ts +94 -0
- package/dist/_util/timing.d.ts +135 -0
- package/dist/_util/util.types.d.ts +17 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +15 -0
- package/dist/api.js.map +1 -0
- package/dist/apple.palette-B4ivrNlM.js +6 -0
- package/dist/apple.palette-B4ivrNlM.js.map +1 -0
- package/dist/classic-DCTQrteU.js +6 -0
- package/dist/classic-DCTQrteU.js.map +1 -0
- package/dist/components/ComponentDefinitions.d.ts +48 -0
- package/dist/components/components.es.d.ts +526 -0
- package/dist/components/components.planned.d.ts +23 -0
- package/dist/components/components.types.d.ts +1471 -0
- package/dist/components/ui-accordion/AccordionPanels.d.ts +32 -0
- package/dist/components/ui-accordion/UIAccordion.d.ts +312 -0
- package/dist/components/ui-accordion/UIAccordion.en.d.ts +192 -0
- package/dist/components/ui-accordion/UIAccordion.es.d.ts +25 -0
- package/dist/components/ui-accordion/index.d.ts +2 -0
- package/dist/components/ui-action/UIAction.d.ts +96 -0
- package/dist/components/ui-action/UIAction.en.d.ts +215 -0
- package/dist/components/ui-action/UIAction.es.d.ts +33 -0
- package/dist/components/ui-action/index.d.ts +7 -0
- package/dist/components/ui-ad/UIAd.d.ts +76 -0
- package/dist/components/ui-ad/UIAd.en.d.ts +64 -0
- package/dist/components/ui-ad/UIAd.es.d.ts +27 -0
- package/dist/components/ui-ad/index.d.ts +2 -0
- package/dist/components/ui-breadcrumbs/BreadcrumbDivider.d.ts +23 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.d.ts +80 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.en.d.ts +55 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumb.es.d.ts +13 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.d.ts +92 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.en.d.ts +62 -0
- package/dist/components/ui-breadcrumbs/UIBreadcrumbs.es.d.ts +22 -0
- package/dist/components/ui-breadcrumbs/index.d.ts +3 -0
- package/dist/components/ui-button/Invoker.d.ts +29 -0
- package/dist/components/ui-button/UIButton.d.ts +424 -0
- package/dist/components/ui-button/UIButton.en.d.ts +284 -0
- package/dist/components/ui-button/UIButton.es.d.ts +24 -0
- package/dist/components/ui-button/UIButton.fallback.d.ts +294 -0
- package/dist/components/ui-button/UIButton.types.d.ts +35 -0
- package/dist/components/ui-button/UIButtons.d.ts +224 -0
- package/dist/components/ui-button/UIButtons.en.d.ts +161 -0
- package/dist/components/ui-button/UIButtons.es.d.ts +12 -0
- package/dist/components/ui-button/UIOr.d.ts +53 -0
- package/dist/components/ui-button/UIOr.en.d.ts +39 -0
- package/dist/components/ui-button/UIOr.es.d.ts +18 -0
- package/dist/components/ui-button/index.d.ts +4 -0
- package/dist/components/ui-calendar/CalendarDates.d.ts +92 -0
- package/dist/components/ui-calendar/CalendarText.d.ts +75 -0
- package/dist/components/ui-calendar/CalendarView.d.ts +44 -0
- package/dist/components/ui-calendar/UICalendar.d.ts +541 -0
- package/dist/components/ui-calendar/UICalendar.en.d.ts +321 -0
- package/dist/components/ui-calendar/UICalendar.es.d.ts +49 -0
- package/dist/components/ui-calendar/UICalendar.fallback.d.ts +333 -0
- package/dist/components/ui-calendar/UICalendar.types.d.ts +132 -0
- package/dist/components/ui-calendar/index.d.ts +2 -0
- package/dist/components/ui-card/UICard.d.ts +242 -0
- package/dist/components/ui-card/UICard.en.d.ts +182 -0
- package/dist/components/ui-card/UICard.es.d.ts +23 -0
- package/dist/components/ui-card/UICards.d.ts +146 -0
- package/dist/components/ui-card/UICards.en.d.ts +108 -0
- package/dist/components/ui-card/UICards.es.d.ts +12 -0
- package/dist/components/ui-card/index.d.ts +3 -0
- package/dist/components/ui-checkbox/CheckControl.d.ts +155 -0
- package/dist/components/ui-checkbox/RadioGroup.d.ts +67 -0
- package/dist/components/ui-checkbox/UICheckbox.d.ts +169 -0
- package/dist/components/ui-checkbox/UICheckbox.en.d.ts +149 -0
- package/dist/components/ui-checkbox/UICheckbox.es.d.ts +16 -0
- package/dist/components/ui-checkbox/UICheckbox.fallback.d.ts +173 -0
- package/dist/components/ui-checkbox/UICheckbox.types.d.ts +130 -0
- package/dist/components/ui-checkbox/UIRadio.d.ts +184 -0
- package/dist/components/ui-checkbox/UIRadio.en.d.ts +131 -0
- package/dist/components/ui-checkbox/UIRadio.es.d.ts +15 -0
- package/dist/components/ui-checkbox/index.d.ts +4 -0
- package/dist/components/ui-code/CodeEngine.d.ts +52 -0
- package/dist/components/ui-code/CodeHighlighter.d.ts +34 -0
- package/dist/components/ui-code/CodeLines.d.ts +27 -0
- package/dist/components/ui-code/UICode.d.ts +87 -0
- package/dist/components/ui-code/UICode.en.d.ts +164 -0
- package/dist/components/ui-code/UICode.es.d.ts +39 -0
- package/dist/components/ui-code/UICode.types.d.ts +13 -0
- package/dist/components/ui-code/index.d.ts +4 -0
- package/dist/components/ui-comment/UIComment.d.ts +85 -0
- package/dist/components/ui-comment/UIComment.en.d.ts +64 -0
- package/dist/components/ui-comment/UIComment.es.d.ts +15 -0
- package/dist/components/ui-comment/UIComments.d.ts +110 -0
- package/dist/components/ui-comment/UIComments.en.d.ts +79 -0
- package/dist/components/ui-comment/UIComments.es.d.ts +18 -0
- package/dist/components/ui-comment/index.d.ts +3 -0
- package/dist/components/ui-components/ComponentPacks.d.ts +98 -0
- package/dist/components/ui-components/PackHotSwap.d.ts +37 -0
- package/dist/components/ui-components/UIComponents.d.ts +43 -0
- package/dist/components/ui-components/UIComponents.en.d.ts +29 -0
- package/dist/components/ui-components/UIComponents.es.d.ts +12 -0
- package/dist/components/ui-components/UIComponents.types.d.ts +44 -0
- package/dist/components/ui-components/index.d.ts +4 -0
- package/dist/components/ui-container/UIContainer.d.ts +95 -0
- package/dist/components/ui-container/UIContainer.en.d.ts +86 -0
- package/dist/components/ui-container/UIContainer.es.d.ts +18 -0
- package/dist/components/ui-container/index.d.ts +2 -0
- package/dist/components/ui-dimmer/UIDimmer.d.ts +248 -0
- package/dist/components/ui-dimmer/UIDimmer.en.d.ts +126 -0
- package/dist/components/ui-dimmer/UIDimmer.es.d.ts +28 -0
- package/dist/components/ui-dimmer/index.d.ts +2 -0
- package/dist/components/ui-divider/UIDivider.d.ts +124 -0
- package/dist/components/ui-divider/UIDivider.en.d.ts +104 -0
- package/dist/components/ui-divider/UIDivider.es.d.ts +16 -0
- package/dist/components/ui-divider/index.d.ts +2 -0
- package/dist/components/ui-dropdown/SlottedItems.d.ts +84 -0
- package/dist/components/ui-dropdown/UIDropdown.d.ts +608 -0
- package/dist/components/ui-dropdown/UIDropdown.en.d.ts +370 -0
- package/dist/components/ui-dropdown/UIDropdown.es.d.ts +37 -0
- package/dist/components/ui-dropdown/UIDropdown.fallback.d.ts +385 -0
- package/dist/components/ui-dropdown/index.d.ts +2 -0
- package/dist/components/ui-embed/EmbedSources.d.ts +27 -0
- package/dist/components/ui-embed/UIEmbed.d.ts +198 -0
- package/dist/components/ui-embed/UIEmbed.en.d.ts +129 -0
- package/dist/components/ui-embed/UIEmbed.es.d.ts +32 -0
- package/dist/components/ui-embed/UIEmbed.types.d.ts +27 -0
- package/dist/components/ui-embed/index.d.ts +3 -0
- package/dist/components/ui-emoji/EmojiData.d.ts +91 -0
- package/dist/components/ui-emoji/UIEmoji.d.ts +118 -0
- package/dist/components/ui-emoji/UIEmoji.en.d.ts +79 -0
- package/dist/components/ui-emoji/UIEmoji.es.d.ts +15 -0
- package/dist/components/ui-emoji/UIEmoji.types.d.ts +12 -0
- package/dist/components/ui-emoji/index.d.ts +3 -0
- package/dist/components/ui-example/ExampleSource.d.ts +60 -0
- package/dist/components/ui-example/HtmlFormatter.d.ts +63 -0
- package/dist/components/ui-example/UIExample.d.ts +86 -0
- package/dist/components/ui-example/UIExample.en.d.ts +119 -0
- package/dist/components/ui-example/UIExample.es.d.ts +32 -0
- package/dist/components/ui-example/index.d.ts +4 -0
- package/dist/components/ui-feed/UIFeed.d.ts +98 -0
- package/dist/components/ui-feed/UIFeed.en.d.ts +83 -0
- package/dist/components/ui-feed/UIFeed.es.d.ts +18 -0
- package/dist/components/ui-feed/UIFeedEvent.d.ts +128 -0
- package/dist/components/ui-feed/UIFeedEvent.en.d.ts +85 -0
- package/dist/components/ui-feed/UIFeedEvent.es.d.ts +15 -0
- package/dist/components/ui-feed/index.d.ts +3 -0
- package/dist/components/ui-flag/FlagCountry.d.ts +26 -0
- package/dist/components/ui-flag/UIFlag.d.ts +93 -0
- package/dist/components/ui-flag/UIFlag.en.d.ts +80 -0
- package/dist/components/ui-flag/UIFlag.es.d.ts +26 -0
- package/dist/components/ui-flag/UIFlag.types.d.ts +307 -0
- package/dist/components/ui-flag/index.d.ts +3 -0
- package/dist/components/ui-flyout/UIFlyout.d.ts +158 -0
- package/dist/components/ui-flyout/UIFlyout.en.d.ts +135 -0
- package/dist/components/ui-flyout/UIFlyout.es.d.ts +26 -0
- package/dist/components/ui-flyout/index.d.ts +2 -0
- package/dist/components/ui-form/FormBinding.d.ts +204 -0
- package/dist/components/ui-form/FormFields.d.ts +118 -0
- package/dist/components/ui-form/UIField.d.ts +307 -0
- package/dist/components/ui-form/UIField.en.d.ts +188 -0
- package/dist/components/ui-form/UIField.es.d.ts +17 -0
- package/dist/components/ui-form/UIFields.d.ts +109 -0
- package/dist/components/ui-form/UIFields.en.d.ts +92 -0
- package/dist/components/ui-form/UIFields.es.d.ts +18 -0
- package/dist/components/ui-form/UIForm.d.ts +453 -0
- package/dist/components/ui-form/UIForm.en.d.ts +198 -0
- package/dist/components/ui-form/UIForm.es.d.ts +16 -0
- package/dist/components/ui-form/UIForm.types.d.ts +72 -0
- package/dist/components/ui-form/UIRepeat.d.ts +112 -0
- package/dist/components/ui-form/UIRepeat.en.d.ts +39 -0
- package/dist/components/ui-form/UIRepeat.es.d.ts +12 -0
- package/dist/components/ui-form/index.d.ts +6 -0
- package/dist/components/ui-grid/GridPart.d.ts +23 -0
- package/dist/components/ui-grid/UIColumn.d.ts +123 -0
- package/dist/components/ui-grid/UIColumn.en.d.ts +121 -0
- package/dist/components/ui-grid/UIColumn.es.d.ts +22 -0
- package/dist/components/ui-grid/UIGrid.d.ts +176 -0
- package/dist/components/ui-grid/UIGrid.en.d.ts +165 -0
- package/dist/components/ui-grid/UIGrid.es.d.ts +12 -0
- package/dist/components/ui-grid/UIGrid.types.d.ts +8 -0
- package/dist/components/ui-grid/UIRow.d.ts +155 -0
- package/dist/components/ui-grid/UIRow.en.d.ts +143 -0
- package/dist/components/ui-grid/UIRow.es.d.ts +16 -0
- package/dist/components/ui-grid/index.d.ts +4 -0
- package/dist/components/ui-icon/UIIcon.d.ts +151 -0
- package/dist/components/ui-icon/UIIcon.en.d.ts +126 -0
- package/dist/components/ui-icon/UIIcon.es.d.ts +16 -0
- package/dist/components/ui-icon/UIIcon.types.d.ts +16 -0
- package/dist/components/ui-icon/UIIcons.d.ts +100 -0
- package/dist/components/ui-icon/UIIcons.en.d.ts +85 -0
- package/dist/components/ui-icon/UIIcons.es.d.ts +15 -0
- package/dist/components/ui-icon/index.d.ts +3 -0
- package/dist/components/ui-icon-picker/IconCatalog.d.ts +98 -0
- package/dist/components/ui-icon-picker/UIIconPicker.d.ts +413 -0
- package/dist/components/ui-icon-picker/UIIconPicker.en.d.ts +141 -0
- package/dist/components/ui-icon-picker/UIIconPicker.es.d.ts +24 -0
- package/dist/components/ui-icon-picker/UIIconPicker.fallback.d.ts +151 -0
- package/dist/components/ui-icon-picker/index.d.ts +4 -0
- package/dist/components/ui-image/UIImage.d.ts +224 -0
- package/dist/components/ui-image/UIImage.en.d.ts +184 -0
- package/dist/components/ui-image/UIImage.es.d.ts +22 -0
- package/dist/components/ui-image/UIImages.d.ts +98 -0
- package/dist/components/ui-image/UIImages.en.d.ts +85 -0
- package/dist/components/ui-image/UIImages.es.d.ts +12 -0
- package/dist/components/ui-image/index.d.ts +3 -0
- package/dist/components/ui-include/UIInclude.d.ts +229 -0
- package/dist/components/ui-include/UIInclude.en.d.ts +118 -0
- package/dist/components/ui-include/UIInclude.es.d.ts +25 -0
- package/dist/components/ui-include/index.d.ts +2 -0
- package/dist/components/ui-input/TextControl.d.ts +96 -0
- package/dist/components/ui-input/UIInput.d.ts +295 -0
- package/dist/components/ui-input/UIInput.en.d.ts +245 -0
- package/dist/components/ui-input/UIInput.es.d.ts +30 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +253 -0
- package/dist/components/ui-input/UIInput.types.d.ts +27 -0
- package/dist/components/ui-input/UITextarea.d.ts +190 -0
- package/dist/components/ui-input/UITextarea.en.d.ts +158 -0
- package/dist/components/ui-input/UITextarea.es.d.ts +16 -0
- package/dist/components/ui-input/index.d.ts +3 -0
- package/dist/components/ui-item/UIItem.d.ts +333 -0
- package/dist/components/ui-item/UIItem.en.d.ts +164 -0
- package/dist/components/ui-item/UIItem.es.d.ts +15 -0
- package/dist/components/ui-item/index.d.ts +3 -0
- package/dist/components/ui-items/UIItems.d.ts +128 -0
- package/dist/components/ui-items/UIItems.en.d.ts +98 -0
- package/dist/components/ui-items/UIItems.es.d.ts +15 -0
- package/dist/components/ui-items/index.d.ts +2 -0
- package/dist/components/ui-keys/UIKeys.d.ts +154 -0
- package/dist/components/ui-keys/UIKeys.en.d.ts +162 -0
- package/dist/components/ui-keys/UIKeys.es.d.ts +57 -0
- package/dist/components/ui-keys/index.d.ts +2 -0
- package/dist/components/ui-label/UILabel.d.ts +278 -0
- package/dist/components/ui-label/UILabel.en.d.ts +229 -0
- package/dist/components/ui-label/UILabel.es.d.ts +25 -0
- package/dist/components/ui-label/UILabels.d.ts +115 -0
- package/dist/components/ui-label/UILabels.en.d.ts +104 -0
- package/dist/components/ui-label/UILabels.es.d.ts +12 -0
- package/dist/components/ui-label/index.d.ts +3 -0
- package/dist/components/ui-list/UIList.d.ts +216 -0
- package/dist/components/ui-list/UIList.en.d.ts +158 -0
- package/dist/components/ui-list/UIList.es.d.ts +16 -0
- package/dist/components/ui-list/index.d.ts +2 -0
- package/dist/components/ui-loader/UILoader.d.ts +142 -0
- package/dist/components/ui-loader/UILoader.en.d.ts +109 -0
- package/dist/components/ui-loader/UILoader.es.d.ts +19 -0
- package/dist/components/ui-loader/index.d.ts +2 -0
- package/dist/components/ui-markdown/MarkdownEngine.d.ts +36 -0
- package/dist/components/ui-markdown/MarkdownRenderer.d.ts +38 -0
- package/dist/components/ui-markdown/MarkdownSanitizer.d.ts +31 -0
- package/dist/components/ui-markdown/UIMarkdown.d.ts +164 -0
- package/dist/components/ui-markdown/UIMarkdown.en.d.ts +157 -0
- package/dist/components/ui-markdown/UIMarkdown.es.d.ts +35 -0
- package/dist/components/ui-markdown/UIMarkdown.types.d.ts +44 -0
- package/dist/components/ui-markdown/index.d.ts +4 -0
- package/dist/components/ui-menu/SegmentedThumb.d.ts +47 -0
- package/dist/components/ui-menu/TitleFit.d.ts +148 -0
- package/dist/components/ui-menu/UIMenu.d.ts +481 -0
- package/dist/components/ui-menu/UIMenu.en.d.ts +242 -0
- package/dist/components/ui-menu/UIMenu.es.d.ts +27 -0
- package/dist/components/ui-menu/index.d.ts +2 -0
- package/dist/components/ui-message/UIMessage.d.ts +185 -0
- package/dist/components/ui-message/UIMessage.en.d.ts +148 -0
- package/dist/components/ui-message/UIMessage.es.d.ts +21 -0
- package/dist/components/ui-message/index.d.ts +2 -0
- package/dist/components/ui-modal/DialogComponent.d.ts +212 -0
- package/dist/components/ui-modal/ModalDialogs.d.ts +57 -0
- package/dist/components/ui-modal/UIModal.d.ts +165 -0
- package/dist/components/ui-modal/UIModal.en.d.ts +155 -0
- package/dist/components/ui-modal/UIModal.es.d.ts +25 -0
- package/dist/components/ui-modal/UIModal.types.d.ts +19 -0
- package/dist/components/ui-modal/index.d.ts +5 -0
- package/dist/components/ui-nag/DismissalStore.d.ts +76 -0
- package/dist/components/ui-nag/UINag.d.ts +251 -0
- package/dist/components/ui-nag/UINag.en.d.ts +147 -0
- package/dist/components/ui-nag/UINag.es.d.ts +32 -0
- package/dist/components/ui-nag/index.d.ts +3 -0
- package/dist/components/ui-page/UIPage.d.ts +213 -0
- package/dist/components/ui-page/UIPage.en.d.ts +179 -0
- package/dist/components/ui-page/UIPage.es.d.ts +44 -0
- package/dist/components/ui-page/index.d.ts +2 -0
- package/dist/components/ui-panel/UIPanel.d.ts +36 -0
- package/dist/components/ui-panel/UIPanel.en.d.ts +392 -0
- package/dist/components/ui-panel/UIPanel.es.d.ts +21 -0
- package/dist/components/ui-panel/index.d.ts +2 -0
- package/dist/components/ui-parts/UIActions.d.ts +46 -0
- package/dist/components/ui-parts/UIActions.en.d.ts +46 -0
- package/dist/components/ui-parts/UIActions.es.d.ts +12 -0
- package/dist/components/ui-parts/UIAuthor.d.ts +52 -0
- package/dist/components/ui-parts/UIAuthor.en.d.ts +51 -0
- package/dist/components/ui-parts/UIAuthor.es.d.ts +15 -0
- package/dist/components/ui-parts/UIAvatar.d.ts +60 -0
- package/dist/components/ui-parts/UIAvatar.en.d.ts +57 -0
- package/dist/components/ui-parts/UIAvatar.es.d.ts +15 -0
- package/dist/components/ui-parts/UIContent.d.ts +104 -0
- package/dist/components/ui-parts/UIContent.en.d.ts +99 -0
- package/dist/components/ui-parts/UIContent.es.d.ts +12 -0
- package/dist/components/ui-parts/UIDate.d.ts +45 -0
- package/dist/components/ui-parts/UIDate.en.d.ts +43 -0
- package/dist/components/ui-parts/UIDate.es.d.ts +18 -0
- package/dist/components/ui-parts/UIDescription.d.ts +58 -0
- package/dist/components/ui-parts/UIDescription.en.d.ts +58 -0
- package/dist/components/ui-parts/UIDescription.es.d.ts +13 -0
- package/dist/components/ui-parts/UIDetail.d.ts +45 -0
- package/dist/components/ui-parts/UIDetail.en.d.ts +43 -0
- package/dist/components/ui-parts/UIDetail.es.d.ts +12 -0
- package/dist/components/ui-parts/UIExtra.d.ts +49 -0
- package/dist/components/ui-parts/UIExtra.en.d.ts +48 -0
- package/dist/components/ui-parts/UIExtra.es.d.ts +12 -0
- package/dist/components/ui-parts/UIHeader.d.ts +174 -0
- package/dist/components/ui-parts/UIHeader.en.d.ts +160 -0
- package/dist/components/ui-parts/UIHeader.es.d.ts +15 -0
- package/dist/components/ui-parts/UIMeta.d.ts +46 -0
- package/dist/components/ui-parts/UIMeta.en.d.ts +46 -0
- package/dist/components/ui-parts/UIMeta.es.d.ts +12 -0
- package/dist/components/ui-parts/UIParts.types.d.ts +597 -0
- package/dist/components/ui-parts/UISummary.d.ts +38 -0
- package/dist/components/ui-parts/UISummary.en.d.ts +37 -0
- package/dist/components/ui-parts/UISummary.es.d.ts +15 -0
- package/dist/components/ui-parts/UITitle.d.ts +49 -0
- package/dist/components/ui-parts/UITitle.en.d.ts +49 -0
- package/dist/components/ui-parts/UITitle.es.d.ts +12 -0
- package/dist/components/ui-parts/UIValue.d.ts +45 -0
- package/dist/components/ui-parts/UIValue.en.d.ts +45 -0
- package/dist/components/ui-parts/UIValue.es.d.ts +12 -0
- package/dist/components/ui-parts/index.d.ts +14 -0
- package/dist/components/ui-placeholder/PlaceholderShape.d.ts +21 -0
- package/dist/components/ui-placeholder/UIPlaceholder.d.ts +62 -0
- package/dist/components/ui-placeholder/UIPlaceholder.en.d.ts +51 -0
- package/dist/components/ui-placeholder/UIPlaceholder.es.d.ts +12 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.d.ts +39 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.en.d.ts +37 -0
- package/dist/components/ui-placeholder/UIPlaceholderHeader.es.d.ts +13 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.d.ts +42 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.en.d.ts +39 -0
- package/dist/components/ui-placeholder/UIPlaceholderImage.es.d.ts +17 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.d.ts +39 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.en.d.ts +34 -0
- package/dist/components/ui-placeholder/UIPlaceholderLine.es.d.ts +19 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.d.ts +33 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.en.d.ts +32 -0
- package/dist/components/ui-placeholder/UIPlaceholderParagraph.es.d.ts +16 -0
- package/dist/components/ui-placeholder/index.d.ts +6 -0
- package/dist/components/ui-popup/UIPopup.d.ts +396 -0
- package/dist/components/ui-popup/UIPopup.en.d.ts +167 -0
- package/dist/components/ui-popup/UIPopup.es.d.ts +19 -0
- package/dist/components/ui-popup/index.d.ts +2 -0
- package/dist/components/ui-progress/ProgressValues.d.ts +54 -0
- package/dist/components/ui-progress/UIProgress.d.ts +285 -0
- package/dist/components/ui-progress/UIProgress.en.d.ts +196 -0
- package/dist/components/ui-progress/UIProgress.es.d.ts +27 -0
- package/dist/components/ui-progress/UIProgress.types.d.ts +9 -0
- package/dist/components/ui-progress/index.d.ts +3 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +138 -0
- package/dist/components/ui-property-editor/UIProperty.en.d.ts +67 -0
- package/dist/components/ui-property-editor/UIProperty.es.d.ts +20 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.d.ts +148 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.en.d.ts +19 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.es.d.ts +33 -0
- package/dist/components/ui-property-editor/UIPropertyEditor.types.d.ts +38 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.d.ts +67 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.en.d.ts +20 -0
- package/dist/components/ui-property-editor/UIPropertyGroup.es.d.ts +18 -0
- package/dist/components/ui-property-editor/index.d.ts +4 -0
- package/dist/components/ui-quote/UIQuote.d.ts +60 -0
- package/dist/components/ui-quote/UIQuote.en.d.ts +43 -0
- package/dist/components/ui-quote/UIQuote.es.d.ts +15 -0
- package/dist/components/ui-quote/index.d.ts +2 -0
- package/dist/components/ui-rail/UIRail.d.ts +80 -0
- package/dist/components/ui-rail/UIRail.en.d.ts +72 -0
- package/dist/components/ui-rail/UIRail.es.d.ts +19 -0
- package/dist/components/ui-rail/index.d.ts +2 -0
- package/dist/components/ui-rating/UIRating.d.ts +242 -0
- package/dist/components/ui-rating/UIRating.en.d.ts +109 -0
- package/dist/components/ui-rating/UIRating.es.d.ts +22 -0
- package/dist/components/ui-rating/UIRating.fallback.d.ts +134 -0
- package/dist/components/ui-rating/index.d.ts +2 -0
- package/dist/components/ui-reveal/UIReveal.d.ts +136 -0
- package/dist/components/ui-reveal/UIReveal.en.d.ts +108 -0
- package/dist/components/ui-reveal/UIReveal.es.d.ts +28 -0
- package/dist/components/ui-reveal/index.d.ts +2 -0
- package/dist/components/ui-root/LoaderMessage.d.ts +20 -0
- package/dist/components/ui-root/PlaceholderSkeleton.d.ts +34 -0
- package/dist/components/ui-root/RootBox.d.ts +33 -0
- package/dist/components/ui-root/RootLoader.d.ts +84 -0
- package/dist/components/ui-root/UIRoot.catalog.d.ts +3 -0
- package/dist/components/ui-root/UIRoot.d.ts +249 -0
- package/dist/components/ui-root/UIRoot.en.d.ts +143 -0
- package/dist/components/ui-root/UIRoot.es.d.ts +31 -0
- package/dist/components/ui-root/UIRoot.types.d.ts +56 -0
- package/dist/components/ui-root/index.d.ts +5 -0
- package/dist/components/ui-search/SearchMatcher.d.ts +65 -0
- package/dist/components/ui-search/UISearch.d.ts +485 -0
- package/dist/components/ui-search/UISearch.en.d.ts +301 -0
- package/dist/components/ui-search/UISearch.es.d.ts +41 -0
- package/dist/components/ui-search/UISearch.fallback.d.ts +309 -0
- package/dist/components/ui-search/UISearch.types.d.ts +49 -0
- package/dist/components/ui-search/index.d.ts +3 -0
- package/dist/components/ui-section/UISection.d.ts +676 -0
- package/dist/components/ui-section/UISection.en.d.ts +401 -0
- package/dist/components/ui-section/UISection.es.d.ts +21 -0
- package/dist/components/ui-section/UISection.types.d.ts +13 -0
- package/dist/components/ui-section/UISections.d.ts +63 -0
- package/dist/components/ui-section/UISections.en.d.ts +44 -0
- package/dist/components/ui-section/UISections.es.d.ts +12 -0
- package/dist/components/ui-section/index.d.ts +3 -0
- package/dist/components/ui-segment/UISegment.d.ts +218 -0
- package/dist/components/ui-segment/UISegment.en.d.ts +194 -0
- package/dist/components/ui-segment/UISegment.es.d.ts +18 -0
- package/dist/components/ui-segment/UISegments.d.ts +127 -0
- package/dist/components/ui-segment/UISegments.en.d.ts +113 -0
- package/dist/components/ui-segment/UISegments.es.d.ts +12 -0
- package/dist/components/ui-segment/index.d.ts +3 -0
- package/dist/components/ui-select/UISelect.d.ts +233 -0
- package/dist/components/ui-select/UISelect.en.d.ts +146 -0
- package/dist/components/ui-select/UISelect.es.d.ts +16 -0
- package/dist/components/ui-select/UISelect.fallback.d.ts +166 -0
- package/dist/components/ui-select/UISelect.types.d.ts +17 -0
- package/dist/components/ui-select/index.d.ts +2 -0
- package/dist/components/ui-shape/UIShape.d.ts +206 -0
- package/dist/components/ui-shape/UIShape.en.d.ts +71 -0
- package/dist/components/ui-shape/UIShape.es.d.ts +20 -0
- package/dist/components/ui-shape/UIShape.types.d.ts +7 -0
- package/dist/components/ui-shape/UISide.d.ts +70 -0
- package/dist/components/ui-shape/UISide.en.d.ts +48 -0
- package/dist/components/ui-shape/UISide.es.d.ts +15 -0
- package/dist/components/ui-shape/index.d.ts +3 -0
- package/dist/components/ui-sidebar/UIPushable.d.ts +73 -0
- package/dist/components/ui-sidebar/UIPushable.en.d.ts +43 -0
- package/dist/components/ui-sidebar/UIPushable.es.d.ts +15 -0
- package/dist/components/ui-sidebar/UIPusher.d.ts +50 -0
- package/dist/components/ui-sidebar/UIPusher.en.d.ts +43 -0
- package/dist/components/ui-sidebar/UIPusher.es.d.ts +15 -0
- package/dist/components/ui-sidebar/UISidebar.d.ts +200 -0
- package/dist/components/ui-sidebar/UISidebar.en.d.ts +108 -0
- package/dist/components/ui-sidebar/UISidebar.es.d.ts +27 -0
- package/dist/components/ui-sidebar/UISidebar.types.d.ts +8 -0
- package/dist/components/ui-sidebar/index.d.ts +4 -0
- package/dist/components/ui-slider/SliderScale.d.ts +56 -0
- package/dist/components/ui-slider/UISlider.d.ts +371 -0
- package/dist/components/ui-slider/UISlider.en.d.ts +205 -0
- package/dist/components/ui-slider/UISlider.es.d.ts +32 -0
- package/dist/components/ui-slider/UISlider.fallback.d.ts +223 -0
- package/dist/components/ui-slider/UISlider.types.d.ts +12 -0
- package/dist/components/ui-slider/index.d.ts +3 -0
- package/dist/components/ui-space/UISpace.d.ts +83 -0
- package/dist/components/ui-space/UISpace.en.d.ts +54 -0
- package/dist/components/ui-space/UISpace.es.d.ts +16 -0
- package/dist/components/ui-space/index.d.ts +2 -0
- package/dist/components/ui-stack/UIStack.d.ts +83 -0
- package/dist/components/ui-stack/UIStack.en.d.ts +64 -0
- package/dist/components/ui-stack/UIStack.es.d.ts +36 -0
- package/dist/components/ui-stack/index.d.ts +2 -0
- package/dist/components/ui-statistic/UIStatistic.d.ts +123 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +99 -0
- package/dist/components/ui-statistic/UIStatistic.es.d.ts +15 -0
- package/dist/components/ui-statistic/UIStatistics.d.ts +109 -0
- package/dist/components/ui-statistic/UIStatistics.en.d.ts +93 -0
- package/dist/components/ui-statistic/UIStatistics.es.d.ts +13 -0
- package/dist/components/ui-statistic/index.d.ts +3 -0
- package/dist/components/ui-step/UIStep.d.ts +196 -0
- package/dist/components/ui-step/UIStep.en.d.ts +136 -0
- package/dist/components/ui-step/UIStep.es.d.ts +21 -0
- package/dist/components/ui-step/UISteps.d.ts +177 -0
- package/dist/components/ui-step/UISteps.en.d.ts +145 -0
- package/dist/components/ui-step/UISteps.es.d.ts +15 -0
- package/dist/components/ui-step/index.d.ts +3 -0
- package/dist/components/ui-sticky/UISticky.d.ts +130 -0
- package/dist/components/ui-sticky/UISticky.en.d.ts +61 -0
- package/dist/components/ui-sticky/UISticky.es.d.ts +23 -0
- package/dist/components/ui-sticky/index.d.ts +2 -0
- package/dist/components/ui-tab/UITab.d.ts +181 -0
- package/dist/components/ui-tab/UITab.en.d.ts +124 -0
- package/dist/components/ui-tab/UITab.es.d.ts +15 -0
- package/dist/components/ui-tab/UITab.types.d.ts +31 -0
- package/dist/components/ui-tab/UITabs.d.ts +336 -0
- package/dist/components/ui-tab/UITabs.en.d.ts +162 -0
- package/dist/components/ui-tab/UITabs.es.d.ts +16 -0
- package/dist/components/ui-tab/index.d.ts +3 -0
- package/dist/components/ui-table/TableClassMirror.d.ts +44 -0
- package/dist/components/ui-table/TableGrammar.d.ts +30 -0
- package/dist/components/ui-table/TableRows.d.ts +51 -0
- package/dist/components/ui-table/TableSort.d.ts +71 -0
- package/dist/components/ui-table/UICell.d.ts +89 -0
- package/dist/components/ui-table/UICell.en.d.ts +56 -0
- package/dist/components/ui-table/UICell.es.d.ts +16 -0
- package/dist/components/ui-table/UITable.d.ts +507 -0
- package/dist/components/ui-table/UITable.en.d.ts +272 -0
- package/dist/components/ui-table/UITable.es.d.ts +37 -0
- package/dist/components/ui-table/index.d.ts +3 -0
- package/dist/components/ui-terms/UITerm.d.ts +71 -0
- package/dist/components/ui-terms/UITerm.en.d.ts +52 -0
- package/dist/components/ui-terms/UITerm.es.d.ts +13 -0
- package/dist/components/ui-terms/UITerms.d.ts +63 -0
- package/dist/components/ui-terms/UITerms.en.d.ts +45 -0
- package/dist/components/ui-terms/UITerms.es.d.ts +10 -0
- package/dist/components/ui-terms/index.d.ts +3 -0
- package/dist/components/ui-text/UILink.d.ts +71 -0
- package/dist/components/ui-text/UILink.en.d.ts +54 -0
- package/dist/components/ui-text/UILink.es.d.ts +12 -0
- package/dist/components/ui-text/UIText.d.ts +215 -0
- package/dist/components/ui-text/UIText.en.d.ts +148 -0
- package/dist/components/ui-text/UIText.es.d.ts +30 -0
- package/dist/components/ui-text/index.d.ts +3 -0
- package/dist/components/ui-theme-editor/BenchAddress.d.ts +42 -0
- package/dist/components/ui-theme-editor/PageBridge.d.ts +73 -0
- package/dist/components/ui-theme-editor/SavedTheme.d.ts +65 -0
- package/dist/components/ui-theme-editor/ThemeDraft.d.ts +109 -0
- package/dist/components/ui-theme-editor/ThemeTokens.d.ts +117 -0
- package/dist/components/ui-theme-editor/TokenColor.d.ts +44 -0
- package/dist/components/ui-theme-editor/TokenTree.d.ts +48 -0
- package/dist/components/ui-theme-editor/UIColorChip.d.ts +59 -0
- package/dist/components/ui-theme-editor/UIColorChip.en.d.ts +43 -0
- package/dist/components/ui-theme-editor/UIColorChip.es.d.ts +25 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.d.ts +1339 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.en.d.ts +766 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.es.d.ts +202 -0
- package/dist/components/ui-theme-editor/UIThemeEditor.types.d.ts +205 -0
- package/dist/components/ui-theme-editor/UIThemeToken.d.ts +180 -0
- package/dist/components/ui-theme-editor/UIThemeToken.en.d.ts +110 -0
- package/dist/components/ui-theme-editor/UIThemeToken.es.d.ts +38 -0
- package/dist/components/ui-theme-editor/index.d.ts +8 -0
- package/dist/components/ui-theme-menu/ThemeMenu.d.ts +32 -0
- package/dist/components/ui-theme-menu/ThemePreference.d.ts +189 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.d.ts +338 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.en.d.ts +187 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.es.d.ts +58 -0
- package/dist/components/ui-theme-menu/UIThemeMenu.types.d.ts +56 -0
- package/dist/components/ui-theme-menu/index.d.ts +5 -0
- package/dist/components/ui-toast/ToastStack.d.ts +79 -0
- package/dist/components/ui-toast/UIToast.d.ts +368 -0
- package/dist/components/ui-toast/UIToast.en.d.ts +180 -0
- package/dist/components/ui-toast/UIToast.es.d.ts +28 -0
- package/dist/components/ui-toast/UIToast.types.d.ts +13 -0
- package/dist/components/ui-toast/index.d.ts +3 -0
- package/dist/components/ui-toc/HashLanding.d.ts +112 -0
- package/dist/components/ui-toc/PageOutline.d.ts +59 -0
- package/dist/components/ui-toc/TocIndex.d.ts +121 -0
- package/dist/components/ui-toc/TocPreferences.d.ts +23 -0
- package/dist/components/ui-toc/UIToc.d.ts +249 -0
- package/dist/components/ui-toc/UIToc.en.d.ts +114 -0
- package/dist/components/ui-toc/UIToc.es.d.ts +36 -0
- package/dist/components/ui-toc/UIToc.types.d.ts +80 -0
- package/dist/components/ui-toc/index.d.ts +6 -0
- package/dist/components/ui-toolbar/UIToolbar.d.ts +71 -0
- package/dist/components/ui-toolbar/UIToolbar.en.d.ts +274 -0
- package/dist/components/ui-toolbar/UIToolbar.es.d.ts +34 -0
- package/dist/components/ui-toolbar/index.d.ts +2 -0
- package/dist/components/ui-transition/UITransition.d.ts +212 -0
- package/dist/components/ui-transition/UITransition.en.d.ts +95 -0
- package/dist/components/ui-transition/UITransition.es.d.ts +21 -0
- package/dist/components/ui-transition/index.d.ts +2 -0
- package/dist/components/ui-tree-diagram/TreeData.d.ts +41 -0
- package/dist/components/ui-tree-diagram/TreeLayout.d.ts +53 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +128 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.en.d.ts +61 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.es.d.ts +25 -0
- package/dist/components/ui-tree-diagram/UITreeDiagram.types.d.ts +115 -0
- package/dist/components/ui-tree-diagram/index.d.ts +5 -0
- package/dist/components/ui-video/MediaPlayer.d.ts +39 -0
- package/dist/components/ui-video/UIAudio.d.ts +83 -0
- package/dist/components/ui-video/UIAudio.en.d.ts +67 -0
- package/dist/components/ui-video/UIAudio.es.d.ts +24 -0
- package/dist/components/ui-video/UIVideo.d.ts +102 -0
- package/dist/components/ui-video/UIVideo.en.d.ts +84 -0
- package/dist/components/ui-video/UIVideo.es.d.ts +30 -0
- package/dist/components/ui-video/UIVideo.types.d.ts +40 -0
- package/dist/components/ui-video/index.d.ts +4 -0
- package/dist/components/ui-visibility/UIVisibility.d.ts +150 -0
- package/dist/components/ui-visibility/UIVisibility.en.d.ts +94 -0
- package/dist/components/ui-visibility/UIVisibility.es.d.ts +29 -0
- package/dist/components/ui-visibility/index.d.ts +2 -0
- package/dist/components/ui-zoom/ImageZoom.d.ts +99 -0
- package/dist/components/ui-zoom/UIZoom.d.ts +179 -0
- package/dist/components/ui-zoom/UIZoom.en.d.ts +92 -0
- package/dist/components/ui-zoom/UIZoom.es.d.ts +27 -0
- package/dist/components/ui-zoom/index.d.ts +3 -0
- package/dist/components.es-DmLzT-Bq.js +3017 -0
- package/dist/components.es-DmLzT-Bq.js.map +1 -0
- package/dist/core.d.ts +79 -0
- package/dist/core.js +4607 -0
- package/dist/core.js.map +1 -0
- package/dist/crisp-CoZRRDuQ.js +6 -0
- package/dist/crisp-CoZRRDuQ.js.map +1 -0
- package/dist/crisp.theme-DRiePRdf.js +6 -0
- package/dist/crisp.theme-DRiePRdf.js.map +1 -0
- package/dist/dark-CbUdPe0a.js +6 -0
- package/dist/dark-CbUdPe0a.js.map +1 -0
- package/dist/dist-BLYIGZVK.js +868 -0
- package/dist/dist-BLYIGZVK.js.map +1 -0
- package/dist/docs-components/DocsFamilies.d.ts +18 -0
- package/dist/docs-components/SiteData.d.ts +66 -0
- package/dist/docs-components/SiteDataLoad.d.ts +23 -0
- package/dist/docs-components/docs-components.types.d.ts +391 -0
- package/dist/docs-components/index.d.ts +44 -0
- package/dist/docs-components/ui-docs-api/ApiModel.d.ts +69 -0
- package/dist/docs-components/ui-docs-api/InlineCode.d.ts +23 -0
- package/dist/docs-components/ui-docs-api/UIDocsApi.d.ts +388 -0
- package/dist/docs-components/ui-docs-api/UIDocsApi.en.d.ts +267 -0
- package/dist/docs-components/ui-docs-api/UIDocsApi.types.d.ts +103 -0
- package/dist/docs-components/ui-docs-api/index.d.ts +4 -0
- package/dist/docs-components/ui-docs-inspector/ElementSnapshot.d.ts +53 -0
- package/dist/docs-components/ui-docs-inspector/UIDocsInspector.d.ts +145 -0
- package/dist/docs-components/ui-docs-inspector/UIDocsInspector.en.d.ts +87 -0
- package/dist/docs-components/ui-docs-inspector/index.d.ts +3 -0
- package/dist/docs-components/ui-docs-nav/NavIndex.d.ts +50 -0
- package/dist/docs-components/ui-docs-nav/NavPreferences.d.ts +38 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.d.ts +461 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.en.d.ts +198 -0
- package/dist/docs-components/ui-docs-nav/UIDocsNav.types.d.ts +131 -0
- package/dist/docs-components/ui-docs-nav/index.d.ts +4 -0
- package/dist/docs-components/ui-docs-search/SearchData.d.ts +24 -0
- package/dist/docs-components/ui-docs-search/SearchIndex.d.ts +83 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.d.ts +359 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.en.d.ts +166 -0
- package/dist/docs-components/ui-docs-search/UIDocsSearch.types.d.ts +104 -0
- package/dist/docs-components/ui-docs-search/index.d.ts +4 -0
- package/dist/docs-components/ui-docs-theme-bench/BenchPages.d.ts +35 -0
- package/dist/docs-components/ui-docs-theme-bench/UIDocsThemeBench.d.ts +81 -0
- package/dist/docs-components/ui-docs-theme-bench/UIDocsThemeBench.en.d.ts +49 -0
- package/dist/docs-components/ui-docs-theme-bench/UIDocsThemeBench.types.d.ts +5 -0
- package/dist/docs-components/ui-docs-theme-bench/index.d.ts +3 -0
- package/dist/docs-components/ui-docs-tokens/ColorProbe.d.ts +25 -0
- package/dist/docs-components/ui-docs-tokens/TokenRows.d.ts +35 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.d.ts +301 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.en.d.ts +184 -0
- package/dist/docs-components/ui-docs-tokens/UIDocsTokens.types.d.ts +59 -0
- package/dist/docs-components/ui-docs-tokens/index.d.ts +4 -0
- package/dist/elements/ClassBuilder.d.ts +63 -0
- package/dist/elements/ClipboardCopy.d.ts +24 -0
- package/dist/elements/CloseButton.d.ts +42 -0
- package/dist/elements/ControlLabels.d.ts +70 -0
- package/dist/elements/DOMFormControl.d.ts +39 -0
- package/dist/elements/DOMLoadableBodyElement.d.ts +26 -0
- package/dist/elements/DOMLoadableElement.d.ts +85 -0
- package/dist/elements/FormComponent.d.ts +193 -0
- package/dist/elements/HighlightedOption.d.ts +31 -0
- package/dist/elements/IconGlyph.d.ts +81 -0
- package/dist/elements/LabelWatch.d.ts +39 -0
- package/dist/elements/LoadableBody.d.ts +83 -0
- package/dist/elements/LoadableComponent.d.ts +178 -0
- package/dist/elements/MenuOptions.d.ts +118 -0
- package/dist/elements/NativeFallback.d.ts +173 -0
- package/dist/elements/PartComponent.d.ts +42 -0
- package/dist/elements/PopoverPanel.d.ts +61 -0
- package/dist/elements/RootSettings.d.ts +42 -0
- package/dist/elements/Shorthand.d.ts +46 -0
- package/dist/elements/SourceMarkup.d.ts +50 -0
- package/dist/elements/SpellUISettings.d.ts +30 -0
- package/dist/elements/StickyWatch.d.ts +82 -0
- package/dist/elements/Validator.d.ts +101 -0
- package/dist/elements/elements.types.d.ts +464 -0
- package/dist/elements/index.d.ts +47 -0
- package/dist/emoji/cldr/0-DSUpV2d7.js +10 -0
- package/dist/emoji/cldr/0-DSUpV2d7.js.map +1 -0
- package/dist/emoji/cldr/a-D_oB4vJ-.js +56 -0
- package/dist/emoji/cldr/a-D_oB4vJ-.js.map +1 -0
- package/dist/emoji/cldr/b-DX0W0Mda.js +172 -0
- package/dist/emoji/cldr/b-DX0W0Mda.js.map +1 -0
- package/dist/emoji/cldr/c-DUHidpE9.js +276 -0
- package/dist/emoji/cldr/c-DUHidpE9.js.map +1 -0
- package/dist/emoji/cldr/d-CiCXZXay.js +82 -0
- package/dist/emoji/cldr/d-CiCXZXay.js.map +1 -0
- package/dist/emoji/cldr/e-DILJo3Ri.js +54 -0
- package/dist/emoji/cldr/e-DILJo3Ri.js.map +1 -0
- package/dist/emoji/cldr/f-ByGFLyOq.js +438 -0
- package/dist/emoji/cldr/f-ByGFLyOq.js.map +1 -0
- package/dist/emoji/cldr/g-BZ0FRsud.js +62 -0
- package/dist/emoji/cldr/g-BZ0FRsud.js.map +1 -0
- package/dist/emoji/cldr/h-jtLdvRXQ.js +121 -0
- package/dist/emoji/cldr/h-jtLdvRXQ.js.map +1 -0
- package/dist/emoji/cldr/i-DcbJ5utE.js +34 -0
- package/dist/emoji/cldr/i-DcbJ5utE.js.map +1 -0
- package/dist/emoji/cldr/j-BuEqP5nz.js +40 -0
- package/dist/emoji/cldr/j-BuEqP5nz.js.map +1 -0
- package/dist/emoji/cldr/k-P1J6Gvze.js +141 -0
- package/dist/emoji/cldr/k-P1J6Gvze.js.map +1 -0
- package/dist/emoji/cldr/l-28XcbsPr.js +93 -0
- package/dist/emoji/cldr/l-28XcbsPr.js.map +1 -0
- package/dist/emoji/cldr/m-DKgGJ8rW.js +674 -0
- package/dist/emoji/cldr/m-DKgGJ8rW.js.map +1 -0
- package/dist/emoji/cldr/n-DmPLP4F3.js +54 -0
- package/dist/emoji/cldr/n-DmPLP4F3.js.map +1 -0
- package/dist/emoji/cldr/o-f98nt3s7.js +86 -0
- package/dist/emoji/cldr/o-f98nt3s7.js.map +1 -0
- package/dist/emoji/cldr/p-CxnsOTOt.js +573 -0
- package/dist/emoji/cldr/p-CxnsOTOt.js.map +1 -0
- package/dist/emoji/cldr/r-D0GPRJ-Q.js +141 -0
- package/dist/emoji/cldr/r-D0GPRJ-Q.js.map +1 -0
- package/dist/emoji/cldr/s-DcFuepnw.js +211 -0
- package/dist/emoji/cldr/s-DcFuepnw.js.map +1 -0
- package/dist/emoji/cldr/t-BvHgGpUr.js +104 -0
- package/dist/emoji/cldr/t-BvHgGpUr.js.map +1 -0
- package/dist/emoji/cldr/u-ChFYHtUf.js +20 -0
- package/dist/emoji/cldr/u-ChFYHtUf.js.map +1 -0
- package/dist/emoji/cldr/v-WmX3nWtZ.js +35 -0
- package/dist/emoji/cldr/v-WmX3nWtZ.js.map +1 -0
- package/dist/emoji/cldr/w-BPySQUWW.js +649 -0
- package/dist/emoji/cldr/w-BPySQUWW.js.map +1 -0
- package/dist/emoji/cldr/x-SC3r1n9O.js +6 -0
- package/dist/emoji/cldr/x-SC3r1n9O.js.map +1 -0
- package/dist/emoji/cldr/y-zB_yhTFg.js +15 -0
- package/dist/emoji/cldr/y-zB_yhTFg.js.map +1 -0
- package/dist/emoji/cldr/z-BgJ94Cap.js +12 -0
- package/dist/emoji/cldr/z-BgJ94Cap.js.map +1 -0
- package/dist/emoji/fomantic/0-CGf6gC3a.js +10 -0
- package/dist/emoji/fomantic/0-CGf6gC3a.js.map +1 -0
- package/dist/emoji/fomantic/a-CrqYlC21.js +89 -0
- package/dist/emoji/fomantic/a-CrqYlC21.js.map +1 -0
- package/dist/emoji/fomantic/b-DneVHRdQ.js +170 -0
- package/dist/emoji/fomantic/b-DneVHRdQ.js.map +1 -0
- package/dist/emoji/fomantic/c-ClxKRuir.js +292 -0
- package/dist/emoji/fomantic/c-ClxKRuir.js.map +1 -0
- package/dist/emoji/fomantic/d-Djqs_y4s.js +82 -0
- package/dist/emoji/fomantic/d-Djqs_y4s.js.map +1 -0
- package/dist/emoji/fomantic/e-CuF-jOQd.js +56 -0
- package/dist/emoji/fomantic/e-CuF-jOQd.js.map +1 -0
- package/dist/emoji/fomantic/f-D8VglrJ4.js +413 -0
- package/dist/emoji/fomantic/f-D8VglrJ4.js.map +1 -0
- package/dist/emoji/fomantic/g-Du_HFl6U.js +53 -0
- package/dist/emoji/fomantic/g-Du_HFl6U.js.map +1 -0
- package/dist/emoji/fomantic/h-CLE5tHnM.js +126 -0
- package/dist/emoji/fomantic/h-CLE5tHnM.js.map +1 -0
- package/dist/emoji/fomantic/i-BjOsrQDZ.js +29 -0
- package/dist/emoji/fomantic/i-BjOsrQDZ.js.map +1 -0
- package/dist/emoji/fomantic/j-CyUDXKCu.js +25 -0
- package/dist/emoji/fomantic/j-CyUDXKCu.js.map +1 -0
- package/dist/emoji/fomantic/k-Clypg4R8.js +130 -0
- package/dist/emoji/fomantic/k-Clypg4R8.js.map +1 -0
- package/dist/emoji/fomantic/l-DvLPdBh-.js +89 -0
- package/dist/emoji/fomantic/l-DvLPdBh-.js.map +1 -0
- package/dist/emoji/fomantic/m-B1lIb1kP.js +637 -0
- package/dist/emoji/fomantic/m-B1lIb1kP.js.map +1 -0
- package/dist/emoji/fomantic/n-Bgpp_ht5.js +56 -0
- package/dist/emoji/fomantic/n-Bgpp_ht5.js.map +1 -0
- package/dist/emoji/fomantic/o-BhYZzpjp.js +76 -0
- package/dist/emoji/fomantic/o-BhYZzpjp.js.map +1 -0
- package/dist/emoji/fomantic/p-VLL0GK3m.js +526 -0
- package/dist/emoji/fomantic/p-VLL0GK3m.js.map +1 -0
- package/dist/emoji/fomantic/q-CKrtMwhc.js +6 -0
- package/dist/emoji/fomantic/q-CKrtMwhc.js.map +1 -0
- package/dist/emoji/fomantic/r-Bd1DjkkI.js +127 -0
- package/dist/emoji/fomantic/r-Bd1DjkkI.js.map +1 -0
- package/dist/emoji/fomantic/s-Bqatw1W7.js +210 -0
- package/dist/emoji/fomantic/s-Bqatw1W7.js.map +1 -0
- package/dist/emoji/fomantic/t-Bs7IFhv3.js +111 -0
- package/dist/emoji/fomantic/t-Bs7IFhv3.js.map +1 -0
- package/dist/emoji/fomantic/u-M6GfYC-U.js +28 -0
- package/dist/emoji/fomantic/u-M6GfYC-U.js.map +1 -0
- package/dist/emoji/fomantic/v-BKHNqkn0.js +35 -0
- package/dist/emoji/fomantic/v-BKHNqkn0.js.map +1 -0
- package/dist/emoji/fomantic/w-B_XvIu7h.js +580 -0
- package/dist/emoji/fomantic/w-B_XvIu7h.js.map +1 -0
- package/dist/emoji/fomantic/x-CG1_nzCF.js +9 -0
- package/dist/emoji/fomantic/x-CG1_nzCF.js.map +1 -0
- package/dist/emoji/fomantic/y-DPZaoIla.js +16 -0
- package/dist/emoji/fomantic/y-DPZaoIla.js.map +1 -0
- package/dist/emoji/fomantic/z-FH-kPXch.js +14 -0
- package/dist/emoji/fomantic/z-FH-kPXch.js.map +1 -0
- package/dist/forms.d.ts +28 -0
- package/dist/forms.js +782 -0
- package/dist/forms.js.map +1 -0
- package/dist/fruity-CQFYeRlh.js +6 -0
- package/dist/fruity-CQFYeRlh.js.map +1 -0
- package/dist/fruity.theme-BJcMiPl1.js +6 -0
- package/dist/fruity.theme-BJcMiPl1.js.map +1 -0
- package/dist/glass-CAfW11kL.js +6 -0
- package/dist/glass-CAfW11kL.js.map +1 -0
- package/dist/glass.theme-DQcBbtCW.js +6 -0
- package/dist/glass.theme-DQcBbtCW.js.map +1 -0
- package/dist/hot.d.ts +7 -0
- package/dist/hot.js +169 -0
- package/dist/hot.js.map +1 -0
- package/dist/icon-packs/fa7-brands/brands/42-group.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/500px.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/a11y-project.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/accessible-icon.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/accusoft.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/adn.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/adversal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/affiliatetheme.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/airbnb.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/algolia.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/alipay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/amazon-pay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/amazon.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/amilia.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/android.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/angellist.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/angrycreative.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/angular.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/app-store-ios.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/app-store.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/apper.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/apple-pay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/apple.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/arch-linux.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/artstation.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/asymmetrik.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/atlassian.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/audible.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/autoprefixer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/avianex.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/aviato.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/aws.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bandcamp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/battle-net.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/behance.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bilibili.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bimobject.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bitbucket.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bitcoin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bity.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/black-tie.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/blackberry.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/blogger-b.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/blogger.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bluesky.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bluetooth-b.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bluetooth.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/board-game-geek.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bootstrap.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/bots.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/brave-reverse.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/brave.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/btc.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/buffer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/build-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/buromobelexperte.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/buy-n-large.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/buysellads.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/canadian-maple-leaf.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cash-app.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-amazon-pay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-amex.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-apple-pay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-diners-club.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-discover.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-jcb.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-mastercard.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-paypal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-stripe.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cc-visa.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/centercode.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/centos.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/chrome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/chromecast.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/circle-zulip.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/claude.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cloudflare.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cloudscale.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cloudsmith.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cloudversify.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cmplid.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/codeberg.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/codepen.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/codiepie.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/confluence.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/connectdevelop.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/contao.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/copilot.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cotton-bureau.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cpanel.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-by.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-nc-eu.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-nc-jp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-nc.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-nd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-pd-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-pd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-remix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-sa.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-sampling-plus.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-sampling.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-share.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons-zero.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/creative-commons.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/critical-role.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/css.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/css3-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/css3.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/cuttlefish.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/d-and-d-beyond.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/d-and-d.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dailymotion.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dart-lang.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dashcube.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/debian.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/deezer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/delicious.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/deploydog.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/deskpro.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dev.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/deviantart.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/devpost.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dhl.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/diaspora.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/digg.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/digital-ocean.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/discord.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/discourse.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/disqus.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dochub.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/docker.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dolibarr.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/draft2digital.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dribbble.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dropbox.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/drupal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/duolingo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/dyalog.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/earlybirds.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ebay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/edge-legacy.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/edge.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/elementor.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/eleventy.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ello.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ember.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/empire.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/envira.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/erlang.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ethereum.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/etsy.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/evernote.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/expeditedssl.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/facebook-f.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/facebook-messenger.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/facebook.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fantasy-flight-games.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fedex.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fediverse.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fedora.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/figma.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/files-pinwheel.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/firefox-browser.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/firefox.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/first-order-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/first-order.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/firstdraft.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/flickr.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/flipboard.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/flutter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fly.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/font-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fonticons-fi.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fonticons.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/forgejo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fort-awesome-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fort-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/forumbee.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/foursquare.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/free-code-camp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/freebsd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/fulcrum.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/galactic-republic.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/galactic-senate.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/get-pocket.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gg-circle.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gg.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/git-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/git.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gitee.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/github-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/github.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gitkraken.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gitlab.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gitter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/glide-g.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/glide.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/globaleaks.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gofore.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/golang.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/goodreads-g.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/goodreads.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-drive.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-pay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-play.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-plus-g.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-plus.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-scholar.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google-wallet.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/google.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gratipay.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/grav.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gripfire.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/grunt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/guilded.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/gulp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hacker-news.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hackerrank.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hashnode.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hips.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hire-a-helper.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hive.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hooli.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hornbill.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hotjar.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/houzz.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/html5.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hubspot.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/hugging-face.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ideal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/imdb.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/instagram.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/instalod.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/intercom.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/internet-archive.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/internet-explorer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/invision.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ioxhost.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/itch-io.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/itunes-note.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/itunes.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/java.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/jedi-order.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/jenkins.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/jira.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/joget.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/joomla.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/js.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/jsfiddle.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/julia.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/jxl.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/kaggle.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/kakao-talk.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/keybase.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/keycdn.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/kickstarter-k.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/kickstarter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ko-fi.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/korvue.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/kubernetes.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/laravel.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/lastfm.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/leanpub.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/leetcode.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/less.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/lets-encrypt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/letterboxd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/line.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/linkedin-in.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/linkedin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/linktree.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/linode.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/linux.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/lumon-drop.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/lumon.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/lyft.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/magento.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mailchimp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mandalorian.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/markdown.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mastodon.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/matrix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mattermost.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/maxcdn.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mdb.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/medapps.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/medium.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/medrt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/meetup.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/megaport.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mendeley.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/meta.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/microblog.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/microsoft.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mintbit.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mixcloud.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mixer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/mizuni.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/modx.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/monero.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/napster.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/neos.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/nextcloud.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/nfc-directional.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/nfc-symbol.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/nimblr.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/node-js.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/node.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/notion.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/npm.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ns8.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/nutritionix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/obs-studio.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/obsidian.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/octopus-deploy.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/odnoklassniki.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/odysee.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/old-republic.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/openai.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/opencart.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/openid.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/openstreetmap.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/opensuse.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/opera.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/optin-monster.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/orcid.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/osi.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/padlet.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/page4.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pagelines.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/palfed.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pandora.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/patreon.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/paypal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/perbyte.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/periscope.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/phabricator.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/phoenix-framework.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/phoenix-squadron.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/php.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pied-piper-alt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pied-piper-hat.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pied-piper-pp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pied-piper.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pinterest-p.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pinterest.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pixelfed.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pixiv.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/playstation.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/postgresql.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/product-hunt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/pushed.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/python.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/qq.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/quinscape.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/quora.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/r-project.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/raspberry-pi.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ravelry.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/react.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/reacteurope.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/readme.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/rebel.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/red-river.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/reddit-alien.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/reddit.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/redhat.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/renren.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/replyd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/researchgate.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/resolving.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/rev.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/roblox-creator-studio.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/rocketchat.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/rockrms.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ror.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/rust.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/safari.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/salesforce.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sass.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/scaleway.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/schlix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/screenpal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/scribd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/searchengin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sellcast.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sellsy.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/servicestack.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/shirtsinbulk.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/shoelace.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/shopify.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/shopware.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/signal-messenger.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/simplybuilt.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sistrix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sith.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sitrox.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sketch.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/skyatlas.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/skype.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/slack.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/slideshare.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/snapchat.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/solana.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/soundcloud.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sourcetree.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/space-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/speakap.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/speaker-deck.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/spotify.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-behance.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-bluesky.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-build-awesome-stroke.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-deskpro.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-dribbble.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-facebook.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-figma.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-font-awesome-stroke.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-font-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-git.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-github.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-gitlab.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-google-plus.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-hacker-news.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-instagram.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-js.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-lastfm.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-letterboxd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-linkedin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-odnoklassniki.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-pied-piper.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-pinterest.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-reddit.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-snapchat.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-steam.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-threads.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-tumblr.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-twitter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-upwork.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-viadeo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-vimeo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-web-awesome-stroke.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-web-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-whatsapp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-x-twitter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-xing.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/square-youtube.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/squarespace.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stack-exchange.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stack-overflow.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stackpath.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/staylinked.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/steam-symbol.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/steam.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/sticker-mule.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/storybook.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/strava.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stripe-s.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stripe.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stubber.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/studiovinari.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stumbleupon-circle.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/stumbleupon.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/substack.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/superpowers.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/supple.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/supportnow.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/suse.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/svelte.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/swift.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/symfony.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/symfonycasts.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tailwind-css.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/teamspeak.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/telegram.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tencent-weibo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tesla.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tex.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/the-red-yeti.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/themeco.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/themeisle.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/think-peaks.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/threads.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/threema.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tidal.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tiktok.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tor-browser.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/trade-federation.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/trello.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/tumblr.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/twitch.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/twitter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/typescript.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/typo3.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/uber.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ubuntu.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/uikit.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ultralytics-hub.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ultralytics-yolo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ultralytics.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/umbraco.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/uncharted.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/uniregistry.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/unison.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/unity.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/unreal-engine.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/unsplash.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/untappd.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ups.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/upwork.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/usb.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/usps.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/ussunnah.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vaadin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/venmo-v.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/venmo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/viacoin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/viadeo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/viber.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vim.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vimeo-v.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vimeo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vine.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/visual-studio.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vk.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vnv.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vsco.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/vuejs.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/w3c.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/watchman-monitoring.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/waze.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/web-awesome.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/webflow.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/weebly.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/weibo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/weixin.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/whatsapp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/whmcs.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wikipedia-w.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/windows.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wirsindhandwerk.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wix.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wizards-of-the-coast.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wodu.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wolf-pack-battalion.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wordpress-simple.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wordpress.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wpbeginner.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wpexplorer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wpforms.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/wpressr.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/x-twitter.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/xbox.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/xing.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/xmpp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/xrp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/xrpl.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/y-combinator.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yahoo.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yammer.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yandex-international.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yandex.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yarn.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yelp.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/yoast.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/youtube-shorts.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/youtube.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/zhihu.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/zoom.svg +1 -0
- package/dist/icon-packs/fa7-brands/brands/zulip.svg +1 -0
- package/dist/icon-packs/fa7-brands/pack.js +582 -0
- package/dist/icon-packs/fa7-free/brands/discord.svg +1 -0
- package/dist/icon-packs/fa7-free/brands/github.svg +1 -0
- package/dist/icon-packs/fa7-free/brands/medium.svg +1 -0
- package/dist/icon-packs/fa7-free/brands/twitter.svg +1 -0
- package/dist/icon-packs/fa7-free/pack.js +1605 -0
- package/dist/icon-packs/fa7-free/regular/address-book.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/address-card.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/alarm-clock.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/bell-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/bell.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/bookmark.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/building.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/calendar-check.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/calendar-days.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/calendar-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/calendar-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/calendar-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/calendar.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/camera.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chart-bar.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chess-bishop.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chess-king.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chess-knight.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chess-pawn.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chess-queen.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/chess-rook.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-dot.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-down.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-left.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-pause.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-play.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-question.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-right.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-stop.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-up.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-user.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/circle.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/clipboard.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/clock.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/clone.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/closed-captioning.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/cloud.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/comment-dots.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/comment.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/comments.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/compass.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/copy.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/copyright.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/credit-card.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/envelope-open.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/envelope.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/eye-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/eye.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-angry.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-dizzy.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-flushed.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-frown-open.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-frown.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grimace.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-beam-sweat.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-hearts.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-squint-tears.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-squint.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-stars.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-tears.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-tongue-squint.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-tongue-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-tongue.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-wide.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-grin.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-kiss-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-kiss-wink-heart.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-kiss.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-laugh-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-laugh-squint.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-laugh-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-laugh.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-meh-blank.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-meh.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-rolling-eyes.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-sad-cry.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-sad-tear.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-smile-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-smile-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-smile.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-surprise.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/face-tired.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-audio.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-code.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-excel.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-image.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-lines.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-pdf.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-powerpoint.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-video.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-word.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file-zipper.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/file.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/flag.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/floppy-disk.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/folder-closed.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/folder-open.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/folder.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/font-awesome.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/futbol.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/gem.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-back-fist.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-lizard.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-peace.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-point-down.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-point-left.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-point-right.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-point-up.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-pointer.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-scissors.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand-spock.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hand.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/handshake.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hard-drive.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/headphones.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/heart.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hospital.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hourglass-half.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/hourglass.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/house.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/id-badge.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/id-card.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/image.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/images.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/keyboard.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/lemon.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/life-ring.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/lightbulb.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/map.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/message.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/money-bill-1.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/moon.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/newspaper.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/note-sticky.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/object-group.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/object-ungroup.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/paper-plane.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/paste.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/pen-to-square.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/rectangle-list.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/rectangle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/registered.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/share-from-square.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/snowflake.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-caret-down.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-caret-left.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-caret-right.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-caret-up.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-check.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-full.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/square.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/star-half-stroke.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/star-half.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/star.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/sun.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/thumbs-down.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/thumbs-up.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/trash-can.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/truck.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/user.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/window-maximize.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/window-minimize.svg +1 -0
- package/dist/icon-packs/fa7-free/regular/window-restore.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/0.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/1.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/2.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/3.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/4.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/5.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/6.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/7.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/8.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/9.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/a.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/address-book.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/address-card.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/alarm-clock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/align-center.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/align-justify.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/align-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/align-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/anchor-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/anchor-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/anchor-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/anchor-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/anchor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angle-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angle-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angle-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angle-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angles-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angles-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angles-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/angles-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ankh.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/apple-whole.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/aquarius.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/archway.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/aries.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-1-9.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-9-1.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-a-z.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-short-wide.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-up-across-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-up-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-wide-short.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down-z-a.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-left-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-pointer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-right-arrow-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-right-from-bracket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-right-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-right-to-bracket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-right-to-city.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-rotate-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-rotate-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-trend-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-trend-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-turn-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-turn-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-1-9.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-9-1.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-a-z.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-from-bracket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-from-ground-water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-from-water-pump.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-right-dots.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-right-from-square.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-short-wide.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-wide-short.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up-z-a.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-down-to-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-down-to-people.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-left-right-to-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-left-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-rotate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-spin.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-split-up-and-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-to-circle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-to-dot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-to-eye.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-turn-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-turn-to-dots.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-up-down-left-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-up-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/arrows-up-to-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/asterisk.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/at.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/atom.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/audio-description.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/austral-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/award.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/b.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/baby-carriage.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/baby.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/backward-fast.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/backward-step.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/backward.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bacon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bacteria.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bacterium.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bag-shopping.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bahai.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/baht-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ban-smoking.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ban.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bandage.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bangladeshi-taka-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/barcode.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bars-progress.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bars-staggered.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bars.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/baseball-bat-ball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/baseball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/basket-shopping.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/basketball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bath.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/battery-empty.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/battery-full.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/battery-half.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/battery-quarter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/battery-three-quarters.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bed-pulse.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/beer-mug-empty.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bell-concierge.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bell-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bell.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bezier-curve.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bicycle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/binoculars.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/biohazard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bitcoin-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/blender-phone.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/blender.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/blog.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bold.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bolt-lightning.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bolt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bomb.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bone.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bong.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-atlas.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-bible.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-bookmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-journal-whills.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-open-reader.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-quran.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-skull.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book-tanakh.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/book.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bookmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/border-all.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/border-none.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/border-top-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bore-hole.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bottle-droplet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bottle-water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bowl-food.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bowl-rice.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bowling-ball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/box-archive.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/box-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/box-tissue.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/box.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/boxes-packing.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/boxes-stacked.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/braille.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/brain.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/brazilian-real-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bread-slice.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bridge-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bridge-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bridge-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bridge-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bridge-water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bridge.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/briefcase-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/briefcase.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/broom-ball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/broom.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/brush.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bucket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bug-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bug.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bugs.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-circle-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-columns.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-flag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-ngo.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-shield.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-un.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building-wheat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/building.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bullhorn.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bullseye.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/burger.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/burst.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bus-side.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bus-simple.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/bus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/business-time.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/c.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cable-car.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cake-candles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calculator.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-day.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-days.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-week.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/calendar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/camera-retro.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/camera-rotate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/camera.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/campground.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cancer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/candy-cane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cannabis.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/capricorn.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/capsules.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car-battery.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car-burst.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car-on.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car-rear.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car-side.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car-tunnel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/car.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/caravan.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/caret-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/caret-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/caret-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/caret-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/carrot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cart-arrow-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cart-flatbed-suitcase.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cart-flatbed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cart-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cart-shopping.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cash-register.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cedi-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cent-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/certificate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chair.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chalkboard-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chalkboard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/champagne-glasses.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/charging-station.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-area.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-bar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-column.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-diagram.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-gantt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-pie.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chart-simple.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/check-double.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/check-to-slot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cheese.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-bishop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-board.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-king.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-knight.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-pawn.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-queen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess-rook.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chess.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chevron-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chevron-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chevron-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/chevron-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/child-combatant.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/child-dress.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/child-reaching.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/child.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/children.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/church.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-arrow-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-arrow-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-chevron-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-chevron-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-chevron-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-chevron-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-dollar-to-slot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-dot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-h.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-half-stroke.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-info.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-nodes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-notch.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-pause.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-play.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-question.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-radiation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-stop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/circle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/city.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clapperboard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clipboard-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clipboard-list.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clipboard-question.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clipboard-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clipboard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clock-rotate-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clone.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/closed-captioning-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/closed-captioning.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-arrow-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-bolt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-meatball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-moon-rain.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-moon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-rain.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-showers-heavy.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-showers-water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-sun-rain.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud-sun.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cloud.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/clover.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code-branch.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code-commit.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code-compare.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code-fork.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code-merge.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code-pull-request.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/code.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/coins.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/colon-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment-dots.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment-nodes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment-sms.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comment.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comments-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/comments.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/compact-disc.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/compass-drafting.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/compass.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/compress.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/computer-mouse.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/computer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cookie-bite.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cookie.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/copy.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/copyright.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/couch.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cow.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/credit-card.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/crop-simple.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/crop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cross.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/crosshairs.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/crow.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/crown.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/crutch.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cruzeiro-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cube.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cubes-stacked.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/cubes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/d.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/database.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/delete-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/democrat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/desktop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dharmachakra.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/diagram-next.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/diagram-predecessor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/diagram-project.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/diagram-successor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/diamond-turn-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/diamond.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-d20.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-d6.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-five.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-four.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-one.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-six.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-three.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice-two.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dice.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/disease.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/display.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/divide.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dna.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dog.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dollar-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dolly.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dong-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/door-closed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/door-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dove.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/down-left-and-up-right-to-center.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/down-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/download.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dragon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/draw-polygon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/droplet-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/droplet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/drum-steelpan.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/drum.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/drumstick-bite.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dumbbell.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dumpster-fire.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dumpster.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/dungeon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/e.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ear-deaf.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ear-listen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/earth-africa.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/earth-americas.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/earth-asia.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/earth-europe.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/earth-oceania.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/egg.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/eject.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/elevator.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ellipsis-vertical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ellipsis.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/envelope-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/envelope-open-text.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/envelope-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/envelope.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/envelopes-bulk.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/equals.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/eraser.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ethernet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/euro-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/expand.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/explosion.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/eye-dropper.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/eye-low-vision.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/eye-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/eye.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/f.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-angry.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-dizzy.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-flushed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-frown-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-frown.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grimace.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-beam-sweat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-hearts.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-squint-tears.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-squint.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-stars.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-tears.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-tongue-squint.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-tongue-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-tongue.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-wide.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-grin.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-kiss-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-kiss-wink-heart.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-kiss.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-laugh-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-laugh-squint.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-laugh-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-laugh.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-meh-blank.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-meh.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-rolling-eyes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-sad-cry.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-sad-tear.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-smile-beam.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-smile-wink.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-smile.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-surprise.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/face-tired.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fan.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/faucet-drip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/faucet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fax.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/feather-pointed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/feather.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ferry.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-arrow-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-audio.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-circle-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-circle-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-circle-question.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-code.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-contract.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-csv.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-excel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-export.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-fragment.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-half-dashed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-image.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-import.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-invoice-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-invoice.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-lines.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-pdf.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-pen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-powerpoint.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-prescription.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-shield.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-signature.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-video.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-waveform.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-word.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file-zipper.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/file.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fill-drip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fill.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/film.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/filter-circle-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/filter-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/filter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fingerprint.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fire-burner.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fire-extinguisher.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fire-flame-curved.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fire-flame-simple.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fire.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fish-fins.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/fish.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/flag-checkered.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/flag-usa.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/flag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/flask-vial.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/flask.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/floppy-disk.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/florin-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/folder-closed.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/folder-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/folder-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/folder-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/folder-tree.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/folder.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/font-awesome.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/font.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/football.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/forward-fast.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/forward-step.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/forward.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/franc-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/frog.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/futbol.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/g.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gamepad.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gas-pump.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gauge-high.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gauge-simple-high.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gauge-simple.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gauge.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gavel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gear.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gears.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gem.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gemini.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/genderless.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ghost.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gift.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gifts.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/glass-water-droplet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/glass-water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/glasses.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/globe.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/golf-ball-tee.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gopuram.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/graduation-cap.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/greater-than-equal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/greater-than.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/grip-lines-vertical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/grip-lines.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/grip-vertical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/grip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/group-arrows-rotate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/guarani-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/guitar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/gun.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/h.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hammer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hamsa.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-back-fist.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-dots.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-fist.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-holding-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-holding-droplet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-holding-hand.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-holding-heart.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-holding-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-holding.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-lizard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-middle-finger.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-peace.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-point-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-point-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-point-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-point-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-pointer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-scissors.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-sparkles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand-spock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hand.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/handcuffs.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-asl-interpreting.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-bound.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-bubbles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-clapping.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-holding-child.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-holding-circle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-holding.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands-praying.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hands.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/handshake-angle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/handshake-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/handshake.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hanukiah.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hard-drive.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hashtag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hat-cowboy-side.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hat-cowboy.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hat-wizard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/head-side-cough-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/head-side-cough.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/head-side-mask.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/head-side-virus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heading.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/headphones.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/headset.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-circle-bolt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-circle-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-circle-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-crack.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart-pulse.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/heart.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/helicopter-symbol.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/helicopter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/helmet-safety.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/helmet-un.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hexagon-nodes-bolt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hexagon-nodes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hexagon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/highlighter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hill-avalanche.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hill-rockslide.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hippo.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hockey-puck.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/holly-berry.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/horse-head.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/horse.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hospital-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hospital.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hot-tub-person.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hotdog.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hotel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hourglass-end.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hourglass-half.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hourglass-start.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hourglass.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-chimney-crack.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-chimney-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-chimney-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-chimney-window.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-chimney.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-crack.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-fire.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-flag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-flood-water-circle-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-flood-water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-laptop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-medical-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-medical-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-medical-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-medical-flag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-signal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-tsunami.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house-user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/house.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hryvnia-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/hurricane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/i-cursor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/i.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ice-cream.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/icicles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/icons.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/id-badge.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/id-card-clip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/id-card.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/igloo.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/image-portrait.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/image.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/images.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/inbox.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/indent.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/indian-rupee-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/industry.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/infinity.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/info.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/italic.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/j.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/jar-wheat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/jar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/jedi.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/jet-fighter-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/jet-fighter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/joint.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/jug-detergent.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/k.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/kaaba.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/key.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/keyboard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/khanda.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/kip-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/kit-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/kitchen-set.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/kiwi-bird.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/l.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/land-mine-on.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/landmark-dome.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/landmark-flag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/landmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/language.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/laptop-code.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/laptop-file.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/laptop-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/laptop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lari-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/layer-group.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/leaf.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/left-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/left-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lemon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/leo.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/less-than-equal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/less-than.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/libra.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/life-ring.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lightbulb.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lines-leaning.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/link-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/link.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lira-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/list-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/list-ol.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/list-ul.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/list.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/litecoin-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/location-arrow.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/location-crosshairs.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/location-dot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/location-pin-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/location-pin.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lock-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/locust.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lungs-virus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/lungs.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/m.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass-chart.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass-location.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/magnifying-glass.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/manat-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/map-location-dot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/map-location.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/map-pin.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/map.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/marker.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars-and-venus-burst.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars-and-venus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars-double.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars-stroke-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars-stroke-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars-stroke.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mars.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/martini-glass-citrus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/martini-glass-empty.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/martini-glass.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mask-face.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mask-ventilator.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mask.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/masks-theater.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mattress-pillow.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/maximize.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/medal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/memory.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/menorah.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mercury.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/message.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/meteor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/microchip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/microphone-lines-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/microphone-lines.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/microphone-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/microphone.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/microscope.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mill-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/minimize.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mitten.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mobile-button.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mobile-retro.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mobile-screen-button.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mobile-screen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mobile-vibrate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mobile.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill-1-wave.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill-1.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill-transfer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill-trend-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill-wave.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill-wheat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bill.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-bills.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-check-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/money-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/monument.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/moon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mortar-pestle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mosque.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mosquito-net.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mosquito.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/motorcycle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mound.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mountain-city.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mountain-sun.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mountain.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mug-hot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/mug-saucer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/music.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/n.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/naira-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/network-wired.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/neuter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/newspaper.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/non-binary.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/not-equal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/notdef.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/note-sticky.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/notes-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/o.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/object-group.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/object-ungroup.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/octagon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/oil-can.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/oil-well.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/om.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/otter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/outdent.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/p.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pager.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paint-roller.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paintbrush.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/palette.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pallet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/panorama.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paper-plane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paperclip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/parachute-box.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paragraph.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/passport.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paste.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pause.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/paw.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/peace.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pen-clip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pen-fancy.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pen-nib.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pen-ruler.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pen-to-square.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pencil.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pentagon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-arrows.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-carry-box.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-group.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-pulling.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-robbery.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/people-roof.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pepper-hot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/percent.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-arrow-down-to-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-arrow-up-from-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-biking.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-booth.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-breastfeeding.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-burst.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-cane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-chalkboard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-circle-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-circle-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-circle-question.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-digging.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-dots-from-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-dress-burst.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-dress.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-drowning.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-falling-burst.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-falling.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-half-dress.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-harassing.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-hiking.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-military-pointing.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-military-rifle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-military-to-person.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-praying.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-pregnant.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-rays.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-rifle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-running.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-shelter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-skating.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-skiing-nordic.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-skiing.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-snowboarding.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-swimming.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-through-window.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-walking-arrow-loop-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-walking-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-walking-dashed-line-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-walking-luggage.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-walking-with-cane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person-walking.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/person.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/peseta-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/peso-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/phone-flip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/phone-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/phone-volume.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/phone.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/photo-film.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/picture-in-picture.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/piggy-bank.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pills.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pisces.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pizza-slice.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/place-of-worship.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-arrival.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-departure.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plant-wilt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plate-wheat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/play.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug-circle-bolt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug-circle-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug-circle-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plug.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plus-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/podcast.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/poo-storm.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/poo.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/poop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/power-off.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/prescription-bottle-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/prescription-bottle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/prescription.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/print.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pump-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/pump-soap.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/puzzle-piece.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/q.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/qrcode.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/question.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/quote-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/quote-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/r.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/radiation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/radio.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rainbow.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ranking-star.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/receipt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/record-vinyl.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rectangle-ad.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rectangle-list.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rectangle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/recycle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/registered.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/repeat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/reply-all.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/reply.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/republican.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/restroom.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/retweet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ribbon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/right-from-bracket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/right-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/right-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/right-to-bracket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ring.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-barrier.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-bridge.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road-spikes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/road.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/robot.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rocket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rotate-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rotate-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rotate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/route.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rss.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ruble-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rug.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ruler-combined.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ruler-horizontal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ruler-vertical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ruler.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rupee-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/rupiah-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/s.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sack-dollar.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sack-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sagittarius.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sailboat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/satellite-dish.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/satellite.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scale-balanced.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scale-unbalanced-flip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scale-unbalanced.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/school-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/school-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/school-circle-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/school-flag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/school-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/school.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scissors.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scorpio.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/screwdriver-wrench.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/screwdriver.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scroll-torah.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/scroll.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sd-card.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/section.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/seedling.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/septagon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/server.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shapes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/share-from-square.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/share-nodes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/share.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sheet-plastic.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shekel-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shield-cat.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shield-dog.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shield-halved.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shield-heart.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shield-virus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shield.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ship.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shirt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shoe-prints.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shop-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shop-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shower.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shrimp.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shuffle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/shuttle-space.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sign-hanging.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/signal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/signature.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/signs-post.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sim-card.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/single-quote-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/single-quote-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sink.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sitemap.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/skull-crossbones.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/skull.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sleigh.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sliders.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/smog.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/smoking.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/snowflake.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/snowman.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/snowplow.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/soap.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/socks.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/solar-panel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sort-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sort-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sort.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spa.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spaghetti-monster-flying.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spell-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spider.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spinner.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spiral.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/splotch.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spoon.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spray-can-sparkles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/spray-can.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-arrow-up-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-binary.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-caret-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-caret-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-caret-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-caret-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-envelope.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-full.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-h.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-nfi.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-parking.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-pen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-person-confined.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-phone-flip.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-phone.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-poll-horizontal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-poll-vertical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-root-variable.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-rss.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-share-nodes.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-up-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-virus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/square.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/staff-snake.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stairs.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stamp.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stapler.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/star-and-crescent.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/star-half-stroke.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/star-half.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/star-of-david.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/star-of-life.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/star.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sterling-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stethoscope.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stop.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stopwatch-20.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stopwatch.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/store-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/store.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/street-view.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/strikethrough.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/stroopwafel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/subscript.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/suitcase-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/suitcase-rolling.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/suitcase.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sun-plant-wilt.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/sun.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/superscript.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/swatchbook.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/synagogue.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/syringe.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/t.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-cells-column-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-cells-large.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-cells-row-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-cells-row-unlock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-cells.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-columns.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-list.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table-tennis-paddle-ball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/table.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tablet-button.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tablet-screen-button.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tablet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tablets.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tachograph-digital.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tags.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tape.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tarp-droplet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tarp.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/taurus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/taxi.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/teeth-open.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/teeth.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-arrow-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-empty.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-full.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-half.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-high.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-low.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-quarter.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/temperature-three-quarters.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tenge-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tent-arrow-down-to-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tent-arrow-left-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tent-arrow-turn-left.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tent-arrows-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tent.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tents.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/terminal.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/text-height.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/text-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/text-width.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/thermometer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/thumbs-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/thumbs-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/thumbtack-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/thumbtack.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ticket-simple.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/ticket.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/timeline.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toggle-off.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toggle-on.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toilet-paper-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toilet-paper.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toilet-portable.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toilet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toilets-portable.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/toolbox.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tooth.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/torii-gate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tornado.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tower-broadcast.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tower-cell.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tower-observation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tractor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trademark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/traffic-light.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trailer.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/train-subway.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/train-tram.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/train.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/transgender.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trash-arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trash-can-arrow-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trash-can.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tree-city.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tree.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/triangle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trophy.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trowel-bricks.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/trowel.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-arrow-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-droplet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-fast.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-field-un.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-field.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-front.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-medical.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-monster.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-moving.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-pickup.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-plane.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck-ramp-box.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/truck.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tty.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/turkish-lira-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/turn-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/turn-up.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/tv.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/u.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/umbrella-beach.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/umbrella.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/underline.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/universal-access.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/unlock-keyhole.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/unlock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/up-down-left-right.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/up-down.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/up-long.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/up-right-and-down-left-from-center.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/up-right-from-square.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/upload.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-astronaut.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-clock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-doctor.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-gear.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-graduate.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-group.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-injured.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-lock.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-minus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-ninja.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-nurse.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-pen.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-plus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-secret.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-shield.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-tag.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-tie.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/user.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-between-lines.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-gear.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-line.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-rays.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-rectangle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users-viewfinder.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/users.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/utensils.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/v.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/van-shuttle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vault.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/venus-double.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/venus-mars.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/venus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vest-patches.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vest.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vial-circle-check.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vial-virus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vial.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vials.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/video-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/video.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vihara.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/virgo.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/virus-covid-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/virus-covid.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/virus-slash.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/virus.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/viruses.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/voicemail.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volcano.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volleyball.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volume-high.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volume-low.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volume-off.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volume-xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/volume.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/vr-cardboard.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/w.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/walkie-talkie.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wallet.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wand-magic-sparkles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wand-magic.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wand-sparkles.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/warehouse.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/water-ladder.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/water.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wave-square.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/web-awesome.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/weight-hanging.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/weight-scale.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wheat-awn-circle-exclamation.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wheat-awn.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wheelchair-move.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wheelchair.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/whiskey-glass.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wifi.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wind.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/window-maximize.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/window-minimize.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/window-restore.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wine-bottle.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wine-glass-empty.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wine-glass.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/won-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/worm.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/wrench.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/x-ray.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/x.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/xmark.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/xmarks-lines.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/y.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/yen-sign.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/yin-yang.svg +1 -0
- package/dist/icon-packs/fa7-free/solid/z.svg +1 -0
- package/dist/icon-packs/fomantic/pack.js +1603 -0
- package/dist/icons/BuiltInPacks.d.ts +26 -0
- package/dist/icons/IconName.d.ts +65 -0
- package/dist/icons/data/search.json.d.ts +3 -0
- package/dist/icons/icons.types.d.ts +91 -0
- package/dist/icons/index.d.ts +12 -0
- package/dist/index.d.ts +82 -0
- package/dist/index.js +82 -0
- package/dist/jsx.d.ts +27183 -0
- package/dist/matrix-CqA59hiF.js +6 -0
- package/dist/matrix-CqA59hiF.js.map +1 -0
- package/dist/matrix.theme-jqQZjcq3.js +6 -0
- package/dist/matrix.theme-jqQZjcq3.js.map +1 -0
- package/dist/merlot-DOXLuUaU.js +6 -0
- package/dist/merlot-DOXLuUaU.js.map +1 -0
- package/dist/merlot.theme-S-QnNGsw.js +6 -0
- package/dist/merlot.theme-S-QnNGsw.js.map +1 -0
- package/dist/midnight-BnoVOrhC.js +6 -0
- package/dist/midnight-BnoVOrhC.js.map +1 -0
- package/dist/midnight.theme-wXbqRYLy.js +6 -0
- package/dist/midnight.theme-wXbqRYLy.js.map +1 -0
- package/dist/paper-CynH8ZuT.js +6 -0
- package/dist/paper-CynH8ZuT.js.map +1 -0
- package/dist/paper.theme-B8R5Jn5H.js +6 -0
- package/dist/paper.theme-B8R5Jn5H.js.map +1 -0
- package/dist/persist.types-CsZxS8TG.js +9 -0
- package/dist/persist.types-CsZxS8TG.js.map +1 -0
- package/dist/pop-D2i9V_rG.js +6 -0
- package/dist/pop-D2i9V_rG.js.map +1 -0
- package/dist/pop.theme-CXzv8B9x.js +6 -0
- package/dist/pop.theme-CXzv8B9x.js.map +1 -0
- package/dist/property/PropertyEditorPages.d.ts +106 -0
- package/dist/property/PropertySchemas.d.ts +91 -0
- package/dist/property/index.d.ts +9 -0
- package/dist/rolldown-runtime-CYGlBXrH.js +23 -0
- package/dist/runtime/Api.d.ts +50 -0
- package/dist/runtime/AppStylesheet.d.ts +108 -0
- package/dist/runtime/Browser.d.ts +65 -0
- package/dist/runtime/Chord.d.ts +74 -0
- package/dist/runtime/CodeLanguages.d.ts +30 -0
- package/dist/runtime/Focus.d.ts +86 -0
- package/dist/runtime/I18n.d.ts +126 -0
- package/dist/runtime/IconPack.d.ts +56 -0
- package/dist/runtime/IconPacks.d.ts +137 -0
- package/dist/runtime/Ids.d.ts +20 -0
- package/dist/runtime/Keyboard.d.ts +81 -0
- package/dist/runtime/Modals.d.ts +33 -0
- package/dist/runtime/Overlays.d.ts +132 -0
- package/dist/runtime/PropertyControls.d.ts +83 -0
- package/dist/runtime/RovingTabindex.d.ts +89 -0
- package/dist/runtime/Sources.d.ts +61 -0
- package/dist/runtime/Styles.d.ts +114 -0
- package/dist/runtime/TemporalPolyfill.d.ts +2 -0
- package/dist/runtime/Themes.d.ts +104 -0
- package/dist/runtime/Toasts.d.ts +27 -0
- package/dist/runtime/Transitions.d.ts +87 -0
- package/dist/runtime/UIRuntime.d.ts +111 -0
- package/dist/runtime/Visibility.d.ts +47 -0
- package/dist/runtime/index.d.ts +36 -0
- package/dist/runtime/load.d.ts +19 -0
- package/dist/runtime/runtime.types.d.ts +704 -0
- package/dist/search-CzSzx7bX.js +3372 -0
- package/dist/search-CzSzx7bX.js.map +1 -0
- package/dist/spell-BFtLICm7.js +6 -0
- package/dist/spell-BFtLICm7.js.map +1 -0
- package/dist/spell.theme-B7AU7SQX.js +6 -0
- package/dist/spell.theme-B7AU7SQX.js.map +1 -0
- package/dist/static/ServerDOMElement.ssr.d.ts +51 -0
- package/dist/static/ServerIds.ssr.d.ts +24 -0
- package/dist/static/ServerRuntime.ssr.d.ts +58 -0
- package/dist/static/StaticCatalog.ssr.d.ts +26 -0
- package/dist/static/StaticFamilies.ssr.d.ts +20 -0
- package/dist/static/StaticFlattener.ssr.d.ts +45 -0
- package/dist/static/StaticInteractions.ssr.d.ts +35 -0
- package/dist/static/StaticPageStyles.ssr.d.ts +25 -0
- package/dist/static/StaticRender.ssr.d.ts +71 -0
- package/dist/static/StaticSelectors.ssr.d.ts +98 -0
- package/dist/static/StaticStylesheet.ssr.d.ts +86 -0
- package/dist/static/index.d.ts +30 -0
- package/dist/static/static.types.ssr.d.ts +106 -0
- package/dist/styles/ComponentTokens.d.ts +109 -0
- package/dist/styles/CssText.d.ts +38 -0
- package/dist/styles/StyleGenerator.d.ts +145 -0
- package/dist/styles/ThemeFile.d.ts +150 -0
- package/dist/styles/index.d.ts +16 -0
- package/dist/styles/styles.en.d.ts +708 -0
- package/dist/styles/styles.types.d.ts +227 -0
- package/dist/styles.en-RLpYiO5_.js +841 -0
- package/dist/styles.en-RLpYiO5_.js.map +1 -0
- package/dist/styles.js +19 -0
- package/dist/styles.js.map +1 -0
- package/dist/ui-accordion.js +382 -0
- package/dist/ui-accordion.js.map +1 -0
- package/dist/ui-action.js +140 -0
- package/dist/ui-action.js.map +1 -0
- package/dist/ui-ad.js +116 -0
- package/dist/ui-ad.js.map +1 -0
- package/dist/ui-breadcrumbs.js +225 -0
- package/dist/ui-breadcrumbs.js.map +1 -0
- package/dist/ui-button.js +1075 -0
- package/dist/ui-button.js.map +1 -0
- package/dist/ui-calendar.js +1466 -0
- package/dist/ui-calendar.js.map +1 -0
- package/dist/ui-card.js +602 -0
- package/dist/ui-card.js.map +1 -0
- package/dist/ui-checkbox.js +574 -0
- package/dist/ui-checkbox.js.map +1 -0
- package/dist/ui-code.js +318 -0
- package/dist/ui-code.js.map +1 -0
- package/dist/ui-comment.js +245 -0
- package/dist/ui-comment.js.map +1 -0
- package/dist/ui-components.js +202 -0
- package/dist/ui-components.js.map +1 -0
- package/dist/ui-container.js +120 -0
- package/dist/ui-container.js.map +1 -0
- package/dist/ui-dimmer.js +307 -0
- package/dist/ui-dimmer.js.map +1 -0
- package/dist/ui-divider.js +162 -0
- package/dist/ui-divider.js.map +1 -0
- package/dist/ui-dropdown.js +1175 -0
- package/dist/ui-dropdown.js.map +1 -0
- package/dist/ui-embed.js +350 -0
- package/dist/ui-embed.js.map +1 -0
- package/dist/ui-emoji.js +264 -0
- package/dist/ui-emoji.js.map +1 -0
- package/dist/ui-example.js +449 -0
- package/dist/ui-example.js.map +1 -0
- package/dist/ui-feed.js +302 -0
- package/dist/ui-feed.js.map +1 -0
- package/dist/ui-flag.js +423 -0
- package/dist/ui-flag.js.map +1 -0
- package/dist/ui-flyout.js +192 -0
- package/dist/ui-flyout.js.map +1 -0
- package/dist/ui-form.js +1686 -0
- package/dist/ui-form.js.map +1 -0
- package/dist/ui-grid.js +537 -0
- package/dist/ui-grid.js.map +1 -0
- package/dist/ui-icon-picker.js +689 -0
- package/dist/ui-icon-picker.js.map +1 -0
- package/dist/ui-icon.js +307 -0
- package/dist/ui-icon.js.map +1 -0
- package/dist/ui-image.js +431 -0
- package/dist/ui-image.js.map +1 -0
- package/dist/ui-include.js +173 -0
- package/dist/ui-include.js.map +1 -0
- package/dist/ui-input.js +943 -0
- package/dist/ui-input.js.map +1 -0
- package/dist/ui-item.js +491 -0
- package/dist/ui-item.js.map +1 -0
- package/dist/ui-items.js +146 -0
- package/dist/ui-items.js.map +1 -0
- package/dist/ui-keys.js +7 -0
- package/dist/ui-keys.js.map +1 -0
- package/dist/ui-label.js +581 -0
- package/dist/ui-label.js.map +1 -0
- package/dist/ui-list.js +259 -0
- package/dist/ui-list.js.map +1 -0
- package/dist/ui-loader.js +156 -0
- package/dist/ui-loader.js.map +1 -0
- package/dist/ui-markdown.js +340 -0
- package/dist/ui-markdown.js.map +1 -0
- package/dist/ui-menu.js +924 -0
- package/dist/ui-menu.js.map +1 -0
- package/dist/ui-message.js +262 -0
- package/dist/ui-message.js.map +1 -0
- package/dist/ui-modal.js +439 -0
- package/dist/ui-modal.js.map +1 -0
- package/dist/ui-nag.js +377 -0
- package/dist/ui-nag.js.map +1 -0
- package/dist/ui-page.js +188 -0
- package/dist/ui-page.js.map +1 -0
- package/dist/ui-panel.js +46 -0
- package/dist/ui-panel.js.map +1 -0
- package/dist/ui-parts.js +869 -0
- package/dist/ui-parts.js.map +1 -0
- package/dist/ui-placeholder.js +229 -0
- package/dist/ui-placeholder.js.map +1 -0
- package/dist/ui-popup.js +502 -0
- package/dist/ui-popup.js.map +1 -0
- package/dist/ui-progress.js +421 -0
- package/dist/ui-progress.js.map +1 -0
- package/dist/ui-property-editor.js +1119 -0
- package/dist/ui-property-editor.js.map +1 -0
- package/dist/ui-quote.js +80 -0
- package/dist/ui-quote.js.map +1 -0
- package/dist/ui-rail.js +100 -0
- package/dist/ui-rail.js.map +1 -0
- package/dist/ui-rating.js +378 -0
- package/dist/ui-rating.js.map +1 -0
- package/dist/ui-reveal.js +186 -0
- package/dist/ui-reveal.js.map +1 -0
- package/dist/ui-root.js +2529 -0
- package/dist/ui-root.js.map +1 -0
- package/dist/ui-search.js +1015 -0
- package/dist/ui-search.js.map +1 -0
- package/dist/ui-section.js +1009 -0
- package/dist/ui-section.js.map +1 -0
- package/dist/ui-segment.js +445 -0
- package/dist/ui-segment.js.map +1 -0
- package/dist/ui-select.js +492 -0
- package/dist/ui-select.js.map +1 -0
- package/dist/ui-shape.js +379 -0
- package/dist/ui-shape.js.map +1 -0
- package/dist/ui-sidebar.js +411 -0
- package/dist/ui-sidebar.js.map +1 -0
- package/dist/ui-slider.js +650 -0
- package/dist/ui-slider.js.map +1 -0
- package/dist/ui-space.js +101 -0
- package/dist/ui-space.js.map +1 -0
- package/dist/ui-stack.js +134 -0
- package/dist/ui-stack.js.map +1 -0
- package/dist/ui-statistic.js +300 -0
- package/dist/ui-statistic.js.map +1 -0
- package/dist/ui-step.js +523 -0
- package/dist/ui-step.js.map +1 -0
- package/dist/ui-sticky.js +151 -0
- package/dist/ui-sticky.js.map +1 -0
- package/dist/ui-tab.js +666 -0
- package/dist/ui-tab.js.map +1 -0
- package/dist/ui-table.js +929 -0
- package/dist/ui-table.js.map +1 -0
- package/dist/ui-terms.js +166 -0
- package/dist/ui-terms.js.map +1 -0
- package/dist/ui-text.js +390 -0
- package/dist/ui-text.js.map +1 -0
- package/dist/ui-theme-editor.js +4032 -0
- package/dist/ui-theme-editor.js.map +1 -0
- package/dist/ui-theme-menu-DyKZygpV.js +921 -0
- package/dist/ui-theme-menu-DyKZygpV.js.map +1 -0
- package/dist/ui-toast.js +737 -0
- package/dist/ui-toast.js.map +1 -0
- package/dist/ui-toc.js +731 -0
- package/dist/ui-toc.js.map +1 -0
- package/dist/ui-toolbar.js +189 -0
- package/dist/ui-toolbar.js.map +1 -0
- package/dist/ui-transition.js +235 -0
- package/dist/ui-transition.js.map +1 -0
- package/dist/ui-tree-diagram.js +429 -0
- package/dist/ui-tree-diagram.js.map +1 -0
- package/dist/ui-video.js +243 -0
- package/dist/ui-video.js.map +1 -0
- package/dist/ui-visibility.js +205 -0
- package/dist/ui-visibility.js.map +1 -0
- package/dist/ui-zoom.js +435 -0
- package/dist/ui-zoom.js.map +1 -0
- package/dist/util/LoadOnce.d.ts +51 -0
- package/dist/util/Warnings.d.ts +32 -0
- package/dist/util/index.d.ts +36 -0
- package/dist/vocabulary/Converters.d.ts +77 -0
- package/dist/vocabulary/SharedVocabulary.d.ts +69 -0
- package/dist/vocabulary/SharedVocabulary.es.d.ts +39 -0
- package/dist/vocabulary/ValueSets.d.ts +164 -0
- package/dist/vocabulary/Vocabulary.d.ts +176 -0
- package/dist/vocabulary/index.d.ts +19 -0
- package/dist/vocabulary/vocabulary.api.d.ts +9 -0
- package/package.json +47 -4
package/dist/core.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","names":["E.after","E.camelCase","VISIBLE","VISIBLE","className","E.flatParentFor","_init","event","state","<Show when={canRenderUnstyled || this.isReady}>{untrack(() => this.render())}</Show>","this","_elementSetup_dec","_init","E.AriaNames","_$createComponent","LABEL","E.ParentLink","E.NO_ANIMATION","E.ERRORED_STATE","E.ERROR_EVENT","E.ElementDefinition","E.camelCase","_init","_init","_init","WHITESPACE","NO_ANIMATION","WHITESPACE","UIT.Animations","UIT.FontWords","_init","_init","E.WHITESPACE","E.numberToWord","UIT.DEFAULT_ANIMATION","UIT.MOTION_PROPERTY","E.WHITESPACE","event","_init","E.ERRORED_STATE","E.ClassBuilder","E.STICKY_MAX_RESERVE","E.flatParentFor","<Dynamic\n component={this.rootTag}\n class={this.rootClass}\n part={this.partForName(this.vocabulary.noun)}\n href={this.rootTag === \"a\" ? this.linkTo : void 0}\n target={this.rootTag === \"a\" ? this.linkTarget : void 0}\n datetime={this.rootDatetime}\n tabindex={this.rootTabIndex}\n >\n {this.content()}\n </Dynamic>","this","this.rootTag === \"a\" ? this.linkTo : void 0","this.rootTag === \"a\" ? this.linkTarget : void 0","<slot />","_tmpl$","_elementSetup_dec","_a","_init","E.PartContext","_$createComponent","_$memo","_$getOwner","partsCSS","_init","E.flatParentFor","_init","E.RUNTIME_KEY","<Show when={shows()}>\n <button type=\"button\" class={UIT.CLOSE_CLASS} part={part} aria-label={label()} onClick={onClick}>\n {this.glyph.svg}\n </button>\n </Show>","this","aria-label={label()}","<button type=\"button\" class={UIT.CLOSE_CLASS} part={part} aria-label={label()} onClick={onClick}>\n {this.glyph.svg}\n </button>","E.IconGlyph","UIT.CLOSE_ICON","_$createComponent","_$readShallow","UIT.CLOSE_CLASS","_$setAttribute","_$delegateEvents","_init","E.copyText","E.after","{this.isLoading ? this.loader() : void 0}","this","{this.errorText ? this.errorMessage() : void 0}","{this.renderContent()}","_loadError_dec","_reload_dec","_loadStatus_dec","_init","_loadStatus","_loadError","E.SOURCE_FAILURE_KEYS","_$memo","E.SourceError","E.URL_SELECTOR","E.URL_ATTRIBUTES","E.ORIGINAL_PREFIX","E.SOURCE_ATTRIBUTE","E.after","E.SOURCE_ATTRIBUTE","__exportAll","__name$1","getOwner$1","thing","prop","supers","proto","stopAt","desc","property","type","context","value","parentValue","getter","method","names","name","owner","values","REMEMBERED","make","NodeType","DOCUMENT_POSITION_FOLLOWING","a","b","time","left","count","resolve","text","area","copied","tag","current","element","selector","root","ROW_STEP","REDUCED_MOTION","row","isReduced","direction","letter","KEBAB_CASE","CAMEL_CASE","number","NUMBER_WORDS","previous","index","j","cost","lower","word","best","bestDistance","maxDistance","candidate","candidates","distance","as","fallback","kept","keep","HTML_ESCAPES","char","lines","indents","line","shared","prefix","indent","fn","frame","timer","promise","error","seconds","reject","when","run","isDropped","cancel","deadline","timeout","read","every","timeUp","ATTRIBUTE_GROUPS","NO_ANIMATION","AriaNames","ERROR_EVENT","ERRORED_STATE","SpellSolid","settings","task","WAIT_WARNING_SECONDS","Reactive","runWithOwner","OWN_ROOTS","createRoot","RECORD","record","instance","prototype","attributes","key","collecting","getObserver","component","source","ATTRIBUTE_PREFIX","attribute","rename","domElement","self","entry","ON_CHANGE","members","member","whileConnected","cleanup","untrack","isServer","writesDOMElement","defer","createEffect","createMemo","CONTENT_METHODS","mutations","options","entries","ARIA","internals","texts","CSS_STATES","mirrored","claimed","state","unclaimed","LISTENERS","writes","before","announce","next","metadata","METADATA","byKey","list","lists","combine","claims","claim","targetOrOptions","inner","pageValue","initial","getterOrOptions","equals","cache","stateName","created","handler","args","ownedWrite","createSignal","signal","startWatching","compute","outer","dependencies","seen","content","getOwner","write","isEqual","RAW_PREFIX","observer","attributeName","watches","watch","matched","mutation","attributeFilter","all","init","onAttributes","own","item","get","set","ElementDefinition","vocabulary","localized","dictionary","spec","resolved","input","raw","where","attributeText","visible","VISIBLE$2","startsVisible","isOn","RichAttributes","EVENT_PREFIX","definition","propertiesSet","listener","listeners","held","Base","Element","patched","removeAttribute","PURE_ROOT","event","HTMLElementOrShim","DOMElement","connectedState","VISIBLE$1","EARLY","PENDING","callback","visibleAttribute","elementDefinition","old","says","existing","form","disabled","mode","early","on","READY","Class","clashes","INSTANCE_FIELDS","attached","done","missing","OwnerContext","depth","noun","owners","ownerNoun","result","__create","__defProp","__getOwnPropDesc","symbol","msg","obj","target","base","__decoratorStrings","kind","fns","array","flags","n","it","ctx","access","k","s","initializers","extraInitializers","extra","x","i","decorators","y","setter","_onOwnerChanged_dec","_owner_dec","_init$13","_owner","_PartContext","isDirect","barrier","onSettled","isAPart","isConditionalOwner","match","now","slot","PartContext","ShadowEvents","bridged","registerDelegatedContainer","states","add","remove","wrappers","shadow","DelegatedEvents","wrapper","marker","OWNER","walked","progress","last","path","rest","host","slotted","HANDLER","start","node","parent","plain","getDelegatedRoot","data","keys","_onSlotChangeForParts_dec","_onVisibleOrReadyChanged_dec","_isStill_dec","_animationToRun_dec","_isHiding_dec","_isHidden_dec","_isVisible_dec","_onSharedStatesChanged_dec","_hasInertContent_dec","_showsLoader_dec","_isMarkedLoading_dec","_formIsDisabled_dec","_isMarkedDisabled_dec","_adoptStyleSheets_dec","_onReadyChanged_dec","_isReady_dec","_isConnected_dec","_onSharedLinkClick_dec","_onSharedWordsChanged_dec","_onFontSizeChanged_dec","_sharedLink_dec","_elementSetup_dec$2","_init$12","_isConnected","_isReady","_formIsDisabled","_isVisible","_isHiding","_UIComponent","runtime","params","decorated","createRenderEffect","_self$","createComponent","Show","canRenderUnstyled","LINK","TARGET","link","FONT","written","words","FONT_SIZE","FONT_SIZE_STATE","size","leading","fontSize","style","FONT_SIZE_TOKEN","LINE_HEIGHT_TOKEN","TOOLTIP","LABEL$1","tooltip","internalState","label","PARENT","parentLink","ParentLink","joining","id","sheet","declarations","at","localName","ROOT_TAG","isReady","styles","elementSetup","isDisabled","showsLoader","hasInertContent","box","madeInert","child","motion","animatedOut","boxes","animation","isFirst","isVisible","memberName","event2","dispose","view","Errored","cause","Fallback","insert","handle","isEarly","strays","state2","tagSetup","isRuntimeLoaded","define","UIComponent","_filledSlots_dec","_init$11","_filledSlots","_SlotContent","SlotContent","_toggled_dec","_init$10","_toggled","_Disclosure","setup","originalEvent","memberMeans","open","isAllowed","OPENING","CLOSING","isApplied","OPENED","CLOSED","UNTIL_FOUND","eventDetail","after","afterDetail","detail","cancelable","Disclosure","upTo","CONTROLS","props","isStopped","stopWatching","container","joiners","joiner","document","waiting","waits","wait","tryJoin","high","low","bytes","digits","PREFIX","message","LoadOnce","failures","known","fresh","started","load","_topics_dec","_booleans_dec","_devices_dec","_widths_dec","_floats_dec","_verticalAlignments_dec","_alignments_dec","_attachments_dec","_positions_dec","_sizes_dec","_hues_dec","_init$9","_ValueSets","columns","kindValues","KIND_VALUES","fraction","FRACTION","percent","PERCENT","GRID_COLUMNS","NUMBER","ValueSets","Converters","TRUE_WORDS","FALSE_WORDS","WHITESPACE$2","guess","JSON_START","LIST_SEPARATOR","ICON_FALSE_WORDS","components_types_exports","ACTIVE","ANIMATING","APPEARANCE","AnimationLookup","Animations","AttentionAnimations","BASIC","BOTTOM","BUTTON","BreadcrumbDividerTokens","CLOSE","CLOSE_CLASS","CLOSE_ICON","CODE_SPAN","CONTENT","DEFAULT_ANIMATION","DESCRIPTION","DIGITS","DISABLED","DISABLED_STATE","FIELD_HOST_STATE","FLUID","Flags","FontFaces","FontFamilies","FontWords","FormControlAttributes","FormControlStates","FormStates","GRID_CONTAINER_NAME","HEADER","HEADING","ICON","ICON_CLASS","IMAGE","ITEM","InputOwnerTokens","ItemAlignments","Key","LABEL","LEFT","MESSAGE","MOTION_PROPERTY","MenuAppearances","ModalActionSelectors","NO_ANIMATION$1","ORDERED","PLACEHOLDER_HOST_STATE","PUSHABLE_HOST_STATE","PUSHER_HOST_STATE","PartOwnerTokens","PopupTrigger","PopupTriggers","PusherTokens","REQUIRED_RULE","SELECTED","SIDEBAR_HOST_STATE","SIDE_HOST_STATE","STACK_WITH_CLASS","STACK_WITH_TOKEN","STATIC_CONTROL","STATIC_ROOT","SearchMatch","SearchMatches","SectionTitle","ShapeCommands","ShapeFlips","SourceAttributes","SourceBodyAttributes","SourceBodyEvents","SourceBodyParts","SourceBodyStates","SourceEvents","SourceFailureTexts","SourceLoadModes","SourceParts","SourceStates","SourceTexts","SpaceSteps","SpecialFlags","StackWithValues","TABLE_SORT_KEY","TABLE_SORT_OPT_OUT","TEXT","TITLE","ThemeCorners","ThemeDepths","ThemeFonts","ThemeGlasses","ThemeHues","TocMarks","ToggleCommands","TransitionCommands","VISIBLE","VISUALLY_HIDDEN","VisibilityAnimations","WHITESPACE$1","WordWidths","code","TWO_LETTERS","INDICATOR_A","LETTER_A","scope","RUNTIME_ANIMATION_NAMES","familyAnimation","command","width","WORD_SEPARATORS","said","section","themes","level","bounds","sharedEs","SharedVocabulary","SHARED_DICTIONARIES","lang","SHARED_ATTRIBUTES","found","declared","added","stateNames","SHARED_STATES","_dictionary_dec","_prefix_dec","_init$8","_Vocabulary","language","isShared","alias","translated","each","stem","canonical","components","tags","forward","inverse","map","what","tokens","length","MAX_PHRASE_WORDS","phrase","dash","UI_EVENT_PREFIX","Vocabulary","version","RUNTIME_KEY","RUNTIME_VERSION","LAYER_ORDER","CssDisplay","PAGE_SCOPE","SCROLL_LOCK_CLASS","APP_STYLESHEET_ID","UTILITIES_SHEET","AnimationNames","EN_STRINGS","TEMPORAL_POLYFILL","response","url","failed","SourceErrorKinds","SourceError","otherwise","CODE_LANGUAGES_EVENT","VisibilityDirection","pending","UIRuntime","UI","_grammar_dec","_init$7","_ClassBuilder","classes","grammar","specs","WHITESPACE","mapped","token","rounded","widthClass","ClassBuilder","how","sheets","css","RangeMeasures","pieces","end","ranges","MenuSearchFields","SourceStatus","SOURCE_LOADER_TAG","SOURCE_MESSAGE_TAG","URL_ATTRIBUTES","URL_SELECTOR","ORIGINAL_PREFIX","MAX_DEPTH","SOURCE_FAILURE_KEYS","SOURCE_BODY_HOLD_MS","SOURCE_ATTRIBUTE","SourceEvent","StickyWatchEdges","STICKY_SCROLLING","STICKY_MAX_RESERVE","STICKY_SLACK","Shorthand","user","mapPrimitive","defaults","overrides","present","_builder_dec","_degraded_dec","_vocabularies_dec","_vocabulary_dec","_init$6","_NativeFallback","vocabularies","undo","valueNamed","control","valueMissing","children","part","LOADING","placeholder","PLACEHOLDER","NativeFallback","StickyWatch","onReport","targets","scroller","top","bottom","resizes","UNSTUCK","topLine","bottomLine","boxRect","edge","isBound","stuckHere","tallest","narrowest","rect","pixels","BuiltInIconPacks","DEFAULT_ICON_PACK","ICON_PACK_INDEX","ICON_PREFIX_SEPARATOR","IconName","SEPARATORS","byAlias","byFile","derived","wanted","query","items","ranked","rank","terms","NO_MATCH","term","BuiltInPacks","UIParts_default","_tmpl$$1","_elementSetup_dec$1","_a$1","_init$5","_PartComponent","Dynamic","\"class\"","memo","_el$","PartComponent","_generation_dec","_init$4","_generation","_RootSettings","RootSettings","_svg_dec","_svgTemplate_dec","_init$3","_svgTemplate","_IconGlyph","nameNow","connected","template","request","ui","page","svg","markup","ssr","SVG_OPEN","IconGlyph","_tmpl$","shows","addEvent","onClick","setAttribute","effect","readShallow","className","e","_p$","t","delegateEvents","_isCopied_dec","_init$2","_isCopied","_ClipboardCopy","DEFAULT_SECONDS","ClipboardCopy","panelSetup","onDismiss","isShowing","POPOVER_OPEN","overlay","DOMLoadableElement","yes","no","_errorElement_dec","_loaderElement_dec","_save_dec","_isDirty_dec","_isSaving_dec","_onLoadError_dec","_hasError_dec","_loadError_dec$1","_reload_dec$1","_onLoaded_dec","_onSourceChanged_dec","_isLoading_dec","_loadStatus_dec$1","_wasEdited_dec","_fetchedText_dec","_inlineText_dec","_wantsInlineContent_dec","_elementSetup_dec","_a","_init$1","_fetchedText","_wasEdited","_loadStatus$1","_loadError$1","_isSaving","_isDirty","_LoadableComponent","edited","isConnected","policy","controller","loaded","failure","reason","etag","loader","STATUS_ATTRIBUTES","LoadableComponent","SourceMarkup","parsed","nodes","select","fragment","absolute","original","counts","_reload_dec","_load_dec","_hasShownABody_dec","_loadError_dec","_isOverdue_dec","_loadStatus_dec","_init","_loadStatus","_isOverdue","_loadError","_hasShownABody","_LoadableBody","status","generation","shown","LoadableBody","core_exports"],"sources":["../../src/util/class.ts","../../src/util/decorators.ts","../../src/util/dom.ts","../../src/util/string.ts","../../src/util/timing.ts","../../src/element/vocabulary.types.ts","../../src/element/elements.types.ts","../../src/element/SpellSolid.ts","../../src/element/Reactive.ts","../../src/element/Cell.ts","../../src/element/ElementDefinition.ts","../../src/element/RichAttributes.ts","../../src/element/DOMElement.ts","../../src/element/OwnerContext.ts","../../src/element/PartContext.ts","../../src/element/ShadowEvents.ts","../../src/element/UIComponent.tsx","../../src/element/SlotContent.ts","../../src/element/Disclosure.ts","../../src/element/OwnControls.ts","../../src/element/ParentLink.ts","../../src/util/number.ts","../src/util/Warnings.ts","../src/util/LoadOnce.ts","../src/vocabulary/ValueSets.ts","../src/vocabulary/Converters.ts","../src/components/components.types.ts","../src/vocabulary/SharedVocabulary.es.ts","../src/vocabulary/SharedVocabulary.ts","../src/vocabulary/Vocabulary.ts","../../package.json","../src/runtime/runtime.types.ts","../src/runtime/load.ts","../src/elements/ClassBuilder.ts","../src/elements/SpellUISettings.ts","../src/elements/elements.types.ts","../src/elements/Shorthand.ts","../src/elements/NativeFallback.ts","../src/elements/StickyWatch.ts","../src/icons/icons.types.ts","../src/icons/IconName.ts","../src/icons/BuiltInPacks.ts","../src/components/ui-parts/UIParts.css?inline","../src/elements/PartComponent.tsx","../src/elements/RootSettings.ts","../src/elements/IconGlyph.ts","../src/elements/CloseButton.tsx","../src/elements/ClipboardCopy.ts","../src/elements/PopoverPanel.ts","../src/elements/DOMLoadableElement.ts","../src/elements/LoadableComponent.tsx","../src/elements/SourceMarkup.ts","../src/elements/LoadableBody.ts","../src/elements/DOMLoadableBodyElement.ts","../src/core.ts"],"sourcesContent":["////////////////\n// ## Class utilities\n////////////////\n\n/**\n * Return true if `thing` has own property `prop`.\n * - Use this if `thing` may be `null` or `undefined`.\n */\nexport function hasOwnProp(thing: any, prop: string) {\n return thing != null && Object.hasOwn(thing, prop)\n}\n\n/**\n * Return class hierarchy for some instance, most-specific class first.\n * - Stops when we hit `stopAt` constructor (inclusive).\n * - Returns `undefined` if `thing` doesn't have a constructor.\n */\nexport function getSuperHierarchy(thing: any, stopAt: any = Object) {\n if (typeof thing?.constructor !== \"function\") return undefined\n const supers = []\n let proto = thing\n while ((proto = Object.getPrototypeOf(proto))) {\n if (typeof proto.constructor === \"function\") supers.push(proto.constructor)\n if (proto.constructor === stopAt) break\n }\n return supers\n}\n\n/**\n * Walk `thing`'s prototype chain looking for an own property descriptor for `property`.\n * - Pass `type` as `\"get\"` or `\"set\"` to require specifically a getter or setter.\n * - Returns descriptor if found, `false` otherwise.\n * - NOTE: walks via `__proto__` rather than `Object.getPrototypeOf`.\n */\nexport function hasDescriptor(thing: any, property: string, type?: \"get\" | \"set\") {\n while (thing) {\n const desc = Object.getOwnPropertyDescriptor(thing, property)\n if (desc) {\n if (!type) return desc\n else if (type === \"get\" && desc.get) return desc\n else if (type === \"set\" && desc.set) return desc\n }\n thing = thing.__proto__\n }\n return false\n}\n","/**\n * Standard (TC39 2023-11) decorators:\n * - `@proto` / `@protoMerged` -- class defaults on the prototype\n * - `@lazy` / `@once` -- a getter / method whose result is made once and kept, with `forget()` to drop it\n * - `@resets` -- an `accessor` whose every write forgets what `@lazy` / `@once` members kept\n * - NOTE: lowered by esbuild via `vite.decorators.ts` -- vite 8's own transformer doesn't do it yet.\n * - Decorator MUST be first thing on its line (`@proto static x = 1` is fine),\n * or that plugin won't notice the file.\n */\n\nimport type { AbstractClass } from \"./util.types\"\n\n/**\n * Put value of a `static` field on the class's PROTOTYPE, so every instance sees it as a default:\n * `@proto static alias = \"statement\"` => `instance.alias === \"statement\"`.\n * - Why not an instance field?\n * - Those initialize per instance AFTER `super()` returns, so a base class constructor can't see them --\n * and a standard field decorator never gets to touch the prototype.\n * - `static` initializers run once, at class definition, with `this` ~== the class.\n * - Inherited through prototype chain; instances may shadow with their own value, e.g. `Object.assign(this, props)`.\n * - Non-enumerable, so it stays out of `Object.keys()` / spreads -- instances only show what's theirs.\n * - NOTE: static keeps its value too, harmless.\n * - Field name MUST be something instances already declare, e.g. `declare alias: ...` on `Rule` --\n * so a typo like `@proto static alais` is a compile error rather than a silently-ignored static.\n * - SIDE EFFECT: then calls the class's `static protoDefined(name, value)`, if it has one,\n * so a base class can react as each subclass is defined,\n * e.g. `P.Rule` registering `@proto static importableAs = \"quoted_property\"`.\n */\nexport function proto<This extends AbstractClass<object>, Value>(\n _target: undefined,\n context: ClassFieldDecoratorContext<This, Value> & { name: keyof InstanceType<This> }\n) {\n if (!context.static) {\n throw new TypeError(`@proto ${String(context.name)}: only works on 'static' fields.`)\n }\n return function (this: This, value: Value): Value {\n Object.defineProperty(this.prototype, context.name, { value, writable: true, configurable: true })\n ;(this as ProtoAware).protoDefined?.(context.name, value)\n return value\n }\n}\n\n/**\n * Like `@proto`, for a static OBJECT whose keys add up down the class chain:\n * `@protoMerged static elementSetup = { delegatesFocus: false }`.\n * - Puts this class's object on the PROTOTYPE, when the class is defined,\n * and makes the parent class's object ITS prototype:\n * a key this class doesn't state is read from the parent's, and so on up the chain.\n * - Nothing is copied: ONE object per class, so `Class.elementSetup === Class.prototype.elementSetup`.\n * - In the browser's console, its own keys are what this class changed;\n * the rest show under `[[Prototype]]`, the parent's.\n * - A key this class states replaces the parent's value for that key, whole.\n * To add to an object or a list, spread the parent's:\n * `styleSheets: { ...UISection.prototype.elementSetup.styleSheets, panel: panelCSS }`.\n * - Why nested values aren't chained too:\n * code walks over their keys (`Object.keys()`, `Object.assign()`), which would miss the parent's;\n * and a spread lets each class choose the order.\n * - A class that doesn't state one inherits its parent's object, through the prototype chain.\n * - NOTE: read keys by name (`setup.styleSheets`, a destructure):\n * a spread, `Object.keys()`, `Object.assign()` or `JSON.stringify()` of the whole object\n * sees only the keys its own class stated.\n * - Field name MUST be something instances already declare, as for `@proto`.\n * - SIDE EFFECT: sets the prototype of the object the class states.\n * - SIDE EFFECT: then calls the class's `static protoDefined(name, value)`, if it has one, as `@proto` does.\n */\nexport function protoMerged<This extends AbstractClass<object>, Value extends object>(\n _target: undefined,\n context: ClassFieldDecoratorContext<This, Value> & { name: keyof InstanceType<This> }\n) {\n if (!context.static) {\n throw new TypeError(`@protoMerged ${String(context.name)}: only works on 'static' fields; make it 'static'.`)\n }\n return function (this: This, value: Value): Value {\n const parentPrototype = Object.getPrototypeOf(this.prototype) as Record<PropertyKey, unknown> | null\n const parentValue = parentPrototype?.[context.name] as object | undefined\n // a key this class doesn't state is looked up on the parent's object\n if (parentValue) Object.setPrototypeOf(value, parentValue)\n Object.defineProperty(this.prototype, context.name, { value, writable: true, configurable: true })\n ;(this as ProtoAware).protoDefined?.(context.name, value)\n return value\n }\n}\n\n/**\n * A getter whose value is made on first read, then kept:\n * `@lazy get supports() { return this.detect() }`.\n * - Kept per object it's read on: each instance its own; a `static` one, per class it's read on (`X.supports`).\n * - Replaces a backing field plus `return (this.field ??= make())`.\n * - A getter that throws keeps nothing: the next read tries again.\n * - `undefined` IS kept.\n * - `forget(object, \"name\")` drops the kept value: the next read makes it anew.\n * Writing a member marked `@resets(\"name\")` does it too.\n * - NOT reactive: the value is made once, whatever it read.\n * A reactive cached value is `@derived` (`ui`).\n * - throws a `TypeError` on anything but a getter\n */\nexport function lazy<This extends object, Value>(\n getter: (this: This) => Value,\n context: ClassGetterDecoratorContext<This, Value>\n) {\n if (context.kind !== \"getter\") {\n throw new TypeError(`@lazy ${String(context.name)}: only works on getters; make it a 'get'.`)\n }\n return function (this: This): Value {\n return remembered(this, context.name, () => getter.call(this))\n }\n}\n\n/**\n * A method that runs ONCE, then returns the same result to every later call, e.g. a loader's promise:\n * `@once static load() { return import(\"./Engine\").then(...) }`.\n * - Takes no arguments: one result per object would ignore them.\n * - Kept per object it's called on, as `@lazy`'s value is:\n * each instance, or for a `static`, the class it's called on.\n * Call it on its object (`X.load()`), never detached (`const load = X.load`).\n * - A rejected promise is kept too: every later call gets the same rejection,\n * until `forget(object, \"name\")` or a write to a `@resets(\"name\")` member.\n * A method that THROWS keeps nothing: the next call runs it again.\n * - throws a `TypeError` on anything but a method\n */\nexport function once<This extends object, Value>(\n method: (this: This) => Value,\n context: ClassMethodDecoratorContext<This, (this: This) => Value>\n) {\n if (context.kind !== \"method\") {\n throw new TypeError(`@once ${String(context.name)}: only works on methods.`)\n }\n return function (this: This): Value {\n return remembered(this, context.name, () => method.call(this))\n }\n}\n\n/**\n * An `accessor` whose every write forgets what the `@lazy` / `@once` members `names` kept,\n * so the next read or call makes it anew:\n * `@resets(\"load\") static accessor url: string | undefined`, then `SiteData.url = other` fetches again.\n * - Needs `accessor`: a plain field's decorator only sets its starting value, it never sees a later write.\n * - Every write resets, even of the same value:\n * `X.url = X.url` starts over (tests do that after a failed fetch).\n * - Forgets on the object written to: an instance, or for a `static`, the class it's set on.\n * - `names` are checked: `keyof` the instance, or for a `static`, the class,\n * so a typo is a compile error.\n */\nexport function resets<This extends object, Value>(...names: (keyof This)[]) {\n return function (\n target: ClassAccessorDecoratorTarget<This, Value>,\n _context: ClassAccessorDecoratorContext<This, Value>\n ): ClassAccessorDecoratorResult<This, Value> {\n return {\n set(this: This, value: Value) {\n for (const name of names) forget(this, name)\n target.set.call(this, value)\n }\n }\n }\n}\n\n/**\n * Drop what `@lazy` getter or `@once` method `name` kept for `owner`: the next read or call makes it anew.\n * - `owner` is the object it was kept for: an instance, or the class for a `static` one.\n * - e.g. `forget(counted, \"parts\")` in a test;\n * a member whose writes should reset says `@resets(\"parts\")`.\n * - Nothing kept: does nothing.\n */\nexport function forget<Owner extends object>(owner: Owner, name: keyof Owner): void {\n REMEMBERED.get(owner)?.delete(name)\n}\n\n/** `owner`'s kept value for `name`, made by `make()` the first time. */\nfunction remembered<Value>(owner: object, name: PropertyKey, make: () => Value): Value {\n let values = REMEMBERED.get(owner)\n if (values?.has(name)) return values.get(name) as Value\n const value = make()\n if (!values) REMEMBERED.set(owner, (values = new Map()))\n values.set(name, value)\n return value\n}\n\n/**\n * What `@lazy` / `@once` kept: object => member name => value.\n * - A `WeakMap`, so an object's values go with it;\n * outside the object, so a frozen object can have them too.\n */\nconst REMEMBERED = new WeakMap<object, Map<PropertyKey, unknown>>()\n\n/** A class which wants to hear about each `@proto static` defined on it or a subclass -- see `proto()`. */\ntype ProtoAware = {\n /** Called with `this` ~== the class being defined, once its `name` field is on its prototype. */\n protoDefined?: (name: string | symbol, value: unknown) => void\n}\n","/**\n * Small DOM helpers that know about shadow roots and custom element upgrade timing.\n * - Every helper is safe to IMPORT outside a browser (SSR, node tooling); only calling them needs a DOM,\n * except `isBrowser()` which exists to ask.\n * - NEVER `instanceof Node` / `Element` / `ShadowRoot`: `ui`'s server render calls these on linkedom elements in\n * node, which has no such globals. Compare `nodeType` against `NodeType` instead.\n */\n\n////////////////\n// ## Node types\n////////////////\n\n/**\n * `Node.nodeType` values we test, without the `Node` global (node has none): `node.nodeType === NodeType.text`.\n */\nexport const NodeType = {\n element: 1,\n text: 3,\n documentFragment: 11\n} as const\n/** One of `NodeType`'s values, e.g. `3`. */\nexport type NodeType = (typeof NodeType)[keyof typeof NodeType]\n\n////////////////\n// ## Order\n////////////////\n\n/** `Node.DOCUMENT_POSITION_FOLLOWING`, without the `Node` global (node has none). */\nconst DOCUMENT_POSITION_FOLLOWING = 4\n\n/**\n * Sort comparator for document order: `elements.sort(byDocumentOrder)`.\n * - Negative when `a` comes first, else positive: never `0`, as a sort never compares a node with itself.\n * - The one comparator `ui`'s radio groups, form fields and control labels share.\n */\nexport function byDocumentOrder(a: Node, b: Node): number {\n return a.compareDocumentPosition(b) & DOCUMENT_POSITION_FOLLOWING ? -1 : 1\n}\n\n////////////////\n// ## Environment\n////////////////\n\n/**\n * True when running with a real DOM and custom element registry.\n * - Checks `customElements` too, not just `window`: some SSR shims fake `window` but have no registry.\n */\nexport function isBrowser() {\n return typeof window !== \"undefined\" && typeof document !== \"undefined\" && typeof customElements !== \"undefined\"\n}\n\n////////////////\n// ## Timing\n////////////////\n\n/**\n * Resolve on the next animation frame, with its timestamp; `count`: after that many frames, with the last one's.\n * - Use to let layout / style settle, e.g. after inserting an element and before measuring it\n * (an element drawn on a microtask, then rendered on the next frame: `nextFrame(2)`).\n */\nexport async function nextFrame(count = 1): Promise<number> {\n let time = performance.now()\n for (let left = count; left > 0; left--) time = await new Promise<number>((resolve) => requestAnimationFrame(resolve))\n return time\n}\n\n////////////////\n// ## Clipboard\n////////////////\n\n/**\n * Put `text` on the clipboard; true when it got there.\n * - the browser's clipboard call first\n * - where that's refused (VS Code's side bar, a webview without the permission):\n * the old `execCommand(\"copy\")` from a hidden textarea\n * - The one copy every repo's pages share: Spell UI's code block and theme editor, the brand's colour pickers,\n * the epic pages.\n * - NEVER throws\n */\nexport async function copyText(text: string): Promise<boolean> {\n try {\n await navigator.clipboard.writeText(text)\n return true\n } catch {\n try {\n const area = document.createElement(\"textarea\")\n area.value = text\n area.setAttribute(\"readonly\", \"\")\n area.style.cssText = \"position: fixed; opacity: 0; pointer-events: none\"\n document.body.append(area)\n area.select()\n const copied = document.execCommand(\"copy\")\n area.remove()\n return copied\n } catch {\n return false\n }\n }\n}\n\n////////////////\n// ## Custom elements\n////////////////\n\n/**\n * Resolve with the class for custom element `tag` once it's defined -- immediately if it already is.\n * - Thin cover over `customElements.whenDefined()` so callers needn't know about the registry,\n * and a translated registry (`ie-*` tags) can later be swapped in here.\n */\nexport function whenDefined(tag: string): Promise<CustomElementConstructor> {\n return customElements.whenDefined(tag)\n}\n\n////////////////\n// ## Traversal\n////////////////\n\n/**\n * Like `element.closest(selector)`, but keeps climbing out of shadow roots, following the FLAT tree.\n * - Why: a generic part (`<ui-header>`) slotted into a component, or rendered inside its shadow root,\n * must find its owner (`ui-card`) however it got there -- `closest()` stops at the shadow boundary.\n * - Order at each step:\n * - `assignedSlot` -- a slotted element's rendered parent is its slot, inside the owner's shadow\n * - `parentElement` -- ordinary light-DOM parent\n * - shadow root's `host` -- step out of a shadow tree\n * - Includes `element` itself, as `closest()` does.\n * - NOTE: closed shadow roots hide `assignedSlot`, so a slotted element climbs through its light parent instead.\n */\nexport function closestAcrossShadow<T extends Element = Element>(element: Element, selector: string): T | null {\n for (let current: Element | undefined = element; current; current = flatParentFor(current)) {\n if (current.matches(selector)) return current as T\n }\n return null\n}\n\n/**\n * `element`'s parent in the FLAT tree: its slot when it's slotted, else its parent element, else its shadow root's\n * host; `undefined` at the top.\n * - The one climb `closestAcrossShadow()`, `ui`'s owner and settings lookups and `<ui-sticky>` share.\n * - NOTE: a closed shadow root hides `assignedSlot`, so a slotted element climbs through its light parent instead.\n */\nexport function flatParentFor(element: Element): Element | undefined {\n if (element.assignedSlot) return element.assignedSlot\n if (element.parentElement) return element.parentElement\n const root = element.getRootNode() as Partial<ShadowRoot>\n return root.nodeType === NodeType.documentFragment && root.host ? root.host : undefined\n}\n\n////////////////\n// ## Rows that scroll sideways\n////////////////\n\n/** How much of a row's width one `scrollByRow()` step scrolls. */\nconst ROW_STEP = 0.8\n\n/** The person asked for less motion. */\nconst REDUCED_MOTION = \"(prefers-reduced-motion: reduce)\"\n\n/**\n * Which ends of `row`, a box that scrolls sideways, can still scroll: `start` while it's scrolled from its start,\n * `end` while there's more past its end.\n * - What a row's `‹` / `›` keys show by: Spell UI's `<ui-toolbar>`, the kit's site header.\n * - A pixel of slack each way: fractional widths leave the end a hair short.\n * - NOTE: left-to-right only: in a right-to-left row `scrollLeft` counts the other way.\n */\nexport function scrollEnds(row: Element): ScrollEnds {\n return { start: row.scrollLeft > 1, end: row.scrollLeft + row.clientWidth < row.scrollWidth - 1 }\n}\n\n/**\n * Scroll `row` sideways by most of its width: `-1` back, `1` on.\n * - Most, not all (`ROW_STEP`): the item cut at the end shows whole after the step.\n * - Smoothly, unless the person asked for less motion (`prefers-reduced-motion`): then at once.\n */\nexport function scrollByRow(row: Element, direction: -1 | 1): void {\n const isReduced = !!row.ownerDocument.defaultView?.matchMedia(REDUCED_MOTION).matches\n row.scrollBy({ left: direction * row.clientWidth * ROW_STEP, behavior: isReduced ? \"instant\" : \"smooth\" })\n}\n\n/** `scrollEnds()`'s answer: which ends of a row can still scroll. */\nexport type ScrollEnds = {\n /** it's scrolled away from its start: a `‹` key shows */\n start: boolean\n /** there's more past its end: a `›` key shows */\n end: boolean\n}\n","/**\n * String helpers: attribute <-> property case, Fomantic's number words, \"did you mean\",\n * slugs and accents, escaping (regular expressions, HTML), and indents.\n * - Standalone: no imports, so plain `node` loads it too (`spell/util/string.ts`).\n * - Case conversion is hand-rolled rather than lodash's `kebabCase` / `camelCase`: lodash splits on digits\n * (`\"h1\"` => `\"h-1\"`), which breaks round-tripping `activeIndex` <-> `active-index` for attribute names.\n * - Case conversions are memoized: attribute names are converted on every `attributeChangedCallback`.\n */\n\n////////////////\n// ## Case conversion\n////////////////\n\n/**\n * Convert `camelCase` to `kebab-case`, e.g. `activeIndex` => `active-index`.\n * - Only splits before an uppercase letter, so digits stay put: `h1Size` => `h1-size`.\n * - Already-kebab text passes through unchanged.\n */\nexport function kebabCase(text: string) {\n return (KEBAB_CASE[text] ??= text.replace(/\\p{Lu}/gu, (letter) => `-${letter.toLowerCase()}`))\n}\n/** Memo for `kebabCase()`. */\nconst KEBAB_CASE: Record<string, string> = Object.create(null)\n\n/**\n * Convert `kebab-case` to `camelCase`, e.g. `active-index` => `activeIndex`.\n * - Exact inverse of `kebabCase()` for names it produces.\n * - Already-camel text passes through unchanged.\n */\nexport function camelCase(text: string) {\n return (CAMEL_CASE[text] ??= text.replace(/-([\\p{Ll}\\d])/gu, (_, letter: string) => letter.toUpperCase()))\n}\n/** Memo for `camelCase()`. */\nconst CAMEL_CASE: Record<string, string> = Object.create(null)\n\n////////////////\n// ## Number words\n////////////////\n\n/**\n * Fomantic's word for a column count 1..16, e.g. `4` or `\"4\"` => `\"four\"` (as in `four wide column`).\n * - Returns `undefined` for anything else, including `0`, fractions and out-of-range numbers,\n * so callers decide whether that's an error or a pass-through.\n */\nexport function numberToWord(value: number | string): string | undefined {\n const number = typeof value === \"number\" ? value : /^\\d+$/.test(value.trim()) ? Number(value) : NaN\n return Number.isInteger(number) ? NUMBER_WORDS[number - 1] : undefined\n}\n/** `numberToWord()`'s words, index `n - 1`. */\nconst NUMBER_WORDS = [\n \"one\",\n \"two\",\n \"three\",\n \"four\",\n \"five\",\n \"six\",\n \"seven\",\n \"eight\",\n \"nine\",\n \"ten\",\n \"eleven\",\n \"twelve\",\n \"thirteen\",\n \"fourteen\",\n \"fifteen\",\n \"sixteen\"\n]\n\n////////////////\n// ## Did you mean\n////////////////\n\n/**\n * Levenshtein edit distance between `a` and `b`: inserts + deletes + substitutions to turn one into the other.\n * - Two rolling rows rather than the full matrix -- the inputs are short, but this runs per candidate.\n * - Case-sensitive; `suggest()` lower-cases first.\n */\nexport function levenshtein(a: string, b: string) {\n if (a === b) return 0\n if (!a.length) return b.length\n if (!b.length) return a.length\n let previous = Array.from({ length: b.length + 1 }, (_, index) => index)\n let current = new Array<number>(b.length + 1)\n for (let i = 1; i <= a.length; i++) {\n current[0] = i\n for (let j = 1; j <= b.length; j++) {\n const cost = a[i - 1] === b[j - 1] ? 0 : 1\n current[j] = Math.min(previous[j] + 1, current[j - 1] + 1, previous[j - 1] + cost)\n }\n ;[previous, current] = [current, previous]\n }\n return previous[b.length]\n}\n\n/**\n * Closest of `candidates` to `word`, for dev-time \"did you mean\" warnings on unknown attribute values.\n * - Case-insensitive.\n * - Returns `undefined` when nothing is within `maxDistance` edits (default 2) -- a wild guess is worse\n * than no guess.\n * - Ties go to the EARLIER candidate, so list the most common values first.\n */\nexport function suggest(word: string, candidates: Iterable<string>, maxDistance = 2): string | undefined {\n const lower = word.toLowerCase()\n let best: string | undefined\n let bestDistance = maxDistance + 1\n for (const candidate of candidates) {\n const distance = levenshtein(lower, candidate.toLowerCase())\n if (distance < bestDistance) {\n best = candidate\n bestDistance = distance\n }\n }\n return best\n}\n\n////////////////\n// ## Slugs and accents\n////////////////\n\n/** How `slug()` makes its slug. */\nexport type SlugOptions = {\n /**\n * Which rule (default `\"id\"`):\n * - `\"id\"`: an id or an address, ASCII only: accents and apostrophes dropped, every other run of non-letters,\n * non-digits one `-`, none at the ends\n * - `\"github\"`: GitHub's heading anchor: lower case, punctuation dropped, each space a `-`;\n * accented letters kept, runs of `-` too\n */\n as?: \"id\" | \"github\"\n /** what an empty slug becomes, e.g. `\"phase\"`; default `\"\"` */\n fallback?: string\n}\n\n/**\n * `text` as a slug, e.g. `Café 2.0` => `cafe-2-0`, `Owen's <epic-link>` => `owens-epic-link`.\n * - THE rule for ids (`PhaseIds.slugOf()`'s, moved here): an id drops accents, so a title made into an id anywhere (phase ids, epic addresses,\n * Spell UI's contents and site index) agrees with every other place.\n * - A markdown heading's anchor is GitHub's (`{ as: \"github\" }`): `Café` => `café`, `A & B` => `a--b`,\n * so links into a README or a docs page land where GitHub's do.\n * - NEVER throws\n */\nexport function slug(text: string, { as = \"id\", fallback = \"\" }: SlugOptions = {}): string {\n const made =\n as === \"github\"\n ? text\n .trim()\n .toLowerCase()\n .replace(/[^\\p{L}\\p{M}\\p{N}\\p{Pc}\\- ]/gu, \"\")\n .replace(/ /g, \"-\")\n : withoutAccents(text.normalize(\"NFKD\"))\n .toLowerCase()\n .replace(/['’]/g, \"\")\n .replace(/[^a-z0-9]+/g, \"-\")\n .replace(/^-+|-+$/g, \"\")\n return made || fallback\n}\n\n/** How `withoutAccents()` treats letters. */\nexport type AccentOptions = {\n /**\n * letters whose marks stay, either case, e.g. `\"ñü\"` for Spanish keywords: `año` stays `año`\n * - default none\n */\n keep?: string\n}\n\n/**\n * `text` with its accents and other marks dropped: `Café` => `Cafe`, `naïve` => `naive`.\n * - `keep`: letters left as they are (`{ keep: \"ñü\" }`: `pingüino` stays, `canción` => `cancion`)\n * - Letters with no plain form (`ø`, `ß`) stay as they are.\n */\nexport function withoutAccents(text: string, { keep = \"\" }: AccentOptions = {}): string {\n const kept = keep.normalize(\"NFC\").toLowerCase()\n return text\n .normalize(\"NFC\")\n .replace(/\\P{ASCII}/gu, (letter) =>\n kept.includes(letter.toLowerCase()) ? letter : letter.normalize(\"NFD\").replace(/\\p{M}+/gu, \"\")\n )\n}\n\n////////////////\n// ## Escaping\n////////////////\n\n/**\n * `text` with every regular expression character escaped, to match it literally: `a.b` => `a\\.b`.\n * - Ours rather than `RegExp.escape()`: that one is too new for every browser we run in (coherence J8).\n */\nexport function escapeRegExp(text: string): string {\n return text.replace(/[.*+?^${}()|[\\]\\\\]/g, \"\\\\$&\")\n}\n\n/** `text` safe in HTML text and in an attribute's value, either quote: `&`, `<`, `>`, `\"` and `'` escaped. */\nexport function escapeHTML(text: string): string {\n return text.replace(/[&<>\"']/g, (char) => HTML_ESCAPES[char]!)\n}\n/** What `escapeHTML()` writes for each special character. */\nconst HTML_ESCAPES: Record<string, string> = { \"&\": \"&\", \"<\": \"<\", \">\": \">\", '\"': \""\", \"'\": \"'\" }\n\n////////////////\n// ## Indents\n////////////////\n\n/**\n * `text` with the indent its lines share taken off, and its blank first and last lines dropped:\n * for a template literal written indented in code.\n * - spaces and tabs count alike, one each; blank lines don't count\n */\nexport function dedent(text: string): string {\n const lines = text.split(\"\\n\")\n while (lines.length && !lines[0]!.trim()) lines.shift()\n while (lines.length && !lines.at(-1)!.trim()) lines.pop()\n const indents = lines.filter((line) => line.trim()).map((line) => /^[ \\t]*/.exec(line)![0].length)\n const shared = indents.length ? Math.min(...indents) : 0\n return lines.map((line) => line.slice(shared)).join(\"\\n\")\n}\n\n/**\n * `text` with each line indented by `indent`: that text, or that many spaces.\n * - blank lines (empty, or spaces only) are left as they are, so no line ends in spaces\n */\nexport function indented(text: string, indent: string | number): string {\n const prefix = typeof indent === \"number\" ? \" \".repeat(indent) : indent\n return text\n .split(\"\\n\")\n .map((line) => (line.trim() ? `${prefix}${line}` : line))\n .join(\"\\n\")\n}\n","/**\n * Run a function later, at the moment you name.\n * - From soonest to latest:\n * - `afterSolidUpdate(fn)` -- as soon as the current code finishes\n * - `beforeNextPaint(fn)` -- just before the browser next draws the page\n * - `soon(fn)` -- in the next task, once the browser has had a turn\n * - `after(seconds, fn)` -- once, `seconds` from now: a promise to await, or cancel\n * - `every(seconds, fn)` -- every `seconds`, until you stop it\n * - Why not the platform's calls (`queueMicrotask()`, `setTimeout()` ...):\n * - the name says WHEN `fn` runs, so a reader needn't know the event loop\n * - `after()` and `every()` take SECONDS (`after(0.25, ...)`), not milliseconds\n * - each returns a way to cancel, where one makes sense\n * - And waiting: `waitUntil(read, { timeout, every })` looks until something is true, `within(promise, seconds)` waits\n * for a promise at most so long\n * - And work asked for often, run once at one of those moments: `new Queued({ when, run })`, then `ask()`\n * - Plain JS, importing nothing: safe to import anywhere, on a server too, and plain `node` loads it with its\n * extension (`spell/util/timing.ts`). Only `beforeNextPaint()` needs a browser to CALL.\n * - Its place: util's generic files, so the kit's server and command line, the parser's core and every node tool may\n * use it; `spell/element` re-exports it, as Spell UI's util barrel does (it was `spell/element`'s until epic\n * `coherence` P19)\n */\n\n////////////////\n// ## Right away\n////////////////\n\n/**\n * Run `fn` as soon as the code running now finishes: a microtask, over `queueMicrotask()`.\n * - Before any timer, event or paint.\n * - After the Solid update the code is in:\n * Solid applies a write in a microtask queued AT the write, so `fn`, queued after it, runs after it.\n * - Use it to write state from code that may run while Solid is drawing (a hook Solid calls),\n * where writes aren't allowed.\n * - An error `fn` throws is reported as uncaught: the code that queued it has moved on.\n */\nexport function afterSolidUpdate(fn: () => void): void {\n queueMicrotask(fn)\n}\n\n/**\n * Run `fn` just before the browser next draws the page: an animation frame, over `requestAnimationFrame()`.\n * - Use it to read layout once styles have applied, or to start a CSS change the browser should see as a change.\n * - Twice (`beforeNextPaint(() => beforeNextPaint(fn))`) waits until one paint has HAPPENED.\n * - `fn` gets the frame's timestamp, as `requestAnimationFrame()` gives it.\n * - Returns a function that cancels it, if it hasn't run yet.\n * - NOTE: needs a browser: throws on a server, where there's no `requestAnimationFrame()`.\n */\nexport function beforeNextPaint(fn: (time: number) => void): () => void {\n const frame = requestAnimationFrame(fn)\n return () => cancelAnimationFrame(frame)\n}\n\n/**\n * Run `fn` in the next task: a zero-delay timer, over `setTimeout(fn, 0)`.\n * - After everything already queued: microtasks, Solid's update, the event being handled\n * (a `click` that follows this `pointerup` ...).\n * - Returns a function that cancels it, if it hasn't run yet.\n */\nexport function soon(fn: () => void): () => void {\n const timer = setTimeout(fn, 0)\n return () => clearTimeout(timer)\n}\n\n////////////////\n// ## Later\n////////////////\n\n/**\n * Run `fn` once, `seconds` from now (`after(0.25, ...)`), over `setTimeout()`.\n * - Returns a promise of `fn`'s result, so `await after(1)` waits a second.\n * It rejects with what `fn` throws.\n * - `cancel()` stops it, if it hasn't run yet:\n * - the promise REJECTS with an `AbortError` (`DOMException`), so an `await` never hangs\n * - nobody awaiting is fine: that rejection is never reported as unhandled\n * - after `fn` has started, `cancel()` does nothing: `fn` may cancel its own timer\n */\nexport function after<T = undefined>(seconds: number, fn?: () => T): CancelablePromise<T> {\n let cancel = () => {}\n const promise = new Promise<T>((resolve, reject) => {\n const timer = setTimeout(() => {\n cancel = () => {}\n try {\n resolve(fn?.() as T)\n } catch (error) {\n reject(error)\n }\n }, seconds * 1000)\n cancel = () => {\n cancel = () => {}\n clearTimeout(timer)\n // Marks the rejection as handled: an `await` on the promise still sees it\n promise.catch(() => {})\n reject(new DOMException(\"after(): canceled\", \"AbortError\"))\n }\n })\n return Object.assign(promise, { cancel: () => cancel() })\n}\n\n/**\n * Run `fn` every `seconds` (`every(5, ...)`), over `setInterval()`, until stopped.\n * - The first run is `seconds` from now, not at once.\n * - Returns a function that stops it.\n */\nexport function every(seconds: number, fn: () => void): () => void {\n const timer = setInterval(fn, seconds * 1000)\n return () => clearInterval(timer)\n}\n\n/**\n * What `after()` returns: a promise of its function's result, plus `cancel()`.\n * - `cancel()` stops the timer if it hasn't fired; the promise then rejects with an `AbortError`.\n */\nexport type CancelablePromise<T> = Promise<T> & {\n /** Stop the timer if it hasn't fired; the promise rejects with an `AbortError`. Does nothing after. */\n cancel(): void\n}\n\n////////////////\n// ## Once, however often asked\n////////////////\n\n/****************\n * ### `Queued`\n * Work asked for again and again, run ONCE at the next moment you name: a burst of asks runs it once.\n * - A field, then `ask()` as often as you like:\n * ```ts\n * readonly refit = new Queued({ when: beforeNextPaint, run: () => this.measure() })\n * ```\n * `this.refit.ask()` from each resize, scroll or change; `this.refit.cancel()` in a cleanup.\n * - An ask while a run is pending rides it: the work runs once, at that moment.\n * An ask once it has run (or from inside the work) queues it again.\n * - `cancel()` drops a pending run; the next ask queues afresh.\n * - For a measurer, a fitter, a re-reader: anything several events ask for in one turn.\n ****************/\nexport class Queued {\n /** When the work runs. */\n private readonly when: QueuedMoment\n /** The work. */\n private readonly run: () => void\n /** Drops the pending run; `undefined` while none is pending. */\n private dropPending: (() => void) | undefined\n\n constructor({ when, run }: QueuedProps) {\n this.when = when\n this.run = run\n }\n\n /** Is a run pending? */\n get isPending(): boolean {\n return this.dropPending !== undefined\n }\n\n /** Ask for the work: it runs at the next moment `when` names, once however many asks come before it. */\n ask(): void {\n if (this.dropPending) return\n let isDropped = false\n const cancel = this.when(() => {\n if (isDropped) return\n this.dropPending = undefined\n this.run()\n })\n this.dropPending = () => {\n isDropped = true\n if (cancel) cancel()\n }\n }\n\n /** Drop a pending run, if there is one. */\n cancel(): void {\n this.dropPending?.()\n this.dropPending = undefined\n }\n}\n\n/** What a `Queued` is made from. */\nexport type QueuedProps = {\n /** when the work runs: `afterSolidUpdate`, `beforeNextPaint` or `soon` */\n when: QueuedMoment\n /** the work, run once per burst of asks */\n run: () => void\n}\n\n/** One of the moments above: runs `fn` later, maybe returning a way to cancel it. */\nexport type QueuedMoment = (fn: () => void) => (() => void) | void\n\n////////////////\n// ## Waiting\n////////////////\n\n/**\n * Wait until `read()` gives something truthy: that value; `undefined` once `timeout` seconds pass without one.\n * - looks at once, then every `every` seconds (default 0.1), and once more at the deadline: the wait between two\n * looks never runs past it\n * - `read` may be async (`await waitUntil(() => server.status(), { timeout: 15 })`); what it throws, this throws, so\n * a look that may fail catches its own error and answers `undefined`\n * - for a server that starts, a process that ends, a lock that's free, a file that's written, an answer Owen gives\n */\nexport async function waitUntil<T>(\n read: () => T | PromiseLike<T>,\n { timeout, every = 0.1 }: WaitOptions\n): Promise<Truthy<T> | undefined> {\n const deadline = Date.now() + timeout * 1000\n for (;;) {\n const value = await read()\n if (value) return value as Truthy<T>\n const left = deadline - Date.now()\n if (left <= 0) return undefined\n await after(Math.min(every, left / 1000))\n }\n}\n\n/**\n * Wait at most `seconds` for `promise`: its value, or `undefined` when time runs out first.\n * - what `promise` rejects with, this rejects with\n * - its timer is cleared as soon as `promise` settles, so a quick answer leaves nothing running\n * - `promise` carries on either way: this only stops waiting for it\n */\nexport async function within<T>(promise: PromiseLike<T>, seconds: number): Promise<T | undefined> {\n const timeUp = after(seconds)\n try {\n return await Promise.race([\n promise,\n timeUp.then(\n () => undefined,\n () => undefined\n )\n ])\n } finally {\n timeUp.cancel()\n }\n}\n\n/**\n * `waitUntil()`'s options, in seconds.\n * - `timeout`: how long to wait\n * - `every`: how long between two looks (default 0.1)\n */\nexport type WaitOptions = { timeout: number; every?: number }\n\n/** `T` without the values an `if` takes as false: what `waitUntil()` answers with. */\nexport type Truthy<T> = Exclude<T, false | 0 | \"\" | null | undefined>\n","// spell ui rename: leave this file (it documents the old-name mechanism, with old names as its examples)\n/**\n * The VOCABULARY's types: the schema every set's `<Name>.en.ts` follows (Spell UI's, the epics', the app's ...),\n * and the translation `Dictionary` contract.\n * - Why a schema: vocabulary files own EVERY name a component uses\n * (tag, attributes, values, events, slots, parts, states, texts),\n * so templates and Spell UI's `ClassBuilder` never hold string literals,\n * and a translation can rename all of them in one place.\n * - Canonical names are English and never change; CSS, `ClassBuilder` output and `:state()`s always use them.\n * - A `Dictionary` only renames what AUTHORS type: tags, attribute names, attribute values, events, slots, parts.\n * - The types live here, in spell-element, since every set's elements are declared by one.\n * - The code that reads them is Spell UI's, `spell/ui/vocabulary`:\n * the registry, value sets, converters, class words.\n * - spell-element reaches it through its settings (`SpellSolidSettings.words`).\n * - The shared value sets and topics are Spell UI's too (`spell/ui/vocabulary`'s `ValueSets`):\n * it names them, and their values, by augmenting `ValueSetValues`, `KindValueSets` and `TopicNames`.\n * - Types only, importing nothing: it erases completely.\n * - Node reads it with every vocabulary (`yarn site:data`, `yarn gen:root`): it MUST NOT reach the element layer.\n */\n\n////////////////\n// ## Attributes\n////////////////\n\n/**\n * How an attribute turns into Fomantic classes (see Spell UI's `ClassBuilder`, `packages/ui/notes/grammar.md`)\n * or, for the last six, into a plain property with no class.\n * - `keyOnly` -- `basic` => `basic`\n * - `valueAndKey` -- `floated=\"left\"` => `left floated`; bare `floated` => nothing\n * - `keyOrValueAndKey` -- `pointing` => `pointing`; `pointing=\"left\"` => `left pointing`\n * - `width` -- `width=\"4\"` / `\"1/4\"` / `\"25%\"` => `four wide`\n * - `multiple` -- `only=\"mobile tablet\"` => `mobile only tablet only`\n * - `textAlign` -- `text-align=\"left\"` => `left aligned`; `\"justified\"` => `justified`\n * - `verticalAlign` -- `vertical-align=\"middle\"` => `middle aligned`\n * - `size` -- `size=\"small\"` => `small`; `medium` => nothing\n * - `color` -- `color=\"red\"` => `red`\n * - `valueOnly` -- `position=\"left\"` => `left`:\n * a value emitted alone, placed as `color` is, that isn't a colour (states, positions, speeds ...);\n * always with its own `values`\n * - `boolean` / `enum` / `string` / `number` / `json` / `icon` -- no class; typed property only\n * - `icon` -- an icon name:\n * - bare / `\"true\"` / `\"yes\"` => `spec.default`, else `\"\"` (\"the element's own icon\", none if it has none)\n * - `\"false\"` / `\"no\"` => none (`undefined`), even over a default\n * - NOTE: camelCase, not WWOD §9's English values, on purpose (epic `wwod-spell-ui`, P4 judgement):\n * they're PUBLISHED data, which these read (all Spell UI's, in `packages/ui/`):\n * - the docs data, `docs/__data/components.json5`\n * - `<ui-docs-api>`'s Kind column (`KIND_LABELS`)\n * - `tools/ElementManifests.ts`\n * - `notes/grammar.md`, and the docs page `docs/grammar.html`\n */\nexport type AttributeKind =\n | \"keyOnly\"\n | \"valueAndKey\"\n | \"keyOrValueAndKey\"\n | \"width\"\n | \"multiple\"\n | \"textAlign\"\n | \"verticalAlign\"\n | \"size\"\n | \"color\"\n | \"valueOnly\"\n | \"boolean\"\n | \"enum\"\n | \"string\"\n | \"number\"\n | \"json\"\n | \"icon\"\n\n/** Kinds `ClassBuilder` turns into classes; the rest are property-only. */\nexport type ClassAttributeKind = Exclude<AttributeKind, \"boolean\" | \"enum\" | \"string\" | \"number\" | \"json\" | \"icon\">\n\n/**\n * One attribute of a component, as declared in its vocabulary.\n * - Primitive attributes reflect; rich data (`kind: \"json\"`) is a property only, see Spell UI's `AGENTS.md`.\n */\nexport type AttributeSpec = {\n /** Canonical English attribute name, kebab-case, e.g. `text-align`, `allow-additions`. */\n name: string\n /** How the attribute becomes a class / property. */\n kind: AttributeKind\n /**\n * Allowed values: a shared set by key (`\"hues\"`, `\"sizes\"` ...) or an inline list for component-specific enums.\n * - `color` / `size` default to `\"hues\"` / `\"sizes\"` when omitted.\n * - NOTE: translations map shared sets once (`Dictionary.values`), inline lists per component.\n */\n values?: ValueSetName | readonly string[]\n /**\n * CSS word for `keyOnly` / `valueAndKey` / `keyOrValueAndKey` / `multiple`, e.g. `pointing`, `only`.\n * - Defaults to `name` with `-` => space, so `very-basic` emits `very basic`.\n */\n key?: string\n /**\n * Word(s) after the number for `kind: \"width\"`, e.g. `\"wide\"` (default), `\"column\"`, `\"wide computer\"`.\n * - Mirrors SUI React's `useWidthProp(val, widthClass)`.\n */\n widthClass?: string\n /** `kind: \"width\"` only: accept `\"equal\"` => `equal width`. */\n canEqual?: boolean\n /** Reflect property changes back to the attribute. Default: true for primitives, never for `json`. */\n reflect?: boolean\n /** JS property name, when it isn't `camelCase(name)`. */\n property?: string\n /** Value when the attribute is absent. */\n default?: string | number | boolean\n /**\n * Other canonical attribute names accepted for this one, e.g. `checked` for `selected` on checkbox / radio.\n * - NOTE: aliases are English muscle memory; translations don't rename them.\n * - NOTE: DECLARATIVE only: `Vocabulary` keeps them reachable by name (translation, docs),\n * but `ElementDefinition` makes no observed attribute or property for an alias.\n * - The family reads it itself, raw, through the component's `attributes`\n * (`<ui-item active>`, checkbox `checked`, `<ui-tab active>`).\n */\n aliases?: readonly string[]\n /**\n * The OLD names this attribute replaced (epic `ui-gaps`, request r1): a record, for `spell ui rename`,\n * which rewrites markup still in them.\n * - Each one is:\n * - a plain old name, the same value under a new name: `\"href\"` on `link`\n * - an old switch and the value it stands for: `{ from: \"primary\", value: \"primary\" }` on `color`\n * - The elements don't read them: since epic `ui-gaps` P13 an old name does nothing on a page.\n * - The docs' API tables list them, so a reader still in the old words finds the new one.\n */\n replaces?: readonly AttributeReplacement[]\n /**\n * The class words a value draws, where they aren't the value itself (epic `ui-gaps` P4):\n * `{ md: \"padded\", lg: \"very padded\", none: \"fitted\" }` on `padding`; `\"\"` draws none.\n * - Fomantic's classes stay as they are: only the words a page writes change.\n * - On an attribute that takes several words (`kind: \"multiple\"`), each word is looked up on its own,\n * and draws ALONE: so a several-word look (`appearance`) takes a `classes` map, even `{}`;\n * without one, each word is drawn with the attribute's key after it (`mobile only`, the grid's way).\n */\n classes?: Readonly<Record<string, string>>\n /** What it does, for docs and the custom-elements manifest: written for developers. */\n description: string\n\n //////\n // What a form needs to edit it (epic `property-editor` P2): all optional, read by `<ui-property>`.\n // How ONE form shows it (order, which control, hints, presets) is never here: that's the form's page.\n // Its group is, as every inspector shows it (epic `debut`, Owen 2026-10-25).\n //////\n\n /**\n * The section an inspector shows it in: Name, Content, Appearance, Layout ... (`AttributeGroup`).\n * - The same attribute name keeps one group on every tag, unless it means something else there.\n */\n group?: AttributeGroup\n\n /** The value's own type, when its `kind` doesn't say it: a `json` attribute holding a list, say. */\n type?: ValueType\n /** A list's item type (`type: \"list\"`). */\n of?: ValueType\n /** A nested thing's own attributes (`type: \"thing\"`): edited by a nested editor. */\n attributesOf?: readonly AttributeSpec[]\n /** Its label, for people: `Lists start at`; none: made from `name` (`lists-start-at` => `Lists start at`). */\n label?: string\n /** A tip for people, behind the field's info icon: never the docs' `description`, written for developers. */\n tip?: string\n /** Lowest number. */\n min?: number\n /** Highest number. */\n max?: number\n /** Numbers snap to multiples of it, from `min`. */\n step?: number\n /** A regular expression text must match, as `<input pattern>` writes it (no slashes). */\n pattern?: string\n /** Its `values` are a SCALE, in order (`xs` ... `huge`): a form may show them as a slider with named steps. */\n ordered?: boolean\n /** Its choices come from a source the page registers by this name (`fonts`), maybe async: not `values`. */\n choicesFrom?: string\n /**\n * Validation rules, in `<ui-form rules>`'s shape: `\"email\"`, `[\"notEmpty\", \"minLength[6]\"]`.\n * - Or each a `RuleSpec`, with its own words, as a spell type's rules come:\n * `{ type: \"empty\", prompt: \"Name it\" }`.\n */\n rules?: string | readonly (string | RuleSpec)[]\n /** Named \"on change\" rules the page registers, run after a write: setting it changes another, or its choices. */\n onChange?: readonly string[]\n}\n\n/**\n * The sections an inspector shows a tag's attributes in, in this order (`ATTRIBUTE_GROUPS`):\n * - name: what it's called (`name`, `label`, `title`)\n * - content: what it shows (`icon`, `description`, `image`)\n * - appearance: how it looks (`color`, `style`, `size`)\n * - layout: where it sits and the room it takes (`fluid`, `align`, `padding`)\n * - states: what it's doing now (`active`, `disabled`, `open`)\n * - form: its value, and the rules on it (`value`, `required`, `min`)\n * - link: where it goes or loads from (`href`, `source`)\n * - behaviour: how it acts (`closable`, `timeout`, `autoplay`)\n * - advanced: its machinery, folded away (`debug`, `page-styles`)\n */\nexport const ATTRIBUTE_GROUPS = [\n \"name\",\n \"content\",\n \"appearance\",\n \"layout\",\n \"states\",\n \"form\",\n \"link\",\n \"behaviour\",\n \"advanced\"\n] as const\n/** One of them. */\nexport type AttributeGroup = (typeof ATTRIBUTE_GROUPS)[number]\n\n/**\n * One old name an attribute replaces (`AttributeSpec.replaces`).\n * - text: an old name for the same value (`\"href\"` on `link`)\n * - `{ from, value, values }`: an old switch, or an old name whose values change:\n * - `value`: what the old name stands for written bare (`{ from: \"primary\", value: \"primary\" }` on `color`)\n * - `values`: old text => new value (`{ from: \"basic\", value: \"basic\", values: { very: \"very-basic\" } }`)\n * - neither said for a text: the old text, as it is (`text-align=\"center\"` => `align=\"center\"`)\n * - On an attribute that takes several words (`kind: \"multiple\"`), each old switch adds or removes its own word:\n * `<ui-button basic circular>` => `appearance=\"basic circular\"`.\n */\nexport type AttributeReplacement =\n | string\n | { readonly from: string; readonly value?: string; readonly values?: Readonly<Record<string, string>> }\n\n/**\n * What a value IS, as a form edits it.\n * - `text`, `number`, `boolean`, `date`: one value of that type\n * - `choice`: one of `values` (or `choicesFrom`'s)\n * - `icon`: an icon's name (`star`, `address book`), picked from a grid of glyphs (`<ui-icon-picker>`)\n * - `list`: many, each `of` a type\n * - `thing`: a nested thing, with its own `attributesOf`\n * - `data`: anything else (JSON), edited as text\n */\nexport type ValueType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"choice\" | \"icon\" | \"list\" | \"thing\" | \"data\"\n\n/**\n * What a property editor reads (`<ui-property-editor schema>`): a thing's name and its attributes.\n * - A component's vocabulary is one already (its `tag` the name);\n * a JSON block or a spell class is read into one (Spell UI's `PropertySchemas`, the app's class reader).\n */\nexport type PropertySchema = {\n /** What it describes: a tag (`ui-button`), a class (`ProjectSettings`), a JSON block's name. */\n name: string\n /** Its label, for people: the editor's own when it has none. */\n label?: string\n /** What it is, for developers. */\n description?: string\n /** Its properties, in order. */\n attributes: readonly AttributeSpec[]\n}\n\n////////////////\n// ## Events, slots, parts, states, texts\n////////////////\n\n/** A `CustomEvent` the component dispatches (`bubbles: true, composed: true`). */\nexport type EventSpec = {\n /** Canonical lowercase kebab name, e.g. `ui-changed`. */\n name: string\n /** Shape of `event.detail`, as a type description for docs, e.g. `\"{ value: string, originalEvent?: Event }\"`. */\n detail: string\n /** `preventDefault()` vetoes the transition, e.g. `ui-closing`. */\n cancelable?: boolean\n /** When it fires and what it means, for docs and the custom-elements manifest. */\n description: string\n}\n\n/** A named slot; `\"\"` is the default slot, which has no name to translate. */\nexport type SlotSpec = {\n /** Canonical slot name, e.g. `header`; `\"\"` for the default slot. */\n name: string\n /** What goes in it, for docs and the custom-elements manifest. */\n description: string\n}\n\n/**\n * A `::part()` exposed for styling.\n * - NOTE: a translated part is ADDED next to the canonical one (`part=\"header encabezado\"`),\n * so a canonical app stylesheet keeps working under any translation.\n */\nexport type PartSpec = {\n /** Canonical part name, e.g. `header`. */\n name: string\n /** Which box it is, for docs and the custom-elements manifest. */\n description: string\n}\n\n/** A custom state, `:state(open)`. NEVER translated: states are a CSS contract. */\nexport type StateSpec = {\n /** State name, as CSS writes it in `:state()`, e.g. `open`. */\n name: string\n /** When the element has it, for docs and the custom-elements manifest. */\n description: string\n}\n\n/**\n * Text people read, e.g. `{ key: \"noResults\", text: \"No results found.\" }`.\n * - Looked up through the runtime's texts: Spell UI's `UI.i18n`.\n */\nexport type TextSpec = {\n /** Lookup key, camelCase, unique within the component. */\n key: string\n /** English text; may contain `{placeholders}`. */\n text: string\n /** Where it shows, for translators and docs. */\n description?: string\n}\n\n////////////////\n// ## Component vocabulary\n////////////////\n\n/**\n * Everything a component names -- the contents of `UI<Name>.en.ts`.\n * - Write it as `export const cardVocabulary = { ... } as const satisfies ComponentVocabulary`,\n * so templates get literal types.\n */\nexport type ComponentVocabulary = {\n /** Canonical tag, e.g. `ui-card`. */\n tag: string\n /** Class-grammar noun, emitted last by `ClassBuilder`, e.g. `card` (`ui red card`). */\n noun: string\n /** Group noun, e.g. `cards` for `<ui-cards>`. */\n plural?: string\n /**\n * Emit the leading `ui` class. Default true.\n * - `false` for parts which Fomantic styles by context only, e.g. `column` (`four wide column`, no `ui`).\n */\n ui?: boolean\n /** Its attributes, in docs order. */\n attributes: readonly AttributeSpec[]\n /** The events it dispatches. */\n events: readonly EventSpec[]\n /** Its slots; `\"\"` is the default one. */\n slots: readonly SlotSpec[]\n /** The `::part()`s it exposes. */\n parts: readonly PartSpec[]\n /** The custom states it sets. */\n states: readonly StateSpec[]\n /** Text it shows people (`UI.i18n`). */\n texts: readonly TextSpec[]\n /**\n * Nouns of the generic content parts this component styles by context, e.g. card:\n * `header`, `meta`, `description`, `content`, `extra`.\n * - `OwnerContext` uses this to find a part's owner: `<ui-header>` inside a card gets `:state(in-card)`.\n */\n ownsParts?: readonly string[]\n /** One-line summary for docs. */\n description?: string\n /**\n * What the tag is filed under, so people find it however they look:\n * `ValueSets.topics` ids, several per tag (`ui-button`: `buttons`, `basic`, `controls`, `forms`, `elements`).\n * - Rolled up in Spell UI's `ComponentDefinitions` (`packages/ui/components/ComponentDefinitions.ts`).\n * - A translation maps them (`Dictionary.values.topics`).\n */\n topics?: readonly ComponentTopic[]\n /**\n * Other names people search for: other libraries' and everyday words\n * (`ui-modal`: `dialog`, `lightbox`; `ui-label`: `badge`, `chip`, `tag`).\n * - Searched like the tag's own name.\n * - A translation replaces them (`ComponentDictionary.aka`).\n */\n aka?: readonly string[]\n /**\n * Is it a form control (DOM API `formAssociated`): `true`, else left out.\n * - Its component class says so too (`elementSetup.isAFormControl`); this copy is for a root's catalog, which\n * defines the tag before its family loads, when the platform fixes it (`DOMElement.defineEarly()`).\n * - Spell UI's vocabularies test fails when the two disagree.\n */\n formControl?: true\n /**\n * What `<ui-root display=\"skeleton\">` draws in this tag's place while its family loads, as skeleton text\n * (`SkeletonText`): `\"inline 6 x 2.5\"`, `\"18 wide: square image, header, 3 line paragraph\"`.\n * - Left OUT for none of its own:\n * a part covered by its owner's skeleton (`ui-column` in a grid, `ui-item` in a list),\n * or a tag with nothing to show (`ui-popup`).\n * - Text, not a `SkeletonSpec`: one form for Spell UI's vocabularies and a component pack's.\n * - `yarn gen:root` (and `spell pack build`) parse it into a catalog.\n * - Spell UI's vocabularies test (`ui/tests/test-helpers/vocabularies.test.ts`) parses every one.\n * - NEVER translated: drawing data, like `states`.\n */\n skeleton?: string\n}\n\n/**\n * A tag's skeleton: the `<ui-placeholder>` shapes that stand in for it until it loads\n * (`ComponentVocabulary.skeleton`, written as text and parsed by `SkeletonText`).\n * - Sizes are CSS lengths in `em`, so the element's `size` still scales them; `fluid` on the element fills the width.\n * - No `parts`: one block, `width` x `height` (a button, an input).\n */\nexport type SkeletonSpec = {\n /** `inline`: sits beside the next inline skeleton (buttons, labels); default `block`. */\n readonly display?: \"block\" | \"inline\"\n /** Width, e.g. `\"18em\"`; default the placeholder's own (up to 30em). */\n readonly width?: string\n /** Height of a part-less block, e.g. `\"2.5em\"`; default the placeholder image's (6.25em). */\n readonly height?: string\n /** Shapes, top to bottom. */\n readonly parts?: readonly SkeletonPart[]\n}\n\n/** One shape of a skeleton, as `ui-placeholder` draws it. */\nexport type SkeletonPart =\n /** An image block: `square` (1:1), `rectangular` (4:3), else 6.25em tall. */\n | { readonly shape: \"image\"; readonly ratio?: \"square\" | \"rectangular\" }\n /** A header: two short bars, with a square `image` beside them. */\n | { readonly shape: \"header\"; readonly image?: boolean }\n /** A paragraph of `lines` bars (default 3). */\n | { readonly shape: \"paragraph\"; readonly lines?: number }\n /** One bar, `length` as `<ui-placeholder-line>`'s (default full). */\n | {\n readonly shape: \"line\"\n readonly length?: \"full\" | \"very long\" | \"long\" | \"medium\" | \"short\" | \"very short\"\n }\n\n/**\n * The topics a component may be filed under: a set's runtime adds them by augmenting this interface,\n * so a vocabulary's `topics` are checked against them.\n * - Spell UI's are `ValueSets.topics` (`spell/ui/vocabulary`):\n * `declare module \"spell/element/vocabulary.types\" { interface TopicNames extends Record<..., true> {} }`\n */\nexport interface TopicNames {}\n\n/**\n * A topic id (Spell UI's `ValueSets.topics`): `\"forms\"`, `\"notifications\"`, `\"date & time\"` ...\n * - Any text until a set names them (`NamesOf`).\n */\nexport type ComponentTopic = NamesOf<TopicNames>\n\n////////////////\n// ## Value sets\n////////////////\n\n/**\n * The shared English value sets in Spell UI's `ValueSets`: each set's name => its values, as a union.\n * - The sets its instances declare, so the class is the ONE list.\n * - `hues` -- Fomantic's `@variationAllColors`; extensible\n * - `sizes` -- `mini` ... `massive`; `medium` is the no-op default\n * - `positions` -- popup / tooltip positions (`top left` ... `right center`)\n * - `attachments` -- `attached` positions (`top`, `bottom left` ...)\n * - `alignments` -- text alignment (`left`, `center`, `right`, `justified`)\n * - `verticalAlignments` -- `top`, `middle`, `bottom`\n * - `floats` -- `left`, `right`\n * - `widths` -- columns `1`..`16`; `ValueSets.has()` also accepts words, fractions and percentages\n * - `devices` -- responsive targets for `only` / `reversed` (`mobile`, `large screen` ...)\n * - `booleans` -- spellings the boolean converter understands, so a translation can map `sí` => `yes`\n * - `topics` -- what a component is filed under (a vocabulary's `topics`), so a translation maps them once\n * - The sets are the RUNTIME's: Spell UI adds them by augmenting this interface,\n * `declare module \"spell/element/vocabulary.types\" { interface ValueSetValues extends ... {} }`.\n * - So a vocabulary's `values: \"hues\"` is checked against the names,\n * - and an attribute of that set reads as its values (`this.size`: `\"mini\" | ... | \"massive\"`; `SpecValue`).\n */\nexport interface ValueSetValues {}\n\n/**\n * The value set an attribute of each kind takes when its spec names none (`kind: \"size\"` => `\"sizes\"`).\n * - The runtime's too: Spell UI adds its defaults by augmenting this interface (`ValueSets.setFor()`),\n * so `{ name: \"size\", kind: \"size\" }` reads as the sizes, as it's checked against them.\n */\nexport interface KindValueSets {}\n\n/**\n * The name of a shared value set (`ValueSetValues`): `\"hues\"`, `\"sizes\"` ...\n * - Any text until a set names them (`NamesOf`).\n */\nexport type ValueSetName = NamesOf<ValueSetValues>\n\n/**\n * The keys of a registry of names (`ValueSetValues`, `TopicNames`), or any text while it has none:\n * spell-element alone checks no name, a program with Spell UI checks every one.\n */\nexport type NamesOf<Registry> = [keyof Registry] extends [never] ? string : Extract<keyof Registry, string>\n\n////////////////\n// ## Translation\n////////////////\n\n/** Canonical name => localized name. */\nexport type NameMap = Readonly<Record<string, string>>\n\n/**\n * A translation of the vocabulary, e.g. Spanish, so `<es-tarjeta color=\"rojo\">` ~== `<ui-card color=\"red\">`.\n * - Keys are ALWAYS canonical English names; values are the localized names.\n * - Anything missing falls back to canonical, so the English identity dictionary is just `{ lang: \"en\" }`.\n * - Tags and events are keyed by their full canonical name (`ui-card`, `ui-changed`)\n * and map to a localized STEM (`tarjeta`, `cambio`):\n * `Vocabulary.define(prefix, dictionary)` adds the prefix (`es-tarjeta`).\n * - Attribute, slot and part names map name to name (`header` => `encabezado`).\n * - NOT here: states (a CSS contract), CSS classes.\n * - Its `texts` ride along for the runtime's texts (Spell UI's `UI.i18n`): the names never read them.\n * - Spell UI's own Spanish: each tag's `UI<Name>.es.ts` (a `TagDictionary`),\n * gathered into one by `spell/ui/components/components.es`.\n * - See Spell UI's `notes/translation.md`.\n */\nexport type Dictionary = {\n /** BCP 47 language tag, e.g. `es`. */\n lang: string\n /** Canonical tag => localized stem, e.g. `{ \"ui-card\": \"tarjeta\" }`. */\n tags?: NameMap\n /** Canonical attribute name => localized, for every component, e.g. `{ size: \"tamano\" }`. */\n attributes?: NameMap\n /** Per shared value set, canonical value => localized, e.g. `{ hues: { red: \"rojo\" } }`. */\n values?: Readonly<Partial<Record<ValueSetName, NameMap>>>\n /** Canonical event name => localized stem, e.g. `{ \"ui-changed\": \"cambio\" }`. */\n events?: NameMap\n /** Canonical slot name => localized. */\n slots?: NameMap\n /** Canonical part name => localized (added alongside the canonical part). */\n parts?: NameMap\n /**\n * Canonical value => localized, for the values an attribute lists of its own (`values: [\"left\", \"right\"]`),\n * on every tag: `{ left: \"izquierda\" }`.\n * - So a word used by many tags is translated once.\n * - Looked up after `components[tag].values` and a shared set's map (`values`),\n * before falling back to the canonical value.\n * - NOT for the shared attributes' values (`animation`): those keep their names.\n */\n words?: NameMap\n /** Per-component overrides and inline enum values, keyed by canonical tag. */\n components?: Readonly<Record<string, ComponentDictionary>>\n /** Text key => text people read, for every component (`UI.i18n`): `{ close: \"Cerrar\" }`. */\n texts?: NameMap\n}\n\n/**\n * Defines one component class under `tag`, named by `dictionary`: its `UIComponent.define(tag, dictionary)`.\n * - What the runtime gets with each vocabulary as the class is defined (`WordSettings.registerVocabulary()`),\n * so it can define the class under the page's languages too (Spell UI's `UI.vocabulary.defineComponents()`).\n */\nexport type ComponentDefiner = (tag: string, dictionary: Dictionary) => unknown\n\n/**\n * One language's names for the attributes every element shares (`SharedVocabulary`),\n * in a file of its own: `SharedVocabulary.es.ts`.\n * - A dictionary of the same `lang` reads them for every tag; its own `attributes` (or `components[tag]`) win.\n */\nexport type SharedDictionary = {\n /** BCP 47 language tag, e.g. `es`: the dictionaries it serves. */\n lang: string\n /** Shared attribute name => localized, e.g. `{ disabled: \"desactivado\" }`. */\n attributes: Readonly<\n Partial<\n Record<\n \"disabled\" | \"loading\" | \"visible\" | \"animation\" | \"link\" | \"target\" | \"font\" | \"tooltip\" | \"label\",\n string\n >\n >\n >\n /**\n * Shared attribute name => its values, localized: `{ font: { bold: \"negrita\" } }` (epic `elemental-spell` P26).\n * - Only where the language words them its own way: `animation` keeps Fomantic's names.\n */\n values?: Readonly<Partial<Record<\"font\", Readonly<Record<string, string>>>>>\n}\n\n/** Per-component part of a `Dictionary`: wins over the dictionary-wide maps for that component only. */\nexport type ComponentDictionary = {\n /** Canonical attribute name => localized, for this component only. */\n attributes?: NameMap\n /** Canonical attribute name => (canonical value => localized), for inline enums or to override a shared set. */\n values?: Readonly<Record<string, NameMap>>\n /** Canonical event name => localized stem, for this component only. */\n events?: NameMap\n /** Canonical slot name => localized, for this component only. */\n slots?: NameMap\n /** Canonical part name => localized, for this component only. */\n parts?: NameMap\n /** The tag's other names in this language (replacing the English `aka`), e.g. `[\"diálogo\", \"ventana\"]`. */\n aka?: readonly string[]\n /** Text key => text people read, for this component only (`UI.i18n`), e.g. `{ loading: \"Cargando…\" }`. */\n texts?: NameMap\n}\n\n/**\n * One tag's names in one language, in a file of its own beside its vocabulary: `UIButton.es.ts`.\n * - What a `Dictionary` holds for the tag: its name in `tags`, the rest in `components[tag]`.\n * - Names its tag shares with others (`size`, `color`, `ui-changed`) are the language's own file's:\n * Spell UI's `components.es.ts`.\n */\nexport type TagDictionary = ComponentDictionary & {\n /** BCP 47 language tag, e.g. `es`. */\n lang: string\n /** The canonical tag it translates, e.g. `ui-button`. */\n tag: string\n /** Its localized stem, e.g. `boton`: the page's prefix goes in front (`es-boton`). */\n name: string\n}\n\n/**\n * One component's names after `Vocabulary.define(prefix, dictionary)` -- what a translated element class reads.\n * - Forward maps (localized => canonical spec) serve attribute parsing.\n * - `names` holds the inverse (canonical => localized), for rendering and `Vocabulary.localize()`.\n */\nexport type LocalizedVocabulary = {\n /** Language of the dictionary it came from. */\n lang: string\n /** Prefix it was defined with, e.g. `es`. */\n prefix: string\n /** The canonical vocabulary. */\n vocabulary: ComponentVocabulary\n /** Localized tag, e.g. `es-tarjeta`. */\n tag: string\n /** Localized attribute name (and canonical aliases) => spec. */\n attributes: Map<string, AttributeSpec>\n /** Canonical attribute name => (localized value => canonical value). Only attributes with values. */\n values: Map<string, Map<string, string>>\n /** Localized event name => spec. */\n events: Map<string, EventSpec>\n /** Localized slot name => spec. */\n slots: Map<string, SlotSpec>\n /** Localized part name => spec. */\n parts: Map<string, PartSpec>\n /** Inverse maps, canonical => localized. */\n names: LocalizedNames\n}\n\n/** Canonical => localized name maps for one component. */\nexport type LocalizedNames = {\n /** Canonical attribute name => localized. */\n attributes: Map<string, string>\n /** Canonical attribute name => (canonical value => localized value). */\n values: Map<string, Map<string, string>>\n /** Canonical event name => localized, prefix included (`es-cambio`). */\n events: Map<string, string>\n /** Canonical slot name => localized. */\n slots: Map<string, string>\n /** Canonical part name => localized. */\n parts: Map<string, string>\n}\n\n/** Result of `Vocabulary.canonicalize()` / `localize()`. */\nexport type NamePair = {\n /** The attribute's name, in the language asked for. */\n attribute: string\n /** Its value in that language; `undefined` when no value was passed. */\n value: string | undefined\n}\n\n////////////////\n// ## Converters\n////////////////\n\n/** Options for `Converters.enumValue()`. */\nexport type EnumOptions = {\n /** Attribute name, for the dev-time warning. */\n attribute?: string\n /** Tag, for the dev-time warning. */\n tag?: string\n}\n\n/**\n * One validation rule in its object form: Fomantic's, as `<ui-form>` checks it (`ValidationRule`).\n * - `type`: the rule, `\"minLength\"`\n * - `value`: its setting as text, `\"3\"`, `\"1..5\"`, `\"/^\\d+$/\"`\n * - `prompt`: what to say when it's broken, in place of the rule's own words\n * - What a spell type's rules compile to, e.g. `- its title must not be empty` (epic `property-editor` P9):\n * `spell/util`'s `PropRule` has the same shape.\n */\nexport type RuleSpec = {\n type: string\n value?: string\n prompt?: string\n}\n","// spell ui rename: leave this file (it documents the old-name mechanism, with old names as its examples)\n/**\n * Shared types for `spell/element`, what makes a custom element on Solid:\n * - how a `ComponentVocabulary` becomes typed, converted property values (`AttributeValues`)\n * - what the pieces of `UIComponent` hand each other: `ElementSetup`, `ResolvedAttribute`, the owner context's\n * - the settings a component set's runtime hands spell-element as it loads (`SpellSolidSettings`)\n * - Runtime-light: types, plus a few constants (`AriaNames`, `ERROR_EVENT`, `ERRORED_STATE`, `NO_ANIMATION`).\n * - The BOTTOM of the package's import graph: `import type` only (the package's types as `E`, erased),\n * so it NEVER loads a class module, the DOM or Solid.\n */\n\nimport type { E } from \"spell/element\"\n\n////////////////\n// ## Class builder\n////////////////\n\n/**\n * A class builder's `build()` input (`ClassMaker`, Spell UI's `ClassBuilder`):\n * property values keyed by CANONICAL attribute name.\n * - Values are post-conversion: `true` / `false` for keyOnly, strings / numbers / `true` otherwise.\n * - Unknown keys are ignored, so an element can pass its whole property bag.\n */\nexport type ClassInput = Readonly<Record<string, unknown>>\n\n/** Options for a class builder's `build()` (`ClassMaker`). */\nexport type ClassBuildOptions = {\n /** Classes put just before the noun, e.g. a state (`active`) or a caller's own class: `ui primary icon button`. */\n extra?: string\n /** The last class word; default the vocabulary's `noun`. `<ui-tab>`'s pane says `segment`: `ui tab segment`. */\n noun?: string\n}\n\n////////////////\n// ## Owner context\n////////////////\n\n/**\n * Which elements own generic content parts.\n * - `Set` of tags -- noun is the tag after its prefix (`ui-card` => `card`)\n * - `Map` of tag => noun -- for translated tags (`es-tarjeta` => `card`)\n * - function of the tag (and the element) --\n * return the noun, `true` (derive it from the tag) or a falsy value (not an owner);\n * the element lets an owner decide per instance (`ConditionalOwner`)\n */\nexport type OwnerLookup =\n | ReadonlySet<string>\n | ReadonlyMap<string, string>\n | ((tag: string, element: Element) => string | boolean | undefined)\n\n/**\n * A PART that owns parts only in some contexts, implemented on its COMPONENT:\n * `<ui-item>` owns its content parts in the Items view (`:state(in-item)`),\n * but in a list or menu they see through it to the list / menu.\n * - `PartContext` registers such a class (it has `isOwnerOf()`) as a conditional owner of its vocabulary's `ownsParts`,\n * and asks it during every climb; while it says no, it's transparent like any part.\n * - MUST read the DOM now, not signals:\n * it runs inside other parts' re-resolution, right after moves, before Solid's writes land.\n * - An element with no component yet (not upgraded) owns nothing; its own settle re-resolves its parts.\n */\nexport type ConditionalOwner = {\n /** Does this element own part `noun` right now? Read from the DOM. */\n isOwnerOf(noun: string): boolean\n}\n\n/** What `PartContext.define()` records for one defined tag. */\nexport type PartDefinition = {\n /** the element's vocabulary: its `noun`, and the part nouns it `ownsParts` */\n vocabulary: E.ComponentVocabulary\n /** the tag it was defined as, canonical or translated */\n tag: string\n /** a generic content part: transparent to other parts' climbs (`UIComponent`'s `elementSetup.isAPart`) */\n isAPart: boolean\n /** owns its parts only while its component says so (`ConditionalOwner`) */\n isConditionalOwner?: boolean\n}\n\n/** Options for `OwnerContext.find()`. */\nexport type OwnerFindOptions = {\n /**\n * Stop climbing at an element for which this returns true,\n * e.g. a component that isn't a part and doesn't own this one,\n * so a header inside a segment inside a card isn't styled as the card's.\n */\n barrier?: (element: Element) => boolean\n}\n\n/** `OwnerContext.find()` result. */\nexport type OwnerMatch = {\n /** The owning component element. */\n owner: Element\n /** Its class-grammar noun, e.g. `card`; becomes `:state(in-card)`. */\n ownerNoun: string\n /**\n * Custom elements between the part and its owner:\n * `0` for `card > header`, `1` for `card > content > header`.\n * - Mirrors Fomantic's `.ui.card > .content > .header` vs `.ui.card > .header`.\n * - Native wrappers and slots don't count.\n */\n depth: number\n}\n\n////////////////\n// ## Names\n////////////////\n\n/** `allow-additions` => `allowAdditions`, at the type level (property names follow the vocabulary). */\nexport type CamelCase<S extends string> = S extends `${infer Head}-${infer Tail}`\n ? `${Head}${Capitalize<CamelCase<Tail>>}`\n : S\n\n/** Canonical attribute names of `V`. */\nexport type AttributeName<V extends E.ComponentVocabulary> = V[\"attributes\"][number][\"name\"]\n\n/** Canonical event names of `V`, e.g. `ui-changed`. */\nexport type EventName<V extends E.ComponentVocabulary> = V[\"events\"][number][\"name\"]\n\n/** Canonical slot names of `V`; `\"\"` is the default slot. */\nexport type SlotName<V extends E.ComponentVocabulary> = V[\"slots\"][number][\"name\"]\n\n/** Canonical part names of `V`. */\nexport type PartName<V extends E.ComponentVocabulary> = V[\"parts\"][number][\"name\"]\n\n/** Custom state names of `V` (`:state(open)`). */\nexport type StateName<V extends E.ComponentVocabulary> = V[\"states\"][number][\"name\"]\n\n/** Text keys of `V`, looked up through the runtime's texts (Spell UI's `UI.i18n`). */\nexport type TextKey<V extends E.ComponentVocabulary> = V[\"texts\"][number][\"key\"]\n\n////////////////\n// ## Converted values\n////////////////\n\n/**\n * Property type after conversion, per attribute spec.\n * - keyOnly / boolean => `boolean` (`\"no\"` / `\"false\"` ~== false)\n * - keyOrValueAndKey => `true` (bare), `false`, or the validated value\n * - enumerated kinds => the validated value, `undefined` when absent or unknown;\n * its value set narrows it to a literal union (`SetValues`), so `this.type === \"submit\"` is checked against the vocabulary\n * - json => `unknown`: the component casts to its own shape\n */\nexport type SpecValue<S extends E.AttributeSpec> = S[\"kind\"] extends \"keyOnly\" | \"boolean\"\n ? boolean\n : S[\"kind\"] extends \"keyOrValueAndKey\"\n ? SetValues<S> | boolean\n : S[\"kind\"] extends \"number\"\n ? number | undefined\n : S[\"kind\"] extends \"width\" | \"multiple\"\n ? string | number | undefined\n : S[\"kind\"] extends \"json\"\n ? unknown\n : SetValues<S> | undefined\n\n/**\n * The values an attribute spec takes, as a literal union, else `string`:\n * - an inline `values` list: its values\n * - a shared set by name (`values: \"hues\"`): that set's values (`ValueSetValues`)\n * - no `values`: its kind's default set (`KindValueSets`: `kind: \"size\"` => the sizes)\n * - `string` for a free-text attribute, and in a program with no runtime that names the sets\n */\nexport type SetValues<S extends E.AttributeSpec> = S extends { values: infer Values }\n ? Values extends readonly string[]\n ? Values[number]\n : ValuesOfSet<Values>\n : S[\"kind\"] extends keyof E.KindValueSets\n ? ValuesOfSet<E.KindValueSets[S[\"kind\"]]>\n : string\n\n/** The values of the shared set named `Name` (`ValueSetValues`), else `string`. */\ntype ValuesOfSet<Name> = [Name] extends [keyof E.ValueSetValues] ? E.ValueSetValues[Name] : string\n\n/**\n * Every attribute of `V` as a converted property, keyed by camelCase canonical name: `allowAdditions`, `size`.\n * - A component's vocabulary members (`export interface UIButton extends E.AttributeValues<...> {}`):\n * reading one is fresh and tracked;\n * writing one writes the DOM element's PROPERTY (`Reactive.installAttributeGetters()`).\n */\nexport type AttributeValues<V extends E.ComponentVocabulary> = {\n [S in V[\"attributes\"][number] as CamelCase<S[\"name\"]>]: SpecValue<S>\n}\n\n////////////////\n// ## Components\n////////////////\n\n/** A concrete `UIComponent` subclass, as `define()` sees it. */\nexport type UIComponentClass = {\n new (domElement: E.DOMElement, definition: E.ElementDefinition): E.UIComponent<any>\n prototype: E.UIComponent<any>\n}\n\n/** `UIComponent.registry`: what the whole page has defined. */\nexport type ComponentRegistry = {\n /**\n * The `ElementDefinition` of every defined tag, English and translated, by tag.\n * - A component uses it to tell what kind of element a child is:\n * `UIComponent.registry.definitions.get(child.localName)?.vocabulary.noun`.\n */\n readonly definitions: Map<string, E.ElementDefinition>\n /** The vocabularies already handed to the runtime (`UIComponent.register()`), so each is handed over once. */\n readonly vocabularies: WeakSet<E.ComponentVocabulary>\n}\n\n/** The options of `UIComponent.on()`: `addEventListener()`'s, plus where to listen. */\nexport type OnOptions = Omit<AddEventListenerOptions, \"signal\"> & {\n /** what to listen on; default the element itself. E.g. its shadow root, for `slotchange` */\n target?: EventTarget\n /** remove the listener after it runs once (DOM API `addEventListener()`'s own `once`) */\n once?: boolean\n}\n\n/**\n * The plain-DOM stand-in a broken element shows (`elementSetup.Fallback`), as `UIComponent.renderFallback()` calls it.\n * - Spell UI's form controls have one each, on its `NativeFallback` (`ButtonFallback` ...).\n */\nexport type FallbackClass = {\n render(props: FallbackProps): FallbackHandle\n}\n\n/** What a fallback is drawn from: the broken element, where to draw, and why it broke. */\nexport type FallbackProps = {\n /** the element that broke */\n domElement: HTMLElement\n /** where the fallback draws: its shadow root */\n root: ShadowRoot | HTMLElement\n /** why the element's own drawing failed */\n error?: unknown\n /** the element's internals: its `errored` state, its role, its form calls */\n internals?: ElementInternals\n}\n\n/** What a drawn fallback hands back: `dispose()` removes its listeners, as the element is released. */\nexport type FallbackHandle = {\n dispose(): void\n}\n\n/**\n * How a class's custom element is set up: `UIComponent.elementSetup`, merged down the class chain (`@protoMerged`).\n * - Read once, when the tag is defined,\n * except `styleSheets`, `cssStates`, `isAFormControl`, `canRenderUnstyled` and `aria`,\n * which each element reads as it's built.\n */\nexport type ElementSetup = {\n /**\n * The component's own style sheets, as `name => CSS text`, in order: `{ button: buttonCSS }`.\n * - Default none.\n * - Every element of the class uses the same sheets:\n * registered with the runtime (Spell UI's `UI.styles`) once per class,\n * then adopted into each element's shadow root, after the shared foundation sheets.\n * - A subclass's REPLACE its base's whole (only the top level of `elementSetup` is inherited key by key);\n * spread the base's to add to them:\n * `styleSheets: { ...UISection.prototype.elementSetup.styleSheets, panel: panelCSS }`.\n * - Which of them apply right now: `UIComponent.styleSheetNames`.\n * - NOTE: a name is PAGE-WIDE: one sheet per name, and the first class to register it wins,\n * so a second class with the same name and other CSS silently draws with the first one's.\n * - A component pack's sheets carry its prefix (`{ \"epic-item\": itemCSS }`),\n * never a bare noun one of ours may have (`item`).\n */\n styleSheets: Readonly<Record<string, string>>\n\n /**\n * The `:state()`s that only mirror an attribute of the same name: `[\"active\", \"fluid\"]`.\n * - `<ui-label active>` gets `:state(active)`, read through the component's member `active`\n * (camelCase: `\"read-only\"` reads `readOnly`), the attribute's getter unless the class has its own.\n * - Default none.\n * - A subclass that ADDS states spreads its base's, as for `styleSheets`:\n * `cssStates: [...TextControl.prototype.elementSetup.cssStates, \"inline\"]`.\n * - A state with logic, or one whose member something else reads (`isDisabled`), is a getter with `@cssState`;\n * for a state both name, the `@cssState` member wins.\n * - `define()` throws on a name the tag has no attribute or member for (a typo).\n * - NOT the `cssStates()` hook, which works out a set of states in code.\n * - `disabled`, `loading` and the other shared states need no entry: `UIComponent` sets them for every element.\n */\n cssStates: readonly string[]\n\n /**\n * Does this element act as a control in an HTML `<form>`?\n * - If so, browser treats the element like an `<input>`:\n * - its value is sent with the form,\n * - it takes part in the form's validation and reset, and\n * - a `<fieldset disabled>` around it disables it (`formIsDisabled`).\n *\n * - `false` by default\n * - `true` for `FormComponent` (inputs, checkboxes, dropdowns ...) and `UIButton`s for submit / reset.\n * - It's the platform's \"form-associated custom element\" (`static formAssociated`),\n * which the browser reads once, when the tag is defined.\n */\n isAFormControl: boolean\n\n /**\n * Does clicking the element move focus to the first focusable thing in its shadow DOM?\n * - Default yes.\n * - An element with nothing focusable inside (`<ui-flag>`) says no.\n * - The platform's `delegatesFocus`, read once, when the tag is defined.\n */\n delegatesFocus: boolean\n\n /**\n * How the element's children land in the `<slot>`s of its shadow DOM (DOM API `slotAssignment`).\n * - `\"named\"` (the default): each child goes to the slot its `slot` attribute names.\n * - `\"manual\"`: the element itself hands chosen children to chosen slots (`slot.assign()`).\n * - `<ui-accordion>` does, to wrap each title + content pair in its own `<details>`.\n * - A slot it hasn't assigned stays empty.\n * - Read once, when the tag is defined.\n */\n slotAssignment: SlotAssignmentMode\n\n /**\n * Is this one of the generic parts other elements are built from? (`<ui-header>`, `<ui-content>` ...)\n * - A part looks for the element it belongs to by walking up past other parts:\n * a `<ui-header>` inside a `<ui-content>` inside a `<ui-card>` belongs to the card (`PartContext`).\n * - Default no.\n * - `true` for `PartComponent` (every tag of `ui-parts`),\n * and for `<ui-item>`, `<ui-list>`, `<ui-menu>` and a feed's `<ui-event>`.\n * - Said, not worked out from `ownsParts`: `<ui-label>` is owned by a statistic, but isn't a part.\n */\n isAPart: boolean\n\n /**\n * The class the DOM element itself is made from.\n * - Default `DOMElement`.\n * - `FormComponent` uses `DOMFormControl`, which adds what a form control needs:\n * `value`, `form`, `checkValidity()` ...\n * - A family with a script API of its own names its `DOM<Name>Element` here (`DOMNagElement`).\n * - Read once, when the tag is defined.\n */\n DOMElement: E.AnyDOMElementClass\n\n /**\n * The plain-DOM stand-in this element shows when it breaks (`UI<Name>.fallback.ts`).\n * - Default none: a broken element shows a bare `<slot>`, so its children stay visible.\n * - Only form controls have one, so a broken control still submits, validates and resets\n * (Spell UI's `packages/ui/notes/fallback.md`).\n * - It can't use the component: it runs after the component is gone.\n */\n Fallback: FallbackClass | undefined\n\n /**\n * Show the content at once, without waiting for the runtime and the style sheets.\n * - Default `false`: wait until `isReady`, so nothing shows unstyled.\n * - For an element whose content must never wait: `<ui-root>`, which holds the whole page.\n * Its `render()` MUST look right unstyled (inline styles only) until `isReady`.\n */\n canRenderUnstyled: boolean\n\n /**\n * Is this element a ROOT: the top of a page or app, which the elements inside look up to?\n * - Default `false`.\n * - `true` for `UIRoot`, and so for every subclass of it, whatever its tag (`<spell-viewer>`).\n * - What looks for a root by it: `UIComponent.appContext` (the nearest root's `appContext`).\n * - Read once, when the tag is defined.\n */\n root: boolean\n\n /**\n * ARIA the DOM element ALWAYS has, set once on its `internals` when the component is built:\n * `{ role: \"listitem\" }`, `{ role: \"status\", live: \"polite\" }`.\n * - Keys are short names (`AriaNames`), as `@aria` takes them.\n * - Default none.\n * - For a value that never changes; one that follows state is an `@aria` getter, which wins once its effect runs\n * (`<ui-card>`'s role follows its group).\n * - A server render (`spell/ui/static`) gets it too: a `listitem` becomes an `<li>`.\n */\n aria: Readonly<Partial<Record<AriaName, string>>>\n\n /**\n * What `disabled` means for this family (every element takes it: `SharedVocabulary`).\n * - `\"unusable\"` (the default): the base class does it all, as `<fieldset disabled>` does to its controls:\n * - `isDisabled`, so the DOM element swallows clicks\n * - everything inside is inert (its shadow content, and the children slotted into it):\n * nothing there can be clicked, focused or typed in, and it's dimmed\n * - `aria-disabled=\"true\"`; if focus was inside, it moves on to the next focusable element\n * - e.g. `<ui-card disabled>`, `<ui-segment disabled>`: their buttons can't be used either\n * - `\"its own\"`: the base class only sets `:state(disabled)`; the family's code and sheet say what it means:\n * - unusable its own way: a form control disables its native control (`FormComponent`), a button its `<button>`\n * - only a look, so text stays findable: `<ui-icon>`, `<ui-text>` dim, and clicks still go through\n * - something else: `<ui-transition>` pauses, `<ui-dimmer>` never shows\n */\n disabled: DisabledMeaning\n\n /**\n * What `loading` does for this family (every element takes it: `SharedVocabulary`).\n * - `\"loader\"` (the default): the base class dims everything inside and makes it inert,\n * draws a spinner over it, and sets `aria-busy=\"true\"`.\n * - `\"its own\"`: the base class only sets `:state(loading)`;\n * the family draws its own loader (`<ui-button>`'s spinner, `<ui-segment>`'s veil),\n * or `loading` means something else (`<ui-root>`'s message).\n */\n loading: LoadingMeaning\n\n /**\n * What the shared `link` does for this family (every element takes it: `SharedVocabulary`, epic `ui-gaps`).\n * - `\"click\"` (the default): a click on the element goes there, in its `target` if it has one;\n * a click on a control of its own inside (a button, a link, a field) stays that control's.\n * - `\"its own\"`: the family draws a real link itself (`<ui-text link>`'s `<a>`).\n * - `:state(linked)` either way, while it has one.\n */\n link: LinkMeaning\n\n /**\n * What the element shows when the page writes neither `visible` nor `hidden`.\n * - Every element takes both (`SharedVocabulary`): one fact, two names (`DOMElement`, \"Shown or hidden\").\n * - `\"shown\"` (the default): a message, a segment, a menu ...\n * - `\"hidden\"`: a modal, flyout, popup, sidebar, dimmer, loader, transition:\n * the element writes `hidden` on itself when it first connects.\n * - Read once, when the tag is defined.\n */\n visible: StartsVisible\n\n /**\n * How the element shows and hides when its own `animation` attribute names none:\n * an animation the page's runtime runs (Spell UI's are Fomantic's, `\"fade\"`, `\"scale\"`, `\"fly down\"` ...),\n * or `\"none\"`.\n * - Default the runtime's own (`SpellSolid.settings.motion.defaultAnimation`; Spell UI's is `\"fade\"`).\n * - The element's own `animation` wins over it.\n * - `none` from around it, or reduced motion, wins over both (`UIComponent.animationToRun`).\n * - Run by the `onVisibleChange()` hook: by default on the boxes at the top of the shadow root.\n */\n animation: ElementAnimation\n}\n\n/**\n * The animations an element can show and hide with: `elementSetup.animation`, `UIComponent.animationToRun`.\n * - The names are the RUNTIME's: a component set adds its own by augmenting this interface, so\n * `elementSetup.animation` is checked against them.\n * - Spell UI's are Fomantic's (`UIT.Animations`, `components.types.ts`):\n * `declare module \"spell/element/elements.types\" { interface ElementAnimations extends Record<UIT.Animation, true> {} }`\n * - `none` is every set's: no motion.\n */\nexport interface ElementAnimations {\n none: true\n}\n\n/** An animation's name, a key of `ElementAnimations`: `\"none\"`, and the runtime's (`\"fade\"`, `\"scale\"` ...). */\nexport type ElementAnimation = Extract<keyof ElementAnimations, string>\n\n/** No motion: shown or hidden at once (`animation=\"none\"`, `--ui-motion: none`, reduced motion). */\nexport const NO_ANIMATION = \"none\" satisfies ElementAnimation\n\n/** `elementSetup.visible`: what an element shows when the page writes neither `visible` nor `hidden`. */\nexport type StartsVisible = \"shown\" | \"hidden\"\n\n/** `elementSetup.disabled`: what `disabled` means for a family. */\nexport type DisabledMeaning = \"unusable\" | \"its own\"\n\n/** `elementSetup.loading`: what `loading` does for a family. */\nexport type LoadingMeaning = \"loader\" | \"its own\"\n\n/** `elementSetup.link`: a click goes there (`\"click\"`), or the family draws its own link (`\"its own\"`). */\nexport type LinkMeaning = \"click\" | \"its own\"\n\n/**\n * A text property of `ElementInternals`' ARIA (DOM API `ARIAMixin`): `role`, `ariaBusy`, `ariaLabel` ...\n * - NOT the element-reference ones (`ariaLabelledByElements` ...): `@aria` and `elementSetup.aria` write text.\n */\nexport type AriaProperty = {\n [K in keyof ARIAMixin]-?: ARIAMixin[K] extends string | null ? K : never\n}[keyof ARIAMixin]\n\n/**\n * ARIA by short name => the `ElementInternals` property `@aria` and `elementSetup.aria` write.\n * - Each is the attribute in its comment, set on the element's hidden ARIA (never a visible attribute).\n * - Only the names in use: a name not here fails TypeScript, so add it here (one line).\n * - Keys follow the attribute, camelCased after `aria-`: `aria-valuemin` is `valueMin`.\n */\nexport const AriaNames = {\n role: \"role\", // role\n busy: \"ariaBusy\", // aria-busy\n checked: \"ariaChecked\", // aria-checked\n colSpan: \"ariaColSpan\", // aria-colspan\n current: \"ariaCurrent\", // aria-current\n disabled: \"ariaDisabled\", // aria-disabled\n hidden: \"ariaHidden\", // aria-hidden\n label: \"ariaLabel\", // aria-label\n level: \"ariaLevel\", // aria-level\n live: \"ariaLive\", // aria-live\n roleDescription: \"ariaRoleDescription\", // aria-roledescription\n selected: \"ariaSelected\", // aria-selected\n valueMin: \"ariaValueMin\" // aria-valuemin\n} as const satisfies Record<string, AriaProperty>\n\n/** A short ARIA name, a key of `AriaNames`: `\"busy\"`, `\"label\"`, `\"role\"` ... */\nexport type AriaName = keyof typeof AriaNames\n\n////////////////\n// ## Element definition\n////////////////\n\n/** One attribute as the definition resolved it: canonical spec, localized attribute name, property names. */\nexport type ResolvedAttribute = {\n /** the vocabulary's spec: canonical name, kind, values, default */\n spec: E.AttributeSpec\n /** attribute name authors write, e.g. `primario` */\n attribute: string\n /** camelCase CANONICAL name: the key in `AttributeValues` and `DOMElement.attributeValues` (`allowAdditions`) */\n key: string\n /** element property, e.g. `allowAdditions`, `permitirAdiciones`, or a vocabulary rename (`inputMode`) */\n property: string\n /**\n * write a property change back to the attribute;\n * never for `json` kinds (`options`), which still observe their attribute (first paint MUST NOT need the property)\n */\n reflect: boolean\n}\n\n////////////////\n// ## Errors\n////////////////\n\n/**\n * Event an element dispatches when its render fails, before showing its native fallback.\n * - Cancelable, `bubbles`, `composed`, `detail: { error }`.\n * - `preventDefault()` keeps the fallback out (the page takes over).\n * - NOTE: no vocabulary names it yet (every element has it).\n */\nexport const ERROR_EVENT = \"ui-error\"\n\n/**\n * Custom state of a failed element (`:state(errored)`),\n * set by the error boundary (`UIComponent.onError()`) and by the fallback.\n */\nexport const ERRORED_STATE = \"errored\"\n\n////////////////\n// ## Settings\n////////////////\n\n/**\n * What a component set's runtime hands spell-element as it loads (`SpellSolid.install()`):\n * the services the element bases call, so spell-element never imports the set that draws with them.\n * - Spell UI's: `packages/ui/src/elements/SpellUISettings.ts`, installed as `spell/ui/core` loads.\n * - Every element of the page uses the same ones: a page has one spell-element.\n */\nexport type SpellSolidSettings = {\n /** the page's runtime, which styles and texts wait for */\n runtime: RuntimeSettings\n /** the vocabulary layer: names, conversions, classes, texts */\n words: WordSettings\n /** the elements' style sheets */\n styles: StyleSettings\n /** where focus goes */\n focus: FocusSettings\n /** showing and hiding */\n motion: MotionSettings\n /** warn the page's author: something to fix (Spell UI's `Warnings.warn()`) */\n warn(source: string, message: string, ...data: unknown[]): void\n}\n\n/** `SpellSolidSettings.runtime`: the page's runtime, which an element waits for before it shows. */\nexport type RuntimeSettings = {\n /** Has it loaded? Read as each element is built: one built after it has shows at once. */\n readonly isLoaded: boolean\n /** Load it, once; resolves when it's ready. */\n load(): Promise<unknown>\n}\n\n/** `SpellSolidSettings.words`: the vocabulary layer, which `ElementDefinition` and `UIComponent` read through. */\nexport type WordSettings = {\n /** A new, empty registry of names: each `ElementDefinition`'s own, to resolve its tag's translated names. */\n names(): NameRegistry\n /** The class builder for `vocabulary`'s class words: `UIComponent.rootClass`. */\n classes(vocabulary: E.ComponentVocabulary): ClassMaker\n /** `vocabulary`'s attributes, then the shared ones every element takes that it doesn't declare (`disabled` ...). */\n attributesFor(vocabulary: E.ComponentVocabulary): readonly E.AttributeSpec[]\n /** Does `vocabulary` take the shared attribute `name`, rather than declare its own? */\n takesShared(vocabulary: E.ComponentVocabulary, name: string): boolean\n /** How an attribute's text becomes a value, kind by kind. */\n converters: ValueConverters\n /** The values `spec` allows: its own list, the name of a shared set, or none. */\n valuesFor(spec: E.AttributeSpec): E.ValueSetName | readonly string[] | undefined\n /** The text for `key` in the page's language, as tag `tag` says it, with `params` filled in. */\n text(key: string, params: Record<string, string | number> | undefined, tag: string): string\n /**\n * Hand a defined tag's vocabulary to the runtime, with how to define its component under another tag.\n * - `\"register\"` the first time\n * - `\"replace\"` for a new version of it (hot reload, a server render)\n * - `define`: so the runtime can define it under the page's languages too (Spell UI's `defineComponents()`)\n */\n registerVocabulary(vocabulary: E.ComponentVocabulary, how: \"register\" | \"replace\", define?: E.ComponentDefiner): void\n /** Hand the runtime tag `tag`'s English texts, as defaults: a translation's, or an app's own, win. */\n registerTexts(texts: Record<string, string>, tag: string): void\n}\n\n/** A registry of names, as `WordSettings.names()` makes one: Spell UI's `Vocabulary`. */\nexport type NameRegistry = {\n /** Add `vocabulary`, by its canonical tag. */\n register(vocabulary: E.ComponentVocabulary): unknown\n /** Every registered vocabulary under `prefix` and `dictionary`, by canonical tag; left out, the defaults. */\n define(prefix?: string, dictionary?: E.Dictionary): Map<string, E.LocalizedVocabulary>\n /** A translated tag's attribute and value, in canonical English. */\n canonicalize(tag: string, attribute: string, value?: string): E.NamePair | undefined\n}\n\n/** A vocabulary's class builder, as `WordSettings.classes()` makes one: Spell UI's `ClassBuilder`. */\nexport type ClassMaker = {\n /** The class words for `values`, by canonical attribute name: `\"ui small primary button\"`. */\n build(values: ClassInput, options?: ClassBuildOptions): string\n}\n\n/** How an attribute's text becomes a value, kind by kind (`ElementDefinition.convert()`): Spell UI's `Converters`. */\nexport type ValueConverters = {\n /** text => boolean: absent, `\"false\"`, `\"no\"` are false */\n boolean(value: string | boolean | null | undefined, attribute?: string): boolean\n /** boolean => attribute text: `\"\"`, or `null` to remove it */\n booleanToAttribute(value: boolean | null | undefined): \"\" | null\n /** a word that may also stand bare: `true`, `false`, or one of `set` */\n keyOrValue(\n value: string | boolean | null | undefined,\n set: E.ValueSetName | readonly string[] | undefined,\n options?: E.EnumOptions\n ): string | boolean\n /** one of `set`, else `undefined` */\n enumValue(\n value: string | null | undefined,\n set: E.ValueSetName | readonly string[],\n options?: E.EnumOptions\n ): string | undefined\n /** text => number, else `undefined` */\n number(value: string | number | null | undefined): number | undefined\n /** JSON text => its value */\n json(value: unknown): unknown\n /** an icon's name, `\"\"` for the element's own, `undefined` for none */\n icon(value: unknown, fallback?: unknown): string | undefined\n}\n\n/** `SpellSolidSettings.styles`: the elements' style sheets, page-wide. */\nexport type StyleSettings = {\n /** Register the sheets the page doesn't have yet, by name. */\n registerOnce(sheets: Readonly<Record<string, string>>): void\n /** Register one sheet, or replace it (hot reload). */\n register(name: string, css: string): void\n /** Adopt the shared sheets, then the named ones, into `root`. */\n adoptInto(root: ShadowRoot, names: string[]): void\n}\n\n/** `SpellSolidSettings.focus`: where focus goes. */\nexport type FocusSettings = {\n /** Move focus out of `container` (it's being disabled), on to the next thing that takes it. */\n moveOutOf(container: Element): void\n}\n\n/** `SpellSolidSettings.motion`: how an element shows and hides (`UIComponent`, \"Shown or hidden\"). */\nexport type MotionSettings = {\n /** The animation a family runs when it names none (`elementSetup.animation`). */\n readonly defaultAnimation: ElementAnimation\n /** The CSS property that turns motion off around an element when it's `none`: Spell UI's `--ui-motion`. */\n readonly property: string\n /** Has the person asked for less motion (`prefers-reduced-motion`)? Read fresh each time. */\n readonly isReduced: boolean\n /** Does `animation` draw attention (a shake), rather than show or hide? */\n isAttention(animation: ElementAnimation): boolean\n /** Show `box` at once, undoing an animation that hid it. */\n reveal(box: HTMLElement): void\n /** Run `animation` on `box`, showing it (`visible`) or hiding it; resolves when it ends. */\n animate(box: HTMLElement, animation: ElementAnimation, visible: boolean): Promise<unknown>\n}\n","import { E } from \"spell/element\"\n\n/****************\n * ### `SpellSolid`\n * The settings a component set's runtime hands spell-element as it loads:\n * the services the element bases call (`E.SpellSolidSettings`).\n * - Why: spell-element makes custom elements for EVERY set (Spell UI's, the epics', the app's, a space's),\n * so it never imports one.\n * What an element needs of the page's runtime (its words, style sheets, focus, animations) comes through here.\n * - Spell UI installs its own as `spell/ui/core` loads (`packages/ui/src/elements/SpellUISettings.ts`):\n * every other set's elements draw on a page that has Spell UI's runtime.\n * - A tag defined BEFORE any settings are in waits for them (`whenInstalled()`, `UIComponent.define()`).\n * - Why: a code-split bundle may run a family's chunk before the chunk that installs them,\n * whatever the source's order.\n * - The app's `spell-solid.js` did: `<ui-components>` before Spell UI's core.\n * - STATIC and instance-free on purpose: ONE set of settings per page, as there is one spell-element.\n ****************/\nexport class SpellSolid {\n /**\n * Hand spell-element the page's settings.\n * - Called as the runtime loads: `spell/ui/core` installs Spell UI's.\n * - Tags defined before that are defined now.\n * - A second call replaces the first (tests, a page that swaps its runtime).\n */\n static install(settings: E.SpellSolidSettings) {\n SpellSolid.installed = settings\n for (const task of SpellSolid.waiting.splice(0)) task()\n }\n\n /**\n * Run `task` once settings are installed: now, if they are.\n * - Tasks run in the order they came, as `install()` runs.\n * - Still waiting after `WAIT_WARNING_SECONDS`: one console warning, naming how many wait.\n */\n static whenInstalled(task: () => void) {\n if (SpellSolid.installed) {\n task()\n return\n }\n SpellSolid.waiting.push(task)\n if (SpellSolid.waiting.length > 1) return\n void E.after(WAIT_WARNING_SECONDS, () => {\n if (!SpellSolid.waiting.length) return\n console.warn(\n `[spell/element] SpellSolid: ${SpellSolid.waiting.length} element(s) wait to be defined, and no ` +\n \"settings are installed; load a component set's runtime (Spell UI's `spell/ui/core`)\"\n )\n })\n }\n\n /**\n * The settings installed.\n * - throws an `Error` when none are: nothing has loaded a runtime for the elements (import `spell/ui/core` first)\n */\n static get settings(): E.SpellSolidSettings {\n if (SpellSolid.installed) return SpellSolid.installed\n throw new Error(\n \"SpellSolid.settings: no settings installed; a component set's runtime installs them as it loads \" +\n \"(Spell UI's, as `spell/ui/core` loads): import it before defining an element\"\n )\n }\n\n /** Have settings been installed? */\n static get isInstalled(): boolean {\n return SpellSolid.installed !== undefined\n }\n\n /** What `install()` was handed. */\n private static installed: E.SpellSolidSettings | undefined\n\n /** What waits for `install()` (`whenInstalled()`). */\n private static readonly waiting: Array<() => void> = []\n}\n\n/** How long tags may wait for settings before `whenInstalled()` warns, in seconds. */\nconst WAIT_WARNING_SECONDS = 5\n","import {\n createEffect,\n createMemo,\n createRoot,\n createSignal,\n getObserver,\n getOwner,\n runWithOwner,\n untrack,\n type Accessor,\n type Signal\n} from \"solid-js\"\nimport { isServer } from \"@solidjs/web\"\n\nimport { camelCase } from \"spell/util/string\"\nimport { afterSolidUpdate } from \"spell/util/timing\"\nimport type { E } from \"spell/element\"\n// Import directly to avoid circular import: the decorators run as the classes using them are defined\nimport { AriaNames } from \"./elements.types\"\n\n/****************\n * ### `Reactive`\n * The reactive members of a component (or of any class): decorators over ONE record per instance,\n * so a member reads and writes like a plain property, fresh at once, and Solid still follows it.\n * - `@state accessor isOpen = false`: the value lives in the instance's record, read and written synchronously\n * (`this.isOpen = true; this.isOpen` is `true`, no flush).\n * - A Solid listener reading it (JSX, an effect, a memo) also reads a NOTIFIER signal,\n * made on the first tracked read, which every real change sets.\n * - `@controlled(\"open\") accessor isOpen = false`: the DOM element's property when set, else the starting value.\n * - Writes go to the DOM element's property (and reflect).\n * - A user change is `requestChange(\"isOpen\", next, announce)`.\n * - `@derived get rows()`: a self-tracking cache, NOT a Solid memo\n * (a memo hears of a change through a staged signal, so a read right after a write would give the OLD value).\n * - While it computes, every record member it reads registers with the version it saw;\n * a read checks those versions and recomputes only when one moved.\n * - It MUST read only record members:\n * `@state`, `@controlled`, vocabulary getters, `this.attributes`, other `@derived`.\n * Anything else (a `Cell`, a Solid signal, `UI.browser`, a module global) can't be seen changing outside Solid:\n * move it into the record, or make the member a plain getter.\n * - `@derived({ equals })`: an equal result keeps the old value (`isSameList` for a filtered list).\n * - `@cssState(\"open\")` on a getter or accessor: `UIComponent` keeps `:state(open)` in step with it.\n * - A state that only mirrors its attribute needs no getter: its name goes in `elementSetup.cssStates`.\n * - `@aria(\"busy\")` on a getter or accessor: the DOM element's `internals.ariaBusy` follows it\n * (`true` => `\"true\"`; `false`, `undefined` => removed).\n * - Short names, from `AriaNames`: `\"busy\"`, `\"label\"`, `\"role\"` ...\n * - Stacks with `@cssState`.\n * - A value that never changes is `elementSetup.aria` instead.\n * - `@onChange(\"a\", \"b\") onXChanged(a, b)`:\n * an effect reading the named members, calling the method with their values; a function it returns is the cleanup.\n * - Created by `Reactive.startEffects()`, after every field exists.\n * - The method runs only when a member's value changed.\n * - `@whileConnected watchX()`: runs each time the element connects;\n * a function it returns is the cleanup, run when it disconnects.\n * - Sugar over `@onChange(\"isConnected\")`.\n * - `@watches({ childList: true, subtree: true }) get slotted()`:\n * a member read from the DOM element's light DOM, recomputed when that changes\n * (ONE `MutationObserver` per instance, from the member's first read in a browser).\n * - On a method instead: the method is called on each change, from `startEffects()` on.\n * - `@on(\"command\") onCommand(event)`: a listener on the DOM element for the element's whole life,\n * added by `UIComponent`'s constructor (`Reactive.listenersOf()`); the method runs untracked.\n * - `@untracked select(option)`: the method's body runs inside `untrack()`,\n * so an action or a handler reads members without `untrack(() => this.x)` around each read.\n * - On a getter too (`@untracked get cssDuration()`).\n * - `Reactive.accessorsOf(instance)` (a component's `$`):\n * `$.isOpen` is an `Accessor` of `this.isOpen`, for Solid APIs that take one.\n * - Vocabulary getters (`installAttributeGetters()`; their setters write the DOM element's property)\n * and raw attributes (`attributesOf()`) are record members too:\n * - their versions are bumped when the DOM element's `attributeValues` or the DOM attribute changes\n * - they're notified by the DOM element's change callbacks and a `MutationObserver`\n * - Writes never throw: a notifier set inside an owned scope (a render, a memo), which Solid 2 forbids,\n * is deferred to a microtask; the record is written at once either way.\n * - A leaf of the element core: imports only Solid, `spell/ui/util` and `elements.types`' constants,\n * so element-core classes import its decorators directly (their class definitions read them)\n * without entering the `E` cycle.\n * - Knows components only by shape (`ComponentShape`).\n ****************/\nexport class Reactive {\n ////////////////\n // ## The record\n ////////////////\n\n /**\n * Run `fn` in a Solid root of its OWN, which lives until the `dispose` it's handed is called.\n * - Returns what `fn` does.\n * - Safe ANYWHERE, an effect's callback too:\n * made under `OWN_ROOTS`, an owner that holds nothing and never goes.\n * - A plain `createRoot()` in an effect's callback throws since Solid rc.17 (`PRIMITIVE_IN_EFFECT_CALLBACK`).\n * - The browser runs an element's `connectedCallback()` inside one whenever Solid inserts the element.\n * - No context reaches inside: not the caller's, not an app's.\n */\n static ownRoot<T>(fn: (dispose: () => void) => T): T {\n return runWithOwner(OWN_ROOTS, () => createRoot(fn))\n }\n\n /** `instance`'s record, made on first use. */\n static recordOf(instance: object): ReactiveRecord {\n return ((instance as Recorded)[RECORD] ??= { values: {}, sources: new Map(), caches: new Map() })\n }\n\n /**\n * A `$` for `instance`: `$.x` is an `Accessor` of `instance.x` (tracked, as `instance.x` is), made once per name.\n * - For Solid APIs that take an accessor: `createMemo(this.$.isOpen)`, `new E.IconGlyph({ name: this.$.icon })`.\n */\n static accessorsOf<T extends object>(instance: T): Accessors<T> {\n const record = Reactive.recordOf(instance)\n return (record.accessors ??= new Proxy({} as Record<PropertyKey, Accessor<unknown>>, {\n get: (cache, name) => (cache[name] ??= () => (instance as Record<PropertyKey, unknown>)[name])\n })) as Accessors<T>\n }\n\n ////////////////\n // ## Attributes\n ////////////////\n\n /**\n * Give `prototype` a getter and a setter per attribute (keyed by its camelCase canonical `key`):\n * - the getter reads the CONVERTED value fresh from the DOM element's `attributeValues`\n * - the setter writes the DOM ELEMENT's PROPERTY under this tag's name for it\n * (`el.indeterminate`, a translated tag's own property),\n * which reflects and converts like any property write; `undefined` clears it\n * - Skips a name the prototype chain already has (a method, a getter, `isOpen` ...): the class's own member wins.\n * - An instance field of that name shadows both instead.\n * - Idempotent per prototype.\n */\n static installAttributeGetters(prototype: object, attributes: readonly AttributeNames[]) {\n if (Reactive.withGetters.has(prototype)) return\n Reactive.withGetters.add(prototype)\n for (const { key, name } of attributes) {\n if (key in prototype) continue\n Object.defineProperty(prototype, key, {\n get(this: ComponentShape) {\n return Reactive.attributeValue(this, key)\n },\n set(this: ComponentShape, value: unknown) {\n ;(this.domElement as unknown as Record<string, unknown>)[this.elementDefinition.attribute(name).property] =\n value\n },\n configurable: true\n })\n }\n }\n\n /** Converted value of attribute `key` on `component`'s DOM element, fresh; tracked as a record member. */\n static attributeValue(component: ComponentShape, key: string): unknown {\n if (collecting || getObserver()) {\n const record = Reactive.recordOf(component)\n let source = record.sources.get(ATTRIBUTE_PREFIX + key) as AttributeSource | undefined\n if (!source) {\n record.sources.set(ATTRIBUTE_PREFIX + key, (source = new AttributeSource(component, key)))\n watchAttributeValues(record, component)\n }\n reading(source)\n }\n return attributeValueNow(component, key)\n }\n\n /**\n * The DOM element's attributes as the DOM has them: raw strings, `null` when absent (a platform boundary).\n * - Tracked as record members:\n * a `MutationObserver` watches the DOM element, made on the first tracked read in a browser.\n * - Internal: for attributes outside the vocabulary (`aria-label`, `title`); vocabulary attributes have getters.\n * - `rename(name)`: the attribute to read for `name`, e.g. a translated tag's own name for a canonical one\n * (`attributes.value` reads `valor`); default `name` itself.\n * - Watches for the element's whole life (`keepAlive`), until the DOM element is released.\n */\n static attributesOf(\n owner: object,\n domElement: AttributeElement,\n rename: (name: string) => string = sameName\n ): Readonly<Record<string, string | null>> {\n const record = Reactive.recordOf(owner)\n return (record.attributes ??= new Proxy({} as Record<string, string | null>, {\n get: (_target, name) => {\n if (typeof name !== \"string\") return undefined\n const attribute = rename(name)\n if (collecting || getObserver()) reading(rawAttributeSource(record, domElement, attribute))\n return domElement.getAttribute(attribute)\n }\n }))\n }\n\n ////////////////\n // ## Effects\n ////////////////\n\n /**\n * Start `instance`'s effects:\n * 1. its `@onChange` / `@whileConnected` effects, most-derived class first (as `onMount()` overrides ran before)\n * 2. ONE effect for all its `@aria` members\n * 3. the light DOM watch for its `@watches` methods\n * - MUST run under the instance's owner, once every field exists:\n * `UIComponent.onMount()`, or a helper class's constructor (`PartContext`).\n * - Server: an effect marked `writesDOMElement`, and the `@aria` one, apply once, now\n * (the server build never runs an effect's apply);\n * the rest aren't created, and nothing watches the light DOM.\n * - The method runs untracked (inside `untrack()`):\n * it reacts to the members it names, never to what else it reads.\n * - The method runs only when a member's VALUE changed (`===`, member by member):\n * a memo with `equals` sits between the reads and the effect.\n * - Why: Solid 2 runs an effect's apply on EVERY re-run of its compute, equal value or not\n * (documented since rc.17), and a getter or `@derived` member tracks the sources UNDER it,\n * so its effect re-runs whenever any of them moves.\n * - Skipping inside the apply would be too late: Solid has run the previous cleanup by then.\n */\n static startEffects(instance: object) {\n const self = instance as Record<PropertyKey, unknown>\n for (const entry of Reactive.listFor<OnChangeEntry>(instance, ON_CHANGE)) {\n const { method, members, writesDOMElement, defer, whileConnected } = entry\n const compute = () => members.map((member) => self[member])\n const apply = (values: unknown[]) => {\n // `@whileConnected`: only while connected, and the method takes no values\n if (whileConnected && !values[0]) return undefined\n const call = () => (self[method] as (...values: unknown[]) => unknown)(...(whileConnected ? [] : values))\n const cleanup = untrack(call)\n return typeof cleanup === \"function\" ? (cleanup as () => void) : undefined\n }\n if (isServer) {\n if (writesDOMElement && !defer) apply(untrack(compute))\n } else createEffect(createMemo(compute, { equals: isSameList }), apply, { defer })\n }\n Reactive.startAriaEffect(instance as ComponentShape, self)\n if (isServer) return\n for (const { method, options } of Reactive.listFor<ContentMethodEntry>(instance, CONTENT_METHODS)) {\n const call = (mutations: MutationRecord[]) => (self[method] as (mutations: MutationRecord[]) => void)(mutations)\n watchContent(instance as ContentShape, options, call)\n }\n }\n\n /**\n * The `@aria` members' effect: each member's value, as ARIA text, written to the DOM element's `internals`.\n * - For a property two classes of the chain name, only the subclass's member counts (`listFor()`).\n * - None when the class has no `@aria` member.\n */\n private static startAriaEffect(component: ComponentShape, self: Record<PropertyKey, unknown>) {\n const entries = Reactive.listFor<AriaEntry>(component, ARIA, { claims: (entry) => entry.property })\n if (!entries.length) return\n const compute = () => entries.map(({ member }) => ariaText(self[member] as AriaValue))\n const apply = (texts: (string | null)[]) => {\n const internals = component.domElement.internals as unknown as Record<E.AriaProperty, string | null>\n entries.forEach(({ property }, index) => (internals[property] = texts[index]!))\n }\n if (isServer) apply(untrack(compute))\n else createEffect(createMemo(compute, { equals: isSameList }), apply)\n }\n\n /**\n * `@cssState` members of `instance`'s class chain, most-derived first, then the `mirrored` states:\n * `{ member, state }`.\n * - `mirrored`: states that only mirror the attribute of their name (`elementSetup.cssStates`),\n * each read through its camelCase member (`\"read-only\"` => `readOnly`).\n * - For a state two classes of the chain name, only the subclass's;\n * for one a member and `mirrored` both name, the member's.\n */\n static cssStatesOf(instance: object, mirrored: readonly string[] = []): readonly CssStateEntry[] {\n const members = Reactive.listFor<CssStateEntry>(instance, CSS_STATES, { claims: (entry) => entry.state })\n if (!mirrored.length) return members\n const claimed = new Set(members.map(({ state }) => state))\n const unclaimed = mirrored.filter((state) => !claimed.has(state))\n return [...members, ...unclaimed.map((state) => ({ member: camelCase(state), state }))]\n }\n\n ////////////////\n // ## Listeners\n ////////////////\n\n /**\n * `@on` methods of `instance`'s class chain (`{ method, type, options }`), BASE class first.\n * - Each class's in declaration order: the order the listeners are added, as when each constructor added its own.\n * - A method decorated again in a subclass (an override) is listed once, where the base class listed it.\n * - `UIComponent`'s constructor adds them; a helper class may too, under its own `on()`.\n */\n static listenersOf(instance: object): readonly ListenerEntry[] {\n return Reactive.listFor<ListenerEntry>(instance, LISTENERS, { combine: baseFirstOnce })\n }\n\n ////////////////\n // ## `@controlled`\n ////////////////\n\n /** Is `member` a `@controlled` member of `component` (`isOpen`, from `@controlled(\"open\")`)? */\n static isControlled(component: object, member: string): boolean {\n return !!Reactive.recordOf(component).controlled?.[member]\n }\n\n /** Is the DOM element controlling `@controlled` member `member` right now (its property set)? Untracked. */\n static isControlledByPage(component: ComponentShape, member: string): boolean {\n const { key } = Reactive.controlledAttribute(component, member)\n return untrack(() => attributeValueNow(component, key)) !== undefined\n }\n\n /**\n * A user change of `@controlled` member `member` to `next`: `announce()` dispatches the event first, then\n * - a vetoed (cancelable) event changes nothing\n * - if the DOM element set the property DURING the event (re-set the old value in a `ui-changed` handler),\n * the DOM element's value stands\n * - otherwise `next` is written to the DOM element's property (and reflects)\n * - Returns true when `next` was applied.\n */\n static requestChange(component: ComponentShape, member: string, next: unknown, announce: () => boolean): boolean {\n const { key } = Reactive.controlledAttribute(component, member)\n const writes = watchPropertyWrites(Reactive.recordOf(component), component)\n const before = writes[key] ?? 0\n if (!announce() || (writes[key] ?? 0) !== before) return false\n ;(component as unknown as Record<string, unknown>)[member] = next\n return true\n }\n\n /** `@controlled` member `member`'s attribute, resolved against the component's definition. */\n private static controlledAttribute(component: ComponentShape, member: string): E.ResolvedAttribute {\n const name = Reactive.recordOf(component).controlled?.[member]\n if (!name) {\n throw new TypeError(`Reactive: \\`${member}\\` isn't a @controlled member; declare it @controlled(\"<attribute>\")`)\n }\n return component.elementDefinition.attribute(name)\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n /**\n * Entries under `key` in `instance`'s class metadata, own class first, then each base class.\n * - `combine(lists)`: joins the classes' own lists (own class first) into one; default end to end.\n * - Walked once per class and key (`lists`): each class's metadata object inherits its base class's.\n * - `claims(entry)`: what an entry is FOR (a state, an ARIA property);\n * a later entry claiming the same is dropped, so a subclass's entry wins over its base class's.\n */\n private static listFor<T>(\n instance: object,\n key: symbol,\n { combine = ownFirst, claims }: { combine?: (lists: T[][]) => T[]; claims?: (entry: T) => unknown } = {}\n ): readonly T[] {\n const metadata = (instance.constructor as unknown as Record<symbol, Metadata | undefined>)[METADATA]\n if (!metadata) return []\n let byKey = Reactive.lists.get(metadata)\n if (!byKey) Reactive.lists.set(metadata, (byKey = new Map()))\n let list = byKey.get(key)\n if (!list) {\n const lists: T[][] = []\n for (let current: Metadata | null = metadata; current; current = Object.getPrototypeOf(current)) {\n if (Object.hasOwn(current, key)) lists.push(current[key] as T[])\n }\n list = combine(lists)\n if (claims) {\n const claimed = new Set<unknown>()\n list = list.filter((entry) => {\n const claim = claims(entry as T)\n if (claimed.has(claim)) return false\n claimed.add(claim)\n return true\n })\n }\n byKey.set(key, list)\n }\n return list as T[]\n }\n\n /**\n * `listFor()`'s lists, by class metadata, then key.\n * - Static: per class, page-wide; a class's decorators never change after it's defined.\n */\n private static readonly lists = new WeakMap<object, Map<symbol, unknown[]>>()\n\n /**\n * Prototypes given attribute getters already.\n * - Static: page-wide, one entry per component class (and per hot-reloaded version of one).\n */\n private static readonly withGetters = new WeakSet<object>()\n}\n\n/****************\n * ### Decorators\n ****************/\n\n/**\n * `@state accessor x = v`: reactive state, in the instance's record -- see `Reactive`.\n * - `@state({ equals, ownedWrite })`:\n * - `equals(old, next)` true skips the write (default `===`; `false`: every write notifies)\n * - `ownedWrite` lets a write inside an owned scope notify at once instead of a microtask later\n * (Solid's option, for state written by design while a render runs)\n * - Works on `static accessor` too (`RootSettings.generation`): the record is the class's.\n */\nexport function state<This extends object, T>(\n target: ClassAccessorDecoratorTarget<This, T>,\n context: ClassAccessorDecoratorContext<This, T>\n): ClassAccessorDecoratorResult<This, T>\nexport function state(options: StateOptions): typeof state\nexport function state<This extends object, T>(\n targetOrOptions: ClassAccessorDecoratorTarget<This, T> | StateOptions,\n context?: ClassAccessorDecoratorContext<This, T>\n): ClassAccessorDecoratorResult<This, T> | typeof state {\n if (!context) {\n const options = targetOrOptions as StateOptions\n return ((target: ClassAccessorDecoratorTarget<This, T>, inner: ClassAccessorDecoratorContext<This, T>) =>\n stateAccessor(inner, options)) as typeof state\n }\n return stateAccessor(context, {})\n}\n\n/**\n * `@controlled(\"open\") accessor isOpen = false`: auto-controlled state for attribute `open` --\n * the DOM element's property when set (its converted value isn't `undefined`), else the starting value.\n * - A write goes to the DOM element's PROPERTY (and reflects), so `el.open` is always current, like a native control.\n * - A write of `undefined` hands control back to the starting value: a silent write, e.g. a form reset.\n * - A user change: `this.requestChange(\"isOpen\", next, () => this.send(...))` (`UIComponent`).\n * - Why watch the property instead of comparing values: a DOM element re-setting the SAME value is still a decision.\n * - Components only (`ComponentShape`): it reads the definition and the DOM element.\n */\nexport function controlled(attribute: string) {\n return function <This extends ComponentShape, T>(\n _target: ClassAccessorDecoratorTarget<This, T>,\n context: ClassAccessorDecoratorContext<This, T>\n ): ClassAccessorDecoratorResult<This, T> {\n const member = context.name as string\n return {\n get(this: This): T {\n const { key } = this.elementDefinition.attribute(attribute)\n const pageValue = Reactive.attributeValue(this, key)\n return (pageValue === undefined ? Reactive.recordOf(this).values[member] : pageValue) as T\n },\n set(this: This, next: T) {\n const { property } = this.elementDefinition.attribute(attribute)\n ;(this.domElement as unknown as Record<string, unknown>)[property] = next\n },\n init(this: This, initial: T): T {\n const record = Reactive.recordOf(this)\n record.values[member] = initial\n ;(record.controlled ??= {})[member] = attribute\n // a BASE class's field starts before its constructor sets `domElement` (`UIComponent.isVisible`):\n // then `requestChange()` starts the count\n if (this.domElement) watchPropertyWrites(record, this)\n return initial\n }\n }\n }\n}\n\n/**\n * Count the DOM element's property writes, by key, for `requestChange()`; returns the counts.\n * - Starts once per record.\n */\nfunction watchPropertyWrites(record: ReactiveRecord, component: ComponentShape): Record<string, number> {\n if (record.propertyWrites) return record.propertyWrites\n const writes: Record<string, number> = (record.propertyWrites = {})\n component.domElement.addPropertyChangedCallback((key: string) => {\n writes[key] = (writes[key] ?? 0) + 1\n })\n return writes\n}\n\n/**\n * `@derived get x()`: a self-tracking cache -- see `Reactive`.\n * - For a getter doing real work (loops, parsing, new DOM); a cheap one stays a plain getter, already fresh.\n * - Recomputes on read when a record member it read last time changed; else returns the same value (`===`).\n * - `@derived({ equals })`: `equals(old, next)` true keeps the OLD value,\n * e.g. `{ equals: E.isSameList }` for a filtered list.\n * Same identity, so readers (an outer `@derived`, an `@onChange`) see no change.\n */\nexport function derived<This extends object, T>(\n getter: (this: This) => T,\n context: ClassGetterDecoratorContext<This, T>\n): (this: This) => T\nexport function derived(options: DerivedOptions): typeof derived\nexport function derived<This extends object, T>(\n getterOrOptions: ((this: This) => T) | DerivedOptions,\n context?: ClassGetterDecoratorContext<This, T>\n): ((this: This) => T) | typeof derived {\n if (!context) {\n const { equals } = getterOrOptions as DerivedOptions\n return ((getter: (this: This) => T, inner: ClassGetterDecoratorContext<This, T>) =>\n derivedGetter(getter, inner.name, equals)) as typeof derived\n }\n return derivedGetter(getterOrOptions as (this: This) => T, context.name)\n}\n\n/** `@derived`'s getter for member `name`. */\nfunction derivedGetter<This extends object, T>(\n getter: (this: This) => T,\n name: PropertyKey,\n equals: (a: any, b: any) => boolean = isSame\n): (this: This) => T {\n return function (this: This): T {\n const record = Reactive.recordOf(this)\n let cache = record.caches.get(name)\n if (!cache) record.caches.set(name, (cache = new DerivedCache(() => getter.call(this), equals)))\n return cache.read() as T\n }\n}\n\n/**\n * `@cssState(\"open\")` on a getter or an accessor: `:state(open)` on the DOM element follows its truthiness.\n * - `UIComponent.onMount()` sets them all in ONE render effect (a throw reaches the error boundary).\n * - A state that only mirrors its attribute: a name in `elementSetup.cssStates`, no getter.\n * - A dynamic set of states: the `cssStates()` hook (a method of `UIComponent`).\n */\nexport function cssState(stateName: string) {\n return function (_target: unknown, context: ClassGetterDecoratorContext | ClassAccessorDecoratorContext) {\n ownList<CssStateEntry>(context.metadata, CSS_STATES).push({ member: context.name, state: stateName })\n }\n}\n\n/**\n * `@aria(\"busy\")` on a getter or an accessor: the DOM element's `internals.ariaBusy` follows it.\n * - The value, as ARIA text: `true` => `\"true\"`; `false`, `undefined`, `null` => `null` (removed);\n * a string as is; a number as text.\n * - A state whose \"off\" is spoken (`aria-checked=\"false\"`) returns the string.\n * - A short name from `AriaNames`: `@aria(\"role\")`, `@aria(\"label\")`, `@aria(\"current\")` ...\n * - A name not there fails TypeScript: add it to `AriaNames` (one line).\n * - Stacks with `@cssState` on the same getter:\n * `@cssState(\"loading\") @aria(\"busy\") get isLoading()` (one decorator a line).\n * - ONE effect per element writes them all (`Reactive.startEffects()`);\n * a server render applies it once, as `@onChange(..., { writesDOMElement: true })` does.\n * - A value that never changes: `elementSetup.aria` (`{ role: \"listitem\" }`), set once, with no effect.\n */\nexport function aria(name: E.AriaName) {\n return function (\n _target: unknown,\n context: ClassGetterDecoratorContext<object, AriaValue> | ClassAccessorDecoratorContext<object, AriaValue>\n ) {\n ownList<AriaEntry>(context.metadata, ARIA).push({ member: context.name, property: AriaNames[name] })\n }\n}\n\n/** `@aria`'s value as ARIA text: `true` => `\"true\"`; `false`, `undefined`, `null` => `null`; else its text. */\nfunction ariaText(value: AriaValue): string | null {\n if (value === true) return \"true\"\n if (value === false || value === undefined || value === null) return null\n return String(value)\n}\n\n/**\n * `@onChange(\"a\", \"b\") onXChanged(a, b)`: an effect reading members `a` and `b`,\n * calling the method with their values on start and on every change.\n * - A function it returns is the cleanup, run before the next call and on disposal.\n * - The method runs untracked: only the named members re-run it, so other reads need no `untrack()`.\n * - To re-run on another member, name it; there is no tracked mode.\n * - A trailing `{ writesDOMElement: true }`: the method writes the DOM element (`:state()`, `tabindex`, ARIA),\n * so a server render applies it once, now (the server never runs an effect).\n * - ARIA alone is `@aria`.\n * - A trailing `{ defer: true }`: NOT called at the start, only on a change\n * (an event the first draw mustn't send: `<ui-progress>`'s `ui-changed`).\n * - Created by `Reactive.startEffects()` (`UIComponent.onMount()`), after every subclass field exists.\n */\nexport function onChange(...members: (string | OnChangeOptions)[]) {\n const last = members[members.length - 1]\n const options = typeof last === \"object\" ? (members.pop() as OnChangeOptions) : {}\n return function (_method: unknown, context: ClassMethodDecoratorContext) {\n ownList<OnChangeEntry>(context.metadata, ON_CHANGE).push({\n method: context.name,\n members: members as string[],\n writesDOMElement: !!options.writesDOMElement,\n defer: !!options.defer\n })\n }\n}\n\n/**\n * `@whileConnected watchX()`: called each time the element connects;\n * a function it returns is the cleanup, run when it disconnects (and when the element is released).\n * - For a listener or an observer on something outside the element (`window`, the document)\n * that must stop while the element is out of the page.\n * - Sugar over `@onChange(\"isConnected\")`, without the `if (!isConnected) return` line:\n * created by `Reactive.startEffects()` in the same list,\n * so it keeps its place among a class's `@onChange` methods.\n * - Never on a server: nothing connects there.\n */\nexport function whileConnected<This extends object>(\n _method: (this: This) => (() => void) | void,\n context: ClassMethodDecoratorContext<This>\n) {\n ownList<OnChangeEntry>(context.metadata, ON_CHANGE).push({\n method: context.name,\n members: [\"isConnected\"],\n writesDOMElement: false,\n whileConnected: true\n })\n}\n\n/**\n * `@watches({ childList: true, subtree: true }) get slotted()`:\n * a member read from the DOM element's light DOM, recomputed when that changes.\n * - Options:\n * - what to watch, as a `MutationObserver` takes it:\n * `childList`, `subtree`, `characterData`, `attributes`, `attributeFilter`\n * - `equals(old, next)` true keeps the old value, as `@derived({ equals })`\n * - A getter: a `@derived` whose sources include the light DOM.\n * - A change it watches recomputes it at once;\n * readers (JSX, an effect, an outer `@derived`) hear of it only when the VALUE changed.\n * - It may read record members too (`this.kind`): a change to one recomputes it, as `@derived`.\n * - Watching starts on its first read in a browser, so a value read once is never stale;\n * on a server it's computed once.\n * - A method: called with the `MutationRecord`s on each change it watches (not at the start),\n * from `Reactive.startEffects()` (`UIComponent.onMount()`) on.\n * - For a change that writes other members.\n * - ONE `MutationObserver` per instance for all of them, on `this.domElement`,\n * disconnected when the DOM element is released (NOT on disconnect: a moved element keeps up to date).\n * - Needs `this.domElement` (`ContentShape`): components, not helper classes with their own element.\n */\nexport function watches(options: WatchesOptions) {\n function decorate<This extends ContentShape, T>(\n getter: (this: This) => T,\n context: ClassGetterDecoratorContext<This, T>\n ): (this: This) => T\n function decorate<This extends ContentShape>(\n method: (this: This, mutations: MutationRecord[]) => void,\n context: ClassMethodDecoratorContext<This>\n ): void\n function decorate<This extends ContentShape, T>(\n member: (this: This, ...args: any[]) => T,\n context: ClassGetterDecoratorContext<This, T> | ClassMethodDecoratorContext<This>\n ): ((this: This) => T) | void {\n if (context.kind === \"method\") {\n ownList<ContentMethodEntry>(context.metadata, CONTENT_METHODS).push({ method: context.name, options })\n return\n }\n const name = context.name\n const { equals = isSame } = options\n return function (this: This): T {\n const record = Reactive.recordOf(this)\n let cache = record.caches.get(name) as ContentCache | undefined\n if (!cache) {\n const created = (cache = new ContentCache(() => member.call(this), equals))\n record.caches.set(name, created)\n if (!isServer) watchContent(this, options, () => created.contentChanged())\n }\n return cache.read() as T\n }\n }\n return decorate\n}\n\n/**\n * `@on(\"command\") onCommand(event)`:\n * listen for event `type` on the DOM element, for the element's whole life, as `UIComponent.on()` does.\n * - The method runs UNTRACKED (inside `untrack()`): a handler reads members to decide what to do,\n * never to be followed, even when the event was sent from inside a Solid computation.\n * - A plain method, not an arrow-function field: the listener calls it on its instance.\n * - `protected`, not `private`: TypeScript can't see the listener call it, and reports a `private` one unused.\n * - `@on(\"slotchange\", { target: \"renderRoot\" })`: listen on the shadow root instead.\n * - The other options are `addEventListener()`'s: `{ capture, passive, once }`.\n * - Added by `UIComponent`'s constructor (`Reactive.listenersOf()`), in a browser only:\n * a server render sends no events.\n * - Removed when the DOM element is released, NOT when it's moved or disconnected.\n * - A subclass overriding the method keeps the listener (it calls the override);\n * decorating the override too adds no second one.\n * - A listener that starts later or stops sooner (an effect's)\n * stays a `this.on()` call with its own `AbortController`.\n */\nexport function on<K extends keyof HTMLElementEventMap>(\n type: K,\n options?: ListenerOptions\n): <This>(method: (this: This, event: HTMLElementEventMap[K]) => unknown, context: ClassMethodDecoratorContext) => void\nexport function on(\n type: string,\n options?: ListenerOptions\n): <This>(method: (this: This, event: never) => unknown, context: ClassMethodDecoratorContext) => void\nexport function on(type: string, options: ListenerOptions = {}) {\n return function (_method: unknown, context: ClassMethodDecoratorContext) {\n if (context.kind !== \"method\" || context.static) {\n throw new TypeError(`@on ${String(context.name)}: only works on instance methods; make it a method`)\n }\n ownList<ListenerEntry>(context.metadata, LISTENERS).push({ method: context.name, type, options })\n }\n}\n\n/**\n * `@untracked` on a method: its body runs inside `untrack()`,\n * so what it reads is never followed by the Solid computation that called it.\n * - For actions and handlers, which read members to decide what to do:\n * `@E.untracked select(option) { if (!this.hasRoomForMore) return ... }`,\n * with no `untrack(() => this.hasRoomForMore)` around each read.\n * - On an arrow-function field too, for a handler passed around (`onClick={this.onDimmerClick}`):\n * `@E.untracked private readonly onDimmerClick = (event: MouseEvent) => { ... }`.\n * - On a getter, for a value read to ACT on, never to follow:\n * - a setting an animation reads as it starts (`@E.untracked private get cssDuration()`)\n * - a DOM element's script API over its component (`@E.untracked get errors() { return this.component?.errors ?? [] }`),\n * so a page's Solid effect reading it doesn't re-run each time it changes\n * - the whole getter is untracked, a subclass's override of what it calls included\n * - Writes are the same either way: `untrack()` changes reads only.\n * - NEVER on a method a computation calls so it updates\n * (a helper of a getter, of JSX or of an effect's first function):\n * the computation would stop following those reads.\n * - An `@on` method needs none: its listener already runs it untracked.\n * - An override in a subclass is untracked only when it's decorated too.\n * - NOT needed in a component's constructor or field initializers:\n * every component is built inside `untrack()` (`UIComponent.mount()`, and the static render's `StaticRender`).\n */\nexport function untracked<This, Args extends unknown[], Result>(\n method: (this: This, ...args: Args) => Result,\n context: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Result>\n): (this: This, ...args: Args) => Result\nexport function untracked<This, Value>(\n getter: (this: This) => Value,\n context: ClassGetterDecoratorContext<This, Value>\n): (this: This) => Value\nexport function untracked<This, Handler extends (...args: any[]) => unknown>(\n field: undefined,\n context: ClassFieldDecoratorContext<This, Handler>\n): (handler: Handler) => Handler\nexport function untracked(\n method: AnyFunction | undefined,\n context: ClassMethodDecoratorContext | ClassGetterDecoratorContext | ClassFieldDecoratorContext\n): AnyFunction {\n const name = String(context.name)\n if (context.kind === \"method\" || context.kind === \"getter\") return untrackedCall(method!)\n if (context.kind !== \"field\" || context.static) {\n throw new TypeError(\n `@untracked ${name}: only works on methods, getters and arrow-function fields; untrack() its reads`\n )\n }\n return (handler: unknown) => {\n if (typeof handler !== \"function\") {\n throw new TypeError(`@untracked ${name}: the field holds no function; untrack() its reads instead`)\n }\n return untrackedCall(handler as AnyFunction)\n }\n}\n\n/** `fn`, called inside `untrack()`, with the same `this` and arguments. */\nfunction untrackedCall(fn: AnyFunction): AnyFunction {\n return function (this: unknown, ...args: unknown[]) {\n return untrack(() => fn.apply(this, args))\n }\n}\n\n/****************\n * ### Sources and caches\n ****************/\n\n/** A member's change source: a version a cache compares, and the Solid signal a listener reads. */\ntype Source = {\n /** Bumped on every real change. */\n version: number\n /** Bring `version` up to date first, for sources read from outside (attributes, caches). */\n refresh?(): void\n /** Have the current Solid listener (if any) follow it. */\n track(): void\n}\n\n/** A `@state` / `@controlled` member's source: `changed()` on every real write. */\nclass Notifier implements Source {\n version = 0\n\n /** Made on the first tracked read; nobody listened before it. */\n private signal?: Signal<undefined>\n\n /** Solid's `ownedWrite`: see `StateOptions`. */\n private readonly ownedWrite: boolean\n\n constructor(ownedWrite: boolean) {\n this.ownedWrite = ownedWrite\n }\n\n track() {\n if (!getObserver()) return\n ;(this.signal ??= createSignal<undefined>(undefined, { equals: false, ownedWrite: this.ownedWrite }))[0]()\n }\n\n /** The value changed: bump, and tell Solid. */\n changed() {\n this.version++\n this.tell()\n }\n\n /** Tell Solid's listeners (if any) to read again. */\n protected tell() {\n const signal = this.signal\n if (signal) notify(() => signal[1]())\n }\n}\n\n/**\n * A vocabulary attribute's source: its version follows the converted value in the DOM element's `attributeValues`,\n * and the DOM element's change callbacks tell Solid (`watchAttributeValues()`).\n * - `ownedWrite`: the DOM element's property setters write it,\n * and anyone may call those from anywhere, inside a Solid computation included.\n */\nclass AttributeSource extends Notifier {\n /** The component whose DOM element has the attribute. */\n private readonly component: ComponentShape\n\n /** The attribute's key (camelCase canonical). */\n private readonly key: string\n\n /** Value at the last refresh. */\n private last: unknown\n\n constructor(component: ComponentShape, key: string) {\n super(true)\n this.component = component\n this.key = key\n this.last = attributeValueNow(component, key)\n }\n\n refresh() {\n this.hasMoved()\n }\n\n /** The DOM element wrote the value (equal or not): if it moved, bump and tell Solid. */\n written() {\n if (this.hasMoved()) this.tell()\n }\n\n /** Bring `version` up to date; true when the value moved since the last look. */\n private hasMoved(): boolean {\n const value = attributeValueNow(this.component, this.key)\n if (value === this.last) return false\n this.last = value\n this.version++\n return true\n }\n}\n\n/**\n * A raw attribute's source: its version follows `getAttribute()`; its signal is set by the DOM element's observer.\n */\nclass RawAttributeSource extends Notifier {\n /** The element. */\n private readonly domElement: AttributeElement\n\n /** The attribute. */\n private readonly name: string\n\n /** Starts the DOM element's observer (once). */\n private readonly startWatching: () => void\n\n /** Text at the last refresh. */\n private last: string | null\n\n constructor(domElement: AttributeElement, name: string, startWatching: () => void) {\n super(false)\n this.domElement = domElement\n this.name = name\n this.startWatching = startWatching\n this.last = domElement.getAttribute(name)\n }\n\n refresh() {\n const text = this.domElement.getAttribute(this.name)\n if (text === this.last) return\n this.last = text\n this.changed()\n }\n\n track() {\n if (!getObserver()) return\n this.startWatching()\n super.track()\n }\n}\n\n/**\n * A `@derived` member's cache: its value, and the version each source had when it was computed.\n * - A source too: an outer `@derived` reading it depends on it, through its `version`.\n */\nclass DerivedCache implements Source {\n version = 0\n\n /** Last computed value. */\n private value: unknown\n\n /** Computed at least once? */\n private isComputed = false\n\n /** What the last compute read, with the version it saw. */\n private dependencies = new Map<Source, number>()\n\n /** The getter's body, bound to its instance. */\n private readonly compute: () => unknown\n\n /** `equals(old, next)` true keeps the old value. */\n private readonly equals: (a: unknown, b: unknown) => boolean\n\n constructor(compute: () => unknown, equals: (a: unknown, b: unknown) => boolean) {\n this.compute = compute\n this.equals = equals\n }\n\n /** The value, recomputed first when a dependency changed; registers with an outer cache and Solid. */\n read(): unknown {\n this.refresh()\n collecting?.set(this, this.version)\n if (getObserver()) this.track()\n return this.value\n }\n\n refresh() {\n if (this.isComputed && !this.isStale()) return\n const outer = collecting\n const dependencies = new Map<Source, number>()\n collecting = dependencies\n let next: unknown\n try {\n next = this.compute()\n } finally {\n collecting = outer\n }\n this.dependencies = dependencies\n if (!this.isComputed || !this.equals(this.value, next)) {\n this.value = next\n this.version++\n }\n this.isComputed = true\n }\n\n track() {\n for (const source of this.dependencies.keys()) source.track()\n }\n\n /** Did a dependency move since the last compute? */\n private isStale(): boolean {\n for (const [source, seen] of this.dependencies) {\n source.refresh?.()\n if (source.version !== seen) return true\n }\n return false\n }\n}\n\n/**\n * A `@watches` getter's cache: a `DerivedCache` with one more source, the light DOM.\n * - The light DOM's source has a version and no Solid signal:\n * `contentChanged()` recomputes at once instead, and tells Solid only when the value moved.\n * - Why: a rescan finding the same thing (a chip's `selected` written back, text re-set)\n * must not re-run every reader, or a reader writing the light DOM would loop.\n */\nclass ContentCache extends DerivedCache {\n /** The light DOM's source: bumped on each change the observer reports. */\n private readonly content: Source\n\n /** Tells Solid's listeners the value moved. */\n private readonly changes = new Notifier(false)\n\n constructor(compute: () => unknown, equals: (a: unknown, b: unknown) => boolean) {\n const content: Source = { version: 0, track: () => undefined }\n super(() => {\n reading(content)\n return compute()\n }, equals)\n this.content = content\n }\n\n track() {\n super.track()\n this.changes.track()\n }\n\n /** The observer saw a change it watches: recompute now; tell Solid if the value moved. */\n contentChanged() {\n this.content.version++\n const before = this.version\n this.refresh()\n if (this.version !== before) this.changes.changed()\n }\n}\n\n/** The dependencies the `@derived` computing right now collects, if any. */\nlet collecting: Map<Source, number> | undefined\n\n/** `source` was read: bring it up to date, register it with the computing cache, and with Solid's listener. */\nfunction reading(source: Source) {\n source.refresh?.()\n collecting?.set(source, source.version)\n source.track()\n}\n\n/**\n * Run a Solid signal write now;\n * inside an owned scope, where Solid 2 throws (`REACTIVE_WRITE_IN_OWNED_SCOPE`), a microtask later.\n * - NEVER throws: the record is already written, only the notification waits.\n */\nfunction notify(write: () => void) {\n if (!getOwner()) return write()\n try {\n write()\n } catch {\n afterSolidUpdate(write)\n }\n}\n\n/** `@state`'s accessor for member `context.name`. */\nfunction stateAccessor<This extends object, T>(\n context: ClassAccessorDecoratorContext<This, T>,\n { equals = isSame, ownedWrite = false }: StateOptions\n): ClassAccessorDecoratorResult<This, T> {\n const name = context.name\n const isEqual = equals === false ? isNever : equals\n return {\n get(this: This): T {\n const record = Reactive.recordOf(this)\n if (collecting || getObserver()) reading(notifierFor(record, name, ownedWrite))\n return record.values[name] as T\n },\n set(this: This, next: T) {\n const record = Reactive.recordOf(this)\n if (isEqual(record.values[name], next)) return\n record.values[name] = next\n ;(record.sources.get(name) as Notifier | undefined)?.changed()\n },\n init(this: This, initial: T): T {\n Reactive.recordOf(this).values[name] = initial\n return initial\n }\n }\n}\n\n/** Member `name`'s notifier in `record`, made on first use. */\nfunction notifierFor(record: ReactiveRecord, name: PropertyKey, ownedWrite: boolean): Notifier {\n let source = record.sources.get(name) as Notifier | undefined\n if (!source) record.sources.set(name, (source = new Notifier(ownedWrite)))\n return source\n}\n\n/**\n * Raw attribute `name`'s source in `record`, made on first use;\n * the DOM element's observer starts on the first tracked read.\n */\nfunction rawAttributeSource(record: ReactiveRecord, domElement: AttributeElement, name: string): RawAttributeSource {\n const key = RAW_PREFIX + name\n let source = record.sources.get(key) as RawAttributeSource | undefined\n if (!source)\n record.sources.set(\n key,\n (source = new RawAttributeSource(domElement, name, () => watchAttributes(record, domElement)))\n )\n return source\n}\n\n/**\n * Watch `domElement`'s attributes for `record`'s raw sources, once, until the DOM element is released.\n * - Browser only.\n */\nfunction watchAttributes(record: ReactiveRecord, domElement: AttributeElement) {\n if (isServer || record.attributeObserver) return\n const observer = (record.attributeObserver = new MutationObserver((mutations) => {\n for (const { attributeName } of mutations) {\n ;(record.sources.get(RAW_PREFIX + attributeName) as RawAttributeSource | undefined)?.refresh()\n }\n }))\n observer.observe(domElement as unknown as Node, { attributes: true })\n domElement.addReleaseCallback?.(() => observer.disconnect())\n}\n\n/**\n * Hear every write to `component`'s DOM element's attribute values, once per record,\n * so its attribute sources tell Solid (`AttributeSource.written()`).\n * - Released with the DOM element.\n */\nfunction watchAttributeValues(record: ReactiveRecord, component: ComponentShape) {\n if (record.isWatchingValues) return\n record.isWatchingValues = true\n component.domElement.addPropertyChangedCallback((key: string) => {\n ;(record.sources.get(ATTRIBUTE_PREFIX + key) as AttributeSource | undefined)?.written()\n })\n}\n\n/**\n * Call `changed` on each change to `owner.domElement`'s light DOM that `options` watches (`@watches`).\n * - Browser only.\n * - ONE `MutationObserver` per owner:\n * each new watch widens what it observes to the union of every watch's options,\n * and each mutation batch goes to the watches it matches.\n * - Disconnected when the DOM element is released.\n */\nfunction watchContent(owner: ContentShape, options: WatchesOptions, changed: (mutations: MutationRecord[]) => void) {\n const record = Reactive.recordOf(owner)\n const { domElement } = owner\n let content = record.content\n if (!content) {\n const watches: ContentWatch[] = []\n const observer = new MutationObserver((mutations) => {\n for (const watch of watches) {\n const matched = mutations.filter((mutation) => isWatched(watch.options, mutation, domElement))\n if (matched.length) watch.changed(matched)\n }\n })\n content = record.content = { observer, watches }\n domElement.addReleaseCallback?.(() => observer.disconnect())\n }\n content.watches.push({ options, changed })\n content.observer.observe(domElement, observedUnion(content.watches))\n}\n\n/** Does `mutation` (under `root`) concern a watch with `options`? */\nfunction isWatched(options: WatchesOptions, mutation: MutationRecord, root: Node): boolean {\n if (!options.subtree && mutation.target !== root) return false\n if (mutation.type === \"childList\") return !!options.childList\n if (mutation.type === \"characterData\") return !!options.characterData\n const { attributeFilter } = options\n if (attributeFilter) return attributeFilter.includes(mutation.attributeName!)\n return !!options.attributes\n}\n\n/** One `MutationObserverInit` covering every watch: an attribute filter only when every attribute watch has one. */\nfunction observedUnion(watches: readonly ContentWatch[]): MutationObserverInit {\n const all = watches.map((watch) => watch.options)\n const init: MutationObserverInit = {\n childList: all.some((options) => options.childList),\n subtree: all.some((options) => options.subtree),\n characterData: all.some((options) => options.characterData)\n }\n const onAttributes = all.filter((options) => options.attributes || options.attributeFilter)\n if (!onAttributes.length) return init\n if (onAttributes.some((options) => !options.attributeFilter)) return { ...init, attributes: true }\n return { ...init, attributeFilter: [...new Set(onAttributes.flatMap((options) => options.attributeFilter!))] }\n}\n\n/** Converted value of attribute `key`: the DOM element's `attributeValues`, always fresh. */\nfunction attributeValueNow(component: ComponentShape, key: string): unknown {\n return component.domElement.attributeValues[key]\n}\n\n/**\n * The class's own list under `key` in decorator `metadata`, made on first use (a subclass never adds to its base's).\n */\nfunction ownList<T>(metadata: DecoratorMetadataObject | undefined, key: symbol): T[] {\n const own = metadata as Metadata\n if (!Object.hasOwn(own, key)) own[key] = []\n return own[key] as T[]\n}\n\n/** `listFor()`'s default join: own class's entries first, then each base class's. */\nfunction ownFirst<T>(lists: T[][]): T[] {\n return lists.flat()\n}\n\n/**\n * `listenersOf()`'s join: base class's entries first; a method's listener for a type once, at its first place.\n * - Why once: the listener calls the most-derived method, so an override decorated again would run twice.\n */\nfunction baseFirstOnce(lists: ListenerEntry[][]): ListenerEntry[] {\n const seen = new Set<string>()\n return lists\n .toReversed()\n .flat()\n .filter(({ method, type, options }) => {\n const key = `${String(method)} ${type} ${options.target ?? \"\"}`\n if (seen.has(key)) return false\n seen.add(key)\n return true\n })\n}\n\n/** Default `equals`. */\nfunction isSame(a: unknown, b: unknown): boolean {\n return a === b\n}\n\n/** `attributesOf()`'s default `rename`. */\nfunction sameName(name: string): string {\n return name\n}\n\n/** `equals: false`: never equal. */\nfunction isNever(): boolean {\n return false\n}\n\n/** Same items (`===`), in the same order: `startEffects()`'s cut-off, and `@derived`'s `isSameList`. */\nexport function isSameList(a: readonly unknown[], b: readonly unknown[]): boolean {\n return a.length === b.length && a.every((item, index) => item === b[index])\n}\n\n/****************\n * ### Types\n ****************/\n\n/** Options of `@state`. */\nexport type StateOptions = {\n /** `equals(old, next)` true skips the write; `false`: every write notifies. Default `===`. */\n equals?: false | ((a: any, b: any) => boolean)\n /** Notify at once even inside an owned scope (Solid's `ownedWrite`). Default: a microtask later there. */\n ownedWrite?: boolean\n}\n\n/** Options of `@derived`. */\nexport type DerivedOptions = {\n /** `equals(old, next)` true keeps the old value. Default `===`. */\n equals?: (a: any, b: any) => boolean\n}\n\n/** Options of `@onChange`, after the member names. */\nexport type OnChangeOptions = {\n /** The method writes the DOM element: a server render applies it once. */\n writesDOMElement?: boolean\n /** Not called at the start, only on a change: an event the first draw mustn't send. Never on a server. */\n defer?: boolean\n}\n\n/** Options of `@watches`: what to watch, as `MutationObserver.observe()` takes it, and `equals`. */\nexport type WatchesOptions = {\n /** children added or removed */\n childList?: boolean\n /** anywhere below, not only the DOM element's own children / attributes */\n subtree?: boolean\n /** text changed */\n characterData?: boolean\n /** any attribute changed */\n attributes?: boolean\n /** only these attributes changed (implies `attributes`) */\n attributeFilter?: readonly string[]\n /** a getter's: `equals(old, next)` true keeps the old value. Default `===`. */\n equals?: (a: any, b: any) => boolean\n}\n\n/** What `@watches` asks of its class: the element whose light DOM it watches. */\nexport type ContentShape = {\n /** the element; `addReleaseCallback` when it's a `DOMElement`, to stop watching */\n readonly domElement: Node & { addReleaseCallback?(callback: () => void): void }\n}\n\n/** Options of `@on`: `addEventListener()`'s, plus where to listen. */\nexport type ListenerOptions = Omit<AddEventListenerOptions, \"signal\"> & {\n /** what to listen on, a part of the DOM element; default the DOM element itself */\n target?: ListenerTarget\n}\n\n/** What an `@on` listener may listen on, other than the DOM element: its shadow root (`DOMElement.renderRoot`). */\nexport type ListenerTarget = \"renderRoot\"\n\n/** One `@on` method. */\nexport type ListenerEntry = {\n /** the method called */\n method: PropertyKey\n /** the event type */\n type: string\n /** `addEventListener()`'s options, and the target */\n options: ListenerOptions\n}\n\n/** `$`: an `Accessor` per member, same name and type. */\nexport type Accessors<T> = { readonly [K in keyof T]: Accessor<T[K]> }\n\n/** What the decorators and helpers ask of a component. */\nexport type ComponentShape = {\n /** the element */\n readonly domElement: E.DOMElement\n /** its names: `attribute(name)` resolves `@controlled`'s */\n readonly elementDefinition: E.ElementDefinition\n}\n\n/** An attribute's two canonical names, for `installAttributeGetters()`. */\nexport type AttributeNames = {\n /** camelCase: the member's name */\n key: string\n /** kebab-case, as the vocabulary has it: resolved against each instance's definition */\n name: string\n}\n\n/** The DOM element `attributesOf()` reads: any element; `addReleaseCallback` when it's a `DOMElement`. */\nexport type AttributeElement = {\n getAttribute(name: string): string | null\n addReleaseCallback?(callback: () => void): void\n}\n\n/** One instance's reactive record -- see `Reactive`. */\nexport type ReactiveRecord = {\n /** `@state` / `@controlled` values by member name: the truth, read and written synchronously */\n readonly values: Record<PropertyKey, unknown>\n /** each member's source, made on its first tracked read */\n readonly sources: Map<PropertyKey, Source>\n /** each `@derived` member's cache */\n readonly caches: Map<PropertyKey, DerivedCache>\n /** `@controlled` member => its canonical attribute name */\n controlled?: Record<PropertyKey, string>\n /** DOM element's property writes per attribute key, for `requestChange()` */\n propertyWrites?: Record<string, number>\n /** `$` */\n accessors?: object\n /** `attributes` */\n attributes?: Readonly<Record<string, string | null>>\n /** the DOM element's attribute observer, for `attributes` */\n attributeObserver?: MutationObserver\n /** the attribute sources' change callback is on the DOM element already (`watchAttributeValues()`) */\n isWatchingValues?: boolean\n /** the light DOM's observer and its watches, for `@watches` (`watchContent()`) */\n content?: { readonly observer: MutationObserver; readonly watches: ContentWatch[] }\n}\n\n/** One `@cssState` member. */\nexport type CssStateEntry = {\n /** the getter / accessor */\n member: PropertyKey\n /** the `:state()` name */\n state: string\n}\n\n/** What an `@aria` member may hold: turned into ARIA text by `ariaText()`. */\nexport type AriaValue = string | number | boolean | null | undefined\n\n/** One `@aria` member. */\ntype AriaEntry = {\n /** the getter / accessor */\n member: PropertyKey\n /** the `internals` property it writes */\n property: E.AriaProperty\n}\n\n/** One `@onChange` method. */\ntype OnChangeEntry = {\n /** the method called */\n method: PropertyKey\n /** the members its effect reads */\n members: string[]\n /** apply once on a server */\n writesDOMElement: boolean\n /** not called at the start, only on a change */\n defer?: boolean\n /** `@whileConnected`: called (without values) only while `isConnected` */\n whileConnected?: boolean\n}\n\n/** One `@watches` method. */\ntype ContentMethodEntry = {\n /** the method called on each change */\n method: PropertyKey\n /** what it watches */\n options: WatchesOptions\n}\n\n/** One `@watches` member's watch on the light DOM. */\ntype ContentWatch = {\n /** what it watches */\n options: WatchesOptions\n /** called with the mutations it watches */\n changed(mutations: MutationRecord[]): void\n}\n\n/** Any function, for `@untracked`'s wrapper. */\ntype AnyFunction = (this: unknown, ...args: unknown[]) => unknown\n\n/** Decorator metadata, as we use it. */\ntype Metadata = Record<PropertyKey, unknown>\n\n/** An instance holding a record. */\ntype Recorded = { [RECORD]?: ReactiveRecord }\n\n/** Key of an instance's record. */\nconst RECORD = Symbol(\"reactive\")\n\n/** Metadata key of the `@cssState` list. */\nconst CSS_STATES = Symbol(\"cssStates\")\n\n/** Metadata key of the `@aria` list. */\nconst ARIA = Symbol(\"aria\")\n\n/** Metadata key of the `@onChange` (and `@whileConnected`) list. */\nconst ON_CHANGE = Symbol(\"onChange\")\n\n/** Metadata key of the `@watches` methods' list. */\nconst CONTENT_METHODS = Symbol(\"contentMethods\")\n\n/** Metadata key of the `@on` list. */\nconst LISTENERS = Symbol(\"listeners\")\n\n/**\n * Where lowered decorators keep a class's metadata:\n * `Symbol.metadata`, or esbuild's fallback when the engine has none\n * (`spell/util`'s `Schema.ts` polyfills it with the same symbol).\n */\nconst METADATA: symbol = (Symbol as { metadata?: symbol }).metadata ?? Symbol.for(\"Symbol.metadata\")\n\n/** Prefix of a vocabulary attribute's key in `ReactiveRecord.sources`. */\nconst ATTRIBUTE_PREFIX = \"attribute:\"\n\n/** Prefix of a raw attribute's key in `ReactiveRecord.sources`. */\nconst RAW_PREFIX = \"raw:\"\n\n/**\n * The owner every `Reactive.ownRoot()` is made under: made once, as this file loads, and never disposed.\n * - Holds no context and no state: only there so a root made inside an effect's callback has an owner.\n */\nconst OWN_ROOTS = createRoot(() => getOwner())\n","import { createSignal, type Accessor, type SignalOptions } from \"solid-js\"\n\n/****************\n * ### `Cell`\n * A signal as one object (`cell.get()` / `cell.set(value)`), so a component can declare state as an ordinary class\n * FIELD initializer.\n * - In a component (or any class), state is `@state accessor x = v` (`Reactive`) instead: fresh right after a\n * write. `Cell` stays for a lone signal outside one (a closure), and for `brand`'s components,\n * until they move to the decorators.\n * - A leaf of the element core: imports only `solid-js`.\n * - Why: Solid 2 memos compute EAGERLY on creation, and field initializers run in declaration order, BEFORE\n * the subclass constructor body -- a memo field reading a signal assigned in the constructor sees\n * `undefined`. Declaring every signal as a field (above the memos that read it) keeps the order obvious.\n * - NOTE: `set()` from an owned scope (component body, memo, effect compute) throws in dev; see `UIComponent`.\n ****************/\nexport class Cell<T> {\n /** Read (tracked). */\n readonly get: Accessor<T>\n\n /** Write; visible to reads after the microtask flush (or `flush()`). */\n readonly set: (value: T) => void\n\n constructor(initial: T, options?: SignalOptions<T>) {\n const [get, set] = createSignal<T>(initial as Exclude<T, Function>, options)\n this.get = get\n this.set = (value: T) => void set(value as Exclude<T, Function>)\n }\n}\n","// spell ui rename: leave this file (it documents the old-name mechanism, with old names as its examples)\nimport { E } from \"spell/element\"\n\n/****************\n * ### `ElementDefinition`\n * Everything ONE registered tag needs from its `ComponentVocabulary` (+ an optional translation `Dictionary`),\n * so a component never spells an attribute, event, slot or part name.\n * - `attributes`: one `ResolvedAttribute` per vocabulary attribute, with\n * - its camelCase CANONICAL key (what the component reads, `this.allowAdditions`)\n * - its (localized) attribute and property names\n * - then the shared attributes the vocabulary doesn't declare, under their English names on a translated tag too\n * (`disabled`, `loading`, `visible`, `animation`: Spell UI's `SharedVocabulary`)\n * - The DOM element (`DOMElement`) does the rest: a property per attribute, the upgrade step, reflection.\n * - ONE conversion per kind of value, each way:\n * - `convert()`: attribute text or property value => value\n * - `attributeText()`: value => attribute text\n * - Values: localized values (`rojo`) are canonicalized on the way IN, from attributes and property writes alike,\n * so the class-grammar `builder` and the component only ever see canonical English (`red`);\n * reflection writes them localized again.\n * - One instance per tag; the canonical tag and each translated alias get their own.\n * - The vocabulary layer itself is the page's runtime's: Spell UI's, reached through `SpellSolid.settings.words`.\n * - the registry of names, the value sets, the converters, the class words\n * - No Solid, no DOM: so the server render (`spell/ui/static`) builds one in node.\n ****************/\nexport class ElementDefinition {\n /** Canonical vocabulary. */\n readonly vocabulary: E.ComponentVocabulary\n\n /** Names under this tag's prefix + dictionary. */\n readonly localized: E.LocalizedVocabulary\n\n /** Tag this definition registers, e.g. `ui-button` or `es-boton`. */\n readonly tag: string\n\n /** Class-grammar builder for the canonical vocabulary. */\n readonly builder: E.ClassMaker\n\n /** Every attribute, in vocabulary order. */\n readonly attributes: readonly E.ResolvedAttribute[]\n\n /** Resolved attribute by canonical name (`allow-additions`). */\n private readonly byName = new Map<string, E.ResolvedAttribute>()\n\n /** Resolved attribute by the (localized) name authors write (`permitir-adiciones`). */\n private readonly byAttribute = new Map<string, E.ResolvedAttribute>()\n\n /** The vocabulary layer: the page's runtime's (`SpellSolid.settings.words`). */\n private readonly words = E.SpellSolid.settings.words\n\n /** Private registry, so `canonicalValue()` can map multi-word values for THIS tag without the page's registry. */\n private readonly names = this.words.names()\n\n constructor(vocabulary: E.ComponentVocabulary, { tag, dictionary }: ElementDefinitionProps = {}) {\n this.vocabulary = vocabulary\n const prefix = tag ? tag.slice(0, tag.indexOf(\"-\")) : undefined\n this.names.register(vocabulary)\n const localized = this.names.define(prefix, dictionary).get(vocabulary.tag)!\n this.localized = localized\n // a tag the dictionary doesn't name (an English alias, `ui-later`) is fine: names still resolve by prefix;\n // no tag and no dictionary is the vocabulary's OWN tag, whatever its prefix (`x-item-owner` in tests)\n this.tag = tag ?? (dictionary ? localized.tag : vocabulary.tag)\n this.builder = this.words.classes(vocabulary)\n // the vocabulary's own, then the shared ones it doesn't declare (`disabled`, `loading`, `visible`, `animation`)\n this.attributes = this.words.attributesFor(vocabulary).map((spec) => {\n const attribute = localized.names.attributes.get(spec.name) ?? spec.name\n const key = E.camelCase(spec.name)\n const property = attribute === spec.name ? (spec.property ?? key) : E.camelCase(attribute)\n const resolved: E.ResolvedAttribute = {\n spec,\n attribute,\n key,\n property,\n reflect: spec.kind !== \"json\" && spec.reflect !== false\n }\n this.byName.set(spec.name, resolved)\n this.byAttribute.set(attribute, resolved)\n return resolved\n })\n }\n\n ////////////////\n // ## Names\n ////////////////\n\n /**\n * Attribute resolved from canonical `name`.\n * - Throws a `TypeError` on a name the vocabulary doesn't have: a component's typo, caught on first render.\n */\n attribute(name: string): E.ResolvedAttribute {\n const attribute = this.byName.get(name)\n if (!attribute) {\n throw new TypeError(\n `ElementDefinition.attribute(): <${this.tag}> has no attribute ${JSON.stringify(name)}; ` +\n `pass a canonical name from its vocabulary`\n )\n }\n return attribute\n }\n\n /** Does this tag have attribute `name` (canonical): its vocabulary's own, or a shared one it takes? */\n takesAttribute(name: string): boolean {\n return this.byName.has(name)\n }\n\n /**\n * Does this tag take the SHARED attribute `name` (Spell UI's `SharedVocabulary`)?\n * - False when its vocabulary declares its own of that name: `<ui-sidebar>`'s `visible` starts hidden.\n */\n takesShared(name: string): boolean {\n return this.words.takesShared(this.vocabulary, name)\n }\n\n /**\n * Attribute resolved from the name authors write (`permitir-adiciones` on `<es-desplegable>`);\n * `undefined` for one outside the vocabulary.\n * - The name DOM API `attributeChangedCallback()` hands the DOM element.\n */\n attributeNamed(attributeName: string): E.ResolvedAttribute | undefined {\n return this.byAttribute.get(attributeName)\n }\n\n /**\n * The attribute authors write for `name`: a vocabulary attribute's localized name (`value` => `valor`),\n * else `name` itself (`aria-label`, an alias, an already-localized name).\n */\n localAttribute(name: string): string {\n return this.byName.get(name)?.attribute ?? name\n }\n\n /** Localized event name, e.g. `ui-changed` => `es-cambio`. */\n event(name: string): string {\n return this.localized.names.events.get(name) ?? name\n }\n\n /** Localized slot name; `\"\"` stays the default slot. */\n slot(name: string): string {\n return this.localized.names.slots.get(name) ?? name\n }\n\n /** `part` attribute value: the canonical part, plus the localized one when it differs (see `PartSpec`). */\n part(name: string): string {\n const localized = this.localized.names.parts.get(name) ?? name\n return localized === name ? name : `${name} ${localized}`\n }\n\n ////////////////\n // ## Classes\n ////////////////\n\n /**\n * What `builder` builds a component's class string from:\n * one getter per attribute (by canonical name), each calling `read(name)`.\n * - Getters, so a class string reacts only to the attributes its class words actually read.\n * - `read` is the component's `classValue()`: usually the attribute's value, sometimes state (`isActive`).\n */\n classInput(read: (name: string) => unknown): E.ClassInput {\n const input: Record<string, unknown> = {}\n for (const { spec } of this.attributes) {\n Object.defineProperty(input, spec.name, { get: () => read(spec.name), enumerable: true })\n }\n return input\n }\n\n ////////////////\n // ## Values\n ////////////////\n\n /**\n * Raw attribute text / property value => canonical, typed value, per `spec.kind`.\n * - absent => `spec.default` (converted), else the kind's empty value\n * - SIDE EFFECT (dev only): enum converters warn about unknown values, with a suggestion\n */\n convert(attribute: E.ResolvedAttribute, raw: unknown): unknown {\n const { spec } = attribute\n const value = this.canonicalValue(attribute, raw ?? spec.default)\n const where = { attribute: attribute.attribute, tag: this.tag }\n switch (spec.kind) {\n case \"keyOnly\":\n case \"boolean\":\n return this.words.converters.boolean(value as string | boolean | null | undefined, attribute.attribute)\n case \"keyOrValueAndKey\":\n return this.words.converters.keyOrValue(\n value as string | boolean | null | undefined,\n this.words.valuesFor(spec),\n where\n )\n case \"size\":\n case \"color\":\n case \"valueOnly\":\n case \"enum\":\n case \"valueAndKey\":\n case \"textAlign\":\n case \"verticalAlign\": {\n const set = this.words.valuesFor(spec)\n if (value == null || value === \"\") return undefined\n return set\n ? this.words.converters.enumValue(ElementDefinition.text(value), set, where)\n : ElementDefinition.text(value)\n }\n case \"number\":\n return this.words.converters.number(value as string | number | null | undefined)\n case \"json\":\n return this.words.converters.json(value)\n case \"icon\":\n return this.words.converters.icon(value, spec.default)\n case \"width\":\n case \"multiple\":\n return value == null || value === \"\" ? undefined : (value as string | number)\n default:\n return value == null ? undefined : Array.isArray(value) ? value : ElementDefinition.text(value)\n }\n }\n\n /**\n * `attribute`'s value before anything set it: its default, converted.\n * - An array or object default is copied (shallow), so no two elements share one.\n */\n startingValue(attribute: E.ResolvedAttribute): unknown {\n const value = this.convert(attribute, undefined)\n if (Array.isArray(value)) return value.slice()\n if (value && typeof value === \"object\") return { ...value }\n return value\n }\n\n /**\n * Is an element of this tag shown, by its markup alone?\n * (`visible` and the platform's `hidden`, one fact: `DOMElement`, \"Shown or hidden\")\n * 1. `hidden` written, any value (`until-found` too): no, whatever `visible` says\n * 2. else `visible` written: its value (`\"false\"` => no)\n * 3. else the family's `startsVisible` (`elementSetup.visible`)\n * - `attributeText(name)`: an attribute's text, `null` when absent (DOM API `getAttribute()`).\n * - Shared by the DOM element (before its first connect) and the static render.\n */\n visibleInMarkup(attributeText: (name: string) => string | null, startsVisible: E.StartsVisible): boolean {\n if (attributeText(\"hidden\") !== null) return false\n const visible = this.byName.get(VISIBLE)\n const text = visible && attributeText(visible.attribute)\n if (visible && text !== null && text !== undefined) return this.convert(visible, text) === true\n return startsVisible === \"shown\"\n }\n\n /** Localized value => canonical (`rojo` => `red`, `movil tableta` => `mobile tablet`); others unchanged. */\n private canonicalValue(attribute: E.ResolvedAttribute, value: unknown): unknown {\n if (typeof value !== \"string\" || !this.localized.values.has(attribute.spec.name)) return value\n return this.names.canonicalize(this.localized.tag, attribute.attribute, value)?.value ?? value\n }\n\n /**\n * Attribute text for a canonical `value`, or `null` to remove it.\n * - Booleans: `\"\"` or removed (NEVER `\"true\"`); `\"false\"` only for off over a `true` default (`visible`).\n * - `keyOrValueAndKey`: `\"\"` for bare, else the value.\n * - Arrays: comma-joined (`a,b`); one holding anything but strings, numbers and booleans as JSON (`[{\"a\":1}]`).\n * - Canonical values are written LOCALIZED (`red` => `rojo` on `<es-boton>`).\n */\n attributeText(attribute: E.ResolvedAttribute, value: unknown): string | null {\n const { spec } = attribute\n if (spec.kind === \"keyOnly\" || spec.kind === \"boolean\") {\n const isOn = this.words.converters.boolean(value as string | boolean | null | undefined)\n // off over a TRUE default (`visible`, `closable`) reflects as `\"false\"`: removed, it would be the default again\n if (!isOn && spec.default === true) return \"false\"\n return this.words.converters.booleanToAttribute(isOn)\n }\n // an `icon` turned off over its default reflects as `\"false\"`: removing it would bring the default back\n if (spec.kind === \"icon\" && value == null && typeof spec.default === \"string\") return \"false\"\n if (value == null || value === false) return null\n if (value === true) return \"\"\n // an array of objects as JSON (`[{\"a\":1}]`): comma-joined, each would read `[object Object]`\n if (Array.isArray(value) && value.every((item) => ElementDefinition.isPrimitive(item))) return value.join(\",\")\n const text = ElementDefinition.text(value)\n return this.localized.names.values.get(spec.name)?.get(text) ?? text\n }\n\n ////////////////\n // ## Statics\n ////////////////\n\n /**\n * A primitive as attribute / class text; anything else as JSON (never `[object Object]`).\n * - Static: pure, no definition state.\n */\n private static text(value: unknown): string {\n if (typeof value === \"string\") return value\n if (ElementDefinition.isPrimitive(value)) return String(value)\n return JSON.stringify(value)\n }\n\n /** `value` is a string, number or boolean: text as it is, no JSON needed. */\n private static isPrimitive(value: unknown): value is string | number | boolean {\n return typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\"\n }\n}\n\n/** The shared `visible` attribute's canonical name (`SharedVocabulary`). */\nconst VISIBLE = \"visible\"\n\n/** Constructor props for `ElementDefinition`. */\nexport type ElementDefinitionProps = {\n /** Tag to register; default the vocabulary's. Its prefix (`es`) also prefixes events. */\n tag?: string\n /** Translation; default English identity. */\n dictionary?: E.Dictionary\n}\n","import { camelCase } from \"spell/util/string\"\nimport type { E } from \"spell/element\"\n\n/****************\n * ### `RichAttributes`\n * Turns a function or an object given to an attribute of a dashed tag into a listener or a property:\n * what Solid hands our elements for a plain JSX prop.\n * - `<ui-select on-ui-changed={f}>`: a listener for the element's `ui-changed` event\n * - on a translated tag, its own name for that event (`ElementDefinition.event()`), given the tag's `definition`\n * - `<ui-tree-diagram tree={tree}>`, `options={[...]}`: the element's PROPERTY, `el.tree = tree`\n * - Text stays an attribute, as the browser has it.\n *\n * - Why: Solid 2 sets a prop it doesn't know with `setAttribute(name, value)`, the value as it is,\n * and the browser would turn a function or object into text.\n * - So our JSX needs no `prop:` and no `on:` (epic `solid-17`, Q3 C and Q4).\n *\n * - Two places catch these values:\n * - a defined element: its own `setAttribute()` (`DOMElement`)\n * - an element whose tag isn't defined yet (its pack still loading):\n * a page-wide patch on the browser's `setAttribute()`,\n * which HOLDS the values until the element connects as one of ours (`replay()`)\n *\n * - `<ui-root pure>` turns the patch off for the whole page:\n * - the patch looks for it each time it would hold a value,\n * and puts the browser's own `setAttribute()` back the first time it finds it\n * - so a `<ui-root pure>` the app draws itself comes too late for what the patch held before it\n * - With `pure`, a tag of `<ui-root>`'s catalog still keeps them: the root defines it before its family loads\n * (`DOMElement`, \"Defined early\"). Any other tag not defined yet turns them into text, as in plain Solid.\n *\n * - STATIC and instance-free: what it keeps per element is in three `WeakMap`s.\n * - Imports only util's `string` and its own types: `DOMElement` imports it, never the other way round.\n ****************/\nexport class RichAttributes {\n /** Is `value` one we take: a function or an object, `null` aside? Text, numbers and booleans stay attributes. */\n static isRich(value: unknown): boolean {\n return typeof value === \"function\" || (typeof value === \"object\" && value !== null)\n }\n\n /**\n * `element`'s attribute `name` was given `value` (`isRich()`): listen, or set the property.\n * - `on-<event>`: replaces the listener a former value added.\n * - Anything else: the property its vocabulary names (`attributeNamed()`), else `name` camelCased.\n */\n static apply(element: Element, name: string, value: unknown, definition?: E.ElementDefinition) {\n if (name.startsWith(EVENT_PREFIX)) {\n return RichAttributes.listen(element, name, value as EventListenerOrEventListenerObject, definition)\n }\n ;(element as unknown as Record<string, unknown>)[RichAttributes.propertyFor(name, definition)] = value\n ;(propertiesSet.get(element) ?? propertiesSet.set(element, new Set()).get(element)!).add(name)\n }\n\n /**\n * `element`'s attribute `name` was removed: drop the listener a value added, or the property it set.\n * - NEVER throws.\n */\n static clear(element: Element, name: string, definition?: E.ElementDefinition) {\n held.get(element)?.delete(name)\n const listener = listeners.get(element)?.get(name)\n if (listener) {\n element.removeEventListener(listener.type, listener.listener)\n listeners.get(element)!.delete(name)\n }\n if (propertiesSet.get(element)?.delete(name)) {\n ;(element as unknown as Record<string, unknown>)[RichAttributes.propertyFor(name, definition)] = undefined\n }\n }\n\n /**\n * Give `element` again what the page-wide patch held for it before its tag was defined: call as it connects.\n * - Before its component is built, so the component starts with them,\n * as with properties set before the upgrade.\n */\n static replay(element: Element, definition?: E.ElementDefinition) {\n const values = held.get(element)\n if (!values) return\n held.delete(element)\n for (const [name, value] of values) RichAttributes.apply(element, name, value, definition)\n }\n\n /**\n * Does attribute `name` of `element` name a property of its family's own script API,\n * so even TEXT for it goes to the property (`<ui-code content={markup}>`, `<epic-text-box value={text}>`)?\n * - The family's API: a property with a setter on a class between the tag's own and `Base` (`DOMElement`),\n * e.g. `DOMLoadableElement.content`.\n * - Not the tag's own class: its vocabulary's properties are attributes already.\n * - Never a vocabulary attribute, nor anything of `Base`'s or the browser's.\n */\n static isScriptApi(element: Element, name: string, Base: Function, definition?: E.ElementDefinition): boolean {\n if (!definition || definition.attributeNamed(name)) return false\n const property = camelCase(name)\n let prototype = Object.getPrototypeOf(Object.getPrototypeOf(element) as object) as object | null\n while (prototype && prototype !== Base.prototype) {\n if (Object.getOwnPropertyDescriptor(prototype, property)?.set) return true\n prototype = Object.getPrototypeOf(prototype) as object | null\n }\n return false\n }\n\n /**\n * First connect: each attribute in `element`'s markup that names its family's script API (`isScriptApi()`)\n * sets that property, `<ui-code content=\"...\">` as `code.content = \"...\"`.\n */\n static readScriptApiAttributes(element: Element, Base: Function, definition?: E.ElementDefinition) {\n for (const { name, value } of [...element.attributes]) {\n if (RichAttributes.isScriptApi(element, name, Base, definition))\n RichAttributes.apply(element, name, value, definition)\n }\n }\n\n ////////////////\n // ## The page-wide patch\n ////////////////\n\n /**\n * Patch the browser's `setAttribute()` and `removeAttribute()`, once,\n * so an element whose tag isn't defined yet keeps the functions and objects it's given (`held`).\n * - Only a dashed tag, not defined, given a rich value: everything else goes straight to the browser.\n * - SIDE EFFECT, on the whole page: `Element.prototype` changes.\n * - Called as this file loads, in a browser only.\n */\n static installPatch() {\n const Element = globalThis.Element\n if (!Element || patched) return\n const prototype = Element.prototype\n const { setAttribute, removeAttribute } = prototype\n patched = { setAttribute, removeAttribute }\n prototype.setAttribute = function (this: Element, name: string, value: string) {\n if (RichAttributes.isRich(value) && isUndefinedTag(this) && !RichAttributes.isPure()) {\n return void (held.get(this) ?? held.set(this, new Map()).get(this)!).set(name, value)\n }\n setAttribute.call(this, name, value)\n }\n prototype.removeAttribute = function (this: Element, name: string) {\n held.get(this)?.delete(name)\n removeAttribute.call(this, name)\n }\n }\n\n /**\n * Has the page asked for no patch (`<ui-root pure>`)?\n * - SIDE EFFECT: the first time it has, the browser's own calls are put back.\n */\n static isPure(): boolean {\n if (!patched || !globalThis.document?.querySelector(PURE_ROOT)) return false\n Object.assign(globalThis.Element.prototype, patched)\n patched = undefined\n return true\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /** Listen for `name`'s event (`on-ui-changed` => `ui-changed`, localized) with `listener`, replacing a former one. */\n private static listen(\n element: Element,\n name: string,\n listener: EventListenerOrEventListenerObject,\n definition?: E.ElementDefinition\n ) {\n const event = name.slice(EVENT_PREFIX.length)\n const type = definition?.event(event) ?? event\n RichAttributes.clear(element, name, definition)\n element.addEventListener(type, listener)\n ;(listeners.get(element) ?? listeners.set(element, new Map()).get(element)!).set(name, { type, listener })\n }\n\n /** The property attribute `name` sets: its vocabulary's (`attributeNamed()`), else `name` camelCased. */\n private static propertyFor(name: string, definition?: E.ElementDefinition): string {\n return definition?.attributeNamed(name)?.property ?? camelCase(name)\n }\n}\n\n/** Is `element` a dashed tag nobody has defined yet? */\nfunction isUndefinedTag(element: Element): boolean {\n return element.localName.includes(\"-\") && !customElements.get(element.localName)\n}\n\n/** The attribute prefix that makes a listener: `on-ui-changed`. */\nconst EVENT_PREFIX = \"on-\"\n\n/** The page saying \"no patch\": `<ui-root pure>`. */\nconst PURE_ROOT = \"ui-root[pure]\"\n\n/** Values the patch held for elements not defined yet, by attribute name, until `replay()`. */\nconst held = new WeakMap<Element, Map<string, unknown>>()\n\n/** The listeners `on-*` attributes added, by attribute name, so a new value replaces the old one. */\nconst listeners = new WeakMap<Element, Map<string, { type: string; listener: EventListenerOrEventListenerObject }>>()\n\n/** The attribute names whose values went to a property, so removing the attribute clears it. */\nconst propertiesSet = new WeakMap<Element, Set<string>>()\n\n/** The browser's own calls while the patch is in, to put back (`isPure()`). */\nlet patched: Pick<Element, \"setAttribute\" | \"removeAttribute\"> | undefined\n\nRichAttributes.installPatch()\n","/*! Derived from `@solidjs/element` and `component-register`: MIT licence, (c) Ryan Carniato. */\nimport type { E } from \"spell/element\"\n\nimport { RichAttributes } from \"./RichAttributes\"\n\n/**\n * `HTMLElement`, or a stand-in outside a browser, so modules that define DOM elements can be IMPORTED during SSR\n * (the classes are never constructed there).\n * - Module-level, not a static: the `extends` clause below reads it while the class is being defined.\n */\nconst HTMLElementOrShim = (globalThis.HTMLElement ?? class {}) as typeof HTMLElement\n\n/****************\n * ### `DOMElement`\n * The base class of every Spell UI DOM element: the `<ui-button>` in the page, with its attributes,\n * properties and events.\n * As the platform's `<a>` is an `HTMLAnchorElement`, a `<ui-button>` is a `DOMElement`.\n *\n * - Its COMPONENT (a `UIComponent` subclass, `UIButton`) holds the state and draws the shadow DOM:\n * `domElement.component` points at it, `component.domElement` back here.\n * The component is built the first time the element connects, and lives across moves, until `dispose()`d.\n *\n * - This class is the browser's side of a custom element.\n * Names marked \"DOM API\" are the browser's, from `HTMLElement` and the custom-element spec, not ours:\n * - DOM API: `connectedCallback()` (added to a page)\n * - DOM API: `disconnectedCallback()` (removed)\n * - DOM API: `attributeChangedCallback()` (an attribute changed)\n * - DOM API: `static observedAttributes`\n * - DOM API: `attachInternals()`, kept as `internals` (custom states, ARIA defaults, forms)\n * - DOM API: `attachShadow()`, the shadow root the component draws into (`renderRoot`)\n * - DOM API: `static formAssociated` and the four form callbacks, on form controls\n * - Ours:\n * - `attributeValues`: each attribute's normalized value, from its text or a property write\n * - a property per attribute (`button.size = \"large\"`), and writing it back to the attribute (\"reflection\")\n * - properties a page set before the tag was defined, kept (\"the upgrade step\")\n * - the `ready` promise, custom states, the link to the component, swallowing clicks while disabled\n * - Each tag gets its OWN subclass, made by `UIComponent.define()` (`DOMElement.subclassForTag()`):\n * its `tagSetup` says which attributes it has and how to build its component (see \"The tag\", at the end).\n *\n * - A family adds its own script API in a subclass, `DOM<Name>Element` (`DOMNagElement`):\n * `elementSetup.DOMElement` names it.\n * - It names its component's class too, `extends E.DOMElement<UINag>`: so `this.component` is a `UINag`,\n * and its script API calls it with no cast (`this.component?.close() ?? false`).\n * - `C` is a type only:\n * nothing checks at run time that the component really is one (`elementSetup.DOMElement` pairs them).\n * - NOTE: a member named like a property an attribute gets is refused when the tag is defined\n * (one error naming each clash): never add one a vocabulary attribute could be called.\n * - Knows its component only by type: `UIComponent` imports this file, never the other way round.\n * - Began as solid-element's element class, with its fixes 2, 4, 5, 6 and 9 (numbered in its old `UPSTREAM.md`):\n * folded in by epic `spell-element`, P2.\n ****************/\nexport class DOMElement<C extends E.UIComponent<any> = E.UIComponent<any>> extends HTMLElementOrShim {\n ////////////////\n // ## The element\n ////////////////\n\n /** This element's component; `undefined` until it first connects, and again once it broke. */\n component?: C\n\n /** DOM API: `attachInternals()`, attached in the constructor: custom states, ARIA defaults, forms. */\n readonly internals: ElementInternals\n\n /**\n * Each attribute's value, converted (`size: \"large\"`, `disabled: true`), by its canonical camelCase key.\n * - Up to date at once, whether the attribute or the property was written:\n * the component's getters (`this.size`) read it.\n * - The attribute's raw TEXT is not kept here: it stays on the attribute (DOM API `getAttribute()`).\n */\n readonly attributeValues: Record<string, unknown> = {}\n\n /** Resolves once the first render is done with its styles adopted (or failed). */\n readonly ready: Promise<void>\n\n /** What the custom-element callbacks share: see `ConnectedState`. */\n private readonly connectedState: ConnectedState\n\n constructor() {\n super()\n const connectedState: ConnectedState = (this.connectedState = {\n isMounted: false,\n releaseCallbacks: [],\n propertyChangedCallbacks: [],\n resolveReady: () => undefined\n })\n this.ready = new Promise((resolve) => (connectedState.resolveReady = resolve))\n this.internals = this.attachInternals()\n const definition = this.tagSetup?.elementDefinition\n if (definition) {\n for (const attribute of definition.attributes) {\n this.attributeValues[attribute.key] = definition.startingValue(attribute)\n }\n if (this.visibleAttribute) this.attributeValues[VISIBLE] = this.isVisibleInMarkup\n this.captureUpgradeValues(definition)\n } else {\n // a tag defined early, its family not loaded yet: pending until `attach()` (\"Defined early\")\n EARLY.get(this.constructor as DOMElementClass)?.pending.add(this)\n if (DOMElement.isPending(this)) this.setState(PENDING, true)\n }\n // capture on the DOM element itself, so a disabled element swallows clicks before page listeners on it run\n this.addEventListener(\"click\", (event) => this.swallowClickWhileDisabled(event), { capture: true })\n DOMElement.hotReloadHooks?.created(this)\n }\n\n ////////////////\n // ## Connection\n ////////////////\n\n /**\n * DOM API: the element was added to a page.\n * - First time (or after `dispose()`):\n * - re-apply properties set before the upgrade (a real write, so it reflects)\n * - re-apply the functions and objects the page-wide patch held for it (`RichAttributes`)\n * - read the markup's attributes for the family's script API (`<ui-code content=\"...\">`)\n * - build and render the component\n * - hand it what the browser reported before it existed\n * - Every time: the component's `onConnect()`.\n * - NEVER writes default values to attributes: a bare element grows no attributes, as a native one doesn't.\n */\n connectedCallback() {\n // pending: nothing to settle or build until its family loads, and `attach()` connects it again\n if (DOMElement.isPending(this)) return\n this.settleVisible()\n this.restoreUpgradeValues()\n RichAttributes.replay(this, this.tagSetup?.elementDefinition)\n const { connectedState } = this\n if (!connectedState.isMounted) {\n connectedState.isMounted = true\n RichAttributes.readScriptApiAttributes(this, DOMElement, this.tagSetup?.elementDefinition)\n // a bare subclass defined without `subclassForTag()` (a test's stand-in) has no component\n this.tagSetup?.mountComponent(this)\n this.handOverEarlyFormState()\n }\n this.component?.onConnect()\n }\n\n /**\n * DOM API: the element was removed from its page.\n * - The component stays, ready for the next connect:\n * moving an element (re-parenting, sorting a list) keeps its state.\n * - Only `dispose()` ends it.\n */\n disconnectedCallback() {\n this.component?.onDisconnect()\n }\n\n /**\n * Release the component and everything it holds (release callbacks, newest first); idempotent.\n * - A later connect builds a new component.\n */\n dispose() {\n const { connectedState } = this\n if (!connectedState.isMounted) return\n connectedState.isMounted = false\n connectedState.propertyChangedCallbacks.length = 0\n let callback\n while ((callback = connectedState.releaseCallbacks.pop())) callback(this)\n }\n\n /** Run `callback` when the element is released (`dispose()`), newest first. */\n addReleaseCallback(callback: (domElement: DOMElement) => void) {\n this.connectedState.releaseCallbacks.push(callback)\n }\n\n ////////////////\n // ## Attributes and properties\n ////////////////\n\n /**\n * DOM API: attribute `name` changed to `text` (`null`: removed).\n * - Converts and stores it; never writes it back (`primary=\"yes\"` stays `\"yes\"`).\n * - Ignored while the element writes the attribute itself (reflection).\n * - Ignored too for an attribute whose property a page set before the upgrade:\n * that value wins over the attributes the browser replays during it.\n */\n attributeChangedCallback(name: string, _old: string | null, text: string | null) {\n const definition = this.tagSetup?.elementDefinition\n const { connectedState } = this\n if (connectedState.reflecting === name) return\n const visibleAttribute = this.visibleAttribute\n const attribute = definition?.attributeNamed(name)\n // a vocabulary's own `hidden` (none ships one) keeps its meaning\n if (visibleAttribute && name === \"hidden\" && !attribute) return this.onHiddenAttributeChanged(text)\n if (!attribute || connectedState.upgradeValues?.has(attribute.property)) return\n if (attribute === visibleAttribute) return this.onVisibleAttributeChanged(text)\n this.setValue(attribute, definition.convert(attribute, text), \"attribute\")\n }\n\n /**\n * DOM API, widened: sets an attribute, or what a function or object given to one stands for.\n * - A function or object (`on-ui-changed={f}`, `tree={tree}`): a listener or a property (`RichAttributes`)\n * - Text for the family's script API (`content` on `<ui-code>`): the property too\n * - Other text: the attribute, as ever\n * - Why: Solid sets a JSX prop it doesn't know this way, the value as it is,\n * so our JSX needs no `prop:`.\n */\n override setAttribute(name: string, value: unknown) {\n const definition = this.tagSetup?.elementDefinition\n if (RichAttributes.isRich(value) || RichAttributes.isScriptApi(this, name, DOMElement, definition)) {\n return RichAttributes.apply(this, name, value, definition)\n }\n super.setAttribute(name, value as string)\n }\n\n /** DOM API, widened: also drops what a rich value of `name` added (its listener, or its property). */\n override removeAttribute(name: string) {\n RichAttributes.clear(this, name, this.tagSetup?.elementDefinition)\n super.removeAttribute(name)\n }\n\n /** Call `callback` on every attribute value change, equal or not, until `dispose()`. */\n addPropertyChangedCallback(callback: PropertyChangedCallback) {\n this.connectedState.propertyChangedCallbacks.push(callback)\n }\n\n /**\n * Attribute `name`'s value, by its canonical name, whatever a translation calls it:\n * `valueNamed(\"selected\")` of a Spanish `<es-casilla>`, whose property is `seleccionado`.\n * - For code that works on any tag, in any language: `<ui-form>` reading a checkbox.\n * - throws a `TypeError` for a name the tag has no attribute by\n */\n valueNamed(name: string): unknown {\n return this.attributeValues[this.tagSetup.elementDefinition.attribute(name).key]\n }\n\n /**\n * SIDE EFFECT: set attribute `name`'s value by its canonical name, as writing its property does\n * (`setValueNamed(\"selected\", true)`) -- see `valueNamed()`.\n * - throws a `TypeError` for a name the tag has no attribute by\n */\n setValueNamed(name: string, value: unknown): void {\n const { elementDefinition } = this.tagSetup\n const attribute = elementDefinition.attribute(name)\n this.setValue(attribute, elementDefinition.convert(attribute, value), \"property\")\n }\n\n /**\n * Store `value` for `attribute`, write it back to the attribute when it came from a property,\n * then call the change callbacks.\n * - Callbacks run on every write, equal or not: setting the same value again is still a decision.\n */\n private setValue(attribute: E.ResolvedAttribute, value: unknown, source: ValueSource) {\n // `el.visible = x` writes `hidden` instead (\"Shown or hidden\")\n if (source === \"property\" && attribute === this.visibleAttribute) return this.writeVisible(value === true)\n if (source === \"property\" && attribute.reflect) this.reflectAttribute(attribute, value)\n this.storeValue(attribute, value, source)\n }\n\n /** Store `value` for `attribute` (no reflection), then call the change callbacks. */\n private storeValue(attribute: E.ResolvedAttribute, value: unknown, source: ValueSource) {\n const old = this.attributeValues[attribute.key]\n this.attributeValues[attribute.key] = value\n DOMElement.hotReloadHooks?.valueSet(this, attribute.key, source)\n for (const callback of this.connectedState.propertyChangedCallbacks.slice()) {\n callback(attribute.key, value, old, source)\n }\n }\n\n /** Write `value` to `attribute`'s attribute; nothing when the text is already there. */\n private reflectAttribute(attribute: E.ResolvedAttribute, value: unknown) {\n this.writeAttribute(attribute.attribute, this.tagSetup.elementDefinition.attributeText(attribute, value))\n }\n\n /**\n * Write attribute `name` as `text` (`null`: remove it), unheard by `attributeChangedCallback()`;\n * nothing when the text is already there.\n * - Synchronous: the browser calls `attributeChangedCallback()` inside `setAttribute()`, which `reflecting` ignores.\n */\n private writeAttribute(name: string, text: string | null) {\n if (this.getAttribute(name) === text) return\n const { connectedState } = this\n const outer = connectedState.reflecting\n connectedState.reflecting = name\n try {\n if (text === null) this.removeAttribute(name)\n else this.setAttribute(name, text)\n } finally {\n connectedState.reflecting = outer\n }\n }\n\n ////////////////\n // ## Shown or hidden\n //\n // `visible` and the platform's `hidden` are ONE fact with two names, opposites (epic `spell-element`, P12):\n // - `el.visible` is always `!el.hidden`; writing either one, as an attribute or a property, sets the fact\n // - the `hidden` attribute is where it's kept: the browser, CSS and a page before its scripts load all read it\n // - the `visible` attribute is written back only if the page wrote one,\n // so a page that only uses `hidden` never sees a `visible` attribute appear\n // - markup, everything written before the first connect: `hidden` wins over `visible`;\n // neither written: the family decides (`elementSetup.visible`), and one that starts hidden writes `hidden`\n // - after that, the latest write wins\n // - the fact is kept in `attributeValues.visible` too, so the component reads it as any attribute (`isVisible`)\n // and hears of each change; it animates the change (`UIComponent`, \"Shown or hidden\")\n ////////////////\n\n /**\n * The shared `visible` attribute, resolved; `undefined` on a tag without it\n * (a vocabulary that declares its own `visible`, or a bare test class).\n */\n private get visibleAttribute(): E.ResolvedAttribute | undefined {\n const definition = this.tagSetup?.elementDefinition\n return definition?.takesShared(VISIBLE) ? definition.attribute(VISIBLE) : undefined\n }\n\n /** What the markup says right now: `ElementDefinition.visibleInMarkup()`. */\n private get isVisibleInMarkup(): boolean {\n return this.tagSetup.elementDefinition.visibleInMarkup((name) => this.getAttribute(name), this.tagSetup.visible)\n }\n\n /**\n * First connect: settle what the markup says, and write it out.\n * - `hidden` when hidden and not written yet (`<ui-modal>`, `<ui-message visible=\"false\">`);\n * - `visible=\"false\"` where the page wrote a `visible` that `hidden` overruled (`<ui-message hidden visible>`).\n */\n private settleVisible() {\n const { connectedState } = this\n const attribute = this.visibleAttribute\n if (connectedState.isVisibleSettled || !attribute) return\n connectedState.isVisibleSettled = true\n this.writeVisible(this.isVisibleInMarkup, \"attribute\")\n }\n\n /**\n * Show or hide: write `hidden` (and `visible`, where the page wrote one), then store the fact.\n * - `source`: where the change came from; a property write (`el.visible = false`) settles the markup first.\n * - A hidden element stays as the page hid it: `hidden=\"until-found\"` is kept.\n */\n private writeVisible(visible: boolean, source: ValueSource = \"property\") {\n const { connectedState } = this\n const attribute = this.visibleAttribute!\n connectedState.isVisibleSettled = true\n if (visible) this.writeAttribute(\"hidden\", null)\n else if (!this.hasAttribute(\"hidden\")) this.writeAttribute(\"hidden\", \"\")\n // the page's own `visible`, rewritten only when it disagrees (`visible=\"yes\"` stays as written)\n const text = this.getAttribute(attribute.attribute)\n const says = text !== null && this.tagSetup.elementDefinition.convert(attribute, text) === true\n if (text !== null && says !== visible) this.writeAttribute(attribute.attribute, visible ? \"\" : \"false\")\n this.storeValue(attribute, visible, source)\n }\n\n /** `hidden` was written by the page: before the first connect, re-read the markup; after it, the latest write wins. */\n private onHiddenAttributeChanged(text: string | null) {\n if (!this.connectedState.isVisibleSettled)\n return this.storeValue(this.visibleAttribute!, this.isVisibleInMarkup, \"attribute\")\n this.writeVisible(text === null, \"attribute\")\n }\n\n /**\n * `visible` was written by the page: before the first connect, re-read the markup; after it, the latest write wins.\n * - Removed: neither name is written any more, unless `hidden` is,\n * so the family decides again (`<ui-modal visible>` losing `visible` hides).\n */\n private onVisibleAttributeChanged(text: string | null) {\n const attribute = this.visibleAttribute!\n if (!this.connectedState.isVisibleSettled) return this.storeValue(attribute, this.isVisibleInMarkup, \"attribute\")\n if (text === null) return this.writeVisible(this.isVisibleInMarkup, \"attribute\")\n this.writeVisible(this.tagSetup.elementDefinition.convert(attribute, text) === true, \"attribute\")\n }\n\n ////////////////\n // ## The upgrade step\n //\n // A page (or a framework) may set `el.options = [...]` before the tag is defined:\n // the value lands as an OWN property of the plain element,\n // which would hide the class's getter / setter forever.\n ////////////////\n\n /** Constructor step: take own properties set before the upgrade, and store their values at once. */\n private captureUpgradeValues(definition: E.ElementDefinition) {\n const self = this as unknown as Record<string, unknown>\n for (const attribute of definition.attributes) {\n if (!Object.hasOwn(this, attribute.property)) continue\n const value = self[attribute.property]\n delete self[attribute.property]\n ;(this.connectedState.upgradeValues ??= new Map()).set(attribute.property, value)\n this.attributeValues[attribute.key] = definition.convert(attribute, value)\n }\n }\n\n /** First-connect step: set the captured values again, through the real setters (so they reflect). */\n private restoreUpgradeValues() {\n const values = this.connectedState.upgradeValues\n if (!values) return\n this.connectedState.upgradeValues = undefined\n for (const [property, value] of values) (this as unknown as Record<string, unknown>)[property] = value\n }\n\n ////////////////\n // ## Shadow root\n ////////////////\n\n /**\n * Where the component draws: the shadow root, made on first use with the tag's `shadowRootInit`.\n * - A shadow root the server rendered (a declarative `<template shadowrootmode>`) is used as is,\n * and emptied right before the first render (`clearServerContent()`): no hydration, its content is replaced.\n */\n get renderRoot(): ShadowRoot {\n const { connectedState } = this\n if (connectedState.root) return connectedState.root\n const existing = this.shadowRoot ?? this.internals.shadowRoot\n if (existing) {\n connectedState.hasServerContent = existing.childNodes.length > 0\n return (connectedState.root = existing)\n }\n return (connectedState.root = this.attachShadow(this.tagSetup.shadowRootInit))\n }\n\n /** Empty a server-rendered shadow root once, right before the first render. */\n clearServerContent() {\n const root = this.renderRoot\n if (!this.connectedState.hasServerContent) return\n this.connectedState.hasServerContent = false\n root.replaceChildren()\n }\n\n ////////////////\n // ## Forms\n //\n // The browser calls these on a tag defined with DOM API `static formAssociated = true`\n // (`elementSetup.isAFormControl`); on any other tag, never.\n ////////////////\n\n /** DOM API: the element's form owner changed (`null`: none). Calls the component's `onFormAssociated()`. */\n formAssociatedCallback(form: HTMLFormElement | null) {\n if (this.component) this.component.onFormAssociated(form)\n else (this.connectedState.earlyForm ??= {}).form = form\n }\n\n /**\n * DOM API: a `<fieldset disabled>` around the element started or stopped disabling it.\n * Calls the component's `onFormDisabled()`.\n */\n formDisabledCallback(disabled: boolean) {\n if (this.component) this.component.onFormDisabled(disabled)\n else (this.connectedState.earlyForm ??= {}).disabled = disabled\n }\n\n /** DOM API: the form was reset. Calls the component's `onFormReset()`. */\n formResetCallback() {\n this.component?.onFormReset()\n }\n\n /**\n * DOM API: the browser restored a value (back / forward, autofill; `mode`: `\"restore\"` / `\"autocomplete\"`).\n * Calls the component's `onFormStateRestore()`.\n */\n formStateRestoreCallback(state: File | string | FormData | null, mode: string) {\n this.component?.onFormStateRestore(state, mode)\n }\n\n /**\n * After the component was built: hand it what the browser reported before it existed.\n * - Why: the browser calls DOM API `formAssociatedCallback()` as the element is INSERTED,\n * before `connectedCallback()` builds the component.\n */\n private handOverEarlyFormState() {\n const early = this.connectedState.earlyForm\n const { component } = this\n if (!early || !component) return\n this.connectedState.earlyForm = undefined\n if (early.form !== undefined) component.onFormAssociated(early.form)\n if (early.disabled !== undefined) component.onFormDisabled(early.disabled)\n }\n\n ////////////////\n // ## States\n ////////////////\n\n /** Add or remove custom state `name` (DOM API `:state(name)`). */\n setState(name: string, on: boolean) {\n if (on) this.internals.states.add(name)\n else this.internals.states.delete(name)\n }\n\n /**\n * Resolve `ready`, and show `:state(ready)`: called by the component once it has rendered with styles,\n * or by the error path.\n * - Not on a tag whose vocabulary has a `ready` state of its own: `<ui-root>`'s means everything inside is ready.\n */\n markReady() {\n const states = this.tagSetup?.elementDefinition.vocabulary.states\n if (!states?.some(({ name }) => name === READY)) this.setState(READY, true)\n this.connectedState.resolveReady()\n }\n\n ////////////////\n // ## Events\n ////////////////\n\n /** Swallow clicks while the component says the element is disabled. */\n private swallowClickWhileDisabled(event: MouseEvent) {\n if (!this.component?.isDisabled) return\n event.preventDefault()\n event.stopImmediatePropagation()\n }\n\n ////////////////\n // ## The tag\n //\n // Each tag's OWN subclass carries a `tagSetup` (made by `subclassForTag()`, swapped in place by hot reload).\n ////////////////\n\n /**\n * What this tag's class carries (`TagSetup`):\n * its definition, shadow root options, whether it's a form control, how to build its component.\n * - Set on each tag's own class by `subclassForTag()`; `undefined` on `DOMElement` and the family bases.\n */\n declare static tagSetup: TagSetup\n\n /** This element's class's `tagSetup`. */\n private get tagSetup(): TagSetup {\n return (this.constructor as DOMElementClass).tagSetup\n }\n\n /** DOM API: the attributes the browser reports changes of (`attributeChangedCallback()`), read once at definition. */\n static get observedAttributes(): string[] {\n const definition = this.tagSetup?.elementDefinition\n return definition ? DOMElement.observedAttributesFor(definition) : []\n }\n\n /**\n * The attributes a tag of `definition` observes:\n * each of its attributes, and the platform's `hidden` where it's `visible` turned round (\"Shown or hidden\").\n */\n static observedAttributesFor(definition: E.ElementDefinition): string[] {\n const names = definition.attributes.map(({ attribute }) => attribute)\n return definition.takesShared(VISIBLE) && !names.includes(\"hidden\") ? [...names, \"hidden\"] : names\n }\n\n /**\n * Make the class for one tag:\n * a subclass of `Base` carrying `tag`, a property per attribute and DOM API `static formAssociated`.\n * - Not defined yet: `UIComponent.define()` does that.\n * - Throws a `TypeError` naming EVERY attribute property that would hide a member of the element\n * (epic `spell-element`, Q6).\n */\n static subclassForTag(Base: AnyDOMElementClass, tag: TagSetup): DOMElementClass {\n const name = className(tag.elementDefinition.tag)\n const Class = { [name]: class extends Base {} }[name] as unknown as DOMElementClass\n Class.tagSetup = tag\n Object.defineProperty(Class, \"formAssociated\", { value: tag.isAFormControl })\n DOMElement.defineProperties(Class)\n return Class\n }\n\n /**\n * Put a getter / setter per attribute on `Class.prototype`, from `Class.tagSetup`.\n * - Reading one gives the converted value; writing one converts, stores, and writes the attribute back.\n * - On the PROTOTYPE, so `\"size\" in button` is true before the element connects (frameworks check it).\n * - Throws first, changing nothing, when any would hide a member of the element by accident.\n * - A property the vocabulary NAMES itself (`property: \"inputMode\"`, not its attribute name camelCased)\n * takes over the member on purpose: `<ui-input>`'s `inputMode` mirrors the browser's own.\n */\n static defineProperties(Class: DOMElementClass) {\n const { elementDefinition } = Class.tagSetup\n const prototype = Class.prototype\n const clashes = elementDefinition.attributes\n .filter(({ key, property }) => property === key)\n .map(({ property }) => property)\n .filter((property) => property in prototype || INSTANCE_FIELDS.includes(property))\n if (clashes.length) {\n throw new TypeError(\n `<${elementDefinition.tag}>: ${clashes.map((property) => JSON.stringify(property)).join(\", \")} ` +\n `would hide the element's own member${clashes.length === 1 ? \"\" : \"s\"}; ` +\n `rename the attribute's property in its vocabulary (\\`property: \"...\"\\`)`\n )\n }\n for (const attribute of elementDefinition.attributes) {\n Object.defineProperty(prototype, attribute.property, {\n get(this: DOMElement) {\n return this.attributeValues[attribute.key]\n },\n set(this: DOMElement, value: unknown) {\n this.setValue(attribute, this.tagSetup.elementDefinition.convert(attribute, value), \"property\")\n },\n enumerable: true,\n configurable: true\n })\n }\n }\n\n /** Remove the properties `defineProperties()` put on `Class.prototype` (hot reload, before it puts new ones). */\n static removeProperties(Class: DOMElementClass) {\n for (const { property } of Class.tagSetup.elementDefinition.attributes) {\n delete (Class.prototype as unknown as Record<string, unknown>)[property]\n }\n }\n\n ////////////////\n // ## Defined early\n //\n // A root (`<ui-root>`) defines every tag it knows BEFORE that tag's family loads (epic `solid-17`, P7):\n // - so each such element is one of ours from the start: its own `setAttribute()` keeps a function or object\n // given to it (`RichAttributes`), with no page-wide patch\n // - it's PENDING meanwhile: `:state(pending)`, no component, its values held\n // - when its family loads, `UIComponent.define()` ATTACHES it instead of defining it (`attach()`):\n // the family's DOM element class is spliced in, and every pending element is set up as an upgrade would\n // - \"its family has loaded\" is `isAttached()` / `whenAttached()` / `notAttached`, never `:defined`\n // - NOTE: a family DOM class (`DOMNagElement`) has NO instance fields of its own, only `declare`d ones (lazy getters\n // for a default): an element made before its family loads never runs a field definition. Spell UI's catalog\n // test checks every tag.\n ////////////////\n\n /**\n * Define `tag` now, before its family loads: a pending element until `attach()` (see \"Defined early\").\n * - `early`: what the platform fixes as the tag is defined, so it must be right before the family exists:\n * the attributes it observes, and whether it's a form control (from the root's catalog).\n * - Nothing when `tag` is defined already; returns the class otherwise.\n */\n static defineEarly(tag: string, early: EarlyTag): DOMElementClass | undefined {\n if (customElements.get(tag)) return undefined\n const name = className(tag)\n const Class = { [name]: class extends DOMElement {} }[name] as unknown as DOMElementClass\n let resolve = () => {}\n const attached = new Promise<void>((done) => (resolve = done))\n EARLY.set(Class, { ...early, tag, pending: new Set(), isAttached: false, attached, resolve })\n Object.defineProperty(Class, \"formAssociated\", { value: early.isAFormControl })\n Object.defineProperty(Class, \"observedAttributes\", { value: [...early.attributes] })\n customElements.define(tag, Class)\n return Class\n }\n\n /** Is `Class` a tag defined early whose family hasn't loaded? */\n static isEarly(Class: CustomElementConstructor | undefined): Class is DOMElementClass {\n const early = Class && EARLY.get(Class as DOMElementClass)\n return !!early && !early.isAttached\n }\n\n /**\n * Its family has loaded: `Class`, defined early, becomes `Base`'s with `tag`'s setup, and every pending element\n * of it is set up as an upgrade would (its attributes read, properties set early taken, connected again).\n * - `UIComponent.define()` calls it, for a tag already defined early.\n * - throws a `TypeError` when the root's catalog no longer matches the family (form control, observed\n * attributes): the platform fixed those when the tag was defined, so its catalog must be regenerated\n */\n static attach(Class: DOMElementClass, Base: AnyDOMElementClass, tag: TagSetup) {\n const early = EARLY.get(Class)!\n const missing = DOMElement.observedAttributesFor(tag.elementDefinition).filter(\n (attribute) => !early.attributes.includes(attribute)\n )\n if (tag.isAFormControl !== early.isAFormControl || missing.length) {\n throw new TypeError(\n `<${early.tag}>: its root's catalog is stale (${missing.length ? `no ${missing.join(\", \")}` : \"form control\"}); ` +\n \"regenerate it (Spell UI's `yarn gen:root`, a pack's `spell-pack build`)\"\n )\n }\n if (Base !== DOMElement) {\n Object.setPrototypeOf(Class, Base)\n Object.setPrototypeOf(Class.prototype, Base.prototype)\n }\n Class.tagSetup = tag\n DOMElement.defineProperties(Class)\n early.isAttached = true\n for (const element of early.pending) element.attachPending()\n early.pending.clear()\n early.resolve()\n }\n\n /** Is `element` pending: its tag defined early, its family not loaded yet? */\n static isPending(element: Element): boolean {\n return DOMElement.isEarly(element.constructor as CustomElementConstructor)\n }\n\n /** Has `tag`'s family loaded: defined, and not early only? */\n static isAttached(tag: string): boolean {\n const Class = customElements.get(tag)\n return !!Class && !DOMElement.isEarly(Class)\n }\n\n /** Resolves once `tag`'s family has loaded: `customElements.whenDefined()`, waiting out an early definition. */\n static async whenAttached(tag: string): Promise<void> {\n const Class = await customElements.whenDefined(tag)\n await EARLY.get(Class as DOMElementClass)?.attached\n }\n\n /** CSS selector for elements whose family hasn't loaded: not defined at all, or defined early and pending. */\n static readonly notAttached = \":is(:not(:defined), :state(pending))\"\n\n /** `attach()`'s step for one pending element: what its constructor and the upgrade would have done. */\n private attachPending() {\n const definition = this.tagSetup.elementDefinition\n for (const attribute of definition.attributes) {\n this.attributeValues[attribute.key] = definition.startingValue(attribute)\n }\n if (this.visibleAttribute) this.attributeValues[VISIBLE] = this.isVisibleInMarkup\n this.captureUpgradeValues(definition)\n for (const name of DOMElement.observedAttributesFor(definition)) {\n const text = this.getAttribute(name)\n if (text !== null) this.attributeChangedCallback(name, null, text)\n }\n this.setState(PENDING, false)\n if (this.isConnected) this.connectedCallback()\n }\n\n ////////////////\n // ## Hot reload\n ////////////////\n\n /**\n * What every DOM element tells hot reload (`HotDefinitions` installs it): that it was made, and where each\n * attribute value came from.\n * - In `yarn dev`, and on a page that swaps in a rebuilt component pack (Spell UI's `PackHotSwap`, epic\n * `epic-engine` I116); none on any other page, so each call is one property read.\n * - Until I116 every call was under `import.meta.hot`, so a build dropped them: a page's elements were never\n * tracked, and a swapped pack's elements never re-rendered.\n */\n static hotReloadHooks?: DOMElementHotHooks\n}\n\n/** Readable class name for devtools: `ui-button` => `UiButton`. */\nfunction className(tag: string): string {\n return tag.replace(/(^|-)(\\w)/g, (_match, _dash, char: string) => char.toUpperCase()).replace(/\\W/g, \"\")\n}\n\n/**\n * `DOMElement`'s own instance fields: an attribute property of one of these names would be hidden by it.\n * - `in prototype` can't see them (they're made per instance): keep this list in step with the class.\n */\nconst INSTANCE_FIELDS: readonly string[] = [\"internals\", \"attributeValues\", \"component\", \"ready\", \"connectedState\"]\n\n/** The shared `visible` attribute's canonical name and key (`SharedVocabulary`). */\nconst VISIBLE = \"visible\"\n\n/** The state of an element defined early whose family hasn't loaded (\"Defined early\"). */\nconst PENDING = \"pending\"\n\n/** The state of an element ready to go: rendered with its styles (`markReady()`). */\nconst READY = \"ready\"\n\n/** Each class defined early (`defineEarly()`), and its state until its family loads. */\nconst EARLY = new WeakMap<DOMElementClass, EarlyState>()\n\n////////////////\n// ## Types\n////////////////\n\n/** The class `subclassForTag()` makes for one tag. */\nexport type DOMElementClass = AnyDOMElementClass & { new (): DOMElement }\n\n/**\n * `DOMElement`, or a family's subclass of it (`DOMNagElement`):\n * the class a tag's own DOM element class is made from (`elementSetup.DOMElement`, `subclassForTag()`'s `Base`).\n * - Why not plain `typeof DOMElement`: every family's subclass fits this type, and not that one.\n * - `DOMElement<C>` names its component class.\n * - `typeof DOMElement` means \"a class that works for ANY `C`\":\n * `DOMNagElement` works only for `UINag`, so TypeScript refuses it there.\n * - This type says \"for SOME component class\".\n */\nexport type AnyDOMElementClass = typeof DOMElement<E.UIComponent<any>>\n\n/** What one tag's class carries: `subclassForTag()`'s input (hot reload swaps it in place). */\nexport type TagSetup = {\n /** the tag's definition: its attributes, their names and how they convert */\n elementDefinition: E.ElementDefinition\n /** options for its shadow root (DOM API `attachShadow()`): always open; focus delegation and slot assignment vary */\n shadowRootInit: ShadowRootInit\n /** DOM API `static formAssociated`: read once, at definition */\n isAFormControl: boolean\n /** what it shows when the page writes neither `visible` nor `hidden`: `elementSetup.visible` */\n visible: E.StartsVisible\n /** build and render the component; called on the element's first connect (and again after `dispose()`) */\n mountComponent: (domElement: DOMElement) => void\n}\n\n/** What `defineEarly()` needs of a tag before its family loads: what the platform fixes as it's defined. */\nexport type EarlyTag = {\n /** every attribute it observes: its vocabulary's, the shared ones, and `hidden` */\n readonly attributes: readonly string[]\n /** DOM API `static formAssociated`: is it a form control? */\n readonly isAFormControl: boolean\n}\n\n/** A class defined early: its `EarlyTag`, and its pending elements until `attach()`. */\ntype EarlyState = EarlyTag & {\n /** the tag */\n readonly tag: string\n /** its elements made before its family loaded: set up by `attach()` */\n readonly pending: Set<DOMElement>\n /** its family has loaded */\n isAttached: boolean\n /** resolves when it does (`whenAttached()`) */\n readonly attached: Promise<void>\n /** resolves `attached` */\n readonly resolve: () => void\n}\n\n/** A change callback (`addPropertyChangedCallback()`): key, new value, old value, where it came from. */\nexport type PropertyChangedCallback = (key: string, value: unknown, old: unknown, source: ValueSource) => void\n\n/** Where an attribute value came from: its attribute's text, or a property write. */\nexport type ValueSource = \"attribute\" | \"property\"\n\n/** Hot reload's hooks into every DOM element: `HotDefinitions` installs them, in development only. */\nexport type DOMElementHotHooks = {\n /** a DOM element was made */\n created(domElement: DOMElement): void\n /** an attribute value was written */\n valueSet(domElement: DOMElement, key: string, source: ValueSource): void\n}\n\n/**\n * What `DOMElement`'s custom-element callbacks share, kept in ONE private field, `connectedState`:\n * one name an attribute property could clash with, not one per member below.\n */\ntype ConnectedState = {\n /** the component has been built (and not disposed since) */\n isMounted: boolean\n /** `addReleaseCallback()`'s */\n releaseCallbacks: ((domElement: DOMElement) => void)[]\n /** `addPropertyChangedCallback()`'s */\n propertyChangedCallbacks: PropertyChangedCallback[]\n /** resolves `ready` */\n resolveReady: () => void\n /** the attribute being written back right now, whose `attributeChangedCallback()` is ignored */\n reflecting?: string\n /** properties set before the upgrade, by property name, until the first connect */\n upgradeValues?: Map<string, unknown>\n /** the markup's `visible` / `hidden` has been settled (\"Shown or hidden\"): the latest write wins from now on */\n isVisibleSettled?: boolean\n /** the shadow root, once made */\n root?: ShadowRoot\n /** the shadow root came from the server, with content to clear before the first render */\n hasServerContent?: boolean\n /** form state the browser reported before the component existed */\n earlyForm?: { form?: HTMLFormElement | null; disabled?: boolean }\n}\n","import { E } from \"spell/element\"\n\n/****************\n * ### `OwnerContext`\n * Finds the component that OWNS a generic content part, so `<ui-header>` styles itself as a card header,\n * a modal header or an item header by context (`:state(in-card)`), never as `ui-card-header`.\n * - Rules:\n * - the NEAREST owner wins: a header in a card inside a modal is the card's\n * - parts don't own parts: `card > content > header` resolves to the card, mirroring Fomantic's\n * `.ui.card > .content > .header`, with `depth` saying how many custom elements sit between\n * - an optional `barrier` stops the climb, e.g. at a component that doesn't own this part\n * - Climbs the FLAT tree, so slotting and shadow roots don't hide the owner: `assignedSlot`, then\n * `parentElement`, then the shadow root's `host`: `spell/ui/util`'s `flatParentFor()`, the climb\n * `closestAcrossShadow()` uses too (which can't be reused: it matches a selector, and doesn't count or stop).\n * - Call on `connectedCallback` and `slotchange`: moving or re-slotting a part changes its owner.\n * - Library-neutral: plain DOM, no Solid, no registry -- `PartContext` keeps the page-wide one and climbs through\n * this.\n * - STATIC and instance-free on purpose: pure functions of the DOM and the lookup they're given.\n ****************/\nexport class OwnerContext {\n /**\n * Nearest owner of `element`, or `undefined`.\n * - Starts at the parent: an element never owns itself.\n * - `owners` says which tags own this part, see `OwnerLookup`; `PartContext.ownerFor()` passes the page-wide\n * registry's.\n */\n static find(element: Element, owners: E.OwnerLookup, options: E.OwnerFindOptions = {}): E.OwnerMatch | undefined {\n let depth = 0\n for (let current = E.flatParentFor(element); current; current = E.flatParentFor(current)) {\n const tag = current.localName\n const noun = OwnerContext.nounFor(current, owners)\n if (noun) return { owner: current, ownerNoun: noun, depth }\n if (options.barrier?.(current)) return undefined\n if (tag.includes(\"-\")) depth++\n }\n return undefined\n }\n\n /** Custom state an owned part sets: `card` => `in-card`, matched in CSS by `:host(:state(in-card))`. */\n static stateName(ownerNoun: string) {\n return `in-${ownerNoun}`\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n /** Owner noun of `element` (by its tag) per `owners`, or `undefined` if it isn't an owner. */\n private static nounFor(element: Element, owners: E.OwnerLookup): string | undefined {\n const tag = element.localName\n if (owners instanceof Map) return owners.get(tag)\n if (owners instanceof Set) return owners.has(tag) ? OwnerContext.stem(tag) : undefined\n const result = (owners as (tag: string, element: Element) => unknown)(tag, element)\n if (typeof result === \"string\") return result || undefined\n return result ? OwnerContext.stem(tag) : undefined\n }\n\n /** Tag without its prefix: `ui-card` => `card`. */\n private static stem(tag: string) {\n return tag.slice(tag.indexOf(\"-\") + 1)\n }\n}\n","import { onSettled, untrack } from \"solid-js\"\n\nimport { E } from \"spell/element\"\n// Import directly to avoid circular import\nimport { onChange, state } from \"./Reactive\"\n\n/**\n * Same owner element, noun and depth: no state change (`PartContext.owner`'s `equals`).\n * - Above the class: `@state({ equals })` reads it while the class is defined.\n */\nfunction isSameOwner(a: E.OwnerMatch | undefined, b: E.OwnerMatch | undefined) {\n return a?.owner === b?.owner && a?.ownerNoun === b?.ownerNoun && a?.depth === b?.depth\n}\n\n/****************\n * ### `PartContext`\n * The OWNER of one element acting as a generic content part, plus the page-wide registry of who owns what:\n * `<ui-header>` in a card, `<ui-detail>` in a label, `<ui-label>` in a statistic, `<ui-icon>` in `<ui-icons>`.\n * - Resolution is `OwnerContext.find()` over the flat tree,\n * with a `barrier` at every registered NON-part component:\n * a header inside a segment inside a card stays standalone, as Fomantic's child combinators have it.\n * - `isDirect` mode (icons): only the flat-tree parent component counts,\n * skipping its own shadow internals (`.ui.icons > .icon`).\n * - CONDITIONAL owners (`ConditionalOwner`, a part whose component has `isOwnerOf()`):\n * asked during the climb, transparent while they say no --\n * `<ui-item>` owns its content parts in the Items view only.\n * - SIDE EFFECT: keeps `:state(in-<owner>)` on the DOM element in step with `owner` (`onOwnerChanged()`);\n * NEVER the static `in-<owner>` class.\n * - Re-resolves on:\n * - every connect after the first, a microtask late\n * - the component lives across moves, so a part re-parented into another owner hears it\n * through `PartContext.connected()`, from `UIComponent.onConnect()`\n * - a microtask late: a connect may arrive while Solid is drawing, where the signal write would throw\n * - `slotchange` in any `UIComponent`'s shadow root, for the elements entering AND leaving that slot\n * (`UIComponent` calls `PartContext.slotChanged()`), cascading to part descendants\n * - once after the first settle, for owners whose shadow rendered after this part connected\n * - NOTE: no platform event says \"my assigned slot changed\";\n * a FOREIGN component re-slotting a part isn't seen until the part reconnects.\n * - MUST be created under the element's owner (field initializer / constructor): it creates an effect.\n * - Knows `DOMElement` / `UIComponent` by type only:\n * `UIComponent` imports this file (for `define()` and `slotChanged()`).\n ****************/\nexport class PartContext {\n /**\n * Nearest owner, or `undefined` when standalone; tracked.\n * - A re-resolve to the same owner changes nothing.\n */\n @state({ equals: isSameOwner }) accessor owner: E.OwnerMatch | undefined = undefined\n\n /** The element. */\n readonly domElement: E.DOMElement\n\n /** Part noun resolved against `ownsParts`, e.g. `header`. */\n readonly noun: string\n\n /** Only the flat-tree parent component counts (`<ui-icon>` in `<ui-icons>`). */\n private readonly isDirect: boolean\n\n /** Where the climb stops; default `PartContext.isBarrier`. */\n private readonly barrier: (element: Element) => boolean\n\n constructor({ domElement, noun, isDirect = false, barrier = PartContext.isBarrier }: PartContextProps) {\n this.domElement = domElement\n this.noun = noun\n this.isDirect = isDirect\n this.barrier = barrier\n this.owner = this.resolve()\n PartContext.contexts.set(domElement, this)\n E.Reactive.startEffects(this)\n onSettled(() => {\n this.refresh()\n return () => {\n if (PartContext.contexts.get(domElement) === this) PartContext.contexts.delete(domElement)\n }\n })\n }\n\n /**\n * Has the element connected since this context was made?\n * - The first connect is the one it was resolved for.\n */\n private hasConnected = false\n\n /** Owner noun (`card`), or `undefined`; tracked. */\n get ownerNoun(): string | undefined {\n return this.owner?.ownerNoun\n }\n\n /**\n * The owner changed: `:state(in-<owner noun>)` on the DOM element, undone when it changes again.\n * - `writesDOMElement`: a server render sets it too.\n */\n @onChange(\"ownerNoun\", { writesDOMElement: true })\n protected onOwnerChanged(ownerNoun: string | undefined) {\n if (!ownerNoun) return\n const name = E.OwnerContext.stateName(ownerNoun)\n this.domElement.setState(name, true)\n return () => this.domElement.setState(name, false)\n }\n\n /**\n * The owner's COMPONENT (a card's `UICards`, an item's list), or `undefined` when standalone; tracked.\n * - `C` is the caller's word for what the owner is, NOT checked: owners are registered by tag, not class.\n * - A method, not a getter: a getter can't take the type parameter.\n */\n ownerComponent<C extends object = E.UIComponent>(): C | undefined {\n return PartContext.componentFor<C>(this.owner)\n }\n\n /**\n * Resolve again, e.g. after re-slotting.\n * - Cascades to part descendants in the light DOM, which climb through this element.\n * - Writes `owner`: call it from a handler, `onSettled` or a microtask, not a render.\n */\n refresh() {\n this.update()\n for (const element of this.domElement.querySelectorAll(\"*\")) PartContext.contexts.get(element)?.update()\n }\n\n /**\n * Nearest owner, read from the DOM now (untracked), without updating `owner`.\n * - For a `ConditionalOwner` deciding whether it owns: its own `owner` signal may not have landed yet.\n */\n resolve(): E.OwnerMatch | undefined {\n if (!this.isDirect) return PartContext.ownerFor(this.domElement, this.noun, this.barrier)\n const root = this.domElement.getRootNode()\n // `localName`, not `instanceof HTMLSlotElement`: no such global in node (the server render)\n return PartContext.ownerFor(\n this.domElement,\n this.noun,\n (element) => element.localName !== \"slot\" && element.getRootNode() === root\n )\n }\n\n /** Resolve again, this element only. */\n private update() {\n this.owner = this.resolve()\n }\n\n ////////////////\n // ## Registry\n ////////////////\n\n /**\n * Record a defined element:\n * - its owner nouns (from `ownsParts`, under the tag it was defined as)\n * - whether it is a part, which makes it transparent to other parts' climbs\n * - `isConditionalOwner`: its component decides per instance (`ConditionalOwner`).\n * - Called by `UIComponent.register()` for every tag, translated aliases included.\n * - Static: the registry is page-wide, filled before any instance exists.\n */\n static define({ vocabulary, tag, isAPart, isConditionalOwner = false }: E.PartDefinition) {\n PartContext.definedTags.add(tag)\n if (isAPart) PartContext.partTags.add(tag)\n if (isConditionalOwner) PartContext.conditionalTags.add(tag)\n for (const noun of vocabulary.ownsParts ?? []) {\n let owners = PartContext.owners.get(noun)\n if (!owners) PartContext.owners.set(noun, (owners = new Map()))\n owners.set(tag, vocabulary.noun)\n }\n }\n\n /**\n * Nearest owner of `element` as part `noun`, from the page-wide registry, read from the DOM now (untracked).\n * - The climb every `PartContext` makes (barriers, conditional owners), for code without one:\n * it knows every defined owner, translated tags included.\n * - `barrier`: default `isBarrier()`.\n * - Static: needs no instance, only the registry.\n */\n static ownerFor(\n element: Element,\n noun: string,\n barrier: (element: Element) => boolean = PartContext.isBarrier\n ): E.OwnerMatch | undefined {\n const owners = PartContext.owners.get(noun)\n if (!owners?.size) return undefined\n return untrack(() => E.OwnerContext.find(element, PartContext.lookupFor(noun, owners), { barrier }))\n }\n\n /**\n * Component of `match`'s owner element, or `undefined`; `C` unchecked, as `ownerComponent()`'s.\n * - Static: also for a match `resolve()` just read, untracked (`<ui-item>` deciding whether it owns its parts).\n */\n static componentFor<C extends object = E.UIComponent>(match: E.OwnerMatch | undefined): C | undefined {\n return (match?.owner as E.DOMElement | undefined)?.component as C | undefined\n }\n\n /**\n * Does the climb stop at `element`? Yes for a registered component that isn't a part.\n * - Static: a default `barrier`, passed around as a value (`this: void`).\n */\n static isBarrier(this: void, element: Element): boolean {\n return PartContext.definedTags.has(element.localName) && !PartContext.partTags.has(element.localName)\n }\n\n /**\n * A climb that never stops before the root: for owners nesting through any component (`<ui-section>`).\n * - Static: a `barrier` passed around as a value (`this: void`).\n */\n static noBarrier(this: void, _element: Element): boolean {\n return false\n }\n\n /**\n * A slot's assignment changed: re-resolve every element that entered or left it, and their part descendants.\n * - The registry keeps what each slot held before (`lastAssigned`),\n * since leavers aren't in `assignedElements()` any more.\n * - Static: `UIComponent` calls it for any slot in its shadow root, whichever parts it holds.\n */\n static slotChanged(slot: HTMLSlotElement) {\n const now = slot.assignedElements({ flatten: true })\n const before = PartContext.lastAssigned.get(slot) ?? []\n PartContext.lastAssigned.set(slot, now)\n for (const element of new Set([...before, ...now])) {\n const context = PartContext.contexts.get(element)\n if (context) context.refresh()\n else for (const inner of element.querySelectorAll(\"*\")) PartContext.contexts.get(inner)?.refresh()\n }\n }\n\n /**\n * `domElement` connected (`UIComponent.onConnect()`): re-resolve its context, if it has one, a microtask later.\n * - Not on its first connect: the context was resolved for that one.\n * - Static: `UIComponent` calls it for every element, whether it's a part or not.\n */\n static connected(domElement: E.DOMElement) {\n const context = PartContext.contexts.get(domElement)\n if (!context) return\n if (!context.hasConnected) context.hasConnected = true\n else E.afterSolidUpdate(() => context.refresh())\n }\n\n /** Forget every defined tag and live context, for tests. */\n static reset() {\n PartContext.owners.clear()\n PartContext.definedTags.clear()\n PartContext.partTags.clear()\n PartContext.conditionalTags.clear()\n PartContext.contexts = new WeakMap()\n PartContext.lastAssigned = new WeakMap()\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n /**\n * What `OwnerContext.find()` asks about each element of the climb, for part `noun`:\n * - `owners` itself, while no conditional owner is defined\n * - else a function asking a conditional owner whether it owns `noun` now\n */\n private static lookupFor(noun: string, owners: ReadonlyMap<string, string>): E.OwnerLookup {\n if (!PartContext.conditionalTags.size) return owners\n return (tag, element) => {\n const ownerNoun = owners.get(tag)\n if (!ownerNoun || !PartContext.conditionalTags.has(tag)) return ownerNoun\n const component = (element as E.DOMElement).component as Partial<E.ConditionalOwner> | undefined\n return component?.isOwnerOf?.(noun) ? ownerNoun : undefined\n }\n }\n\n ////////////////\n // ## Page-wide registry\n ////////////////\n\n /** Part noun => (tag => owner noun). */\n private static readonly owners = new Map<string, Map<string, string>>()\n\n /** Every tag a `UIComponent` was defined as. */\n private static readonly definedTags = new Set<string>()\n\n /** Tags of elements that resolve an owner as a generic part (transparent to other parts). */\n private static readonly partTags = new Set<string>()\n\n /** Tags of conditional owners (`ConditionalOwner`): owners only while their component says so. */\n private static readonly conditionalTags = new Set<string>()\n\n /**\n * Live context per DOM element, for `slotChanged()` / cascades.\n * - Not `readonly`: a `WeakMap` can't be cleared, so `reset()` replaces it.\n */\n private static contexts = new WeakMap<Element, PartContext>()\n\n /**\n * Last assignment seen per slot, so leavers are refreshed too.\n * - Not `readonly`, as `contexts`.\n */\n private static lastAssigned = new WeakMap<HTMLSlotElement, Element[]>()\n}\n\n/** Constructor props for `PartContext`. */\nexport type PartContextProps = {\n /** The element acting as a part. */\n domElement: E.DOMElement\n /** Its part noun, resolved against `ownsParts`, e.g. `header`. */\n noun: string\n /** Only the flat-tree parent component counts (`<ui-icon>` in `<ui-icons>`). */\n isDirect?: boolean\n /**\n * Where the climb stops, ignored with `isDirect`;\n * default `PartContext.isBarrier` (any registered non-part component).\n * - `<ui-section>` passes `PartContext.noBarrier`: a section inside a segment inside a section is still nested.\n */\n barrier?: (element: Element) => boolean\n}\n","/*! Derived from `@solidjs/element` and `component-register`: MIT licence, (c) Ryan Carniato. */\nimport { DelegatedEvents, getDelegatedRoot, registerDelegatedContainer, unregisterDelegatedRoot } from \"@solidjs/web\"\n\n/****************\n * ### `ShadowEvents`\n * Keeps Solid's event delegation from leaking out of an element's shadow root.\n * - What Solid does: each element's render root is a delegation container.\n * - ONE listener per event type on the shadow root runs the component's `onClick` / `onInput` ... handlers,\n * by walking the event's composed path.\n * - That walk (dom-expressions `eventHandler`) leaves its state ON THE EVENT OBJECT:\n * - `target`: redefined as an own property while walking,\n * and \"restored\" to the value it read on entry -- the INNER node (`<input>`), frozen.\n * - Every listener outside the shadow root that runs later sees it instead of the retargeted host,\n * e.g. a page `input` listener on `<ui-input>` gets `<input>`.\n * - `currentTarget`: an own getter returning wherever the walk stopped (the inner node), for every later listener.\n * - `_$SOLID_EVENT_OWNER` (the \"already walked up to here\" marker): set to the shadow root.\n * - Every OUTER container (a Solid app's root, an enclosing element's shadow root)\n * checks `container.contains(marker)`, which does not cross shadow boundaries, and DROPS the event.\n * - So a Solid app's `<ui-button onClick>`, or any handler above a nested element,\n * never runs for events from inside that element.\n * - What this class does: it wraps the render root's delegated listener (`bridge()`):\n * - after it:\n * - own `target` / `currentTarget` deleted (the platform's retargeting getters are back)\n * - the host's own delegated handler run when the next walker would skip it\n * - the marker moved to the host\n * - before it: when an inner element's root already walked part of the path,\n * Solid resumes right after that part (a one-shot `composedPath()` slice),\n * instead of dropping the event or walking it twice\n * - Cost: one wrapper call per delegated event per render root on its path; no extra listeners.\n * - A `composedPath()` only for nested roots, or when the host itself has a delegated handler.\n * - HACK: reads dom-expressions internals, as of `@solidjs/web` rc.17 (`ShadowEvents.test.tsx` fails when they move):\n * - `registerDelegatedContainer()` returns the container's state (typed `void`):\n * its `handlers` map tells Solid's listener apart from a component's own\n * - `_$SOLID_EVENT_OWNER` (the marker) and `_$$<type>` / `_$$<type>Data` (a node's delegated handler)\n * - STATIC and instance-free: one set of bridged roots per page.\n * - Began as solid-element's fix 10 (numbered in its old `UPSTREAM.md`),\n * moved here as is (epic `spell-element`, Q10).\n ****************/\nexport class ShadowEvents {\n /** Register `root` as a delegation root, as `registerDelegatedRoot` does, with the shadow-safe bridge. */\n static register(root: HTMLElement | ShadowRoot) {\n if (!bridged.has(root)) ShadowEvents.bridge(root)\n const state = (registerDelegatedContainer as (root: Node, owner: Node) => unknown)(root, root) as\n | DelegationState\n | undefined\n if (!state) return\n // `registerDelegatedRoot()` ~== this + the `roots` count, which `getDelegatedRoot()` (portals) looks for\n state.roots = (state.roots ?? 0) + 1\n states.set(root, state)\n }\n\n /** Undo `register()`. */\n static unregister(root: HTMLElement | ShadowRoot) {\n unregisterDelegatedRoot(root)\n }\n\n /**\n * Wrap Solid's delegated listeners on `root`.\n * - Every `addEventListener()` of a function for a type Solid may delegate (`DelegatedEvents`)\n * goes through a wrapper.\n * - At call time, the wrapper recognises Solid's own listener (`states`) and runs `before()` / `after()` around it.\n * - SIDE EFFECT: own `addEventListener` / `removeEventListener` on the root instance.\n * Other listeners (a component's `renderRoot.addEventListener(...)`) pass straight through.\n * - Why not a listener of our own: Solid attaches per event type LAZILY\n * (the first `onPointerMove` anywhere on the page adds one to every container),\n * so nothing of ours could be ordered after it.\n */\n private static bridge(root: HTMLElement | ShadowRoot) {\n bridged.add(root)\n const add = root.addEventListener\n const remove = root.removeEventListener\n // one wrapper per listener, whatever the type (it checks `event.type` when called);\n // weak, so the listeners Solid drops on every re-render go with their wrappers\n const wrappers = new WeakMap<EventListener, EventListener>()\n const shadow = root instanceof ShadowRoot\n Object.defineProperties(root, {\n addEventListener: {\n configurable: true,\n value(type: string, listener: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions) {\n if (typeof listener !== \"function\" || options !== undefined || !DelegatedEvents.has(type)) {\n return add.call(root, type, listener!, options)\n }\n let wrapper = wrappers.get(listener)\n if (!wrapper) wrappers.set(listener, (wrapper = wrap(listener)))\n return add.call(root, type, wrapper)\n }\n },\n removeEventListener: {\n configurable: true,\n value(type: string, listener: EventListenerOrEventListenerObject | null, options?: EventListenerOptions) {\n const wrapper = options === undefined ? wrappers.get(listener as EventListener) : undefined\n return remove.call(root, type, wrapper ?? listener!, options)\n }\n }\n })\n\n /** `listener`, with the bridge around it when it is Solid's. */\n function wrap(listener: EventListener): EventListener {\n return function (this: unknown, event: Event) {\n if (states.get(root)?.handlers.get(event.type) !== listener) return listener.call(this, event)\n if (shadow) ShadowEvents.before(event as Walked, root as ShadowRoot)\n try {\n listener.call(this, event)\n } finally {\n ShadowEvents.after(event as Walked, root)\n }\n }\n }\n }\n\n /**\n * Before Solid walks `root`'s part of the path:\n * when an inner root already walked part of it, resume right after that part.\n * - Solid's own resume can't:\n * - it drops a marker the container doesn't `contains()`:\n * every node inside an inner shadow root, and a slotted host\n * - it resumes at the marker's PARENT when the marker is the target\n * - So: clear the marker (a fresh walk) and hand Solid's single `composedPath()` call the unwalked rest.\n * The override removes itself on that call, so handlers see the real path.\n */\n private static before(event: Walked, root: ShadowRoot) {\n const marker = event[OWNER]\n if (!marker || marker === true) return\n const walked = progress.get(event)\n // ours, unless a plain Solid container walked in between: then its owner is the last walked node\n const last = walked?.marker === marker ? walked.node : marker\n // a container inside this root (a portal target, a nested `render()`): Solid's resume handles it\n if (last !== walked?.node && root.contains(last)) return\n const path = event.composedPath()\n const index = path.indexOf(last)\n if (index < 0) return\n const rest = path.slice(index + 1)\n delete event[OWNER]\n Object.defineProperty(event, \"composedPath\", {\n configurable: true,\n value() {\n ShadowEvents.unwalk(event, \"composedPath\")\n return rest\n }\n })\n }\n\n /**\n * After Solid walked `root`'s part of the path:\n * put the event back the way the platform had it, and hand the walk on at the host.\n * - `delete` removes only OWN properties, so the prototype's retargeting `target` / `currentTarget` return.\n * - The host's own delegated handler (`<ui-button onClick>` from the enclosing Solid code)\n * runs HERE when the next walker is a plain Solid container: that one would resume at the host's PARENT.\n * - An enclosing element's root walks it itself (`before()` resumes at the host).\n * - The marker becomes the host\n * (or, when the host ran here and the event came from slotted light content, the host's parent):\n * a node the enclosing containers DO contain, so they resume instead of dropping.\n */\n private static after(event: Walked, root: HTMLElement | ShadowRoot) {\n ShadowEvents.unwalk(event, \"target\", \"currentTarget\", \"composedPath\")\n if (!(root instanceof ShadowRoot) || event[OWNER] !== root || event.cancelBubble) return\n const host = root.host as unknown as Delegating\n // the platform's `target` here is retargeted to this root's tree: outside it means slotted light content\n const slotted = !root.contains(event.target as Node)\n let last: Node = root\n if (host[`${HANDLER}${event.type}`] !== undefined && !ShadowEvents.bridgeWalksNext(event, root, host)) {\n ShadowEvents.runHandler(event, host)\n last = host\n }\n const marker = last === host && slotted ? (ShadowEvents.parentOf(host) ?? true) : host\n event[OWNER] = marker\n progress.set(event, { node: last, marker })\n }\n\n /** Whether the next container on the path after `host` is another element's render root (not plain Solid). */\n private static bridgeWalksNext(event: Event, root: ShadowRoot, host: Node): boolean {\n const path = event.composedPath()\n const start = path.indexOf(root) + 1\n const next = path.findIndex((node, index) => index > start && bridged.has(node as Node))\n if (next < 0) return false\n const parent = ShadowEvents.parentOf(host)\n const plain = parent ? getDelegatedRoot(parent as HTMLElement) : undefined\n const index = plain ? path.indexOf(plain) : -1\n return index < 0 || next <= index\n }\n\n /** Run `node`'s delegated handler for `event`, as dom-expressions' `handleNode()` does. */\n private static runHandler(event: Walked, node: Delegating) {\n const key = `${HANDLER}${event.type}`\n const handler = node[key] as EventListener | EventListenerObject | undefined\n if (!handler || (node as { disabled?: boolean }).disabled) return\n const data = node[`${key}Data`]\n Object.defineProperty(event, \"target\", { configurable: true, value: node })\n Object.defineProperty(event, \"currentTarget\", { configurable: true, value: node })\n try {\n if (data !== undefined) (handler as unknown as (data: unknown, event: Event) => void).call(node, data, event)\n else if (typeof handler === \"function\") handler.call(node, event)\n else handler.handleEvent(event)\n } finally {\n ShadowEvents.unwalk(event, \"target\", \"currentTarget\")\n }\n }\n\n /** Delete OWN properties `keys` of `event`: the prototype's (the platform's) getters show through again. */\n private static unwalk(event: Event, ...keys: string[]) {\n for (const key of keys) delete (event as unknown as Record<string, unknown>)[key]\n }\n\n /** The node Solid's walk visits after `node`. */\n private static parentOf(node: Node): Node | null {\n return (node as Delegating)._$host ?? node.parentNode ?? (node as { host?: Node }).host ?? null\n }\n}\n\n////////////////\n// ## State\n////////////////\n\n/** dom-expressions' `$$EVENT_OWNER`: the owner (container) whose walk last handled the event. */\nconst OWNER = \"_$SOLID_EVENT_OWNER\"\n\n/** dom-expressions' `EVENT_KEY`: `node._$$click` is a node's delegated `click` handler. */\nconst HANDLER = \"_$$\"\n\n/** Render roots with the bridge installed. */\nconst bridged = new WeakSet<Node>()\n\n/** Each registered root's delegation state (from `registerDelegatedContainer()`). */\nconst states = new WeakMap<Node, DelegationState>()\n\n/**\n * Per event in flight, what the last bridged root did.\n * - `node`: last composed-path node walked (the root, or its host when the bridge ran the host's handler)\n * - `marker`: the marker it left; a different marker later means a plain Solid container walked since\n */\nconst progress = new WeakMap<Event, { node: Node; marker: Node | true }>()\n\n////////////////\n// ## Types\n////////////////\n\n/** dom-expressions' per-container state (the parts used here). */\ntype DelegationState = {\n /** event type => Solid's listener on the container */\n handlers: Map<string, EventListener>\n /** registered as a root (`registerDelegatedRoot`), counted */\n roots?: number\n}\n\n/** An event as Solid's walk leaves it. */\ntype Walked = Event & { [OWNER]?: Node | true; composedPath: () => EventTarget[] }\n\n/** A node that may carry delegated handlers, `_$$<type>` / `_$$<type>Data`, or a `_$host` redirect. */\ntype Delegating = Node & Record<string, unknown> & { _$host?: Node }\n","/*! Derived from `@solidjs/element` and `component-register`: MIT licence, (c) Ryan Carniato. */\nimport {\n Errored,\n Show,\n createEffect,\n createMemo,\n createRenderEffect,\n getOwner,\n runWithOwner,\n untrack,\n type Accessor\n} from \"solid-js\"\nimport { insert, isServer, type JSX } from \"@solidjs/web\"\n\n// Import directly to avoid circular import\nimport { protoMerged } from \"spell/util/decorators\"\nimport { E } from \"spell/element\"\n// Import directly to avoid circular import\nimport { DOMElement, type TagSetup } from \"./DOMElement\"\nimport { controlled, cssState, on, onChange, state, untracked } from \"./Reactive\"\n// a leaf of its own (Solid only), not part of `E`\nimport { ShadowEvents } from \"./ShadowEvents\"\n\n/****************\n * ### `UIComponent`\n * The base class of every component, in every set: Spell UI's, the epics', the app's, the brand's, a space's.\n *\n * Each `<ui-button>`, etc on a page gets ONE instance of its UIComponent's subclass (`UIButton`)\n * which decides what the element shows and how it behaves. This is the base for those subclasses.\n *\n * - **DOMElement**: `component.domElement` (`DOMElement.ts`) is a subclass of the *browser's* `HTMLElement`,\n * and is the object that the browser and all frameworks actually interact with.\n *\n * For the most part this will be the base `DOMElement` class --\n * subclasses of `UIComponent` which need extra functionality in the DOM will have a custom `DOMElement` subclass.\n *\n * The custom element mechanism in the browser \"upgrades\" `<ui-button>`\n * from *its* `HTMLElement` to *our* `DOMElement` automatically when we `define()` a component.\n *\n * `domElement.component` is the link from the DOM back to this class.\n *\n * - **Custom element**:\n * - the DOM element is the browser's side: DOM API `connectedCallback()`, the attributes, the shadow root\n * - this class is Solid's side: it builds the component, renders it inside its own Solid root,\n * and catches what it throws (see \"Mounting\" and \"Errors and fallback\")\n *\n * - **Lifecycle events** reach the component as methods (`onConnect()`, `onFormReset()` ...): see \"Lifecycle\".\n *\n * - **Vocabulary**: `UIButton.en.ts` (named for its language) names EVERYTHING the tag uses\n * (attributes and their values, events, slots, parts, states, texts).\n * Code never writes those names as strings: it reads them from the vocabulary,\n * so a translated tag (`<es-boton>`) runs the same code.\n *\n * - **State**: fields that change over time are declared with a decorator, and read and written like a field:\n * ```ts\n * @state accessor isOpen = false // this.isOpen = true; if (this.isOpen) ...\n * ```\n * A read is always up to date, even right after a write; JSX will update the view as the value changes.\n * The decorators (`@state`, `@controlled`, `@derived`, `@cssState`, `@aria`, `@onChange`,\n * `@whileConnected`, `@watches`, `@on`, `@untracked`) are in `Reactive.ts`.\n *\n * - **Attributes**: every DOM element attribute has a getter/setter on the component,\n * under its name in camelCase: `this.size`, `this.closeIcon`.\n * The value is already converted (`\"true\"` => `true`).\n *\n * A class declares them for TypeScript with one line below it:\n * `export interface UIButton extends E.AttributeValues<typeof buttonVocabulary> {}`.\n *\n * - **Base classes** (this one, `FormComponent`, `LoadableComponent` ...) never use a member name\n * that any vocabulary uses for an attribute, or the member would hide that attribute's getter:\n * - `elementDefinition`, not `definition` (an attribute of `<ui-table>`).\n * `Reactive.test.tsx` checks every vocabulary against them.\n *\n * - **Lifecycle**:\n * 1. The HTML source includes the tag: `UIButton.define()` (see \"Defining the element\")\n * 2. The first time the element is \"connected\" (DOM API `connectedCallback()`), `mount()` builds its component,\n * then calls `onMount()`, which calls `render()` to return content for the shadow root; then `onConnect()`\n * 3. The content shows once the runtime (`UI`) has loaded and the class's style sheets are in,\n * so nothing flashes unstyled -- when the `component.isReady`.\n * 4. Moving the element keeps its component; it ends only with `domElement.dispose()`\n * 5. If anything throws, a form control shows its plain-DOM fallback instead, any other element its children\n * (see \"Errors and fallback\")\n *\n * - Solid 2 has one rule worth knowing here: NEVER change state while Solid is drawing.\n * That means inside `render()`, a getter, or the first function of an effect.\n *\n * Change state in event handlers, `@onChange` methods, or after an `await`.\n * (A decorated member's write won't throw there, but it's late.)\n *\n * - Subclasses fill in *Hooks* and set what's marked \"Class setting:\" with `@proto static`.\n * It's all documented here once, so an override that only fills it in needs no docstring of its own.\n * - Most settings are keys of ONE object, `elementSetup` (style sheets included), set with `@protoMerged static`:\n * a subclass states only the keys it changes (`{ delegatesFocus: false }`).\n ****************/\nexport abstract class UIComponent<V extends E.ComponentVocabulary = E.ComponentVocabulary> {\n ////////////////\n // ## Vocabulary\n ////////////////\n\n /**\n * Every piece of human language the tag uses:\n * its tag, attributes, events, slots, parts, states and texts, from `UI<Name>.en.ts`.\n * - No default: each component sets its own (`@proto static vocabulary = buttonVocabulary`).\n * - Set on the class, not on each element:\n * `define()` needs it before any element exists,\n * and the runtime keeps the same object (Spell UI's `UI.vocabulary`).\n */\n declare vocabulary: V\n\n /**\n * The vocabulary as built for one actual tag, by `define()`: the names this element really uses.\n * - Translated names: a translated tag (`<es-boton>`) gets its own spelling of each attribute and event.\n * - How each attribute's text converts to a value, and how the classes are built.\n * - Its `.vocabulary` is the same object as `vocabulary` above.\n * - Not called `definition`, because `<ui-table>` has an attribute by that name\n * (base classes never use an attribute's name).\n */\n readonly elementDefinition: E.ElementDefinition\n\n /** The `part` attribute value for the vocabulary's part `name` (translated on a translated tag). */\n partForName(name: E.PartName<V>): string {\n return this.elementDefinition.part(name)\n }\n\n /** The slot name for the vocabulary's slot `name` (translated on a translated tag). */\n slotForName(name: E.SlotName<V>): string {\n return this.elementDefinition.slot(name)\n }\n\n /**\n * The text for `key` in the page's language (the runtime's texts: Spell UI's `UI.i18n`), with `params` filled in.\n * - Looked up for THIS component: another component's text under the same key never shows here.\n */\n translationForKey(key: E.TextKey<V>, params?: Record<string, string | number>): string {\n return E.SpellSolid.settings.words.text(key, params, this.vocabulary.tag)\n }\n\n ////////////////\n // ## The DOM element\n ////////////////\n\n /**\n * The DOM element itself, the `<ui-button>` in the page:\n * a `DOMElement`, or the subclass `elementSetup.DOMElement` names.\n * - `domElement.component` points back to this object.\n * - A subclass that uses its DOM element class's own members says which class it is, as a type only:\n * `declare readonly domElement: DOMFormControl` (`FormComponent`).\n */\n readonly domElement: DOMElement\n\n /**\n * Built once per element, the first time the element is connected (`UIComponent.mount()`).\n * - Two arguments in a row, not one object: the server render (`spell/ui/static`) builds components the same way.\n * - It runs while Solid is drawing: don't change state here (see the class docs).\n */\n constructor(domElement: DOMElement, definition: E.ElementDefinition) {\n this.domElement = domElement\n this.elementDefinition = definition\n domElement.component = this\n this.appContext = isServer ? null : UIComponent.appContextFor(domElement)\n this.internalState = { classInput: definition.classInput((name) => this.classValue(name as E.AttributeName<V>)) }\n this.isConnected = isServer || domElement.isConnected\n // the class's constant ARIA, on the server too: short names (`live`) to `internals` properties (`ariaLive`)\n for (const [name, text] of Object.entries(this.elementSetup.aria) as [E.AriaName, string][])\n domElement.internals[E.AriaNames[name]] = text\n // on the server there are no style sheets to wait for: draw at once\n const { runtime } = E.SpellSolid.settings\n this.isReady = isServer || runtime.isLoaded\n if (isServer) return\n this.startListeners()\n if (!this.isReady) void runtime.load().then(() => this.onRuntimeLoaded())\n }\n\n ////////////////\n // ## Lifecycle\n //\n // In the order they're called:\n // 1. the constructor (above), on the element's first connect\n // 2. `onMount()`, right after it, which calls `render()`\n // 3. `onConnect()`: every time the element is added to a page, the first time included\n // 4. `onRuntimeLoaded()`, once, if the runtime (`UI`) wasn't loaded yet: the content shows then\n // 5. form controls only, as the browser reports them:\n // `onFormAssociated()`, `onFormDisabled()`, `onFormReset()`, `onFormStateRestore()`\n // 6. `onDisconnect()`: every time it's removed; the component stays for the next connect\n //\n // - The DOM element calls 3, 5 and 6 as the browser reports each event\n // (DOM API `connectedCallback()`, the form callbacks ...).\n // - Each is a hook: override the ones you need.\n // - The base class's own work is in `onMount()`, `onConnect()`, `onDisconnect()` and `onFormDisabled()`:\n // an override of those calls `super`.\n ////////////////\n\n /**\n * Set the element up and return its content, which `mount()` puts into the shadow root.\n * - Called once, by `mount()`, right after the constructor.\n * - SIDE EFFECTS:\n * - adopts the class's style sheets into the shadow root (if the runtime has loaded),\n * and the element's own `:host` rule (`hostLayout`)\n * - keeps the element's `:state()`s in step with its `@cssState` members, `elementSetup.cssStates`\n * and `cssStates()`; for a state two classes of the chain name, the subclass's member wins\n * - starts the `@onChange` and `@whileConnected` methods, the `@aria` members' effect,\n * and the `@watches` methods' watch\n * - follows `parent`, where the vocabulary declares it (`ParentLink`)\n * - re-adopts the style sheets when `styleSheetNames` changes\n * - Not in the constructor, because a subclass's fields don't exist yet while the base constructor runs.\n * - Hook: an override starts its own effects, then returns `super.onMount()`.\n */\n onMount(): JSX.Element {\n if (!isServer && untrack(() => this.isReady)) this.adoptStyleSheets()\n // a RENDER effect, so a getter that throws shows the element's fallback (a plain effect would only log it)\n const decorated = E.Reactive.cssStatesOf(this, this.elementSetup.cssStates)\n createRenderEffect(\n () => {\n const states: Record<string, boolean | undefined> = { ...this.fontStates, ...this.cssStates() }\n for (const { member, state: name } of decorated) states[name] = !!(this as Record<PropertyKey, unknown>)[member]\n return states\n },\n (states) => {\n for (const [name, isOn] of Object.entries(states)) this.domElement.setState(name, !!isOn)\n }\n )\n E.Reactive.startEffects(this)\n this.followParent()\n this.followHostLayout()\n // the names joined into one string, so the effect can tell \"same names\" from \"new names\"\n const separator = \" \"\n createEffect(\n () => this.styleSheetNames.join(separator),\n (names) => {\n if (untrack(() => this.isReady)) {\n E.SpellSolid.settings.styles.adoptInto(this.domElement.renderRoot, names ? names.split(separator) : [])\n }\n },\n { defer: true }\n )\n const { canRenderUnstyled } = this.elementSetup\n // `untrack`: `<Show>` evaluates its children in a TRACKED computation,\n // so a reactive read in `render()`'s body (outside its JSX) would run it again and rebuild the whole view;\n // it runs ONCE\n return <Show when={canRenderUnstyled || this.isReady}>{untrack(() => this.render())}</Show>\n }\n\n /**\n * Hook: the element was added to a page; the first time right after `onMount()`.\n * - Keeps `isConnected` in step, a microtask later:\n * the element may be connected while the app's Solid is drawing, when state can't change yet.\n * - A part re-checks which element it belongs to (`PartContext`).\n * - It may run while Solid is drawing:\n * defer a state change (`E.afterSolidUpdate()`), or write an `ownedWrite` member.\n */\n onConnect() {\n const { domElement } = this\n E.afterSolidUpdate(() => (this.isConnected = domElement.isConnected))\n E.PartContext.connected(domElement)\n }\n\n /** The runtime has loaded: adopt the style sheets, then show the content. */\n private onRuntimeLoaded() {\n this.adoptStyleSheets()\n this.isReady = true\n }\n\n /** Hook (form controls only): the element's form owner changed (`null`: none); default nothing. */\n onFormAssociated(_form: HTMLFormElement | null) {}\n\n /**\n * Hook (form controls only): a `<fieldset disabled>` around the element started or stopped disabling it.\n * - Keeps `formIsDisabled` in step; a microtask later when it arrives while Solid is drawing.\n */\n onFormDisabled(disabled: boolean) {\n if (getOwner()) E.afterSolidUpdate(() => (this.formIsDisabled = disabled))\n else this.formIsDisabled = disabled\n }\n\n /** Hook (form controls only): the form was reset: restore the starting value; default nothing. */\n onFormReset() {}\n\n /**\n * Hook (form controls only): the browser restored a value (back / forward cache, autofill); default nothing.\n * - `mode`: `\"restore\"` or `\"autocomplete\"`.\n */\n onFormStateRestore(_state: File | string | FormData | null, _mode: string) {}\n\n /** Hook: the element was removed from its page. The component stays, for the next connect. */\n onDisconnect() {\n const { domElement } = this\n E.afterSolidUpdate(() => (this.isConnected = domElement.isConnected))\n }\n\n ////////////////\n // ## Element setup\n ////////////////\n\n /**\n * Class setting: how the class's custom element is set up, as ONE object (`ElementSetup` documents each key):\n * its style sheets, the `:state()`s that mirror an attribute, form control, focus, slots, part, DOM element class,\n * fallback, unstyled first paint, whether it's a root, ARIA,\n * and what the shared `disabled`, `loading`, `visible` and `animation` do for it.\n * - A subclass states only the keys it changes:\n * `@E.protoMerged static elementSetup = { delegatesFocus: false } satisfies Partial<E.ElementSetup>`\n * (`satisfies`, so a misspelt key fails TypeScript).\n * - Each class's object is chained to its base class's (`@protoMerged`):\n * a key it doesn't state is read from the base's,\n * so `CheckControl`'s `{ DOMElement: DOMCheckElement }` keeps the `{ isAFormControl: true }` of `FormComponent`.\n * - Read keys by name (`this.elementSetup.styleSheets`, `Class.prototype.elementSetup` outside an instance):\n * a spread or `Object.keys()` of the whole object sees only its own class's keys.\n * - Key by key: a key a subclass states replaces its base's whole,\n * so a subclass's `styleSheets` replace its base's; spread the base's to add to them\n * (`styleSheets: { ...UISection.prototype.elementSetup.styleSheets, panel: panelCSS }`).\n * - `vocabulary` stays a setting of its own.\n */\n declare elementSetup: E.ElementSetup\n @protoMerged static elementSetup: Partial<E.ElementSetup> = {\n styleSheets: {},\n cssStates: [],\n isAFormControl: false,\n delegatesFocus: true,\n slotAssignment: \"named\",\n isAPart: false,\n DOMElement: DOMElement,\n Fallback: undefined,\n canRenderUnstyled: false,\n root: false,\n aria: {},\n disabled: \"unusable\",\n loading: \"loader\",\n link: \"click\",\n visible: \"shown\",\n // the runtime's (Spell UI's `\"fade\"`): read as an element shows or hides, by then installed\n get animation() {\n return E.SpellSolid.settings.motion.defaultAnimation\n }\n }\n\n ////////////////\n // ## Shared words: link, font, tooltip, label\n //\n // Four more attributes every element takes (`SharedVocabulary`; epic `ui-gaps` P3, Owen's request r1),\n // unless its vocabulary declares its own of that name:\n // - `link` (and `target`): where a click goes (`elementSetup.link`); `:state(linked)`\n // - `font`: how its letters look, several words at once (`font=\"bold italic\"`): `:state(font-bold)` ...;\n // a family (`font=\"serif\"`); a size in pixels, `font=\"14\"`, or with its line height, `font=\"10/20\"`\n // - `tooltip`: the browser's own tooltip, its `title`\n // - `label`: its accessible name, `aria-label`\n ////////////////\n\n /**\n * The shared `link`: where a click on the element goes (`elementSetup.link`).\n * - `undefined` without one, or where the family declares its own `link` (a card's look, until epic `ui-gaps` P4).\n */\n @cssState(\"linked\")\n get sharedLink(): string | undefined {\n return this.sharedText(LINK)\n }\n\n /**\n * The shared `target`: where the element's `link` opens (`_blank`, a window's name).\n * - A family that draws its own `<a>` for `link` gives it this `target`.\n * - `undefined` without one, or where the family declares its own `target`.\n */\n get sharedTarget(): string | undefined {\n return this.sharedText(TARGET)\n }\n\n /**\n * Where the element's own `<a>` goes: its `link` (the family's own attribute, or the shared one),\n * unless the element is disabled (`isMarkedDisabled`).\n * - For a family that draws its own link (`elementSetup.link` is `\"its own\"`, or a `link` of its own):\n * its `<a>`'s `href`, `linkTarget` its `target`.\n * - `undefined` without a `link`, with an empty one (a card's bare `link` is a look), or while disabled:\n * the family draws no `href`, and a disabled link says `aria-disabled` itself.\n */\n get linkTo(): string | undefined {\n const link = E.Reactive.attributeValue(this, LINK)\n return typeof link === \"string\" && link !== \"\" && !this.isMarkedDisabled ? link : undefined\n }\n\n /**\n * Where `linkTo` opens (`_blank`, a window's name): its `target`, the family's own or the shared one.\n * - `undefined` while it links nowhere.\n */\n get linkTarget(): string | undefined {\n if (!this.linkTo) return undefined\n const target = E.Reactive.attributeValue(this, TARGET)\n return typeof target === \"string\" && target !== \"\" ? target : undefined\n }\n\n /**\n * The words of the shared `font` (`bold italic serif`), as `:state(font-<word>)`s: every word its spec lists,\n * on or off; and `:state(font-size)` while it holds a size (`sharedFontSize`).\n * - Empty where the family declares its own `font`.\n */\n get fontStates(): Record<string, boolean> {\n if (!this.elementDefinition.takesShared(FONT)) return {}\n const written = new Set((this.sharedText(FONT) ?? \"\").split(/\\s+/))\n const { values } = this.elementDefinition.attribute(FONT).spec\n const words = Array.isArray(values) ? values : [...written].filter((word) => !FONT_SIZE.test(word))\n return {\n ...Object.fromEntries(words.filter(Boolean).map((word) => [`${FONT}-${word}`, written.has(word)])),\n [FONT_SIZE_STATE]: this.sharedFontSize !== undefined\n }\n }\n\n /**\n * The size the shared `font` says, in pixels: `font=\"14\"` => `\"14\"`, `font=\"bold 10/20\"` => `\"10/20\"`\n * (a 10px font on 20px lines); `undefined` without one.\n * - Text, so `onFontSizeChanged()` runs only when it changes.\n */\n get sharedFontSize(): string | undefined {\n return this.sharedText(FONT)\n ?.split(/\\s+/)\n .find((word) => FONT_SIZE.test(word))\n }\n\n /**\n * The shared `font`'s size changed: the element's `--ui-font-size` (and `--ui-line-height`, with a leading),\n * which every component's sizes are worked out from, and `:state(font-size)` sets as its own font size.\n * - SIDE EFFECT: writes them in the element's `style`; removes them again once `font` has no size.\n */\n @onChange(\"sharedFontSize\", { writesDOMElement: true })\n protected onFontSizeChanged(fontSize: string | undefined) {\n const { style } = this.domElement\n const [, size, leading] = fontSize?.match(FONT_SIZE) ?? []\n if (size) style.setProperty(FONT_SIZE_TOKEN, `${size}px`)\n else if (this.internalState.wroteFontSize) style.removeProperty(FONT_SIZE_TOKEN)\n // the leading as a ratio of the size, as `--ui-line-height` always is (`1.5`)\n if (size && leading) style.setProperty(LINE_HEIGHT_TOKEN, String(Number(leading) / Number(size)))\n else if (this.internalState.wroteFontSize) style.removeProperty(LINE_HEIGHT_TOKEN)\n this.internalState.wroteFontSize = !!size\n }\n\n /** The shared `tooltip`: the browser's own tooltip, written as the element's `title`. */\n get sharedTooltip(): string | undefined {\n return this.sharedText(TOOLTIP)\n }\n\n /** The shared `label`: the element's accessible name (`aria-label`). */\n get sharedLabel(): string | undefined {\n return this.sharedText(LABEL)\n }\n\n /**\n * `tooltip` or `label` changed: the element's `title`, and its accessible name.\n * - `title` only while `tooltip` says, or once it said: a page's own `title` is left alone otherwise.\n * - The accessible name only where `label` is the shared one: a family's own `label` means something else\n * (a field's label, a statistic's), and names it its own way.\n */\n @onChange(\"sharedTooltip\", \"sharedLabel\", { writesDOMElement: true })\n protected onSharedWordsChanged(tooltip: string | undefined, label: string | undefined) {\n const { domElement, internalState } = this\n if (tooltip !== undefined) domElement.setAttribute(\"title\", tooltip)\n else if (internalState.wroteTitle) domElement.removeAttribute(\"title\")\n internalState.wroteTitle = tooltip !== undefined\n if (this.elementDefinition.takesShared(LABEL)) domElement.internals.ariaLabel = label ?? null\n }\n\n /**\n * A click on the element goes to its `link`, where `elementSetup.link` is `\"click\"`.\n * - Not when the click was a control's of its own inside: a button, a link, a field.\n * - Not while it's disabled, nor when someone called `preventDefault()`.\n */\n @on(\"click\")\n protected onSharedLinkClick(event: MouseEvent) {\n const link = this.sharedLink\n if (!link || this.elementSetup.link !== \"click\" || this.isDisabled || event.defaultPrevented) return\n if (E.OwnControls.isClicked(event, { upTo: this.domElement })) return\n this.followLink(link, this.sharedTarget)\n }\n\n /**\n * Hook: go to `link`, in `target` if there is one (`_blank`, a window's name).\n * - SIDE EFFECT: leaves the page, or opens a window.\n * - Tests override it, rather than leave their page.\n */\n protected followLink(link: string, target: string | undefined) {\n if (target && target !== \"_self\") window.open(link, target)\n else window.location.assign(link)\n }\n\n /** A shared attribute's text, where the element takes it and it isn't empty; else `undefined`. */\n private sharedText(name: string): string | undefined {\n if (!this.elementDefinition.takesShared(name)) return undefined\n const value = E.Reactive.attributeValue(this, name)\n return typeof value === \"string\" && value !== \"\" ? value : undefined\n }\n\n ////////////////\n // ## Parent\n //\n // `parent`, where the vocabulary declares it: an element written anywhere on the page joins the container with\n // that id, as if nested there (`ParentLink`). Spell UI's `<ui-tab>`, `<ui-step>` and `<ui-section>` take it.\n ////////////////\n\n /**\n * While connected with a `parent`, join that container; its cleanup stops waiting for it.\n * - Only for a tag whose vocabulary declares `parent`: no effect for any other.\n * - Never on a server, where nothing connects.\n */\n private followParent() {\n const { domElement, elementDefinition } = this\n if (isServer || !elementDefinition.takesAttribute(PARENT)) return\n const parentLink = new E.ParentLink({ domElement, attribute: elementDefinition.localAttribute(PARENT) })\n const joining = createMemo(() =>\n this.isConnected ? (E.Reactive.attributeValue(this, PARENT) as string | undefined) : undefined\n )\n createEffect(joining, (id) => {\n return parentLink.follow(id)\n })\n }\n\n ////////////////\n // ## Its own `:host` rule\n ////////////////\n\n /**\n * Hook: the declarations of the element's own `:host` rule, worked out from its attributes\n * (`gap: var(--ui-space-m); flex-direction: row`); default none.\n * - Written into ONE sheet adopted into its shadow root, never into its `style` attribute: that's the page's.\n * - Tracked: written again whenever what it reads changes.\n * - So a layout tag says only its declarations: Spell UI's `<ui-stack>`, `<ui-cell>`, `<ui-terms>`, `<ui-root>`.\n * - Not on a server: no style sheets there.\n */\n protected get hostLayout(): string | undefined {\n return undefined\n }\n\n /**\n * Keep the sheet of `hostLayout` current, for a class that works one out (it overrides the hook).\n * - The sheet is made on the first declarations, and emptied when there are none.\n * - Spell UI's `UI.styles` keeps it when it adopts the class's own sheets again (a sheet it didn't make).\n */\n private followHostLayout() {\n if (isServer || !UIComponent.overrides(this, \"hostLayout\")) return\n const root = this.domElement.renderRoot\n let sheet: CSSStyleSheet | undefined\n const declarations = createMemo(() => this.hostLayout ?? \"\")\n createEffect(declarations, (text) => {\n if (!text && !sheet) return\n if (!sheet) {\n sheet = new CSSStyleSheet()\n root.adoptedStyleSheets = [...root.adoptedStyleSheets, sheet]\n }\n sheet.replaceSync(text ? `:host { ${text} }` : \"\")\n })\n }\n\n /**\n * Does `component`'s class (below `UIComponent`) define `member` itself, overriding the base's hook?\n * - Static: a question about the class chain, asked once per element as it mounts.\n */\n private static overrides(component: UIComponent, member: string): boolean {\n for (\n let at = Object.getPrototypeOf(component);\n at && at !== UIComponent.prototype;\n at = Object.getPrototypeOf(at)\n ) {\n if (Object.hasOwn(at, member)) return true\n }\n return false\n }\n\n ////////////////\n // ## AppContext\n ////////////////\n\n /**\n * The value an app handed its `ui-*` elements; `null` when none:\n * the `appContext` property of the nearest root around this element (crossing shadow roots):\n * a `<ui-root>`, or any other root (`elementSetup.root`: `<spell-viewer>`).\n * - `<ui-root appContext={value}>` in a Solid app, `root.appContext = value` anywhere else.\n * - Read once, when this object is built.\n * - Why not a Solid context: each element draws in a Solid root of its own, with no parent,\n * so a Solid app's providers don't reach inside `ui-*` tags (epic `spell-element`, Q9).\n * - Spell UI's framework check uses it to prove an app's value reaches inside custom elements\n * (`packages/ui/tools/frameworks/solid/identity.js`).\n */\n readonly appContext: unknown\n\n /** The `appContext` of the nearest root around `domElement` (a translated tag too), else `null`. */\n private static appContextFor(domElement: DOMElement): unknown {\n let node: Node | null = domElement.parentNode\n while (node) {\n const { localName } = node as Element\n if (localName && UIComponent.isRootTag(localName)) return (node as AppContextHolder).appContext ?? null\n // a shadow root (nodeType 11) continues at its host; NEVER read `host` elsewhere (`<a>.host` is a URL part)\n node = node.parentNode ?? (node.nodeType === 11 ? (node as ShadowRoot).host : null)\n }\n return null\n }\n\n /**\n * Is `localName` a root's tag?\n * - One whose class says `elementSetup.root` (`<ui-root>`, a translation of it, `<spell-viewer>`)\n * - or `<ui-root>` before its family has loaded: an app may set its `appContext` that early\n */\n private static isRootTag(localName: string): boolean {\n return localName === ROOT_TAG || UIComponent.rootTags.has(localName)\n }\n\n /** Every defined tag whose class says `elementSetup.root`: `register()` adds them. Page-wide. */\n private static readonly rootTags = new Set<string>()\n\n ////////////////\n // ## Attributes\n //\n // Every vocabulary attribute also has a getter/setter on the component,\n // which may be reformulated to read as English.\n //\n // `<button disabled>` => `isDisabled` = getter/setter pair\n ////////////////\n\n /**\n * The element's attributes exactly as the DOM has them: raw text, `null` when absent.\n * - Use it for attributes NOT in the vocabulary (`attributes[\"aria-label\"]`),\n * or for a vocabulary attribute's raw text (`attributes.value`, to reset a form field).\n * - For vocabulary attributes, prefer their getters (`this.size`): converted and typed.\n * - Pass the English name: on a translated tag it reads that tag's spelling (`valor` for `value`).\n * - Tracked: JSX or an effect that reads `attributes[\"aria-label\"]` runs again when that attribute changes.\n * - Protected: outside code reads the element's own attributes.\n */\n protected get attributes(): Readonly<Record<string, string | null>> {\n const { elementDefinition } = this\n return E.Reactive.attributesOf(this, this.domElement, (name) => elementDefinition.localAttribute(name))\n }\n\n ////////////////\n // ## Reactive members\n ////////////////\n\n /**\n * One ACCESSOR per member, under the same name: `this.$.isOpen` is a function that returns `this.isOpen`.\n * - An accessor is how Solid hands around \"a value that may change\":\n * a function you call to read it.\n * Calling it inside JSX or an effect subscribes to it, so they update when it changes.\n * - Everyday code just reads `this.isOpen`, which is already reactive.\n * - Use `$` only for a Solid API that wants the function itself:\n * `createMemo(this.$.isOpen)`, `<Show when={this.$.isOpen}>`.\n */\n get $(): E.Accessors<this> {\n return E.Reactive.accessorsOf(this)\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /**\n * Hook: what the element shows: the content of its shadow DOM, as JSX.\n * - Runs ONCE.\n * Later changes happen inside the JSX, as the members it reads change; `render()` itself never runs again.\n * - It runs while Solid is drawing, so it must NEVER change state: no `this.isOpen = ...` here.\n */\n abstract render(): JSX.Element\n\n ////////////////\n // ## Readiness\n ////////////////\n\n /**\n * Is the element in the document?\n * - Updated a microtask after it connects or disconnects:\n * that can happen while the app's Solid is drawing, when state can't change yet.\n */\n @state accessor isConnected = false\n\n /**\n * Ready to show: the runtime (`UI`) has loaded, and this element's style sheets are in its shadow root.\n * - The content shows only then (unless `elementSetup.canRenderUnstyled`).\n * - Not the same as a source element's loading (`LoadableComponent.loadStatus`):\n * this is the element itself being styled and drawn.\n */\n @state accessor isReady = false\n\n /** Once ready: resolve `domElement.ready`, a microtask later, after the content has drawn with its styles. */\n @onChange(\"isReady\")\n protected onReadyChanged(isReady: boolean) {\n if (isReady) E.afterSolidUpdate(() => this.domElement.markReady())\n }\n\n ////////////////\n // ## StyleSheets\n //\n // The component's own sheets are a key of its setup, `elementSetup.styleSheets` (`ElementSetup` documents it).\n ////////////////\n\n /**\n * Hook: the names of the `elementSetup.styleSheets` to adopt right now, in order.\n * - Default: all of them.\n * - Override it when the sheets depend on where the element sits:\n * a `<ui-label>` inside a `<ui-statistic>` adds `UIParts.css`.\n * - The shadow root re-adopts when it changes.\n * - The server render reads it too, to scope each sheet to the elements that use it.\n */\n get styleSheetNames(): string[] {\n return Object.keys(this.elementSetup.styleSheets)\n }\n\n /**\n * Register this class's sheets with the runtime (the ones it doesn't have yet),\n * then adopt them into the shadow root.\n */\n @untracked\n private adoptStyleSheets() {\n const { styles } = E.SpellSolid.settings\n styles.registerOnce(this.elementSetup.styleSheets)\n styles.adoptInto(this.domElement.renderRoot, this.styleSheetNames)\n }\n\n ////////////////\n // ## Shared states: disabled, loading\n //\n // Every element takes `disabled` and `loading`, though its vocabulary may not name them\n // (`SharedVocabulary`), and the platform's own `inert`:\n // - `disabled`: `:state(disabled)` always; the rest per family (`elementSetup.disabled`):\n // by default unusable, with everything inside inert\n // - `loading`: `:state(loading)` always; by default a loader over it (`elementSetup.loading`)\n // - `inert` is the platform's, unstyled\n // - `visible`, `hidden` and `animation`: \"Shown or hidden\", below\n ////////////////\n\n /**\n * Is `disabled` set: its attribute, or (a form control) a `<fieldset disabled>` around it?\n * - `:state(disabled)` follows it, whatever disabled means for the family.\n * - Not `isDisabled`: an element whose disabled is only a look (`<ui-icon>`) is marked disabled, yet usable.\n */\n @cssState(\"disabled\")\n get isMarkedDisabled(): boolean {\n return E.Reactive.attributeValue(this, \"disabled\") === true || this.formIsDisabled\n }\n\n /**\n * Hook: is the element unusable right now?\n * - Default: `isMarkedDisabled`, where `elementSetup.disabled` is `\"unusable\"`; never where it's `\"its own\"`.\n * - While it's true, the DOM element swallows clicks (`DOMElement`).\n * - A family whose disabled is unusable ITS own way says so here:\n * the form controls (`FormComponent`), `<ui-button>`, `<ui-step>`, `<ui-item>` ...\n */\n get isDisabled(): boolean {\n return this.elementSetup.disabled === \"unusable\" && this.isMarkedDisabled\n }\n\n /** Can the element be used right now? The opposite of `isDisabled`. */\n get isEnabled(): boolean {\n return !this.isDisabled\n }\n\n /**\n * Is a `<fieldset disabled>` around this element disabling it?\n * - Form controls only (`elementSetup.isAFormControl`).\n */\n @state accessor formIsDisabled = false\n\n /**\n * Is `loading` set?\n * - `:state(loading)` follows it, whatever loading means for the family.\n * - `true` only: `<ui-root loading=\"Fetching…\">` is a message, and its own (`elementSetup.loading`).\n */\n @cssState(\"loading\")\n get isMarkedLoading(): boolean {\n return E.Reactive.attributeValue(this, \"loading\") === true\n }\n\n /**\n * Is the base class drawing its loader over the element (`elementSetup.loading` is `\"loader\"`)?\n * - `:state(busy)`, which `reset.css` draws a spinner for.\n */\n @cssState(\"busy\")\n get showsLoader(): boolean {\n return this.elementSetup.loading === \"loader\" && this.isMarkedLoading\n }\n\n /**\n * Is everything inside the element inert right now, the base class's way?\n * - `:state(dimmed)`, which `reset.css` dims.\n * - Disabled where `elementSetup.disabled` is `\"unusable\"`, or loading where `elementSetup.loading` is `\"loader\"`.\n * - Inert: its shadow content (and so what's slotted into it) can't be clicked, focused or typed in,\n * and leaves the accessibility tree.\n */\n @cssState(\"dimmed\")\n get hasInertContent(): boolean {\n return (this.elementSetup.disabled === \"unusable\" && this.isMarkedDisabled) || this.showsLoader\n }\n\n /**\n * A shared state changed (ONE effect for all of them, as every element has it):\n * - ARIA on the DOM element, its content inert or not,\n * and focus inside moves on to the next focusable element.\n * - ARIA only where the base class owns that state:\n * a family with a disabled or loading of its own sets its own.\n * - Inert from ALL of them at once (`hasInertContent`: disabled the base class's way, or its loader);\n * and it clears only the boxes IT made inert,\n * so a family's own (`<ui-form loading>`'s veil) stays (epic `spell-element`, I10).\n * - On a server: the ARIA only, once.\n */\n @onChange(\"hasInertContent\", \"isDisabled\", \"showsLoader\", \"isReady\", { writesDOMElement: true })\n protected onSharedStatesChanged(\n hasInertContent: boolean,\n isDisabled: boolean,\n showsLoader: boolean,\n isReady: boolean\n ) {\n const { domElement, elementSetup, internalState } = this\n if (elementSetup.disabled === \"unusable\") domElement.internals.ariaDisabled = isDisabled ? \"true\" : null\n if (elementSetup.loading === \"loader\") domElement.internals.ariaBusy = showsLoader ? \"true\" : null\n if (isServer || !isReady) return\n if (!hasInertContent) {\n // never touch the content of an element that was never inert: most never are\n for (const box of internalState.madeInert ?? []) box.inert = false\n internalState.madeInert = undefined\n return\n }\n E.SpellSolid.settings.focus.moveOutOf(domElement)\n const madeInert = (internalState.madeInert ??= [])\n for (const child of domElement.renderRoot.children) {\n const box = child as HTMLElement\n if (box.inert) continue\n box.inert = true\n madeInert.push(box)\n }\n }\n\n ////////////////\n // ## Shown or hidden: visible, hidden, animation\n //\n // `visible` and the platform's `hidden` are ONE fact, opposites;\n // the DOM element keeps the two names in step (`DOMElement`, \"Shown or hidden\"), and this class runs each change:\n // - `isVisible` is the fact, controlled; `elementSetup.visible` what it is when the page writes neither name\n // - a change runs `onVisibleChange()` with `animationToRun`: by default on the shadow root's top-level boxes;\n // a family overrides it to show and hide its own way (a dialog's `showModal()` / `close()`)\n // - while a hide runs, `:state(hiding)` keeps the element on screen (`reset.css`); `:state(hidden)` once it ends\n // - at once before the element first draws, and wherever motion is off (`animation=\"none\"`, reduced motion)\n ////////////////\n\n /**\n * Is the element shown? `el.visible`, which is always `!el.hidden`.\n * - Controlled: `this.isVisible = false` hides it, as `el.visible = false` or `el.hidden = true` do.\n * - A person's action asks first, with an event the page may cancel:\n * `this.requestChange(\"isVisible\", false, () => this.send(\"ui-closing\", { visible: false }))`.\n * - What it is when the page writes neither name: `elementSetup.visible`.\n */\n @controlled(\"visible\")\n accessor isVisible = true\n\n /**\n * Hidden, once its animation has run: `:state(hidden)`.\n * - What hides it is the `hidden` attribute (`reset.css`): this state is for a family's own CSS\n * (`:host(:not(:state(hidden)))`, \"shown or on its way out\").\n */\n @cssState(\"hidden\")\n get isHidden(): boolean {\n return !this.isVisible && !this.isHiding\n }\n\n /**\n * Is a hide running right now? `:state(hiding)`:\n * the `hidden` attribute is already set, and `reset.css` keeps the element on screen until it ends.\n */\n @cssState(\"hiding\")\n @state\n accessor isHiding = false\n\n /**\n * The animation `visible` / `hidden` run right now: the first of these that applies.\n * 1. `\"none\"` when motion is off:\n * - the element's own `animation=\"none\"`\n * - `none` from around it, so an element inside can't turn motion back on:\n * `--ui-motion: none`, which `<ui-root animation=\"none\">`, any element's `animation=\"none\"` or a page's CSS sets\n * - or the person's reduced-motion setting\n * 2. the element's own `animation` (`<ui-modal animation=\"fly down\">`, `el.animation = \"scale\"`)\n * 3. its family's default, `elementSetup.animation`, which is `\"fade\"` unless the family says otherwise\n * - Untracked: read as a change runs, never followed.\n */\n @untracked\n get animationToRun(): E.ElementAnimation {\n const own = E.Reactive.attributeValue(this, \"animation\") as E.ElementAnimation | undefined\n if (own === E.NO_ANIMATION || this.isMotionOff) return E.NO_ANIMATION\n return own ?? this.elementSetup.animation\n }\n\n /**\n * Is the element's own `animation` `none`? `:state(still)`:\n * `reset.css` sets `--ui-motion: none` on it, which everything inside inherits (a translated tag's too).\n */\n @cssState(\"still\")\n get isStill(): boolean {\n return E.Reactive.attributeValue(this, \"animation\") === E.NO_ANIMATION\n }\n\n /**\n * Is motion off around the element: `--ui-motion: none` reaching it, or the person's reduced-motion setting?\n * - Read from the element's computed style:\n * custom properties pass into shadow roots, so every element below sees it.\n */\n private get isMotionOff(): boolean {\n const { motion } = E.SpellSolid.settings\n if (motion.isReduced) return true\n const { domElement } = this\n if (!domElement.isConnected) return false\n return getComputedStyle(domElement).getPropertyValue(motion.property).trim() === E.NO_ANIMATION\n }\n\n /**\n * Hook: show or hide what the element draws, as `visible` changes; resolves once it's done.\n * - `animation`: the one to run (Fomantic's name, `\"fade up\"`), or `\"none\"`: at once.\n * - `\"none\"` when the element first draws, so nothing animates in as a page loads;\n * and wherever motion is off (`animationToRun`).\n * - An attention animation (`shake`) shows and hides at once too.\n * - While a hide runs, the element stays on screen (`:state(hiding)`); it's hidden once the promise settles.\n * - Default: `animation` in or out on the boxes at the top of the shadow root,\n * through the runtime (Spell UI's `UI.transitions`).\n * - Why not the element: most `ui-*` DOM elements are `display: contents`, with no box of their own.\n * - An element whose shadow root is only a `<slot>` shows and hides at once.\n * - Override it to show and hide your own way (a dialog's `showModal()` / `close()`).\n * - Called once the element first draws, then on each change.\n * - A later change may start before this one ends: check `isVisible` before acting late.\n * - MUST NOT throw: a throw is logged, and the change just ends.\n */\n protected async onVisibleChange(visible: boolean, animation: E.ElementAnimation): Promise<void> {\n const { internalState } = this\n // a box the family hides itself (`hidden` on it) is left alone; one an earlier hide animated out comes back\n const animatedOut = internalState.animatedOut ?? []\n const boxes = [...this.domElement.renderRoot.children].filter(\n (child): child is HTMLElement =>\n child.localName !== \"slot\" && (!(child as HTMLElement).hidden || animatedOut.includes(child as HTMLElement))\n )\n internalState.animatedOut = undefined\n const { motion } = E.SpellSolid.settings\n if (animation === E.NO_ANIMATION || motion.isAttention(animation)) {\n if (visible) for (const box of boxes) motion.reveal(box)\n return\n }\n if (!visible) internalState.animatedOut = boxes\n await Promise.all(boxes.map((box) => motion.animate(box, animation, visible)))\n }\n\n /**\n * `visible` changed, or the element first drew: run `onVisibleChange()`.\n * - The first time (once `isReady`) with `\"none\"`; then with `animationToRun`.\n */\n @onChange(\"isVisible\", \"isReady\")\n protected onVisibleOrReadyChanged(isVisible: boolean, isReady: boolean) {\n if (!isReady) return\n const { internalState } = this\n const isFirst = internalState.wasVisible === undefined\n if (!isFirst && internalState.wasVisible === isVisible) return\n internalState.wasVisible = isVisible\n void this.runVisibleChange(isVisible, isFirst ? E.NO_ANIMATION : this.animationToRun)\n }\n\n /**\n * Run `onVisibleChange()`, with `:state(hiding)` on while a hide animates; a later run takes over.\n * - NEVER throws: a hook that throws is logged, and the change ends.\n */\n private async runVisibleChange(visible: boolean, animation: E.ElementAnimation) {\n const { internalState } = this\n const run = (internalState.visibleRun = (internalState.visibleRun ?? 0) + 1)\n this.isHiding = !visible && animation !== E.NO_ANIMATION\n try {\n await this.onVisibleChange(visible, animation)\n } catch (error) {\n E.SpellSolid.settings.warn(\n `<${this.domElement.localName}>.onVisibleChange()`,\n \"failed; the change ends here\",\n error\n )\n }\n if (internalState.visibleRun === run) this.isHiding = false\n }\n\n ////////////////\n // ## Classes\n ////////////////\n\n /**\n * The `class` of the top box in the element's shadow DOM, in Fomantic's class names: `ui small primary button`.\n * - Built from the attributes (through `classValue()`), then `extraClass`, then the noun (`classNoun`).\n */\n get rootClass(): string {\n const { extraClass: extra, classNoun: noun } = this\n return this.elementDefinition.builder.build(this.internalState.classInput, { extra, noun })\n }\n\n /**\n * Hook: classes to add just before the noun; default none.\n * - `UIButton`'s adds `icon` to a button that shows only an icon (`ui primary button` => `ui primary icon button`):\n * ```ts\n * protected get extraClass(): string | undefined {\n * if (!this.hasIcon || this.animated) return undefined\n * return !this.hasText ? UIT.ICON_CLASS : undefined\n * }\n * ```\n * - For a class that follows STATE rather than one attribute;\n * a class that follows an attribute comes from the vocabulary (`classValue()`).\n */\n protected get extraClass(): string | undefined {\n return undefined\n }\n\n /**\n * Hook: the last class word; default the vocabulary's `noun`.\n * - For an element Fomantic draws as ANOTHER noun:\n * `<ui-tab>`'s pane is a segment (`ui bottom attached tab segment`),\n * so `UITab` says `segment` here, and `tab` in `extraClass`.\n */\n protected get classNoun(): string | undefined {\n return undefined\n }\n\n /**\n * Hook: the value used for attribute `name` when building the classes.\n * - Default: the attribute's own value.\n * - Override it when a class must follow state rather than the attribute:\n * a button's `active` class follows `isActive`, which a click can change without touching the attribute.\n */\n protected classValue(name: E.AttributeName<V>): unknown {\n return E.Reactive.attributeValue(this, this.elementDefinition.attribute(name).key)\n }\n\n /**\n * Classes for a SECOND box, from attribute values you choose: e.g. the wrapper of a button with a label beside it.\n * - Keys are the vocabulary's attribute names, type-checked.\n */\n protected wrapperClass(values: Partial<Record<E.AttributeName<V>, unknown>>, extra?: string): string {\n return this.elementDefinition.builder.build(values, { extra })\n }\n\n /**\n * What only this class uses inside (`InternalState`):\n * ONE field, so it adds one name to the component, not many.\n */\n private readonly internalState: InternalState\n\n ////////////////\n // ## CSS states\n ////////////////\n\n /**\n * Hook: `:state()`s for the element worked out in code, when no single member can carry one with `@cssState`.\n * - Default none.\n * - Keys are the vocabulary's state names.\n * - Prefer `@cssState(\"open\")` on the member the state follows.\n * - Not `elementSetup.cssStates`, the list of states that only mirror an attribute: same name, another thing.\n * - If it throws, the element shows its fallback, as when `render()` throws.\n */\n protected cssStates(): Partial<Record<E.StateName<V>, boolean>> {\n return {}\n }\n\n ////////////////\n // ## Controlled state\n //\n // A `@controlled` member follows an attribute that the USER can change too (a dropdown's `open`):\n // the page's value when the page set one, else the element's own.\n ////////////////\n\n /**\n * The user wants to change the `@controlled` accessor named `memberName` to `next`:\n * `this.requestChange(\"isOpen\", true, () => this.send(\"ui-opening\", { open: true }))`.\n * - `memberName`: the name of an accessor ON THIS COMPONENT\n * (`isOpen`, declared `@controlled(\"open\") accessor isOpen`),\n * not the DOM element's property (`open`), which it follows.\n * - First `announce()` sends the event; it returns false if the page cancelled it.\n * - Then `next` is written to the element's property, unless the event was cancelled,\n * or the page set the property itself while handling it (the page's value wins).\n * - Returns true when `next` was applied.\n */\n requestChange<K extends keyof this & string>(memberName: K, next: this[K], announce: () => boolean): boolean {\n return E.Reactive.requestChange(this, memberName, next, announce)\n }\n\n /**\n * Is the `@controlled` accessor named `memberName` (`\"value\"`) reading the PAGE's value right now,\n * rather than the element's own?\n * - A `@controlled` accessor reads its attribute's value when the page gave it one, else its own starting value.\n * Take a dropdown's `value`:\n * - `<ui-dropdown>`, `value` never set: `this.value` is the element's own; `isControlledByPage(\"value\")` is false\n * - `<ui-dropdown value=\"b\">`, or `dropdown.value = \"b\"` from a framework: `this.value` is the page's `\"b\"`; true\n * - So: true while the attribute's value isn't `undefined`.\n * - What it's for: the dropdown, select and search keep the page's starting value, to restore on a form reset.\n */\n isControlledByPage(memberName: keyof this & string): boolean {\n return E.Reactive.isControlledByPage(this, memberName)\n }\n\n ////////////////\n // ## Events\n ////////////////\n\n /**\n * Listen for event `type` on the element (or on `options.target`), for the element's whole life.\n * - The listener is removed when the element is disposed (`domElement.dispose()`),\n * NOT when it's moved or disconnected: the element keeps working after a move.\n * - A method listening from the start is `@E.on(\"command\") onCommand(event)` instead:\n * the constructor adds it through `on()`, and it runs untracked.\n * - Call `on()` itself for a listener added later, or under a condition.\n * - For a listener that should stop sooner, use your own `AbortController`; for one call only, `{ once: true }`.\n */\n protected on<K extends keyof HTMLElementEventMap>(\n type: K,\n listener: (event: HTMLElementEventMap[K]) => void,\n options?: E.OnOptions\n ): void\n protected on(type: string, listener: (event: Event) => void, options?: E.OnOptions): void\n protected on(type: string, listener: (event: Event) => void, { target, ...options }: E.OnOptions = {}) {\n const listeners = (this.internalState.listeners ??= UIComponent.abortedOnDispose(this.domElement))\n ;(target ?? this.domElement).addEventListener(type, listener, { ...options, signal: listeners.signal })\n }\n\n /**\n * An `AbortController` aborted when `domElement` is disposed: `on()`'s, for every listener it adds.\n * - How: the DOM's own way to remove listeners in a group (DOM API `addEventListener(type, listener, { signal })`,\n * in every browser since 2021, nothing to do with Solid).\n * - Each `on()` passes its `signal`; `abort()` removes every listener added with it, so nothing keeps a list.\n */\n private static abortedOnDispose(domElement: DOMElement): AbortController {\n const listeners = new AbortController()\n domElement.addReleaseCallback(() => listeners.abort())\n return listeners\n }\n\n /**\n * Add the class's `@on` methods as listeners, base class first, through `on()`: constructor only, in a browser.\n * - Each looks its method up when the event comes, and runs it inside `untrack()`.\n */\n private startListeners() {\n const self = this as unknown as Record<PropertyKey, (event: Event) => unknown>\n for (const { method, type, options } of E.Reactive.listenersOf(this)) {\n const target = options.target && this.domElement[options.target]\n this.on(type, (event) => untrack(() => self[method]!(event)), { ...options, target })\n }\n }\n\n /** A slot's content changed: the parts in it may belong to another element now (`PartContext`). */\n @on(\"slotchange\", { target: \"renderRoot\" })\n protected onSlotChangeForParts(event: Event) {\n E.PartContext.slotChanged(event.target as HTMLSlotElement)\n }\n\n /**\n * Send the vocabulary's event `name` from the element, with `detail`.\n * - It bubbles, and crosses shadow roots.\n * - It's cancelable when the vocabulary says so; then it returns false if a listener cancelled it.\n * - On a translated tag, the event goes out under that tag's name for it.\n */\n send(name: E.EventName<V>, detail: object): boolean {\n const spec = this.elementDefinition.vocabulary.events.find((event) => event.name === name)\n const event = new CustomEvent(this.elementDefinition.event(name), {\n bubbles: true,\n composed: true,\n cancelable: !!spec?.cancelable,\n detail\n })\n return this.domElement.dispatchEvent(event)\n }\n\n ////////////////\n // ## Mounting\n ////////////////\n\n /**\n * Build `Class`'s component for `domElement` and draw it into its shadow root:\n * what the DOM element's first connect does (`TagSetup.mountComponent`).\n * - In a Solid root of its OWN (`Reactive.ownRoot()`):\n * it lives until `domElement.dispose()`, whatever happens around it.\n * - So a Solid app's context doesn't reach inside (`appContext` does that).\n * - Inside an error boundary (Solid's `<Errored>`), always: see \"Errors and fallback\".\n * - Released with the DOM element: the root is disposed, the shadow root emptied.\n */\n private static mount(\n Class: E.UIComponentClass,\n definition: E.ElementDefinition,\n domElement: DOMElement,\n Fallback: E.FallbackClass | undefined\n ) {\n E.Reactive.ownRoot((dispose) => {\n const root = domElement.renderRoot\n domElement.addReleaseCallback(() => {\n ShadowEvents.unregister(root)\n root.textContent = \"\"\n dispose()\n })\n // `<Errored>` called as a function; `children` is a GETTER, so the component is built inside the boundary\n const view = Errored({\n get children() {\n return untrack(() => new Class(domElement, definition).onMount())\n },\n fallback: (error: Accessor<unknown>) => {\n const cause = error()\n const showsFallback = runWithOwner(null, () => UIComponent.onError(domElement, cause))\n return showsFallback ? UIComponent.renderFallback(domElement, cause, Fallback) : undefined\n }\n })\n domElement.clearServerContent()\n ShadowEvents.register(root)\n insert(root, view)\n })\n }\n\n ////////////////\n // ## Errors and fallback\n //\n // When an element breaks (its constructor, `render()` or an effect throws):\n // - its error boundary (`mount()`) catches the error and calls `onError()`, then `renderFallback()`\n // - the element shows a plain-DOM stand-in (a native `<button>`, `<select>` ...): `elementSetup.Fallback`\n // - the rest of the page keeps working\n //\n // Every element has its own boundary, always:\n // - without one, an error halts Solid for the whole page (`[REACTIVITY_HALTED]`)\n // - a container's boundary can't catch it instead:\n // each element's Solid root has no parent (epic `spell-element`, Q8)\n ////////////////\n\n /**\n * An error escaped this element's constructor, `render()` or an effect.\n * - SIDE EFFECTS:\n * - DOM API `:state(errored)` on the element\n * - logs one `console.error` naming the tag\n * - sends a cancelable `ui-error` event (`{ error }`): an app that cancels it keeps the fallback away\n * - resolves `domElement.ready`, and drops this broken object\n * - Returns whether the element shows its fallback: false when the app cancelled `ui-error`.\n * - Called outside Solid's drawing (`runWithOwner(null)`), so it may change state.\n */\n private static onError(domElement: DOMElement, error: unknown): boolean {\n domElement.setState(E.ERRORED_STATE, true)\n console.error(`<${domElement.localName}> failed:`, error)\n domElement.component = undefined\n domElement.markReady()\n const event = new CustomEvent(E.ERROR_EVENT, { bubbles: true, composed: true, cancelable: true, detail: { error } })\n return domElement.dispatchEvent(event)\n }\n\n /**\n * Show the fallback in the shadow root: `Fallback.render(...)`, or a bare `<slot>` when there's none.\n * - Done a microtask LATER: Solid clears what the broken render had inserted, which would wipe it out;\n * and some fallbacks (the dropdown's) must already be in place to attach their validity messages.\n * - The fallback is disposed with the element.\n * - Called by the error boundary (`mount()`) after this object broke (or was never built).\n */\n private static renderFallback(\n domElement: DOMElement,\n error: unknown,\n Fallback: E.FallbackClass | undefined\n ): undefined {\n E.afterSolidUpdate(() => {\n const root = domElement.renderRoot\n const handle = Fallback\n ? Fallback.render({ domElement, root, error, internals: domElement.internals })\n : (root.replaceChildren(domElement.ownerDocument.createElement(\"slot\")), undefined)\n if (handle) domElement.addReleaseCallback(() => handle.dispose())\n })\n return undefined\n }\n\n ////////////////\n // ## Defining the element\n //\n // These are called on the component CLASS, before any element exists:\n // - `define()`: what a component's `index.ts` calls (`UIButton.define()`),\n // and what an app calls for a translated tag (`UIButton.define(\"es-boton\", es)`)\n // - `register()`: the records `define()` starts with; the server render calls it alone\n // - `tagSetupFor()`: what the tag's DOM element class carries; hot reload swaps it in (`HotDefinitions`)\n ////////////////\n\n /** What the whole page has defined, like `customElements`: ONE record, for every component class. */\n static readonly registry: E.ComponentRegistry = {\n definitions: new Map(),\n vocabularies: new WeakSet()\n }\n\n /**\n * Make this component a custom element, under its vocabulary's tag or a translated one.\n * - `UIButton.define(\"es-boton\", es)` registers `<es-boton primario color=\"rojo\">`:\n * its translated attribute, property and event names all reach the same component.\n * - Does nothing for a tag already defined; a tag a root defined EARLY is attached instead (`DOMElement.attach()`).\n * - Returns the element class.\n * - Returns `undefined` while the page's runtime hasn't installed its settings yet (`SpellSolid`):\n * then the tag is defined as they're installed.\n * - throws a `TypeError` on a name in `elementSetup.cssStates` the tag has no attribute or member for (a typo)\n * - throws a `TypeError` when a tag defined early no longer matches its root's catalog (`DOMElement.attach()`)\n */\n static define(\n this: E.UIComponentClass,\n tag?: string,\n dictionary?: E.Dictionary\n ): CustomElementConstructor | undefined {\n if (!E.SpellSolid.isInstalled) {\n E.SpellSolid.whenInstalled(() => void UIComponent.define.call(this, tag, dictionary))\n return undefined\n }\n const definition = new E.ElementDefinition(this.prototype.vocabulary, { tag, dictionary })\n const existing = customElements.get(definition.tag)\n // defined early by a root, its family loading now: attach it (\"Defined early\", `DOMElement`)\n const isEarly = DOMElement.isEarly(existing)\n if (existing && !isEarly) return existing\n // record it, make the tag's own DOM element class on `elementSetup.DOMElement`, and define it (DOM API)\n UIComponent.register.call(this, definition)\n // after `register()`, which puts each attribute's getter on the prototype\n const strays = this.prototype.elementSetup.cssStates.filter((state) => !(E.camelCase(state) in this.prototype))\n if (strays.length) {\n throw new TypeError(\n `UIComponent.define(): <${definition.tag}>'s elementSetup.cssStates names ${strays.join(\", \")}, ` +\n \"which it has no attribute or member for; fix the name, or give the class that member\"\n )\n }\n const tagSetup = UIComponent.tagSetupFor(this, definition)\n if (isEarly) {\n DOMElement.attach(existing, this.prototype.elementSetup.DOMElement, tagSetup)\n return existing\n }\n const Class = DOMElement.subclassForTag(this.prototype.elementSetup.DOMElement, tagSetup)\n customElements.define(definition.tag, Class)\n return Class\n }\n\n /**\n * What the DOM element class of `definition`'s tag carries, for component class `Class`:\n * its definition, shadow root options, whether it's a form control, and how to build its component.\n */\n static tagSetupFor(Class: E.UIComponentClass, definition: E.ElementDefinition): TagSetup {\n const { delegatesFocus, slotAssignment, isAFormControl, Fallback, visible } = Class.prototype.elementSetup\n return {\n elementDefinition: definition,\n shadowRootInit: { mode: \"open\", delegatesFocus, slotAssignment },\n isAFormControl,\n visible,\n mountComponent: (domElement) => UIComponent.mount(Class, definition, domElement, Fallback)\n }\n }\n\n /**\n * Record `definition` for the page, WITHOUT defining a custom element.\n * - Adds it to `registry.definitions` and to the parts registry (`PartContext.define()`),\n * hands its vocabulary and English texts to the runtime,\n * and puts a getter for each attribute on the class (`Reactive.installAttributeGetters()`).\n * - `define()` starts with it; the server render calls it alone, since node has no `customElements`.\n */\n static register(this: E.UIComponentClass, definition: E.ElementDefinition) {\n const { vocabulary } = this.prototype\n UIComponent.registry.definitions.set(definition.tag, definition)\n if (this.prototype.elementSetup.root) UIComponent.rootTags.add(definition.tag)\n E.PartContext.define({\n vocabulary,\n tag: definition.tag,\n isAPart: this.prototype.elementSetup.isAPart,\n isConditionalOwner: \"isOwnerOf\" in this.prototype\n })\n // Hand the vocabulary to the runtime (Spell UI's `UI.vocabulary`), and its English texts to its `UI.i18n`:\n // - when the class is DEFINED, not when its first element connects,\n // so translations can find them before any element exists\n // - the texts are English DEFAULTS for this component only:\n // any other text registered for the key (an app's own English, a translation) wins,\n // and two components may use the same key (`label`) for different words\n // - once per vocabulary; the runtime is loaded first if it hasn't loaded yet\n // - on the server, never loads the runtime (that needs the browser's `CSSStyleSheet`):\n // it registers only with the one the server render installed (`ServerRuntime`)\n const { runtime, words } = E.SpellSolid.settings\n const isRuntimeLoaded = runtime.isLoaded\n // so the runtime can define this class under the page's languages too (Spell UI's `defineComponents()`)\n const define: E.ComponentDefiner = (tag, dictionary) => UIComponent.define.call(this, tag, dictionary)\n if (!UIComponent.registry.vocabularies.has(vocabulary) && (isRuntimeLoaded || !isServer)) {\n UIComponent.registry.vocabularies.add(vocabulary)\n if (isRuntimeLoaded) handOver()\n else void runtime.load().then(handOver)\n }\n E.Reactive.installAttributeGetters(\n this.prototype,\n definition.attributes.map(({ key, spec }) => ({ key, name: spec.name }))\n )\n\n /** Hand the vocabulary and its English texts to the runtime. */\n function handOver() {\n // on the server, editing a vocabulary makes a new object for the same tag: replace the old one\n words.registerVocabulary(vocabulary, isServer ? \"replace\" : \"register\", define)\n const texts: Record<string, string> = {}\n for (const { key, text } of vocabulary.texts) texts[key] = text\n words.registerTexts(texts, vocabulary.tag)\n }\n }\n\n ////////////////\n // ## Reflection\n ////////////////\n\n /**\n * This component's whole vocabulary, for code that wants to look at it: `UIButton.describe().topics`.\n * - Tag, attributes (kinds, values, defaults), events, slots, parts, states, texts, descriptions, `topics`, `aka`.\n * - The same object the element itself reads.\n * - Every tag's summary at once:\n * Spell UI's `ComponentDefinitions` (`packages/ui/components/ComponentDefinitions.ts`).\n */\n static describe<T extends { prototype: { vocabulary: E.ComponentVocabulary } }>(\n this: T\n ): T[\"prototype\"][\"vocabulary\"] {\n return this.prototype.vocabulary\n }\n}\n\n/** An element holding an app's value for the `ui-*` elements inside it: a root (`UIComponent.appContext`). */\ntype AppContextHolder = Element & { appContext?: unknown }\n\n/** `<ui-root>`'s tag: a root even before its family loads (`UIComponent.isRootTag()`). */\nconst ROOT_TAG = \"ui-root\"\n\n/** The shared attributes' canonical names (\"Shared words\"). */\nconst LINK = \"link\"\nconst TARGET = \"target\"\nconst FONT = \"font\"\n/**\n * A size in the shared `font`, in pixels: `14`, or with its leading, `10/20` (a 10px font on 20px lines).\n * - Groups: the size, then the line height.\n */\nconst FONT_SIZE = /^(\\d+(?:\\.\\d+)?)(?:\\/(\\d+(?:\\.\\d+)?))?$/\n/** The state a `font` with a size sets: `reset.css` makes it the element's own font size. */\nconst FONT_SIZE_STATE = \"font-size\"\n/** The tokens a size in `font` writes: every set's components work their sizes out from them (Spell UI's). */\nconst FONT_SIZE_TOKEN = \"--ui-font-size\"\nconst LINE_HEIGHT_TOKEN = \"--ui-line-height\"\nconst TOOLTIP = \"tooltip\"\nconst LABEL = \"label\"\n\n/** The attribute naming the container an element joins (\"Parent\"). */\nconst PARENT = \"parent\"\n\n/** `UIComponent.internalState`: what only the base class uses inside. */\ntype InternalState = {\n /**\n * what `rootClass` builds from:\n * one getter per attribute, each calling `classValue()` (`ElementDefinition.classInput()`)\n */\n readonly classInput: E.ClassInput\n /** aborted when the element is disposed, removing every listener `on()` added; made by the first `on()` */\n listeners?: AbortController\n /** the boxes the shared states made inert (disabled or loading), the only ones they clear again */\n madeInert?: HTMLElement[]\n /** the shared `tooltip` wrote the element's `title`, so a later empty one removes it again */\n wroteTitle?: boolean\n /** the shared `font`'s size wrote the element's `--ui-font-size`, so a later one without removes it again */\n wroteFontSize?: boolean\n /** `isVisible` as `onVisibleChange()` last ran with it; `undefined` before the element first drew */\n wasVisible?: boolean\n /** counts `onVisibleChange()` runs, so only the latest ends the hiding */\n visibleRun?: number\n /** the boxes the default `onVisibleChange()` last animated out (which `UI.transitions` left `hidden`) */\n animatedOut?: HTMLElement[]\n}\n","import { onSettled } from \"solid-js\"\n\nimport { E } from \"spell/element\"\n// Import directly to avoid circular import\nimport { state } from \"./Reactive\"\n\n/**\n * Same slot names: a rescan finding them again changes nothing (`SlotContent.filledSlots`'s `equals`).\n * - Above the class: `@state({ equals })` reads it while the class is defined.\n */\nfunction isSameSet(a: ReadonlySet<string>, b: ReadonlySet<string>): boolean {\n return a.size === b.size && [...a].every((name) => b.has(name))\n}\n\n/****************\n * ### `SlotContent`\n * Which of a DOM element's slots have light-DOM content -- e.g. an icon-only button needs to know that its default slot\n * is empty, and shorthand attributes yield to slotted content.\n * - Watches the DOM element's children (and their `slot` attributes / text) with a `MutationObserver` rather than\n * `slotchange`, so the answer exists before anything renders and doesn't depend on a `<slot>` being present.\n * - Default slot: child elements without `slot`, or non-blank text. Named slot: child elements with that `slot`.\n * - MUST be created under the component's owner; the observer is disconnected when that owner is disposed.\n * - Takes any `HTMLElement`: uses no element-core class, only `solid-js`, `@state` and `E.NodeType`.\n ****************/\nexport class SlotContent {\n /** Names of the slots with content; `\"\"` is the default slot. Tracked. */\n @state({ equals: isSameSet }) accessor filledSlots: ReadonlySet<string> = new Set<string>()\n\n /** The DOM element. */\n private readonly domElement: HTMLElement\n\n constructor(domElement: HTMLElement) {\n this.domElement = domElement\n this.filledSlots = this.scan()\n onSettled(() => {\n const observer = new MutationObserver(() => (this.filledSlots = this.scan()))\n observer.observe(domElement, { childList: true, characterData: true, subtree: true, attributeFilter: [\"slot\"] })\n this.filledSlots = this.scan()\n return () => observer.disconnect()\n })\n }\n\n /** Does slot `name` have content? Tracked. */\n hasContent(name: string): boolean {\n return this.filledSlots.has(name)\n }\n\n /**\n * Slot names with content, read from the DOM now.\n * - No `Element` / `Node` globals: the server render scans linkedom elements in node (`spell/ui/static`).\n */\n private scan(): Set<string> {\n const names = new Set<string>()\n for (const node of this.domElement.childNodes) {\n if (node.nodeType === E.NodeType.element) names.add((node as Element).getAttribute(\"slot\") ?? \"\")\n else if (node.nodeType === E.NodeType.text && node.textContent?.trim()) names.add(\"\")\n }\n return names\n }\n}\n","import { untrack } from \"solid-js\"\n\nimport type { E } from \"spell/element\"\n// Import directly to avoid circular import: the decorator runs as the class is defined\nimport { Reactive, state } from \"./Reactive\"\n\n/****************\n * ### `Disclosure`\n * ONE open / closed state, for anything that shows and hides a box:\n * a fold, a section, a popover, an overlay (epic `coherence` P8).\n * - A component holds one as a field, handed what differs:\n * ```ts\n * readonly disclosure = new E.Disclosure({ component: this, member: \"isOpen\" })\n * ```\n * - What it does, the same everywhere:\n * - the open state: `isOpen`, read from where the component keeps it (below)\n * - a guarded request to open or close (`request()`, `toggle()`):\n * the component's `ui-opening` / `ui-closing` first, which a listener may cancel, then the change\n * - the after-event, `ui-opened` / `ui-closed` (`sendAfter()`), where the vocabulary has one\n * - the trigger's `aria-expanded` (`ariaExpanded`)\n * - the box's `hidden=\"until-found\"` while closed (`hidden`),\n * and find-in-page opening it (`revealOnMatch`, the box's ref: the browser's `beforematch`)\n * - Where the state lives, the first of these that's given:\n * 1. `member`: a member of the component, `@controlled` (`isOpen`, from `open`) or `@state`;\n * a `@controlled` one changes through `requestChange()`, so the page's own value wins.\n * `memberMeans: \"closed\"` for one that's true while closed (a section's `isCollapsed`, from `collapsed`).\n * 2. `kept`: outside it, read and written through two functions (an element's own `open` attribute)\n * 3. its own, starting as `initial()` says and following it until a request changes it\n * - Each component keeps its own public names: the Disclosure only sends the events its vocabulary declares,\n * with the detail it's handed (`detail()`).\n * No component, no events: a fold only its reader opens.\n * - It knows nothing of what opening shows: a popover, an animation, focus going back\n * are the component's (`onChange()`), or Spell UI's popover panel's on top of it.\n ****************/\nexport class Disclosure {\n constructor(private readonly setup: DisclosureSetup = {}) {}\n\n ////////////////\n // ## Open or closed\n ////////////////\n\n /**\n * Is it open? Tracked.\n * - `setup.isOpen()` when given: a section that can't fold is always open.\n */\n get isOpen(): boolean {\n const { setup } = this\n if (setup.isOpen) return setup.isOpen()\n return this.storedOpen\n }\n\n /** Where the state lives: the member, `kept`, or its own (`toggled`, else `initial()`). */\n private get storedOpen(): boolean {\n const { component, member, memberMeans, kept, initial } = this.setup\n if (component && member) {\n const value = !!(component as unknown as Record<string, unknown>)[member]\n return memberMeans === \"closed\" ? !value : value\n }\n if (kept) return kept.isOpen()\n return this.toggled ?? initial?.() ?? false\n }\n\n /** Its own state, once a request changed it; `undefined` until then (`initial()` stands). */\n @state private accessor toggled: boolean | undefined = undefined\n\n /**\n * Open or close as a person would; true when it changed.\n * - Nothing when it's already so, or `canChange(open)` says no.\n * - The component's `ui-opening` / `ui-closing` first, where its vocabulary has it: cancelling it changes nothing.\n * A `@controlled` member changes through `requestChange()`: a page that sets it while handling the event wins.\n * - `beforeChange(open)` once the event went through, then the change, then `onChange(open)`:\n * what the component does as it opens or closes.\n * - Untracked: call it from a handler.\n */\n request(open: boolean, originalEvent?: Event): boolean {\n return untrack(() => {\n if (open === this.isOpen) return false\n const { setup } = this\n if (setup.canChange && !setup.canChange(open)) return false\n const announce = () => {\n const isAllowed = this.send(open ? OPENING : CLOSING, open, originalEvent)\n if (isAllowed) setup.beforeChange?.(open)\n return isAllowed\n }\n const { component, member, memberMeans } = setup\n let isApplied: boolean\n if (component && member && Reactive.isControlled(component, member)) {\n const next = memberMeans === \"closed\" ? !open : open\n isApplied = component.requestChange(member as never, next as never, announce)\n } else {\n isApplied = announce()\n if (isApplied) this.write(open)\n }\n if (isApplied) setup.onChange?.(open)\n return isApplied\n })\n }\n\n /** Open if closed, close if open, as a person would (`request()`); true when it changed. */\n readonly toggle = (originalEvent?: Event): boolean => this.request(!untrack(() => this.isOpen), originalEvent)\n\n /** Open, as a person would (`request()`); true when it was closed. */\n readonly open = (originalEvent?: Event): boolean => this.request(true, originalEvent)\n\n /** Close, as a person would (`request()`); true when it was open. */\n readonly close = (originalEvent?: Event): boolean => this.request(false, originalEvent)\n\n /**\n * Send `ui-opened` / `ui-closed`, where the vocabulary has it: the change is done\n * (an overlay's animation has ended, a section has folded).\n * - The component says when: only it knows when its change ends.\n * - `originalEvent`: the person's action, when the change is done at once (a code pane's button).\n */\n sendAfter(open: boolean, originalEvent?: Event): void {\n this.send(open ? OPENED : CLOSED, open, originalEvent, { after: true })\n }\n\n /**\n * It has opened or closed already, by no request: the browser did it (find-in-page, a dialog's own Escape).\n * - So follow: `ui-opening` / `ui-closing` after the fact, NOT cancelable (it's done), then the change,\n * then `onChange(open)`.\n * - Nothing when it's already so.\n */\n adopt(open: boolean, originalEvent?: Event): void {\n untrack(() => {\n if (open === this.isOpen) return\n this.send(open ? OPENING : CLOSING, open, originalEvent, { cancelable: false })\n this.write(open)\n this.setup.onChange?.(open)\n })\n }\n\n /** Write the state where it lives, with no event. */\n private write(open: boolean) {\n const { component, member, memberMeans, kept } = this.setup\n if (component && member) {\n ;(component as unknown as Record<string, unknown>)[member] = memberMeans === \"closed\" ? !open : open\n } else if (kept) kept.setOpen(open)\n else this.toggled = open\n }\n\n ////////////////\n // ## The trigger and the box\n ////////////////\n\n /** The trigger's `aria-expanded`; tracked. */\n get ariaExpanded(): \"true\" | \"false\" {\n return this.isOpen ? \"true\" : \"false\"\n }\n\n /** The box's `hidden`: `until-found` while closed, so find-in-page still reaches its text; tracked. */\n get hidden(): typeof UNTIL_FOUND | undefined {\n return this.isOpen ? undefined : UNTIL_FOUND\n }\n\n /**\n * The box's ref: find-in-page matched inside it while closed, and the browser has revealed it (`beforematch`).\n * - So it opens (`adopt()`): `ui-opening` after the fact, NOT cancelable, as the match is already showing.\n */\n readonly revealOnMatch = (box: HTMLElement) => {\n box.addEventListener(\"beforematch\", () => this.adopt(true))\n }\n\n ////////////////\n // ## Events\n ////////////////\n\n /**\n * Send event `name` from the component, when its vocabulary has it; false when a listener cancelled it.\n * - `cancelable`: as the vocabulary says, unless `false` here (`adopt()`'s).\n * - `after`: an after-event, its detail `afterDetail()`'s when given.\n */\n private send(name: string, open: boolean, originalEvent?: Event, { cancelable, after }: SendOptions = {}) {\n const { component, detail, afterDetail } = this.setup\n if (!component || !component.vocabulary.events.some((event) => event.name === name)) return true\n const eventDetail =\n after && afterDetail ? afterDetail(open) : detail ? detail(open, originalEvent) : { open, originalEvent }\n if (cancelable !== false) return component.send(name as never, eventDetail)\n const init = { bubbles: true, composed: true, cancelable: false, detail: eventDetail }\n return component.domElement.dispatchEvent(new CustomEvent(component.elementDefinition.event(name), init))\n }\n}\n\n/** What a `Disclosure` is handed: every key optional. */\nexport type DisclosureSetup = {\n /** the component whose events it sends, and whose `member` holds the state; none: no events */\n component?: E.UIComponent\n /** the component's member holding the state: `@controlled` (`isOpen`) or `@state` */\n member?: string\n /** `\"closed\"`: `member` is true while closed (`isCollapsed`). Default: `\"open\"`. */\n memberMeans?: \"open\" | \"closed\"\n /** the state kept outside it, when there's no `member` */\n kept?: KeptOpen\n /** its own state's starting value, followed until a request changes it. Default: closed. */\n initial?: () => boolean\n /** open? When that's more than where the state lives (a section that can't fold is always open); tracked */\n isOpen?: () => boolean\n /** may it open (`true`) or close (`false`) now? Default: always */\n canChange?: (open: boolean) => boolean\n /** each event's detail. Default: `{ open, originalEvent }` */\n detail?: (open: boolean, originalEvent?: Event) => object\n /** the after-events' detail (`ui-opened` / `ui-closed`), when not `detail()`'s: `{ visible }` */\n afterDetail?: (open: boolean) => object\n /** a request is going ahead (its event wasn't cancelled), just before the change: measure the page first */\n beforeChange?: (open: boolean) => void\n /** a request (or find-in-page) opened or closed it: what opening resets, where focus goes */\n onChange?: (open: boolean) => void\n}\n\n/** Where a `Disclosure` keeps its state when it's not in itself: an element's own `open` attribute. */\nexport type KeptOpen = {\n /** open? tracked */\n isOpen: () => boolean\n /** a request opened or closed it */\n setOpen: (open: boolean) => void\n}\n\n/** How `Disclosure.send()` sends one. */\ntype SendOptions = {\n /** `false`: not cancelable, whatever the vocabulary says */\n cancelable?: false\n /** an after-event: `afterDetail()` */\n after?: boolean\n}\n\n/** The events, by their English names: the vocabulary's own spelling goes out (`send()`). */\nconst OPENING = \"ui-opening\"\nconst CLOSING = \"ui-closing\"\nconst OPENED = \"ui-opened\"\nconst CLOSED = \"ui-closed\"\n\n/** The `hidden` value that find-in-page still searches. */\nconst UNTIL_FOUND = \"until-found\"\n","/****************\n * ### `OwnControls`\n * Did a click land on a control inside an element -- a button, a link, a field -- rather than on the element itself?\n * - A click on a control inside is that control's:\n * a linked element doesn't follow its `link` (`UIComponent`), a folding title doesn't fold,\n * a toast that closes on a click stays open (Spell UI's `<ui-section>`, `<ui-accordion>`, `<ui-toast>`).\n * - ONE list of what counts as a control, and ONE walk: the click's path, innermost first.\n * - Plain DOM, no Solid: it reads only the event.\n * - STATIC and instance-free on purpose: a question about one event, nothing to keep.\n ****************/\nexport class OwnControls {\n /**\n * Did `event` land on a control, inside `upTo` and before `before`?\n * - `upTo`: the element whose controls count; the walk stops there (default: the whole path).\n * - `before`: a selector the walk stops at, saying no: a title's own toggle (`summary`, its fold button).\n * - Climbs `composedPath()`, so a control in a shadow root, or slotted in, counts.\n */\n static isClicked(event: Event, { upTo, before }: OwnControlsWalk = {}): boolean {\n for (const target of event.composedPath()) {\n if (target === upTo) return false\n // elements only: the path ends in shadow roots, the document and the window, which can't `matches()`\n const element = target as Partial<Element>\n if (!element.matches) continue\n if (before && element.matches(before)) return false\n if (element.matches(CONTROLS)) return true\n }\n return false\n }\n}\n\n/** Where `OwnControls.isClicked()` walks. */\nexport type OwnControlsWalk = {\n /** the element whose controls count: the walk stops there */\n upTo?: Element\n /** a selector the walk stops at, saying no: the element's own toggle */\n before?: string\n}\n\n/**\n * What counts as a control of its own: links, buttons, fields and labels, `<details>`, anything editable or focusable,\n * and anything that says it's a button or a link.\n */\nconst CONTROLS =\n \"a, button, input, select, textarea, label, details, summary, [contenteditable], [tabindex], [role=button], [role=link]\"\n","import { E } from \"spell/element\"\n\n/****************\n * ### `ParentLink`\n * The `parent` attribute: an element written anywhere on the page joins the container with that id,\n * as if it were nested there.\n * - `<ui-tab parent=\"types\">` joins `<ui-tabs id=\"types\">`; `<ui-step>` a `<ui-steps>`;\n * `<ui-section>` another `<ui-section>` (or a `<ui-sections>`).\n * - How: the element MOVES into its container, so the page's tree is the nested one,\n * and everything that reads the tree (the tabs' panes, the keyboard order, folding, a table of contents) just works.\n * The HTML file keeps it flat.\n * - When: once the page is read (`DOMContentLoaded`), so every element naming the container is there;\n * they join it together, in page order:\n * - those written BEFORE the container go before its own children\n * - those written after it go after them\n * - A container that isn't there: warns once per id, and the element stays where it is.\n * It keeps watching (one `MutationObserver` per root), and joins the container if it arrives later.\n * - Every element whose vocabulary declares `parent` has one: `UIComponent` follows the attribute while connected.\n * So the next element that joins a container takes `parent` by declaring it.\n * - Plain DOM: no Solid, no component; it never runs on a server, where nothing connects.\n * - Spell UI's until epic `coherence` P21: the kit's now, as every set's elements may join a container.\n ****************/\nexport class ParentLink {\n /** The element that joins its container. */\n private readonly domElement: Element\n\n /** The `parent` attribute's name on this tag (translated on a translated tag: `padre`). */\n private readonly attribute: string\n\n constructor(props: ParentLinkProps) {\n this.domElement = props.domElement\n this.attribute = props.attribute\n }\n\n /**\n * Join the container whose id is `id`, once the page is read; nothing without one.\n * - Returns the cleanup: stop waiting for the container (the element left the page, or `parent` changed).\n * - SIDE EFFECT: moves the element, and every other one of its tag naming the same container, into it.\n * - NEVER throws.\n */\n follow(id: string | undefined): (() => void) | undefined {\n if (!id) return undefined\n let isStopped = false\n let stopWatching: (() => void) | undefined\n ParentLink.whenPageRead(this.domElement.ownerDocument, () => {\n if (isStopped || !this.domElement.isConnected) return\n if (this.join(id)) return\n ParentLink.warnMissing(id, this.domElement.localName, this.attribute)\n stopWatching = ParentLink.watch(this.root, () => !this.domElement.isConnected || this.join(id))\n })\n return () => {\n isStopped = true\n stopWatching?.()\n }\n }\n\n /**\n * Move every element of this tag naming `id` into the container with that id, in page order.\n * - True when the container is there (whether or not anything moved).\n */\n private join(id: string): boolean {\n const root = this.root\n const container = root.getElementById(id)\n if (!container) return false\n const { attribute } = this\n const joiners = [...root.querySelectorAll(`${this.domElement.localName}[${attribute}]`)].filter(\n (joiner) => joiner.getAttribute(attribute) === id && !container.contains(joiner)\n )\n const before: Element[] = []\n const after: Element[] = []\n for (const joiner of joiners) {\n // a container inside its own joiner can't take it in\n if (joiner.contains(container)) {\n E.SpellSolid.settings.warn(\n ParentLink.source(joiner.localName, attribute, id),\n \"it holds that element; it stays put\"\n )\n } else if (joiner.compareDocumentPosition(container) & Node.DOCUMENT_POSITION_FOLLOWING) before.push(joiner)\n else after.push(joiner)\n }\n if (before.length) container.prepend(...before)\n if (after.length) container.append(...after)\n return true\n }\n\n /** The document or shadow root the element is in: where its container's id is looked up. */\n private get root(): Document | ShadowRoot {\n return this.domElement.getRootNode() as Document | ShadowRoot\n }\n\n ////////////////\n // ## Statics\n ////////////////\n\n /**\n * Run `fn` once `document` is read (`DOMContentLoaded`), else as soon as the running code finishes.\n * - Never right away: `follow()` runs inside an effect, where moving an element mustn't happen.\n */\n private static whenPageRead(document: Document, fn: () => void) {\n if (document.readyState === \"loading\") document.addEventListener(\"DOMContentLoaded\", fn, { once: true })\n else E.afterSolidUpdate(fn)\n }\n\n /** Warn that no element has id `id`, once per id. Static: once per page, however many elements name it. */\n private static warnMissing(id: string, tag: string, attribute: string) {\n if (ParentLink.warned.has(id)) return\n ParentLink.warned.add(id)\n E.SpellSolid.settings.warn(\n ParentLink.source(tag, attribute, id),\n `no element has the id \"${id}\"; it stays where it is, and joins one if it arrives`\n )\n }\n\n /** How a warning names the element: `<ui-tab parent=\"types\">`. */\n private static source(tag: string, attribute: string, id: string): string {\n return `<${tag} ${attribute}=\"${id}\">`\n }\n\n /**\n * Call `tryJoin` on every change to `root`'s tree or ids, until it returns true (joined, or left the page);\n * returns a function that stops.\n * - Static: one observer per root, shared by every element waiting there.\n */\n private static watch(root: Document | ShadowRoot, tryJoin: () => boolean): () => void {\n let waiting = ParentLink.waiting.get(root)\n if (!waiting) {\n const waits = new Set<() => boolean>()\n const observer = new MutationObserver(() => {\n for (const wait of [...waits]) if (wait()) waits.delete(wait)\n if (!waits.size) ParentLink.stopWatching(root)\n })\n observer.observe(root, { childList: true, subtree: true, attributeFilter: [\"id\"] })\n waiting = { waits, observer }\n ParentLink.waiting.set(root, waiting)\n }\n const { waits } = waiting\n waits.add(tryJoin)\n return () => {\n waits.delete(tryJoin)\n if (!waits.size) ParentLink.stopWatching(root)\n }\n }\n\n /** Stop observing `root`. */\n private static stopWatching(root: Document | ShadowRoot) {\n ParentLink.waiting.get(root)?.observer.disconnect()\n ParentLink.waiting.delete(root)\n }\n\n /** Forget which ids were warned about, for tests. */\n static reset() {\n ParentLink.warned.clear()\n }\n\n /** Ids already warned about. Static: the warning is once per page. */\n private static readonly warned = new Set<string>()\n\n /** Each root's observer and the elements waiting in it. Static: one observer per root, page-wide. */\n private static readonly waiting = new WeakMap<Node, { waits: Set<() => boolean>; observer: MutationObserver }>()\n}\n\n/** What a `ParentLink` is for. */\nexport type ParentLinkProps = {\n /** the element that joins its container */\n domElement: Element\n /** the `parent` attribute's name on its tag: `component.elementDefinition.localAttribute(\"parent\")` */\n attribute: string\n}\n","/**\n * Number helpers: a number held between two others, and a size in KB.\n * - Standalone: no imports, so plain `node` loads it too (`spell/util/number.ts`).\n */\n\n/**\n * `value` held between `low` and `high`, ends included: `clamp(12, 0, 10)` => `10`.\n * - `NaN` stays `NaN`\n */\nexport function clamp(value: number, low: number, high: number): number {\n return Math.min(high, Math.max(low, value))\n}\n\n/** How `kb()` writes a size. */\nexport type SizeOptions = {\n /** digits after the point, default 1 */\n digits?: number\n}\n\n/**\n * `bytes` as kilobytes, `12.3 KB`: ONE unit for every size we print.\n * - a KB is 1024 bytes (not 1000), whatever the size: sizes compare at a glance\n */\nexport function kb(bytes: number, { digits = 1 }: SizeOptions = {}): string {\n return `${(bytes / 1024).toFixed(digits)} KB`\n}\n","/****************\n * ### `Warnings`\n * The ONE way `spell-ui` warns the page's developer in the console: one prefix, one message format.\n * - `ui`'s substitute for WWOD §19's `Logger`, which would add bytes (and colours no browser but Chrome draws) to\n * every component bundle (epic `wwod-spell-ui`, Q5).\n * - Message format, WWOD §19 › \"Message format\": `[spell-ui] <source>: <what happened>`, then the data as\n * separate arguments, so the console shows them as objects. `source` names who warns: a tag (`<ui-root>`), a\n * runtime service (`UI.icons`), a method (`Converters.enumValue()`).\n * - Plain DOM-free JS: no Solid, no runtime; lives in `spell/ui/util`, so `core` and every lazy chunk can use it.\n * - STATIC and instance-free on purpose: nothing to configure per caller.\n ****************/\nexport class Warnings {\n /**\n * Warn, in every build: something the page's author must fix (a bad attribute, a missing sheet, a file that\n * didn't load).\n * - NEVER throws.\n */\n static warn(source: string, message: string, ...data: unknown[]) {\n console.warn(`${PREFIX} ${source}: ${message}`, ...data)\n }\n\n /**\n * Report an ERROR, in every build: something that leaves a whole part of the page missing (a component pack that\n * didn't load), where a warning would be easy to miss. Same format as `warn()`.\n * - NEVER throws.\n */\n static error(source: string, message: string, ...data: unknown[]) {\n console.error(`${PREFIX} ${source}: ${message}`, ...data)\n }\n\n /**\n * Warn in development builds only (`import.meta.env.DEV`): advice a production page shouldn't print, e.g. an\n * unknown attribute value with a \"did you mean\" suggestion.\n * - `import.meta.env?.DEV` is statically replaced by Vite, so a production build drops the call.\n * - NEVER throws.\n */\n static devWarn(source: string, message: string, ...data: unknown[]) {\n if (import.meta.env?.DEV) Warnings.warn(source, message, ...data)\n }\n}\n\n/** What every warning starts with, so `spell-ui`'s are greppable in a busy console. */\nconst PREFIX = \"[spell-ui]\"\n","/****************\n * ### `LoadOnce`\n * Loads each key once per page, and hands every caller the same promise:\n * a family's import, a component pack's script, a language's dictionary, an icon's SVG, a source file.\n * - `get(key, load)` calls `load()` the first time, and returns the one in flight (or done) after that:\n * `packs.get(url, () => ComponentPacks.inject(url))`.\n * - What a FAILED load does, `failures` (`LoadFailures`):\n * - `\"kept\"`, the default: the rejection is the answer for good (a family that can't be imported)\n * - `\"forgotten\"`: the next `get()` tries again (a file that may be there next time)\n * - `\"forgotten offline\"`: forgotten only while the browser says it's offline (`navigator.onLine`):\n * then the failure may be the connection, not the file (an icon's SVG)\n * - A caller that mustn't see a rejection catches it itself: `loads.get(key).catch(() => undefined)`.\n * - Plain promises, no Solid: the runtime's lazy chunk uses it too.\n ****************/\nexport class LoadOnce<K, V> {\n /** What a failed load does. */\n private readonly failures: LoadFailures\n\n /** Key => its load, in flight or done. */\n private readonly loads = new Map<K, Promise<V>>()\n\n constructor({ failures = \"kept\" }: LoadOnceOptions = {}) {\n this.failures = failures\n }\n\n /**\n * `key`'s load: `load()` now the first time, else the one already under way (or done).\n * - `fresh`: start a new one even so, and keep it in place of the old.\n * - A `load()` that throws instead of rejecting is a rejection too.\n */\n get(key: K, load: () => Promise<V>, { fresh = false }: { fresh?: boolean } = {}): Promise<V> {\n const known = fresh ? undefined : this.loads.get(key)\n if (known) return known\n const started = LoadOnce.start(load)\n this.loads.set(key, started)\n if (this.failures !== \"kept\") {\n started.catch(() => {\n if (this.loads.get(key) !== started || !this.forgetsNow()) return\n this.loads.delete(key)\n })\n }\n return started\n }\n\n /** Has `key` a load, in flight or done? */\n has(key: K): boolean {\n return this.loads.has(key)\n }\n\n /** Every key with a load, in the order they started. */\n keys(): IterableIterator<K> {\n return this.loads.keys()\n }\n\n /** Make `value` `key`'s answer, as if it had loaded (a file just saved). */\n set(key: K, value: V) {\n this.loads.set(key, Promise.resolve(value))\n }\n\n /** Drop `key`'s load, or every load: the next `get()` starts again. */\n forget(key?: K) {\n if (key === undefined) this.loads.clear()\n else this.loads.delete(key)\n }\n\n /**\n * `load()`'s promise; a throw becomes a rejection.\n * - STATIC: pure, needs no instance.\n */\n private static start<V>(load: () => Promise<V>): Promise<V> {\n try {\n return load()\n } catch (error) {\n return Promise.reject(error)\n }\n }\n\n /** Is a failure forgotten now, as `failures` says? */\n private forgetsNow(): boolean {\n if (this.failures === \"forgotten\") return true\n return typeof navigator !== \"undefined\" && navigator.onLine === false\n }\n}\n\n/** What a `LoadOnce` does with a failed load: see the class. */\nexport type LoadFailures = \"kept\" | \"forgotten\" | \"forgotten offline\"\n\n/** `new LoadOnce(options)`. */\nexport type LoadOnceOptions = {\n /** what a failed load does; default `\"kept\"` */\n failures?: LoadFailures\n}\n","import { numberToWord, proto, suggest } from \"spell/ui/util\"\nimport type { AttributeKind, AttributeSpec, ValueSetName } from \"spell/element/vocabulary.types\"\n\n/****************\n * ### `ValueSets`\n * The shared English value sets attribute values are checked against: hues, sizes, positions, alignments ...\n * - Why shared: a hue or size means the same thing on every component, so vocabularies reference a set by key\n * (`values: \"hues\"`) and a translation maps it ONCE (`Dictionary.values.hues`).\n * - Data is `@proto static` (on the prototype, and on the class as a static), so a theme which adds hues\n * calls `ValueSets.add(\"hues\", \"indigo\")` and every reader sees it.\n * - Helpers are static: there is one set of canonical values per page.\n * - Pure data, no DOM, imports only `spell/ui/util`: node reads it with the vocabularies (`yarn site:data`).\n ****************/\nexport class ValueSets {\n ////////////////\n // ## The sets, as the prototype holds them\n ////////////////\n\n // What `@proto` puts on the prototype, typed: `get()` reads them there, so `add()` and subclasses are seen.\n // ALSO the one list of set names: `ValueSetName` is `keyof ValueSets`, so a new set needs its line here.\n\n /** `ValueSets.hues` */\n declare hues: readonly string[]\n /** `ValueSets.sizes` */\n declare sizes: readonly string[]\n /** `ValueSets.positions` */\n declare positions: readonly string[]\n /** `ValueSets.attachments` */\n declare attachments: readonly string[]\n /** `ValueSets.alignments` */\n declare alignments: readonly string[]\n /** `ValueSets.verticalAlignments` */\n declare verticalAlignments: readonly string[]\n /** `ValueSets.floats` */\n declare floats: readonly string[]\n /** `ValueSets.widths` */\n declare widths: readonly string[]\n /** `ValueSets.devices` */\n declare devices: readonly string[]\n /** `ValueSets.booleans` */\n declare booleans: readonly string[]\n /** `ValueSets.topics` */\n declare topics: readonly string[]\n\n ////////////////\n // ## Data\n ////////////////\n\n /**\n * Fomantic's `@variationAllColors`, in its order -- `suggest()` breaks ties toward earlier entries.\n * - NOTE: extensible; a new hue needs a token block in `colors.css` plus `ValueSets.add(\"hues\", ...)`.\n */\n @proto static hues = [\n \"primary\",\n \"secondary\",\n \"red\",\n \"orange\",\n \"yellow\",\n \"olive\",\n \"green\",\n \"teal\",\n \"blue\",\n \"violet\",\n \"purple\",\n \"pink\",\n \"brown\",\n \"grey\",\n \"black\",\n // what a click does, as Fomantic's buttons had them: `colors.css` remaps them as it does every hue\n // (epic `ui-gaps` P4: `<ui-button color=\"positive\">` became `color=\"positive\"`)\n \"positive\",\n \"negative\"\n ] as const\n\n /** Ratios of 16, smallest first; `medium` means \"default\" and emits no class. */\n @proto static sizes = [\"mini\", \"tiny\", \"small\", \"medium\", \"large\", \"big\", \"huge\", \"massive\"] as const\n\n /**\n * Popup / tooltip positions: Fomantic's 8 (`popup.js` `positions()`, `data-position`), plus 4 of our own.\n * - Map 1:1 onto anchor positioning's `position-area` (see plan, \"Overlays\").\n * - Ours: `left top` ... `right bottom`, BESIDE the target, lined up with its top / bottom edge. NOT the same\n * as `top left` (above, lined up with its left edge): word order matters here, unlike class words.\n */\n @proto static positions = [\n \"top left\",\n \"top center\",\n \"top right\",\n \"bottom left\",\n \"bottom center\",\n \"bottom right\",\n \"left center\",\n \"right center\",\n \"left top\",\n \"left bottom\",\n \"right top\",\n \"right bottom\"\n ] as const\n\n /** `attached` positions, e.g. `top attached` segment, `top right attached` label, `left attached` button. */\n @proto static attachments = [\n \"top\",\n \"bottom\",\n \"left\",\n \"right\",\n \"top left\",\n \"top right\",\n \"bottom left\",\n \"bottom right\"\n ] as const\n\n /** Text alignment; `justified` emits just `justified`, not `justified aligned`. */\n @proto static alignments = [\"left\", \"center\", \"right\", \"justified\"] as const\n\n /** Vertical alignment for grids, rows, columns, items. */\n @proto static verticalAlignments = [\"top\", \"middle\", \"bottom\"] as const\n\n /** `floated` values. */\n @proto static floats = [\"left\", \"right\"] as const\n\n /**\n * Column counts of the grid (`GRID_COLUMNS`, 16), as strings.\n * - `ValueSets.has(\"widths\", ...)` ALSO accepts words (`four`), fractions (`1/4`) and percentages (`25%`),\n * via `ValueSets.columns()`.\n */\n @proto static widths = [\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"10\",\n \"11\",\n \"12\",\n \"13\",\n \"14\",\n \"15\",\n \"16\"\n ] as const\n\n /**\n * Responsive targets for `multiple` attributes (`only`, `reversed`).\n * - `large screen` is two words; `ClassBuilder` and `Vocabulary` treat it as one token.\n * - `reversed` also takes a `vertically` suffix (`computer vertically`), handled by `ClassBuilder`.\n */\n @proto static devices = [\"mobile\", \"tablet\", \"computer\", \"large screen\", \"widescreen\"] as const\n\n /** Boolean spellings `Converters.boolean()` understands; here so a translation can map them (`si` => `yes`). */\n @proto static booleans = [\"true\", \"false\", \"yes\", \"no\"] as const\n\n /**\n * Topics a component is filed under (a vocabulary's `topics`), for finding it: the docs' component browser, and\n * later `<ui-root>`. Many per tag, so it's found however someone looks: how a newcomer thinks of it (\"forms\",\n * \"notifications\", \"loading\") AND how widget libraries file it; the last four are Fomantic's own groups.\n * - A translation maps them once (`Dictionary.values.topics`), like any shared value.\n * - `documentation`: the doc-only `<ui-docs-*>` elements (`src/docs-components/`), which the component list\n * leaves out; no component uses it.\n */\n @proto static topics = [\n \"basic\",\n \"layout\",\n \"containers\",\n \"navigation\",\n \"menus\",\n \"forms\",\n \"inputs\",\n \"controls\",\n \"buttons\",\n \"selection\",\n \"date & time\",\n \"text\",\n \"typography\",\n \"media\",\n \"images\",\n \"icons\",\n \"data display\",\n \"lists\",\n \"tables\",\n \"cards\",\n \"feedback\",\n \"messages\",\n \"notifications\",\n \"overlays\",\n \"dialogs\",\n \"popups\",\n \"loading\",\n \"progress\",\n \"status\",\n \"animation\",\n \"social\",\n \"content parts\",\n \"documentation\",\n \"elements\",\n \"collections\",\n \"views\",\n \"modules\"\n ] as const\n\n ////////////////\n // ## Lookup\n ////////////////\n\n /**\n * Values of `set`: a shared set by name, or an inline list passed straight through.\n * - Reads the PROTOTYPE, so `ValueSets.add()` and subclass overrides are seen.\n */\n static get(set: ValueSetName | readonly string[]): readonly string[] {\n if (typeof set !== \"string\") return set\n return (ValueSets.prototype[set] as readonly string[] | undefined) ?? []\n }\n\n /**\n * True if `value` is one of `set`'s canonical values.\n * - Exact and case-sensitive: callers normalize first (`Converters.enumValue()` trims and lower-cases).\n * - `widths` also accepts anything `ValueSets.columns()` parses into 1..16.\n */\n static has(set: ValueSetName | readonly string[], value: string): boolean {\n if (set === \"widths\") {\n const columns = ValueSets.columns(value)\n return columns !== undefined && ValueSets.isColumnCount(Math.round(columns))\n }\n return ValueSets.lookup(ValueSets.get(set)).has(value)\n }\n\n /**\n * Closest canonical value to a misspelt `value`, for dev-time \"did you mean\" warnings.\n * - Delegates to `spell/ui/util`'s Levenshtein `suggest()`; `undefined` when nothing is close.\n */\n static suggest(set: ValueSetName | readonly string[], value: string): string | undefined {\n return suggest(value, ValueSets.get(set))\n }\n\n /**\n * Add `values` to shared set `set`, e.g. a theme's extra hues.\n * - SIDE EFFECT: replaces the prototype's (and the static's) array, so readers holding the old array\n * keep the old list -- look sets up with `ValueSets.get()` rather than caching them.\n */\n static add(set: ValueSetName, ...values: string[]) {\n const current = ValueSets.get(set)\n const next = Object.freeze([...current, ...values.filter((value) => !current.includes(value))])\n Object.defineProperty(ValueSets.prototype, set, { value: next, writable: true, configurable: true })\n ;(ValueSets as unknown as Record<string, unknown>)[set] = next\n }\n\n /**\n * The value set an attribute's values come from: its own `values`, else the default for its kind.\n * - `color` => `hues`, `size` => `sizes`, `textAlign` => `alignments`, `verticalAlign` => `verticalAlignments`,\n * `multiple` => `devices`, `boolean` => `booleans`\n * - `undefined` for free-form kinds (`string`, `number`, `json`, `width`, `keyOnly`).\n */\n static setFor(spec: AttributeSpec): ValueSetName | readonly string[] | undefined {\n const kindValues: Partial<Record<AttributeKind, ValueSetName>> = KIND_VALUES\n return spec.values ?? kindValues[spec.kind]\n }\n\n ////////////////\n // ## Widths\n ////////////////\n\n /**\n * Parse a width into a column count out of `GRID_COLUMNS` (16), WITHOUT rounding, so callers can warn on inexact\n * values.\n * - `4` / `\"4\"` => `4`\n * - `\"four\"` => `4`\n * - `\"1/4\"` => `4`; `\"1/3\"` => `5.33...`\n * - `\"25%\"` => `4`\n * - Returns `undefined` for anything unparseable or outside `(0, 16.5)`: what rounds to `1`..`GRID_COLUMNS`.\n */\n static columns(value: string | number): number | undefined {\n let columns: number\n if (typeof value === \"number\") columns = value\n else {\n const text = value.trim()\n const fraction = FRACTION.exec(text)\n const percent = PERCENT.exec(text)\n if (fraction) columns = (GRID_COLUMNS * Number(fraction[1])) / Number(fraction[2])\n else if (percent) columns = (GRID_COLUMNS * Number(percent[1])) / 100\n else if (NUMBER.test(text)) columns = Number(text)\n else columns = ValueSets.wordColumns().get(text.toLowerCase()) ?? NaN\n }\n return Number.isFinite(columns) && columns > 0 && columns < GRID_COLUMNS + 0.5 ? columns : undefined\n }\n\n /** True for an integer column count `1`..`GRID_COLUMNS`. */\n static isColumnCount(columns: number) {\n return Number.isInteger(columns) && columns >= 1 && columns <= GRID_COLUMNS\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n /**\n * `Set` per value array, for O(1) `has()`; weak, so arrays replaced by `add()` drop out.\n * - Static: a page-wide cache, like the sets it indexes.\n */\n private static readonly sets = new WeakMap<readonly string[], Set<string>>()\n\n /** Lazily-built `\"four\"` => `4` map for `columns()`; static, as the words are the same for every set. */\n private static words: Map<string, number> | undefined\n\n /** `Set` of `values`, built once per array. */\n private static lookup(values: readonly string[]) {\n let set = ValueSets.sets.get(values)\n if (!set) ValueSets.sets.set(values, (set = new Set(values)))\n return set\n }\n\n /** Number word => column count. */\n private static wordColumns() {\n if (!ValueSets.words) {\n ValueSets.words = new Map()\n for (let columns = 1; columns <= GRID_COLUMNS; columns++) ValueSets.words.set(numberToWord(columns)!, columns)\n }\n return ValueSets.words\n }\n}\n\n/** Columns of Fomantic's grid: what a width counts out of (`width=\"4\"` ~== a quarter). */\nconst GRID_COLUMNS = 16\n\n/**\n * Default value set per attribute kind, for `ValueSets.setFor()`.\n * - `as const`: `KindValueSets` reads it too, so `kind: \"size\"` types as the sizes.\n */\nconst KIND_VALUES = {\n color: \"hues\",\n size: \"sizes\",\n textAlign: \"alignments\",\n verticalAlign: \"verticalAlignments\",\n multiple: \"devices\",\n boolean: \"booleans\"\n} as const satisfies Partial<Record<AttributeKind, ValueSetName>>\n\n/** `a/b` fraction of the full width. */\nconst FRACTION = /^(\\d+(?:\\.\\d+)?)\\s*\\/\\s*(\\d+(?:\\.\\d+)?)$/\n\n/** `n%` of the full width. */\nconst PERCENT = /^(\\d+(?:\\.\\d+)?)\\s*%$/\n\n/** Plain column count. */\nconst NUMBER = /^\\d+(?:\\.\\d+)?$/\n\n/** Each of `ValueSets`' sets by name => its values, as a union: what `ValueSetValues` holds. */\ntype ValuesBySet = { [Name in keyof ValueSets]: (typeof ValueSets)[Name][number] }\n\n/** `KIND_VALUES`' type, for `KindValueSets`: an interface extends a named type only. */\ntype KindDefaults = typeof KIND_VALUES\n\n/**\n * Spell UI's value sets and topics, added to spell-element's vocabulary types (where every set's vocabularies are\n * typed), so a vocabulary's `values: \"hues\"` and its `topics` are checked against this class.\n * - And an attribute of a set reads as its values: `this.size` is `\"mini\" | ... | \"massive\"`, not any text.\n */\ndeclare module \"spell/element/vocabulary.types\" {\n interface ValueSetValues extends ValuesBySet {}\n interface KindValueSets extends KindDefaults {}\n interface TopicNames extends Record<(typeof ValueSets.topics)[number], true> {}\n}\n","import { Warnings } from \"spell/ui/util\"\nimport type { EnumOptions, ValueSetName } from \"spell/element/vocabulary.types\"\nimport { ValueSets } from \"./ValueSets\"\n\n/****************\n * ### `Converters`\n * Pure attribute => property converters,\n * shared by `ElementDefinition` (the DOM element's attributes) and the native fallbacks.\n * - Why here, with no DOM and no Solid:\n * - the elements and their native fallbacks need the SAME booleans / enums / widths semantics\n * - frameworks send attributes in odd shapes: Vue sends `open=\"false\"` when it can't find a property,\n * so `\"false\"` MUST mean false (`notes/plan.md`, \"Framework consumption contract\")\n * - Static and stateless: converters run on every `attributeChangedCallback`.\n * - Attribute values arrive as `string | null` (`null` ~== absent); properties may arrive as anything.\n * - `null` is the PLATFORM's here, so it stays (epic `wwod-spell-ui`, Q9):\n * - `getAttribute()` returns it for an absent attribute\n * - `ElementDefinition.attributeText()` returns it to remove one (`booleanToAttribute()`)\n * - everything of ours that means \"none\" is `undefined`\n * - Imports only `spell/ui/util` and its folder's peers: no DOM, no element layer.\n ****************/\nexport class Converters {\n ////////////////\n // ## Booleans\n ////////////////\n\n /**\n * Attribute value => boolean.\n * - absent (`null` / `undefined`) => false\n * - `\"\"`, `\"true\"`, `\"yes\"`, or the attribute's own name (`disabled=\"disabled\"`) => true\n * - `\"false\"`, `\"no\"`, `\"0\"` => false (case-insensitive)\n * - any other present value => true, as HTML presence semantics say\n * - real booleans pass through, so the same converter serves properties\n */\n static boolean(value: string | boolean | null | undefined, attribute?: string): boolean {\n if (value == null) return false\n if (typeof value === \"boolean\") return value\n const text = value.trim().toLowerCase()\n if (TRUE_WORDS.has(text) || text === attribute) return true\n return !FALSE_WORDS.has(text)\n }\n\n /**\n * Boolean property => attribute value for reflection: true => `\"\"`, false => `null` (remove).\n * - NEVER `\"false\"`: a present attribute is true to CSS (`[open]`) and to other libraries.\n */\n static booleanToAttribute(value: boolean | null | undefined): \"\" | null {\n return value ? \"\" : null\n }\n\n /**\n * `keyOrValueAndKey` attribute => `true` (bare), `false` (absent / `\"false\"`), or its value.\n * - `pointing` => true; `pointing=\"left\"` => `\"left\"`; `pointing=\"false\"` => false.\n * - A value is checked against `set` with the same warning as `enumValue()`.\n * - Unknown values => `true`, so a typo still gets the bare variation rather than nothing.\n */\n static keyOrValue(\n value: string | boolean | null | undefined,\n set: ValueSetName | readonly string[] | undefined,\n options: EnumOptions = {}\n ): string | boolean {\n if (value == null || typeof value === \"boolean\") return value ?? false\n const text = value.trim().toLowerCase()\n if (TRUE_WORDS.has(text) || text === options.attribute) return true\n if (FALSE_WORDS.has(text)) return false\n if (!set) return text\n return Converters.enumValue(text, set, options) ?? true\n }\n\n ////////////////\n // ## Icons\n ////////////////\n\n /**\n * `icon` attribute value => icon name, `\"\"` for \"the element's own icon\", or `undefined` for none.\n * - Why: frameworks (JSX, Astro) render a bare `icon` as `icon=\"true\"`, which MUST NOT be looked up as a glyph.\n * - bare / `\"true\"` / `\"yes\"` / `true` => `fallback` (the vocabulary default), else `\"\"`\n * - `\"false\"` / `\"no\"` / `false` => `undefined`, even over a default;\n * NOT `\"0\"`: Font Awesome has a `0` glyph.\n * - a string / number => the trimmed name; absent (`null` / `undefined`) or any other value => `undefined`\n */\n static icon(value: unknown, fallback?: unknown): string | undefined {\n if (value == null || value === false) return undefined\n const text =\n typeof value === \"string\"\n ? value.trim()\n : value === true\n ? \"\"\n : typeof value === \"number\"\n ? `${value}`\n : undefined\n if (text === undefined) return undefined\n const word = text.toLowerCase()\n if (ICON_FALSE_WORDS.has(word)) return undefined\n if (TRUE_WORDS.has(word)) return typeof fallback === \"string\" ? fallback : \"\"\n return text\n }\n\n ////////////////\n // ## Enums\n ////////////////\n\n /**\n * Attribute value => canonical member of `set`, or `undefined` if it isn't one.\n * - Trims and lower-cases, and collapses inner whitespace (`\"top left\"` => `\"top left\"`).\n * - SIDE EFFECT (dev only): warns `did you mean \"red\"?` via `ValueSets.suggest()` for unknown values.\n */\n static enumValue(\n value: string | null | undefined,\n set: ValueSetName | readonly string[],\n options: EnumOptions = {}\n ): string | undefined {\n if (value == null) return undefined\n const text = value.trim().toLowerCase().replace(WHITESPACE, \" \")\n if (ValueSets.has(set, text)) return text\n if (text === \"\") return undefined\n const guess = ValueSets.suggest(set, text)\n const where = options.tag ? `<${options.tag} ${options.attribute ?? \"\"}>` : (options.attribute ?? \"value\")\n Warnings.devWarn(\n where,\n `unknown value ${JSON.stringify(value)}${guess ? `; did you mean ${JSON.stringify(guess)}?` : \"\"}`\n )\n return undefined\n }\n\n ////////////////\n // ## Numbers, JSON, lists\n ////////////////\n\n /**\n * Attribute value => number; `undefined` when absent, blank or not a number.\n * - Numbers pass through (property path).\n */\n static number(value: string | number | null | undefined): number | undefined {\n if (value == null) return undefined\n if (typeof value === \"number\") return Number.isNaN(value) ? undefined : value\n if (value.trim() === \"\") return undefined\n const number = Number(value)\n return Number.isNaN(number) ? undefined : number\n }\n\n /**\n * Rich property value: JSON text is parsed, a plain string stays a string, anything else passes through.\n * - Why parse: `json` attributes are property-first (`AGENTS.md`),\n * but plain HTML can still write `options='[...]'`, and frameworks without property binding set strings.\n * - Why not parse EVERY string: a string is also a value\n * (`rules=\"email\"` / `el.rules = \"minLength[6]\"` is Fomantic's shorthand).\n * Only JSON-shaped text (starting `[`, `{` or `\"`) is parsed.\n * - Consumers MUST accept a string where they don't want one (`options` drops non-arrays).\n * - SIDE EFFECT (dev only): warns and returns `undefined` for JSON-shaped text that doesn't parse (a typo).\n */\n static json<T = unknown>(value: unknown): T | undefined {\n if (typeof value !== \"string\") return value as T\n const text = value.trim()\n if (text === \"\") return undefined\n if (!JSON_START.includes(text[0]!)) return value as T\n try {\n return JSON.parse(text) as T\n } catch (error) {\n Warnings.devWarn(\"Converters.json()\", `invalid JSON ${JSON.stringify(value)}:`, (error as Error).message)\n return undefined\n }\n }\n\n /**\n * Space- or comma-separated attribute value => `string[]`, e.g. `\"a, b c\"` => `[\"a\", \"b\", \"c\"]`.\n * - Arrays pass through; absent => `[]`.\n * - NOTE: splits multi-word values like `large screen` -- `multiple` attributes use `ClassBuilder`'s tokenizer.\n */\n static list(value: string | readonly string[] | null | undefined): string[] {\n if (value == null) return []\n if (typeof value !== \"string\") return [...value]\n return value.split(LIST_SEPARATOR).filter(Boolean)\n }\n}\n\n/** Spellings of true: a bare attribute (`\"\"`) and the two words; the attribute's own name is checked apart. */\nconst TRUE_WORDS = new Set([\"\", \"true\", \"yes\"])\n\n/** Spellings of false an `icon` takes: NOT `\"0\"`, which is a Font Awesome glyph. */\nconst ICON_FALSE_WORDS = new Set([\"false\", \"no\"])\n\n/** Spellings of false; everything else present is true. */\nconst FALSE_WORDS = new Set([...ICON_FALSE_WORDS, \"0\"])\n\n/** Separator for `Converters.list()`. */\nconst LIST_SEPARATOR = /[\\s,]+/\n\n/** Runs of whitespace, collapsed by `enumValue()`. */\nconst WHITESPACE = /\\s+/g\n\n/** First characters of JSON text `Converters.json()` parses: arrays, objects, quoted strings. */\nconst JSON_START = '[{\"'\n","/**\n * `UIT` -- what several component families share:\n * - event details\n * - the CSS contracts every implementation of a component (the element and its native fallback) must honour\n * - vocabulary pieces, and the words more than one family reads (`UIT.ACTIVE`, `UIT.Key`)\n *\n * - Read as `UIT.X`: element and fallback files `import { E, UI, UIT } from \"spell/ui/core\"`;\n * vocabularies and types files, which node imports (`yarn site:data`, `yarn gen:root`),\n * value-import this file directly, `import * as UIT from \"spell/ui/components/components.types\"` (`AGENTS.md` \"Imports\").\n * - PURE DATA, at the bottom of the import graph:\n * `import type` only, so node loads it and it never pulls in the element layer.\n * Its small helper classes (`Flags`, `StackClasses`, `ToggleCommands`) read only what's here.\n * - A constant ONE family reads stays in that family's types file; it moves here once a second family needs it.\n */\n\nimport type { E, Themes } from \"spell/ui/core\"\n\n////////////////\n// ## Button\n////////////////\n\n/** `detail` of `ui-selected` / `ui-deselected`, from a `toggle` `<ui-button>`. */\nexport type ButtonToggleDetail = {\n /** new `active` state */\n active: boolean\n /** click / key event that flipped it */\n originalEvent?: Event\n}\n\n////////////////\n// ## Dropdown\n////////////////\n\n/** A dropdown's value: one string, or one per chosen option with `multiple`. */\nexport type DropdownValue = string | string[]\n\n/** `options` property of `<ui-dropdown>`: the `MenuOptions` model's option shape. */\nexport type DropdownOptions = readonly E.MenuOption[]\n\n/** `detail` of `ui-changed`. */\nexport type DropdownChangeDetail = {\n /** value after the change */\n value: DropdownValue\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-opening` / `ui-closing`. */\nexport type DropdownOpenDetail = {\n /** state it's ABOUT to enter */\n open: boolean\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-searched`. */\nexport type DropdownSearchDetail = {\n /** current query */\n query: string\n /** `input` event that changed it */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-added` / `ui-removed`: the one value added or removed. */\nexport type DropdownItemDetail = {\n /** value added or removed */\n value: string\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Flag\n////////////////\n\n/****************\n * ### `Flags`\n * Flag code => Unicode flag emoji: ONE rule for `<ui-flag>` (`FlagCountry`, after its names) and the `flag` of a\n * menu option (`<ui-dropdown>`, `<ui-select>`), so a flag draws the same everywhere (epic `wwod-spell-ui`, I6).\n * - A two-letter code (ISO 3166-1 alpha-2, any case) => its regional-indicator pair (`fr` => `🇫🇷`);\n * a code of `SpecialFlags` (`rainbow`, `gb-eng` ...) => its emoji sequence; anything else => `\"\"`.\n * - Here, not in the `flag` family: a menu importing that family's files would split a chunk both entries share.\n * Fomantic's country NAMES (`FLAG_ALIASES`, ~250 of them) stay there, out of `core`: a menu option takes codes.\n * - STATIC and instance-free: pure lookups.\n ****************/\nexport class Flags {\n /** Emoji of flag `code`, in any case; `\"\"` when it names no flag. */\n static emojiFor(code: string): string {\n const key = code.toLowerCase()\n if (Flags.isSpecial(key)) return SpecialFlags[key]\n if (!TWO_LETTERS.test(key)) return \"\"\n return String.fromCodePoint(...Array.from(key, (letter) => INDICATOR_A + letter.charCodeAt(0) - LETTER_A))\n }\n\n /** Is lowercase `code` a flag that isn't a country's, a key of `SpecialFlags`? */\n static isSpecial(code: string): code is SpecialFlag {\n return Object.hasOwn(SpecialFlags, code)\n }\n}\n\n/**\n * Flags that aren't a regional-indicator pair, by code: emoji ZWJ sequences, and the England / Scotland / Wales\n * subdivision flags (tag sequences named by their ISO 3166-2 codes, `gb-eng` ...).\n * - Why data: the code => emoji rule only covers two-letter codes.\n * - Each one's name is a `<ui-flag>` text, its code in camel case (`gb-eng` => `gbEng`).\n * - NOTE: subdivision flags only render where the emoji font has them (Apple, Google, Samsung, Twemoji);\n * Windows shows a black flag.\n */\nexport const SpecialFlags = {\n rainbow: \"\\u{1F3F3}\\u{FE0F}\\u{200D}\\u{1F308}\",\n transgender: \"\\u{1F3F3}\\u{FE0F}\\u{200D}\\u{26A7}\\u{FE0F}\",\n pirate: \"\\u{1F3F4}\\u{200D}\\u{2620}\\u{FE0F}\",\n \"gb-eng\": \"\\u{1F3F4}\\u{E0067}\\u{E0062}\\u{E0065}\\u{E006E}\\u{E0067}\\u{E007F}\",\n \"gb-sct\": \"\\u{1F3F4}\\u{E0067}\\u{E0062}\\u{E0073}\\u{E0063}\\u{E0074}\\u{E007F}\",\n \"gb-wls\": \"\\u{1F3F4}\\u{E0067}\\u{E0062}\\u{E0077}\\u{E006C}\\u{E0073}\\u{E007F}\"\n} as const\n\n/** Code of a flag in `SpecialFlags`, e.g. `\"gb-eng\"`. */\nexport type SpecialFlag = keyof typeof SpecialFlags\n\n/** An ISO 3166-1 alpha-2 code, lowercase. */\nconst TWO_LETTERS = /^[a-z]{2}$/\n\n/** `U+1F1E6`, REGIONAL INDICATOR SYMBOL LETTER A. */\nconst INDICATOR_A = 0x1f1e6\n\n/** Char code of `a`. */\nconst LETTER_A = 0x61\n\n////////////////\n// ## Item\n////////////////\n\n/** `<ui-item kind>`: an option, a group header, or a divider. */\nexport type ItemType = \"item\" | \"header\" | \"divider\"\n\n/**\n * How an OWNER wants its generic `<ui-item>`s rendered, from `ItemOwner.itemContext()`.\n * - The item finds its owner through `PartContext` (the owner's vocabulary `ownsParts` has `item`)\n * and reads this in a memo, so an owner attribute change\n * (`<ui-list selection>`, `<ui-menu interactive>`) re-renders every item.\n */\nexport type ItemContext = {\n /** Role of the item's DOM element (internals), e.g. `listitem`; `undefined` for none. */\n domElementRole?: string\n /** Role of the item's ROOT, e.g. `menuitem` in a menubar; `undefined` keeps the native element's. */\n role?: ItemRole\n /** An item without `href` renders a `<button>` (selection list, menubar); else a `<div>` (unless `link`). */\n interactive: boolean\n /** `aria-current` of a SELECTED item that is a link: `page` in a navigation menu. */\n current: \"page\" | \"true\"\n /**\n * The item OWNS its content parts (`:state(in-item)`): the Items view.\n * - Default false: a list's or menu's parts see through the item to the list / menu (`:state(in-list)`).\n * - See `ConditionalOwner`.\n */\n ownsParts?: boolean\n /** Classes of the `image` shorthand's `<img>`; default `ui avatar image` (a list's avatar). */\n imageClass?: string\n /**\n * Its menu fits its titles to the row (`<ui-menu shrinkable>`): the item draws its title in a box of its own\n * (`part=\"title\"`), and its title's first letter as its icon when it has none.\n * - Only for the menu's own items: a sub-menu's are never cut.\n */\n shrinkable?: boolean\n /** The menu shows its items' icons only (`:state(icons-only)`): each title is its box's tooltip too. */\n iconsOnly?: boolean\n}\n\n/** Roles an owner may give an item's root. */\nexport type ItemRole = \"menuitem\" | \"menuitemradio\" | \"menuitemcheckbox\" | \"option\" | \"treeitem\"\n\n/**\n * What an owner of `<ui-item>`s (`<ui-list>`, `<ui-menu>`, `<ui-items>`) implements on its COMPONENT;\n * the item reaches it through `PartContext.ownerComponent()` and calls `itemContext(item)`, tracked.\n * - The item also adopts the owner's `styles`: the owner's sheet holds its item rules\n * (`:host(:state(in-list)) > .item`), next to the static class-grammar ones (`.ui.list > .item`).\n */\nexport type ItemOwner = {\n /**\n * How `item` (the `<ui-item>`) renders; tracked, so an owner attribute change re-renders it.\n * - MUST read only reactive members (`@state`, `@controlled`, vocabulary getters, `@derived`):\n * `UIItem` caches it in a `@derived`, which can't see a `Cell` or a Solid memo change.\n */\n itemContext(item: Element): ItemContext\n}\n\n////////////////\n// ## Icon\n////////////////\n\n/**\n * Custom property an owner sets on itself to steer a slotted `<ui-icon>`,\n * e.g. `--_ui-icon-owner-margin: 0 0.75em 0 0` on a label root. See `UIIcon.css`.\n * - Why: a `display: contents` element takes no box styles from `::slotted()`.\n * - PRIVATE (`--_ui-`): an internal switch between components, never a theming surface.\n * See `notes/theming.md` \"Owner tokens\".\n */\nexport type IconOwnerToken =\n | \"--_ui-icon-owner-display\"\n | \"--_ui-icon-owner-size\"\n | \"--_ui-icon-owner-margin\"\n | \"--_ui-icon-owner-opacity\"\n | \"--_ui-icon-owner-align\"\n\n////////////////\n// ## Label\n////////////////\n\n/** `detail` of the cancelable `ui-removing`, from a `removable` `<ui-label>`'s delete icon. */\nexport type LabelRemoveDetail = {\n /** click / key event on the delete icon */\n originalEvent?: Event\n}\n\n////////////////\n// ## Parts\n////////////////\n\n/** `<ui-header level>`: renders `<h1>` ... `<h6>`, a page header. */\nexport type HeaderLevel = 1 | 2 | 3 | 4 | 5 | 6\n\n/**\n * Inherited tokens OWNERS set on their root for the generic content parts,\n * which style-query them (`@container style(...)`). See the \"Owner tokens\" table in `UIParts.css`.\n * - Switches are PRIVATE (`--_ui-`): what the owner's attributes decide, never a theming surface.\n * - `--ui-inverted` is the shared remap.\n * - The look tokens (`modalHeaderSize`, `statisticValueSize`) name the owner's private ALIAS of a public token\n * (`--_ui-modal-header-size: var(--ui-modal-header-size, 1.42857em)`): the page sets the public one,\n * the owner's variations write the alias, and parts read only the alias (`notes/theming.md` \"Owner tokens\").\n * - MUST be declared on EVERY root of the owner, default value included,\n * so a nested owner never inherits an outer owner's layout.\n * - `inverted` owners also set `color-scheme: dark`; the token is only for looks the dark scheme doesn't give.\n */\nexport const PartOwnerTokens = {\n inverted: \"--ui-inverted\",\n cardLayout: \"--_ui-card-layout\",\n cardLeading: \"--_ui-card-leading\",\n itemLayout: \"--_ui-item-layout\",\n itemState: \"--_ui-item-state\",\n commentsMinimal: \"--_ui-comments-minimal\",\n modalBasic: \"--_ui-modal-basic\",\n modalHeaderSize: \"--_ui-modal-header-size\",\n messageLayout: \"--_ui-message-layout\",\n listLayout: \"--_ui-list-layout\",\n itemMedia: \"--_ui-item-media\",\n eventLabel: \"--_ui-event-label\",\n statisticLayout: \"--_ui-statistic-layout\",\n statisticValueSize: \"--_ui-statistic-value-size\",\n stepState: \"--_ui-step-state\",\n stepLayout: \"--_ui-step-layout\",\n accordionStyle: \"--_ui-accordion-style\",\n accordionOpen: \"--_ui-accordion-open\",\n searchResult: \"--_ui-search-result\",\n headerLayout: \"--_ui-header-layout\",\n labelLayout: \"--_ui-label-layout\",\n part: \"--_ui-part\"\n} as const\n\n/**\n * Class a STATIC part carries in place of the `:state(in-<owner>)` its element sets, e.g. `in-card`.\n * - Elements NEVER set it: it exists for static markup (examples, SSR without scripts); see `UIParts.css`.\n * - Same text as `OwnerContext.stateName(ownerNoun)`.\n */\nexport const PART_STATIC_CLASS_PREFIX = \"in-\"\n\n/**\n * Marks the NATIVE control in a static server render (`spell/ui/static`), for the flattener:\n * the DOM element's `id` and ARIA names belong there,\n * so a `<label for>` naming the DOM element's id labels the control.\n * - Elements NEVER set it in a browser;\n * `StaticFlattener` moves the DOM element's `id` / `aria-label*` / `aria-describedby` there,\n * then drops the mark (seo plan, T5).\n */\nexport const STATIC_CONTROL = \"data-ui-control\"\n\n/**\n * Marks each component ROOT in a static server render (`spell/ui/static`) with its family's kind (`data-ui=\"table\"`).\n * - The flattener writes it (as `SSR.ROOT_ATTRIBUTE`, which IS this);\n * a component writes it itself only on what the flattener never sees as a root:\n * `<ui-table>`'s slotted author table.\n * - PUBLISHED spelling: component sheets (`:not([data-ui])`) and `native.css` spell it out.\n */\nexport const STATIC_ROOT = \"data-ui\"\n\n////////////////\n// ## Grid\n////////////////\n\n/**\n * Size container a top-level `<ui-grid>` establishes (`container: ui-grid / inline-size`), see `UIGrid.css`.\n * - `stackable`, `doubling`, `reversed` and per-device widths answer to it, not to the viewport\n * (unless `stack-with=\"page\"`, see \"Stacking\").\n * - Page CSS may query it too, e.g. `@container ui-grid (width < 768px) { ... }` inside a column.\n */\nexport const GRID_CONTAINER_NAME = \"ui-grid\"\n\n////////////////\n// ## Stacking\n////////////////\n\n/**\n * `stack-with`'s values: what a stacking layout's breakpoints (`stackable`, `doubling` ...) compare with.\n * - `container`: the element's OWN width (container queries), the default\n * - `page`: the screen's width (`@media`), as Fomantic\n * - On `<ui-grid>`, `<ui-cards>`, `<ui-steps>`, `<ui-form>`, `<ui-items>`, `<ui-statistics>`, and on `<ui-root>`,\n * which sets `STACK_WITH_TOKEN` for everything inside\n */\nexport const StackWithValues = [\"container\", \"page\"] as const\n\n/** One of `StackWithValues`. */\nexport type StackWith = (typeof StackWithValues)[number]\n\n/**\n * Page-wide token the stacking sheets read when an element has no `stack-with` of its own:\n * `--ui-stack-with: page` on any ancestor (`<ui-root stack-with=\"page\">` sets it).\n * - Inherited, global: NOT a component token, declared nowhere by default (unset ~== `container`)\n */\nexport const STACK_WITH_TOKEN = \"--ui-stack-with\"\n\n/**\n * Prefix of the private class an element's `stack-with` adds before the noun: `ui stackable stack-with-page grid`.\n * - A class, not a `:state()` of the DOM element:\n * `:state()` rules left WebKit with stale viewport media queries (`UITable.css`'s `stack-by`, the same mechanism)\n * - From the CANONICAL value, so a translated attribute still works\n */\nexport const STACK_WITH_CLASS = \"stack-with-\"\n\n/****************\n * ### `StackClasses`\n * The class `stack-with` adds, shared by every element that has the attribute.\n * - STATIC and instance-free: a pure lookup.\n ****************/\nexport class StackClasses {\n /** `stack-with-page` / `stack-with-container` for `value`; `undefined` when unset (the token decides). */\n static classFor(value: StackWith | undefined): string | undefined {\n return value ? `${STACK_WITH_CLASS}${value}` : undefined\n }\n}\n\n////////////////\n// ## Space\n////////////////\n\n/**\n * The theme's space steps by the words a page writes => their token:\n * `<ui-stack spacing=\"sm\">`, `<ui-space width=\"lg\">`.\n * - `none` is no space at all.\n */\nexport const SpaceSteps = {\n none: \"0\",\n xs: \"var(--ui-space-xs)\",\n sm: \"var(--ui-space-s)\",\n md: \"var(--ui-space-m)\",\n lg: \"var(--ui-space-l)\",\n xl: \"var(--ui-space-xl)\"\n} as const\n\n/** One of the words of `SpaceSteps`. */\nexport type SpaceStep = keyof typeof SpaceSteps\n\n////////////////\n// ## Menu appearance\n////////////////\n\n/**\n * `appearance` of `<ui-menu>` and `<ui-tabs>` (whose tab list IS a menu): the menu's LOOK, one word.\n * - Each value emits itself as the class word (`kind: \"valueOnly\"`),\n * so `appearance=\"tabular\"` ~== the older boolean `tabular`, which stays as an alias;\n * `appearance=\"pointing\" secondary` ~== `secondary pointing`.\n * - `segmented` is ours, a segmented control: a bordered group of joined items,\n * the selected one filled with the menu's colour (the primary colour by default).\n * It hugs its items; `alignment` places it.\n * - NOTE: not `vertical` (an orientation every look combines with) or `basic` (`<ui-tabs appearance=\"basic\">` is the panes')\n */\nexport const MenuAppearances = [\"tabular\", \"pointing\", \"secondary\", \"text\", \"segmented\"] as const\n\n/** One of `MenuAppearances`. */\nexport type MenuAppearance = (typeof MenuAppearances)[number]\n\n/**\n * `alignment` of `<ui-menu>` and `<ui-tabs>`: where the items sit along the bar, emitted as `<value> aligned`.\n * - `fluid`: the items fill the bar (each grows from its own width; with `equal`, every item the same share)\n * - `left` / `center` / `right`: the items pack at that end; the bar itself spans the row,\n * except a `segmented` one, which IS its items and moves as a whole\n * - Unset: as before (packed left, the bar as its look makes it)\n */\nexport const ItemAlignments = [\"fluid\", \"left\", \"center\", \"right\"] as const\n\n/** One of `ItemAlignments`. */\nexport type ItemAlignment = (typeof ItemAlignments)[number]\n\n////////////////\n// ## Message\n////////////////\n\n/** `detail` of the cancelable `ui-closing`, from a `dismissible` `<ui-message>`'s close button. */\nexport type MessageDismissDetail = {\n /** click / key event on the close button */\n originalEvent?: Event\n}\n\n////////////////\n// ## Breadcrumb\n////////////////\n\n/**\n * Inherited tokens a `<ui-breadcrumbs>` sets INLINE on its root,\n * which every `<ui-breadcrumb>` draws as its leading divider. See \"Dividers\" in `UIBreadcrumbs.css`.\n * - `text` -- a CSS STRING (`\"›\"`), from `divider`; quote and escape it as CSS (`\\\"`, `\\\\`, `\\A `), not JSON\n * - `icon` -- an `<image>`, `url(\"data:image/svg+xml,...\")` of the `divider-icon` SVG;\n * painted as a mask in `currentColor`\n * - `layout` -- `icon` while `divider-icon` is set; removed otherwise.\n * PRIVATE (`--_ui-`): a switch the element decides; static markup sets it by hand\n */\nexport const BreadcrumbDividerTokens = {\n text: \"--ui-breadcrumb-divider\",\n icon: \"--ui-breadcrumb-divider-icon\",\n layout: \"--_ui-breadcrumb-divider-layout\"\n} as const\n\n////////////////\n// ## Placeholder\n////////////////\n\n/**\n * Custom state every `<ui-placeholder>` MUST carry, always:\n * `UIPlaceholder.css` spaces consecutive placeholders with `:host(:nth-child(n + 2 of :state(placeholder)))`,\n * since a shadow root can't see its host's previous sibling.\n */\nexport const PLACEHOLDER_HOST_STATE = \"placeholder\"\n\n////////////////\n// ## Input\n////////////////\n\n/** `detail` of `ui-input` (every keystroke) and `ui-changed` (commit), from `<ui-input>` / `<ui-textarea>`. */\nexport type InputChangeDetail = {\n /** value after the change */\n value: string\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/**\n * Inherited tokens an OWNER sets for the text controls inside it (`UIInput.css`), e.g. `<ui-field>` on its root.\n * - `width` -- the DOM element's inline size (`100%` in a field, `auto` in an inline one)\n * - `color` / `background` / `border` -- a field's state, as RESOLVED colours\n * (declared where the state's remap runs), so a control's own `state` still wins\n */\nexport const InputOwnerTokens = {\n width: \"--_ui-input-owner-width\",\n color: \"--_ui-field-state-color\",\n background: \"--_ui-field-state-background\",\n border: \"--_ui-field-state-border\"\n} as const\n\n////////////////\n// ## Checkbox\n////////////////\n\n/** `detail` of `ui-changed`, from `<ui-checkbox>` / `<ui-radio>`. */\nexport type CheckboxChangeDetail = {\n /** chosen after the change */\n selected: boolean\n /** what it stands for after the change: its `value` (default `on`), or once unchosen its `off-value`, if any */\n value: string\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Form\n////////////////\n\n/** One field's value as `<ui-form>` reads it (`values`): the `Validator`'s `E.FieldValue`. */\nexport type FormFieldValue = E.FieldValue\n\n/** `<ui-form>`'s `values`: by field name (or id). */\nexport type FormValues = Record<string, E.FieldValue>\n\n/**\n * One field's rules in `<ui-form rules>`, Fomantic's `fields` shape:\n * - a shorthand string (`\"notEmpty\"`, `\"minLength[6]\"`) or a list of them / rule objects\n * - or `{ rules, optional?, depends?, identifier? }`:\n * - `optional` skips a blank field\n * - `depends` skips the field while another is blank\n * - `identifier` names the control when the key doesn't\n * - NOTE: Fomantic's deprecated `empty` means `notEmpty`\n */\nexport type FormFieldRules =\n | E.ValidationRule\n | readonly E.ValidationRule[]\n | {\n /** the rules, in order */\n rules: readonly E.ValidationRule[]\n /** skip the field while it's blank */\n optional?: boolean\n /** skip the field while the field of this name is blank */\n depends?: string\n /** the control's name or id, when the key isn't */\n identifier?: string\n }\n\n/** `<ui-form>`'s `rules` property. */\nexport type FormRules = Record<string, FormFieldRules>\n\n/** `detail` of `ui-valid`. */\nexport type FormValidDetail = {\n /** field name (or id) */\n field: string\n /** the field's value */\n value: E.FieldValue\n /** every field's value */\n values: FormValues\n}\n\n/** `detail` of `ui-invalid`. */\nexport type FormInvalidDetail = FormValidDetail & {\n /** the field's prompts */\n errors: string[]\n}\n\n/** `detail` of the cancelable `ui-saving`. */\nexport type FormSuccessDetail = {\n /** every field's value */\n values: FormValues\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-save-failed`. */\nexport type FormFailureDetail = FormSuccessDetail & {\n /** prompts by field */\n errors: Record<string, string[]>\n}\n\n/** One edit `<ui-form apply=\"on save\">` holds: `target[name] = value`, once saved. */\nexport type FormChange = {\n /** the property */\n name: string\n /** its new value */\n value: unknown\n /** the thing it's written to: the form's `value`, one of its things, or a `<ui-repeat>` row's item */\n target: object\n}\n\n/** `detail` of `ui-saving` (cancelable: the edits stay held) and `ui-saved`. */\nexport type FormSaveDetail = {\n /** the held edits, in the order they were made */\n changes: readonly FormChange[]\n /** the form's `value` */\n value: unknown\n}\n\n/** `detail` of `ui-cancelling` (cancelable: the edits stay held) and `ui-cancelled`. */\nexport type FormCancelDetail = {\n /** the held edits, dropped */\n changes: readonly FormChange[]\n}\n\n/**\n * Custom state every `<ui-field>` carries, always:\n * `<ui-form>` finds a control's field with `control.closest(\":state(field)\")`,\n * whatever the field's tag is called in a translation.\n */\nexport const FIELD_HOST_STATE = \"field\"\n\n////////////////\n// ## Table\n////////////////\n\n/** Direction of a sorted `<ui-table>` column (`sort-direction`, `aria-sort`). */\nexport type TableSortDirection = \"ascending\" | \"descending\"\n\n/** `detail` of the cancelable `ui-sorting`, from a `sortable` `<ui-table>`'s header. */\nexport type TableSortDetail = {\n /** column index (0-based, counting `colspan`s) */\n column: number\n /** data mode: the column's `key`; slotted: the header's `data-key`, if any */\n key?: string\n /** direction it's ABOUT to sort in: flipped for the sorted column, else `ascending` */\n direction: TableSortDirection\n /** click / key event on the header */\n originalEvent?: Event\n}\n\n/** One column of `<ui-table>`'s data mode (`columnDefs`). */\nexport type TableColumn = {\n /** property of each row shown in this column */\n key: string\n /** header text; default `key` */\n header?: string\n /** cell alignment (`left aligned` ...) */\n textAlign?: \"left\" | \"center\" | \"right\"\n /** `false` opts the column out of sorting; default sortable when the table is */\n sortable?: boolean\n /** Fomantic width, `1` ... `16` (or `1/4`, `25%`): `four wide` */\n width?: number | string\n}\n\n/** One row of `<ui-table>`'s data mode (`rows`): values by column key, shown as text. */\nexport type TableRow = Record<string, unknown>\n\n/**\n * Header attribute that opts one `th` out of a `sortable` table: `data-sortable=\"false\"`.\n * - Fomantic's `class=\"disabled\"` on a `th` opts out too (and greys it on hover).\n */\nexport const TABLE_SORT_OPT_OUT = { attribute: \"data-sortable\", value: \"false\" } as const\n\n/** Header attribute naming a slotted column for `ui-sorting`'s `key`, e.g. `<th data-key=\"name\">`. */\nexport const TABLE_SORT_KEY = \"data-key\"\n\n////////////////\n// ## List\n////////////////\n\n/** `detail` of `ui-select`, from a `<ui-list>` when one of its interactive items is activated. */\nexport type ListSelectDetail = {\n /** the item's `value`, else its `text`, else its trimmed text content */\n value: string\n /** the `<ui-item>` */\n item: Element\n /** click (or the click Enter / Space made) on the item's link / button */\n originalEvent?: Event\n}\n\n////////////////\n// ## Card\n////////////////\n\n/**\n * Variations of a `<ui-cards>` group that every card in it takes as its OWN class,\n * when it doesn't set the attribute itself (Fomantic's `.ui.raised.cards > .card`).\n * - Read through `UICards.variationFor()`.\n */\nexport type CardSharedVariation = \"size\" | \"color\" | \"direction\" | \"appearance\" | \"inverted\"\n\n////////////////\n// ## Popup\n////////////////\n\n/**\n * What opens a `<ui-popup>` (`open-on`): Fomantic's names; `hover` also opens on keyboard focus.\n * - A const object (the `Key` shape), so the element compares `trigger === UIT.PopupTrigger.click`.\n */\nexport const PopupTrigger = { hover: \"hover\", focus: \"focus\", click: \"click\", manual: \"manual\" } as const\n/** One of `PopupTrigger`'s values, e.g. `\"click\"`. */\nexport type PopupTrigger = (typeof PopupTrigger)[keyof typeof PopupTrigger]\n\n/** Every `PopupTrigger`, in Fomantic's order: the vocabulary's `open-on` values. */\nexport const PopupTriggers = [PopupTrigger.hover, PopupTrigger.focus, PopupTrigger.click, PopupTrigger.manual] as const\n\n/** `detail` of the cancelable `ui-opening` / `ui-closing`, from a `<ui-popup>`. */\nexport type PopupOpenDetail = {\n /** state it's ABOUT to enter: shown or hidden (the shared `visible`) */\n visible: boolean\n /** pointer / focus / click / key event that caused it; none for a delayed hover or a dismissal request */\n originalEvent?: Event\n}\n\n////////////////\n// ## Modal\n////////////////\n\n/**\n * Why a `<ui-modal>` is closing, in `ui-closing`'s `detail.reason`.\n * - `escape` / `outside` / `close-all` -- as `UI.overlays` asks (`DismissReason`);\n * `outside` is a click on the `::backdrop`\n * - `close` -- the close icon\n * - `approve` / `deny` -- an approve / deny button (after its own `ui-approving` / `ui-denying`)\n */\nexport type ModalCloseReason = \"escape\" | \"outside\" | \"close-all\" | \"close\" | \"approve\" | \"deny\"\n\n/** `detail` of the cancelable `ui-opening`, and of `ui-opened` / `ui-closed` (after the transition). */\nexport type ModalOpenDetail = {\n /** state it's entering / entered: shown or hidden (the shared `visible`) */\n visible: boolean\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-closing`. */\nexport type ModalCloseDetail = {\n /** always `false`: it's closing */\n visible: false\n /** why it's closing */\n reason: ModalCloseReason\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-approving` / `ui-denying`. */\nexport type ModalActionDetail = {\n /** the button (or other element) that was activated, in the light DOM */\n action: Element\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/**\n * Which activated elements inside a `<ui-modal>` approve or deny it:\n * Fomantic's `.actions` classes, plus the `positive` / `negative` attributes of a `<ui-button>`.\n * - Matched against the light-DOM elements on a click's composed path, innermost first;\n * the native fallback uses the same selectors.\n */\nexport const ModalActionSelectors = {\n approve: `.approve, .ok, .positive, [color=\"positive\"], [positive]:not([positive=\"false\"], [positive=\"no\"])`,\n deny: `.deny, .cancel, .negative, [color=\"negative\"], [negative]:not([negative=\"false\"], [negative=\"no\"])`\n} as const\n\n/** One of `ModalActionSelectors`: `approve` or `deny`. */\nexport type ModalAction = keyof typeof ModalActionSelectors\n\n/**\n * Which element a click inside a `<ui-modal>` or `<ui-toast>` acted through (`ModalActionSelectors`):\n * the dialog's and the toast's ONE walk.\n */\nexport class ModalActions {\n /** How `element` acts: `approve`, `deny`, or neither (`undefined`). */\n static of(element: Element): ModalAction | undefined {\n if (element.matches(ModalActionSelectors.approve)) return \"approve\"\n if (element.matches(ModalActionSelectors.deny)) return \"deny\"\n return undefined\n }\n\n /**\n * The light-DOM elements `event` went through inside `host`, innermost first, up to `host` (not included):\n * the elements of `host`'s own tree on its composed path.\n */\n static *lightPath(event: Event, host: Element): Generator<Element> {\n const scope = host.getRootNode()\n for (const target of event.composedPath()) {\n if (target === host) return\n // elements only: the path ends in shadow roots, the document and the window, which can't `matches()`\n const element = target as Partial<Element>\n if (element.matches && element.getRootNode?.() === scope) yield target as Element\n }\n }\n}\n\n////////////////\n// ## Select\n////////////////\n\n/** A select's value: one string, or one per chosen option with `multiple`. */\nexport type SelectValue = string | string[]\n\n/** `options` property of `<ui-select>`: the `MenuOptions` model's option shape, as the dropdown's. */\nexport type SelectOptions = readonly E.MenuOption[]\n\n/** `detail` of `ui-changed`, from `<ui-select>`. */\nexport type SelectChangeDetail = {\n /** value after the change */\n value: SelectValue\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Search\n////////////////\n\n/**\n * One result of a `<ui-search>`, Fomantic's result fields;\n * other fields may ride along (`search-fields` can name them).\n */\nexport type SearchResult = {\n /** shown, and what choosing the result puts in the input */\n title: string\n /** shown under the title */\n description?: string\n /** image URL, shown at the result's end */\n image?: string\n /** `alt` of the image; default `\"\"` (decorative) */\n alt?: string\n /** shown at the end, in green */\n price?: string\n /** the `category` variation groups a LOCAL source by it */\n category?: string\n /** choosing the result follows it; the result is a link */\n url?: string\n /** Fomantic's result id: the page's own, unread here; it rides along in `ui-select`'s `result` */\n id?: string\n [field: string]: unknown\n}\n\n/** A named group of results, Fomantic's category shape (`{ name, results }`). */\nexport type SearchCategory = {\n /** the category's heading */\n name: string\n /** its results, in order */\n results: readonly SearchResult[]\n}\n\n/**\n * What a remote `url` may answer, as Fomantic's API search:\n * - `{ results: SearchResult[] }` -- standard\n * - `{ results: { [key]: SearchCategory } }` or `{ results: SearchCategory[] }` -- category\n * - a bare `SearchResult[]`\n */\nexport type SearchResponse =\n | readonly SearchResult[]\n | { results?: readonly SearchResult[] | readonly SearchCategory[] | Readonly<Record<string, SearchCategory>> }\n\n/**\n * How a local search matches, Fomantic's `fullTextSearch`:\n * a query at the START of a word always matches (and sorts first); then\n * - `exact` -- anywhere in the field (default)\n * - `fuzzy` -- its characters in order, gaps allowed (Fomantic's `true`)\n * - `prefix` -- nothing more (Fomantic's `false`)\n * - `some` -- any of its words, anywhere\n * - `all` -- all of its words, anywhere in the fields together\n *\n * A const object (the `Key` shape), so `SearchMatcher` compares `match === UIT.SearchMatch.fuzzy`.\n */\nexport const SearchMatch = { exact: \"exact\", fuzzy: \"fuzzy\", prefix: \"prefix\", some: \"some\", all: \"all\" } as const\n/** One of `SearchMatch`'s values, e.g. `\"fuzzy\"`. */\nexport type SearchMatch = (typeof SearchMatch)[keyof typeof SearchMatch]\n\n/** Every `SearchMatch`, in Fomantic's order: the vocabulary's `full-text-search` values. */\nexport const SearchMatches = [\n SearchMatch.exact,\n SearchMatch.fuzzy,\n SearchMatch.prefix,\n SearchMatch.some,\n SearchMatch.all\n] as const\n\n/** `detail` of the cancelable `ui-select`, from `<ui-search>`. */\nexport type SearchSelectDetail = {\n /** the result chosen */\n result: SearchResult\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-searched`: the query about to run. */\nexport type SearchQueryDetail = {\n /** the query */\n query: string\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-replied`: what a query found (before `max-results` for a remote one). */\nexport type SearchResultsDetail = {\n /** the query */\n query: string\n /** what matched */\n results: readonly SearchResult[]\n}\n\n/** `detail` of `ui-changed`, from `<ui-search>`: its text was committed. */\nexport type SearchChangeDetail = {\n /** the committed text */\n value: string\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Toast\n////////////////\n\n/**\n * Why a `<ui-toast>` is closing, in `ui-closing` / `ui-closed`'s `detail.reason`.\n * - `timeout` -- its display time ran out\n * - `close` -- the close icon\n * - `click` -- a click on it (`close-on-click`)\n * - `escape` -- Escape with focus inside it\n * - `approve` / `deny` / `action` -- an action button (after its own `ui-approving` / `ui-denying`)\n * - `dismiss` -- script: `element.close()`, `UI.toasts.dismiss(id)`\n * - `close-all` -- `UI.overlays.closeAll(\"toast\")`\n */\nexport type ToastCloseReason =\n | \"timeout\"\n | \"close\"\n | \"click\"\n | \"escape\"\n | \"approve\"\n | \"deny\"\n | \"action\"\n | \"dismiss\"\n | \"close-all\"\n\n/** `detail` of the cancelable `ui-closing`, and of `ui-closed` (without the event). */\nexport type ToastCloseDetail = {\n /** why it's closing */\n reason: ToastCloseReason\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-opened`. */\nexport type ToastShowDetail = {\n /** ms it stays before closing itself; `0` for \"until closed\" */\n displayTime: number\n}\n\n/** `detail` of the cancelable `ui-approving` / `ui-denying`, from a `<ui-toast>`. */\nexport type ToastActionDetail = {\n /** the button (or other element) that was activated, in the light DOM */\n action: Element\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Nag\n////////////////\n\n/** Where a `<ui-nag>` remembers its dismissal (`storage`). */\nexport type NagStorage = \"local\" | \"session\" | \"cookie\"\n\n/**\n * Why a `<ui-nag>` is closing, in `ui-closing` / `ui-closed`'s `detail.reason`.\n * - `close` -- its close icon (the dismissal is stored)\n * - `timeout` -- its display time ran out (nothing stored)\n * - `dismiss` -- script: `element.close()` (stored)\n */\nexport type NagCloseReason = \"close\" | \"timeout\" | \"dismiss\"\n\n/** `detail` of the cancelable `ui-closing`, and of `ui-closed` (without the event). */\nexport type NagCloseDetail = {\n /** why it's closing */\n reason: NagCloseReason\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Sticky\n////////////////\n\n/** Which viewport edge a `<ui-sticky>` is stuck to. */\nexport type StickyEdge = \"top\" | \"bottom\"\n\n/** `detail` of `ui-stuck` / `ui-unstuck`. */\nexport type StickyDetail = {\n /** the edge it stuck to (`ui-stuck`) or left (`ui-unstuck`) */\n edge: StickyEdge\n}\n\n////////////////\n// ## Embed\n////////////////\n\n/** Known video hosts of `<ui-embed source>`. */\nexport type EmbedSource = \"youtube\" | \"vimeo\"\n\n/** `detail` of the cancelable `ui-loading`, from a `<ui-embed>` about to load its frame. */\nexport type EmbedActivateDetail = {\n /** the frame's `src`, parameters included */\n url: string\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Animation\n//\n// Fomantic's animation names, as `<ui-transition>` always took them, for:\n// - the shared `animation` attribute every element takes (`SharedVocabulary`)\n// - `elementSetup.animation`, a family's default\n////////////////\n\n/** Fomantic's appear / disappear animations: run `in` or `out`, as `visible` / `hidden` change. */\nexport const VisibilityAnimations = [\n \"fade\",\n \"fade up\",\n \"fade down\",\n \"fade left\",\n \"fade right\",\n \"scale\",\n \"zoom\",\n \"drop\",\n \"browse\",\n \"browse right\",\n \"fly\",\n \"fly up\",\n \"fly down\",\n \"fly left\",\n \"fly right\",\n \"slide\",\n \"slide up\",\n \"slide down\",\n \"slide left\",\n \"slide right\",\n \"swing\",\n \"swing up\",\n \"swing down\",\n \"swing left\",\n \"swing right\",\n \"horizontal flip\",\n \"vertical flip\"\n] as const\n\n/**\n * Fomantic's attention animations: run in place, visibility unchanged (`<ui-transition>`'s `transition()`).\n * - As an element's `animation`, showing and hiding happen at once.\n */\nexport const AttentionAnimations = [\"flash\", \"shake\", \"bounce\", \"tada\", \"pulse\", \"jiggle\", \"glow\"] as const\n\n/** `animation=\"none\"`: no motion, for the element and everything inside it (`--ui-motion: none`). */\nexport const NO_ANIMATION = \"none\"\n\n/** Every value `animation` takes: Fomantic's names, then `none`. */\nexport const Animations = [...VisibilityAnimations, ...AttentionAnimations, NO_ANIMATION] as const\n\n/**\n * The faces the shared `font` takes, any together (`font=\"bold italic\"`; epic `ui-gaps` P3): how letters look.\n * - `all-caps` and `title-caps` change its letters' case (Owen, 2026-10-27):\n * every letter a capital, or each word's first.\n * - `<ui-text>` draws each as its HTML element (`<strong>`, `<em>`, `<code>`, `<mark>`, `<sub>`, `<sup>` ...),\n * and takes each as a bare attribute too (`<ui-text bold>`; epic `elemental-spell` P26);\n * every other element shows the look alone (`reset.css`).\n */\nexport const FontFaces = [\n \"bold\",\n \"italic\",\n \"underline\",\n \"strikethrough\",\n \"code\",\n \"highlight\",\n \"subscript\",\n \"superscript\",\n \"all-caps\",\n \"title-caps\"\n] as const\n\n/** One of them. */\nexport type FontFace = (typeof FontFaces)[number]\n\n/**\n * The families the shared `font` takes, the theme's (epic `elemental-spell` P26): `font=\"bold serif\"`.\n * - One at a time: written together, the first of `code`, `headline`, `subhead`, `serif`, `sans-serif`,\n * `typewriter` wins.\n * - Each is a theme token: `--ui-font-family-heading`, `-subhead`, `-serif`, `-sans`, `-typewriter`;\n * `code` is a face, `<code>`'s look.\n */\nexport const FontFamilies = [\"headline\", \"subhead\", \"serif\", \"sans-serif\", \"typewriter\"] as const\n\n/** One of them. */\nexport type FontFamily = (typeof FontFamilies)[number]\n\n/**\n * Every word the shared `font` takes: its faces, then its families.\n * - And a size, not a word: `font=\"14\"` is 14px, `font=\"10/20\"` 10px on 20px lines\n * (`UIComponent.sharedFontSize`).\n */\nexport const FontWords = [...FontFaces, ...FontFamilies] as const\n\n/** One of them. */\nexport type FontWord = (typeof FontWords)[number]\n\n/** One of `Animations`, Fomantic's spelling (`fade up`), or `\"none\"`. */\nexport type Animation = (typeof Animations)[number]\n\n/** The animation used when neither the element nor its family names one. */\nexport const DEFAULT_ANIMATION = \"fade\" satisfies Animation\n\n/**\n * The custom property `animation=\"none\"` sets, which every element inside inherits: `--ui-motion: none`.\n * - A page turns all motion off with `<ui-root animation=\"none\">`, or `:root { --ui-motion: none }`.\n */\nexport const MOTION_PROPERTY = \"--ui-motion\"\n\n/**\n * Fomantic's animations, added to spell-element's (`E.ElementAnimation`), so a family's `elementSetup.animation` and\n * an element's `animationToRun` are Spell UI's `Animation`.\n */\ndeclare module \"spell/element/elements.types\" {\n interface ElementAnimations extends Record<Animation, true> {}\n}\n\n/**\n * Lookups between Fomantic's animation names (`fade up`) and the runtime's catalogue (`fade-up`, `E.AnimationNames`).\n * - Static: pure lookups over the tables above.\n */\nexport class AnimationLookup {\n /** Fomantic's name for `animation` (either spelling), or `undefined` when it isn't one. */\n static fomanticNameFor(animation: string): Animation | undefined {\n const text = animation.trim().replace(/\\s+/g, \" \")\n if ((Animations as readonly string[]).includes(text)) return text as Animation\n return Animations.find((name) => AnimationLookup.runtimeNameFor(name) === text)\n }\n\n /** The runtime catalogue's name for Fomantic's: `fade up` => `fade-up`, `horizontal flip` => `flip-horizontal`. */\n static runtimeNameFor(animation: string): E.AnimationName {\n const special = RUNTIME_ANIMATION_NAMES[animation]\n return (special ?? animation.replace(/ /g, \"-\")) as E.AnimationName\n }\n\n /** An attention animation (runs in place, `shake`)? */\n static isAttention(animation: string): boolean {\n return (AttentionAnimations as readonly string[]).includes(animation)\n }\n\n /**\n * Which runtime keyframes to run for `animation`, in a family whose own sheet animates it\n * (a modal's or a popup's CSS transition).\n * - `undefined`: leave it to the sheet, for\n * - `familyAnimation`: the family's default (its `elementSetup.animation`), the look its sheet draws\n * - `none`: at once, since turning motion off stills the sheet's transition too\n * - an attention animation (`shake`)\n * - Any other: its runtime name, for `UI.transitions` to run instead of the sheet's.\n */\n static keyframesBeside(animation: Animation, familyAnimation: Animation): E.AnimationName | undefined {\n if (animation === NO_ANIMATION || animation === familyAnimation) return undefined\n return AnimationLookup.isAttention(animation) ? undefined : AnimationLookup.runtimeNameFor(animation)\n }\n}\n\n/** Fomantic names whose runtime name isn't the kebab-cased one. */\nconst RUNTIME_ANIMATION_NAMES: Readonly<Record<string, string>> = {\n \"horizontal flip\": \"flip-horizontal\",\n \"vertical flip\": \"flip-vertical\",\n slide: \"slide-down\",\n swing: \"swing-down\"\n}\n\n////////////////\n// ## Transition\n////////////////\n\n/** `detail` of `ui-opened` / `ui-closed` / `ui-animated`, from a `<ui-transition>` once an animation has run. */\nexport type TransitionDetail = {\n /** shown now */\n visible: boolean\n /** the animation that ran, Fomantic's name (`fade up`) */\n animation: string\n}\n\n/**\n * Invoker commands a `<ui-transition>` answers, `<button commandfor=\"id\" command=\"--toggle\">`:\n * - `--show` / `--close` / `--toggle` -- animate in / out / whichever it isn't\n * - `--transition` -- run its `animation` (an attention one in place)\n */\nexport const TransitionCommands = {\n show: \"--show\",\n close: \"--close\",\n toggle: \"--toggle\",\n transition: \"--transition\"\n} as const\n\n////////////////\n// ## Dimmer\n////////////////\n\n/**\n * Why a `<ui-dimmer>` is hiding, in `ui-closing`'s `detail.reason`.\n * - `escape` / `close-all` -- as `UI.overlays` asks (a page dimmer)\n * - `click` -- a click on the dimmer itself, outside its content (`closedby=\"any\"`)\n * - `hover` -- the pointer and focus left a `show-on=\"hover\"` dimmer's target\n */\nexport type DimmerCloseReason = \"escape\" | \"close-all\" | \"click\" | \"hover\"\n\n/** `detail` of the cancelable `ui-opening`, and of `ui-opened` / `ui-closed` (after the transition). */\nexport type DimmerOpenDetail = {\n /** state it's entering / entered: shown or hidden (the shared `visible`) */\n visible: boolean\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-closing`. */\nexport type DimmerCloseDetail = {\n /** always `false`: it's hiding */\n visible: false\n /** why it's hiding */\n reason: DimmerCloseReason\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n////////////////\n// ## Sidebar\n////////////////\n\n/**\n * Why a `<ui-sidebar>` is closing, in `ui-closing`'s `detail.reason`.\n * - `escape` / `outside` / `close-all` -- as `UI.overlays` asks;\n * `outside` is a click on the pusher (or anywhere else outside the sidebar)\n * - `close` -- the `--close` / `--toggle` invoker command\n */\nexport type SidebarCloseReason = \"escape\" | \"outside\" | \"close-all\" | \"close\"\n\n/** `detail` of the cancelable `ui-opening`, and of `ui-opened` / `ui-closed` (after the transition). */\nexport type SidebarOpenDetail = {\n /** state it's entering / entered */\n visible: boolean\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-closing`. */\nexport type SidebarCloseDetail = {\n /** always `false`: it's closing */\n visible: false\n /** why it's closing */\n reason: SidebarCloseReason\n /** event of the person's action, when there was one */\n originalEvent?: Event\n}\n\n/****************\n * ### `ToggleCommands`\n * Invoker commands that show, close or toggle an element (`<button commandfor=\"id\" command=\"--toggle\">`),\n * answered by `<ui-modal>`, `<ui-flyout>`, `<ui-sidebar>`, `<ui-dimmer>`, `<ui-popup>`, `<ui-dropdown>`\n * and `<ui-toast>` (`--close` only).\n * - Custom commands, since a custom element gets no built-in ones (`show-modal` only reaches a real `<dialog>`).\n * - All are user actions: the cancelable `ui-opening` / `ui-closing` first.\n * - The words, `ToggleCommands.show` ... (as `TransitionCommands` / `ShapeCommands` hold theirs), and `action()`,\n * the shared first step of every family's `onCommand`.\n * - Static: one set of words per page.\n ****************/\nexport class ToggleCommands {\n /** `--show`: open. */\n static readonly show = \"--show\"\n\n /** `--close`: close, reason `close`. */\n static readonly close = \"--close\"\n\n /** `--toggle`: either. */\n static readonly toggle = \"--toggle\"\n\n /**\n * What `event` asks of an element that is `open` now:\n * `\"show\"`, `\"close\"`, or `undefined` for a command it doesn't know (`--toggle` flips `open`).\n */\n static action(event: Event, open: boolean): \"show\" | \"close\" | undefined {\n const { command } = event as Event & { command?: string }\n if (command === ToggleCommands.show || (command === ToggleCommands.toggle && !open)) return \"show\"\n if (command === ToggleCommands.close || command === ToggleCommands.toggle) return \"close\"\n return undefined\n }\n}\n\n/** Custom state every `<ui-pusher>` carries: `<ui-pushable>` finds and moves it by this, whatever its tag. */\nexport const PUSHER_HOST_STATE = \"pusher\"\n\n/** Custom state every `<ui-sidebar>` carries: `<ui-pushable>` finds its sidebars by this. */\nexport const SIDEBAR_HOST_STATE = \"sidebar\"\n\n/** Custom state every `<ui-pushable>` carries: a `<ui-sidebar>` finds its pushable by this. */\nexport const PUSHABLE_HOST_STATE = \"pushable\"\n\n/**\n * Inherited tokens a `<ui-pushable>` sets INLINE on its root for its `<ui-pusher>`s (`UISidebar.css`),\n * from the visible sidebar:\n * - `transform` -- where the pusher moves (`translate3d(260px, 0, 0)`, `scale(0.75)`), `none` when nothing is open\n * - `origin` -- its `transform-origin` (scale down)\n * - `dimmed` -- `1` while a modal sidebar is open: the pusher's dimmer shows\n * - `blurring` -- `1` while that sidebar is `blurring`: the dimmer blurs the pusher\n * - PRIVATE (`--_ui-`): switches the pushable decides, never a theming surface;\n * `UISidebar.css` declares their defaults on the pushable box, which the inline values beat\n */\nexport const PusherTokens = {\n transform: \"--_ui-pusher-transform\",\n origin: \"--_ui-pusher-origin\",\n dimmed: \"--_ui-pusher-dimmed\",\n blurring: \"--_ui-pusher-blurring\"\n} as const\n\n/** What a visible `<ui-sidebar>` asks of its `<ui-pushable>` (`UIPushable.report()`). */\nexport type SidebarLayout = {\n /** where the pushers move, e.g. `translate3d(260px, 0, 0)`; `none` for `overlay` */\n transform: string\n /** the pushers' `transform-origin` (`scale down`) */\n origin: string\n /** modal: the pushers are dimmed and `inert` */\n modal: boolean\n /** the dimmer blurs */\n blurring: boolean\n}\n\n/** Fomantic's word widths (`thin sidebar`, `very wide flyout`): `<ui-sidebar>` / `<ui-flyout>` `width` beside columns. */\nexport const WordWidths = [\"very thin\", \"thin\", \"wide\", \"very wide\"] as const\n\n/** One of `WordWidths`. */\nexport type WordWidth = (typeof WordWidths)[number]\n\n/****************\n * ### `WordWidthClasses`\n * The word a `width` adds before the noun (`ui left thin sidebar`),\n * shared by `<ui-sidebar>`, `<ui-flyout>` and their fallbacks: `ClassBuilder`'s `width` kind only knows columns.\n ****************/\nexport class WordWidthClasses {\n /**\n * `width` as one of `WordWidths`, its words joined by spaces or dashes (`very-thin` ~== `very thin`);\n * `undefined` for columns or nothing.\n * - Takes `null`: a fallback passes `getAttribute()`'s.\n */\n static classFor(width: string | number | null | undefined): WordWidth | undefined {\n const text = typeof width === \"string\" ? width.trim().replace(WORD_SEPARATORS, \" \") : undefined\n return WordWidths.find((word) => word === text)\n }\n}\n\n/** Runs of spaces or dashes between a word width's words. */\nconst WORD_SEPARATORS = /[\\s-]+/g\n\n////////////////\n// ## Shape\n////////////////\n\n/** Each way a `<ui-shape>` flips to its next side (Fomantic's `flip up` ... `flip back`), for `--flip-<way>`. */\nexport const ShapeFlips = [\"up\", \"down\", \"left\", \"right\", \"over\", \"back\"] as const\n\n/** One of `ShapeFlips`. */\nexport type ShapeFlip = (typeof ShapeFlips)[number]\n\n/**\n * Invoker commands a `<ui-shape>` answers, `<button commandfor=\"id\" command=\"--next\">`.\n * - `next` / `previous`: turn to the next / previous side, the `direction` attribute's way\n * - `flip` + a `ShapeFlip`: turn to the next side THAT way (`--flip-up` ...), Fomantic's `flip up` behaviour\n */\nexport const ShapeCommands = { next: \"--next\", previous: \"--previous\", flip: \"--flip-\" } as const\n\n/** `detail` of `ui-changed`, from a `<ui-shape>` once it shows another side. */\nexport type ShapeChangeDetail = {\n /** index of the side now shown */\n activeIndex: number\n /** that side */\n side: Element\n /** how it got there */\n flip: ShapeFlip\n}\n\n/** Custom state every `<ui-side>` carries: `<ui-shape>` finds its sides by this, whatever their tag. */\nexport const SIDE_HOST_STATE = \"side\"\n\n////////////////\n// ## Accordion\n////////////////\n\n/**\n * One panel of a `<ui-accordion>`: a title child and the child after it,\n * wrapped in one `<details>` in the shadow root.\n * - `AccordionPanels.read()` keeps the same object while the pair is unchanged, so the panel isn't re-rendered.\n */\nexport type AccordionPanel = {\n /** the `<ui-title>` child */\n title: Element\n /** the element after it, usually a `<ui-content>`; none when the title is last or another title follows */\n content?: Element\n}\n\n/**\n * A `<ui-section>`'s TITLE, as a page writes it: the `label` attribute, else a `slot=\"label\"` child.\n * - For what reads a page's sections: the toc, the search outline.\n */\nexport const SectionTitle = {\n /** Its title's text, whitespace as written; `undefined` when it has none. */\n textOf(section: Element): string | undefined {\n const said = section.getAttribute(\"label\")\n if (said) return said\n const slotted = [...section.children].find((child) => child.getAttribute(\"slot\") === \"label\")\n return slotted ? (slotted.textContent ?? undefined) : undefined\n }\n} as const\n\n/** `detail` of the cancelable `ui-opening` / `ui-closing`, from a `<ui-section>`. */\nexport type SectionToggleDetail = {\n /** state the section is ABOUT to enter: `true` unfolding */\n open: boolean\n /** the `<ui-section>` */\n section: Element\n /** the click / key event on the toggle; none for a browser-made change (find-in-page) */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-opening` / `ui-closing`, from a `<ui-accordion>`. */\nexport type AccordionToggleDetail = {\n /** panel index (0-based) */\n index: number\n /** state the panel is ABOUT to enter */\n open: boolean\n /** the panel's title element */\n title: Element\n /** its content element, if any */\n content?: Element\n /** the click / key event on the title; none for a browser-made change (find-in-page) */\n originalEvent?: Event\n}\n\n////////////////\n// ## Tab\n////////////////\n\n/** `<ui-tabs activation>`: the WAI-ARIA APG's two ways a focused tab gets selected. */\nexport type TabActivation = \"automatic\" | \"manual\"\n\n/** `detail` of the cancelable `ui-changed`, from a `<ui-tabs>`. */\nexport type TabChangeDetail = {\n /** value of the tab about to be selected */\n value: string\n /** that `<ui-tab>` pane */\n tab: Element\n /** click / key event, or the `hashchange` / `popstate` of `history` */\n originalEvent?: Event\n}\n\n/** `detail` of `ui-opened`, from a `<ui-tab>` each time it becomes the shown pane. */\nexport type TabShowDetail = {\n /** the pane's value */\n value: string\n /** the first time it's shown: fill a lazy pane now */\n first: boolean\n}\n\n////////////////\n// ## Calendar\n////////////////\n\n/** `<ui-calendar type>`: what it picks, and so the ISO shape of its value. */\nexport type CalendarType = \"date\" | \"time\" | \"datetime\" | \"month\" | \"year\"\n\n/** A view of the picker, coarse to fine; also the unit a cell stands for. */\nexport type CalendarMode = \"year\" | \"month\" | \"day\" | \"hour\" | \"minute\"\n\n/** `detail` of the cancelable `ui-changed`, from a `<ui-calendar>`. */\nexport type CalendarChangeDetail = {\n /**\n * the new value, ISO by `type`: `2026-09-30`, `14:30`, `2026-09-30T14:30`, `2026-09`, `2026`;\n * `\"\"` when cleared\n */\n value: string\n /** the click / key / `change` event */\n originalEvent?: Event\n}\n\n/** `detail` of the cancelable `ui-opening` / `ui-closing`, from a popup `<ui-calendar>`. */\nexport type CalendarOpenDetail = {\n /** the state it's about to take */\n open: boolean\n /** the click / key event; none for a dismissal from `UI.overlays` */\n originalEvent?: Event\n}\n\n////////////////\n// ## Keys\n////////////////\n\n/**\n * `KeyboardEvent.key` of every key a family handles: `event.key === UIT.Key.arrowDown`.\n * - ONE set for every family (epic `wwod-spell-ui`, P2), instead of a constant per family per key.\n */\nexport const Key = {\n arrowUp: \"ArrowUp\",\n arrowDown: \"ArrowDown\",\n arrowLeft: \"ArrowLeft\",\n arrowRight: \"ArrowRight\",\n home: \"Home\",\n end: \"End\",\n pageUp: \"PageUp\",\n pageDown: \"PageDown\",\n enter: \"Enter\",\n space: \" \",\n escape: \"Escape\",\n tab: \"Tab\",\n backspace: \"Backspace\",\n delete: \"Delete\"\n} as const\n/** One of `Key`'s values, e.g. `\"ArrowDown\"`. */\nexport type Key = (typeof Key)[keyof typeof Key]\n\n////////////////\n// ## Selectors\n////////////////\n\n/** Selector of a disabled custom element (`:state(disabled)`). */\nexport const DISABLED_STATE = \":state(disabled)\"\n\n////////////////\n// ## Attributes and their values\n////////////////\n\n/** The `ordered` attribute: a numbered list or feed; a nested one reads its outer one's. */\nexport const ORDERED = \"ordered\"\n\n/** The `close` word: the close reason of a close icon or command, the close button's part and text key. */\nexport const CLOSE = \"close\"\n\n/** A side: the `left` position word. */\nexport const LEFT = \"left\"\n\n/** A side: the `top` position word. */\nexport const TOP = \"top\"\n\n/** A side: the `bottom` position word. */\nexport const BOTTOM = \"bottom\"\n\n/** Transition direction: showing (`UI.transitions.animate({ direction })`). */\nexport const IN = \"in\"\n\n/** Transition direction: hiding. */\nexport const OUT = \"out\"\n\n////////////////\n// ## Class and part words\n////////////////\n\n/** The `active` state / class word. */\nexport const ACTIVE = \"active\"\n\n/** The `disabled` state / class word. */\nexport const DISABLED = \"disabled\"\n\n/** The `selected` state / class word. */\nexport const SELECTED = \"selected\"\n\n/** The `animating` class word: a box mid-transition. */\nexport const ANIMATING = \"animating\"\n\n/** The `visible` class / state word: a shown sidebar, tab or transition. */\nexport const VISIBLE = \"visible\"\n\n/** The `title` class word: an accordion's, a section's, a search result's. */\nexport const TITLE = \"title\"\n\n/** The `button` class noun: toasts and `UI.modals` find the button family's tag by it (`<ui-button>`). */\nexport const BUTTON = \"button\"\n\n/** The `content` word: a part, a class, a slot. */\nexport const CONTENT = \"content\"\n\n/** The `header` word: a part, a class, a slot. */\nexport const HEADER = \"header\"\n\n/** The `heading` attribute: the heading shorthand of a card, modal, message ... (its old name `header`). */\nexport const HEADING = \"heading\"\n\n/** The `appearance` attribute: a tag's look, several words at once (epic `ui-gaps` P4; `basic`, `raised` ...). */\nexport const APPEARANCE = \"appearance\"\n\n/** The `description` word: a part, a class. */\nexport const DESCRIPTION = \"description\"\n\n/** The `icon` word: a part, a class, a slot. */\nexport const ICON = \"icon\"\n\n/** Grammar word the element adds itself (not an attribute): the `icon` class. */\nexport const ICON_CLASS = \"icon\"\n\n/** The `image` word: a part, a class. */\nexport const IMAGE = \"image\"\n\n/** The `item` word: an item's part noun, class and `type`. */\nexport const ITEM = \"item\"\n\n/** The `label` word: a part, a class. */\nexport const LABEL = \"label\"\n\n/** The `message` word: a class, a part. */\nexport const MESSAGE = \"message\"\n\n/** The `text` word: a class, a part, a value (`language=\"text\"`). */\nexport const TEXT = \"text\"\n\n/** The `bar` class word (a progress bar, a toast's progress). */\nexport const BAR = \"bar\"\n\n/** The `basic` class word. */\nexport const BASIC = \"basic\"\n\n/** The `fluid` class word. */\nexport const FLUID = \"fluid\"\n\n/** Class words of a close button's icon (`close icon`). */\nexport const CLOSE_CLASS = \"close icon\"\n\n/** Glyph of a close button's icon (Fomantic's `close icon`). */\nexport const CLOSE_ICON = \"xmark\"\n\n/** Text a native fallback's close button shows instead of `CLOSE_ICON`'s glyph (no icon packs without Solid). */\nexport const CLOSE_TEXT = \"×\"\n\n/**\n * Prefix of the colour remap class a coloured box adds without the `ui` word (`ui-red`):\n * an item, a step, a feed event.\n * - Why: the generic remap (`colors.css`) keys on `.ui.red` or `.ui-red`.\n */\nexport const COLOR_CLASS_PREFIX = \"ui-\"\n\n/** Utility class (`utilities.css`, adopted in every root) of a visually hidden announcement. */\nexport const VISUALLY_HIDDEN = \"ui-visually-hidden-force\"\n\n////////////////\n// ## Form words\n////////////////\n\n/** The form states: tint a form, field or input and show the matching `<ui-message>`s. */\nexport const FormStates = [\"error\", \"info\", \"success\", \"warning\"] as const\n\n/** One of `FormStates`. */\nexport type FormState = (typeof FormStates)[number]\n\n/** The `notEmpty` validation rule a `required` field applies. */\nexport const REQUIRED_RULE: E.ValidationRule = \"notEmpty\"\n\n////////////////\n// ## Patterns\n////////////////\n\n/** Runs of whitespace: between query words, class words, country names. */\nexport const WHITESPACE = /\\s+/\n\n/** A duration of bare digits, in ms (`duration=\"300\"`). */\nexport const DIGITS = /^\\d+(\\.\\d+)?$/\n\n////////////////\n// ## Form controls: the attributes and states every control with a value shares (`FormComponent`)\n////////////////\n\n/**\n * The form attributes every control with a value declares, ONE shape each: its vocabulary takes them by name.\n * - `UIT.FormControlAttributes.name` as it is, or `{ ...UIT.FormControlAttributes.required, description: \"...\" }`\n * where the control says more.\n * - `readonly` is the same everywhere: the `readOnly` property, a plain boolean, as the platform's;\n * its class word `read-only` is what the controls' sheets style.\n */\nexport const FormControlAttributes = {\n name: { name: \"name\", group: \"name\", kind: \"string\", description: \"Form field name.\" },\n required: {\n name: \"required\",\n group: \"form\",\n kind: \"boolean\",\n description: \"Form validation: a value must be chosen.\"\n },\n readonly: {\n name: \"readonly\",\n group: \"form\",\n kind: \"keyOnly\",\n property: \"readOnly\",\n key: \"read-only\",\n description: \"Shows its value but can't be changed; submitted with the form (unlike `disabled`).\"\n },\n placeholder: { name: \"placeholder\", group: \"form\", kind: \"string\", description: \"Hint shown while empty.\" }\n} as const\n\n/** The states every control with a value has (`FormComponent`): its vocabulary takes them by name, as above. */\nexport const FormControlStates = {\n readonly: { name: \"readonly\", description: \"`readonly`: can't be changed.\" },\n invalid: {\n name: \"invalid\",\n description: \"Fails validation, once a person has interacted (`:user-invalid` semantics).\"\n }\n} as const\n\n////////////////\n// ## Sources: shared by ui-include, ui-code, ui-markdown (`LoadableComponent`)\n////////////////\n\n/** When a `source` is fetched: now, once scrolled into view, or when the browser is idle (Astro's islands). */\nexport const SourceLoadModes = [\"eager\", \"visible\", \"idle\"] as const\n\n/** One of `SourceLoadModes`. */\nexport type SourceLoadMode = (typeof SourceLoadModes)[number]\n\n/** Attributes every source element has; spread first into its vocabulary's `attributes`. */\nexport const SourceAttributes = [\n {\n name: \"source\",\n kind: \"string\",\n description:\n \"URL of the file to show, relative to the page; same origin only (another site's URL shows an error). \" +\n \"Changing it loads the new file. Without it, the element shows its own content.\"\n },\n {\n name: \"load\",\n kind: \"enum\",\n values: SourceLoadModes,\n default: \"eager\",\n description:\n \"When to fetch `source`: `eager` (at once), `visible` (once scrolled into view) or `idle` (when the browser \" +\n \"has nothing else to do). Like Astro's `client:visible` / `client:idle`.\"\n }\n] as const\n\n/** Events every source element dispatches; spread into its vocabulary's `events`. */\nexport const SourceEvents = [\n {\n name: \"ui-loaded\",\n detail: \"{ source?: string, content: string }\",\n description: \"Content arrived: fetched from `source`, or read from the element's own content.\"\n },\n {\n name: \"ui-changed\",\n detail: \"{ content: string }\",\n description: \"The `content` property was set: the element shows the new text, and is `dirty` until saved.\"\n },\n {\n name: \"ui-saving\",\n detail: \"{ source?: string, content: string, etag?: string }\",\n cancelable: true,\n description:\n \"`host.save()` is about to save: `preventDefault()` to save it yourself (an editor posting elsewhere).\"\n },\n {\n name: \"ui-saved\",\n detail: \"{ source?: string, etag?: string }\",\n description: \"Saved; `etag` is the file's new version.\"\n },\n {\n name: \"ui-error\",\n detail:\n \"{ kind: 'load' | 'cross-origin' | 'file-protocol' | 'save' | 'conflict' | 'no-saver' | 'render', source?: string, error: unknown }\",\n cancelable: true,\n description:\n \"Loading, showing or saving failed; `kind` says why. Load and render failures show an error message \" +\n \"unless cancelled; save failures keep the content as it is.\"\n }\n] as const\n\n/** Parts every source element has. */\nexport const SourceParts = [\n { name: \"loader\", description: \"The `<ui-loader>` shown while `source` loads.\" },\n { name: \"error\", description: \"The `<ui-message>` shown when loading or showing failed.\" }\n] as const\n\n/** States every source element has. */\nexport const SourceStates = [\n { name: \"loading\", description: \"Fetching `source`.\" },\n { name: \"error\", description: \"Loading or showing failed: the error message shows.\" },\n { name: \"saving\", description: \"`save()` is in progress.\" },\n { name: \"dirty\", description: \"`content` changed since it was loaded or saved.\" }\n] as const\n\n/**\n * Error messages of a failed load; `{source}` is the URL as written.\n * - Spread on their own by `<ui-section>` / `<ui-accordion>`, whose `source` body shows them (`LoadableBody`).\n */\nexport const SourceFailureTexts = [\n { key: \"sourceLoadError\", text: \"Couldn't load {source}.\", description: \"The fetch failed.\" },\n {\n key: \"sourceCrossOrigin\",\n text: \"Can't show {source}: only files from this site can be shown.\",\n description: \"`source` is on another origin.\"\n },\n {\n key: \"sourceFileProtocol\",\n text: \"Can't load {source}: this page was opened from disk. Open it from a web server to see it.\",\n description: \"The page is a `file://` page.\"\n },\n { key: \"sourceRenderError\", text: \"Couldn't show {source}.\", description: \"The text arrived, but couldn't be shown.\" }\n] as const\n\n/** Texts every source element shows; `{source}` is the URL as written. */\nexport const SourceTexts = [\n { key: \"sourceLoading\", text: \"Loading {source}\", description: \"Accessible name of the loader.\" },\n ...SourceFailureTexts\n] as const\n\n/** `detail` of `ui-loaded`. */\nexport type SourceLoadDetail = {\n /** `source` as written, or `undefined` for the element's own content */\n source?: string\n /** the text */\n content: string\n}\n\n/** `detail` of `ui-changed`. */\nexport type SourceChangeDetail = {\n /** the new text */\n content: string\n}\n\n/** `detail` of the cancelable `ui-saving`. */\nexport type SourceSaveDetail = {\n /** `source` as written, or `undefined` for the element's own content */\n source?: string\n /** what's about to be saved */\n content: string\n /** version it was edited from */\n etag?: string\n}\n\n/** `detail` of `ui-saved`. */\nexport type SourceSavedDetail = {\n /** `source` as written, or `undefined` for the element's own content */\n source?: string\n /** the file's new version */\n etag?: string\n}\n\n/** `detail` of a source element's `ui-error`. */\nexport type SourceErrorDetail = {\n /** why, see `E.SourceErrorKind` */\n kind: E.SourceErrorKind\n /** `source` as written, or `undefined` for the element's own content */\n source?: string\n /** what was thrown */\n error: unknown\n}\n\n////////////////\n// ## Source bodies: shared by ui-section and ui-accordion (`LoadableBody`)\n////////////////\n\n/**\n * Attributes of an element whose BODY can come from a file, loaded the first time it opens;\n * spread into its vocabulary's `attributes`:\n * `<ui-section>`, and so every subclass reusing its vocabulary (`<ui-accordion>`).\n */\nexport const SourceBodyAttributes = [\n {\n name: \"source\",\n kind: \"string\",\n description:\n \"URL of an HTML file whose `<body>` is the content, fetched the first time it opens (at once when it starts \" +\n \"open); same origin only. Any content already there is a placeholder the file replaces. \" +\n \"`load()` fetches it now, `reload()` again.\"\n },\n {\n name: \"selector\",\n kind: \"string\",\n replaces: [\"select\"],\n description:\n \"With `source`: a CSS selector; only its first match in the file becomes the content. Its old name was `select`.\"\n }\n] as const\n\n/** Events of a source body; spread into the vocabulary's `events`. */\nexport const SourceBodyEvents = [\n {\n name: \"ui-loading\",\n detail: \"{ source: string }\",\n description: \"The `source` file is on its way: the section unfolded for the first time, or `reloadBody()`.\"\n },\n {\n name: \"ui-loaded\",\n detail: \"{ source: string, content: string }\",\n description: \"The `source` file arrived and its body is in place (`content` is the file's text).\"\n },\n {\n name: \"ui-error\",\n detail: \"{ kind: 'load' | 'cross-origin' | 'file-protocol' | 'render', source: string, error: unknown }\",\n cancelable: true,\n description:\n \"The `source` file couldn't be loaded or shown; `kind` says why. An error line shows in the content \" +\n \"unless cancelled; opening it again tries again.\"\n }\n] as const\n\n/** Parts of a source body. */\nexport const SourceBodyParts = [\n { name: \"error\", description: \"With `source`: the line saying the file couldn't be loaded.\" }\n] as const\n\n/** States of a source body (`loading` is the element's own: `<ui-section>` already has one). */\nexport const SourceBodyStates = [\n { name: \"loaded\", description: \"With `source`: the file's body is in place.\" },\n { name: \"error\", description: \"With `source`: the file couldn't be loaded or shown.\" }\n] as const\n\n////////////////\n// ## Theme editor\n////////////////\n\n/** The hues a theme editor's colours are picked from: Spell UI's own, `primary` and `secondary` left out. */\nexport const ThemeHues = [\n \"red\",\n \"orange\",\n \"yellow\",\n \"olive\",\n \"green\",\n \"teal\",\n \"blue\",\n \"violet\",\n \"purple\",\n \"pink\",\n \"brown\",\n \"grey\",\n \"black\"\n] as const\n/** One of `ThemeHues`, e.g. `\"pink\"`. */\nexport type ThemeHue = (typeof ThemeHues)[number]\n\n/** The fonts a theme editor offers, each already on people's computers (`ThemeDraft` has their stacks). */\nexport const ThemeFonts = [\"system\", \"rounded\", \"serif\", \"georgia\", \"humanist\", \"verdana\", \"mono\"] as const\n/** One of `ThemeFonts`, e.g. `\"rounded\"`. */\nexport type ThemeFont = (typeof ThemeFonts)[number]\n\n/** How rounded a theme's corners are, least first. */\nexport const ThemeCorners = [\"sharp\", \"soft\", \"round\", \"pill\"] as const\n/** One of `ThemeCorners`. */\nexport type ThemeCorner = (typeof ThemeCorners)[number]\n\n/** How far a theme's surfaces lift off the page, least first. */\nexport const ThemeDepths = [\"flat\", \"soft\", \"lifted\"] as const\n/** One of `ThemeDepths`. */\nexport type ThemeDepth = (typeof ThemeDepths)[number]\n\n/** How much of the page shows through a glass theme's surfaces (fruity's), most first. */\nexport const ThemeGlasses = [\"clear\", \"frosted\", \"solid\"] as const\n/** One of `ThemeGlasses`. */\nexport type ThemeGlass = (typeof ThemeGlasses)[number]\n\n/**\n * A theme as `<ui-theme-editor>` makes it: a base theme, and what's changed on it.\n * - Its `value`, its `ui-changed` and `ui-saved` details, and what `SavedTheme` keeps in the browser.\n * - Every choice but `name` and `base` is optional: left out, the base theme's own stays.\n */\nexport type ThemeChoices = {\n /** what people call it; names its file, `themes/<name>.css` */\n name: string\n /** the `UI.themes` name it changes, e.g. `fruity` */\n base: string\n /** the main action colour */\n primary?: ThemeHue\n /** second-choice buttons, quieter highlights */\n secondary?: ThemeHue\n /** tints the page behind everything (and a glass theme's wallpaper) */\n background?: ThemeHue\n /** titles and headings */\n headingFont?: ThemeFont\n /** everything else */\n bodyFont?: ThemeFont\n /** everyday text, in px: `--ui-font-size` */\n textSize?: number\n /** how rounded buttons, fields and cards are */\n corners?: ThemeCorner\n /** how far surfaces lift */\n depth?: ThemeDepth\n /** a glass theme's see-through: fruity's only */\n glass?: ThemeGlass\n /** tokens set by hand, by CSS name (`--ui-radius-l`): each wins over what the choices above set */\n tokens?: Readonly<Record<string, ThemeTokenEdit>>\n}\n\n/** A token set by hand in `<ui-theme-editor>`: one value for both schemes, or one per scheme. */\nexport type ThemeTokenEdit = { both: string } | { light?: string; dark?: string }\n\n////////////////\n// ## Theme names\n////////////////\n\n/**\n * A theme's names, ONE way for every place that shows or remembers one (epic `debut` P17, J94):\n * the theme menu (`<ui-theme-menu>`, `ThemePreference`) and the theme editor (its Start from, `SavedTheme`).\n * - Static and pure: it reads only the name, and the theme list (`UI.themes`) it's handed.\n */\nexport class ThemeNames {\n /** A theme's name for people: `merlot` => `Merlot`, `my-theme` => `My Theme`. */\n static titleOf(name: string): string {\n return name\n .split(\"-\")\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join(\" \")\n }\n\n /**\n * A remembered theme `name` as it's called NOW: its new name when it was renamed (`Themes.RENAMED`,\n * `studio` => `merlot`), else `name` itself.\n * - `themes`: `UI.themes`, once the runtime has loaded; the list of renames is its class's.\n */\n static nameNow(themes: Themes, name: string): string {\n return (themes.constructor as typeof Themes).RENAMED[name] ?? name\n }\n}\n\n////////////////\n// ## Headings and code in a text\n////////////////\n\n/** A family's `level` attribute: the heading levels it may draw, and the one when unset. */\nexport type HeadingBounds = {\n /** lowest level allowed */\n readonly min: number\n /** highest level allowed */\n readonly max: number\n /** level when unset or not a number */\n readonly fallback: number\n}\n\n/** `<ui-header>`'s `level` attribute: `\"1\"` ... `\"6\"`. */\nexport type HeadingLevelText = \"1\" | \"2\" | \"3\" | \"4\" | \"5\" | \"6\"\n\n/****************\n * ### `HeadingLevels`\n * A `level` attribute as a heading level the element draws: `<ui-example>`'s, and the docs widgets'\n * (`<ui-docs-api>`, `<ui-docs-tokens>`).\n * - Static: pure.\n ****************/\nexport class HeadingLevels {\n /** `value` (an attribute) rounded and clamped to `bounds`; `bounds.fallback` when unset or not a number. */\n static levelFor(value: unknown, bounds: HeadingBounds): number {\n const level = Math.round(Number(value ?? bounds.fallback))\n return Number.isFinite(level) ? Math.min(bounds.max, Math.max(bounds.min, level)) : bounds.fallback\n }\n\n /** `level` as `<ui-header>`'s `level` attribute: `\"1\"` ... `\"6\"`, rounded and clamped to a real heading. */\n static attributeFor(level: number): HeadingLevelText {\n // clamped to 1 ... 6 just here, which TypeScript can't follow\n return String(Math.min(6, Math.max(1, Math.round(level)))) as HeadingLevelText\n }\n}\n\n/**\n * A backticked span in a description, its content in group 1:\n * `<ui-example>` and `<ui-docs-tokens>` split text on it and draw each odd piece as `<code>`.\n * - `<ui-docs-api>` follows CommonMark's longer fences instead (`InlineCode`): its texts come from vocabularies.\n */\nexport const CODE_SPAN = /`([^`]+)`/g\n\n////////////////\n// ## Table of contents\n////////////////\n\n/**\n * Marks an element in another element's SHADOW root as an entry of the page's \"On this page\" list (`<ui-toc>`);\n * `entry`'s value is the entry's text.\n * - The list reads light DOM only, except the shadow roots of the tags `TocIndex.addShadowHost()` names\n * (`<ui-docs-api>`): there it lists these, in order, under the `<ui-section>` around the host.\n * - The element has an id, so the entry links to `#<id>`; the page lands there (`HashLanding`), as the browser can't.\n * - `group`: a GROUP (a tag's header); the entries after it, to the next group, nest in it.\n */\nexport const TocMarks = { entry: \"data-toc\", group: \"data-toc-group\" } as const\n","import type { SharedDictionary } from \"spell/element/vocabulary.types\"\n\n/**\n * Spanish names for the attributes every element shares (`SharedVocabulary`): `<es-boton desactivado>`.\n * - Every Spanish dictionary gets them, so it needn't name them itself;\n * one that does (`attributes: { disabled: \"inactivo\" }`) wins.\n * - The states stay English (`:state(disabled)`): a CSS contract, never translated.\n */\nexport const sharedEs = {\n lang: \"es\",\n attributes: {\n disabled: \"desactivado\",\n loading: \"cargando\",\n visible: \"visible\",\n animation: \"animacion\",\n link: \"enlace\",\n target: \"destino\",\n font: \"letra\",\n tooltip: \"ayuda\",\n label: \"etiqueta\"\n },\n values: {\n // `<es-texto letra=\"negrita cursiva\">`; a size stays a number (`letra=\"14\"`)\n font: {\n bold: \"negrita\",\n italic: \"cursiva\",\n underline: \"subrayado\",\n strikethrough: \"tachado\",\n code: \"código\",\n highlight: \"resaltado\",\n subscript: \"subíndice\",\n superscript: \"superíndice\",\n \"all-caps\": \"mayúsculas\",\n \"title-caps\": \"iniciales\",\n headline: \"titular\",\n subhead: \"subtítulo\",\n serif: \"serifa\",\n \"sans-serif\": \"sin-serifa\",\n typewriter: \"máquina\"\n }\n }\n} as const satisfies SharedDictionary\n","import * as UIT from \"spell/ui/components/components.types\"\n\nimport { sharedEs } from \"./SharedVocabulary.es\"\nimport type { AttributeSpec, ComponentVocabulary, SharedDictionary, StateSpec } from \"spell/element/vocabulary.types\"\n\n/****************\n * ### `SharedVocabulary`\n * The attributes and states EVERY component has, without its vocabulary declaring them:\n * - `disabled`, `loading`, `visible` and `animation` (epic `spell-element`, P8 and P12)\n * - `link` and `target`, `font`, `tooltip` and `label` (epic `ui-gaps` P3, Owen's request r1):\n * where a click goes, how its letters look, the browser's tooltip, its accessible name\n * - `UIComponent` reads them (\"Shared states\", \"Shown or hidden\"):\n * so `<ui-menu disabled>`, `<ui-table loading>`, `<ui-message visible=\"false\">`\n * and `<ui-modal animation=\"fly down\">` work, though those vocabularies never name them.\n * - What each means for a family is a key of its `elementSetup` (`disabled`, `loading`, `visible`, `animation`).\n * - `visible` is the platform's `hidden` turned round: one fact, two names (`DOMElement`, \"Shown or hidden\").\n * - A vocabulary that declares one of them itself keeps its own spec, and its own meaning:\n * `<ui-button disabled>` has Fomantic's look.\n * - The shared spec is added only where the vocabulary has none of that name.\n * - NOTE: no vocabulary declares its own `visible` or `animation` (since P12), and none may:\n * that element would lose `visible` / `hidden` as one fact.\n * - The platform's own `hidden` and `inert` need nothing here: every element has them already.\n * - A translated tag names them in its own language (`<es-boton desactivado>`):\n * - each language has a small file of them, `SharedVocabulary.<lang>.ts` (`translated()`)\n * - `Vocabulary.resolve()` reads it for every dictionary of that `lang`\n * - the dictionary's own names win\n * - Pure data and lookups, no DOM, no element layer:\n * node reads it with the vocabularies (`yarn site:data` lists them on every tag).\n ****************/\nexport class SharedVocabulary {\n /**\n * `vocabulary`'s attributes, then each shared one it doesn't declare itself, in `SHARED_ATTRIBUTES` order.\n * - What `ElementDefinition` resolves: the DOM element observes, converts and reflects these.\n * - The same array for the same vocabulary, every time.\n */\n static attributesFor(vocabulary: ComponentVocabulary): readonly AttributeSpec[] {\n return SharedVocabulary.withShared(vocabulary).attributes\n }\n\n /** `vocabulary`'s states, then each shared one it doesn't name itself: for docs and the manifests. */\n static statesFor(vocabulary: ComponentVocabulary): readonly StateSpec[] {\n return SharedVocabulary.withShared(vocabulary).states\n }\n\n /**\n * Does `vocabulary` take the SHARED attribute `name`?\n * - False when it declares its own of that name, or when `name` isn't a shared attribute.\n */\n static takesShared(vocabulary: ComponentVocabulary, name: string): boolean {\n return SharedVocabulary.withShared(vocabulary).shared.has(name)\n }\n\n /**\n * The name language `lang` gives the shared attribute `name`, from its `SharedVocabulary.<lang>.ts`:\n * `translated(\"es\", \"disabled\")` => `\"desactivado\"`.\n * - `undefined` when the language has no such file, or `name` isn't a shared attribute.\n */\n static translated(lang: string, name: string): string | undefined {\n return SHARED_DICTIONARIES.get(lang)?.attributes[name as keyof SharedDictionary[\"attributes\"]]\n }\n\n /**\n * The values language `lang` gives the shared attribute `name`, from its `SharedVocabulary.<lang>.ts`:\n * `translatedValues(\"es\", \"font\")` => `{ bold: \"negrita\", ... }`.\n * - `undefined` where the language keeps them as they are (`animation`'s Fomantic names).\n */\n static translatedValues(lang: string, name: string): Readonly<Record<string, string>> | undefined {\n return SHARED_DICTIONARIES.get(lang)?.values?.[name as keyof NonNullable<SharedDictionary[\"values\"]>]\n }\n\n /**\n * The shared attributes' names, which every tag observes unless its vocabulary declares its own:\n * what a root adds to a tag it defines before its family loads (`RootLoader.defineEarly()`).\n */\n static get attributeNames(): readonly string[] {\n return SHARED_ATTRIBUTES.map(({ name }) => name)\n }\n\n /** Is `name` one of the shared attributes? */\n static isSharedAttribute(name: string): boolean {\n return SHARED_ATTRIBUTES.some((spec) => spec.name === name)\n }\n\n /**\n * `vocabulary` with the shared attributes and states it lacks, worked out once per vocabulary.\n * - Static: vocabularies are page-wide data, and so is this cache.\n */\n private static withShared(vocabulary: ComponentVocabulary): WithShared {\n let found = SharedVocabulary.cache.get(vocabulary)\n if (found) return found\n const declared = new Set(vocabulary.attributes.map(({ name }) => name))\n const added = SHARED_ATTRIBUTES.filter(({ name }) => !declared.has(name))\n const stateNames = new Set(vocabulary.states.map(({ name }) => name))\n found = {\n attributes: added.length ? [...vocabulary.attributes, ...added] : vocabulary.attributes,\n states: [...vocabulary.states, ...SHARED_STATES.filter(({ name }) => !stateNames.has(name))],\n shared: new Set(added.map(({ name }) => name))\n }\n SharedVocabulary.cache.set(vocabulary, found)\n return found\n }\n\n /**\n * `withShared()`'s results, by vocabulary.\n * - Static: page-wide.\n */\n private static readonly cache = new WeakMap<ComponentVocabulary, WithShared>()\n}\n\n/** One vocabulary with the shared attributes and states it lacks (`SharedVocabulary.withShared()`). */\ntype WithShared = {\n /** its own attributes, then the shared ones it lacks */\n readonly attributes: readonly AttributeSpec[]\n /** its own states, then the shared ones it lacks */\n readonly states: readonly StateSpec[]\n /** names of the shared attributes it takes (doesn't declare itself) */\n readonly shared: ReadonlySet<string>\n}\n\n/**\n * The attributes every component takes.\n * - `boolean` kinds: no class word (a vocabulary's own `disabled` / `loading` brings Fomantic's class).\n * - `visible` and `animation` have no default of their own: the family's (`elementSetup.visible`, `.animation`).\n */\nconst SHARED_ATTRIBUTES: readonly AttributeSpec[] = [\n {\n name: \"disabled\",\n kind: \"boolean\",\n description:\n \"Can't be used: dimmed, out of the tab order, and everything inside it inert; `aria-disabled`. \" +\n \"Shared by every element; a family may give it a meaning of its own (`elementSetup.disabled`).\"\n },\n {\n name: \"loading\",\n kind: \"boolean\",\n description:\n \"Busy: dimmed under a loader, and inert; `aria-busy`. \" +\n \"Shared by every element; a family may draw its own loader (`elementSetup.loading`).\"\n },\n {\n name: \"visible\",\n kind: \"boolean\",\n description:\n \"Shown: the platform's `hidden`, turned round (`el.visible === !el.hidden`). \" +\n 'Writing either one shows or hides the element with its `animation`; `visible=\"false\"` writes `hidden`. ' +\n \"Neither written: the family decides (a modal starts hidden, a message shown). \" +\n \"Both written in markup and disagreeing: `hidden` wins.\"\n },\n {\n name: \"animation\",\n kind: \"enum\",\n values: UIT.Animations,\n description:\n \"How it shows and hides (Fomantic's names: `fade up`, `scale`, `fly down` ...); default its family's, \" +\n \"else `fade`. `none` turns motion off for it and everything inside it, as the person's reduced-motion \" +\n \"setting does; an element inside can't turn it back on.\"\n },\n {\n name: \"link\",\n group: \"link\",\n kind: \"string\",\n replaces: [\"href\"],\n description:\n \"Where a click on it goes, as a link's `href`: `<ui-text link>` is a link in running text. \" +\n \"A family that draws its own link (text, button, image ...) draws an `<a>`; on any other element a click \" +\n \"goes there, except on a control of its own inside. Its old name was `href`.\"\n },\n {\n name: \"target\",\n group: \"link\",\n kind: \"string\",\n description: \"Where `link` opens: `_blank` for a new tab, or a window's name; as a link's `target`.\"\n },\n {\n name: \"font\",\n group: \"appearance\",\n kind: \"multiple\",\n values: UIT.FontWords,\n description:\n \"How its letters look, several words at once: `bold`, `italic`, `underline`, `strikethrough`, `code`, \" +\n '`highlight`, `subscript`, `superscript`, `all-caps`, `title-caps` (`font=\"bold italic\"`); a family from ' +\n \"the theme, `headline`, `subhead`, `serif`, `sans-serif` or `typewriter`; and a size in pixels, `14`, or with its line height, `10/20` \" +\n '(`font=\"bold serif 10/20\"`). `<ui-text>` draws each face as its HTML element (`<strong>`, `<em>` ...), ' +\n \"so screen readers hear it, and takes each word as a bare attribute too (`<ui-text bold serif>`); every \" +\n \"other element shows the look alone.\"\n },\n {\n name: \"tooltip\",\n group: \"content\",\n kind: \"string\",\n description: \"Its tooltip: the browser's own, written as the element's `title`.\"\n },\n {\n name: \"label\",\n group: \"content\",\n kind: \"string\",\n description:\n \"Its name for screen readers (`aria-label`), where it has no words of its own. \" +\n \"A family whose `label` is something else (a field's, a statistic's) keeps its own.\"\n }\n]\n\n/** Each language's names for the shared attributes, by `lang`: one `SharedVocabulary.<lang>.ts` each. */\nconst SHARED_DICTIONARIES: ReadonlyMap<string, SharedDictionary> = new Map([[sharedEs.lang, sharedEs]])\n\n/** The states `UIComponent` sets on every element, for the shared attributes. */\nconst SHARED_STATES: readonly StateSpec[] = [\n { name: \"disabled\", description: \"`disabled` is set (or, on a form control, a `<fieldset disabled>` around it).\" },\n { name: \"loading\", description: \"`loading` is set.\" },\n {\n name: \"busy\",\n description: \"`loading`, and the element draws the shared loader: a spinner over it (`elementSetup.loading`).\"\n },\n {\n name: \"dimmed\",\n description: \"Disabled or loading the shared way: everything inside is inert, and dimmed.\"\n },\n { name: \"hidden\", description: 'Hidden (`hidden`, or `visible=\"false\"`), once its animation has run.' },\n { name: \"still\", description: '`animation=\"none\"`: no motion here, nor anywhere inside it (`--ui-motion: none`).' },\n {\n name: \"hiding\",\n description: \"Animating out: `hidden` is already set, and the element stays on screen until it ends.\"\n },\n {\n name: \"pending\",\n description:\n \"Defined by its `<ui-root>` before its family loaded: no component yet, its values kept until it arrives.\"\n },\n { name: \"ready\", description: \"Ready to go: drawn with its styles (its `ready` promise has resolved).\" }\n]\n","import { proto, withoutAccents } from \"spell/ui/util\"\nimport type {\n AttributeSpec,\n ComponentDefiner,\n ComponentDictionary,\n ComponentVocabulary,\n Dictionary,\n LocalizedNames,\n LocalizedVocabulary,\n NameMap,\n NamePair,\n TagDictionary\n} from \"spell/element/vocabulary.types\"\nimport { SharedVocabulary } from \"./SharedVocabulary\"\nimport { ValueSets } from \"./ValueSets\"\n\n/****************\n * ### `Vocabulary`\n * Registry of every component's vocabulary, and the resolver that turns canonical names into localized ones.\n * - `register()` collects each `UI<Name>.en.ts` by canonical tag.\n * - `define(prefix, dictionary)` resolves, for every registered component,\n * the names an author types in that language (`es-tarjeta`, `color=\"rojo\"`, `es-cambiado`).\n * - What a translated tag's `ElementDefinition` is built from (`UIButton.define(\"es-boton\", es)`).\n * - The English identity dictionary is the default.\n * - `canonicalize()` / `localize()` convert single names both ways, for attribute parsing and rendering.\n * - `defineComponents({ prefix, dictionary })`: the page's language.\n * - The one call that names every component in it (`<es-boton>`):\n * the ones defined already, and every one defined after.\n * - The runtime's `UI.vocabulary` is the page's registry: the element layer hands it each component class\n * as it's defined (`registerComponent()`), and this defines it under each page language too.\n * - Pure data, NO DOM: the runtime's `UI.vocabulary` service wraps one of these.\n * - It defines components only through their own `define()`, the classes handed to it.\n * - Imports only `spell/ui/util` and its folder's peers, so node can load it too.\n * - See `notes/translation.md`.\n ****************/\nexport class Vocabulary {\n /**\n * Default tag / event prefix: `ui-card`, `ui-changed`.\n * - `@proto static`: a subclass, or one instance, may set its own.\n */\n @proto static prefix = \"ui\"\n /** This instance's prefix (`Vocabulary.prefix` unless set). */\n declare prefix: string\n\n /**\n * Default dictionary: English identity, since every missing name falls back to canonical.\n * - `@proto static`: a subclass, or one instance, may set its own.\n */\n @proto static dictionary: Dictionary = { lang: \"en\" }\n /** This instance's dictionary (`Vocabulary.dictionary` unless set). */\n declare dictionary: Dictionary\n\n /** Canonical vocabularies by canonical tag, in registration order. */\n readonly vocabularies = new Map<string, ComponentVocabulary>()\n\n /** Every localized vocabulary `define()` produced, by LOCALIZED tag. */\n readonly localized = new Map<string, LocalizedVocabulary>()\n\n /** Dictionary each entry of `localized` was resolved with, so `replace()` can resolve it again. */\n private readonly dictionaries = new Map<string, Dictionary>()\n\n /** The page's languages (`defineComponents()`), in the order they came. */\n readonly languages: PageLanguage[] = []\n\n /** How to define each component handed over (`registerComponent()`) under another tag, by canonical tag. */\n private readonly components = new Map<string, ComponentDefiner>()\n\n ////////////////\n // ## Registry\n ////////////////\n\n /**\n * Add `vocabulary`, keyed by its canonical tag; returns it.\n * - Registering the same object twice is a no-op (HMR, double imports).\n * - Throws if a DIFFERENT vocabulary already claims the tag: two components can't share a name.\n */\n register<V extends ComponentVocabulary>(vocabulary: V): V {\n const existing = this.vocabularies.get(vocabulary.tag)\n if (existing && existing !== vocabulary) {\n throw new TypeError(\n `Vocabulary.register(): <${vocabulary.tag}> is already registered by another vocabulary; give one a new tag`\n )\n }\n this.vocabularies.set(vocabulary.tag, vocabulary)\n return vocabulary\n }\n\n /**\n * Swap in a NEW version of a registered component's vocabulary; returns it.\n * - For hot module replacement: its module re-ran and made a new object.\n * - Keyed by `vocabulary.tag`; an unknown tag is simply registered.\n * - Every localized vocabulary resolved from the old version is resolved again from the new one,\n * under the same prefix and dictionary, so `canonicalize()` / `localize()` see the new names at once.\n * - NOTE: a vocabulary whose tag changed is a NEW component: the old tag stays registered.\n */\n replace<V extends ComponentVocabulary>(vocabulary: V): V {\n const previous = this.vocabularies.get(vocabulary.tag)\n this.vocabularies.set(vocabulary.tag, vocabulary)\n if (!previous || previous === vocabulary) return vocabulary\n for (const [tag, localized] of this.localized) {\n if (localized.vocabulary !== previous) continue\n const dictionary = this.dictionaries.get(tag) ?? this.dictionary\n this.localized.set(tag, this.resolve(vocabulary, localized.prefix, dictionary))\n }\n return vocabulary\n }\n\n /**\n * `register()` `vocabulary`, and remember `define`, how to define its component under another tag;\n * returns the vocabulary.\n * - What the element layer calls as a component is defined (Spell UI's `SpellUISettings`).\n * - SIDE EFFECT: defines the component under every page language now (`defineComponents()`),\n * when the language's dictionary names its tag.\n */\n registerComponent<V extends ComponentVocabulary>(vocabulary: V, define: ComponentDefiner): V {\n this.register(vocabulary)\n this.components.set(vocabulary.tag, define)\n for (const language of this.languages) this.defineIn(language, vocabulary, define)\n return vocabulary\n }\n\n /** Canonical vocabulary for canonical `tag`, if registered. */\n get(tag: string): ComponentVocabulary | undefined {\n return this.vocabularies.get(tag)\n }\n\n ////////////////\n // ## Localization\n ////////////////\n\n /**\n * Resolve every registered vocabulary under `prefix` + `dictionary`; returns them by CANONICAL tag.\n * - SIDE EFFECT: remembers each result under its localized tag, for `canonicalize()` / `localize()`.\n * - Throws when two components resolve to the same localized tag -- a dictionary bug.\n * - NOTE: vocabularies registered later need another `define()` call.\n */\n define(prefix = this.prefix, dictionary = this.dictionary): Map<string, LocalizedVocabulary> {\n const result = new Map<string, LocalizedVocabulary>()\n for (const vocabulary of this.vocabularies.values()) {\n const localized = this.resolve(vocabulary, prefix, dictionary)\n const existing = this.localized.get(localized.tag)\n if (existing && existing.vocabulary !== vocabulary) {\n throw new TypeError(\n `Vocabulary.define(): <${localized.tag}> would name both <${existing.vocabulary.tag}> and <${vocabulary.tag}>; ` +\n \"give one of them another tag in the dictionary\"\n )\n }\n this.localized.set(localized.tag, localized)\n this.dictionaries.set(localized.tag, dictionary)\n result.set(vocabulary.tag, localized)\n }\n return result\n }\n\n /**\n * Localized names of one `vocabulary` under `prefix` + `dictionary`.\n * - Pure: doesn't touch the registry.\n * - Lookup order per name: `dictionary.components[tag]` > dictionary-wide map > canonical.\n * - The shared attributes (`SharedVocabulary`: `disabled`, `loading`, `visible`, `animation`) are named too,\n * whether the tag takes the shared one or declares its own:\n * between the dictionary-wide map and canonical, its language's `SharedVocabulary.<lang>.ts`.\n * - Canonical attribute aliases (`checked` for `selected`) are kept untranslated,\n * unless a localized name already uses the word.\n * - Throws on a collision within the component, e.g. two attributes translated to the same word.\n */\n resolve(vocabulary: ComponentVocabulary, prefix = this.prefix, dictionary = this.dictionary): LocalizedVocabulary {\n const component = dictionary.components?.[vocabulary.tag] ?? {}\n const names: LocalizedNames = {\n attributes: new Map(),\n values: new Map(),\n events: new Map(),\n slots: new Map(),\n parts: new Map()\n }\n const localized: LocalizedVocabulary = {\n lang: dictionary.lang,\n prefix,\n vocabulary,\n tag: `${prefix}-${dictionary.tags?.[vocabulary.tag] ?? Vocabulary.stem(vocabulary.tag)}`,\n attributes: new Map(),\n values: new Map(),\n events: new Map(),\n slots: new Map(),\n parts: new Map(),\n names\n }\n const where = `<${localized.tag}>`\n\n // the tag's own attributes, then the shared ones it doesn't declare (`disabled` ...):\n // - a dictionary names both\n // - a shared name the dictionary doesn't name takes its language's `SharedVocabulary.<lang>.ts` name,\n // the tag's own `disabled` (`<ui-button>`'s) too, so one word means disabled on every tag\n for (const spec of SharedVocabulary.attributesFor(vocabulary)) {\n const name =\n component.attributes?.[spec.name] ??\n dictionary.attributes?.[spec.name] ??\n SharedVocabulary.translated(dictionary.lang, spec.name) ??\n spec.name\n Vocabulary.claim({ map: localized.attributes, name, value: spec, what: `${where} attribute` })\n names.attributes.set(spec.name, name)\n const isShared = SharedVocabulary.takesShared(vocabulary, spec.name)\n const values = Vocabulary.resolveValues({ spec, tag: vocabulary.tag, dictionary, isShared })\n if (values) {\n localized.values.set(spec.name, values.forward)\n names.values.set(spec.name, values.inverse)\n }\n }\n for (const spec of vocabulary.attributes) {\n for (const alias of spec.aliases ?? []) {\n if (!localized.attributes.has(alias)) localized.attributes.set(alias, spec)\n }\n }\n for (const spec of vocabulary.events) {\n const translated = component.events?.[spec.name] ?? dictionary.events?.[spec.name]\n const name = Vocabulary.eventName(spec.name, prefix, translated)\n Vocabulary.claim({ map: localized.events, name, value: spec, what: `${where} event` })\n names.events.set(spec.name, name)\n }\n for (const spec of vocabulary.slots) {\n const name = spec.name && (component.slots?.[spec.name] ?? dictionary.slots?.[spec.name] ?? spec.name)\n Vocabulary.claim({ map: localized.slots, name, value: spec, what: `${where} slot` })\n names.slots.set(spec.name, name)\n }\n for (const spec of vocabulary.parts) {\n const name = component.parts?.[spec.name] ?? dictionary.parts?.[spec.name] ?? spec.name\n Vocabulary.claim({ map: localized.parts, name, value: spec, what: `${where} part` })\n names.parts.set(spec.name, name)\n }\n return localized\n }\n\n ////////////////\n // ## The page's languages\n ////////////////\n\n /**\n * Name every component in the page's language, e.g. Spanish:\n * `defineComponents({ prefix: \"es\", dictionary: es })`\n * makes `<es-boton primario color=\"rojo\">` a `<ui-button color=\"red\">`.\n * - Every component the dictionary names a tag for (`dictionary.tags`), and no other:\n * one defined already, now; one defined later (a family loaded on demand), as it's defined.\n * - Its texts go to the runtime's texts separately (`UI.i18n.registerDictionary()`): this is names only.\n * - Calling it again with the same prefix and dictionary does nothing.\n * - throws a `TypeError` when `prefix` is taken by another dictionary, or two components would share a name\n */\n defineComponents(language: PageLanguage): void {\n const { prefix, dictionary } = language\n const existing = this.languages.find((each) => each.prefix === prefix)\n if (existing?.dictionary === dictionary) return\n if (existing || prefix === this.prefix) {\n throw new TypeError(\n `Vocabulary.defineComponents(): the prefix \\`${prefix}\\` is taken; give the ${dictionary.lang} dictionary another`\n )\n }\n this.checkTags(language)\n this.languages.push(language)\n for (const [tag, define] of this.components) this.defineIn(language, this.vocabularies.get(tag)!, define)\n }\n\n /**\n * The canonical tag a page language's tag stands for: `es-boton` => `ui-button`.\n * - From the dictionaries' `tags`, so it answers before the component's family has loaded.\n * - A canonical tag answers itself; `undefined` for any other.\n */\n canonicalTagFor(tag: string): string | undefined {\n if (tag.startsWith(`${this.prefix}-`)) return tag\n for (const { prefix, dictionary } of this.languages) {\n if (!tag.startsWith(`${prefix}-`)) continue\n const stem = tag.slice(prefix.length + 1)\n const canonical = Object.entries(dictionary.tags ?? {}).find(([, name]) => name === stem)?.[0]\n if (canonical) return canonical\n }\n return undefined\n }\n\n /**\n * One language's `Dictionary`, gathered from its parts: `shared`, its names for every tag\n * (`components.es.ts`), and `tags`, each tag's own file (`UIButton.es.ts`).\n * - Static: pure.\n * - throws a `TypeError` on a tag file of another language, or two files for one tag\n */\n static dictionaryFrom(shared: Dictionary, tags: Iterable<TagDictionary>): Dictionary {\n const names: Record<string, string> = { ...shared.tags }\n const components: Record<string, ComponentDictionary> = { ...shared.components }\n for (const tag of tags) {\n if (tag.lang !== shared.lang || components[tag.tag]) {\n throw new TypeError(\n `Vocabulary.dictionaryFrom(): <${tag.tag}>'s ${tag.lang} names don't belong in the ${shared.lang} ` +\n \"dictionary, or come twice; one file per tag and language\"\n )\n }\n names[tag.tag] = tag.name\n components[tag.tag] = tag\n }\n return { ...shared, tags: names, components }\n }\n\n /** Define `vocabulary`'s component under `language`, when its dictionary names the tag. */\n private defineIn(language: PageLanguage, vocabulary: ComponentVocabulary, define: ComponentDefiner) {\n const { prefix, dictionary } = language\n if (!dictionary.tags?.[vocabulary.tag]) return\n define(this.resolve(vocabulary, prefix, dictionary).tag, dictionary)\n }\n\n /** Throw when `language` would give two components one tag: one of them would be unreachable on the page. */\n private checkTags({ prefix, dictionary }: PageLanguage) {\n const tags = new Map<string, string>()\n for (const [canonical, name] of Object.entries(dictionary.tags ?? {})) {\n Vocabulary.claim({ map: tags, name: `${prefix}-${name}`, value: canonical, what: `the ${dictionary.lang} tag` })\n }\n }\n\n ////////////////\n // ## Single names\n ////////////////\n\n /**\n * Localized `attribute` (and `value`) on localized `tag` => canonical names.\n * - `canonicalize(\"es-tarjeta\", \"color\", \"rojo\")` => `{ attribute: \"color\", value: \"red\" }`\n * - `multiple` values map token by token (`\"movil tableta\"` => `\"mobile tablet\"`).\n * - Unknown values pass through unchanged, so the enum converter can warn about them in context.\n * - `undefined` for an unknown tag or attribute.\n * - Canonical tags resolve even before `define()`, via the default prefix and dictionary.\n */\n canonicalize(tag: string, attribute: string, value?: string): NamePair | undefined {\n const localized = this.localizedFor(tag)\n const spec = localized?.attributes.get(attribute)\n if (!localized || !spec) return undefined\n return { attribute: spec.name, value: Vocabulary.mapValue(spec, localized.values.get(spec.name), value) }\n }\n\n /**\n * Canonical `attribute` (and `value`) => the names an author writes on localized `tag`.\n * - `localize(\"es-tarjeta\", \"color\", \"red\")` => `{ attribute: \"color\", value: \"rojo\" }`\n * - Exact inverse of `canonicalize()` for names the dictionary covers.\n * - `undefined` for an unknown tag or attribute.\n */\n localize(tag: string, attribute: string, value?: string): NamePair | undefined {\n const localized = this.localizedFor(tag)\n const name = localized?.names.attributes.get(attribute)\n const spec = localized?.attributes.get(name ?? \"\")\n if (!localized || !name || !spec) return undefined\n return { attribute: name, value: Vocabulary.mapValue(spec, localized.names.values.get(attribute), value) }\n }\n\n /**\n * Localized vocabulary for localized `tag`.\n * - Falls back to resolving a registered CANONICAL tag with the defaults, so English works without `define()`.\n */\n localizedFor(tag: string): LocalizedVocabulary | undefined {\n const known = this.localized.get(tag)\n if (known) return known\n const vocabulary = this.vocabularies.get(tag)\n if (!vocabulary) return undefined\n const localized = this.resolve(vocabulary)\n if (localized.tag === tag) this.localized.set(tag, localized)\n return localized\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n // Static, not instance methods: pure functions of their arguments, shared by every registry.\n\n /**\n * Localized value maps for one attribute, or `undefined` if it has no value set.\n * - Per value: the tag's own (`components[tag].values`) > the shared set's map > `words` > itself.\n * - `words` only for an attribute's own values: never a shared attribute's (`animation` keeps Fomantic's names).\n * - A shared attribute's own map, where its language words its values (`font=\"negrita\"`):\n * `SharedVocabulary.translatedValues()`.\n * - `keyOrValueAndKey` attributes also take the boolean words (`pointing=\"yes\"`).\n * - A localized value with accents is also found without them: `pequeño` and `pequeno` both mean `small`.\n */\n private static resolveValues({ spec, tag, dictionary, isShared }: ValuesProps) {\n const set = ValueSets.setFor(spec)\n if (!set) return undefined\n const forward = new Map<string, string>()\n const inverse = new Map<string, string>()\n const shared: NameMap | undefined =\n typeof set === \"string\"\n ? dictionary.values?.[set]\n : isShared\n ? SharedVocabulary.translatedValues(dictionary.lang, spec.name)\n : undefined\n const own = dictionary.components?.[tag]?.values?.[spec.name]\n const words = isShared ? undefined : dictionary.words\n add(ValueSets.get(set), shared)\n if (spec.kind === \"keyOrValueAndKey\") add(ValueSets.get(\"booleans\"), dictionary.values?.booleans)\n // the unaccented spellings, after every real name: never in the way of one\n for (const [name, value] of [...forward]) {\n const plain = withoutAccents(name)\n if (!forward.has(plain)) forward.set(plain, value)\n }\n return { forward, inverse }\n\n /** Map each of `values` through `own` > `map` > `words` > itself, into both directions. */\n function add(values: readonly string[], map: NameMap | undefined) {\n for (const value of values) {\n if (inverse.has(value)) continue\n const name = own?.[value] ?? map?.[value] ?? words?.[value] ?? value\n Vocabulary.claim({ map: forward, name, value, what: `<${tag} ${spec.name}> value` })\n inverse.set(value, name)\n }\n }\n }\n\n /**\n * Set `map[name] = value`, throwing if `name` is already taken by something else.\n * - Why throw: a collision means one of two canonical names became unreachable in that language.\n * - `what` names the kind of name for the error, e.g. `<es-tarjeta> attribute`.\n */\n private static claim<T>({ map, name, value, what }: { map: Map<string, T>; name: string; value: T; what: string }) {\n const existing = map.get(name)\n if (existing !== undefined && existing !== value) {\n throw new TypeError(\n `Vocabulary.resolve(): ${what} ${JSON.stringify(name)} is used twice; translate one of them differently`\n )\n }\n map.set(name, value)\n }\n\n /**\n * Map `value` through `values`.\n * - `multiple` attributes go token by token, longest phrase first, so `large screen` stays one token.\n */\n private static mapValue(spec: AttributeSpec, values: Map<string, string> | undefined, value: string | undefined) {\n if (value === undefined || !values) return value\n const text = value.trim()\n if (spec.kind !== \"multiple\") return values.get(text) ?? value\n const words = text.split(/\\s+/)\n const tokens: string[] = []\n for (let index = 0; index < words.length;) {\n let length = Math.min(MAX_PHRASE_WORDS, words.length - index)\n for (; length > 1; length--) {\n if (values.has(words.slice(index, index + length).join(\" \"))) break\n }\n const phrase = words.slice(index, index + length).join(\" \")\n tokens.push(values.get(phrase) ?? phrase)\n index += length\n }\n return tokens.join(\" \")\n }\n\n /** Name without its prefix: `ui-card` => `card`, `ui-changed` => `change`. */\n private static stem(name: string) {\n const dash = name.indexOf(\"-\")\n return dash < 0 ? name : name.slice(dash + 1)\n }\n\n /**\n * Event `name`'s name under `prefix`, `translated` when the dictionary names it.\n * - One of Spell UI's own (`ui-changed`) takes the prefix: `es-changed`, or `es-cambiado` translated.\n * - Another package's (`spell-exploring`, of the `<spell-viewer>` component pack) keeps its name, unless translated:\n * a tag outside Spell UI names its events as it likes, and the page listens for them by that name.\n */\n private static eventName(name: string, prefix: string, translated: string | undefined): string {\n if (translated !== undefined) return `${prefix}-${translated}`\n return name.startsWith(UI_EVENT_PREFIX) ? `${prefix}-${Vocabulary.stem(name)}` : name\n }\n}\n\n/** A page language: the prefix its tags take (`es`), and the dictionary that names them. */\nexport type PageLanguage = {\n /** Its tags' and events' prefix, e.g. `es`: `<es-boton>`, `es-cambiado`. */\n readonly prefix: string\n /** Its names (and texts). */\n readonly dictionary: Dictionary\n}\n\n/** `Vocabulary.resolveValues()`'s input. */\ntype ValuesProps = {\n /** the attribute */\n spec: AttributeSpec\n /** its canonical tag */\n tag: string\n /** the dictionary */\n dictionary: Dictionary\n /** a shared attribute (`SharedVocabulary`) the tag takes, not one of its own */\n isShared: boolean\n}\n\n/** What Spell UI's own event names start with (`ui-changed`): they take a translated tag's prefix. */\nconst UI_EVENT_PREFIX = \"ui-\"\n\n/** Longest multi-word value `mapValue()` looks for, e.g. `large screen` (2) with room to spare. */\nconst MAX_PHRASE_WORDS = 3\n","{\n \"name\": \"spell\",\n \"version\": \"0.8.6\",\n \"private\": true,\n \"description\": \"Spell's kit: the layer every repo stands on (util, toolchain, server, element, its tools and test helpers, the spell command), the house style, and the ONE install over the child repos\",\n \"license\": \"MIT\",\n \"repository\": \"https://github.com/spell-app/spell\",\n \"bin\": {\n \"spell\": \"./bin/spell.mjs\",\n \"spell-pack\": \"./bin/spell-pack.mjs\",\n \"spell-types\": \"./bin/spell-types.ts\"\n },\n \"workspaces\": [\n \"parser\",\n \"ui\",\n \"epic\",\n \"app\"\n ],\n \"type\": \"module\",\n \"sideEffects\": [\n \"./src/element/HotDefinitions.ts\",\n \"./src/test-helpers/Fixture.ts\",\n \"./src/toolchain/**\",\n \"./src/server/**\",\n \"./src/element-tools/**\",\n \"./src/cli/**\",\n \"./bin/**\",\n \"./scripts/**\",\n \"./tools/**\",\n \"./parser/**\",\n \"**/*.css\",\n \"./ui/src/index.ts\",\n \"./ui/src/components/*/index.ts\",\n \"./ui/src/docs-components/*/index.ts\",\n \"./ui/src/elements/SpellUISettings.ts\",\n \"./ui/site/_src/snapshot.ts\",\n \"./ui/site/_src/SitePacks.ts\",\n \"./ui/site/_src/site.ts\",\n \"./ui/src/tools/demo/**\",\n \"./epic/**\",\n \"./app/**\"\n ],\n \"exports\": {\n \"./toolchain/lint/imports\": {\n \"spell-source\": \"./src/toolchain/lint.imports.ts\",\n \"types\": \"./dist-types/src/toolchain/lint.imports.d.ts\",\n \"default\": \"./src/toolchain/lint.imports.ts\"\n },\n \"./toolchain/lint/patterns\": {\n \"spell-source\": \"./src/toolchain/lint.patterns.ts\",\n \"types\": \"./dist-types/src/toolchain/lint.patterns.d.ts\",\n \"default\": \"./src/toolchain/lint.patterns.ts\"\n },\n \"./toolchain/tsconfig.base.json\": \"./src/toolchain/tsconfig.base.json\",\n \"./toolchain/types\": \"./src/toolchain/types/index.d.ts\",\n \"./toolchain/*\": {\n \"spell-source\": \"./src/toolchain/*.ts\",\n \"types\": \"./dist-types/src/toolchain/*.d.ts\",\n \"default\": \"./src/toolchain/*.ts\"\n },\n \"./server/checkout\": {\n \"spell-source\": \"./src/server/checkout.ts\",\n \"types\": \"./dist-types/src/server/checkout.d.ts\",\n \"default\": \"./src/server/checkout.ts\"\n },\n \"./server/Git\": {\n \"spell-source\": \"./src/server/Git.ts\",\n \"types\": \"./dist-types/src/server/Git.d.ts\",\n \"default\": \"./src/server/Git.ts\"\n },\n \"./server/RealPath\": {\n \"spell-source\": \"./src/server/RealPath.ts\",\n \"types\": \"./dist-types/src/server/RealPath.d.ts\",\n \"default\": \"./src/server/RealPath.ts\"\n },\n \"./server/FileLock\": {\n \"spell-source\": \"./src/server/FileLock.ts\",\n \"types\": \"./dist-types/src/server/FileLock.d.ts\",\n \"default\": \"./src/server/FileLock.ts\"\n },\n \"./element-tools/BrowserPage\": {\n \"spell-source\": \"./src/element-tools/BrowserPage.ts\",\n \"types\": \"./dist-types/src/element-tools/BrowserPage.d.ts\",\n \"default\": \"./src/element-tools/BrowserPage.ts\"\n },\n \"./server/open\": {\n \"spell-source\": \"./src/server/open.ts\",\n \"types\": \"./dist-types/src/server/open.d.ts\",\n \"default\": \"./src/server/open.ts\"\n },\n \"./server/page/settings\": {\n \"spell-source\": \"./src/server/page/settings.ts\",\n \"types\": \"./dist-types/src/server/page/settings.d.ts\",\n \"default\": \"./src/server/page/settings.ts\"\n },\n \"./server/page/prune\": {\n \"spell-source\": \"./src/server/page/prune.ts\",\n \"types\": \"./dist-types/src/server/page/prune.d.ts\",\n \"default\": \"./src/server/page/prune.ts\"\n },\n \"./server/DataFile\": {\n \"spell-source\": \"./src/server/DataFile.ts\",\n \"types\": \"./dist-types/src/server/DataFile.d.ts\",\n \"default\": \"./src/server/DataFile.ts\"\n },\n \"./server/contentFolder\": {\n \"spell-source\": \"./src/server/contentFolder.ts\",\n \"types\": \"./dist-types/src/server/contentFolder.d.ts\",\n \"default\": \"./src/server/contentFolder.ts\"\n },\n \"./server/kitFolders\": {\n \"spell-source\": \"./src/server/kitFolders.ts\",\n \"types\": \"./dist-types/src/server/kitFolders.d.ts\",\n \"default\": \"./src/server/kitFolders.ts\"\n },\n \"./util/node/json5\": {\n \"spell-source\": \"./src/util/node/json5.ts\",\n \"types\": \"./dist-types/src/util/node/json5.d.ts\",\n \"default\": \"./src/util/node/json5.ts\"\n },\n \"./util\": {\n \"spell-source\": \"./src/util/index.ts\",\n \"types\": \"./dist-types/src/util/index.d.ts\",\n \"default\": \"./src/util/index.ts\"\n },\n \"./util/persist\": {\n \"spell-source\": \"./src/util/persist/index.ts\",\n \"types\": \"./dist-types/src/util/persist/index.d.ts\",\n \"default\": \"./src/util/persist/index.ts\"\n },\n \"./util/reactive\": {\n \"spell-source\": \"./src/util/reactive/index.ts\",\n \"types\": \"./dist-types/src/util/reactive/index.d.ts\",\n \"default\": \"./src/util/reactive/index.ts\"\n },\n \"./util/spell\": {\n \"spell-source\": \"./src/util/spell/index.ts\",\n \"types\": \"./dist-types/src/util/spell/index.d.ts\",\n \"default\": \"./src/util/spell/index.ts\"\n },\n \"./server\": {\n \"spell-source\": \"./src/server/index.ts\",\n \"types\": \"./dist-types/src/server/index.d.ts\",\n \"default\": \"./src/server/index.ts\"\n },\n \"./server/page\": {\n \"spell-source\": \"./src/server/page/index.ts\",\n \"types\": \"./dist-types/src/server/page/index.d.ts\",\n \"default\": \"./src/server/page/index.ts\"\n },\n \"./server/site\": {\n \"spell-source\": \"./src/server/site/index.ts\",\n \"types\": \"./dist-types/src/server/site/index.d.ts\",\n \"default\": \"./src/server/site/index.ts\"\n },\n \"./element\": {\n \"spell-source\": \"./src/element/index.ts\",\n \"types\": \"./dist-types/src/element/index.d.ts\",\n \"default\": \"./src/element/index.ts\"\n },\n \"./cli\": {\n \"spell-source\": \"./src/cli/index.ts\",\n \"types\": \"./dist-types/src/cli/index.d.ts\",\n \"default\": \"./src/cli/index.ts\"\n },\n \"./*\": {\n \"spell-source\": [\n \"./src/*.ts\",\n \"./src/*.tsx\",\n \"./src/*/index.ts\",\n \"./src/*/index.tsx\",\n \"./src/*\"\n ],\n \"types\": [\n \"./dist-types/src/*.d.ts\",\n \"./dist-types/src/*/index.d.ts\"\n ],\n \"default\": \"./src/*\"\n },\n \"./*.ts\": {\n \"spell-source\": \"./src/*.ts\",\n \"types\": \"./dist-types/src/*.d.ts\",\n \"default\": \"./src/*.ts\"\n },\n \"./package.json\": \"./package.json\",\n \"./parser/parser\": {\n \"spell-source\": \"./parser/src/parser/index.ts\",\n \"types\": \"./parser/dist-types/src/parser/index.d.ts\",\n \"default\": \"./parser/src/parser/index.ts\"\n },\n \"./parser/parser/rulex\": {\n \"spell-source\": \"./parser/src/parser/rulex/index.ts\",\n \"types\": \"./parser/dist-types/src/parser/rulex/index.d.ts\",\n \"default\": \"./parser/src/parser/rulex/index.ts\"\n },\n \"./parser/parser/test\": {\n \"spell-source\": \"./parser/src/parser/test/index.ts\",\n \"types\": \"./parser/dist-types/src/parser/test/index.d.ts\",\n \"default\": \"./parser/src/parser/test/index.ts\"\n },\n \"./parser/markdown\": {\n \"spell-source\": \"./parser/src/markdown/index.ts\",\n \"types\": \"./parser/dist-types/src/markdown/index.d.ts\",\n \"default\": \"./parser/src/markdown/index.ts\"\n },\n \"./parser/core\": {\n \"spell-source\": \"./parser/src/core/index.ts\",\n \"types\": \"./parser/dist-types/src/core/index.d.ts\",\n \"default\": \"./parser/src/core/index.ts\"\n },\n \"./parser/py\": {\n \"spell-source\": \"./parser/src/py/index.ts\",\n \"types\": \"./parser/dist-types/src/py/index.d.ts\",\n \"default\": \"./parser/src/py/index.ts\"\n },\n \"./parser/spell\": {\n \"spell-source\": \"./parser/src/spell/index.ts\",\n \"types\": \"./parser/dist-types/src/spell/index.d.ts\",\n \"default\": \"./parser/src/spell/index.ts\"\n },\n \"./parser/spell/test\": {\n \"spell-source\": \"./parser/src/spell/test/index.ts\",\n \"types\": \"./parser/dist-types/src/spell/test/index.d.ts\",\n \"default\": \"./parser/src/spell/test/index.ts\"\n },\n \"./parser/spellx\": {\n \"spell-source\": \"./parser/src/spellx/index.ts\",\n \"types\": \"./parser/dist-types/src/spellx/index.d.ts\",\n \"default\": \"./parser/src/spellx/index.ts\"\n },\n \"./parser/cli\": {\n \"spell-source\": \"./parser/src/cli/index.ts\",\n \"types\": \"./parser/dist-types/src/cli/index.d.ts\",\n \"default\": \"./parser/src/cli/index.ts\"\n },\n \"./parser/*\": {\n \"spell-source\": [\n \"./parser/src/*.ts\",\n \"./parser/src/*.tsx\",\n \"./parser/src/*/index.ts\",\n \"./parser/src/*/index.tsx\",\n \"./parser/src/*\"\n ],\n \"types\": [\n \"./parser/dist-types/src/*.d.ts\",\n \"./parser/dist-types/src/*/index.d.ts\"\n ],\n \"default\": \"./parser/src/*\"\n },\n \"./parser/*.ts\": {\n \"spell-source\": \"./parser/src/*.ts\",\n \"types\": \"./parser/dist-types/src/*.d.ts\",\n \"default\": \"./parser/src/*.ts\"\n },\n \"./ui\": {\n \"spell-source\": \"./ui/src/index.ts\",\n \"types\": \"./ui/dist-types/src/index.d.ts\",\n \"default\": \"./ui/src/index.ts\"\n },\n \"./ui/components/ui-accordion\": {\n \"spell-source\": \"./ui/src/components/ui-accordion/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-accordion/index.d.ts\",\n \"default\": \"./ui/src/components/ui-accordion/index.ts\"\n },\n \"./ui/components/ui-ad\": {\n \"spell-source\": \"./ui/src/components/ui-ad/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-ad/index.d.ts\",\n \"default\": \"./ui/src/components/ui-ad/index.ts\"\n },\n \"./ui/components/ui-breadcrumbs\": {\n \"spell-source\": \"./ui/src/components/ui-breadcrumbs/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-breadcrumbs/index.d.ts\",\n \"default\": \"./ui/src/components/ui-breadcrumbs/index.ts\"\n },\n \"./ui/components/ui-button\": {\n \"spell-source\": \"./ui/src/components/ui-button/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-button/index.d.ts\",\n \"default\": \"./ui/src/components/ui-button/index.ts\"\n },\n \"./ui/components/ui-calendar\": {\n \"spell-source\": \"./ui/src/components/ui-calendar/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-calendar/index.d.ts\",\n \"default\": \"./ui/src/components/ui-calendar/index.ts\"\n },\n \"./ui/components/ui-card\": {\n \"spell-source\": \"./ui/src/components/ui-card/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-card/index.d.ts\",\n \"default\": \"./ui/src/components/ui-card/index.ts\"\n },\n \"./ui/components/ui-checkbox\": {\n \"spell-source\": \"./ui/src/components/ui-checkbox/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-checkbox/index.d.ts\",\n \"default\": \"./ui/src/components/ui-checkbox/index.ts\"\n },\n \"./ui/components/ui-code\": {\n \"spell-source\": \"./ui/src/components/ui-code/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-code/index.d.ts\",\n \"default\": \"./ui/src/components/ui-code/index.ts\"\n },\n \"./ui/components/ui-comment\": {\n \"spell-source\": \"./ui/src/components/ui-comment/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-comment/index.d.ts\",\n \"default\": \"./ui/src/components/ui-comment/index.ts\"\n },\n \"./ui/components/ui-components\": {\n \"spell-source\": \"./ui/src/components/ui-components/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-components/index.d.ts\",\n \"default\": \"./ui/src/components/ui-components/index.ts\"\n },\n \"./ui/components/ui-container\": {\n \"spell-source\": \"./ui/src/components/ui-container/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-container/index.d.ts\",\n \"default\": \"./ui/src/components/ui-container/index.ts\"\n },\n \"./ui/components/ui-dimmer\": {\n \"spell-source\": \"./ui/src/components/ui-dimmer/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-dimmer/index.d.ts\",\n \"default\": \"./ui/src/components/ui-dimmer/index.ts\"\n },\n \"./ui/components/ui-divider\": {\n \"spell-source\": \"./ui/src/components/ui-divider/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-divider/index.d.ts\",\n \"default\": \"./ui/src/components/ui-divider/index.ts\"\n },\n \"./ui/components/ui-dropdown\": {\n \"spell-source\": \"./ui/src/components/ui-dropdown/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-dropdown/index.d.ts\",\n \"default\": \"./ui/src/components/ui-dropdown/index.ts\"\n },\n \"./ui/components/ui-embed\": {\n \"spell-source\": \"./ui/src/components/ui-embed/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-embed/index.d.ts\",\n \"default\": \"./ui/src/components/ui-embed/index.ts\"\n },\n \"./ui/components/ui-example\": {\n \"spell-source\": \"./ui/src/components/ui-example/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-example/index.d.ts\",\n \"default\": \"./ui/src/components/ui-example/index.ts\"\n },\n \"./ui/components/ui-emoji\": {\n \"spell-source\": \"./ui/src/components/ui-emoji/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-emoji/index.d.ts\",\n \"default\": \"./ui/src/components/ui-emoji/index.ts\"\n },\n \"./ui/components/ui-feed\": {\n \"spell-source\": \"./ui/src/components/ui-feed/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-feed/index.d.ts\",\n \"default\": \"./ui/src/components/ui-feed/index.ts\"\n },\n \"./ui/components/ui-flag\": {\n \"spell-source\": \"./ui/src/components/ui-flag/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-flag/index.d.ts\",\n \"default\": \"./ui/src/components/ui-flag/index.ts\"\n },\n \"./ui/components/ui-flyout\": {\n \"spell-source\": \"./ui/src/components/ui-flyout/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-flyout/index.d.ts\",\n \"default\": \"./ui/src/components/ui-flyout/index.ts\"\n },\n \"./ui/components/ui-form\": {\n \"spell-source\": \"./ui/src/components/ui-form/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-form/index.d.ts\",\n \"default\": \"./ui/src/components/ui-form/index.ts\"\n },\n \"./ui/components/ui-grid\": {\n \"spell-source\": \"./ui/src/components/ui-grid/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-grid/index.d.ts\",\n \"default\": \"./ui/src/components/ui-grid/index.ts\"\n },\n \"./ui/components/ui-icon\": {\n \"spell-source\": \"./ui/src/components/ui-icon/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-icon/index.d.ts\",\n \"default\": \"./ui/src/components/ui-icon/index.ts\"\n },\n \"./ui/components/ui-icon-picker\": {\n \"spell-source\": \"./ui/src/components/ui-icon-picker/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-icon-picker/index.d.ts\",\n \"default\": \"./ui/src/components/ui-icon-picker/index.ts\"\n },\n \"./ui/components/ui-image\": {\n \"spell-source\": \"./ui/src/components/ui-image/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-image/index.d.ts\",\n \"default\": \"./ui/src/components/ui-image/index.ts\"\n },\n \"./ui/components/ui-include\": {\n \"spell-source\": \"./ui/src/components/ui-include/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-include/index.d.ts\",\n \"default\": \"./ui/src/components/ui-include/index.ts\"\n },\n \"./ui/components/ui-input\": {\n \"spell-source\": \"./ui/src/components/ui-input/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-input/index.d.ts\",\n \"default\": \"./ui/src/components/ui-input/index.ts\"\n },\n \"./ui/components/ui-item\": {\n \"spell-source\": \"./ui/src/components/ui-item/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-item/index.d.ts\",\n \"default\": \"./ui/src/components/ui-item/index.ts\"\n },\n \"./ui/components/ui-items\": {\n \"spell-source\": \"./ui/src/components/ui-items/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-items/index.d.ts\",\n \"default\": \"./ui/src/components/ui-items/index.ts\"\n },\n \"./ui/components/ui-keys\": {\n \"spell-source\": \"./ui/src/components/ui-keys/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-keys/index.d.ts\",\n \"default\": \"./ui/src/components/ui-keys/index.ts\"\n },\n \"./ui/components/ui-label\": {\n \"spell-source\": \"./ui/src/components/ui-label/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-label/index.d.ts\",\n \"default\": \"./ui/src/components/ui-label/index.ts\"\n },\n \"./ui/components/ui-list\": {\n \"spell-source\": \"./ui/src/components/ui-list/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-list/index.d.ts\",\n \"default\": \"./ui/src/components/ui-list/index.ts\"\n },\n \"./ui/components/ui-loader\": {\n \"spell-source\": \"./ui/src/components/ui-loader/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-loader/index.d.ts\",\n \"default\": \"./ui/src/components/ui-loader/index.ts\"\n },\n \"./ui/components/ui-markdown\": {\n \"spell-source\": \"./ui/src/components/ui-markdown/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-markdown/index.d.ts\",\n \"default\": \"./ui/src/components/ui-markdown/index.ts\"\n },\n \"./ui/components/ui-menu\": {\n \"spell-source\": \"./ui/src/components/ui-menu/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-menu/index.d.ts\",\n \"default\": \"./ui/src/components/ui-menu/index.ts\"\n },\n \"./ui/components/ui-message\": {\n \"spell-source\": \"./ui/src/components/ui-message/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-message/index.d.ts\",\n \"default\": \"./ui/src/components/ui-message/index.ts\"\n },\n \"./ui/components/ui-modal\": {\n \"spell-source\": \"./ui/src/components/ui-modal/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-modal/index.d.ts\",\n \"default\": \"./ui/src/components/ui-modal/index.ts\"\n },\n \"./ui/components/ui-nag\": {\n \"spell-source\": \"./ui/src/components/ui-nag/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-nag/index.d.ts\",\n \"default\": \"./ui/src/components/ui-nag/index.ts\"\n },\n \"./ui/components/ui-page\": {\n \"spell-source\": \"./ui/src/components/ui-page/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-page/index.d.ts\",\n \"default\": \"./ui/src/components/ui-page/index.ts\"\n },\n \"./ui/components/ui-panel\": {\n \"spell-source\": \"./ui/src/components/ui-panel/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-panel/index.d.ts\",\n \"default\": \"./ui/src/components/ui-panel/index.ts\"\n },\n \"./ui/components/ui-parts\": {\n \"spell-source\": \"./ui/src/components/ui-parts/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-parts/index.d.ts\",\n \"default\": \"./ui/src/components/ui-parts/index.ts\"\n },\n \"./ui/components/ui-placeholder\": {\n \"spell-source\": \"./ui/src/components/ui-placeholder/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-placeholder/index.d.ts\",\n \"default\": \"./ui/src/components/ui-placeholder/index.ts\"\n },\n \"./ui/components/ui-popup\": {\n \"spell-source\": \"./ui/src/components/ui-popup/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-popup/index.d.ts\",\n \"default\": \"./ui/src/components/ui-popup/index.ts\"\n },\n \"./ui/components/ui-progress\": {\n \"spell-source\": \"./ui/src/components/ui-progress/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-progress/index.d.ts\",\n \"default\": \"./ui/src/components/ui-progress/index.ts\"\n },\n \"./ui/components/ui-property-editor\": {\n \"spell-source\": \"./ui/src/components/ui-property-editor/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-property-editor/index.d.ts\",\n \"default\": \"./ui/src/components/ui-property-editor/index.ts\"\n },\n \"./ui/components/ui-quote\": {\n \"spell-source\": \"./ui/src/components/ui-quote/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-quote/index.d.ts\",\n \"default\": \"./ui/src/components/ui-quote/index.ts\"\n },\n \"./ui/components/ui-rail\": {\n \"spell-source\": \"./ui/src/components/ui-rail/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-rail/index.d.ts\",\n \"default\": \"./ui/src/components/ui-rail/index.ts\"\n },\n \"./ui/components/ui-rating\": {\n \"spell-source\": \"./ui/src/components/ui-rating/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-rating/index.d.ts\",\n \"default\": \"./ui/src/components/ui-rating/index.ts\"\n },\n \"./ui/components/ui-reveal\": {\n \"spell-source\": \"./ui/src/components/ui-reveal/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-reveal/index.d.ts\",\n \"default\": \"./ui/src/components/ui-reveal/index.ts\"\n },\n \"./ui/components/ui-root\": {\n \"spell-source\": \"./ui/src/components/ui-root/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-root/index.d.ts\",\n \"default\": \"./ui/src/components/ui-root/index.ts\"\n },\n \"./ui/components/ui-search\": {\n \"spell-source\": \"./ui/src/components/ui-search/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-search/index.d.ts\",\n \"default\": \"./ui/src/components/ui-search/index.ts\"\n },\n \"./ui/components/ui-section\": {\n \"spell-source\": \"./ui/src/components/ui-section/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-section/index.d.ts\",\n \"default\": \"./ui/src/components/ui-section/index.ts\"\n },\n \"./ui/components/ui-segment\": {\n \"spell-source\": \"./ui/src/components/ui-segment/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-segment/index.d.ts\",\n \"default\": \"./ui/src/components/ui-segment/index.ts\"\n },\n \"./ui/components/ui-select\": {\n \"spell-source\": \"./ui/src/components/ui-select/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-select/index.d.ts\",\n \"default\": \"./ui/src/components/ui-select/index.ts\"\n },\n \"./ui/components/ui-shape\": {\n \"spell-source\": \"./ui/src/components/ui-shape/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-shape/index.d.ts\",\n \"default\": \"./ui/src/components/ui-shape/index.ts\"\n },\n \"./ui/components/ui-sidebar\": {\n \"spell-source\": \"./ui/src/components/ui-sidebar/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-sidebar/index.d.ts\",\n \"default\": \"./ui/src/components/ui-sidebar/index.ts\"\n },\n \"./ui/components/ui-slider\": {\n \"spell-source\": \"./ui/src/components/ui-slider/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-slider/index.d.ts\",\n \"default\": \"./ui/src/components/ui-slider/index.ts\"\n },\n \"./ui/components/ui-space\": {\n \"spell-source\": \"./ui/src/components/ui-space/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-space/index.d.ts\",\n \"default\": \"./ui/src/components/ui-space/index.ts\"\n },\n \"./ui/components/ui-stack\": {\n \"spell-source\": \"./ui/src/components/ui-stack/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-stack/index.d.ts\",\n \"default\": \"./ui/src/components/ui-stack/index.ts\"\n },\n \"./ui/components/ui-statistic\": {\n \"spell-source\": \"./ui/src/components/ui-statistic/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-statistic/index.d.ts\",\n \"default\": \"./ui/src/components/ui-statistic/index.ts\"\n },\n \"./ui/components/ui-step\": {\n \"spell-source\": \"./ui/src/components/ui-step/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-step/index.d.ts\",\n \"default\": \"./ui/src/components/ui-step/index.ts\"\n },\n \"./ui/components/ui-sticky\": {\n \"spell-source\": \"./ui/src/components/ui-sticky/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-sticky/index.d.ts\",\n \"default\": \"./ui/src/components/ui-sticky/index.ts\"\n },\n \"./ui/components/ui-tab\": {\n \"spell-source\": \"./ui/src/components/ui-tab/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-tab/index.d.ts\",\n \"default\": \"./ui/src/components/ui-tab/index.ts\"\n },\n \"./ui/components/ui-table\": {\n \"spell-source\": \"./ui/src/components/ui-table/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-table/index.d.ts\",\n \"default\": \"./ui/src/components/ui-table/index.ts\"\n },\n \"./ui/components/ui-terms\": {\n \"spell-source\": \"./ui/src/components/ui-terms/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-terms/index.d.ts\",\n \"default\": \"./ui/src/components/ui-terms/index.ts\"\n },\n \"./ui/components/ui-text\": {\n \"spell-source\": \"./ui/src/components/ui-text/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-text/index.d.ts\",\n \"default\": \"./ui/src/components/ui-text/index.ts\"\n },\n \"./ui/components/ui-toast\": {\n \"spell-source\": \"./ui/src/components/ui-toast/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-toast/index.d.ts\",\n \"default\": \"./ui/src/components/ui-toast/index.ts\"\n },\n \"./ui/components/ui-transition\": {\n \"spell-source\": \"./ui/src/components/ui-transition/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-transition/index.d.ts\",\n \"default\": \"./ui/src/components/ui-transition/index.ts\"\n },\n \"./ui/components/ui-action\": {\n \"spell-source\": \"./ui/src/components/ui-action/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-action/index.d.ts\",\n \"default\": \"./ui/src/components/ui-action/index.ts\"\n },\n \"./ui/components/ui-toolbar\": {\n \"spell-source\": \"./ui/src/components/ui-toolbar/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-toolbar/index.d.ts\",\n \"default\": \"./ui/src/components/ui-toolbar/index.ts\"\n },\n \"./ui/components/ui-theme-editor\": {\n \"spell-source\": \"./ui/src/components/ui-theme-editor/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-theme-editor/index.d.ts\",\n \"default\": \"./ui/src/components/ui-theme-editor/index.ts\"\n },\n \"./ui/components/ui-theme-menu\": {\n \"spell-source\": \"./ui/src/components/ui-theme-menu/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-theme-menu/index.d.ts\",\n \"default\": \"./ui/src/components/ui-theme-menu/index.ts\"\n },\n \"./ui/components/ui-toc\": {\n \"spell-source\": \"./ui/src/components/ui-toc/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-toc/index.d.ts\",\n \"default\": \"./ui/src/components/ui-toc/index.ts\"\n },\n \"./ui/components/ui-tree-diagram\": {\n \"spell-source\": \"./ui/src/components/ui-tree-diagram/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-tree-diagram/index.d.ts\",\n \"default\": \"./ui/src/components/ui-tree-diagram/index.ts\"\n },\n \"./ui/components/ui-video\": {\n \"spell-source\": \"./ui/src/components/ui-video/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-video/index.d.ts\",\n \"default\": \"./ui/src/components/ui-video/index.ts\"\n },\n \"./ui/components/ui-visibility\": {\n \"spell-source\": \"./ui/src/components/ui-visibility/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-visibility/index.d.ts\",\n \"default\": \"./ui/src/components/ui-visibility/index.ts\"\n },\n \"./ui/components/ui-zoom\": {\n \"spell-source\": \"./ui/src/components/ui-zoom/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-zoom/index.d.ts\",\n \"default\": \"./ui/src/components/ui-zoom/index.ts\"\n },\n \"./ui/docs-components\": {\n \"spell-source\": \"./ui/src/docs-components/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/index.d.ts\",\n \"default\": \"./ui/src/docs-components/index.ts\"\n },\n \"./ui/docs-components/ui-docs-api\": {\n \"spell-source\": \"./ui/src/docs-components/ui-docs-api/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/ui-docs-api/index.d.ts\",\n \"default\": \"./ui/src/docs-components/ui-docs-api/index.ts\"\n },\n \"./ui/docs-components/ui-docs-inspector\": {\n \"spell-source\": \"./ui/src/docs-components/ui-docs-inspector/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/ui-docs-inspector/index.d.ts\",\n \"default\": \"./ui/src/docs-components/ui-docs-inspector/index.ts\"\n },\n \"./ui/docs-components/ui-docs-nav\": {\n \"spell-source\": \"./ui/src/docs-components/ui-docs-nav/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/ui-docs-nav/index.d.ts\",\n \"default\": \"./ui/src/docs-components/ui-docs-nav/index.ts\"\n },\n \"./ui/docs-components/ui-docs-search\": {\n \"spell-source\": \"./ui/src/docs-components/ui-docs-search/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/ui-docs-search/index.d.ts\",\n \"default\": \"./ui/src/docs-components/ui-docs-search/index.ts\"\n },\n \"./ui/docs-components/ui-docs-theme-bench\": {\n \"spell-source\": \"./ui/src/docs-components/ui-docs-theme-bench/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/ui-docs-theme-bench/index.d.ts\",\n \"default\": \"./ui/src/docs-components/ui-docs-theme-bench/index.ts\"\n },\n \"./ui/docs-components/ui-docs-tokens\": {\n \"spell-source\": \"./ui/src/docs-components/ui-docs-tokens/index.ts\",\n \"types\": \"./ui/dist-types/src/docs-components/ui-docs-tokens/index.d.ts\",\n \"default\": \"./ui/src/docs-components/ui-docs-tokens/index.ts\"\n },\n \"./ui/elements\": {\n \"spell-source\": \"./ui/src/elements/index.ts\",\n \"types\": \"./ui/dist-types/src/elements/index.d.ts\",\n \"default\": \"./ui/src/elements/index.ts\"\n },\n \"./ui/icons\": {\n \"spell-source\": \"./ui/src/icons/index.ts\",\n \"types\": \"./ui/dist-types/src/icons/index.d.ts\",\n \"default\": \"./ui/src/icons/index.ts\"\n },\n \"./ui/property\": {\n \"spell-source\": \"./ui/src/property/index.ts\",\n \"types\": \"./ui/dist-types/src/property/index.d.ts\",\n \"default\": \"./ui/src/property/index.ts\"\n },\n \"./ui/runtime\": {\n \"spell-source\": \"./ui/src/runtime/index.ts\",\n \"types\": \"./ui/dist-types/src/runtime/index.d.ts\",\n \"default\": \"./ui/src/runtime/index.ts\"\n },\n \"./ui/static\": {\n \"spell-source\": \"./ui/src/static/index.ts\",\n \"types\": \"./ui/dist-types/src/static/index.d.ts\",\n \"default\": \"./ui/src/static/index.ts\"\n },\n \"./ui/styles\": {\n \"spell-source\": \"./ui/src/styles/index.ts\",\n \"types\": \"./ui/dist-types/src/styles/index.d.ts\",\n \"default\": \"./ui/src/styles/index.ts\"\n },\n \"./ui/tools\": {\n \"spell-source\": \"./ui/src/tools/index.ts\",\n \"types\": \"./ui/dist-types/src/tools/index.d.ts\",\n \"default\": \"./ui/src/tools/index.ts\"\n },\n \"./ui/util\": {\n \"spell-source\": \"./ui/src/util/index.ts\",\n \"types\": \"./ui/dist-types/src/util/index.d.ts\",\n \"default\": \"./ui/src/util/index.ts\"\n },\n \"./ui/vocabulary\": {\n \"spell-source\": \"./ui/src/vocabulary/index.ts\",\n \"types\": \"./ui/dist-types/src/vocabulary/index.d.ts\",\n \"default\": \"./ui/src/vocabulary/index.ts\"\n },\n \"./ui/*\": {\n \"spell-source\": [\n \"./ui/src/*.ts\",\n \"./ui/src/*.tsx\",\n \"./ui/src/*/index.ts\",\n \"./ui/src/*/index.tsx\",\n \"./ui/src/*\"\n ],\n \"types\": [\n \"./ui/dist-types/src/*.d.ts\",\n \"./ui/dist-types/src/*/index.d.ts\"\n ],\n \"default\": \"./ui/src/*\"\n },\n \"./ui/*.ts\": {\n \"spell-source\": \"./ui/src/*.ts\",\n \"types\": \"./ui/dist-types/src/*.d.ts\",\n \"default\": \"./ui/src/*.ts\"\n },\n \"./ui/site/_src/SitePatch\": {\n \"spell-source\": \"./ui/site/_src/SitePatch.ts\",\n \"types\": \"./ui/dist-types/site/_src/SitePatch.d.ts\",\n \"default\": \"./ui/site/_src/SitePatch.ts\"\n },\n \"./ui/site/_src/SiteSections\": {\n \"spell-source\": \"./ui/site/_src/SiteSections.ts\",\n \"types\": \"./ui/dist-types/site/_src/SiteSections.d.ts\",\n \"default\": \"./ui/site/_src/SiteSections.ts\"\n },\n \"./ui/site/_src/site.types\": {\n \"spell-source\": \"./ui/site/_src/site.types.ts\",\n \"types\": \"./ui/dist-types/site/_src/site.types.d.ts\",\n \"default\": \"./ui/site/_src/site.types.ts\"\n },\n \"./ui/vite.config.ts\": {\n \"spell-source\": \"./ui/vite.config.ts\",\n \"types\": \"./ui/dist-types/vite.config.d.ts\",\n \"default\": \"./ui/vite.config.ts\"\n },\n \"./ui/vite.site.config.ts\": {\n \"spell-source\": \"./ui/vite.site.config.ts\",\n \"types\": \"./ui/dist-types/vite.site.config.d.ts\",\n \"default\": \"./ui/vite.site.config.ts\"\n },\n \"./ui/ui-*\": {\n \"spell-source\": \"./ui/src/components/ui-*/index.ts\",\n \"types\": \"./ui/dist-types/src/components/ui-*/index.d.ts\",\n \"default\": \"./ui/src/components/ui-*/index.ts\"\n },\n \"./epic\": {\n \"spell-source\": \"./epic/src/index.ts\",\n \"types\": \"./epic/dist-types/src/index.d.ts\",\n \"default\": \"./epic/src/index.ts\"\n },\n \"./epic/answers\": {\n \"spell-source\": \"./epic/src/answers/index.ts\",\n \"types\": \"./epic/dist-types/src/answers/index.d.ts\",\n \"default\": \"./epic/src/answers/index.ts\"\n },\n \"./epic/comments\": {\n \"spell-source\": \"./epic/src/comments/index.ts\",\n \"types\": \"./epic/dist-types/src/comments/index.d.ts\",\n \"default\": \"./epic/src/comments/index.ts\"\n },\n \"./epic/components\": {\n \"spell-source\": \"./epic/src/components/index.ts\",\n \"types\": \"./epic/dist-types/src/components/index.d.ts\",\n \"default\": \"./epic/src/components/index.ts\"\n },\n \"./epic/components/epic-agents\": {\n \"spell-source\": \"./epic/src/components/epic-agents/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-agents/index.d.ts\",\n \"default\": \"./epic/src/components/epic-agents/index.ts\"\n },\n \"./epic/components/epic-answer\": {\n \"spell-source\": \"./epic/src/components/epic-answer/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-answer/index.d.ts\",\n \"default\": \"./epic/src/components/epic-answer/index.ts\"\n },\n \"./epic/components/epic-aside\": {\n \"spell-source\": \"./epic/src/components/epic-aside/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-aside/index.d.ts\",\n \"default\": \"./epic/src/components/epic-aside/index.ts\"\n },\n \"./epic/components/epic-ask\": {\n \"spell-source\": \"./epic/src/components/epic-ask/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-ask/index.d.ts\",\n \"default\": \"./epic/src/components/epic-ask/index.ts\"\n },\n \"./epic/components/epic-cards\": {\n \"spell-source\": \"./epic/src/components/epic-cards/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-cards/index.d.ts\",\n \"default\": \"./epic/src/components/epic-cards/index.ts\"\n },\n \"./epic/components/epic-choice-rows\": {\n \"spell-source\": \"./epic/src/components/epic-choice-rows/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-choice-rows/index.d.ts\",\n \"default\": \"./epic/src/components/epic-choice-rows/index.ts\"\n },\n \"./epic/components/epic-choices\": {\n \"spell-source\": \"./epic/src/components/epic-choices/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-choices/index.d.ts\",\n \"default\": \"./epic/src/components/epic-choices/index.ts\"\n },\n \"./epic/components/epic-choices-bar\": {\n \"spell-source\": \"./epic/src/components/epic-choices-bar/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-choices-bar/index.d.ts\",\n \"default\": \"./epic/src/components/epic-choices-bar/index.ts\"\n },\n \"./epic/components/epic-code\": {\n \"spell-source\": \"./epic/src/components/epic-code/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-code/index.d.ts\",\n \"default\": \"./epic/src/components/epic-code/index.ts\"\n },\n \"./epic/components/epic-comment-pane\": {\n \"spell-source\": \"./epic/src/components/epic-comment-pane/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-comment-pane/index.d.ts\",\n \"default\": \"./epic/src/components/epic-comment-pane/index.ts\"\n },\n \"./epic/components/epic-commit\": {\n \"spell-source\": \"./epic/src/components/epic-commit/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-commit/index.d.ts\",\n \"default\": \"./epic/src/components/epic-commit/index.ts\"\n },\n \"./epic/components/epic-event\": {\n \"spell-source\": \"./epic/src/components/epic-event/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-event/index.d.ts\",\n \"default\": \"./epic/src/components/epic-event/index.ts\"\n },\n \"./epic/components/epic-item\": {\n \"spell-source\": \"./epic/src/components/epic-item/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-item/index.d.ts\",\n \"default\": \"./epic/src/components/epic-item/index.ts\"\n },\n \"./epic/components/epic-link\": {\n \"spell-source\": \"./epic/src/components/epic-link/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-link/index.d.ts\",\n \"default\": \"./epic/src/components/epic-link/index.ts\"\n },\n \"./epic/components/epic-list\": {\n \"spell-source\": \"./epic/src/components/epic-list/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-list/index.d.ts\",\n \"default\": \"./epic/src/components/epic-list/index.ts\"\n },\n \"./epic/components/epic-net-effect\": {\n \"spell-source\": \"./epic/src/components/epic-net-effect/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-net-effect/index.d.ts\",\n \"default\": \"./epic/src/components/epic-net-effect/index.ts\"\n },\n \"./epic/components/epic-new-item\": {\n \"spell-source\": \"./epic/src/components/epic-new-item/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-new-item/index.d.ts\",\n \"default\": \"./epic/src/components/epic-new-item/index.ts\"\n },\n \"./epic/components/epic-note\": {\n \"spell-source\": \"./epic/src/components/epic-note/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-note/index.d.ts\",\n \"default\": \"./epic/src/components/epic-note/index.ts\"\n },\n \"./epic/components/epic-original\": {\n \"spell-source\": \"./epic/src/components/epic-original/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-original/index.d.ts\",\n \"default\": \"./epic/src/components/epic-original/index.ts\"\n },\n \"./epic/components/epic-overview\": {\n \"spell-source\": \"./epic/src/components/epic-overview/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-overview/index.d.ts\",\n \"default\": \"./epic/src/components/epic-overview/index.ts\"\n },\n \"./epic/components/epic-page\": {\n \"spell-source\": \"./epic/src/components/epic-page/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-page/index.d.ts\",\n \"default\": \"./epic/src/components/epic-page/index.ts\"\n },\n \"./epic/components/epic-page-note-head\": {\n \"spell-source\": \"./epic/src/components/epic-page-note-head/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-page-note-head/index.d.ts\",\n \"default\": \"./epic/src/components/epic-page-note-head/index.ts\"\n },\n \"./epic/components/epic-phase\": {\n \"spell-source\": \"./epic/src/components/epic-phase/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-phase/index.d.ts\",\n \"default\": \"./epic/src/components/epic-phase/index.ts\"\n },\n \"./epic/components/epic-prompt\": {\n \"spell-source\": \"./epic/src/components/epic-prompt/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-prompt/index.d.ts\",\n \"default\": \"./epic/src/components/epic-prompt/index.ts\"\n },\n \"./epic/components/epic-question\": {\n \"spell-source\": \"./epic/src/components/epic-question/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-question/index.d.ts\",\n \"default\": \"./epic/src/components/epic-question/index.ts\"\n },\n \"./epic/components/epic-review\": {\n \"spell-source\": \"./epic/src/components/epic-review/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-review/index.d.ts\",\n \"default\": \"./epic/src/components/epic-review/index.ts\"\n },\n \"./epic/components/epic-section\": {\n \"spell-source\": \"./epic/src/components/epic-section/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-section/index.d.ts\",\n \"default\": \"./epic/src/components/epic-section/index.ts\"\n },\n \"./epic/components/epic-send\": {\n \"spell-source\": \"./epic/src/components/epic-send/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-send/index.d.ts\",\n \"default\": \"./epic/src/components/epic-send/index.ts\"\n },\n \"./epic/components/epic-state-filter\": {\n \"spell-source\": \"./epic/src/components/epic-state-filter/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-state-filter/index.d.ts\",\n \"default\": \"./epic/src/components/epic-state-filter/index.ts\"\n },\n \"./epic/components/epic-status\": {\n \"spell-source\": \"./epic/src/components/epic-status/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-status/index.d.ts\",\n \"default\": \"./epic/src/components/epic-status/index.ts\"\n },\n \"./epic/components/epic-summary\": {\n \"spell-source\": \"./epic/src/components/epic-summary/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-summary/index.d.ts\",\n \"default\": \"./epic/src/components/epic-summary/index.ts\"\n },\n \"./epic/components/epic-test-run\": {\n \"spell-source\": \"./epic/src/components/epic-test-run/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-test-run/index.d.ts\",\n \"default\": \"./epic/src/components/epic-test-run/index.ts\"\n },\n \"./epic/components/epic-text-box\": {\n \"spell-source\": \"./epic/src/components/epic-text-box/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-text-box/index.d.ts\",\n \"default\": \"./epic/src/components/epic-text-box/index.ts\"\n },\n \"./epic/components/epic-thread\": {\n \"spell-source\": \"./epic/src/components/epic-thread/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-thread/index.d.ts\",\n \"default\": \"./epic/src/components/epic-thread/index.ts\"\n },\n \"./epic/components/epic-update\": {\n \"spell-source\": \"./epic/src/components/epic-update/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-update/index.d.ts\",\n \"default\": \"./epic/src/components/epic-update/index.ts\"\n },\n \"./epic/dates\": {\n \"spell-source\": \"./epic/src/dates/index.ts\",\n \"types\": \"./epic/dist-types/src/dates/index.d.ts\",\n \"default\": \"./epic/src/dates/index.ts\"\n },\n \"./epic/definitions\": {\n \"spell-source\": \"./epic/src/definitions/index.ts\",\n \"types\": \"./epic/dist-types/src/definitions/index.d.ts\",\n \"default\": \"./epic/src/definitions/index.ts\"\n },\n \"./epic/links\": {\n \"spell-source\": \"./epic/src/links/index.ts\",\n \"types\": \"./epic/dist-types/src/links/index.d.ts\",\n \"default\": \"./epic/src/links/index.ts\"\n },\n \"./epic/markup\": {\n \"spell-source\": \"./epic/src/markup/index.ts\",\n \"types\": \"./epic/dist-types/src/markup/index.d.ts\",\n \"default\": \"./epic/src/markup/index.ts\"\n },\n \"./epic/phases\": {\n \"spell-source\": \"./epic/src/phases/index.ts\",\n \"types\": \"./epic/dist-types/src/phases/index.d.ts\",\n \"default\": \"./epic/src/phases/index.ts\"\n },\n \"./epic/review\": {\n \"spell-source\": \"./epic/src/review/index.ts\",\n \"types\": \"./epic/dist-types/src/review/index.d.ts\",\n \"default\": \"./epic/src/review/index.ts\"\n },\n \"./epic/tool/migrations\": {\n \"spell-source\": \"./epic/src/tool/migrations/index.ts\",\n \"types\": \"./epic/dist-types/src/tool/migrations/index.d.ts\",\n \"default\": \"./epic/src/tool/migrations/index.ts\"\n },\n \"./epic/components/epic-send-buttons\": {\n \"spell-source\": \"./epic/src/components/epic-send-buttons/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-send-buttons/index.d.ts\",\n \"default\": \"./epic/src/components/epic-send-buttons/index.ts\"\n },\n \"./epic/components/epic-run-row\": {\n \"spell-source\": \"./epic/src/components/epic-run-row/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-run-row/index.d.ts\",\n \"default\": \"./epic/src/components/epic-run-row/index.ts\"\n },\n \"./epic/components/epic-run\": {\n \"spell-source\": \"./epic/src/components/epic-run/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-run/index.d.ts\",\n \"default\": \"./epic/src/components/epic-run/index.ts\"\n },\n \"./epic/components/epic-change\": {\n \"spell-source\": \"./epic/src/components/epic-change/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-change/index.d.ts\",\n \"default\": \"./epic/src/components/epic-change/index.ts\"\n },\n \"./epic/components/epic-mark\": {\n \"spell-source\": \"./epic/src/components/epic-mark/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-mark/index.d.ts\",\n \"default\": \"./epic/src/components/epic-mark/index.ts\"\n },\n \"./epic/components/epic-actions\": {\n \"spell-source\": \"./epic/src/components/epic-actions/index.ts\",\n \"types\": \"./epic/dist-types/src/components/epic-actions/index.d.ts\",\n \"default\": \"./epic/src/components/epic-actions/index.ts\"\n },\n \"./epic/*\": {\n \"spell-source\": [\n \"./epic/src/*.ts\",\n \"./epic/src/*.tsx\",\n \"./epic/src/*/index.ts\",\n \"./epic/src/*/index.tsx\",\n \"./epic/src/*\"\n ],\n \"types\": [\n \"./epic/dist-types/src/*.d.ts\",\n \"./epic/dist-types/src/*/index.d.ts\"\n ],\n \"default\": \"./epic/src/*\"\n },\n \"./epic/*.ts\": {\n \"spell-source\": \"./epic/src/*.ts\",\n \"types\": \"./epic/dist-types/src/*.d.ts\",\n \"default\": \"./epic/src/*.ts\"\n },\n \"./epic/vscode/src/docUrls.ts\": \"./epic/vscode/src/docUrls.ts\",\n \"./app/app\": {\n \"spell-source\": \"./app/src/app/index.tsx\",\n \"types\": \"./app/src/app/index.tsx\",\n \"default\": \"./app/src/app/index.tsx\"\n },\n \"./app/app/components/spell-viewer\": {\n \"spell-source\": \"./app/src/app/components/spell-viewer/index.ts\",\n \"types\": \"./app/src/app/components/spell-viewer/index.ts\",\n \"default\": \"./app/src/app/components/spell-viewer/index.ts\"\n },\n \"./app/app/components/spell-code\": {\n \"spell-source\": \"./app/src/app/components/spell-code/index.ts\",\n \"types\": \"./app/src/app/components/spell-code/index.ts\",\n \"default\": \"./app/src/app/components/spell-code/index.ts\"\n },\n \"./app/app/components/spell-editor\": {\n \"spell-source\": \"./app/src/app/components/spell-editor/index.ts\",\n \"types\": \"./app/src/app/components/spell-editor/index.ts\",\n \"default\": \"./app/src/app/components/spell-editor/index.ts\"\n },\n \"./app/app/components/spell-markdown\": {\n \"spell-source\": \"./app/src/app/components/spell-markdown/index.ts\",\n \"types\": \"./app/src/app/components/spell-markdown/index.ts\",\n \"default\": \"./app/src/app/components/spell-markdown/index.ts\"\n },\n \"./app/app/runner\": {\n \"spell-source\": \"./app/src/app/runner/index.ts\",\n \"types\": \"./app/src/app/runner/index.ts\",\n \"default\": \"./app/src/app/runner/index.ts\"\n },\n \"./app/app/solid\": {\n \"spell-source\": \"./app/src/app/solid/index.ts\",\n \"types\": \"./app/src/app/solid/index.ts\",\n \"default\": \"./app/src/app/solid/index.ts\"\n },\n \"./app/app/solid/modals\": {\n \"spell-source\": \"./app/src/app/solid/modals/index.ts\",\n \"types\": \"./app/src/app/solid/modals/index.ts\",\n \"default\": \"./app/src/app/solid/modals/index.ts\"\n },\n \"./app/app/solid/monaco\": {\n \"spell-source\": \"./app/src/app/solid/monaco/index.ts\",\n \"types\": \"./app/src/app/solid/monaco/index.ts\",\n \"default\": \"./app/src/app/solid/monaco/index.ts\"\n },\n \"./app/app/ui\": {\n \"spell-source\": \"./app/src/app/ui/index.ts\",\n \"types\": \"./app/src/app/ui/index.ts\",\n \"default\": \"./app/src/app/ui/index.ts\"\n },\n \"./app/app/ui/monaco\": {\n \"spell-source\": \"./app/src/app/ui/monaco/index.ts\",\n \"types\": \"./app/src/app/ui/monaco/index.ts\",\n \"default\": \"./app/src/app/ui/monaco/index.ts\"\n },\n \"./app/spaces\": {\n \"spell-source\": \"./app/src/spaces/index.ts\",\n \"types\": \"./app/src/spaces/index.ts\",\n \"default\": \"./app/src/spaces/index.ts\"\n },\n \"./app/spaces/test\": {\n \"spell-source\": \"./app/src/spaces/test/index.ts\",\n \"types\": \"./app/src/spaces/test/index.ts\",\n \"default\": \"./app/src/spaces/test/index.ts\"\n },\n \"./app/lsp\": {\n \"spell-source\": \"./app/src/lsp/index.ts\",\n \"types\": \"./app/src/lsp/index.ts\",\n \"default\": \"./app/src/lsp/index.ts\"\n },\n \"./app/cli\": {\n \"spell-source\": \"./app/src/cli/index.ts\",\n \"types\": \"./app/src/cli/index.ts\",\n \"default\": \"./app/src/cli/index.ts\"\n },\n \"./app/cli/ui\": {\n \"spell-source\": \"./app/src/cli/ui/index.ts\",\n \"types\": \"./app/src/cli/ui/index.ts\",\n \"default\": \"./app/src/cli/ui/index.ts\"\n },\n \"./app/*\": {\n \"spell-source\": [\n \"./app/src/*.ts\",\n \"./app/src/*.tsx\",\n \"./app/src/*/index.ts\",\n \"./app/src/*/index.tsx\",\n \"./app/src/*\"\n ],\n \"types\": [\n \"./app/src/*.ts\",\n \"./app/src/*.tsx\",\n \"./app/src/*/index.ts\",\n \"./app/src/*/index.tsx\",\n \"./app/src/*\"\n ],\n \"default\": \"./app/src/*\"\n },\n \"./app/*.ts\": {\n \"spell-source\": \"./app/src/*.ts\",\n \"types\": \"./app/src/*.ts\",\n \"default\": \"./app/src/*.ts\"\n },\n \"./app/spaces/@spell/library/people/people.lib.ts\": \"./app/spaces/@spell/library/people/people.lib.ts\",\n \"./app/vscode/src/spellAppRoot.ts\": \"./app/vscode/src/spellAppRoot.ts\"\n },\n \"scripts\": {\n \"/////// THE KIT'S OWN CHECKS: one browser program (tsconfig.json), one node program (tsconfig.node.json), the tests' (tests/tsconfig.json); one Vitest config of projects; one lint config\": \"\",\n \"kit:ts\": \"node bin/spell-types.ts && tsc -p tests\",\n \"kit:test\": \"vp test run\",\n \"kit:lint\": \"vp lint --report-unused-disable-directives --max-warnings 0 src bin scripts tools tests vite.config.ts vitest.config.ts\",\n \"kit:lint:fix\": \"vp lint --fix src bin scripts tools tests vite.config.ts vitest.config.ts\",\n \"kit:format\": \"vp fmt src bin scripts tools tests vite.config.ts vitest.config.ts package.json tsconfig.json tsconfig.node.json tsconfig.tsx.json repos.json5 .yarnrc.yml .github .epic .claude-plugin\",\n \"kit:format:check\": \"vp fmt src bin scripts tools tests vite.config.ts vitest.config.ts package.json tsconfig.json tsconfig.node.json tsconfig.tsx.json repos.json5 .yarnrc.yml .github .epic .claude-plugin --check\",\n \"kit:review\": \"yarn kit:ts && yarn kit:lint:fix && yarn kit:format && yarn kit:test && echo '== REVIEW PASSED\\n===========\\n'\",\n \"/////// THE spell COMMAND (src/cli/, bin/spell.mjs)\": \"\",\n \"spell\": \"node bin/spell.mjs\",\n \"cli:install\": \"node scripts/install-cli.mjs\",\n \"server\": \"node bin/spell.mjs server\",\n \"favicon\": \"tsx --tsconfig tsconfig.node.json scripts/favicon.ts\",\n \"postinstall\": \"node tools/repos.ts links\",\n \"/////// THE CHILD REPOS (tools/repos.ts, repos.json5)\": \"\",\n \"clone\": \"node tools/repos.ts clone\",\n \"pull\": \"node tools/repos.ts pull\",\n \"status\": \"node tools/repos.ts status\",\n \"repos\": \"node tools/repos.ts list\",\n \"/////// THE READMES (tools/readme-check.ts, readme-test.ts, readme-pictures.ts, mermaid-pretty.ts): the root pages of every repo\": \"\",\n \"readme:check\": \"node tools/readme-check.ts\",\n \"readme:test\": \"SPELL_README_TEST=1 vp test run --project readme\",\n \"readme:pictures\": \"node tools/readme-pictures.ts\",\n \"mermaid:pretty\": \"node tools/mermaid-pretty.ts\",\n \"/////// CHECKS OVER EVERY REPO, lowest first\": \"\",\n \"ts\": \"node tools/repos.ts run ts\",\n \"test\": \"node tools/repos.ts run test\",\n \"lint\": \"node tools/repos.ts run lint\",\n \"review\": \"node tools/repos.ts run review\"\n },\n \"dependencies\": {\n \"@inkjs/ui\": \"^2\",\n \"@solidjs/h\": \"2.0.0-rc.17\",\n \"@solidjs/router\": \"2.0.0-next.41\",\n \"@solidjs/vite-plugin\": \"3.0.0-next.51\",\n \"@solidjs/web\": \"2.0.0-rc.17\",\n \"browser-or-node\": \"^3.0.0\",\n \"chalk\": \"^5.6.0\",\n \"commander\": \"^14\",\n \"dompurify\": \"^3.4.0\",\n \"entities\": \"^6.0.1\",\n \"esbuild\": \"^0.28.2\",\n \"fs-extra\": \"^11.3.0\",\n \"global\": \"^4.3.2\",\n \"highlight.js\": \"^11.12.0\",\n \"ink\": \"^5.2.1\",\n \"json5\": \"^2.2.3\",\n \"json5-writer\": \"^0.2.0\",\n \"lightningcss\": \"^1.33.0\",\n \"linkedom\": \"^0.18.13\",\n \"lodash\": \"^4.17.21\",\n \"lodash-es\": \"^4.18.1\",\n \"marked\": \"^18.0.0\",\n \"monaco-editor\": \"^0.57.0\",\n \"node-filter-async\": \"^3.0.0\",\n \"parse5\": \"^7.3.0\",\n \"pluralize\": \"^8.0.0\",\n \"postcss\": \"^8.5.28\",\n \"query-string\": \"^6.12.1\",\n \"react\": \"^18.2.0\",\n \"semver\": \"^7.8.5\",\n \"solid-js\": \"2.0.0-rc.17\",\n \"temporal-polyfill\": \"^1.0.5\",\n \"tsx\": \"4.20.3\",\n \"vite-plus\": \"catalog:\",\n \"vscode-css-languageservice\": \"^6.3.10\",\n \"vscode-languageserver\": \"^10.1.2\",\n \"vscode-languageserver-textdocument\": \"^1.0.15\",\n \"wrap-ansi\": \"^9\"\n },\n \"devDependencies\": {\n \"@custom-elements-manifest/analyzer\": \"^0.11.0\",\n \"@playwright/test\": \"1.63.0\",\n \"@solidjs/compiler\": \"2.0.0-rc.17\",\n \"@types/fs-extra\": \"^11.0.4\",\n \"@types/lodash\": \"^4.17.17\",\n \"@types/lodash-es\": \"^4.17.12\",\n \"@types/node\": \"^22.20.4\",\n \"@types/pluralize\": \"^0.0.33\",\n \"@types/react\": \"^18.2.56\",\n \"@types/semver\": \"^7.8.0\",\n \"@typescript/typescript6\": \"^6.0.2\",\n \"@vitest/browser-playwright\": \"catalog:\",\n \"@vitest/coverage-v8\": \"catalog:\",\n \"@vitest/ui\": \"catalog:\",\n \"axe-core\": \"^4.13.0\",\n \"concurrently\": \"^8.2.2\",\n \"emojibase-data\": \"^17.0.0\",\n \"ink-testing-library\": \"^4\",\n \"playwright\": \"1.63.0\",\n \"pyright\": \"1.1.414\",\n \"typescript\": \"^7.0.2\",\n \"vite\": \"catalog:\",\n \"vite-plugin-dts\": \"^5.1.1\",\n \"vitest\": \"catalog:\"\n },\n \"peerDependencies\": {\n \"@solidjs/web\": \"2.0.0-rc.17\",\n \"axe-core\": \"^4.13.0\",\n \"solid-js\": \"2.0.0-rc.17\"\n },\n \"peerDependenciesMeta\": {\n \"@solidjs/web\": {\n \"optional\": true\n },\n \"axe-core\": {\n \"optional\": true\n },\n \"solid-js\": {\n \"optional\": true\n }\n },\n \"resolutions\": {\n \"@solidjs/babel-plugin\": \"2.0.0-rc.17\",\n \"@solidjs/compiler\": \"2.0.0-rc.17\",\n \"@solidjs/h\": \"2.0.0-rc.17\",\n \"@solidjs/signals\": \"2.0.0-rc.17\",\n \"@solidjs/web\": \"2.0.0-rc.17\",\n \"axe-core\": \"4.13.0\",\n \"solid-js\": \"2.0.0-rc.17\",\n \"vite\": \"npm:@voidzero-dev/vite-plus-core@1.0.0\",\n \"vitest\": \"5.0.1\"\n },\n \"engines\": {\n \"node\": \">=24.11\"\n },\n \"packageManager\": \"yarn@4.18.0\",\n \"spell\": {\n \"commands\": \"./src/cli/commands.ts\"\n },\n \"spellPublish\": {\n \"files\": [\n \"repos.json5\"\n ],\n \"bin\": {\n \"spell\": \"cli/main\",\n \"spell-pack\": \"element-tools/packMain\",\n \"spell-types\": \"toolchain/typesMain\"\n }\n },\n \"spellTypes\": [\n \"tsconfig.json\",\n \"tsconfig.node.json\"\n ]\n}\n","/**\n * Shared types, constants and small error classes for `spell/ui/runtime`.\n * - The BOTTOM of the runtime's import graph: every service imports it, it imports none of them.\n * - Runtime-light: `import type` only (plus `package.json`'s `version`, a string), so the eager half (`load.ts`:\n * the `UI` accessor + `loadUI`, in every page's `core.js`) stays tiny and the service classes stay in the lazily\n * loaded chunk.\n */\n\nimport type { Temporal } from \"temporal-polyfill\"\n\n// The ONE package's version (epic `repo-split` P20): `spell`'s own `package.json`. Bundlers keep `version` alone.\nimport { version } from \"spell/package.json\"\nimport type { UIRuntime } from \"./UIRuntime\"\n\n////////////////\n// ## Runtime\n////////////////\n\n/**\n * Key the ONE runtime instance lives under on `globalThis`.\n * - `Symbol.for()` so two copies of `spell-ui` on one page (duplicate bundles, micro-frontends)\n * find each other's runtime rather than fighting over shortcuts, overlays and scroll lock.\n */\nexport const RUNTIME_KEY = Symbol.for(\"spell-ui:runtime\")\n\n/**\n * Version of this runtime build: `spell-ui`'s `package.json` `version`, inlined by the bundler.\n * - Compared when a second bundle finds an existing runtime, so mismatches warn in dev.\n * - Read from `package.json` rather than a `define` (`__PACKAGE_VERSION__` is SPELL's version in `app`'s build):\n * every bundle that compiles `ui`'s source -- the lib, vitest, the site, `docs`, `brand`, `app` -- gets the right\n * one with no config of its own.\n */\nexport const RUNTIME_VERSION = version\n\n/** `globalThis` as seen by the runtime: may hold the shared instance. */\nexport type RuntimeGlobal = typeof globalThis & {\n /** the shared runtime, once any bundle has created it */\n [RUNTIME_KEY]?: UIRuntime\n}\n\n/** Returned by every `register()` / `trap()` / `attach()` style call: undoes it. Safe to call twice. */\nexport type Disposer = () => void\n\n/**\n * `@layer` order of the whole package, as `layers.css` declares it.\n * - Repeated at the top of any sheet the runtime builds itself, so a runtime sheet that happens to load\n * before `layers.css` can't establish a different order.\n */\nexport const LAYER_ORDER = \"@layer ui.reset, ui.tokens, ui.base, ui.components, ui.utilities, ui.theme, ui.app;\"\n\n/**\n * `display` values the services test an element's computed style for (`Focus`, `Transitions`, `Visibility`).\n * - `none`: no box, and none inside; `contents`: no box of its own, but its children render.\n */\nexport const CssDisplay = { none: \"none\", contents: \"contents\" } as const\n/** One of `CssDisplay`'s values, e.g. `\"contents\"`. */\nexport type CssDisplay = (typeof CssDisplay)[keyof typeof CssDisplay]\n\n////////////////\n// ## Browser\n////////////////\n\n/**\n * Feature flags from `UI.browser.supports`.\n * - Every flag is `false` outside a browser (SSR), so callers never need a separate environment check.\n * - Call sites branch on THESE, NEVER on user-agent checks -- see `AGENTS.md` \"Platform\".\n */\nexport type BrowserSupports = {\n /** CSS anchor positioning (`anchor-name`, `position-area`) */\n anchorPositioning: boolean\n /** `popover` attribute + `showPopover()` */\n popover: boolean\n /** `popover=\"hint\"` -- tooltips that don't close `auto` popovers */\n popoverHint: boolean\n /** invoker commands: `<button commandfor command>`, set from script as `commandForElement` */\n invokers: boolean\n /** `<dialog closedby=\"any\">` -- light dismiss handled by the browser */\n dialogClosedBy: boolean\n /** `CloseWatcher` -- Escape AND Android back button close the top overlay */\n closeWatcher: boolean\n /** customizable `<select>` (`appearance: base-select`) */\n baseSelect: boolean\n /** `@container style(--x: 1)` */\n styleContainerQueries: boolean\n /** `@starting-style` */\n startingStyle: boolean\n /** `ElementInternals.states` -> `:state()` selectors */\n customStates: boolean\n /** `document.startViewTransition()` */\n viewTransitions: boolean\n /** native `Temporal` (else the polyfill plugs in -- see `I18n`) */\n temporal: boolean\n /** `interpolate-size: allow-keywords` -- animate to `height: auto` */\n interpolateSize: boolean\n /** `container-type: anchored` + `@container anchored(...)` -- style a positioned box by the fallback it landed on */\n anchoredQueries: boolean\n /** `field-sizing: content` -- a textarea that grows with its text by itself (`<ui-textarea grow>`; else it measures) */\n fieldSizing: boolean\n}\n\n////////////////\n// ## Keyboard\n////////////////\n\n/**\n * Called when a registered chord is pressed.\n * - Return `false` to say \"not mine after all\": dispatch continues to the next matching registration,\n * and the event is NOT `preventDefault()`ed.\n */\nexport type KeyHandler = (event: KeyboardEvent) => void | boolean\n\n/** Options for `Keyboard.register()`. */\nexport type KeyRegistrationOptions = {\n /** only fire when the event's composed path includes this element (e.g. the component's DOM element) */\n target?: EventTarget\n /** `preventDefault()` a handled event; default `true` */\n preventDefault?: boolean\n /** `stopPropagation()` a handled event; default `false` */\n stopPropagation?: boolean\n /** fire whatever scope is on top of the stack, e.g. an app-wide command palette shortcut */\n global?: boolean\n /** fire even when focus is in an `<input>` / `<textarea>` / contenteditable without a modifier */\n inEditable?: boolean\n}\n\n/** Scope at the bottom of `Keyboard`'s stack: page-level shortcuts, active when no overlay is open. */\nexport const PAGE_SCOPE = \"page\"\n\n////////////////\n// ## Overlays\n////////////////\n\n/**\n * What kind of top-layer thing an overlay entry is; sets defaults for the entry's other options.\n * - A union, not a set: nothing lists or validates them.\n */\nexport type OverlayKind = \"modal\" | \"flyout\" | \"popover\" | \"toast\" | \"dimmer\" | \"sidebar\"\n\n/**\n * Why `Overlays` asked an entry to dismiss itself.\n * - `escape`: Escape key or `CloseWatcher` close request (Android back button)\n * - `outside`: click that both started and ended outside the overlay\n * - `close-all`: `Overlays.closeAll()`\n * - NOTE: kebab-case, not English words: pages read them, as `ui-closing`'s `detail.reason` (`UIT.ModalCloseReason`).\n */\nexport type DismissReason = \"escape\" | \"outside\" | \"close-all\"\n\n/**\n * An overlay registered with `Overlays.open()`.\n * - The component owns the entry object and passes the SAME object to `close()`.\n * - Defaults by `kind`:\n * - `closeOnEscape`: `true` except `toast`\n * - `closeOnOutsideClick`: `true` except `toast` (`<ui-modal>` sets its own, see `notes/runtime.md`)\n * - `modal` (scroll lock + keyboard scope): `true` for `modal` / `flyout` / `dimmer`\n */\nexport type OverlayEntry = {\n /** the element; anything in its composed subtree counts as \"inside\" */\n element: Element\n /** sets defaults, see above */\n kind: OverlayKind\n /**\n * named pool: only the topmost entry of each pool is checked for outside clicks.\n * - default `\"default\"`; toasts use `\"toast\"` so a toast never steals a modal's outside click\n */\n pool?: string\n /** Escape / close request dismisses this entry when it's the topmost Escape-handling entry */\n closeOnEscape?: boolean\n /** a click outside dismisses this entry when it's the topmost entry in its pool */\n closeOnOutsideClick?: boolean\n /** lock page scroll while open (reference counted) */\n modal?: boolean\n /** restore focus to what had it before `open()`; default `true` */\n restoreFocus?: boolean\n /** also counts as inside, e.g. the button that toggles a dropdown, so clicking it doesn't dismiss-then-reopen */\n anchor?: Element\n /**\n * Asked to dismiss. The entry decides: usually fire a cancelable `ui-closing`, then `Overlays.close(entry)`.\n * - NOTE: `Overlays` never closes an entry by itself; it only asks.\n */\n onDismiss: (reason: DismissReason) => void | Promise<void>\n}\n\n/** Class on `<html>` while any `modal` overlay is open; `Overlays` registers the rule that uses it. */\nexport const SCROLL_LOCK_CLASS = \"ui-scroll-locked\"\n\n/**\n * Minimal `CloseWatcher` shape.\n * - Declared here because TypeScript's DOM lib doesn't ship it yet.\n */\nexport type CloseWatcherLike = EventTarget & {\n /** stop watching; no further events */\n destroy(): void\n}\n\n/** `CloseWatcher` constructor, read off `globalThis` only when `UI.browser.supports.closeWatcher`. */\nexport type CloseWatcherConstructor = new (options?: { signal?: AbortSignal }) => CloseWatcherLike\n\n////////////////\n// ## Focus\n////////////////\n\n/** Which arrow keys move a `RovingTabindex`. */\nexport type RovingOrientation = \"horizontal\" | \"vertical\" | \"both\"\n\n/** Options for `RovingTabindex.attach()`. */\nexport type RovingOptions = {\n /** default `\"vertical\"` */\n orientation?: RovingOrientation\n /** ArrowDown on the last item moves to the first; default `true` */\n wrap?: boolean\n /** starting item, default the one with `tabindex=\"0\"` or `aria-selected=\"true\"`, else the first */\n activeIndex?: number\n /** called when arrows / Home / End / focus move the active item */\n onChange?: (item: HTMLElement, index: number) => void\n /** whose the items' `tabindex`es are; default `\"roving\"`, the group's (`RovingTabindexMode`) */\n tabindex?: RovingTabindexMode\n}\n\n/**\n * Whose a roving group's `tabindex`es are:\n * - `\"roving\"`: the group's, ONE tab stop that follows the arrows (menus, tabs)\n * - `\"left alone\"`: the caller's; the arrows only move focus (an accordion's titles, each a tab stop;\n * a component that draws its own tab stop)\n */\nexport type RovingTabindexMode = \"roving\" | \"left alone\"\n\n/** Items for a `RovingTabindex`: a selector under the container, or a function for slotted / computed items. */\nexport type RovingItems = string | (() => HTMLElement[])\n\n/** Anything `Focus.focusables()` can search. */\nexport type FocusRoot = Element | ShadowRoot | Document\n\n////////////////\n// ## Styles\n////////////////\n\n/** CSS source for `Styles.register()`: text (built with `replaceSync`) or an already-built sheet. */\nexport type StyleSource = string | CSSStyleSheet\n\n/** Options for `Styles.register()`. */\nexport type StyleRegisterOptions = {\n /** also push onto `document.adoptedStyleSheets` (once), e.g. `native.css`, `layers.css` */\n page?: boolean\n /**\n * `page` sheet that `ui.css` already carries (the foundation, typography, native): left off the page when the\n * page links `ui.css` (`--ui-page-sheet: linked`), which would only double it. Component page sheets\n * (`table`, `scroll-lock`) aren't in `ui.css` and always go on.\n */\n linked?: boolean\n /**\n * also adopt into EVERY component shadow root (after utilities, before the app stylesheet), now and as roots\n * appear: themes, whose class-grammar overrides (`.ui.button`) must reach the markup inside components\n */\n shadow?: boolean\n}\n\n/** `id` of the ONE app stylesheet components adopt -- see `notes/runtime.md`. */\nexport const APP_STYLESHEET_ID = \"ui-app-stylesheet\"\n\n/**\n * Name of the utilities sheet (`utilities.css`), adopted into every shadow root AFTER its component sheets.\n * - `Styles`' default `setUtilities()` list; `UIRuntime` registers the sheet under it.\n */\nexport const UTILITIES_SHEET = \"utilities\"\n\n////////////////\n// ## Transitions\n////////////////\n\n/**\n * The keyframe catalogue, ported from Fomantic's `transition` module.\n * - `animations.css` MUST provide keyframes for each, selected by `data-ui-animation`,\n * e.g. `[data-ui-animation=\"fade-up in\"]` -- see `Transitions`.\n * - Fomantic's multi-word names are kebab-cased so the attribute stays two tokens:\n * `\"fade up\"` -> `fade-up`, `\"horizontal flip\"` -> `flip-horizontal`.\n * - NOTE: kebab-case, not English words: pages and `animations.css` read them (`data-ui-animation`).\n */\nexport const AnimationNames = [\n // ### Appear / disappear -- run `in` or `out`\n \"fade\",\n \"fade-up\",\n \"fade-down\",\n \"fade-left\",\n \"fade-right\",\n \"scale\",\n \"zoom\",\n \"drop\",\n \"browse\",\n \"browse-right\",\n \"fly\",\n \"fly-up\",\n \"fly-down\",\n \"fly-left\",\n \"fly-right\",\n \"slide-up\",\n \"slide-down\",\n \"slide-left\",\n \"slide-right\",\n \"swing-up\",\n \"swing-down\",\n \"swing-left\",\n \"swing-right\",\n \"flip-horizontal\",\n \"flip-vertical\",\n // ### Attention -- run `static`, visibility unchanged\n \"flash\",\n \"shake\",\n \"bounce\",\n \"tada\",\n \"pulse\",\n \"jiggle\",\n \"glow\"\n] as const\n\n/** One name from the keyframe catalogue, see `AnimationNames`. */\nexport type AnimationName = (typeof AnimationNames)[number]\n\n/**\n * Which way an animation runs: the second word of `data-ui-animation`, so its spelling is published.\n * - `in`: un-hides the element first\n * - `out`: hides it (`hidden`, and `display: none` if CSS overrides `[hidden]`) once finished\n * - `static`: attention animations (`shake`, `pulse` ...); visibility unchanged\n * - A union, not a set: nothing lists or validates them.\n */\nexport type AnimationDirection = \"in\" | \"out\" | \"static\"\n\n/** Options for `Transitions.animate()`; unset values come from `animations.css` tokens. */\nexport type AnimateOptions = {\n /** e.g. `200` (ms) or `\"0.3s\"`; set as `--ui-animation-duration` on the element */\n duration?: number | string\n /** any CSS easing; set as `--ui-animation-easing` on the element */\n easing?: string\n}\n\n////////////////\n// ## I18n\n////////////////\n\n/**\n * English strings for the runtime and components -- the fallback pack every lookup ends at.\n * - `{name}` placeholders are filled by `I18n.t(key, params)`.\n * - Component-specific strings live in each component's vocabulary file; these are the shared ones.\n */\nexport const EN_STRINGS = {\n close: \"Close\",\n cancel: \"Cancel\",\n ok: \"OK\",\n noResults: \"No results found.\",\n addItem: \"Add {value}\",\n loading: \"Loading…\",\n today: \"Today\",\n clear: \"Clear\",\n removeValue: \"Remove {value}\",\n selectAll: \"Select all\",\n more: \"More\",\n less: \"Less\",\n required: \"Required\",\n invalid: \"Invalid value\"\n} as const\n\n/** A shared string key, or any string a component pack adds. */\nexport type I18nKey = keyof typeof EN_STRINGS | (string & {})\n\n/** A locale's strings: key -> text with optional `{name}` placeholders. */\nexport type StringPack = Partial<Record<I18nKey, string>>\n\n/** Values for `{name}` placeholders in `I18n.t()`. */\nexport type I18nParams = Record<string, string | number>\n\n/** How long `I18n.weekdays()` / `months()` names are: `Intl`'s `weekday` / `month` styles, e.g. `\"short\"` ~== `Mon`. */\nexport type NameStyle = NonNullable<Intl.DateTimeFormatOptions[\"weekday\"]>\n\n/**\n * The `Temporal` namespace, as `UI.i18n.temporal` hands it out: the browser's own, or `temporal-polyfill`'s.\n * - Typed by the polyfill (`temporal-spec`): TypeScript's DOM lib has no Temporal yet.\n */\nexport type TemporalAPI = typeof Temporal\n\n/** Package `I18n.loadTemporal()` falls back to; named in `TemporalPolyfill`'s load error. */\nexport const TEMPORAL_POLYFILL = \"temporal-polyfill\"\n\n////////////////\n// ## Toasts / Modals\n////////////////\n\n/**\n * Options for `UI.toasts.show()`, Fomantic's `$.toast({...})` settings; the toast component defines the rendering.\n * - Text is always set as TEXT, never parsed as HTML (Fomantic's `preserveHTML: false`).\n */\nexport type ToastOptions = {\n /** body text */\n message?: string\n /** bold first line */\n title?: string\n /** consequence word: `\"info\"`, `\"success\"`, `\"warning\"`, `\"error\"`, `\"neutral\"` (default) */\n type?: string\n /**\n * Fomantic's `class`: class words for the toast, e.g. `\"success\"`, `\"inverted blue\"`; a consequence word\n * becomes `type`, a hue `color`, `inverted` stays a word\n * - every word is also kept on the `<ui-toast>` DOM element's `class`, so a page can theme this toast alone:\n * `UI.toast({ class: \"ready\" })` + `ui-toast.ready { --ui-toast-background: ... }`\n */\n class?: string\n /** ms before auto-dismiss (default `3000`); `0` keeps it until dismissed; `\"auto\"` ~== reading time */\n displayTime?: number | \"auto\"\n /** e.g. `\"bottom right\"` (default), `\"top right\"`, `\"bottom center\"`, `\"centered\"` */\n position?: string\n /** explicit id, e.g. to replace an existing toast */\n id?: string\n /** icon: `true` (default) for the type's own, an icon name, or `false` for none */\n showIcon?: boolean | string\n /** a progress bar counting the display time down, at the `\"top\"` or `\"bottom\"` */\n showProgress?: \"top\" | \"bottom\" | false\n /** the progress bar fills up instead of emptying */\n progressUp?: boolean\n /** pause the countdown while the pointer is over it; default `true` (focus inside always pauses) */\n pauseOnHover?: boolean\n /** a close icon */\n closeIcon?: boolean\n /** a click anywhere on it closes it; default `true`, off with a close icon or actions */\n closeOnClick?: boolean\n /** fixed width (Fomantic's 350px); default `true` */\n compact?: boolean\n /** buttons below (or beside) the message */\n actions?: readonly ToastAction[]\n /** layout words of the actions: `basic`, `left`, `attached`, `vertical`, `top`, `bottom` */\n classActions?: string\n /** new toasts go on top of the stack instead of below */\n newestOnTop?: boolean\n /** toasts at this position line up side by side */\n horizontal?: boolean\n}\n\n/** One button of `ToastOptions.actions`. */\nexport type ToastAction = {\n /** button text */\n text?: string\n /** icon name */\n icon?: string\n /**\n * class words, e.g. `\"green\"`, `\"positive\"`: `.positive` / `.approve` / `.ok` approve, `.negative` / `.deny` /\n * `.cancel` deny\n */\n class?: string\n /** clicked; return `false` to keep the toast open */\n click?: (event: MouseEvent) => void | boolean\n}\n\n/** What `UI.toasts.show()` returns. */\nexport type ToastHandle = {\n /** pass to `UI.toasts.dismiss()` */\n id: string\n /** resolves when the toast is gone */\n closed: Promise<void>\n /** the `<ui-toast>` element, when the provider renders one */\n element?: HTMLElement\n}\n\n/** What the toast component registers as `Toasts.provider`. */\nexport type ToastProvider = {\n /** render a toast */\n show(options: ToastOptions): ToastHandle\n /** remove a toast early */\n dismiss(id: string): void\n}\n\n/** Options for `UI.modals.confirm/alert/prompt()`. */\nexport type ModalOptions = {\n /** header text */\n title?: string\n /** body text */\n message: string\n /** approve button text; default `I18n` `ok` */\n okText?: string\n /** deny button text; default `I18n` `cancel` */\n cancelText?: string\n /** `prompt()` only: initial input value */\n value?: string\n}\n\n/** What the modal component registers as `Modals.provider`. */\nexport type ModalProvider = {\n /** resolves `true` on approve, `false` on deny / dismiss */\n confirm(options: ModalOptions): Promise<boolean>\n /** resolves when acknowledged */\n alert(options: ModalOptions): Promise<void>\n /** resolves with the entered text, or `undefined` on deny / dismiss */\n prompt(options: ModalOptions): Promise<string | undefined>\n}\n\n////////////////\n// ## Fetching\n////////////////\n\n/**\n * `fetch()` that answers only with an OK response: any failure throws what `failed()` makes of it,\n * so each caller throws its OWN typed error (`SourceError`, `ApiError` ...).\n * - Spell UI can't use the kit's `$fetch()`: it would bring lodash and query-string into every page.\n * - `failed()` is told the URL, and either the answer that wasn't OK (`response`) or the network's `error`.\n * - An abort (`init.signal`) rethrows as it is: it's no failure of the server's.\n */\nexport async function fetchOk(url: string, failed: (failure: FetchFailure) => Error, init?: RequestInit) {\n let response: Response\n try {\n response = await fetch(url, init)\n } catch (error) {\n if (error instanceof DOMException && error.name === \"AbortError\") throw error\n if (init?.signal?.aborted) throw error\n throw failed({ url, error })\n }\n if (!response.ok) throw failed({ url, response })\n return response\n}\n\n/** `fetchOk()`, then the answer's text: resolves with both. */\nexport async function fetchText(\n url: string,\n failed: (failure: FetchFailure) => Error,\n init?: RequestInit\n): Promise<{ text: string; response: Response }> {\n const response = await fetchOk(url, failed, init)\n return { text: await response.text(), response }\n}\n\n/** What `fetchOk()` tells `failed()`: the URL, and the answer that wasn't OK, or the network's error. */\nexport type FetchFailure = {\n /** the URL asked for */\n url: string\n /** the answer, when there was one: not OK (`status` 404 ...) */\n response?: Response\n /** what `fetch()` threw, when nothing answered */\n error?: unknown\n}\n\n/** `404 Not Found`: a response's status and text, for a message. */\nexport function answerOf(response: Response): string {\n return `${response.status} ${response.statusText}`.trim()\n}\n\n////////////////\n// ## Api\n////////////////\n\n/** HTTP method for `Api.request()`: the platform's own spelling. */\nexport type ApiMethod = \"GET\" | \"POST\" | \"PUT\" | \"PATCH\" | \"DELETE\" | \"HEAD\" | \"OPTIONS\"\n\n/**\n * How `Api.request()` reads the response body.\n * - `json` / `text`: that parser, whatever the response says\n * - `response`: the `Response` itself, body unread\n * - `auto`: JSON when the `Content-Type` says so, else text\n * - A union, not a set: nothing lists or validates them.\n */\nexport type ApiResponseType = \"json\" | \"text\" | \"response\" | \"auto\"\n\n/** Values for `{name}` / `{/name}` URL template slots. */\nexport type ApiUrlData = Record<string, string | number | boolean | null | undefined>\n\n/** Options for `Api.request()`. */\nexport type ApiRequest = {\n /** URL template, e.g. `/api/users/{id}{/tab}` -- see `Api.url()` */\n url: string\n /** values for the URL template */\n urlData?: ApiUrlData\n /** default `GET` */\n method?: ApiMethod\n /**\n * request data\n * - `GET` / `HEAD`: appended as query parameters\n * - otherwise: plain objects are sent as JSON; `FormData`, `URLSearchParams`, `Blob`, strings as-is\n */\n data?: unknown\n /**\n * ms to wait before sending; a newer request with the same `key` inside that window supersedes this one,\n * which then rejects with an `AbortError` (Fomantic's `throttle` ~== debounce)\n */\n throttle?: number\n /** groups throttled requests; default the URL template */\n key?: string\n /** caller's abort signal, combined with the throttle's via `AbortSignal.any` */\n signal?: AbortSignal\n /** ms before the request aborts with a `TimeoutError` */\n timeout?: number\n /** extra request headers */\n headers?: HeadersInit\n /** default `auto`: JSON when the response says so, else text */\n responseType?: ApiResponseType\n}\n\n/** `cause` of an `ApiError`. */\nexport type ApiErrorCause = {\n /** the failed response, body unread */\n response: Response\n}\n\n/**\n * Thrown by `Api.request()` for a non-2xx response.\n * - Keeps the `Response` in `cause`, so callers can read a server error body.\n * - `new ApiError(message, { cause: { response } })`\n */\nexport class ApiError extends Error {\n declare cause: ApiErrorCause | undefined\n\n /** HTTP status, e.g. `404` */\n get status() {\n return this.cause?.response.status\n }\n\n /** the failed response, body unread */\n get response() {\n return this.cause?.response\n }\n}\nApiError.prototype.name = \"ApiError\"\n\n////////////////\n// ## Sources\n////////////////\n\n/** Text `UI.sources.load()` fetched. */\nexport type SourceText = {\n /** absolute URL it came from */\n url: string\n /** the body */\n text: string\n /** the response's `ETag`: the version a save must match (`If-Match`) */\n etag?: string\n /** the response's `Content-Type`, e.g. `text/markdown` */\n type?: string\n}\n\n/** Options for `UI.sources.load()`. */\nexport type SourceLoadOptions = {\n /** skip the cache: fetch again, and cache the new answer */\n fresh?: boolean\n /** caller's abort signal; aborting rejects with an `AbortError` and drops the cache entry */\n signal?: AbortSignal\n}\n\n/** What `UI.sources.save()` hands its saver. */\nexport type SourceSaveRequest = {\n /** absolute, same-origin URL of the file */\n url: string\n /** the whole new text -- or, with `fragment`, the new markup of that one element */\n text: string\n /** version the text was edited from (`SourceText.etag`); a saver sends it as `If-Match` */\n etag?: string\n /** `id` of the ONE element of an HTML page to replace, e.g. `<ui-include selector=\"#intro\">` saving its part */\n fragment?: string\n}\n\n/** What a saver resolves with. */\nexport type SourceSaveResult = {\n /** the saved file's new version */\n etag?: string\n}\n\n/**\n * Writes text back to where it came from; `UI.sources.saver`.\n * - `ui` ships none: it can't know the server. The page server's lives in `spell/server` (`SPELL_SERVER.saveFile`),\n * registered by the docs runtime.\n * - MUST throw on failure: a `SourceError` (`conflict` for a 409 / 412, `save` otherwise), or -- from code that\n * can't import it (a page's classic script) -- any object with a `kind` of `SourceErrorKind`, a `message` and\n * maybe a `status`.\n */\nexport type SourceSaver = (request: SourceSaveRequest) => Promise<SourceSaveResult>\n\n/**\n * Why loading or saving a source failed, as `SourceError.kind` and `ui-error`'s `detail.kind`.\n * - `load`: the fetch failed or answered non-2xx\n * - `cross-origin`: the URL is on another origin, so it was never fetched\n * - `file-protocol`: the page is a `file://` page, which can't fetch its neighbours\n * - `save`: the saver failed\n * - `conflict`: the file changed since it was loaded (`If-Match` failed); reload, then save again\n * - `no-saver`: nothing registered `UI.sources.saver`\n * - `render`: the text arrived but the element couldn't show it (bad markdown, unknown language ...)\n * - NOTE: kebab-case, not English words: pages read them (`ui-error`'s `detail.kind`, a saver's thrown `{ kind }`),\n * and the docs publish this spelling (AGENTS.md \"Functions & types\"; epic `wwod-spell-ui`, P3)\n */\nexport const SourceErrorKinds = [\n \"load\",\n \"cross-origin\",\n \"file-protocol\",\n \"save\",\n \"conflict\",\n \"no-saver\",\n \"render\"\n] as const\n/** One of `SourceErrorKinds`. */\nexport type SourceErrorKind = (typeof SourceErrorKinds)[number]\n\n/** `cause` of a `SourceError`. */\nexport type SourceErrorCause = {\n /** why, see `SourceErrorKind` */\n kind: SourceErrorKind\n /** HTTP status, when a response said no */\n status?: number\n /** what failed underneath: a network error, a saver's own throw, a language's failed `load()` */\n error?: unknown\n}\n\n/**\n * Thrown by `UI.sources` (and savers) when a source can't be loaded or saved; `cause.kind` says why.\n * - `new SourceError(\"Sources.load(): <problem>; <fix>\", { cause: { kind, status, error } })`\n */\nexport class SourceError extends Error {\n declare cause: SourceErrorCause | undefined\n\n /** why, see `SourceErrorKind` */\n get kind() {\n return this.cause?.kind\n }\n\n /** HTTP status, when a response said no */\n get status() {\n return this.cause?.status\n }\n\n /**\n * `error`'s kind when it's a `SourceError` that has one, else `otherwise`: the `ui-error` `detail.kind` of\n * whatever a load, render or save threw.\n */\n static kindFor(error: unknown, otherwise: SourceErrorKind): SourceErrorKind {\n return (error instanceof SourceError && error.kind) || otherwise\n }\n\n /** Is `value` a `SourceErrorKind`? For one that arrives as data (a saver's thrown `{ kind }`). */\n static isKind(value: unknown): value is SourceErrorKind {\n return SourceErrorKinds.includes(value as SourceErrorKind)\n }\n}\nSourceError.prototype.name = \"SourceError\"\n\n////////////////\n// ## Code languages\n////////////////\n\n/** Event on `document` after `UI.code.register()`: a `<ui-code>` waiting for that language highlights again. */\nexport const CODE_LANGUAGES_EVENT = \"ui-languages-changed\"\n\n/**\n * A highlight.js language definition: `(hljs) => Language` (highlight.js's own \"language function\").\n * - Typed loosely so `spell/ui/runtime` needn't import highlight.js's types: `ui-code` hands it to `hljs.registerLanguage`.\n */\nexport type CodeGrammar = (hljs: any) => object\n\n/** One coloured stretch of code from a `CodeHighlight` function; offsets into the code, `kind` a highlight.js class. */\nexport type CodeSpan = {\n /** first character */\n start: number\n /** one past the last */\n end: number\n /** highlight.js scope, e.g. `keyword`, `string`, `title.function`: coloured as `.hljs-<kind>` */\n kind: string\n}\n\n/** A highlighter of our own (not highlight.js): the coloured stretches of `code`, in order, not overlapping. */\nexport type CodeHighlight = (code: string) => CodeSpan[] | Promise<CodeSpan[]>\n\n/**\n * A language `UI.code.register()` adds, one of:\n * - `grammar`: a highlight.js language; joins auto-detection when `detect`\n * - `highlight`: a function of our own, e.g. spell's parser\n * - `load(variant)`: either of the above, fetched on first use; `variant` is what follows the `/` in\n * `language=\"spell/es\"` (`undefined` for plain `spell`)\n */\nexport type CodeLanguage = {\n /** a highlight.js language definition */\n grammar?: CodeGrammar\n /** a highlighter of our own */\n highlight?: CodeHighlight\n /** fetch the `grammar` or `highlight` on first use; `variant` follows the `/` in the name */\n load?: (variant: string | undefined) => Promise<Omit<CodeLanguage, \"load\">>\n /** other names for it, e.g. `[\"sp\"]` */\n aliases?: readonly string[]\n /** take part in auto-detection (`grammar` only); default `false` */\n detect?: boolean\n}\n\n/** A `CodeLanguage` as `UI.code` keeps it: with its canonical (lowercase) `name`. */\nexport type RegisteredCodeLanguage = CodeLanguage & {\n /** lowercase, as registered */\n name: string\n}\n\n////////////////\n// ## Visibility\n////////////////\n\n/**\n * Where an element is against the screen (the viewport, or `context`), as Fomantic's visibility `calculations`.\n * - \"Screen top\" is the viewport top plus `offset`.\n */\nexport type VisibilityCalculations = {\n /** its top is above the screen top */\n topPassed: boolean\n /** its bottom is above the screen top: scrolled past */\n bottomPassed: boolean\n /** its top is on screen (below the screen top, above the screen bottom) */\n topVisible: boolean\n /** its bottom is on screen */\n bottomVisible: boolean\n /** it spans the screen top: top passed, bottom not */\n passing: boolean\n /** some of it is on screen */\n onScreen: boolean\n /** none of it is on screen */\n offScreen: boolean\n /** px of it above the screen top while `passing`, else `0` */\n pixelsPassed: number\n /** share (0 ... 1) of it above the screen top while `passing`, else `0` */\n percentagePassed: number\n /** which way the page moved since the last check */\n direction: VisibilityDirection\n}\n\n/** A visibility callback; gets the calculations of the check that fired it. */\nexport type VisibilityCallback = (calculations: VisibilityCalculations) => void\n\n/**\n * Callbacks for `UI.observeVisibility()`, Fomantic's names.\n * - Forward ones fire when their condition turns true; `...Reverse` ones when it turns false again.\n */\nexport type VisibilityCallbacks = {\n /** some of it came on screen (`onScreen`) */\n onOnScreen?: VisibilityCallback\n /** all of it left the screen (`offScreen`) */\n onOffScreen?: VisibilityCallback\n /** its top came on screen (`topVisible`) */\n onTopVisible?: VisibilityCallback\n /** its bottom came on screen (`bottomVisible`) */\n onBottomVisible?: VisibilityCallback\n /** its top went above the screen top (`topPassed`) */\n onTopPassed?: VisibilityCallback\n /** its bottom went above the screen top: scrolled past (`bottomPassed`) */\n onBottomPassed?: VisibilityCallback\n /** it began to span the screen top (`passing`) */\n onPassing?: VisibilityCallback\n /** its top left the screen again */\n onTopVisibleReverse?: VisibilityCallback\n /** its bottom left the screen again */\n onBottomVisibleReverse?: VisibilityCallback\n /** its top came back below the screen top */\n onTopPassedReverse?: VisibilityCallback\n /** its bottom came back below the screen top */\n onBottomPassedReverse?: VisibilityCallback\n /** it stopped spanning the screen top */\n onPassingReverse?: VisibilityCallback\n /** every check */\n onUpdate?: VisibilityCallback\n}\n\n/** Callbacks plus options for `UI.observeVisibility()`. */\nexport type VisibilityOptions = VisibilityCallbacks & {\n /** each callback fires at most once, ever; default `true` (Fomantic's) */\n once?: boolean\n /** a callback fires on EVERY check while its condition holds, not only when it turns true; default `false` */\n continuous?: boolean\n /** px below the viewport top that count as the screen top (a fixed header); default `0` */\n offset?: number\n /** scroll container to measure against; default the viewport */\n context?: Element\n}\n\n/** Options for `UI.visibility.lazyImage()`, Fomantic's `type: 'image'`. */\nexport type LazyImageOptions = {\n /** animation once loaded; default `fade`; `false` for none */\n transition?: AnimationName | false\n /** its ms; default `1000` */\n duration?: number\n /** px below the viewport top that count as the screen top */\n offset?: number\n /** scroll container; default the viewport */\n context?: Element\n /** the image has its `src` */\n onLoad?: (image: HTMLImageElement) => void\n}\n\n/** Which way the page moved between two visibility checks (`VisibilityCalculations.direction`), Fomantic's words. */\nexport const VisibilityDirection = { up: \"up\", down: \"down\", static: \"static\" } as const\n/** One of `VisibilityDirection`'s values, e.g. `\"down\"`. */\nexport type VisibilityDirection = (typeof VisibilityDirection)[keyof typeof VisibilityDirection]\n\n////////////////\n// ## Icons\n////////////////\n\n/** How `UI.icons.use()` adds a pack. */\nexport type IconPackOptions = {\n /** extra prefix for `prefix:name`; the pack's `id` always works too */\n prefix?: string\n /**\n * Folder the pack's SVG paths resolve against, e.g. a CDN; default: the folder `pack.js` loaded from.\n * - Relative to the page.\n */\n base?: string\n /** drop every pack added before this one, including the default */\n only?: boolean\n}\n\n/** Where an icon name leads: `UI.icons.resolve()`. */\nexport type ResolvedIcon = {\n /** id of the pack that answered */\n pack: string\n /** the name as asked, normalized, without a prefix */\n name: string\n /** index key, e.g. `solid/address-book` */\n key: string\n /** absolute URL of the SVG */\n url: string\n /** viewBox width */\n width: number\n /** viewBox height */\n height: number\n}\n\n/** One icon of a pack, as `IconPack.icons()` lists it (the docs icon browser). */\nexport type IconPackIcon = Omit<ResolvedIcon, \"name\"> & {\n /** every name that reaches this icon; empty if all were taken */\n names: string[]\n}\n","/**\n * The EAGER half of the runtime: `load()` and the `UI` accessor.\n * - In `core` (every page's `core.js`), so keep it small: it imports only `./runtime.types`.\n * - Everything else in `spell/ui/runtime` is reached through a dynamic `import(\"./UIRuntime\")`, so Vite splits the\n * runtime into its own chunk and a component's static imports stay tiny. NEVER statically import a\n * service class here -- `import type` only.\n */\n\nimport { RUNTIME_KEY, type RuntimeGlobal } from \"./runtime.types\"\nimport type { UIRuntime } from \"./UIRuntime\"\n\n/** In-flight or finished runtime import, so concurrent first callers share one. */\nlet pending: Promise<UIRuntime> | undefined\n\n/**\n * Load the runtime chunk (once) and resolve with the page's `UIRuntime` once it's `ready`.\n * - Components call this from `connectedCallback`: `await UI.load()`.\n * - If another bundle already created the runtime, resolves with THAT instance without importing anything.\n * - A failed import (network) isn't cached, so the next call retries.\n */\nexport function load(): Promise<UIRuntime> {\n const existing = pageRuntime()\n if (existing) return existing.load()\n pending ??= import(\"./UIRuntime\").then(\n ({ UIRuntime }) => UIRuntime.instance.load(),\n (error: unknown) => {\n pending = undefined\n throw error\n }\n )\n return pending\n}\n\n/**\n * The page runtime, typed as `UIRuntime`, usable BEFORE the chunk has loaded.\n * - A `Proxy` onto `globalThis[RUNTIME_KEY]`, so it's the same object for every bundle on the page:\n * - `UI.load()` works any time -- it's how the runtime gets loaded\n * - anything else (`UI.keyboard`, `UI.toast()`) throws until `await UI.load()` has resolved,\n * rather than returning `undefined` and failing somewhere less obvious\n * - Why not `export const UI = UIRuntime.instance`: that's a STATIC import of every service,\n * which would put the whole runtime in each component's chunk.\n * - NOTE: `await UI` is safe -- `then` reads as `undefined`, so it doesn't look like a promise.\n */\nexport const UI: UIRuntime = new Proxy({} as UIRuntime, {\n get(_target, key) {\n // always the module function, so `await UI.load()` resolves with the real instance, not this proxy\n if (key === \"load\") return load\n const runtime = pageRuntime()\n if (runtime) return Reflect.get(runtime, key, runtime)\n if (key === \"then\" || typeof key === \"symbol\") return undefined\n throw notLoaded(key)\n },\n set(_target, key, value) {\n const runtime = pageRuntime()\n if (!runtime) throw notLoaded(key)\n return Reflect.set(runtime, key, value, runtime)\n },\n has(_target, key) {\n const runtime = pageRuntime()\n return runtime ? key in runtime : key === \"load\"\n }\n})\n\n/** The runtime any bundle on this page created, if one has. */\nfunction pageRuntime(): UIRuntime | undefined {\n return (globalThis as RuntimeGlobal)[RUNTIME_KEY]\n}\n\n/** What reading or writing `UI.<key>` throws before the runtime has loaded. */\nfunction notLoaded(key: string | symbol): Error {\n return new Error(`UI.${String(key)}: the UI runtime isn't loaded yet; \\`await UI.load()\\` first`)\n}\n","// Import directly to avoid circular import\nimport { proto } from \"spell/ui/util\"\nimport { E } from \"spell/ui/core\"\n\n/****************\n * ### `ClassBuilder`\n * Turns a component's property values into its canonical Fomantic class string, e.g. `ui small red basic button`.\n * - Why: shadow markup keeps Fomantic's class grammar (`<button class=\"ui small primary button\">`),\n * so the CSS is a mechanical port of the `.less`,\n * and multi-word phrases (`[class*=\"four wide\"]`) need a fixed order.\n * - Semantics are SUI React's `classNameBuilders.js` exactly:\n * `useKeyOnly`, `useValueAndKey`, `useKeyOrValueAndKey`, `useMultipleProp`, `useWidthProp`, `useTextAlignProp`,\n * `useVerticalAlignProp`.\n * - Fixed order, as Fomantic writes it (`ui primary icon button`; see `notes/grammar.md`):\n * `ui`, size, color, keyOnly (alphabetical), valueAndKey / keyOrValueAndKey (vocabulary order),\n * multiple, width, textAlign, verticalAlign, `extra`, noun (the vocabulary's, or `options.noun`).\n * - A spec with `classes` maps its values to Fomantic's words first (`padding=\"md\"` => `padded`), in its kind's place.\n * - The constructor sorts the vocabulary ONCE; `build()` only walks that list and fills one array.\n * - Reads attribute names and CSS keys from the vocabulary, never literals.\n * The grammar's own connective words (`aligned`, `wide` ...) are `@proto static grammar`.\n * - No DOM, no Solid: of the core (`E`), it uses only the foundation (`E.ValueSets`, `E.Warnings`),\n * NEVER an element class.\n ****************/\nexport class ClassBuilder {\n /** Fomantic's connective words -- grammar, not vocabulary, so they never translate. */\n declare grammar: E.ClassGrammar\n\n /** The grammar's English words; `@proto static`: the same for every builder, and on the prototype once. */\n @proto static grammar: E.ClassGrammar = {\n ui: \"ui\",\n medium: \"medium\",\n aligned: \"aligned\",\n justified: \"justified\",\n wide: \"wide\",\n equal: \"equal\",\n equalWidth: \"equal width\"\n }\n\n /** Vocabulary it builds for. */\n readonly vocabulary: E.ComponentVocabulary\n\n /** Class-emitting attributes in output order. */\n private readonly specs: readonly E.AttributeSpec[]\n\n /** CSS key per entry of `specs`, e.g. `pointing`, `very basic`. */\n private readonly keys: readonly string[]\n\n constructor(vocabulary: E.ComponentVocabulary) {\n this.vocabulary = vocabulary\n this.specs = [\n ...byKind(\"size\"),\n ...vocabulary.attributes.filter((spec) => spec.kind === \"color\" || spec.kind === \"valueOnly\"),\n ...byKind(\"keyOnly\").sort((a, b) => (a.name < b.name ? -1 : a.name > b.name ? 1 : 0)),\n ...vocabulary.attributes.filter((spec) => spec.kind === \"valueAndKey\" || spec.kind === \"keyOrValueAndKey\"),\n ...byKind(\"multiple\"),\n ...byKind(\"width\"),\n ...byKind(\"textAlign\"),\n ...byKind(\"verticalAlign\")\n ]\n this.keys = this.specs.map((spec) => spec.key ?? spec.name.replaceAll(\"-\", \" \"))\n\n /** `vocabulary`'s attributes of `kind`, in vocabulary order. */\n function byKind(kind: E.AttributeSpec[\"kind\"]) {\n return vocabulary.attributes.filter((spec) => spec.kind === kind)\n }\n }\n\n ////////////////\n // ## Build\n ////////////////\n\n /**\n * Class string for `values` (canonical attribute name => property value).\n * - Missing / falsy values emit nothing; `size: \"medium\"` emits nothing.\n * - SIDE EFFECT (dev only): warns on unusable widths, and on widths that aren't whole columns.\n */\n build(values: E.ClassInput, options: E.ClassBuildOptions = {}): string {\n const { grammar, specs, keys } = this\n const classes: string[] = this.vocabulary.ui === false ? [] : [grammar.ui]\n for (let index = 0; index < specs.length; index++) {\n const spec = specs[index]\n const value = values[spec.name]\n if (!value) continue\n const key = keys[index]\n // `true` means \"bare\"; anything that isn't a string / number / array emits nothing.\n const text = value === true ? undefined : ClassBuilder.text(value)\n if (value !== true && text === undefined) continue\n // a value whose class words aren't the value itself (`padding=\"md\"` => `padded`; epic `ui-gaps` P4)\n if (spec.classes && text) {\n this.pushClasses(classes, text, spec)\n continue\n }\n switch (spec.kind) {\n case \"size\":\n if (text && text !== grammar.medium) classes.push(text)\n break\n case \"color\":\n case \"valueOnly\":\n if (text) classes.push(text)\n break\n case \"keyOnly\":\n classes.push(key)\n break\n case \"valueAndKey\":\n if (text) classes.push(`${text} ${key}`)\n break\n case \"keyOrValueAndKey\":\n classes.push(text ? `${text} ${key}` : key)\n break\n case \"multiple\":\n if (text) this.pushMultiple(classes, text, key)\n break\n case \"width\":\n if (text) this.pushWidth(classes, text, spec)\n break\n case \"textAlign\":\n if (text === grammar.justified) classes.push(grammar.justified)\n else if (text) classes.push(`${text} ${grammar.aligned}`)\n break\n case \"verticalAlign\":\n if (text) classes.push(`${text} ${grammar.aligned}`)\n break\n }\n }\n if (options.extra) classes.push(options.extra)\n classes.push(options.noun ?? this.vocabulary.noun)\n return classes.join(\" \")\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n /**\n * `text`'s class words through `spec.classes`: each word looked up on its own for `kind: \"multiple\"`\n * (`appearance=\"basic circular\"`), the whole text otherwise; a word the map doesn't name draws as it is,\n * and `\"\"` draws none.\n */\n private pushClasses(classes: string[], text: string, spec: E.AttributeSpec) {\n const words = spec.kind === \"multiple\" ? text.trim().split(E.WHITESPACE) : [text]\n for (const word of words) {\n const mapped = spec.classes![word] ?? word\n if (mapped) classes.push(mapped)\n }\n }\n\n /**\n * `useMultipleProp`: `\"mobile tablet\"` + `only` => `mobile only tablet only`.\n * - `large screen` and `<device> vertically` stay single tokens: `computer vertically reversed`.\n * - An array of tokens arrives space-joined (`text()`).\n */\n private pushMultiple(classes: string[], text: string, key: string) {\n const words = text.trim().split(E.WHITESPACE)\n for (let index = 0; index < words.length; index++) {\n let token = words[index]\n if (token === \"large\" && words[index + 1] === \"screen\") token = `${token} ${words[++index]}`\n else token = token.replace(\"-\", \" \")\n if (words[index + 1] === \"vertically\") token = `${token} ${words[++index]}`\n classes.push(`${token} ${key}`)\n }\n }\n\n /**\n * `useWidthProp`, plus fractions and percentages: `4` / `\"4\"` / `\"four\"` / `\"1/4\"` / `\"25%\"` => `four wide`.\n * - `widthClass` from the spec (default `wide`); `\"\"` emits the bare word.\n * - `\"equal\"` => `equal width` when the spec allows it (`canEqual`).\n * - Inexact values snap to the nearest column, with a dev warning.\n */\n private pushWidth(classes: string[], value: string, spec: E.AttributeSpec) {\n const { grammar } = this\n if (value === grammar.equal && spec.canEqual) {\n classes.push(grammar.equalWidth)\n return\n }\n const columns = E.ValueSets.columns(value)\n const rounded = columns === undefined ? 0 : Math.round(columns)\n const source = `<${this.vocabulary.tag} ${spec.name}>`\n if (!E.ValueSets.isColumnCount(rounded)) {\n E.Warnings.devWarn(source, `${JSON.stringify(value)} is not a width of 1..16 columns`)\n return\n }\n if (rounded !== columns) {\n E.Warnings.devWarn(source, `${JSON.stringify(value)} is ${columns!.toFixed(2)} of 16 columns; using ${rounded}`)\n }\n const word = E.numberToWord(rounded)!\n const widthClass = spec.widthClass ?? grammar.wide\n classes.push(widthClass ? `${word} ${widthClass}` : word)\n }\n\n /**\n * `value` as class text: strings as-is, numbers stringified, arrays space-joined; else `undefined`.\n * - Static: pure, no builder state.\n */\n private static text(value: unknown): string | undefined {\n if (typeof value === \"string\") return value\n if (typeof value === \"number\") return String(value)\n if (Array.isArray(value)) return value.map((item) => ClassBuilder.text(item) ?? \"\").join(\" \")\n return undefined\n }\n}\n","// Import directly to avoid circular import: everything here sits below the `core` entry, which imports this file\nimport { SpellSolid, type SpellSolidSettings } from \"spell/element\"\nimport { Warnings } from \"spell/ui/util\"\nimport { Converters, SharedVocabulary, ValueSets, Vocabulary } from \"spell/ui/vocabulary\"\nimport { UI } from \"spell/ui/runtime\"\nimport { RUNTIME_KEY, type RuntimeGlobal } from \"spell/ui/runtime/runtime.types\"\nimport * as UIT from \"spell/ui/components/components.types\"\nimport { ClassBuilder } from \"./ClassBuilder\"\n\n/****************\n * ### `SpellUISettings`\n * What Spell UI hands spell-element as it loads (`SpellSolid.install()`), which every set's elements draw with:\n * its runtime (`UI`), its vocabulary layer, its style sheets, focus and animations (`E.SpellSolidSettings`).\n * - Installed as `spell/ui/core` loads (`core.ts` imports this file), so before any family's `define()`:\n * a family imports `spell/ui/core` first.\n * - What each one is in Spell UI:\n * - `runtime`: the page's `UI` runtime, lazy (`spell/ui/runtime`): elements show once it has loaded\n * - `words`: `spell/ui/vocabulary` (`Vocabulary`, `SharedVocabulary`, `Converters`, `ValueSets`), `ClassBuilder`,\n * and the runtime's `UI.vocabulary` and `UI.i18n`\n * - `styles`, `focus`: the runtime's `UI.styles`, `UI.focus`\n * - `motion`: Fomantic's animations (`UIT.Animations`), run by `UI.transitions`; `--ui-motion`\n * - `warn`: `Warnings.warn()`, `[spell-ui] ...`\n * - SIDE EFFECT: installs them; listed in `package.json`'s `sideEffects`.\n * - Imported for that by `core.ts`, AND by `spell-ui`'s barrel (`index.ts`) and the root's (`ui-root/index.ts`):\n * - `core.ts` alone isn't enough in a bundle, since it's only re-exports:\n * a bundler that sees nothing of it used drops its side-effect import too.\n * Spell UI's site and the brand's pages lost it.\n * - Every page has a root, or loads `spell-ui`.\n * - Not `core.ts` in `sideEffects` instead: that re-chunks the app's `spell-solid.js`\n * (its `BuiltInPacks` moves out, away from where `<spell-viewer>` finds its icons).\n * - A code-split build may run a family's chunk first:\n * that family's `define()` waits for the install (`SpellSolid.whenInstalled()`).\n * - The app's `spell-solid.js` ran `<ui-components>`'s before its entry's body, where this file lands.\n ****************/\nexport class SpellUISettings {\n /** The settings, as spell-element reads them. */\n static readonly settings: SpellSolidSettings = {\n runtime: {\n get isLoaded() {\n return !!(globalThis as RuntimeGlobal)[RUNTIME_KEY]\n },\n load: () => UI.load()\n },\n words: {\n names: () => new Vocabulary(),\n classes: (vocabulary) => new ClassBuilder(vocabulary),\n attributesFor: (vocabulary) => SharedVocabulary.attributesFor(vocabulary),\n takesShared: (vocabulary, name) => SharedVocabulary.takesShared(vocabulary, name),\n converters: Converters,\n valuesFor: (spec) => ValueSets.setFor(spec),\n text: (key, params, tag) => UI.i18n.t(key, params, tag),\n registerVocabulary(vocabulary, how, define) {\n if (how === \"replace\") UI.vocabulary.replace(vocabulary)\n else if (define) UI.vocabulary.registerComponent(vocabulary, define)\n else UI.vocabulary.register(vocabulary)\n },\n registerTexts: (texts, tag) => UI.i18n.registerDefaults(texts, tag)\n },\n styles: {\n registerOnce: (sheets) => UI.styles.registerOnce(sheets),\n register: (name, css) => UI.styles.register(name, css),\n adoptInto: (root, names) => UI.styles.adoptInto(root, names)\n },\n focus: {\n moveOutOf: (container) => UI.focus.moveOutOf(container)\n },\n motion: {\n defaultAnimation: UIT.DEFAULT_ANIMATION,\n property: UIT.MOTION_PROPERTY,\n get isReduced() {\n return UI.browser.isReducedMotion\n },\n isAttention: (animation) => UIT.AnimationLookup.isAttention(animation),\n reveal: (box) => UI.transitions.reveal(box),\n animate: (element, animation, visible) =>\n UI.transitions.animate({\n element,\n name: UIT.AnimationLookup.runtimeNameFor(animation),\n direction: visible ? UIT.IN : UIT.OUT\n })\n },\n warn: (source, message, ...data) => Warnings.warn(source, message, ...data)\n }\n}\n\nSpellSolid.install(SpellUISettings.settings)\n","/**\n * Shared types for `spell/ui/elements`, Spell UI's own half of the element core.\n * - What makes an element at all is `spell/element`'s: `UIComponent`, `DOMElement` and their types.\n * - Here:\n * - the parts with no Solid: class building, validation, menu options, shorthand, native fallbacks\n * - the elements that show a text file, the dropdown's entries, the sticky watch\n * - Runtime-light: types, plus a few constants\n * (`WHITESPACE`, `StickyWatchEdges` and `StickyWatch`'s thresholds, the source URL attributes, `SourceEvent`)\n * and one pure helper (`markedPieces()`).\n * - The BOTTOM of the folder's import graph: `import type` only (the core's types as `E`, erased),\n * so it NEVER loads a class module of its folder, the DOM or Solid.\n * - `core.ts` re-exports it,\n * and a static initializer that reads one of its constants imports it directly (`LoadableComponent`).\n */\n\nimport type { E } from \"spell/ui/core\"\n// a constant `SourceEvent` reads as it's made: spell-element's types file, which loads nothing\nimport { ERROR_EVENT } from \"spell/element/elements.types\"\n\n////////////////\n// ## Class builder\n////////////////\n\n/** Fomantic's connective words, see `ClassBuilder.grammar`. */\nexport type ClassGrammar = {\n /** Leading component marker. */\n ui: string\n /** Default size, which emits nothing. */\n medium: string\n /** Suffix for `textAlign` / `verticalAlign`. */\n aligned: string\n /** `textAlign` value emitted alone. */\n justified: string\n /** Default `widthClass`. */\n wide: string\n /** Width value meaning \"share equally\". */\n equal: string\n /** Class for `equal`. */\n equalWidth: string\n}\n\n/** `ClassBuilder.build()` output: space-separated Fomantic classes, e.g. `\"ui small red basic button\"`. */\nexport type ClassString = string\n\n/** Runs of whitespace: how class lists split (`ClassBuilder`'s `multiple` words, `Shorthand.mergeClasses()`). */\nexport const WHITESPACE = /\\s+/\n\n////////////////\n// ## Validation\n////////////////\n\n/**\n * A form control's value as the validator sees it.\n * - `string[]` for multiple selection (counted like Fomantic's comma-joined value)\n * - `boolean` for checkbox / toggle (`checked` rule)\n * - `null` / `undefined` ~== empty\n */\nexport type FieldValue = string | readonly string[] | number | boolean | null | undefined\n\n/** Every built-in rule, as Fomantic names them. */\nexport type RuleType =\n | \"notEmpty\"\n | \"checked\"\n | \"email\"\n | \"url\"\n | \"regExp\"\n | \"minValue\"\n | \"maxValue\"\n | \"integer\"\n | \"range\"\n | \"decimal\"\n | \"number\"\n | \"is\"\n | \"isExactly\"\n | \"not\"\n | \"notExactly\"\n | \"contains\"\n | \"containsExactly\"\n | \"doesntContain\"\n | \"doesntContainExactly\"\n | \"minLength\"\n | \"exactLength\"\n | \"maxLength\"\n | \"size\"\n | \"match\"\n | \"different\"\n | \"creditCard\"\n | \"minCount\"\n | \"exactCount\"\n | \"maxCount\"\n\n/** A rule's bracketed argument: `\"6\"` in `minLength[6]`, or a real `RegExp` for `regExp`. */\nexport type RuleValue = string | RegExp | undefined\n\n/**\n * A rule as authors write it: `\"minLength[6]\"`, or Fomantic's object form with a custom prompt.\n * - `type` may carry the bracket (`{ type: \"minLength[6]\" }`) or pass `value` separately.\n */\nexport type ValidationRule =\n | string\n | {\n type: string\n value?: RuleValue\n /** Custom message; same `{name}` / `{value}` / `{ruleValue}` placeholders as the defaults. */\n prompt?: string | ((value: string) => string)\n }\n\n/** A rule after `Validator.parseRule()`. */\nexport type ParsedRule = {\n type: string\n value: RuleValue\n prompt?: string | ((value: string) => string)\n}\n\n/** What each rule function receives besides the value. */\nexport type RuleContext = {\n /** The raw, un-normalized value, e.g. `true` for a checked checkbox. */\n raw: FieldValue\n /** Other fields' values by name, for `match` / `different`. */\n fieldValues?: Readonly<Record<string, FieldValue>>\n}\n\n/**\n * A rule implementation.\n * - `value` is normalized: a trimmed string, arrays comma-joined, as Fomantic's `validate.rule()` does.\n * - `this` is the `Validator`, so rules share `range()` / `regExp`, and a subclass can override them.\n */\nexport type RuleFunction = (this: RuleValidator, value: string, ruleValue: RuleValue, context: RuleContext) => boolean\n\n/**\n * What a `RuleFunction` may use from its `Validator`.\n * - OURS, not Fomantic's: here the shared steps are `Validator` methods.\n * - Fomantic's rules reach each other through `$.fn.form.settings.rules`,\n * and its `range()` is a rule taking `(value, range, regExp, testLength)`.\n */\nexport type RuleValidator = {\n /** the patterns, `Validator.regExp` */\n regExp: ValidatorRegExps\n /** the card brands, `Validator.cards` */\n cards: Readonly<Record<string, CreditCardSpec>>\n /** `value` (or its length) matches `test.pattern` and lies in `test.range`, `Validator.range()` */\n range(value: string, test: RangeTest): boolean\n /** a field value as the rules see it, `Validator.normalize()` */\n normalize(value: FieldValue, options?: Pick<ValidateOptions, \"trim\">): string\n /** number of choices, `Validator.count()` */\n count(value: string, raw: FieldValue): number\n}\n\n/** Fomantic's `settings.regExp` entries the rules use. */\nexport type ValidatorRegExps = {\n decimal: RegExp\n email: RegExp\n integer: RegExp\n number: RegExp\n url: RegExp\n /** Splits `/pattern/flags` for the `regExp` rule. */\n flags: RegExp\n}\n\n/** A card brand for the `creditCard` rule: number prefix and allowed lengths. */\nexport type CreditCardSpec = {\n pattern: RegExp\n length: readonly number[]\n}\n\n/** Fomantic's `settings.text` entries prompts use. */\nexport type ValidatorText = {\n /** Joins a type prompt to its range suffix: \"must be an integer and must be ...\". */\n and: string\n /** Prompt for a rule with no prompt of its own. */\n unspecifiedRule: string\n /** `{name}` when the field has no label or name. */\n unspecifiedField: string\n}\n\n/**\n * Constraint Validation flag per rule type, or `\"auto\"` when it depends on the value,\n * e.g. `exactLength` is `tooShort` or `tooLong`.\n */\nexport type ValidityFlagMap = Readonly<Record<string, ValidityFlag | \"auto\">>\n\n/** Constraint Validation API flag a failed rule sets -- the keys of `ValidityStateFlags`. */\nexport type ValidityFlag = keyof ValidityStateFlags\n\n/** Options for `Validator.validate()`. */\nexport type ValidateOptions = {\n /** Field identifier (`name` / `id`); `{identifier}` in prompts. */\n name?: string\n /** Human label; `{name}` in prompts. Defaults to `name`, else \"This field\". */\n label?: string\n /** Other fields' values by name, for `match` / `different`. */\n fieldValues?: Readonly<Record<string, FieldValue>>\n /** Other fields' labels by name, so `match[password]` says \"must match Password field\". */\n fieldLabels?: Readonly<Record<string, string>>\n /** Skip every rule when the value is blank (Fomantic's `optional: true`). */\n optional?: boolean\n /** Trim string values before testing. Default true (Fomantic's `shouldTrim`). */\n trim?: boolean\n}\n\n/** One failed rule. */\nexport type ValidationError = {\n /** Rule type, e.g. `minLength`. */\n type: string\n /** Rule argument, e.g. `\"6\"`. */\n ruleValue: RuleValue\n /** Interpolated prompt. */\n message: string\n /** Constraint Validation flag it maps to. */\n flag: ValidityFlag\n}\n\n/**\n * `Validator.validate()` result, shaped so `ElementInternals.setValidity(flags, message)` can take it directly.\n * - `flags` is `{}` and `message` `\"\"` when valid, which `setValidity()` reads as \"valid\".\n */\nexport type ValidationResult = {\n valid: boolean\n errors: ValidationError[]\n /** Union of every error's flag. */\n flags: ValidityStateFlags\n /** First error's message. */\n message: string\n}\n\n/**\n * When a form control shows `:state(invalid)` (`FormComponent.invalidShows`):\n * - `\"at once\"`: whenever it's invalid, as `:invalid` does\n * - `\"once touched\"`: only after someone has interacted with it (`isTouched`), as `:user-invalid` does\n */\nexport type InvalidTiming = \"at once\" | \"once touched\"\n\n/** What `Validator.range()` tests: the value itself, or its length (`minLength`, `size` ...). */\nexport const RangeMeasures = [\"value\", \"length\"] as const\n/** One of `RangeMeasures`. */\nexport type RangeMeasure = (typeof RangeMeasures)[number]\n\n/** What `Validator.range()` checks a value against. */\nexport type RangeTest = {\n /** the bracket: `\"min..max\"`, `\"n\"` (exactly), `\"min..\"`, `\"..max\"`; empty ~== no bounds */\n range: RuleValue\n /** what the tested text MUST match (`Validator.regExp.integer` ...); bounds that don't are ignored */\n pattern: RegExp\n /** test the value (default) or its length */\n measure?: RangeMeasure\n}\n\n////////////////\n// ## Menu options\n////////////////\n\n/**\n * One dropdown / search / select option.\n * - `icon` / `image` / `flag` are shorthand (`Shorthand.resolve()`), e.g. `icon: \"check\"`.\n */\nexport type MenuOption = {\n value: string\n text: string\n description?: string\n icon?: unknown\n image?: unknown\n flag?: unknown\n disabled?: boolean\n selected?: boolean\n}\n\n/** The synthesized \"Add ...\" option `MenuOptions.withAdditions()` inserts. */\nexport type MenuAddition = MenuOption & {\n /** Marks the synthesized option. */\n addition: true\n /** Label shown before the query, e.g. `\"Add \"`. */\n label: string\n}\n\n/** Custom search: return the options matching `query`. */\nexport type MenuSearchFunction = (options: readonly MenuOption[], query: string) => MenuOption[]\n\n/** Options for `MenuOptions.filter()`, named as Fomantic's dropdown settings. */\nexport type MenuFilterOptions = {\n /**\n * What to match: `\"text\"`, `\"value\"`, `\"both\"` (default, as Fomantic's `match`), or a custom function\n * (SUI React's `search` prop).\n */\n search?: MenuSearchField | \"both\" | MenuSearchFunction\n /**\n * Fomantic's `fullTextSearch` setting, its shape kept (a boolean plus `\"exact\"`) so its docs apply:\n * - `\"exact\"` (default) -- substring anywhere\n * - `true` -- fuzzy: query characters in order, gaps allowed\n * - `false` -- prefix only\n */\n fullTextSearch?: \"exact\" | boolean\n /** Match `a` against `á`. Default false. */\n ignoreDiacritics?: boolean\n /** Case-insensitive. Default true (Fomantic's `ignoreSearchCase`). */\n ignoreCase?: boolean\n /** Below this many characters the query doesn't filter. Default 0. */\n minCharacters?: number\n}\n\n/** Options for `MenuOptions.withAdditions()`. */\nexport type MenuAdditionOptions = {\n /** Offer the query as a new option when nothing matches it exactly. */\n allowAdditions?: boolean\n /** Label before the query. Default `\"Add \"`; pass `UI.i18n` text. */\n additionLabel?: string\n /** `\"top\"` (default, as Fomantic) or `\"bottom\"`. */\n additionPosition?: \"top\" | \"bottom\"\n /**\n * Don't show the addition in the list, but keep it on `.addition` so Enter can still add it.\n * - Default false here (SUI React shows it); Fomantic defaults to true.\n */\n hideAdditions?: boolean\n /** Case-insensitive exact-match check. Default true. */\n ignoreCase?: boolean\n}\n\n/** Options for `MenuOptions.nextEnabledIndex()`. */\nexport type MenuNavigateOptions = {\n /** Wrap past either end. Default false (listbox pattern). */\n wrap?: boolean\n}\n\n/** Half-open `[start, end)` range of `option.text` that matched, for `<mark>`-style highlighting. */\nexport type HighlightRange = readonly [start: number, end: number]\n\n/**\n * `text` cut at `ranges` (sorted, never overlapping) into pieces, in order: the ranges' pieces marked.\n * - The ONE cutter for a list that marks its matches: each draws a marked piece as its `<mark>`\n * (the dropdown, the search, the docs' search).\n * - e.g. `markedPieces(\"bell slash\", [[0, 4]])` => `[{ text: \"bell\", isMarked: true }, { text: \" slash\", isMarked: false }]`\n */\nexport function markedPieces(text: string, ranges: readonly HighlightRange[]): MarkedPiece[] {\n const pieces: MarkedPiece[] = []\n let at = 0\n for (const [start, end] of ranges) {\n if (start > at) pieces.push({ text: text.slice(at, start), isMarked: false })\n pieces.push({ text: text.slice(start, end), isMarked: true })\n at = end\n }\n if (at < text.length) pieces.push({ text: text.slice(at), isMarked: false })\n return pieces\n}\n\n/** A piece of a text cut at its matches (`markedPieces()`). */\nexport type MarkedPiece = {\n /** its text */\n readonly text: string\n /** a match: drawn as `<mark>` */\n readonly isMarked: boolean\n}\n\n/** The option fields a query is matched against (`MenuFilterOptions.search`; `\"both\"` ~== all of them). */\nexport const MenuSearchFields = [\"text\", \"value\"] as const\n/** One of `MenuSearchFields`. */\nexport type MenuSearchField = (typeof MenuSearchFields)[number]\n\n////////////////\n// ## Shorthand\n////////////////\n\n/** Props a shorthand resolves to; the renderer turns them into an element. */\nexport type ShorthandProps = Record<string, unknown> & {\n /** Space-separated classes; de-duplicated when merged. */\n class?: string\n /** Inline style; objects merge key by key. */\n style?: string | Readonly<Record<string, string>>\n}\n\n/**\n * Anything a shorthand property accepts.\n * - `undefined` / `null` / `false` / `true` => nothing\n * - string / number / array => `mapPrimitive(value)`\n * - plain object => props\n */\nexport type ShorthandValue = string | number | boolean | null | undefined | readonly unknown[] | ShorthandProps\n\n/** Maps a primitive shorthand to props, e.g. `(name) => ({ name })` for an icon. */\nexport type ShorthandMapper = (value: string | number | readonly unknown[]) => ShorthandProps\n\n/** Options for `Shorthand.resolve()`. */\nexport type ShorthandOptions = {\n /** Lowest priority props. */\n defaults?: ShorthandProps\n /** Highest priority props, or a function of the merged defaults + value props. */\n overrides?: ShorthandProps | ((props: ShorthandProps) => ShorthandProps)\n}\n\n////////////////\n// ## Native fallback\n////////////////\n\n/**\n * Where `NativeFallback.render()` builds: a component's shadow root, or (light-DOM DOM elements) the element itself.\n */\nexport type NativeFallbackRoot = ShadowRoot | HTMLElement\n\n/**\n * What `NativeFallback.render()` returns.\n * - `dispose()` removes listeners only; the DOM stays, so a later re-render can replace it.\n */\nexport type NativeFallbackHandle = {\n /** Removes the fallback's listeners and observers. */\n dispose(): void\n /** Features of the real component this fallback does NOT keep, for the console error and docs. */\n readonly degraded: readonly string[]\n}\n\n/**\n * Attributes for `NativeFallback.create()`.\n * - `true` => bare attribute (`\"\"`)\n * - `false` / `null` / `undefined` => omitted\n */\nexport type NativeFallbackAttributes = Readonly<Record<string, string | boolean | null | undefined>>\n\n/** Canonical attribute names of vocabulary `V`, so a fallback can't misspell one. */\nexport type AttributeNameOf<V extends { attributes: readonly { name: string }[] }> = V[\"attributes\"][number][\"name\"]\n\n////////////////\n// ## Source elements\n////////////////\n\n/**\n * Where a `LoadableComponent` (or a `LoadableBody`) is with its content: `status.set(SourceStatus.loading)`.\n * - Ours alone, never published: `:state(loading)` / `:state(error)` are the vocabulary's (`UIT.SourceStates`).\n */\nexport const SourceStatus = {\n idle: \"idle\",\n loading: \"loading\",\n loaded: \"loaded\",\n error: \"error\"\n} as const\n/** One of `SourceStatus`'s values, e.g. `\"loading\"`. */\nexport type SourceStatus = (typeof SourceStatus)[keyof typeof SourceStatus]\n\n/** A failure a `LoadableComponent` shows as its error message. */\nexport type SourceFailure = {\n /** why, see `SourceErrorKind` */\n kind: E.SourceErrorKind\n /** what was thrown */\n error: unknown\n}\n\n/**\n * A URL as written in markup (`source=\"docs/intro.md\"`):\n * maybe relative, resolved against the page by whoever fetches it.\n */\nexport type URLString = string\n\n/** What `DOMLoadableElement` asks of its component (`LoadableComponent`). */\nexport type LoadableComponentShape = {\n /** the text now shown, edits included; set it to show other text, `dirty` until saved */\n content: string\n /** version of the last load / save */\n readonly lastETag: string | undefined\n /** changed since loaded / saved? */\n readonly isDirty: boolean\n /** save, see `LoadableComponent.save()` */\n save(text?: string): Promise<boolean>\n /** fetch again past the cache, dropping edits */\n reload(): Promise<string>\n}\n\n/** The loader a `LoadableComponent` builds with the DOM (Solid's JSX has no types for our tags). */\nexport const SOURCE_LOADER_TAG = \"ui-loader\"\n/** The error message a `LoadableComponent` builds with the DOM, as `SOURCE_LOADER_TAG`. */\nexport const SOURCE_MESSAGE_TAG = \"ui-message\"\n\n/**\n * Attributes holding a URL, rewritten against `source` (`SourceMarkup.rewriteUrls()`),\n * so fetched links, images and nested sources point where they did there.\n */\nexport const URL_ATTRIBUTES = [\"href\", \"src\", \"action\", \"poster\", \"source\"] as const\n\n/** Elements carrying one of `URL_ATTRIBUTES`. */\nexport const URL_SELECTOR = URL_ATTRIBUTES.map((name) => `[${name}]`).join(\",\")\n\n/**\n * Prefix of the attribute keeping a rewritten URL's ORIGINAL value (`data-ui-include-href`),\n * so the markup can be given back as it was written (`<ui-include>`'s `content`, a docs example's source).\n * - Named for `<ui-include>`, which came first; `<ui-section source>` / `<ui-accordion source>` write it too.\n */\nexport const ORIGINAL_PREFIX = \"data-ui-include-\"\n\n/** Sources nested deeper than this refuse to load: a cycle through different URLs, or a runaway. */\nexport const MAX_DEPTH = 8\n\n/**\n * Text key (`UIT.SourceFailureTexts`) of the message per failure kind; save kinds never show one.\n * - `LoadableComponent` and the owners of a `LoadableBody` show it.\n */\nexport const SOURCE_FAILURE_KEYS: Partial<Record<E.SourceErrorKind, string>> & { load: string } = {\n load: \"sourceLoadError\",\n \"cross-origin\": \"sourceCrossOrigin\",\n \"file-protocol\": \"sourceFileProtocol\",\n render: \"sourceRenderError\"\n}\n\n/**\n * Milliseconds an opening section / panel waits for its source body,\n * before it opens on the placeholder instead (`LoadableBody.isVeiled`).\n * - Why wait at all: the body arrives in one piece, so the fold animates once, to the real height.\n * A same-origin fetch usually takes a few milliseconds.\n */\nexport const SOURCE_BODY_HOLD_MS = 300\n\n/** What `LoadableBody` asks of the element whose body it loads (`<ui-section source>`, `<ui-accordion source>`). */\nexport type LoadableBodyOwner = {\n /** the DOM element: its `source` / `select` attributes, its events */\n domElement: HTMLElement\n /** `source`, as written; `undefined` when absent or empty. Read untracked (`LoadableBody.load()`). */\n source(): string | undefined\n /** `select`, as written; `undefined` when absent or empty */\n select(): string | undefined\n /** where the body goes: the DOM element (a section), or a panel's `<ui-content>` (an accordion) */\n target(): Element\n /** dispatch vocabulary event `name` (`ui-loaded`, `ui-error`); false when a cancelable one was vetoed */\n send(name: string, detail: object): boolean\n}\n\n/** What `DOMLoadableBodyElement` asks of its component (`<ui-section>`, `<ui-accordion>`). */\nexport type LoadableBodyComponentShape = {\n /** fetch and insert the body now, once */\n loadBody(): Promise<void>\n /** fetch the body again past the cache, and replace it */\n reloadBody(): Promise<void>\n}\n\n/** The attribute naming an element's file: what makes an ancestor an enclosing source (`SourceMarkup`). */\nexport const SOURCE_ATTRIBUTE = \"source\"\n\n/**\n * Events the source layer dispatches through its owner: `SourceEvent.load`.\n * - The owner's vocabulary MUST name them:\n * `UIT.SourceEvents` (`LoadableComponent`), `UIT.SourceBodyEvents` (`LoadableBody`: `loading`, `loaded` and\n * `error` only).\n */\nexport const SourceEvent = {\n load: \"ui-loaded\",\n /** A section's body is on its way (epic `property-editor` P10): `LoadableBody` only. */\n loading: \"ui-loading\",\n /** A section's body is in place: `LoadableBody` only (a `LoadableComponent` sends `ui-loaded`). */\n loaded: \"ui-loaded\",\n change: \"ui-changed\",\n save: \"ui-saving\",\n saved: \"ui-saved\",\n error: ERROR_EVENT\n} as const\n/** One of `SourceEvent`'s names, e.g. `\"ui-loaded\"`. */\nexport type SourceEventName = (typeof SourceEvent)[keyof typeof SourceEvent]\n\n////////////////\n// ## Dropdown\n////////////////\n\n/** A header or divider row of a dropdown menu (from `<ui-item kind=\"header|divider\">`). */\nexport type MenuSeparator = {\n type: \"header\" | \"divider\"\n /** header text */\n text: string\n}\n\n/** One row of a dropdown menu, in order: an option or a separator. */\nexport type MenuEntry = MenuOption | MenuSeparator\n\n////////////////\n// ## Sticky watch\n////////////////\n\n/** Edges a watched sticky box can be stuck to (`StickyWatch`); ~== `UIT.StickyEdge`. */\nexport const StickyWatchEdges = [\"top\", \"bottom\"] as const\n/** One of `StickyWatchEdges`. */\nexport type StickyWatchEdge = (typeof StickyWatchEdges)[number]\n\n/** What `StickyWatch.observe()` watches: elements the caller renders. */\nexport type StickyWatchTargets = {\n /** element whose ancestors decide the scroll container (the custom element's DOM element) */\n domElement: Element\n /** 1px sentinel where the box's top would be, unstuck */\n top: Element\n /** 1px sentinel where the box's bottom would be; only read with `pushing` */\n bottom?: Element\n /** the `position: sticky` box */\n box: Element\n}\n\n/** Offsets one observation measures against; a change means a new `observe()`. */\nexport type StickyWatchOptions = {\n /** pixels between the scroll container's top edge and the stuck box (CSS `top`) */\n offset: number\n /** pixels between the bottom edge and a box stuck there (CSS `bottom`) */\n bottomOffset?: number\n /** also sticks to the bottom edge */\n pushing?: boolean\n}\n\n/** What a `StickyWatch` reports after every measurement. */\nexport type StickyWatchState = {\n /** edge stuck to now; `undefined` when not stuck */\n edge: StickyWatchEdge | undefined\n /** pushed out by the end of its container */\n isBound: boolean\n /** edge stuck to before this report; `edge !== previous` ~== the stuck state changed */\n previous: StickyWatchEdge | undefined\n}\n\n/** `overflow-y` values that make a scroll container. */\nexport const STICKY_SCROLLING: ReadonlySet<string> = new Set([\"auto\", \"scroll\", \"overlay\", \"hidden\"])\n\n/**\n * A stuck box taller than this share of the visible area, or narrower than this share of its width,\n * reserves no scroll padding: it's a sticky column (a sidebar),\n * and reserving its height would make Page Down barely move.\n */\nexport const STICKY_MAX_RESERVE = 0.5\n\n/** Sub-pixel slack when comparing edges. */\nexport const STICKY_SLACK = 0.5\n","import { E } from \"spell/ui/core\"\n\n/****************\n * ### `Shorthand`\n * SUI React's shorthand contract (`createShorthand()` in `lib/factories.js`) for properties like\n * `icon`, `image`, `label`, `header`: one value may be a primitive, a props object, or nothing.\n * - `undefined` / `null` / booleans => nothing\n * - string / number / array => `mapPrimitive(value)`, e.g. `\"check\"` => `{ name: \"check\" }` for an icon\n * - plain object => props as given\n * - Merge order `defaults < value props < overrides`; `class` is merged and de-duplicated,\n * object `style`s merge key by key.\n * - Returns plain props; the renderer (a Solid component) turns them into an element. NO DOM, no Solid: of the\n * core (`E`), it uses only `E.Warnings` and the folder's types.\n * - STATIC and instance-free on purpose: pure functions of their input.\n * - NOTE: dropped from SUI: React elements, render functions, `key` / `childKey`. Children (slotted content)\n * win over shorthand -- that's the renderer's job.\n ****************/\nexport class Shorthand {\n /**\n * Props for shorthand `value`, or `undefined` when it renders nothing.\n * - SIDE EFFECT (dev only): warns about values of other types (functions, symbols ...) and renders nothing.\n */\n static resolve(\n value: E.ShorthandValue,\n mapPrimitive: E.ShorthandMapper,\n options: E.ShorthandOptions = {}\n ): E.ShorthandProps | undefined {\n if (value == null || typeof value === \"boolean\") return undefined\n let user: E.ShorthandProps\n if (typeof value === \"string\" || typeof value === \"number\" || Array.isArray(value)) user = mapPrimitive(value)\n else if (Shorthand.isPlainObject(value)) user = value\n else {\n E.Warnings.devWarn(\"Shorthand.resolve()\", `expected string | number | array | object, got ${typeof value}`)\n return undefined\n }\n const defaults = options.defaults ?? {}\n const overrides =\n typeof options.overrides === \"function\" ? options.overrides({ ...defaults, ...user }) : (options.overrides ?? {})\n const props: E.ShorthandProps = { ...defaults, ...user, ...overrides }\n const classes = Shorthand.mergeClasses(defaults.class, user.class, overrides.class)\n if (classes) props.class = classes\n const style = Shorthand.mergeStyles(defaults.style, user.style, overrides.style)\n if (style !== undefined) props.style = style\n return props\n }\n\n /**\n * Space-separated classes of all `lists`, first occurrence kept, e.g. `(\"ui icon\", \"icon red\")` => `\"ui icon red\"`.\n * - `undefined` when there are none.\n */\n static mergeClasses(...lists: (string | undefined)[]): string | undefined {\n const classes = new Set<string>()\n for (const list of lists) {\n if (!list) continue\n for (const name of list.split(E.WHITESPACE)) if (name) classes.add(name)\n }\n return classes.size ? [...classes].join(\" \") : undefined\n }\n\n ////////////////\n // ## Internals\n ////////////////\n\n /**\n * Merge `style`s, later winning: objects key by key; if any is a string, strings join with `;`\n * (objects are then ignored -- mixing both is a caller bug).\n */\n private static mergeStyles(...styles: E.ShorthandProps[\"style\"][]): E.ShorthandProps[\"style\"] | undefined {\n const present = styles.filter((style) => style !== undefined && style !== \"\")\n if (!present.length) return undefined\n if (present.every((style) => typeof style === \"object\"))\n return Object.assign({}, ...present) as Record<string, string>\n return present.filter((style) => typeof style === \"string\").join(\"; \")\n }\n\n /** True for `{}` literals and `Object.create(null)`, not class instances or arrays. */\n private static isPlainObject(value: unknown): value is E.ShorthandProps {\n if (typeof value !== \"object\" || value === null) return false\n const prototype = Object.getPrototypeOf(value) as unknown\n return prototype === Object.prototype || prototype === null\n }\n\n ////////////////\n // ## Constants\n ////////////////\n\n /** Common primitive mappers, so components don't each write `(value) => ({ content: value })`. */\n static readonly map = {\n /** Button, label, header ... text. */\n content: (content: unknown): E.ShorthandProps => ({ content }),\n /** Icon, flag. */\n name: (name: unknown): E.ShorthandProps => ({ name }),\n /** Image, embed. */\n src: (src: unknown): E.ShorthandProps => ({ src }),\n /** Input. */\n type: (type: unknown): E.ShorthandProps => ({ type })\n } satisfies Record<string, E.ShorthandMapper>\n}\n","// Import directly to avoid circular import\nimport { lazy, proto } from \"spell/ui/util\"\nimport { E } from \"spell/ui/core\"\n\n// spell ui rename: leave this file (its docs are about the old names it still reads)\n/****************\n * ### `NativeFallback`\n * The base class of the form controls' fallbacks:\n * plain native DOM a DOM element shows when its component's render throws, so its form keeps working\n * (`notes/fallback.md`: only form controls have one).\n * - No Solid, so the fallback works whatever broke the Solid render:\n * - of the core (`E`), it uses only the foundation and `E.ClassBuilder`, NEVER Solid or the runtime (`UI`)\n * - it builds with `createElement` + `setAttribute` (NEVER `innerHTML` with user text)\n * - Same class grammar, `part`s and `<slot>` as the real element,\n * so the component's adopted sheet still styles it and light-DOM children still show.\n * - Subclasses set `@proto static vocabulary` (or `vocabularies`, one class for several tags) and implement `build()`;\n * callers only use `render()`.\n * - A form control's subclass also implements `sync()`, handing `syncForm()` its value and the native control\n * whose validity counts: `render()` runs it once the nodes are attached, the subclass on each change.\n * - Reads the DOM ELEMENT'S ATTRIBUTES (reflected primitives), never its properties,\n * except where a subclass says so (`dropdown`: `value`, `options`).\n * - NOTE: attribute names are canonical English; a translated DOM element must map its attributes back first.\n ****************/\nexport abstract class NativeFallback<V extends E.ComponentVocabulary = E.ComponentVocabulary> {\n /**\n * Names the fallback reads and renders, read from the prototype (`@proto`).\n * - STATIC: one per family, shared by every instance, so no per-instance copy.\n * - A subclass overrides it with its own `@proto static vocabulary` line, which needs no docstring.\n * - The base's is an empty placeholder.\n */\n @proto static vocabulary: E.ComponentVocabulary = {\n tag: \"\",\n noun: \"\",\n attributes: [],\n events: [],\n slots: [],\n parts: [],\n states: [],\n texts: []\n }\n\n /**\n * One class for several tags (`<ui-card>` + `<ui-cards>`): every tag's vocabulary, the FIRST the default.\n * - The constructor puts the right one into `vocabulary`:\n * the one whose `tag` is the DOM element's, else the first (a translated tag).\n * - STATIC for the same reason as `vocabulary`; empty (the default) keeps `vocabulary` as it is.\n */\n @proto static vocabularies: readonly E.ComponentVocabulary[] = []\n\n /**\n * What the fallback loses against the real component, see `NativeFallbackHandle`.\n * - STATIC: a fact about the family, written once beside its `build()`, the same for every instance.\n */\n @proto static degraded: readonly string[] = []\n\n /** Names this fallback reads and renders: the class's `vocabulary`, or the DOM element tag's from `vocabularies`. */\n declare vocabulary: V\n\n /** Every tag's vocabulary, for a class serving several tags, see the static. */\n declare vocabularies: readonly V[]\n\n /** What this fallback loses against the real component, see `NativeFallbackHandle`. */\n declare degraded: readonly string[]\n\n /** Element that failed. */\n readonly domElement: HTMLElement\n\n /** Where the fallback builds. */\n readonly root: E.NativeFallbackRoot\n\n /** Why the real render failed. */\n readonly error: unknown\n\n /** DOM element internals, when the element has them. */\n readonly internals: ElementInternals | undefined\n\n /** `internals` only when the DOM element is form-associated, so form calls never throw. */\n protected readonly formInternals: ElementInternals | undefined\n\n /** Undo functions for `listen()`. */\n private readonly disposers: (() => void)[] = []\n\n constructor({ domElement, root, error, internals }: NativeFallbackProps) {\n this.domElement = domElement\n this.root = root\n this.error = error\n this.internals = internals\n this.formInternals = (domElement.constructor as { formAssociated?: boolean }).formAssociated ? internals : undefined\n // Shadows the prototype's `vocabulary` with the DOM element tag's\n const { vocabularies } = this\n if (vocabularies.length) {\n this.vocabulary = vocabularies.find(({ tag }) => tag === domElement.localName) ?? vocabularies[0]\n }\n }\n\n ////////////////\n // ## Entry point\n ////////////////\n\n /**\n * Build the fallback for `domElement` into `root`, replacing its children.\n * - Call as `ButtonFallback.render({ domElement: this, root: this.shadowRoot, error, internals: this.internals })`.\n * - SIDE EFFECT: adds custom state `errored` to `internals`, when given.\n * - The component's own adopted stylesheets stay; only children are replaced.\n * - STATIC on purpose: callers never hold the instance, only the handle it returns.\n */\n static render<T extends NativeFallback>(\n this: new (props: NativeFallbackProps) => T,\n props: NativeFallbackProps\n ): E.NativeFallbackHandle {\n const fallback = new this(props)\n props.root.replaceChildren(...fallback.build())\n fallback.sync()\n props.internals?.states.add(E.ERRORED_STATE)\n return { dispose: () => fallback.dispose(), degraded: fallback.degraded }\n }\n\n /**\n * Nodes to put in `root`: the subclass's whole fallback, built from the DOM element's attributes.\n * - Called once, by `render()`, before the nodes are attached:\n * the form value and validity, which need them in the document, wait for `sync()`.\n * - An override that only builds needs no docstring.\n */\n protected abstract build(): Node[]\n\n /**\n * Remove every listener `listen()` added; the DOM stays, so a later re-render can replace it.\n * - Called through the handle `render()` returns, when the DOM element is released.\n * - An override (an observer to disconnect) calls `super.dispose()`.\n */\n dispose() {\n for (const undo of this.disposers.splice(0)) undo()\n }\n\n ////////////////\n // ## Reading the DOM element\n ////////////////\n\n /** DOM element attribute `name`, or `undefined` when absent (`getAttribute()`'s `null` stops here). */\n protected attr(name: E.AttributeNameOf<V>): string | undefined {\n return this.domElement.getAttribute(name) ?? undefined\n }\n\n /** DOM element attribute `name` as a boolean, `disabled=\"no\"` ~== false. */\n protected flag(name: E.AttributeNameOf<V>): boolean {\n return E.Converters.boolean(this.domElement.getAttribute(name), name)\n }\n\n /**\n * Fomantic class string the real element would render, e.g. `ui small primary button`.\n * - Every class-emitting vocabulary attribute is read from the DOM element: its converted value;\n * else the attribute's text.\n * - An absent one takes its vocabulary `default`, as the element's props do (`<ui-sidebar>` => `ui left sidebar`).\n */\n protected classes(extra?: string): string {\n const input: Record<string, unknown> = {}\n // the DOM element's own values, converted: a translated tag's names included\n const { valueNamed } = this.domElement as Partial<Pick<E.DOMElement, \"valueNamed\">>\n for (const spec of this.vocabulary.attributes) {\n if (valueNamed) {\n input[spec.name] = valueNamed.call(this.domElement, spec.name)\n continue\n }\n const value = this.domElement.getAttribute(spec.name) ?? NativeFallback.defaultText(spec.default)\n if (value === undefined) continue\n if (spec.kind === \"keyOnly\") input[spec.name] = E.Converters.boolean(value, spec.name)\n else if (spec.kind === \"keyOrValueAndKey\") input[spec.name] = E.Converters.keyOrValue(value, undefined)\n else input[spec.name] = value\n }\n return this.builder.build(input, { extra })\n }\n\n /** Builds `classes()`; made on first use, over the DOM element tag's `vocabulary`. */\n @lazy private get builder(): E.ClassBuilder {\n return new E.ClassBuilder(this.vocabulary)\n }\n\n /** The DOM element's form (`internals.form`, else an ancestor `<form>`), or `undefined`. */\n protected form(): HTMLFormElement | undefined {\n return this.formInternals?.form ?? this.domElement.closest(\"form\") ?? undefined\n }\n\n ////////////////\n // ## The form\n ////////////////\n\n /**\n * Report the form value and validity: a form control's subclass calls `syncForm()` with its own.\n * - Runs once the built nodes are attached (`render()`), as validity anchors on them;\n * then the subclass calls it on each change.\n * - Default: nothing (the button's fallback sets its value as it's clicked).\n */\n protected sync() {}\n\n /**\n * Give the DOM element's form `value`, and the validity of the native `control` holding it.\n * - `value`: text, several texts (one `FormData` entry each, under `name`), or `undefined` for nothing.\n * Without a `name`, nothing, as a native control.\n * - `control`: its validity is the DOM element's, anchored on it; left out: validity is left alone.\n * - `valueMissing`: the fallback's own \"value missing\", in place of the control's whole validity.\n * - Does nothing on a DOM element that isn't form-associated.\n */\n protected syncForm({ value, control, valueMissing }: FallbackFormSync) {\n const internals = this.formInternals\n if (!internals) return\n const name = this.domElement.getAttribute(\"name\")\n // `null`: `setFormValue()`'s \"submit nothing\"\n if (!name || value === undefined) internals.setFormValue(null)\n else if (typeof value === \"string\") internals.setFormValue(value)\n else {\n const data = new FormData()\n for (const each of value) data.append(name, each)\n internals.setFormValue(data)\n }\n if (!control) return\n if (valueMissing !== undefined) {\n internals.setValidity(valueMissing ? { valueMissing } : {}, control.validationMessage, control)\n } else if (control.validity.valid) internals.setValidity({})\n else internals.setValidity(control.validity, control.validationMessage, control)\n }\n\n ////////////////\n // ## Building\n ////////////////\n\n /** Element `tag` with `attributes` and `children` (strings become text nodes). */\n protected create<K extends keyof HTMLElementTagNameMap>(\n tag: K,\n attributes: E.NativeFallbackAttributes = {},\n ...children: (Node | string)[]\n ): HTMLElementTagNameMap[K] {\n const element = this.domElement.ownerDocument.createElement(tag)\n for (const [name, value] of Object.entries(attributes)) {\n if (value != null && value !== false) element.setAttribute(name, value === true ? \"\" : value)\n }\n element.append(...children)\n return element\n }\n\n /** A `<slot>` for light-DOM content, with `fallback` text shown while nothing is slotted. */\n protected slot(fallback?: string): HTMLSlotElement {\n return this.create(\"slot\", {}, ...(fallback ? [fallback] : []))\n }\n\n /**\n * Give `target` its `part` and the DOM element's accessibility attributes.\n * - `name` is one of the vocabulary's parts, typed.\n * A vocabulary TypeScript can't see (a class serving several tags) gets a dev warning instead.\n * - `extra` parts are added unchecked.\n * - Copies every `aria-*` from the DOM element.\n * NOTE: idref ones (`aria-labelledby`) can't cross the shadow boundary, so they dangle.\n * - A boolean `loading` becomes `aria-busy`;\n * a vocabulary where it isn't boolean (`<ui-image loading=\"lazy\">`, the native `<img loading>`) is left alone.\n */\n protected decorate<T extends Element>(target: T, name: PartNameOf<V>, ...extra: string[]): T {\n if (!this.vocabulary.parts.some((part) => part.name === name)) {\n E.Warnings.devWarn(`<${this.vocabulary.tag}> fallback`, `\"${name}\" is not a part in its vocabulary`)\n }\n target.setAttribute(\"part\", [name, ...extra].join(\" \"))\n for (const { name: attribute, value } of this.domElement.attributes) {\n if (attribute.startsWith(\"aria-\")) target.setAttribute(attribute, value)\n }\n const loading = this.vocabulary.attributes.find((attribute) => attribute.name === LOADING)\n if (loading?.kind === \"keyOnly\" && E.Converters.boolean(this.domElement.getAttribute(LOADING), LOADING)) {\n target.setAttribute(\"aria-busy\", \"true\")\n }\n return target\n }\n\n /**\n * Name `control` by the DOM element's `placeholder`, when nothing names it yet: no `aria-label` of its own,\n * nor one `decorate()` copied from the DOM element.\n */\n protected nameFromPlaceholder(control: Element) {\n const placeholder = this.domElement.getAttribute(PLACEHOLDER)\n if (!control.hasAttribute(\"aria-label\") && placeholder) control.setAttribute(\"aria-label\", placeholder)\n }\n\n /**\n * Send the vocabulary's event `name` from the DOM element, with `detail`: as the component's own `send()` does.\n * - It bubbles, and crosses shadow roots.\n * - It's cancelable when the vocabulary says so; then it returns false if a listener cancelled it.\n * - On a translated tag, it goes out under that tag's name for it:\n * `<es-selector>`'s `ui-changed` is `es-cambiado`.\n * - A host that isn't one of our DOM elements (a test's stub) sends the English name.\n */\n protected send(name: E.EventName<V>, detail: object): boolean {\n const spec = this.vocabulary.events.find((event) => event.name === name)\n const definition = (this.domElement.constructor as Partial<E.DOMElementClass>).tagSetup?.elementDefinition\n const event = new CustomEvent(definition?.event(name) ?? name, {\n bubbles: true,\n composed: true,\n cancelable: !!spec?.cancelable,\n detail\n })\n return this.domElement.dispatchEvent(event)\n }\n\n /** `addEventListener`, undone by `dispose()`. */\n protected listen<T extends Event = Event>(target: EventTarget, type: string, handler: (event: T) => void) {\n target.addEventListener(type, handler as EventListener)\n this.disposers.push(() => target.removeEventListener(type, handler as EventListener))\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /**\n * A vocabulary `default` as attribute text: `true` => bare (`\"\"`), `false` / absent => `undefined`.\n * - STATIC: pure, needs no instance.\n */\n private static defaultText(value: string | number | boolean | null | undefined): string | undefined {\n if (value == null || value === false) return undefined\n return value === true ? \"\" : String(value)\n }\n}\n\n/** What a fallback is built from: `new NativeFallback(props)`, `NativeFallback.render(props)`. */\nexport type NativeFallbackProps = {\n /** Element that failed. */\n domElement: HTMLElement\n /** Where the fallback builds: the DOM element's shadow root, or the DOM element itself. */\n root: E.NativeFallbackRoot\n /** Why the real render failed. */\n error?: unknown\n /** DOM element internals, when the element has them: `errored` state, roles, form calls. */\n internals?: ElementInternals\n}\n\n/** Part names of vocabulary `V`, so `decorate()` can't misspell one. */\nexport type PartNameOf<V extends { parts: readonly { name: string }[] }> = V[\"parts\"][number][\"name\"]\n\n/** What a form control's fallback hands `syncForm()`: its value, and the native control whose validity counts. */\nexport type FallbackFormSync = {\n /** what the form submits: text, several texts (one entry each, under `name`), or `undefined` for nothing */\n value: string | readonly string[] | undefined\n /** the native control whose validity the DOM element reports, anchored on it; left out: none reported */\n control?: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement\n /** the fallback's own \"value missing\", where it works that out: the control's other checks don't count */\n valueMissing?: boolean\n}\n\n/** The busy-flag attribute name. */\nconst LOADING = \"loading\"\n\n/** The attribute that names a control with no other name (`nameFromPlaceholder()`). */\nconst PLACEHOLDER = \"placeholder\"\n","import { E } from \"spell/ui/core\"\n\n/****************\n * ### `StickyWatch`\n * Watches ONE `position: sticky` box and reports whether CSS has stuck it -- no scroll listener, no JS\n * positioning: an `IntersectionObserver` on the box and two 1px sentinels (where its edges would be, unstuck),\n * against the nearest scroll container (else the document's viewport).\n * - Library-neutral: plain DOM, no Solid; of the core (`E`), it uses only `E.flatParentFor()` and the folder's types.\n * - Shared by `<ui-sticky>` (its whole box) and `<ui-section sticky>` (its title bar). Families may not render each\n * other's elements, so the behaviour lives here, not in either.\n * - Stuck: the top sentinel has passed the `offset` line while the box hasn't been pushed above it (else\n * `isBound`: the end of its containing block pushes it out); with `pushing`, also: the bottom sentinel is below\n * the bottom line.\n * - Reports through the callback after EVERY measurement (`edge`, `isBound`, `previous`), so the caller can update\n * states and fire events on a change (`edge !== previous`).\n * - SIDE EFFECT: while stuck, it RESERVES the box's room on the scroll container (`<html>` for the page): inline\n * `scroll-padding-top` (`-bottom` at the bottom edge) is the furthest edge of every box stuck there, across every\n * watch on the page. So Page Down / Space, focus and `scrollIntoView()` keep content out from under it.\n * Chromium and Firefox honour it for paging; Safari only for the rest.\n * - a box taller than half the visible area, or narrower than half its width (`STICKY_MAX_RESERVE`), is a sticky\n * COLUMN (a sidebar), not a header: it reserves nothing, or paging would barely move\n * - the inline property is the watches' while any is stuck, removed once none is: a page's own\n * `scroll-padding` belongs in a stylesheet\n ****************/\nexport class StickyWatch {\n /** Edge stuck to now (last report); `undefined` when not stuck. */\n stuckTo: E.StickyWatchEdge | undefined\n\n /** Called after every measurement, and by `reset()`. */\n private readonly onReport: (state: E.StickyWatchState) => void\n\n /** Box being watched, for the room it reserves. */\n private box?: Element\n\n /** Element whose scroll padding this reserves room on: the scroll container, or `<html>`. */\n private scrollRoot?: HTMLElement\n\n constructor(onReport: (state: E.StickyWatchState) => void) {\n this.onReport = onReport\n }\n\n ////////////////\n // ## Observing\n ////////////////\n\n /**\n * Watch `targets` against the scroll container, with `options`; returns the undo, which stops watching but\n * keeps the state (call `reset()` to unstick).\n * - Call again (after the undo) whenever the offsets change: they are the observer's root margins.\n */\n observe(targets: E.StickyWatchTargets, options: E.StickyWatchOptions): () => void {\n const { domElement, top, bottom, box } = targets\n this.box = box\n const scroller = StickyWatch.scrollContainer(domElement)\n this.scrollRoot = (scroller as HTMLElement | undefined) ?? domElement.ownerDocument.documentElement\n const observer = new IntersectionObserver(() => this.measure(targets, scroller, options), {\n root: scroller ?? domElement.ownerDocument,\n rootMargin: `${-options.offset}px 0px ${-(options.bottomOffset ?? 0)}px 0px`,\n threshold: [0, 1]\n })\n for (const target of [top, bottom, box]) if (target) observer.observe(target)\n // a stuck box that changes size (its text wraps) changes the room it reserves\n const resizes = new ResizeObserver(() => {\n if (this.stuckTo && this.scrollRoot) StickyWatch.reserve(this.scrollRoot)\n })\n resizes.observe(box)\n return () => {\n observer.disconnect()\n resizes.disconnect()\n }\n }\n\n /** Unstuck and unbound, e.g. once disconnected: leaves the reservation and reports. */\n reset() {\n this.report(UNSTUCK)\n }\n\n /** Work out the edge and `isBound` from where the sentinels and the box are now. */\n private measure(targets: E.StickyWatchTargets, scroller: Element | undefined, options: E.StickyWatchOptions) {\n const { domElement, top, bottom, box } = targets\n const area = StickyWatch.area(scroller, domElement.ownerDocument)\n const topLine = area.top + options.offset\n const bottomLine = area.bottom - (options.bottomOffset ?? 0)\n const boxRect = box.getBoundingClientRect()\n let edge: E.StickyWatchEdge | undefined\n let isBound = false\n if (top.getBoundingClientRect().top < topLine - E.STICKY_SLACK) {\n if (boxRect.top < topLine - E.STICKY_SLACK) isBound = true\n else edge = \"top\"\n } else if (options.pushing && bottom && bottom.getBoundingClientRect().top > bottomLine + E.STICKY_SLACK) {\n if (boxRect.bottom > bottomLine + E.STICKY_SLACK) isBound = true\n else edge = \"bottom\"\n }\n this.report({ edge, isBound })\n if (edge && this.scrollRoot) StickyWatch.reserve(this.scrollRoot)\n }\n\n /** Record `edge`, join or leave the stuck watches on a change, then tell the caller. */\n private report({ edge, isBound }: Omit<E.StickyWatchState, \"previous\">) {\n const previous = this.stuckTo\n if (edge !== previous) {\n this.stuckTo = edge\n this.trackStuck()\n }\n this.onReport({ edge, isBound, previous })\n }\n\n ////////////////\n // ## Reserving room\n ////////////////\n\n /** Join or leave (per `stuckTo`) the stuck watches of `scrollRoot`, and re-reserve their room. */\n private trackStuck() {\n const root = this.scrollRoot\n if (!root) return\n let stuckHere = StickyWatch.stuckIn.get(root)\n if (this.stuckTo) {\n if (!stuckHere) StickyWatch.stuckIn.set(root, (stuckHere = new Set()))\n stuckHere.add(this)\n } else if (stuckHere) {\n stuckHere.delete(this)\n if (!stuckHere.size) StickyWatch.stuckIn.delete(root)\n }\n StickyWatch.reserve(root)\n }\n\n /**\n * Set `root`'s `scroll-padding-top` / `-bottom` to the room its stuck boxes take at each edge; remove them\n * when there are none.\n * - Static: the room is shared by EVERY watch stuck in `root` (`stuckIn`), not one watch's.\n * - SIDE EFFECT: writes `root`'s inline style\n */\n private static reserve(root: HTMLElement) {\n const document = root.ownerDocument\n const area = StickyWatch.area(root === document.documentElement ? undefined : root, document)\n const tallest = (area.bottom - area.top) * E.STICKY_MAX_RESERVE\n const narrowest = root.clientWidth * E.STICKY_MAX_RESERVE\n let top = 0\n let bottom = 0\n for (const watch of StickyWatch.stuckIn.get(root) ?? []) {\n const rect = watch.box?.getBoundingClientRect()\n if (!rect || rect.height > tallest || rect.width < narrowest) continue\n if (watch.stuckTo === \"top\") top = Math.max(top, rect.bottom - area.top)\n else if (watch.stuckTo === \"bottom\") bottom = Math.max(bottom, area.bottom - rect.top)\n }\n StickyWatch.setPadding(root, \"scroll-padding-top\", top)\n StickyWatch.setPadding(root, \"scroll-padding-bottom\", bottom)\n }\n\n /**\n * Write `property` (whole pixels) on `root`'s inline style, or remove it at 0; untouched when unchanged.\n * - Static: a pure helper of `reserve()`, no watch state.\n */\n private static setPadding(root: HTMLElement, property: string, pixels: number) {\n const value = pixels > 0 ? `${Math.ceil(pixels)}px` : \"\"\n if (root.style.getPropertyValue(property) === value) return\n if (value) root.style.setProperty(property, value)\n else root.style.removeProperty(property)\n }\n\n ////////////////\n // ## Geometry\n ////////////////\n\n /**\n * The visible area of `scroller` (its padding box), else of the document's viewport.\n * - Static: pure geometry, no watch state.\n */\n static area(scroller: Element | undefined, document: Document): { top: number; bottom: number } {\n if (!scroller) return { top: 0, bottom: document.documentElement.clientHeight }\n const top = scroller.getBoundingClientRect().top + scroller.clientTop\n return { top, bottom: top + scroller.clientHeight }\n }\n\n /**\n * Nearest ancestor that scrolls (clips) its content, up the FLAT tree: a sticky box sticks in it. `undefined`\n * for the document's own scrolling.\n * - Flat tree: a slotted element's next ancestor is its slot, so a box slotted into a component's scrolling\n * shadow box (a `scrolling` segment, a section's capped content) finds that box.\n * - Static: pure geometry, no watch state.\n */\n static scrollContainer(element: Element): Element | undefined {\n const document = element.ownerDocument\n let current: Element | undefined = element\n while (current) {\n const parent = E.flatParentFor(current)\n if (!parent || parent === document.body || parent === document.documentElement) return undefined\n if (E.STICKY_SCROLLING.has(getComputedStyle(parent).overflowY)) return parent\n current = parent\n }\n return undefined\n }\n\n ////////////////\n // ## Page-wide registry\n ////////////////\n\n /**\n * Stuck watches, by the element they reserve room on.\n * - Static: page-wide, so boxes stuck in the same scroll container share its padding. Entries leave as their\n * watches unstick, so there's no `reset()`.\n */\n private static readonly stuckIn = new Map<HTMLElement, Set<StickyWatch>>()\n}\n\n/** What `reset()` reports: not stuck, not bound. */\nconst UNSTUCK = { edge: undefined, isBound: false } as const\n","/**\n * Shared types and constants for `spell/ui/icons`: the icon PACK format (`pack.js`) and the names around it.\n * - The BOTTOM of `spell/ui/icons`' import graph, and runtime-light: no imports, so node tooling\n * (`src/tools/IconPackBuilder.ts`, `scripts/gen-icons.ts`) can import it by relative path, and the runtime service\n * (`UI.icons`) by `spell/ui/icons`.\n * - See `notes/icons.md` for the format and how names resolve.\n */\n\n////////////////\n// ## Pack index\n////////////////\n\n/**\n * A pack's index: the `export default` of its `pack.js`, generated by `IconPackBuilder` and safe to hand-edit.\n * - Every SVG path is RELATIVE: `<key>.svg` resolves against the pack's base, which defaults to the folder\n * `pack.js` was loaded from.\n */\nexport type IconPackIndex = {\n /** unique id, e.g. `fa7-free`; also usable as a name prefix (`fa7-free:bell`) */\n id: string\n /** human name, for the docs icon browser */\n label?: string\n /** licence / attribution line for the icons */\n license?: string\n /** applied to every entry that doesn't set its own */\n defaults?: IconPackDefaults\n /**\n * One entry per icon, keyed by its SVG path relative to the base, without `.svg`: `solid/address-book`.\n * - The icon's name is the key's file name, dashes -> spaces (`address book`), plus its `alias`es.\n * - NOTE: order matters when two entries claim the same name -- see `IconName`.\n */\n icons: Record<string, IconPackEntry>\n}\n\n/** Values every entry of a pack gets unless it sets its own. */\nexport type IconPackDefaults = {\n /** viewBox height */\n height?: number\n /** viewBox width */\n width?: number\n}\n\n/** One icon in a pack index. */\nexport type IconPackEntry = {\n /** viewBox width; falls back to `defaults.width` */\n width?: number\n /** viewBox height; falls back to `defaults.height` */\n height?: number\n /** more names for this icon (normalized like any name) -- how a hand-edit renames an icon */\n alias?: string | string[]\n}\n\n////////////////\n// ## Built-in packs\n////////////////\n\n/**\n * Packs `spell-ui` ships, served from `icon-packs/<id>/` next to the chunk that holds `BuiltInPacks`.\n * - `fa7-free`: Font Awesome 7 Free solid + regular (`… outline`), plus a few extras; the DEFAULT pack\n * - `fa7-brands`: every Font Awesome 7 Free brand icon\n * - `fomantic`: Fomantic-UI's icon names, pointing at the two FA folders\n */\nexport const BuiltInIconPacks = [\"fa7-free\", \"fa7-brands\", \"fomantic\"] as const\n\n/** Id of a pack `spell-ui` ships (`BuiltInIconPacks`). */\nexport type BuiltInIconPack = (typeof BuiltInIconPacks)[number]\n\n/** Pack the runtime adds by itself, unless a page replaces it (`only`). */\nexport const DEFAULT_ICON_PACK: BuiltInIconPack = \"fa7-free\"\n\n/** File name of every pack's index. */\nexport const ICON_PACK_INDEX = \"pack.js\"\n\n/** Separates a pack prefix from the icon name: `lucide:bell`. */\nexport const ICON_PREFIX_SEPARATOR = \":\"\n\n////////////////\n// ## Search words\n////////////////\n\n/**\n * `src/icons/data/search.json`: what Font Awesome says about its icons beyond their names,\n * for `<ui-icon-picker>` (`IconCatalog`) and the docs' icon browser.\n * - GENERATED by `yarn gen:icons` (`scripts/gen-icons.ts`) from the Font Awesome release the packs are built from.\n * - Everything is keyed by Font Awesome's FILE name (`address-book`), not by an icon name:\n * an outline or Fomantic name reaches it through its glyph's file.\n * - Loaded by a picker as it first opens: ~110 KB, ONE file, so its categories cost no download of their own.\n */\nexport type IconSearchFile = {\n /**\n * Search terms by file name (`address-book` => `[\"contact\", \"directory\" ...]`), up to 5 each:\n * every solid icon's, and every icon a category lists.\n */\n readonly terms: Readonly<Record<string, readonly string[]>>\n /** Font Awesome's categories (`metadata/categories.yml`), in its order: A-Z by id; only those with free icons. */\n readonly categories: readonly IconSearchFileCategory[]\n}\n\n/**\n * One Font Awesome category in `search.json`.\n * - Its icons are written SHORT, to keep the file small (about 15 KB for ~3,000 entries, not 37 KB of names):\n * each is a place in `terms`' key list (`Object.keys(terms)`, every icon a category lists is there),\n * sorted, and written as the GAP from the one before: `[3, 40, 2]` means places 3, 43 and 45.\n * - `gen-icons.ts` writes them so; `IconCatalog.searchWords()` turns them back into file names.\n */\nexport type IconSearchFileCategory = {\n /** Font Awesome's id: `charts-diagrams` */\n readonly id: string\n /** Font Awesome's label, in English: `Charts + Diagrams` */\n readonly label: string\n /** its icons, as places in `terms`' key list, each written as the gap from the one before (above) */\n readonly icons: readonly number[]\n}\n","// `.ts` extension: node tooling loads this file directly (`src/tools/IconPackBuilder.ts`)\nimport { ICON_PREFIX_SEPARATOR } from \"./icons.types.ts\"\n\n/****************\n * ### `IconName`\n * Icon names: ONE name per icon, lowercase words separated by single spaces (`address book outline`).\n * - Plain functions of strings, no DOM: shared by the runtime (`UI.icons`), the node pack builder (which imports\n * this file by relative path), `spell icon`, `<ui-icon-picker>` and the docs' icon browser.\n * So it imports nothing but `icons.types`.\n * - The ONE icon search (`search()`), so the same words find the same icons everywhere.\n * - STATIC and instance-free on purpose: a name is a string, with nothing to hold.\n * - Within one pack, who gets a name (`IconName.claim()`):\n * - an explicit `alias` beats a name derived from a file name\n * - otherwise the FIRST entry to claim it keeps it\n * - Why aliases win: a hand-edit (or the Fomantic pack) must be able to take a word from a file name, e.g.\n * alias `shield` on `solid/shield-halved` over the file `solid/shield`.\n ****************/\nexport class IconName {\n /**\n * `name` as the one canonical spelling: lowercase, dashes / underscores -> spaces, whitespace collapsed.\n * - So names pasted from Font Awesome's site (`address-book`) work.\n */\n static normalize(name: string): string {\n return name.toLowerCase().replace(SEPARATORS, \" \").trim()\n }\n\n /** Name an index key gives its icon: its file name, normalized (`solid/address-book` -> `address book`). */\n static fromKey(key: string): string {\n return IconName.normalize(IconName.fileOf(key))\n }\n\n /**\n * An index key's file name, Font Awesome's spelling: `solid/address-book` -> `address-book`.\n * - The key of its search terms (`IconSearchFile.terms`).\n */\n static fileOf(key: string): string {\n return key.slice(key.lastIndexOf(\"/\") + 1)\n }\n\n /** The one name an icon is shown by: its file's own (`fromKey()`) when it has it, else its first of `names`. */\n static labelOf(key: string, names: readonly string[]): string {\n const own = IconName.fromKey(key)\n return names.includes(own) ? own : (names[0] ?? own)\n }\n\n /** An entry's `alias` field as a list of normalized names. */\n static aliases(alias: string | string[] | undefined): string[] {\n if (alias === undefined) return []\n return (Array.isArray(alias) ? alias : [alias]).map(IconName.normalize).filter(Boolean)\n }\n\n /**\n * `prefix:name` split, both normalized.\n * - `prefix`: the pack id or prefix before the separator (`lucide`); `undefined` without a separator\n * - `name`: the icon's name, normalized (`bell`)\n * - Only the FIRST separator splits, so a name itself never contains one.\n */\n static split(name: string): { prefix?: string; name: string } {\n const at = name.indexOf(ICON_PREFIX_SEPARATOR)\n if (at < 0) return { name: IconName.normalize(name) }\n return { prefix: name.slice(0, at).trim().toLowerCase(), name: IconName.normalize(name.slice(at + 1)) }\n }\n\n /**\n * Name -> index key for every name the entries give, by the rules above.\n * - `entries` in index order.\n */\n static claim(entries: Iterable<[key: string, alias: string | string[] | undefined]>): Map<string, string> {\n const byAlias = new Map<string, string>()\n const byFile = new Map<string, string>()\n for (const [key, alias] of entries) {\n for (const name of IconName.aliases(alias)) if (!byAlias.has(name)) byAlias.set(name, key)\n const derived = IconName.fromKey(key)\n if (derived && !byFile.has(derived)) byFile.set(derived, key)\n }\n for (const [name, key] of byAlias) byFile.set(name, key)\n return byFile\n }\n\n ////////////////\n // ## Search\n ////////////////\n\n /**\n * The items of `items` that `query` finds, best first; all of them, as they are, for an empty query.\n * - The WHOLE query, read as an icon name (`normalize()`): Font Awesome's `arrow-up` ~== `arrow up`.\n * - Best first (`rankOf()`): a name that IS it, then names starting with it, then names holding it,\n * then a search term holding it (`bell` finds `brain` by its term `cerebellum`).\n * - Stable: within a rank, `items`' own order (A-Z when they are).\n * - `names(item)`: every name it goes by, aliases too; `terms(item)`: its search terms (Font Awesome's)\n */\n static search<Item>(items: readonly Item[], query: string, { names, terms }: IconSearchKeys<Item>): readonly Item[] {\n const wanted = IconName.normalize(query)\n if (!wanted) return items\n const ranked: { item: Item; rank: number }[] = []\n for (const item of items) {\n const rank = IconName.rankOf(names(item), terms(item), wanted)\n if (rank < NO_MATCH) ranked.push({ item, rank })\n }\n // `sort()` is stable\n return ranked.sort((a, b) => a.rank - b.rank).map((entry) => entry.item)\n }\n\n /** How well an icon with `names` and `terms` matches `wanted` (normalized): 0 best ... `NO_MATCH` none. */\n private static rankOf(names: readonly string[], terms: readonly string[], wanted: string): number {\n let rank = NO_MATCH\n for (const name of names) {\n if (name === wanted) return 0\n if (name.startsWith(wanted)) rank = Math.min(rank, 1)\n else if (name.includes(wanted)) rank = Math.min(rank, 2)\n }\n if (rank < NO_MATCH) return rank\n return terms.some((term) => IconName.normalize(term).includes(wanted)) ? 3 : NO_MATCH\n }\n}\n\n/** What `IconName.search()` reads of each item. */\nexport type IconSearchKeys<Item> = {\n /** every name it goes by, aliases too, normalized */\n names: (item: Item) => readonly string[]\n /** its search terms, as written (Font Awesome's) */\n terms: (item: Item) => readonly string[]\n}\n\n/** `rankOf()`'s \"doesn't match\". */\nconst NO_MATCH = 4\n\n/** Runs of dashes, underscores and whitespace: each becomes one space. */\nconst SEPARATORS = /[\\s_-]+/g\n","import { BuiltInIconPacks, ICON_PACK_INDEX, type BuiltInIconPack } from \"./icons.types\"\n\n/****************\n * ### `BuiltInPacks`\n * Where the packs `spell-ui` ships live: `icon-packs/<id>/pack.js`, next to the module that holds THIS class.\n * - Dev / tests: this file is `src/icons/BuiltInPacks.ts`, so `src/icons/icon-packs/<id>/`.\n * - Library build: bundled into `dist/core.js`, so `dist/icon-packs/<id>/` -- where `emitIconPacks()`\n * (`vite.config.ts`) copies them. The docs site: `site/_assets/icon-packs/<id>/` (a symlink, `yarn site:bundle`).\n * - A consumer that bundles `spell-ui` moves this code away from `node_modules/spell-ui/dist/icon-packs/`:\n * copy that folder next to the app's chunks, or point a pack elsewhere with `base` (`notes/icons.md`, \"Shipping\n * icons\").\n * - STATIC and instance-free on purpose: the packs sit in one place per page. No DOM: `spell icon`'s search\n * (Spell UI's `src/cli/`) uses it too.\n ****************/\nexport class BuiltInPacks {\n /**\n * Base the pack folders resolve against; `import.meta.url` unless overridden (tests, unusual deployments).\n * - Static: one location per page; a `<ui-root assets>` folder passes its own `base` to `url()` instead.\n * - NOTE: NEVER passed to `new URL()` as a literal `import.meta.url`: Vite would turn a template URL next to\n * it into a glob and bundle every pack.\n */\n static base = import.meta.url\n\n /** Is `source` the id of a pack we ship (`fa7-brands`), rather than a URL? */\n static has(source: string): source is BuiltInIconPack {\n return (BuiltInIconPacks as readonly string[]).includes(source)\n }\n\n /** Absolute URL of built-in pack `id`'s index, under `base` (a `<ui-root assets>` folder) or `BuiltInPacks.base`. */\n static url(id: BuiltInIconPack, base: string = BuiltInPacks.base): string {\n return new URL(`icon-packs/${id}/${ICON_PACK_INDEX}`, base).href\n }\n}\n","/*\n * The generic content parts, plus the standalone page / content header:\n * - the parts: `<ui-content>`, `<ui-header>`, `<ui-description>`, `<ui-meta>`, `<ui-extra>`, `<ui-actions>`,\n * `<ui-title>`, `<ui-summary>`, `<ui-date>`, `<ui-author>`, `<ui-avatar>`, `<ui-detail>`, `<ui-value>`\n * - a port of Fomantic's `header.less` + `header.variables`,\n * and of the PART rules in the owners' definitions (card, item, feed, comment, modal,\n * message, list, menu, statistic, step, accordion, popup, toast, search, label)\n * - The owners' own boxes land later, in their own folders.\n * - ONE sheet, adopted by every part's component after the foundation.\n * - Shadow markup contract: `<div class=\"<noun> [keyOnly ...]\" part=\"<noun>\"><slot></slot></div>`, except\n * - `<ui-header>` STANDALONE: `<div class=\"ui [size] [color] [keyOnly ...] header\">`,\n * or `<h1>` ... `<h6>` with `level` (a page header)\n * - `<ui-header>` OWNED (inside a card, modal, another header ...): `<div class=\"header\">`, never `ui` --\n * Fomantic's `.ui.card > .content > .header` is a plain `.header`\n * - `href` renders `<a>` (header, author, title, detail)\n * - `<ui-date datetime>` renders `<time>`\n * - `<ui-avatar src>` renders `<span class=\"avatar\"><img alt=\"\"></span>`\n * - `<ui-detail>` / `<ui-date>` / `<ui-author>` are `<span>`s,\n * or `<a class=\"detail\" href>` / `<a class=\"author\" href>` for `<ui-detail link>` / `<ui-author link>`\n * - a `<ui-label>` inside a `<ui-statistic>` is that statistic's `.label` part:\n * it adopts this sheet after `UILabel.css` and renders `<div class=\"label\" part=\"label\">`, no `ui`\n * - DOM elements are `display: contents`: the root IS the part,\n * so Fomantic's flex / table / float layouts of the owner apply to it directly.\n * Owners never style part DOM elements through `::slotted()` boxes -- they set tokens.\n *\n * ## Owner context\n * Parts style themselves by OWNER:\n * `PartComponent` finds the nearest owner (`OwnerContext.find()`, the owners' `ownsParts`)\n * and sets `:state(in-<owner>)` (`OwnerContext.stateName()`).\n * Every context rule has two selectors sharing one body:\n *\n * :host(:state(in-card)) > .header, <- an element: the DOM element carries the state\n * .in-card.header { ... } <- static markup: the part carries an `in-card` CLASS\n *\n * - Elements set the STATE only, never the class,\n * so the static selectors can never match inside a shadow root (where every root would be a `:first-child`):\n * they cost a selector each, nothing at match time.\n * - Static markup (examples, SSR without scripts) writes the owner in plain class grammar,\n * and adds the class to each part: `<div class=\"ui card\"><div class=\"content in-card\"><div class=\"header in-card\">`.\n * - Structural pseudo-classes read the DOM element's position (`:host(:state(in-card):not(:first-child))`),\n * so Fomantic's `.header + .description` becomes \"a description that isn't first\".\n * - Parts SHOULD climb with a `barrier` at any non-part component, so a header inside a segment inside a card\n * stays a standalone header, as Fomantic's child combinators have it.\n * - Fomantic class => part:\n * - comment `.metadata` => `meta`, comment `.text` => `description`\n * - feed `.user` => `author`\n * - search `.price` => `value`\n * - statistic `.label` => `<ui-label>`\n * - modal / toast / popup `.content` => `content`\n *\n * ## Owner tokens\n * Where Fomantic's part rule depends on an owner VARIATION or STATE,\n * the owner sets an inherited token on its root, and the part style-queries it (`@container style(...)`).\n * - Owners MUST declare their tokens on EVERY root, default value included,\n * so a nested owner never inherits an outer owner's layout.\n *\n * Three kinds (`notes/theming.md` \"Owner tokens\"):\n * - SWITCHES (the `--_ui-*` rows but the two `-size` aliases): private, the owner's attributes decide them;\n * never a theming surface.\n * - LOOK tokens the owner VARIES (`--ui-modal-header-size` ...): public.\n * - The owner declares the private alias on every root, and its variations write it:\n * `--_ui-modal-header-size: var(--ui-modal-header-size, 1.42857em)`.\n * - Parts read the alias ONLY, `var(--_ui-x, <default>)`: the default covers a part outside its owner.\n * - So the page sets these on the owner, above it, or `::part()` of the owner's box, NOT on the part.\n * - LOOK tokens nobody varies (`--ui-card-header-font-size` ...): public, declared NOWHERE,\n * read here as `var(--ui-x, <default>)`, so they're set on the owner, above it, or on the part itself.\n *\n * | Token | Values | Set by | Parts it changes |\n * | ---------------------------- | -------------------------------- | ---------------------------------- | ------------------------------------------------- |\n * | `--ui-inverted` | `0` / `1` | any owner with `inverted`, PLUS | card / item / list links, statistic value, basic |\n * | | | `color-scheme: dark` | modal header -- everything else re-resolves its |\n * | | | | `light-dark()` tokens from `color-scheme` alone |\n * | `--_ui-card-layout` | `vertical` / `horizontal` | card(s) `horizontal` | content (no top rule, `flex-basis`), extra |\n * | `--_ui-card-leading` | `0` / `1` | card rendering a shorthand image / | first slotted content (keeps its top rule) |\n * | | | content block before its slot | |\n * | `--_ui-item-layout` | `row` / `stacked` | items: `stacked` below tablet | content after an image |\n * | | | unless `unstackable` | |\n * | `--_ui-item-state` | `normal` / `hover` | `link` items, on item hover | header colour |\n * | `--_ui-comments-minimal` | `0` / `1` | comments `minimal` | actions (hidden until the content is hovered or |\n * | | | | holds focus) |\n * | `--_ui-modal-basic` | `0` / `1` | modal `basic` | header, content, actions (transparent, no rules) |\n * | `--_ui-modal-header-size` | a length | modal sizes | header font size |\n * | `--_ui-message-layout` | `block` / `icon` | message `icon` | content (flex item beside the icon) |\n * | `--_ui-event-label` | `0` / `1` | feed event showing a label (a | content (the margin beside the label) |\n * | | | slotted one, or a shorthand) | |\n * | `--_ui-list-layout` | `vertical` / `horizontal` | list `horizontal` | content after an icon / image |\n * | `--_ui-item-media` | `0` / `1` / `image` | a list / menu / Items view item | content: a table cell beside it in a list |\n * | | | with an icon or image box | (`image`: an inline block beside the `<img>`), |\n * | | | (`UIItem.css`; `image`: `UIList.css`) | padded beside it in the Items view |\n * | `--_ui-list-align` | `top` / `middle` / `bottom` | list `vertical-align`, horizontal | content's vertical alignment |\n * | `--_ui-statistic-layout` | `vertical` / `horizontal` | statistic(s) `horizontal` | value, label |\n * | `--_ui-statistic-value-size` | a length | statistic sizes | value font size (text values: `-text-value-size`) |\n * | `--_ui-step-state` | `normal` / `active` / `disabled` | step states | title, description colours |\n * | `--_ui-step-layout` | `row` / `stacked` | steps, when stacked | content alignment |\n * | `--_ui-accordion-style` | `plain` / `styled` | accordion `styled` | title, content |\n * | `--_ui-accordion-open` | `0` / `1` | an open panel | title colour (styled) |\n * | `--_ui-search-result` | `normal` / `active` | the highlighted result | title, description colours |\n * | `--_ui-header-layout` | `text` / `icon` | header (this sheet) | content, sub header inside a header |\n * | `--_ui-label-layout` | `text` / `image` | label (`UILabel.css`) | detail (a tab on an image label) |\n * | `--_ui-part` | the part noun | every part root (this sheet) | a part inside another part, e.g. a date in a |\n * | | | | feed summary |\n *\n * - The standalone header's own tokens (`--ui-header-*`) are public and NEVER declared:\n * its root declares the private aliases, and rules read those, as in every component sheet:\n * `--_ui-header-color: var(--ui-header-color, var(--ui-text-dark))`.\n * - Its sub header (`in-header`) reads the owner's `--_ui-header-sub-*` aliases (`-color`, `-font-size`, `-margin`),\n * else the public tokens: an OWNED header (a card's) declares no aliases.\n * - NOTE: left out, on purpose:\n * - rules for other components' markup inside parts (card star / like icons, `.ui.card .dimmer`,\n * modal `.image` columns, feed / summary images, list sub-lists, statistic images): those owners port them\n * - sibling rules on non-part content (`.ui.header + p`, `.ui.message .header + p`), which a part can't see\n * - `centered` messages and toasts, vertical / image toasts, circular steps, accordion menus,\n * search category names: their owners' layouts decide them\n * - the header's label coupling (`.ui.header .ui.label`) and dividing-header sub header padding\n * - sub heading SIZES (`ui large sub header`): a sub heading takes the header ladder relative to its own\n * `0.857em`\n */\n\n@layer ui.components.parts.types, ui.components.parts.content, ui.components.parts.variations, ui.components.parts.states;\n\n/* Breakpoints (`@custom-media`), inlined at build time. */\n@import \"../../styles/media.css\";\n\n/*******************************\n Parts\n*******************************/\n\n@layer ui.components.parts.types {\n /* DOM elements: no box of their own; the root is the part. */\n :host {\n display: contents;\n }\n\n /* Every part root names itself, for parts nested in parts (a date in a summary). */\n .content {\n --_ui-part: content;\n }\n .header {\n --_ui-part: header;\n }\n .description {\n --_ui-part: description;\n }\n .meta {\n --_ui-part: meta;\n }\n .extra {\n --_ui-part: extra;\n }\n .actions {\n --_ui-part: actions;\n }\n .title {\n --_ui-part: title;\n }\n .summary {\n --_ui-part: summary;\n }\n .date {\n --_ui-part: date;\n }\n .author {\n --_ui-part: author;\n }\n .avatar {\n --_ui-part: avatar;\n }\n .detail {\n --_ui-part: detail;\n }\n .value {\n --_ui-part: value;\n }\n\n /*\n * A part's avatar image, whether rendered from `src` or slotted.\n * - NOT an image group: Fomantic's `ui avatar images` (UIImage.css) is a page-level `.avatar` too,\n * and its `<img>`s size themselves\n */\n .avatar:not(.images) img,\n .avatar:not(.images) ::slotted(img) {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n\n /*******************************\n Header\n *******************************/\n\n /* Tokens: one per `header.variables` entry that still matters, each the private alias of its public token. */\n .ui.header {\n --_ui-header-color: var(--ui-header-color, var(--ui-text-dark));\n --_ui-header-font-weight: var(--ui-header-font-weight, var(--ui-font-weight-bold));\n --_ui-header-line-height: var(--ui-header-line-height, var(--ui-line-height-heading));\n --_ui-header-offset: var(--ui-header-offset, calc((var(--ui-line-height-heading) - 1) * 0.5em));\n --_ui-header-margin-top: var(--ui-header-margin-top, calc(var(--ui-font-size) * 2));\n --_ui-header-margin-bottom: var(--ui-header-margin-bottom, var(--ui-font-size));\n --_ui-header-icon-size: var(--ui-header-icon-size, 1.5em);\n --_ui-header-icon-margin: var(--ui-header-icon-margin, calc(var(--ui-font-size) * 0.75));\n --_ui-header-image-width: var(--ui-header-image-width, 2.5em);\n --_ui-header-sub-color: var(--ui-header-sub-color, var(--ui-text-muted));\n --_ui-header-sub-font-size: var(\n --ui-header-sub-font-size,\n clamp(calc(var(--ui-font-size) * 0.92857), 0.78em, calc(var(--ui-font-size) * 1.42857))\n );\n /* the sub header's margin, e.g. `0.5em 0 0` for a gap below the headline */\n --_ui-header-sub-margin: var(--ui-header-sub-margin, 0);\n --_ui-header-sub-heading-ratio: var(--ui-header-sub-heading-ratio, 0.85714);\n --_ui-header-sub-heading-color: var(--ui-header-sub-heading-color, inherit);\n --_ui-header-icon-header-size: var(--ui-header-icon-header-size, 3em);\n --_ui-header-icon-header-margin: var(--ui-header-icon-header-margin, calc(var(--ui-font-size) * 0.5));\n --_ui-header-dividing-padding: var(--ui-header-dividing-padding, 0.21428em);\n --_ui-header-dividing-border: var(--ui-header-dividing-border, var(--ui-border-width) solid var(--ui-border-color));\n --_ui-header-colored-border-width: var(--ui-header-colored-border-width, 2px);\n --_ui-header-block-background: var(--ui-header-block-background, var(--ui-surface-strong));\n --_ui-header-block-border: var(\n --ui-header-block-border,\n var(--ui-border-width) solid var(--ui-border-color-strong)\n );\n --_ui-header-block-padding: var(--ui-header-block-padding, 0.78571em 1em);\n --_ui-header-attached-background: var(--ui-header-attached-background, var(--ui-surface));\n --_ui-header-floated-margin: var(--ui-header-floated-margin, 0.5em);\n --_ui-header-disabled-opacity: var(--ui-header-disabled-opacity, var(--ui-disabled-opacity));\n /* Content header ladder (em of the surrounding text), Fomantic's h6 ... h1-ish. */\n --_ui-header-size-mini: var(--ui-header-size-mini, 0.85714);\n --_ui-header-size-tiny: var(--ui-header-size-tiny, 1);\n --_ui-header-size-small: var(--ui-header-size-small, 1.07142);\n --_ui-header-size-medium: var(--ui-header-size-medium, 1.28571);\n --_ui-header-size-large: var(--ui-header-size-large, 1.71428);\n --_ui-header-size-big: var(--ui-header-size-big, 1.85714);\n --_ui-header-size-huge: var(--ui-header-size-huge, 2);\n --_ui-header-size-massive: var(--ui-header-size-massive, 2.28571);\n /* Page header ladder (`level`), relative to `--ui-font-size`: absolute, like Fomantic's rem. */\n --_ui-header-h1: var(--ui-header-h1, 2);\n --_ui-header-h2: var(--ui-header-h2, 1.71428);\n --_ui-header-h3: var(--ui-header-h3, 1.28571);\n --_ui-header-h4: var(--ui-header-h4, 1.07142);\n --_ui-header-h5: var(--ui-header-h5, 1);\n --_ui-header-h6: var(--ui-header-h6, 0.85714);\n /* The generic size remap resolves `--ui-size-<size>` HERE: the header ladder, relative to `medium`. */\n --ui-size-mini: calc(var(--_ui-header-size-mini) / var(--_ui-header-size-medium));\n --ui-size-tiny: calc(var(--_ui-header-size-tiny) / var(--_ui-header-size-medium));\n --ui-size-small: calc(var(--_ui-header-size-small) / var(--_ui-header-size-medium));\n --ui-size-large: calc(var(--_ui-header-size-large) / var(--_ui-header-size-medium));\n --ui-size-big: calc(var(--_ui-header-size-big) / var(--_ui-header-size-medium));\n --ui-size-huge: calc(var(--_ui-header-size-huge) / var(--_ui-header-size-medium));\n --ui-size-massive: calc(var(--_ui-header-size-massive) / var(--_ui-header-size-medium));\n /* Owner side: icons and content parts inside. */\n --_ui-header-layout: text;\n --_ui-icon-owner-size: var(--_ui-header-icon-size);\n --_ui-icon-owner-margin: 0 var(--_ui-header-icon-margin) 0 0;\n --_ui-icon-owner-align: middle;\n --_ui-icon-owner-display: inline-flex;\n }\n\n /* Header: a content header, `1.28em` of the surrounding text; a page header (`<h1>` ...) is absolute. */\n .ui.header {\n box-sizing: border-box;\n display: block;\n margin: var(--_header-margin-top, calc(var(--_ui-header-margin-top) - var(--_ui-header-offset))) 0\n var(--_header-margin-bottom, var(--_ui-header-margin-bottom));\n padding: 0;\n border: none;\n color: var(--ui-color-header, var(--_ui-header-color));\n font-family: var(--ui-font-family-heading);\n font-size: calc(var(--_header-base, 1em * var(--_ui-header-size-medium)) * var(--ui-scale, 1));\n font-weight: var(--_ui-header-font-weight);\n line-height: var(--_ui-header-line-height);\n text-transform: none;\n }\n /* Its scale comes from its own size class only, never a parent's; nor does it hand its own on. */\n .ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive) {\n --ui-scale: 1;\n }\n .ui.header > slot {\n --ui-scale: initial;\n }\n .ui.header:first-child {\n --_header-margin-top: calc(var(--_ui-header-offset) * -1);\n }\n .ui.header:last-child {\n --_header-margin-bottom: 0;\n }\n /* Shadow DOM: the root is always an only child, so the DOM element's position decides. */\n :host(:not(:first-child)) > .ui.header {\n --_header-margin-top: initial;\n }\n :host(:not(:last-child)) > .ui.header {\n --_header-margin-bottom: initial;\n }\n a.ui.header:hover {\n color: var(--ui-color-hover, var(--ui-link-hover));\n }\n\n /* Page headers: sized by level unless a size is given, or `sub` (Fomantic's `h2.ui.sub.header` is a sub header). */\n h1.ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive, .sub) {\n --_header-base: calc(var(--ui-font-size) * var(--_ui-header-h1));\n }\n h2.ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive, .sub) {\n --_header-base: calc(var(--ui-font-size) * var(--_ui-header-h2));\n }\n h3.ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive, .sub) {\n --_header-base: calc(var(--ui-font-size) * var(--_ui-header-h3));\n }\n h4.ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive, .sub) {\n --_header-base: calc(var(--ui-font-size) * var(--_ui-header-h4));\n }\n h5.ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive, .sub) {\n --_header-base: calc(var(--ui-font-size) * var(--_ui-header-h5));\n }\n h6.ui.header:not(.mini, .tiny, .small, .medium, .large, .big, .huge, .massive, .sub) {\n --_header-base: calc(var(--ui-font-size) * var(--_ui-header-h6));\n }\n\n /* Images slotted straight into a header: a small picture before the text. */\n .ui.header > img,\n .ui.header ::slotted(img) {\n display: inline-block;\n width: var(--_ui-header-image-width);\n height: auto;\n margin-top: calc(var(--_ui-header-offset) * -1);\n margin-inline-end: var(--_ui-header-icon-margin);\n vertical-align: middle;\n }\n\n /* Sub heading: a small uppercase label-like header. */\n .ui.sub.header {\n --_header-base: calc(1em * var(--_ui-header-sub-heading-ratio));\n --_header-margin-bottom: 0.14285em;\n padding: 0;\n color: var(--ui-color-header, var(--_ui-header-sub-heading-color));\n text-transform: uppercase;\n }\n\n /* Icon header: a large icon centred above the text. */\n .ui.icon.header {\n --_ui-header-layout: icon;\n --_ui-icon-owner-size: var(--_ui-header-icon-header-size);\n --_ui-icon-owner-display: flex;\n --_ui-icon-owner-margin: 0 auto var(--_ui-header-icon-header-margin);\n --_ui-icon-owner-align: baseline;\n display: inline-block;\n margin-top: var(--_ui-header-margin-top);\n text-align: center;\n }\n /* An icon header's picture (Fomantic's `img.ui.icon.image`): a block centred above the text, like its icon. */\n .ui.icon.header > img,\n .ui.icon.header ::slotted(img) {\n display: block;\n margin: 0 auto var(--_ui-header-icon-header-margin);\n }\n .ui.icon.header:first-child {\n margin-top: 0;\n }\n :host(:not(:first-child)) > .ui.icon.header {\n margin-top: var(--_ui-header-margin-top);\n }\n .ui.icon.header::after {\n content: \"\";\n display: block;\n height: 0;\n clear: both;\n visibility: hidden;\n }\n}\n\n/*******************************\n Parts in context\n*******************************/\n\n@layer ui.components.parts.content {\n /* ## in-header: a header's content and sub header. */\n :host(:state(in-header)) > .content,\n .in-header.content {\n display: inline-block;\n vertical-align: top;\n }\n :host(:state(in-header):not(:first-child)) > .content,\n .in-header.content:not(:first-child) {\n vertical-align: middle;\n }\n /*\n * The aliases come from a STANDALONE header's root.\n * A header an owner styles (a card's, `.in-card.header`) declares none, so each falls back to its public token:\n * a card's lede is themed like any sub header.\n */\n :host(:state(in-header)) > .header,\n .in-header.header {\n display: block;\n margin: var(--_ui-header-sub-margin, var(--ui-header-sub-margin, 0));\n padding: 0;\n color: var(--_ui-header-sub-color, var(--ui-header-sub-color, var(--ui-text-muted)));\n font-size: var(--_ui-header-sub-font-size, var(--ui-header-sub-font-size, 1em));\n font-weight: var(--ui-font-weight-normal);\n line-height: 1.2em;\n }\n\n /* ## in-card: `.ui.card > .content > .header / .meta / .description`, `.ui.card > .extra`. */\n :host(:state(in-card)) > .content,\n .in-card.content {\n flex-grow: 1;\n margin: 0;\n padding: var(--ui-card-content-padding, 1em);\n border: none;\n border-top: var(--ui-border-width) solid var(--ui-card-divider-color, var(--ui-border-color-internal));\n border-radius: 0;\n background: none;\n box-shadow: none;\n font-size: 1em;\n }\n :host(:state(in-card):first-child) > .content,\n .in-card.content:first-child {\n border-top: none;\n }\n /* ... unless the card rendered a shorthand block before its slot: then the first slotted content isn't first. */\n @container style(--_ui-card-leading: 1) {\n :host(:state(in-card):first-child) > .content {\n border-top: var(--ui-border-width) solid var(--ui-card-divider-color, var(--ui-border-color-internal));\n }\n }\n :host(:state(in-card)) > .content::after,\n .in-card.content::after {\n content: \" \";\n display: block;\n height: 0;\n overflow: hidden;\n clear: both;\n visibility: hidden;\n }\n :host(:state(in-card)) > .header,\n .in-card.header {\n display: block;\n margin-top: calc((1 - var(--ui-line-height)) * 0.5em);\n color: var(--ui-card-header-color, var(--ui-text-dark));\n font-family: var(--ui-font-family-heading);\n font-size: var(--ui-card-header-font-size, 1.28571em);\n font-weight: var(--ui-font-weight-bold);\n line-height: var(--ui-line-height-heading);\n }\n /* Fomantic's card links carry colour and hover only, no underline (`site.less`'s `a { text-decoration: none }`). */\n :host(:state(in-card)) > a.header,\n a.in-card.header {\n text-decoration: none;\n }\n :host(:state(in-card)) > a.header:hover,\n a.in-card.header:hover {\n color: var(--ui-link-hover);\n }\n :host(:state(in-card)) > .meta,\n .in-card.meta {\n color: var(--ui-card-meta-color, var(--ui-text-light));\n font-size: 1em;\n }\n :host(:state(in-card)) > .meta > ::slotted(*),\n .in-card.meta > * {\n margin-inline-end: var(--ui-card-meta-spacing, 0.3em);\n }\n :host(:state(in-card)) > .meta > ::slotted(:last-child),\n .in-card.meta > :last-child {\n margin-inline-end: 0;\n }\n :host(:state(in-card)) > .meta > ::slotted(a),\n .in-card.meta > a {\n color: var(--ui-text-light);\n text-decoration: none;\n }\n :host(:state(in-card)) > .meta > ::slotted(a:hover),\n .in-card.meta > a:hover {\n color: var(--ui-text-color);\n }\n :host(:state(in-card)) > .description,\n .in-card.description {\n clear: both;\n color: var(--ui-card-description-color, oklch(from var(--ui-ink) l c h / 0.68));\n }\n :host(:state(in-card):not(:first-child)) > .description,\n .in-card.description:not(:first-child) {\n margin-top: var(--ui-card-description-distance, 0.5em);\n }\n :host(:state(in-card)) > .extra,\n .in-card.extra {\n position: static;\n flex-grow: 0;\n width: auto;\n max-width: 100%;\n min-height: 0;\n margin: 0;\n padding: var(--ui-card-extra-padding, 0.75em 1em);\n border-top: var(--ui-border-width) solid var(--ui-card-extra-divider, oklch(from var(--ui-ink) l c h / 0.05));\n background: none;\n box-shadow: none;\n color: var(--ui-card-extra-color, var(--ui-text-light));\n transition: color var(--ui-duration-fast) var(--ui-ease);\n }\n :host(:state(in-card)) > .extra > ::slotted(a),\n .in-card.extra > a {\n color: var(--ui-text-unselected);\n text-decoration: none;\n }\n :host(:state(in-card)) > .extra > ::slotted(a:hover),\n .in-card.extra > a:hover {\n color: var(--ui-link-hover);\n }\n :host(:state(in-card)) > .avatar,\n .in-card.avatar {\n display: inline-block;\n width: var(--ui-card-avatar-size, 2em);\n height: var(--ui-card-avatar-size, 2em);\n overflow: hidden;\n border-radius: var(--ui-radius-circle);\n vertical-align: middle;\n }\n\n /* ## in-item: `.ui.items > .item > .content > .header / .meta / .description / .extra`. */\n :host(:state(in-item)) > .content,\n .in-item.content {\n display: block;\n flex: 1 1 auto;\n margin: 0;\n padding: 0;\n border: none;\n border-radius: 0;\n background: none;\n box-shadow: none;\n color: var(--ui-item-content-color, var(--ui-text-color));\n font-size: 1em;\n }\n :host(:state(in-item)) > .content::after,\n .in-item.content::after {\n content: \" \";\n display: block;\n height: 0;\n overflow: hidden;\n clear: both;\n visibility: hidden;\n }\n /* After the item's image; the Items view narrows the distance in a tablet-wide group (`UIItems.css`). */\n :host(:state(in-item):not(:first-child)) > .content,\n .in-item.content:not(:first-child) {\n align-self: start;\n width: auto;\n min-width: 0;\n padding-inline-start: var(--_ui-item-content-distance, 1.5em);\n }\n :host(:state(in-item)) > .header,\n .in-item.header {\n display: inline-block;\n margin: calc((1 - var(--ui-line-height)) * 0.5em) 0 0;\n color: var(--ui-item-header-color, var(--ui-text-dark));\n font-family: var(--ui-font-family-heading);\n font-size: var(--ui-item-header-font-size, 1.28571em);\n font-weight: var(--ui-font-weight-bold);\n }\n :host(:state(in-item)) > a.header:hover,\n a.in-item.header:hover {\n color: var(--ui-link-hover);\n }\n :host(:state(in-item)) > .description,\n .in-item.description {\n max-width: none;\n margin-top: var(--ui-item-description-distance, 0.6em);\n color: var(--ui-item-description-color, var(--ui-text-color));\n font-size: 1em;\n line-height: var(--ui-line-height);\n }\n :host(:state(in-item)) > .meta,\n .in-item.meta {\n margin: 0.5em 0;\n color: var(--ui-item-meta-color, var(--ui-text-muted));\n font-size: 1em;\n line-height: 1em;\n }\n :host(:state(in-item)) > .meta > ::slotted(*),\n .in-item.meta > * {\n margin-inline-end: var(--ui-item-meta-spacing, 0.3em);\n }\n :host(:state(in-item)) > .meta > ::slotted(:last-child),\n .in-item.meta > :last-child {\n margin-inline-end: 0;\n }\n :host(:state(in-item)) > .extra,\n .in-item.extra {\n position: relative;\n display: block;\n width: 100%;\n margin: 0.5em 0 0;\n padding: 0;\n border-top: none;\n background: none;\n box-shadow: none;\n color: var(--ui-item-extra-color, var(--ui-text-light));\n transition: color var(--ui-duration-fast) var(--ui-ease);\n }\n :host(:state(in-item)) > .extra > ::slotted(*),\n .in-item.extra > * {\n margin: 0.25em 0.5em 0.25em 0;\n }\n :host(:state(in-item)) > .extra::after,\n .in-item.extra::after {\n content: \" \";\n display: block;\n height: 0;\n overflow: hidden;\n clear: both;\n visibility: hidden;\n }\n :host(:state(in-item)) > .avatar,\n .in-item.avatar {\n display: inline-block;\n overflow: hidden;\n border-radius: var(--ui-radius-circle);\n }\n /* Paragraphs of a card's or an item's description: Fomantic's `.content p`. */\n :host(:is(:state(in-card), :state(in-item))) > .description > ::slotted(p),\n :is(.in-card, .in-item).description > p {\n margin: 0 0 0.5em;\n }\n :host(:is(:state(in-card), :state(in-item))) > .description > ::slotted(p:last-child),\n :is(.in-card, .in-item).description > p:last-child {\n margin-bottom: 0;\n }\n\n /* ## in-feed: `.ui.feed > .event > .content > .summary / .date / .meta / .extra`, `.user` => author. */\n :host(:state(in-feed)) > .content,\n .in-feed.content {\n display: block;\n flex: 1 1 auto;\n align-self: stretch;\n text-align: start;\n overflow-wrap: break-word;\n }\n /* After the event's label (icon / image). */\n :host(:state(in-feed):not(:first-child)) > .content,\n .in-feed.content:not(:first-child) {\n margin: 0.5em 0 0.35714em 1.14285em;\n }\n :host(:state(in-feed)) > .summary,\n .in-feed.summary {\n margin: 0;\n color: var(--ui-feed-summary-color, var(--ui-text-color));\n font-size: 1em;\n font-weight: var(--ui-font-weight-bold);\n }\n :host(:state(in-feed)) > .date,\n .in-feed.date {\n margin: -0.5em 0 0;\n padding: 0;\n color: var(--ui-feed-date-color, var(--ui-text-light));\n font-size: 1em;\n font-style: normal;\n font-weight: var(--ui-font-weight-normal);\n }\n :host(:state(in-feed)) > .author,\n .in-feed.author {\n display: inline-block;\n margin-inline-end: 0;\n font-weight: var(--ui-font-weight-bold);\n vertical-align: baseline;\n }\n /* A linked author (Fomantic's `a.user`) is the link colour, never the browser's default blue. */\n :host(:state(in-feed)) > a.author,\n a.in-feed.author {\n color: var(--ui-feed-author-color, var(--ui-link));\n }\n :host(:state(in-feed)) > a.author:hover,\n a.in-feed.author:hover {\n color: var(--ui-link-hover);\n }\n :host(:state(in-feed)) > .extra,\n .in-feed.extra {\n margin: 0.5em 0 0;\n padding: 0;\n background: none;\n color: var(--ui-feed-extra-color, var(--ui-text-color));\n }\n :host(:state(in-feed)) > .extra.text,\n .in-feed.extra.text {\n max-width: var(--ui-feed-extra-text-width, 500px);\n padding: 0;\n border-inline-start: none;\n font-size: 1em;\n line-height: var(--ui-line-height);\n }\n :host(:state(in-feed)) > .meta,\n .in-feed.meta {\n display: inline-block;\n margin: 0.5em 0 0;\n padding: 0;\n border: none;\n border-radius: 0;\n background: none;\n box-shadow: none;\n color: var(--ui-feed-meta-color, var(--ui-text-muted));\n font-size: 0.85714em;\n }\n :host(:state(in-feed)) > .meta > ::slotted(*),\n .in-feed.meta > * {\n position: relative;\n margin-inline-start: 0.75em;\n }\n :host(:state(in-feed)) > .meta > ::slotted(:first-child),\n .in-feed.meta > :first-child {\n margin-inline-start: 0;\n }\n :host(:state(in-feed)) > .meta > ::slotted(a),\n .in-feed.meta > a {\n /* `text-light`, not Fomantic's 0.5 alpha (3.7:1 on white) */\n color: var(--ui-feed-meta-action-color, var(--ui-text-light));\n cursor: pointer;\n transition: color var(--ui-duration-fast) var(--ui-ease);\n }\n :host(:state(in-feed)) > .meta > ::slotted(a:hover),\n .in-feed.meta > a:hover {\n color: var(--ui-text-selected);\n }\n\n /* ## in-comment: `.ui.comments .comment > .avatar / .content > .author / .metadata / .text / .actions`. */\n :host(:state(in-comment)) > .avatar,\n .in-comment.avatar {\n display: block;\n float: left;\n width: var(--ui-comment-avatar-width, 2.5em);\n height: auto;\n margin: 0.2em 0 0;\n }\n :host(:state(in-comment)) > .avatar img,\n :host(:state(in-comment)) > .avatar ::slotted(img),\n .in-comment.avatar img {\n margin: 0 auto;\n border-radius: var(--ui-radius-s);\n }\n :host(:state(in-comment)) > .content,\n .in-comment.content {\n display: block;\n }\n /* After the comment's avatar. */\n :host(:state(in-comment):not(:first-child)) > .content,\n .in-comment.content:not(:first-child) {\n margin-inline-start: var(--ui-comment-content-margin, 3.5em);\n }\n /* Hovered, or holding keyboard focus: a minimal comment's actions show (never invisible while focused). */\n :host(:state(in-comment)) > .content:is(:hover, :focus-within),\n .in-comment.content:is(:hover, :focus-within) {\n --_ui-comment-hover: 1;\n }\n :host(:state(in-comment)) > .author,\n .in-comment.author {\n color: var(--ui-comment-author-color, var(--ui-text-color));\n font-size: 1em;\n font-weight: var(--ui-font-weight-bold);\n }\n :host(:state(in-comment)) > a.author:hover,\n a.in-comment.author:hover {\n color: var(--ui-link-hover);\n }\n :host(:state(in-comment)) > .meta,\n .in-comment.meta {\n display: inline-block;\n margin-inline-start: 0.5em;\n color: var(--ui-comment-meta-color, var(--ui-text-light));\n font-size: 0.875em;\n }\n :host(:state(in-comment)) > .meta > ::slotted(*),\n .in-comment.meta > * {\n display: inline-block;\n margin: 0 0.5em 0 0;\n }\n :host(:state(in-comment)) > .meta > ::slotted(:last-child),\n .in-comment.meta > :last-child {\n margin-inline-end: 0;\n }\n :host(:state(in-comment)) > .description,\n .in-comment.description {\n margin: 0.25em 0 0.5em;\n color: var(--ui-comment-text-color, var(--ui-text-color));\n font-size: 1em;\n line-height: 1.3;\n overflow-wrap: break-word;\n }\n :host(:state(in-comment)) > .actions,\n .in-comment.actions {\n font-size: 0.875em;\n }\n :host(:state(in-comment)) > .actions > ::slotted(:is(a, button)),\n .in-comment.actions > :is(a, button) {\n display: inline-block;\n margin: 0 0.75em 0 0;\n padding: 0;\n border: none;\n background: none;\n color: var(--ui-comment-action-color, var(--ui-text-unselected));\n font: inherit;\n cursor: pointer;\n }\n :host(:state(in-comment)) > .actions > ::slotted(:is(a, button):last-child),\n .in-comment.actions > :is(a, button):last-child {\n margin-inline-end: 0;\n }\n :host(:state(in-comment)) > .actions > ::slotted(:is(a, button):is(:hover, .active)),\n .in-comment.actions > :is(a, button):is(:hover, .active) {\n color: var(--ui-text-hovered);\n }\n\n /* ## in-modal: `.ui.modal > .header / .content / .actions`, `.ui.modal > .content > .description`. */\n :host(:state(in-modal)) > .header,\n .in-modal.header {\n display: block;\n margin: 0;\n padding: 0.875em 1.05em;\n border-bottom: var(--ui-border-width) solid var(--ui-border-color);\n background: var(--_ui-modal-header-background, var(--ui-surface));\n box-shadow: none;\n color: var(--_ui-modal-header-color, var(--ui-text-dark));\n font-family: var(--ui-font-family-heading);\n font-size: var(--_ui-modal-header-size, 1.42857em);\n font-weight: var(--ui-font-weight-bold);\n line-height: var(--ui-line-height-heading);\n }\n :host(:state(in-modal)) > .content,\n .in-modal.content {\n display: block;\n width: 100%;\n padding: var(--ui-modal-content-padding, 1.5em);\n background: var(--_ui-modal-content-background, var(--ui-surface));\n font-size: 1em;\n line-height: 1.4;\n }\n :host(:state(in-modal)) > .content.image,\n .in-modal.content.image {\n display: flex;\n flex-direction: row;\n }\n :host(:state(in-modal)) > .content.scrolling,\n .in-modal.content.scrolling {\n max-height: var(--ui-modal-scrolling-height, calc(80dvh - 10em));\n overflow: auto;\n overscroll-behavior: none;\n }\n :host(:state(in-modal)) > .description,\n .in-modal.description {\n display: block;\n flex: 1 0 auto;\n align-self: start;\n min-width: 0;\n }\n /* After the content's image or icon. */\n :host(:state(in-modal):not(:first-child)) > .description,\n .in-modal.description:not(:first-child) {\n flex: auto;\n width: auto;\n min-width: auto;\n padding-inline-start: var(--ui-modal-description-distance, 2em);\n }\n :host(:state(in-modal)) > .actions,\n .in-modal.actions {\n padding: var(--ui-modal-actions-padding, 1em);\n border-top: var(--ui-border-width) solid var(--ui-border-color);\n background: var(--_ui-modal-actions-background, var(--ui-surface-muted));\n text-align: right;\n }\n :host(:state(in-modal)) > .actions > ::slotted(*),\n .in-modal.actions > * {\n margin-inline-start: var(--ui-modal-button-distance, 0.75em);\n }\n /* The modal's outer corners. */\n :host(:state(in-modal):first-child) > :is(.header, .content, .actions),\n .in-modal:is(.header, .content, .actions):first-child {\n border-start-start-radius: var(--_ui-modal-radius, var(--ui-radius));\n border-start-end-radius: var(--_ui-modal-radius, var(--ui-radius));\n }\n :host(:state(in-modal):last-child) > :is(.header, .content, .actions),\n .in-modal:is(.header, .content, .actions):last-child {\n border-end-start-radius: var(--_ui-modal-radius, var(--ui-radius));\n border-end-end-radius: var(--_ui-modal-radius, var(--ui-radius));\n }\n @media (--ui-mobile) {\n :host(:state(in-modal)) > .header,\n .in-modal.header {\n padding: 0.525em 0.7em;\n }\n :host(:state(in-modal)) > .content,\n .in-modal.content {\n display: block;\n padding: 1em;\n }\n :host(:state(in-modal)) > .content.image,\n .in-modal.content.image {\n flex-direction: column;\n }\n :host(:state(in-modal)) > .description,\n .in-modal.description,\n :host(:state(in-modal):not(:first-child)) > .description,\n .in-modal.description:not(:first-child) {\n display: block;\n width: 100%;\n margin: 0;\n padding: 1em 0;\n }\n :host(:state(in-modal)) > .actions,\n .in-modal.actions {\n padding: 1em 1em 0;\n }\n :host(:state(in-modal)) > .actions > ::slotted(*),\n .in-modal.actions > * {\n margin-bottom: 1em;\n }\n }\n\n /*\n * ## in-flyout: `.ui.flyout > .header / .content / .actions`.\n * - The flyout is a column: its content grows, so the actions sit at the bottom.\n * - Look tokens (`--ui-flyout-*`) and `--ui-inverted` come from `UIFlyout.css`.\n */\n :host(:state(in-flyout)) > .header,\n .in-flyout.header {\n display: block;\n margin: 0;\n padding: 1.25em 1.5em;\n border-bottom: var(--ui-border-width) solid var(--ui-border-color);\n background: var(--ui-flyout-header-background, var(--_ui-flyout-background, var(--ui-surface)));\n color: var(--_ui-flyout-header-color, var(--ui-text-dark));\n font-family: var(--ui-font-family-heading);\n font-size: var(--ui-flyout-header-size, 1.28571em);\n font-weight: var(--ui-font-weight-bold);\n line-height: var(--ui-line-height-heading);\n }\n :host(:state(in-flyout)) > .content,\n .in-flyout.content {\n box-sizing: border-box;\n display: block;\n flex: 1 0 auto;\n width: 100%;\n padding: var(--ui-flyout-content-padding, 1.5em);\n background: var(--ui-flyout-content-background, var(--_ui-flyout-background, var(--ui-surface)));\n font-size: 1em;\n line-height: 1.4;\n }\n :host(:state(in-flyout)) > .actions,\n .in-flyout.actions {\n flex: none;\n padding: var(--ui-flyout-actions-padding, 1em);\n border-top: var(--ui-border-width) solid var(--ui-border-color);\n background: var(--_ui-flyout-actions-background, var(--ui-surface-muted));\n text-align: right;\n }\n :host(:state(in-flyout)) > .actions > ::slotted(*),\n .in-flyout.actions > * {\n margin-inline-start: var(--ui-flyout-button-distance, 0.75em);\n }\n\n /* ## in-message: `.ui.message .header`, `.ui.icon.message > .content`. */\n :host(:state(in-message)) > .header,\n .in-message.header {\n display: block;\n margin: calc((1 - var(--ui-line-height-heading)) * 0.5em) 0 0;\n color: var(--ui-color-header, inherit);\n font-family: var(--ui-font-family-heading);\n font-size: var(--_ui-message-header-font-size, 1.14285em);\n font-weight: var(--ui-font-weight-bold);\n }\n\n /* ## in-list: `.ui.list > .item > .content > .header / .description`. */\n :host(:state(in-list)) > .content,\n .in-list.content {\n color: var(--_ui-list-content-color, var(--ui-text-color));\n line-height: 1.14285em;\n }\n /* After the item's icon or image. */\n :host(:state(in-list):not(:first-child)) > .content,\n .in-list.content:not(:first-child) {\n display: table-cell;\n width: 100%;\n padding: 0 0 0 var(--_ui-list-content-distance, 0.5em);\n vertical-align: var(--_ui-list-align, top);\n }\n /* Static markup: beside an `<img>` (Fomantic's `img.image + .content`), an inline block. */\n img.image + .in-list.content {\n display: inline-block;\n width: auto;\n }\n :host(:state(in-list)) > .header,\n .in-list.header {\n display: block;\n margin: 0;\n color: var(--_ui-list-header-color, var(--ui-text-color));\n font-family: var(--ui-font-family-heading);\n font-weight: var(--ui-font-weight-bold);\n }\n :host(:state(in-list)) > a.header,\n a.in-list.header {\n color: var(--ui-link);\n cursor: pointer;\n }\n :host(:state(in-list)) > a.header:hover,\n a.in-list.header:hover {\n color: var(--ui-link-hover);\n }\n :host(:state(in-list)) > .description,\n .in-list.description {\n display: block;\n color: var(--_ui-list-description-color, oklch(from var(--ui-ink) l c h / 0.7));\n }\n\n /* ## in-menu: an item's sub header, `.ui.vertical.menu .item > .header:not(.ui)`\n (menu header ITEMS are `<ui-item kind=\"header\">`). */\n :host(:state(in-menu)) > .header,\n .in-menu.header {\n display: block;\n margin: 0 0 0.5em;\n font-size: 1em;\n font-weight: var(--ui-font-weight-bold);\n }\n\n /* ## in-statistic: `.ui.statistic > .value / .label`. */\n :host(:state(in-statistic)) > .value,\n .in-statistic.value {\n color: var(--ui-color, var(--ui-statistic-value-color, var(--ui-ink)));\n font-family: var(--ui-font-family);\n font-size: var(--_ui-statistic-value-size, calc(var(--ui-font-size) * 4));\n font-weight: var(--ui-font-weight-normal);\n line-height: 1em;\n text-align: center;\n text-transform: uppercase;\n }\n :host(:state(in-statistic)) > .value.text,\n .in-statistic.value.text {\n min-height: 2em;\n font-size: var(--_ui-statistic-text-value-size, calc(var(--ui-font-size) * 2));\n font-weight: var(--ui-font-weight-bold);\n line-height: 1em;\n }\n :host(:state(in-statistic)) > .label,\n .in-statistic.label {\n display: block;\n margin: 0;\n padding: 0;\n color: var(--ui-statistic-label-color, var(--ui-text-color));\n font-family: var(--ui-font-family-heading);\n font-size: 1em;\n font-weight: var(--ui-font-weight-bold);\n text-align: center;\n text-transform: uppercase;\n }\n /* Image and icon values (`statistic.less` \"Types\"):\n an image no taller than 3 lines of text;\n an icon at full opacity with no margin of its own (`<ui-icon>` reads the owner tokens). */\n :host(:state(in-statistic)) > .value ::slotted(img),\n .in-statistic.value img {\n max-height: calc(var(--ui-font-size) * 3);\n vertical-align: baseline;\n }\n :host(:state(in-statistic)) > .value,\n .in-statistic.value {\n --_ui-icon-owner-margin: 0;\n --_ui-icon-owner-opacity: 1;\n }\n\n /* ## in-step: `.ui.steps .step > .content`, `.step .title / .description`. */\n :host(:state(in-step)) > .content,\n .in-step.content {\n display: block;\n flex: 0 1 auto;\n align-self: center;\n /* Circular steps move the content off their ring (`UIStep.css`). */\n margin: var(--_ui-step-content-margin, 0);\n padding: var(--_ui-step-content-padding, 0);\n }\n :host(:state(in-step)) > .title,\n .in-step.title {\n width: 100%;\n font-family: var(--ui-font-family-heading);\n font-size: var(--ui-step-title-font-size, 1.14285em);\n font-weight: var(--ui-font-weight-bold);\n line-height: 1.14285em;\n }\n :host(:state(in-step)) > .description,\n .in-step.description {\n width: 100%;\n color: var(--ui-step-description-color, var(--ui-text-color));\n font-size: var(--ui-step-description-font-size, 0.92857em);\n font-weight: var(--ui-font-weight-normal);\n line-height: 1.14285em;\n }\n /* After the title. */\n :host(:state(in-step):not(:first-child)) > .description,\n .in-step.description:not(:first-child) {\n margin-top: var(--_ui-step-description-distance, 0.25em);\n }\n\n /* ## in-accordion: `.ui.accordion > .title`, `.ui.accordion .title ~ .content`. */\n :host(:state(in-accordion)) > .title,\n .in-accordion.title {\n padding: var(--_ui-accordion-title-padding, 0.5em 0);\n color: var(--_ui-accordion-title-color, var(--ui-text-color));\n font-family: var(--ui-font-family-heading);\n font-size: 1em;\n line-height: 1;\n list-style: none;\n cursor: pointer;\n }\n :host(:state(in-accordion)) > .content,\n .in-accordion.content {\n padding: var(--_ui-accordion-content-padding, 0.5em 0 1em);\n }\n :host(:state(in-accordion):last-child) > .content,\n .in-accordion.content:last-child {\n padding-bottom: 0;\n }\n\n /* ## in-popup: `.ui.popup > .header`, `.ui.popup > .header + .content`. */\n :host(:state(in-popup)) > .header,\n .in-popup.header {\n padding: 0;\n font-family: var(--ui-font-family-heading);\n font-size: var(--_ui-popup-header-font-size, 1.14285em);\n font-weight: var(--ui-font-weight-bold);\n line-height: 1.2;\n }\n :host(:state(in-popup):not(:first-child)) > .content,\n .in-popup.content:not(:first-child) {\n padding-top: var(--_ui-popup-header-distance, 0.5em);\n }\n\n /* ## in-toast: `.ui.toast > .content > .header`, `.ui.toast .actions`. */\n :host(:state(in-toast)) > .header,\n .in-toast.header {\n margin: 0;\n color: inherit;\n font-weight: var(--ui-font-weight-bold);\n }\n :host(:state(in-toast)) > .actions,\n .in-toast.actions {\n margin: 0.5em -1em -1em;\n padding: 0.5em 0.5em 0.75em;\n border-top: var(--ui-border-width) solid\n var(--ui-toast-actions-border, oklch(from var(--ui-shadow-ink) l c h / 0.2));\n background: var(--ui-toast-actions-background, oklch(from var(--ui-ink-on-dark) l c h / 0.25));\n text-align: right;\n }\n\n /* ## in-search: `.ui.search > .results .result > .content > .title / .description / .price`. */\n :host(:state(in-search)) > .title,\n .in-search.title {\n margin: calc((1 - var(--ui-line-height-heading)) * 0.5em) 0 0;\n color: var(--_ui-search-title-color, var(--ui-text-dark));\n font-family: var(--ui-font-family-heading);\n font-size: 1em;\n font-weight: var(--ui-font-weight-bold);\n }\n :host(:state(in-search)) > .description,\n .in-search.description {\n margin-top: 0;\n color: var(--_ui-search-description-color, var(--ui-text-light));\n font-size: 0.92857em;\n }\n :host(:state(in-search)) > .value,\n .in-search.value {\n float: right;\n color: var(--_ui-search-price-color, var(--ui-green-text));\n }\n\n /* ## in-label: `.ui.label > .detail`. */\n :host(:state(in-label)) > .detail,\n .in-label.detail {\n --_ui-icon-owner-margin: 0 0.25em 0 0;\n display: inline-block;\n margin-inline-start: var(--_ui-label-detail-distance, 1em);\n font-weight: var(--_ui-label-detail-weight, var(--ui-font-weight-bold));\n opacity: var(--_ui-label-detail-opacity, 1);\n vertical-align: top;\n }\n}\n\n/*******************************\n Variations\n*******************************/\n\n@layer ui.components.parts.variations {\n /* ## Standalone header variations. */\n\n /* Dividing: a rule below; a coloured one thickens, the extra line drawn inside. */\n .ui.dividing.header {\n padding-bottom: var(--_ui-header-dividing-padding);\n border-bottom: var(--_ui-header-dividing-border);\n border-bottom-color: var(--ui-color, var(--ui-border-color));\n box-shadow: inset 0 calc(var(--ui-border-width) - var(--_ui-header-colored-border-width)) 0 0\n var(--ui-color, transparent);\n }\n\n /* Block: a tinted box, absolutely sized like Fomantic's rem. */\n .ui.block.header {\n padding: var(--_ui-header-block-padding);\n border: var(--_ui-header-block-border);\n border-radius: var(--ui-radius);\n background: var(--_ui-header-block-background);\n box-shadow: none;\n }\n .ui.block.header:not(h1, h2, h3, h4, h5, h6) {\n --_header-base: var(--ui-font-size);\n }\n\n /* Attached: joined to the segment below (or above). */\n .ui.attached.header {\n margin: 0 calc(var(--ui-border-width) * -1);\n padding: var(--_ui-header-block-padding);\n border: var(--_ui-header-block-border);\n border-radius: 0;\n background: var(--_ui-header-attached-background);\n box-shadow: none;\n }\n .ui.attached.block.header {\n background: var(--_ui-header-block-background);\n }\n .ui.attached:not(.top).header {\n border-top: none;\n }\n .ui[class*=\"top attached\"].header {\n border-radius: var(--ui-radius) var(--ui-radius) 0 0;\n }\n .ui[class*=\"bottom attached\"].header {\n border-radius: 0 0 var(--ui-radius) var(--ui-radius);\n }\n .ui.seamless.attached:not(.bottom).header {\n border-bottom: none;\n }\n .ui.attached.header:not(h1, h2, h3, h4, h5, h6) {\n --_header-base: 1em;\n }\n\n /* Inverted: for dark backgrounds -- the dark scheme's tokens, and the owner token for its parts. */\n .ui.inverted.header {\n --ui-inverted: 1;\n --ui-scheme: dark;\n color-scheme: dark;\n }\n\n /* Aligned */\n .ui[class*=\"left aligned\"].header {\n text-align: left;\n }\n .ui[class*=\"right aligned\"].header {\n text-align: right;\n }\n .ui:is(.centered, [class*=\"center aligned\"]).header {\n text-align: center;\n }\n .ui.justified.header {\n text-align: justify;\n }\n .ui.justified.header::after {\n content: \"\";\n display: inline-block;\n width: 100%;\n }\n .ui.icon.header:is(.centered, [class*=\"aligned\"], .justified) {\n display: block;\n margin-inline: auto;\n }\n\n /* Floated */\n .ui:is(.floated, [class*=\"left floated\"]).header {\n float: left;\n margin-top: 0;\n margin-inline-end: var(--_ui-header-floated-margin);\n }\n .ui[class*=\"right floated\"].header {\n float: right;\n margin-top: 0;\n margin-inline-start: var(--_ui-header-floated-margin);\n }\n\n /* Fitted */\n .ui.fitted.header {\n padding: 0;\n }\n\n /* ## Parts under an owner's variation. */\n\n /* A sub header / content inside an icon header. */\n @container style(--_ui-header-layout: icon) {\n :host(:state(in-header)) > .content,\n .in-header.content {\n display: block;\n padding: 0;\n }\n }\n\n /* Horizontal card: contents side by side with the image, extra content below. */\n @container style(--_ui-card-layout: horizontal) {\n :host(:state(in-card)) > .content,\n .in-card.content {\n flex-basis: 1px;\n border-top: none;\n }\n :host(:state(in-card)) > .extra,\n .in-card.extra {\n flex-basis: 100%;\n }\n }\n\n /* An item showing its own image (`<ui-item image>`, `UIItem.css`): the content beside it, as after a slotted one. */\n @container style(--_ui-item-media: 1) {\n :host(:state(in-item)) > .content {\n align-self: start;\n width: auto;\n min-width: 0;\n padding-inline-start: var(--_ui-item-content-distance, 1.5em);\n }\n }\n\n /* Stacked items (mobile, not `unstackable`): content below the image. */\n @container style(--_ui-item-layout: stacked) {\n :host(:state(in-item):not(:first-child)) > .content,\n .in-item.content:not(:first-child) {\n display: block;\n padding: var(--ui-item-content-distance-mobile, 1.5em) 0 0;\n }\n }\n @container style(--_ui-item-layout: stacked) and style(--_ui-item-media: 1) {\n :host(:state(in-item)) > .content {\n display: block;\n padding: var(--ui-item-content-distance-mobile, 1.5em) 0 0;\n }\n }\n\n /* Link items: the header takes the link hover colour while its item is hovered. */\n @container style(--_ui-item-state: hover) {\n :host(:state(in-item)) > .header,\n .in-item.header {\n color: var(--ui-link-hover);\n }\n }\n\n /* Inverted owners: links brighten, a statistic's value turns white. */\n @container style(--ui-inverted: 1) {\n :host(:state(in-card)) > a.header,\n a.in-card.header,\n :host(:state(in-item)) > a.header,\n a.in-item.header {\n color: var(--ui-text-inverted-color);\n }\n :host(:state(in-list)) > a.header,\n a.in-list.header {\n color: var(--ui-text-inverted-color);\n }\n :host(:state(in-statistic)) > .value,\n .in-statistic.value {\n color: var(--ui-color, var(--ui-ink-on-dark));\n }\n }\n\n /* Minimal comments: actions hidden until the comment's content is hovered. */\n @container style(--_ui-comments-minimal: 1) {\n :host(:state(in-comment)) > .actions,\n .in-comment.actions {\n position: absolute;\n top: 0;\n right: 0;\n left: auto;\n opacity: 0;\n transition: opacity var(--ui-duration-normal) var(--ui-ease) 0.1s;\n }\n }\n @container style(--_ui-comments-minimal: 1) and style(--_ui-comment-hover: 1) {\n :host(:state(in-comment)) > .actions,\n .in-comment.actions {\n opacity: 1;\n }\n }\n\n /* Basic modal: parts float on the dimmer, no boxes, a white header. */\n @container style(--_ui-modal-basic: 1) {\n :host(:state(in-modal)) > :is(.header, .content, .actions),\n .in-modal:is(.header, .content, .actions) {\n border: none;\n background-color: transparent;\n }\n :host(:state(in-modal)) > .header,\n .in-modal.header {\n color: var(--ui-ink-on-dark);\n }\n }\n\n /* Icon message: the content is the flex item beside the icon. */\n @container style(--_ui-message-layout: icon) {\n :host(:state(in-message)) > .content,\n .in-message.content {\n display: block;\n flex: 1 1 auto;\n padding-inline-start: 0;\n vertical-align: middle;\n }\n }\n\n /* A feed event showing a label (slotted, or `<ui-event icon / image / label>`):\n the content beside it, as after a slotted label. */\n @container style(--_ui-event-label: 1) {\n :host(:state(in-feed)) > .content {\n margin: 0.5em 0 0.35714em 1.14285em;\n }\n }\n\n /* Floated and aligned content (`right floated content`, `center aligned content`). Fomantic's:\n - `.ui.card [class*=\"right floated\"]`\n - `.ui.list .item > [class*=\"middle aligned\"].content`\n - the Items view's `.image + [class*=\"middle aligned\"].content` */\n .content[class*=\"left floated\"] {\n float: left;\n }\n .content[class*=\"right floated\"] {\n float: right;\n }\n .content[class*=\"left aligned\"] {\n text-align: left;\n }\n .content[class*=\"center aligned\"] {\n text-align: center;\n }\n .content[class*=\"right aligned\"] {\n text-align: right;\n }\n .content.justified {\n text-align: justify;\n }\n :host(:state(in-item)) > .content[class*=\"top aligned\"],\n .in-item.content[class*=\"top aligned\"] {\n align-self: flex-start;\n }\n :host(:state(in-item)) > .content[class*=\"middle aligned\"],\n .in-item.content[class*=\"middle aligned\"] {\n align-self: center;\n }\n :host(:state(in-item)) > .content[class*=\"bottom aligned\"],\n .in-item.content[class*=\"bottom aligned\"] {\n align-self: flex-end;\n }\n :host(:state(in-list)) > .content[class*=\"top aligned\"],\n .in-list.content[class*=\"top aligned\"] {\n vertical-align: top;\n }\n :host(:state(in-list)) > .content[class*=\"middle aligned\"],\n .in-list.content[class*=\"middle aligned\"] {\n vertical-align: middle;\n }\n :host(:state(in-list)) > .content[class*=\"bottom aligned\"],\n .in-list.content[class*=\"bottom aligned\"] {\n vertical-align: bottom;\n }\n\n /* List item showing an icon / image box of its own (`<ui-item icon>`, `UIItem.css`):\n the content is the table cell beside it, as after a slotted icon. */\n @container style(--_ui-item-media: 1) {\n :host(:state(in-list)) > .content {\n display: table-cell;\n width: 100%;\n padding: 0 0 0 var(--_ui-list-content-distance, 0.5em);\n vertical-align: var(--_ui-list-align, top);\n }\n }\n /* ... beside the `image` shorthand's `<img>` (`UIList.css` sets `image`): an inline block, Fomantic's\n `img.image + .content`. */\n @container style(--_ui-item-media: image) {\n :host(:state(in-list)) > .content {\n display: inline-block;\n width: auto;\n padding: 0 0 0 var(--_ui-list-content-distance, 0.5em);\n vertical-align: var(--_ui-list-align, top);\n }\n }\n\n /* Horizontal list: content inline, centred on the icon. */\n @container style(--_ui-list-layout: horizontal) {\n :host(:state(in-list)) > .content,\n .in-list.content,\n :host(:state(in-list):not(:first-child)) > .content,\n .in-list.content:not(:first-child) {\n display: inline-block;\n width: auto;\n vertical-align: var(--_ui-list-align, middle);\n }\n }\n\n /* Horizontal statistic: value and label on one line. */\n @container style(--_ui-statistic-layout: horizontal) {\n :host(:state(in-statistic)) > .value,\n .in-statistic.value {\n display: inline-block;\n font-size: var(--_ui-statistic-value-size, calc(var(--ui-font-size) * 3));\n vertical-align: middle;\n }\n :host(:state(in-statistic)) > .value.text,\n .in-statistic.value.text {\n min-height: 0;\n }\n :host(:state(in-statistic)) > .label,\n .in-statistic.label {\n display: inline-block;\n margin: 0 0 0 0.75em;\n vertical-align: middle;\n }\n }\n\n /* Stacked steps: centred content. */\n @container style(--_ui-step-layout: stacked) {\n :host(:state(in-step)) > .content,\n .in-step.content {\n text-align: center;\n }\n }\n\n /* Styled accordion: bordered titles, padded content. */\n @container style(--_ui-accordion-style: styled) {\n :host(:state(in-accordion)) > .title,\n .in-accordion.title {\n margin: 0;\n padding: 0.75em 1em;\n border-top: var(--ui-border-width) solid var(--ui-border-color);\n color: var(--ui-text-unselected);\n font-weight: var(--ui-font-weight-bold);\n transition:\n background var(--ui-duration-fast) var(--ui-ease),\n color var(--ui-duration-fast) var(--ui-ease);\n }\n :host(:state(in-accordion):first-child) > .title,\n .in-accordion.title:first-child {\n border-top: none;\n }\n :host(:state(in-accordion)) > .content,\n .in-accordion.content {\n margin: 0;\n padding: 0.5em 1em 1.5em;\n }\n }\n\n /* An image label's detail: a darker tab to the end edge. */\n @container style(--_ui-label-layout: image) {\n :host(:state(in-label)) > .detail,\n .in-label.detail {\n margin: -0.5833em -0.833em -0.5833em 0.5em;\n padding: 0.5833em 0.833em;\n border-radius: 0 var(--ui-radius) var(--ui-radius) 0;\n background: var(\n --_ui-label-detail-background,\n var(--ui-label-detail-background, oklch(from var(--ui-shadow-ink) l c h / 0.1))\n );\n opacity: 1;\n }\n }\n\n /* A date inside a feed summary: inline and small. */\n @container style(--_ui-part: summary) {\n :host(:state(in-feed)) > .date,\n .in-feed.date {\n display: inline-block;\n margin: 0 0 0 0.5em;\n padding: 0;\n color: var(--ui-feed-date-color, var(--ui-text-light));\n font-size: 0.85714em;\n font-style: normal;\n font-weight: var(--ui-font-weight-normal);\n }\n }\n}\n\n/*******************************\n States\n*******************************/\n\n@layer ui.components.parts.states {\n /* Disabled header */\n .ui.disabled.header {\n opacity: var(--_ui-header-disabled-opacity);\n }\n\n /* Step states: the active step's title in the link colour, a disabled step's text dimmed. */\n @container style(--_ui-step-state: active) {\n :host(:state(in-step)) > .title,\n .in-step.title {\n color: var(--_ui-step-active-title-color, var(--ui-link));\n }\n }\n @container style(--_ui-step-state: disabled) {\n :host(:state(in-step)) > :is(.title, .description),\n .in-step:is(.title, .description) {\n color: var(--ui-text-disabled);\n }\n }\n\n /* Styled accordion: hovered and open titles darken. */\n @container style(--_ui-accordion-style: styled) {\n :host(:state(in-accordion)) > .title:hover,\n .in-accordion.title:hover {\n color: var(--ui-text-color);\n }\n }\n @container style(--_ui-accordion-style: styled) and style(--_ui-accordion-open: 1) {\n :host(:state(in-accordion)) > .title,\n .in-accordion.title {\n color: var(--ui-text-selected);\n }\n }\n\n /* The highlighted search result. */\n @container style(--_ui-search-result: active) {\n :host(:state(in-search)) > :is(.title, .description),\n .in-search:is(.title, .description) {\n color: var(--ui-text-dark);\n }\n }\n}\n","import { Dynamic, type JSX } from \"@solidjs/web\"\n\n// Import directly to avoid circular import\nimport { protoMerged } from \"spell/ui/util\"\nimport { E } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { UIComponent } from \"spell/element\"\n\nimport partsCSS from \"spell/ui/components/ui-parts/UIParts.css?inline\"\n\n/****************\n * ### `PartComponent`\n * The base class of the generic content parts' components (`<ui-content>`, `<ui-header>`, `<ui-meta>` ...):\n * ONE element per part word, styled by its OWNER (`:state(in-card)`), never a `ui-card-header`.\n * - Owner: `PartContext` resolves the nearest owner whose vocabulary `ownsParts` this noun,\n * climbing the flat tree with a barrier at every non-part component,\n * and keeps `:state(in-<owner>)` on the DOM element.\n * - Markup: `<div class=\"<noun> [keyOnly ...]\" part=\"<noun>\"><slot></slot></div>`.\n * - Subclasses change the tag (`rootTag`: `<a>` for `link`, `<time>`, `<span>`), the time attribute and the content.\n * - An `<a>` root goes where the element's link goes (`UIComponent.linkTo`, `linkTarget`).\n * - `rootClass` is the class grammar (`[keyOnly ...] <noun>`, no `ui`).\n * - `--_ui-part`: `UIParts.css` declares it on the ROOT from the noun class, never on the DOM element --\n * a DOM element declaring it would be what its own root's `@container style(--_ui-part: summary)` queries,\n * so a date could never see the summary it sits in.\n * - Every part adopts `UIParts.css`; `elementSetup.isAPart` makes them transparent to other parts' climbs.\n * - The one element-core class that loads a family's file (`UIParts.css`):\n * every part family shares the sheet, so it lands in `core`.\n * It imports nothing else of `spell/ui/components`.\n ****************/\nexport abstract class PartComponent<V extends E.ComponentVocabulary = E.ComponentVocabulary> extends UIComponent<V> {\n @protoMerged static elementSetup: Partial<E.ElementSetup> = { styleSheets: { parts: partsCSS }, isAPart: true }\n\n /** Owner context for this part's noun. */\n readonly context = new E.PartContext({ domElement: this.domElement, noun: this.vocabulary.noun })\n\n ////////////////\n // ## Rendering\n ////////////////\n\n render(): JSX.Element {\n return (\n <Dynamic\n component={this.rootTag}\n class={this.rootClass}\n part={this.partForName(this.vocabulary.noun as E.PartName<V>)}\n href={this.rootTag === \"a\" ? this.linkTo : undefined}\n target={this.rootTag === \"a\" ? this.linkTarget : undefined}\n datetime={this.rootDatetime}\n tabindex={this.rootTabIndex}\n >\n {this.content()}\n </Dynamic>\n )\n }\n\n /**\n * Root element name; default `div`. Tracked.\n * - Named for the ROOT: `tag` would be a vocabulary's attribute getter.\n */\n protected get rootTag(): string {\n return \"div\"\n }\n\n /** `datetime` of a `<time>` root. Tracked. */\n protected get rootDatetime(): string | undefined {\n return undefined\n }\n\n /**\n * `tabindex` of the root, e.g. `0` for a scrolling region (keyboard users must reach it).\n * - Tracked.\n */\n protected get rootTabIndex(): number | undefined {\n return undefined\n }\n\n /** Root content; default the default slot. */\n protected content(): JSX.Element {\n return <slot />\n }\n}\n","import { E } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { state } from \"spell/element\"\n\n/****************\n * ### `RootSettings`\n * The settings each `<ui-root>` gives its subtree (icon packs, emoji names), by root element, and the lookup from any\n * element inside: the NEAREST root that sets a key wins, so a nested root inherits what it doesn't set.\n * - In `core`, not in the root's family: icons and emoji read it, and must never import `<ui-root>`.\n * - The lookup climbs the FLAT tree (`flatParentFor()`: slot, parent, shadow host), so an icon inside a component's\n * shadow root finds the root around the component.\n * - `generation` changes whenever a root's settings do: icons and emoji inside track it and redraw. Page-wide on\n * purpose: a root changing its packs is rare.\n * - STATIC and instance-free on purpose: ONE registry per page, which every root writes and every icon reads.\n ****************/\nexport class RootSettings {\n /** Bumped on every change; read it (tracked) to redraw when any root's settings change. */\n @state static accessor generation = 0\n\n /**\n * Set `root`'s settings (replacing its earlier ones) and bump `generation`.\n * - A state write: call it from an event handler, a promise callback or an effect's APPLY.\n */\n static set(root: Element, settings: RootSettingsValue) {\n RootSettings.byRoot.set(root, settings)\n RootSettings.generation += 1\n }\n\n /** Forget `root`'s settings (it left the page) and bump `generation`. */\n static delete(root: Element) {\n if (!RootSettings.byRoot.delete(root)) return\n RootSettings.generation += 1\n }\n\n /** `key` from the nearest root at or above `element` that sets it, else `undefined`. */\n static nearest<K extends keyof RootSettingsValue>(\n element: Element | undefined,\n key: K\n ): RootSettingsValue[K] | undefined {\n for (let current = element; current; current = E.flatParentFor(current)) {\n const value = RootSettings.byRoot.get(current)?.[key]\n if (value !== undefined) return value\n }\n return undefined\n }\n\n /**\n * Forget every root's settings, for tests; bumps `generation`, so icons and emoji redraw.\n * - A state write, like `set()`.\n */\n static reset() {\n RootSettings.byRoot = new WeakMap()\n RootSettings.generation += 1\n }\n\n ////////////////\n // ## Registry\n ////////////////\n\n /**\n * Root element => its settings.\n * - Not `readonly`: a `WeakMap` can't be cleared, so `reset()` replaces it.\n */\n private static byRoot = new WeakMap<Element, RootSettingsValue>()\n}\n\n/** What a `<ui-root>` sets for its subtree, looked up from any element inside it. */\nexport type RootSettingsValue = {\n /** Its icon packs, over the outer root's (or the page's `UI.icons`). */\n readonly icons?: E.IconPacks\n /** Its emoji name set (`cldr`, `fomantic`). */\n readonly emoji?: string\n}\n","import { createEffect, untrack, type Accessor } from \"solid-js\"\nimport { isServer, ssr } from \"@solidjs/web\"\n\nimport { E, UI } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { derived, state } from \"spell/element\"\n\n/****************\n * ### `IconGlyph`\n * An icon NAME (attribute, shorthand) turned into an `<svg>`, loaded through the icon packs the OWNER's element draws\n * from -- its nearest `<ui-root icons>`'s, else the page's (`UI.icons`) -- shared by `<ui-icon>` and every component's\n * `icon` shorthand, close / delete icons and the like.\n * - Starts from a cached template when the runtime is already loaded, so a cached icon draws in the first frame.\n * - Reloads when the name changes, when the element is (re)connected (it may have moved under another root), and\n * when any root's settings change (`RootSettings.generation`).\n * - A later request wins over an earlier, slower load.\n * - `svg` is a fresh `aria-hidden` clone per change; the box around it is the caller's.\n * - MUST be created under the element's owner: it creates an effect.\n * - Server render (`spell/ui/static`): `svg` is the SVG as markup, read synchronously through `serverMarkup`;\n * `svgTemplate` stays empty. It NEVER imports the server's code: that reaches it through the hook.\n ****************/\nexport class IconGlyph {\n /**\n * The pack's `<svg>` for the name, `undefined` until loaded (or for an unknown name); tracked.\n * - A shared TEMPLATE: NEVER insert it -- `svg` / `IconGlyph.draw()` clone it.\n */\n @state accessor svgTemplate: SVGSVGElement | undefined = undefined\n\n /** The component drawing this icon. */\n private readonly owner: IconGlyphOwner\n\n /** The icon name; tracked. */\n private readonly name: Accessor<string | undefined>\n\n /** Request counter, so a slower earlier load can't win. */\n private request = 0\n\n constructor({ owner, name }: IconGlyphProps) {\n this.owner = owner\n this.name = name\n if (isServer) return\n this.svgTemplate = untrack(() => IconGlyph.peek(owner.domElement, name()))\n // stays explicit: it reads its OWNER's members and a page-wide static, not this record's\n createEffect(\n () => ({ name: name(), connected: owner.isConnected, generation: E.RootSettings.generation }),\n ({ name: nameNow, connected }) => {\n if (connected || !this.request) void this.load(nameNow)\n }\n )\n }\n\n /**\n * A fresh `<svg>` to insert, or `undefined`; tracked.\n * - `@derived`, not plain: it CLONES the template, and a plain getter would hand each reader a new `<svg>`.\n * - Server: the SVG as markup, read now (no DOM to clone into, and the render is synchronous).\n */\n @derived\n get svg(): SVGSVGElement | undefined {\n if (isServer) return IconGlyph.serverSvg(this.owner.domElement, untrack(this.name))\n const template = this.svgTemplate\n return template ? IconGlyph.draw(template) : undefined\n }\n\n /**\n * Load `name`'s SVG; writes only if it is still the latest request.\n * - Never rejects (it's fire-and-forget): a runtime chunk that won't load draws no icon, not a page error.\n */\n private async load(name: string | undefined) {\n const request = ++this.request\n const template = name\n ? await UI.load()\n .then((ui) => IconGlyph.packsFor(this.owner.domElement, ui.icons).get(name))\n .catch(() => undefined)\n : undefined\n if (this.request === request) this.svgTemplate = template\n }\n\n ////////////////\n // ## Statics\n ////////////////\n\n /**\n * Server hook, set by `spell/ui/static` (`ServerRuntime`): an icon name => its SVG markup, from `packs`.\n * - Why a hook: the server reads SVG files from disk (`node:fs`), which browser code must never import.\n * - Static: one server runtime per process, installed before any element renders.\n */\n static serverMarkup?: (packs: E.IconPacks, name: string) => string | undefined\n\n /**\n * The icon packs `element` draws from: its nearest `<ui-root icons>`'s (`RootSettings`), else `page`.\n * - Static: components that draw icons without an `IconGlyph` (`<ui-dropdown>`'s options) ask it too.\n */\n static packsFor(element: Element, page: E.IconPacks): E.IconPacks {\n return E.RootSettings.nearest(element, \"icons\") ?? page\n }\n\n /**\n * An insertable, decorative copy of `template` (`aria-hidden`: the accessible name is the caller's).\n * - Static: pure, and used without an `IconGlyph` (`<ui-rating>`'s icons).\n */\n static draw(template: SVGSVGElement): SVGSVGElement {\n const svg = template.cloneNode(true) as SVGSVGElement\n svg.setAttribute(\"aria-hidden\", \"true\")\n return svg\n }\n\n /**\n * Server render: `name`'s SVG as `element` sees it (`serverMarkup`), as a node Solid's server build emits\n * verbatim (`ssr()`), `aria-hidden` like `draw()`'s; `undefined` without a hook, a name or an icon.\n * - Typed as the `<svg>` the browser branch returns: only ever inserted into JSX.\n */\n private static serverSvg(element: Element, name: string | undefined): SVGSVGElement | undefined {\n const page = (globalThis as E.RuntimeGlobal)[E.RUNTIME_KEY]?.icons\n if (!name || !page || !IconGlyph.serverMarkup) return undefined\n const markup = IconGlyph.serverMarkup(IconGlyph.packsFor(element, page), name)\n if (!markup) return undefined\n return ssr([markup.replace(SVG_OPEN, '<svg aria-hidden=\"true\"')]) as unknown as SVGSVGElement\n }\n\n /**\n * Cached template for `name` as `element` sees it, or `undefined` -- also before the runtime loads (or on a server).\n */\n private static peek(element: Element, name: string | undefined): SVGSVGElement | undefined {\n const page = (globalThis as E.RuntimeGlobal)[E.RUNTIME_KEY]?.icons\n return name && page ? IconGlyph.packsFor(element, page).peek(name) : undefined\n }\n}\n\n/** Constructor props for `IconGlyph`. */\nexport type IconGlyphProps = {\n /** the component drawing the icon */\n owner: IconGlyphOwner\n /** the icon name, e.g. `xmark`; `undefined` for none; tracked */\n name: Accessor<string | undefined>\n}\n\n/** What an `IconGlyph` needs of the component drawing it. */\nexport type IconGlyphOwner = {\n /** its element: where the climb to the nearest `<ui-root icons>` starts */\n readonly domElement: Element\n /** whether it's in the document (`UIComponent.isConnected`): a reconnect may mean another root */\n readonly isConnected: boolean\n}\n\n/** An SVG file's opening tag. */\nconst SVG_OPEN = /<svg\\b/\n","import { Show } from \"solid-js\"\nimport type { JSX } from \"@solidjs/web\"\n\nimport { E, UIT } from \"spell/ui/core\"\n\n/****************\n * ### `CloseButton`\n * THE close button of a box that closes: `<button class=\"close\" part=\"close\">`, its icon and its name,\n * drawn while the box can be closed.\n * - `<ui-message dismissible>`, `<ui-toast closable>`, `<ui-nag closable>`, a dialog's `closable`.\n * - A component holds one as a field, handed what differs, and draws it where it goes (`draw()`):\n * ```ts\n * readonly closeButton = new E.CloseButton({\n * owner: this,\n * shows: () => this.closable,\n * label: () => this.translationForKey(\"close\"),\n * part: this.partForName(\"close\"),\n * onClick: (event) => this.close(\"close\", event)\n * })\n * ```\n * - Its icon is `UIT.CLOSE_ICON`, loaded through the owner's icon packs (`IconGlyph`).\n * - MUST be created under the element's owner, as a field: its icon creates an effect.\n ****************/\nexport class CloseButton {\n /** What differs from box to box. */\n private readonly props: CloseButtonProps\n\n /** The icon, while it shows. */\n private readonly glyph: E.IconGlyph\n\n constructor(props: CloseButtonProps) {\n this.props = props\n this.glyph = new E.IconGlyph({ owner: props.owner, name: () => (props.shows() ? UIT.CLOSE_ICON : undefined) })\n }\n\n /** The button, while the box can be closed; nothing otherwise. */\n draw(): JSX.Element {\n const { shows, label, part, onClick } = this.props\n return (\n <Show when={shows()}>\n <button type=\"button\" class={UIT.CLOSE_CLASS} part={part} aria-label={label()} onClick={onClick}>\n {this.glyph.svg}\n </button>\n </Show>\n )\n }\n}\n\n/** What a `CloseButton` is made from. */\nexport type CloseButtonProps = {\n /** the component drawing it (its icon loads through the component's packs) */\n owner: E.IconGlyphOwner\n /** can the box be closed now? Tracked: the button shows while it can */\n shows: () => boolean\n /** its accessible name, in the page's language; tracked */\n label: () => string\n /** its `part`, translated on a translated tag (`partForName()`) */\n part: string\n /** what a click does: close the box */\n onClick: (event: MouseEvent) => void\n}\n","import { E } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { state } from \"spell/element\"\n\n/****************\n * ### `ClipboardCopy`\n * A copy button's job: text to the clipboard, then \"Copied\" for a moment.\n * - The copy itself is the kit's `copyText()` (`E.copyText()`), which works in VS Code's side bar too.\n * - Shared by `<ui-code>`'s copy button and `<ui-theme-editor>`'s Copy CSS.\n * - Reactive (`isCopied`), so a component draws from it: `this.clipboard.isCopied ? \"Copied\" : \"Copy\"`.\n ****************/\nexport class ClipboardCopy {\n /** Just copied, for `seconds`: the button says so. */\n @state accessor isCopied = false\n\n /** How long `isCopied` stays true, in seconds. */\n readonly seconds: number\n\n /** Pending end of `isCopied`. */\n private copiedTimer?: E.CancelablePromise<unknown>\n\n constructor({ seconds = DEFAULT_SECONDS }: { seconds?: number } = {}) {\n this.seconds = seconds\n }\n\n /**\n * Put `text` on the clipboard; true when it got there, and `isCopied` for `seconds`.\n * - A copy that's refused leaves `isCopied` as it was.\n * - NEVER throws\n */\n async copy(text: string): Promise<boolean> {\n if (!(await E.copyText(text))) return false\n this.isCopied = true\n this.copiedTimer?.cancel()\n this.copiedTimer = E.after(this.seconds, () => (this.isCopied = false))\n return true\n }\n}\n\n/** How long a copy button says \"Copied\" by default, in seconds. */\nconst DEFAULT_SECONDS = 2\n","import { E, UI } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { Disclosure } from \"spell/element\"\n\n/****************\n * ### `PopoverPanel`\n * The panel a control opens under itself: a dropdown's menu, a calendar's popup, a search's results,\n * an icon picker's grid (epic `coherence` P8), a shrinkable menu's overflow menu (P17).\n * - A `Disclosure` (the kit's `spell/element`): the open state, `request()` with the cancelable\n * `ui-opening` / `ui-closing`, `aria-expanded`; plus, on top, what every such panel does the same way:\n * - the box as a popover, shown in the top layer while it shows (`follow()`)\n * - its `UI.overlays` entry meanwhile: Escape and a click outside close it (`overlay`)\n * - the anchor it hangs from: a name of its own per element, written inline,\n * on the anchor box (`anchorStyle`: its `anchor-name`) and on the panel (`panelStyle`: its `position-anchor`);\n * so no control's sheet names an anchor, and the panel's place, size and look stay its sheet's\n * - What differs stays the component's: which box, what opening resets (`onChange`), where focus goes,\n * the panel's own place and size (its sheet).\n * - A component holds one as a field, and follows it in one `@onChange`:\n * ```ts\n * readonly popover = new F.PopoverPanel({ component: this, member: \"isOpen\", restoreFocus: false })\n *\n * @E.onChange(\"isOpen\", \"isConnected\", \"isReady\")\n * protected onOpenChanged(isOpen: boolean, isConnected: boolean, isReady: boolean) {\n * return this.popover.follow(this.menu, isOpen && isConnected && isReady)\n * }\n * ```\n * - In the `core` entry since epic `coherence` P17, beside `Disclosure`: a menu opens one too, and it has no value\n * (in `forms`, every page with a shrinkable menu would load the form controls' chunk).\n ****************/\nexport class PopoverPanel extends Disclosure {\n constructor(private readonly panelSetup: PopoverPanelSetup) {\n super(panelSetup)\n }\n\n /**\n * This element's `UI.overlays` entry, open while the panel shows:\n * Escape or a click outside asks it to close (`onDismiss`, else `close()`).\n */\n get overlay(): E.OverlayEntry {\n const { component, restoreFocus, onDismiss } = this.panelSetup\n return (this.overlayEntry ??= {\n element: component.domElement,\n kind: \"popover\",\n restoreFocus,\n onDismiss: onDismiss ?? (() => void this.close())\n })\n }\n private overlayEntry?: E.OverlayEntry\n\n /**\n * Show `box` as a popover, and open the overlay entry, while `isShowing`; returns what undoes both.\n * - For the component's `@onChange`, which runs it again as `isShowing` changes, and the cleanup in between.\n * - `isShowing`: open AND connected AND drawn, as the component decides\n * (`keepAlive` keeps a removed element's state, but the page must not keep its overlay entry).\n * - Nothing for a box that isn't a popover: a simple dropdown's menu, a server render's.\n */\n follow(box: HTMLElement | undefined, isShowing: boolean): (() => void) | undefined {\n if (!isShowing || !box || !box.popover) return undefined\n if (!box.matches(POPOVER_OPEN)) box.showPopover()\n const { overlay } = this\n UI.overlays.open(overlay)\n return () => {\n if (box.matches(POPOVER_OPEN)) box.hidePopover()\n UI.overlays.close(overlay)\n }\n }\n\n /** The anchor box's inline style: `{ \"anchor-name\": \"--ui-dropdown-7\" }`. */\n get anchorStyle(): Record<string, string> {\n return { \"anchor-name\": this.anchorName }\n }\n\n /** The panel's inline style: `{ \"position-anchor\": \"--ui-dropdown-7\" }`. */\n get panelStyle(): Record<string, string> {\n return { \"position-anchor\": this.anchorName }\n }\n\n /** The anchor's name: its own per element, from `UI.ids` on first read, so two controls never share one. */\n private get anchorName(): string {\n return (this.anchorId ??= `--${UI.ids.next(this.panelSetup.component.vocabulary.tag)}`)\n }\n private anchorId?: string\n}\n\n/** What a `PopoverPanel` is handed: a `Disclosure`'s setup, its component required. */\nexport type PopoverPanelSetup = E.DisclosureSetup & {\n /** the control: its element, its events, its tag for the anchor's name */\n component: E.UIComponent\n /** focus back where it was once closed (`OverlayEntry.restoreFocus`). Default: `true` */\n restoreFocus?: boolean\n /** Escape or a click outside: default `close()` */\n onDismiss?: E.OverlayEntry[\"onDismiss\"]\n}\n\n/** A popover in the top layer. */\nconst POPOVER_OPEN = \":popover-open\"\n","import type { E } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { DOMElement } from \"spell/element\"\n\n/****************\n * ### `DOMLoadableElement`\n * The DOM element of the components that show a text file (`<ui-include>`, `<ui-code>`, `<ui-markdown>`):\n * their script API, handed on to the component (a `LoadableComponent`).\n * - `content` -- the text shown now, edits included; set it to show other text (`dirty` until saved)\n * - `etag` -- version of the last load / save; `dirty` -- changed since then\n * - `loaded` -- resolves with the content once the CURRENT load is done (a new `source` starts a new one);\n * rejects when it fails\n * - `save(text?)` / `reload()` -- see `LoadableComponent`\n * - Works before the first render: a `content` set early is kept and shown once the component exists.\n * - Knows its component only as a `LoadableComponentShape` (`elements.types`):\n * NEVER imports `LoadableComponent`, which imports it.\n * - A family's subclass names its component class (`DOMCodeElement extends E.DOMLoadableElement<UICode>`).\n * - NOTE: `DOMElement` checks its members against the attributes' property names; none of these is an attribute.\n * - Private members too: NEVER call one `source` or `load` (instance fields would hide the attributes' accessors).\n ****************/\nexport class DOMLoadableElement<C extends LoadableComponentType = LoadableComponentType> extends DOMElement<C> {\n /** `content` set before the component existed; the component takes it */\n declare private pendingContent?: string\n\n /**\n * the current load's promise and how to settle it: made on first use (`currentLoad`)\n * - NO fields of its own in this class, only `declare`d ones: an element a root defined before its family\n * loaded never runs a field definition\n * (`DOMElement`, \"Defined early\")\n * - NOT named `load`: that's the `load` attribute's property\n */\n declare private openLoad?: ReturnType<typeof DOMLoadableElement.deferred>\n\n /** has the current load settled? `undefined` ~== `false` */\n declare private settled?: boolean\n\n ////////////////\n // ## Script API\n ////////////////\n\n /**\n * The text shown now, edits included; synchronous, even right after a set.\n * - Before the component exists: what was set early, else `\"\"`.\n */\n get content(): string {\n return this.component?.content ?? this.pendingContent ?? \"\"\n }\n\n /**\n * Show `text` instead of the source's, until `source` changes or `reload()`.\n * - `dirty` until saved; sends `ui-changed`.\n * - Before the component exists: kept, and shown once it does.\n */\n set content(text: string) {\n if (this.component) this.component.content = text\n else this.pendingContent = text\n }\n\n /** Version of the last load / save (the response's `ETag`); `undefined` before one, or when there was none. */\n get etag(): string | undefined {\n return this.component?.lastETag\n }\n\n /**\n * Changed since loaded / saved? The component's `isDirty`.\n * - Before the component exists: whether `content` was set early.\n */\n get dirty(): boolean {\n return this.component?.isDirty ?? this.pendingContent !== undefined\n }\n\n /**\n * Resolves with the content once the CURRENT load is done; rejects when it fails.\n * - A new `source` starts a new load, and a new promise: read `loaded` after changing it.\n */\n get loaded(): Promise<string> {\n return this.currentLoad.promise\n }\n\n /**\n * Save `text` (default the content) back to `source`; resolves `true` once saved here (`LoadableComponent.save()`).\n * - Before the component exists: `false`, nothing saved.\n */\n save(text?: string): Promise<boolean> {\n return this.component?.save(text) ?? Promise.resolve(false)\n }\n\n /**\n * Fetch `source` again past the cache, dropping edits; resolves with the new content.\n * - Before the component exists: `loaded`.\n */\n reload(): Promise<string> {\n return this.component?.reload() ?? this.currentLoad.promise\n }\n\n ////////////////\n // ## For the component\n ////////////////\n\n /** `content` set before the component existed, once; `undefined` when none was. */\n takePendingContent(): string | undefined {\n const text = this.pendingContent\n this.pendingContent = undefined\n return text\n }\n\n /** A new load started: `loaded` becomes a new promise, unless the current one is still waiting. */\n beginLoad() {\n if (!this.settled) return\n this.openLoad = DOMLoadableElement.deferred()\n this.settled = false\n }\n\n /** The current load: made on first use. */\n private get currentLoad() {\n return (this.openLoad ??= DOMLoadableElement.deferred())\n }\n\n /** The current load is done with `text`. */\n endLoad(text: string) {\n this.settled = true\n this.currentLoad.resolve(text)\n }\n\n /** The current load failed with `error`. */\n failLoad(error: unknown) {\n this.settled = true\n this.currentLoad.reject(error)\n }\n\n /**\n * A promise with its settle functions.\n * - Its rejection is pre-handled: a failure nobody awaits must not be an \"unhandled rejection\".\n * A caller awaiting `loaded` still sees it.\n * - Static: needs no DOM element.\n */\n private static deferred() {\n let resolve!: (text: string) => void\n let reject!: (error: unknown) => void\n const promise = new Promise<string>((yes, no) => {\n resolve = yes\n reject = no\n })\n promise.catch(() => {})\n return { promise, resolve, reject }\n }\n}\n\n/** What a `DOMLoadableElement`'s component is: a component, with the `LoadableComponentShape` API. */\ntype LoadableComponentType = E.UIComponent<any> & E.LoadableComponentShape\n","import { untrack } from \"solid-js\"\nimport { isServer, type JSX } from \"@solidjs/web\"\n\n// Import directly to avoid circular import\nimport { lazy, proto, protoMerged } from \"spell/ui/util\"\nimport { E, UI, type UIT } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { UIComponent, cssState, watches, onChange, state, untracked } from \"spell/element\"\n// Import directly to avoid circular import\nimport { DOMLoadableElement } from \"./DOMLoadableElement\"\nimport { SOURCE_LOADER_TAG, SOURCE_MESSAGE_TAG } from \"./elements.types\"\n\n/****************\n * ### `LoadableComponent`\n * The base class of the components that show a text file: `<ui-include>`, `<ui-code>`, `<ui-markdown>`.\n * - It owns where the text comes from, the loading / error look, and saving.\n * A subclass only says how to show the text (`renderContent()`, reading `textToShow`).\n * - Its DOM element is a `DOMLoadableElement`, with the script API (`content`, `loaded`, `save()` ...).\n * - Text comes from, first match wins:\n * 1. `domElement.content = \"...\"` (`wasEdited`), until `source` changes or `reload()`\n * 2. `source`: fetched through `UI.sources` (same origin only), when `load` says (`eager`, `visible`, `idle`)\n * 3. the DOM element's own content (`wantsInlineContent`), dedented, followed as it changes (`@watches`):\n * a `<script type=\"text/...\">` child (exact text), else a `<template>` child (its markup),\n * else the DOM element's text\n * - States:\n * - `:state(loading)`: a `<ui-loader>` shows\n * - `:state(error)`: a `<ui-message>` says why, unless the cancelable `ui-error` was cancelled\n * - `:state(saving)`, `:state(dirty)`\n * - Saving (`save()`): the cancelable `ui-saving` first, then `UI.sources.save()` through the page's saver;\n * `ui-saved` or `ui-error` after.\n * - A save failure never replaces the content with a message.\n * - The vocabulary MUST spread the names used here:\n * `UIT.SourceAttributes` / `SourceEvents` / `SourceParts` / `SourceStates` / `SourceTexts`.\n * - The family barrel MUST import `ui-loader` and `ui-message` (built here by tag, see `SOURCE_LOADER_TAG`).\n * - A moved element keeps its content: reconnecting doesn't fetch again (`keepAlive`).\n * - Imports the core as `E` / `UI` / `UIT`, except what its class definition reads:\n * the base class, `elementSetup.DOMElement`, the decorators and the status tags come directly\n * (WWOD §4 › \"Circular imports\").\n * - NEVER a value from `spell/ui/components`: the vocabulary pieces it relies on (`UIT.Source*`) only as types.\n ****************/\nexport abstract class LoadableComponent<V extends E.ComponentVocabulary = E.ComponentVocabulary>\n extends UIComponent<V>\n implements E.LoadableComponentShape\n{\n /**\n * Read the DOM element's own content as the text when there's no `source`?\n * - See `@proto static wantsInlineContent`.\n */\n declare wantsInlineContent: boolean\n\n // NOTE: `this.domElement as DOMLoadableElement` below, not a `declare readonly domElement: DOMLoadableElement`:\n // two field initializers here read it,\n // and TypeScript refuses those as \"used before its initialization\" (TS2729)\n @protoMerged static elementSetup: Partial<E.ElementSetup> = {\n // with the script API (`content`, `save()`, `loaded` ...)\n DOMElement: DOMLoadableElement\n }\n\n /**\n * Read the DOM element's own content as the text when there's no `source`.\n * - `false` for `<ui-include>`, whose children are a placeholder shown until the include loads.\n */\n @proto static wantsInlineContent = true\n\n /** `source`: URL of the file to show, as written; the vocabulary's getter (`UIT.SourceAttributes`). */\n declare source: string | undefined\n\n /**\n * `load`: when to fetch `source`; `undefined` for a value the vocabulary doesn't know.\n * - The vocabulary's getter, as `source`.\n */\n declare load: UIT.SourceLoadMode | undefined\n\n ////////////////\n // ## The text\n ////////////////\n\n /**\n * The DOM element's own content as text, dedented (`wantsInlineContent`); follows it as the page changes it.\n * - `\"\"` on a server, and for a class that doesn't want inline content.\n */\n @watches({ childList: true, characterData: true, subtree: true })\n get inlineText(): string {\n return isServer || !this.wantsInlineContent ? \"\" : LoadableComponent.inlineTextOf(this.domElement)\n }\n\n /** Last text fetched from `source`. */\n @state accessor fetchedText: string | undefined = undefined\n\n /** Text set through `domElement.content`, shown instead of the source's; `undefined` when none. */\n @state accessor wasEdited: string | undefined = (this.domElement as DOMLoadableElement).takePendingContent()\n\n /** The text to show: edits, else the fetched source, else the DOM element's own content. */\n get textToShow(): string {\n const edited = this.wasEdited\n if (edited !== undefined) return edited\n return this.source ? (this.fetchedText ?? \"\") : this.inlineText\n }\n\n /** The text shown now, edits included; the script API's (`DOMLoadableElement.content`). */\n get content(): string {\n return untrack(() => this.textToShow)\n }\n\n /** Show `text` instead (`isDirty` until saved); sends `ui-changed`. */\n set content(text: string) {\n if (text === this.content) return\n this.wasEdited = text\n this.isDirty = true\n this.sendSourceEvent(E.SourceEvent.change, { content: text })\n }\n\n ////////////////\n // ## Loading\n ////////////////\n\n /** Where loading is. */\n @state accessor loadStatus: E.SourceStatus = E.SourceStatus.idle\n\n /** Is `source` loading? `:state(loading)`. */\n @cssState(\"loading\")\n get isLoading(): boolean {\n return this.loadStatus === E.SourceStatus.loading\n }\n\n /** When to fetch: `load`, default `eager` (also for a value the vocabulary doesn't know). */\n protected get loadingPolicy(): UIT.SourceLoadMode {\n return this.load ?? \"eager\"\n }\n\n /**\n * `source` the current content belongs to; a different one drops edits.\n * - Not reactive: nothing renders it.\n */\n private contentSource: E.URLString | undefined\n\n /** `source` whose text is in `fetchedText`; reconnecting with the same one fetches nothing. */\n private fetchedSource: E.URLString | undefined\n\n /** The next fetch skips the cache (`reload()`). */\n private isFresh = false\n\n /** Stops the scheduled / running load. */\n private stopLoading: (() => void) | undefined\n\n /**\n * `source`, `load` or the connection changed: stop the old load, schedule the new one; disconnected, nothing.\n * - Returns the stop, run before the next change.\n */\n @onChange(\"source\", \"loadingPolicy\", \"isConnected\")\n protected onSourceChanged(source: string | undefined, policy: UIT.SourceLoadMode, isConnected: boolean) {\n if (!isConnected) return\n this.stopLoading = this.scheduleLoad(source || undefined, policy)\n return () => {\n this.stopLoading?.()\n this.stopLoading = undefined\n }\n }\n\n /**\n * Start showing `source` (or the inline content) as `policy` says; returns how to stop.\n * - A new `source` drops edits and starts a new `domElement.loaded`.\n * - The same one already fetched does nothing (a reconnect).\n */\n private scheduleLoad(source: E.URLString | undefined, policy: UIT.SourceLoadMode): (() => void) | undefined {\n const domElement = this.domElement as DOMLoadableElement\n if (source !== this.contentSource) {\n this.contentSource = source\n this.dropEdits()\n domElement.beginLoad()\n }\n if (!source) {\n this.loadStatus = E.SourceStatus.loaded\n this.loadError = undefined\n E.afterSolidUpdate(() => this.onLoaded(this.textToShow))\n return undefined\n }\n if (source === this.fetchedSource && !this.isFresh) return undefined\n try {\n this.checkSource(source)\n } catch (error) {\n this.onLoadError(error)\n return undefined\n }\n const controller = new AbortController()\n let undo: (() => void) | undefined\n const start = () => {\n undo?.()\n undo = undefined\n void this.fetchSource(source, controller.signal)\n }\n if (policy === \"visible\") {\n void UI.load().then(() => {\n if (!controller.signal.aborted) undo = UI.visibility.observe(this.domElement, { onOnScreen: start, once: true })\n })\n } else if (policy === \"idle\" && typeof requestIdleCallback === \"function\") {\n const id = requestIdleCallback(start)\n undo = () => cancelIdleCallback(id)\n } else start()\n return () => {\n controller.abort()\n undo?.()\n }\n }\n\n /** Fetch `source` into `fetchedText`; failures become the error state. */\n private async fetchSource(source: E.URLString, signal: AbortSignal) {\n this.loadStatus = E.SourceStatus.loading\n this.loadError = undefined\n const fresh = this.isFresh\n this.isFresh = false\n try {\n const ui = await UI.load()\n const loaded = await ui.sources.load(source, { signal, fresh })\n this.fetchedSource = source\n this.fetchedText = loaded.text\n this.lastETag = loaded.etag\n this.loadStatus = E.SourceStatus.loaded\n this.onLoaded(loaded.text)\n } catch (error) {\n if (signal.aborted) return\n this.onLoadError(error)\n }\n }\n\n /**\n * Content arrived: settle `domElement.loaded`, then `ui-loaded`.\n * - An edit, when there is one, wins as the content.\n */\n @untracked\n private onLoaded(text: string) {\n const content = this.wasEdited ?? text\n ;(this.domElement as DOMLoadableElement).endLoad(content)\n this.sendSourceEvent(E.SourceEvent.load, { source: this.source || undefined, content })\n }\n\n /** Fetch `source` again past the cache, dropping edits; resolves with the new content. */\n @untracked\n reload(): Promise<string> {\n const domElement = this.domElement as DOMLoadableElement\n const source = this.source || undefined\n this.dropEdits()\n if (!source) return domElement.loaded\n this.stopLoading?.()\n domElement.beginLoad()\n this.isFresh = true\n this.fetchedSource = undefined\n this.stopLoading = this.scheduleLoad(source, \"eager\")\n return domElement.loaded\n }\n\n ////////////////\n // ## Errors\n ////////////////\n\n /**\n * What the error message says; `undefined` when there's none to show.\n * - Holds `render` failures too, and stays `undefined` when an app cancelled `ui-error`.\n */\n @state accessor loadError: E.SourceFailure | undefined = undefined\n\n /** Did loading (or showing) fail? `:state(error)`. */\n @cssState(\"error\")\n get hasError(): boolean {\n return this.loadStatus === E.SourceStatus.error\n }\n\n /** The error message's text, or `undefined`. */\n get errorText(): string | undefined {\n const failure = this.loadError\n if (!failure) return undefined\n const key = E.SOURCE_FAILURE_KEYS[failure.kind] ?? E.SOURCE_FAILURE_KEYS.load\n return this.translationForKey(key as E.TextKey<V>, { source: this.source ?? \"\" })\n }\n\n /**\n * Loading or showing failed: `ui-error`, then the message unless it was cancelled.\n * - Subclasses call it for `render` failures (bad markup, an unknown language ...).\n */\n @untracked\n protected onLoadError(error: unknown, kind: E.SourceErrorKind = \"load\") {\n const reason = E.SourceError.kindFor(error, kind)\n this.loadStatus = E.SourceStatus.error\n ;(this.domElement as DOMLoadableElement).failLoad(error)\n const source = this.source || undefined\n const isShown = this.sendSourceEvent(E.SourceEvent.error, { kind: reason, source, error })\n if (isShown) this.loadError = { kind: reason, error }\n }\n\n ////////////////\n // ## Saving\n ////////////////\n\n /** A save is in progress. `:state(saving)`. */\n @cssState(\"saving\")\n @state\n accessor isSaving = false\n\n /** Content changed since it was loaded or saved. `:state(dirty)`; the script API's `dirty`. */\n @cssState(\"dirty\")\n @state\n accessor isDirty = this.wasEdited !== undefined\n\n /** Version of the last load / save (`ETag`); `undefined` before one, or when the server sent none. */\n lastETag: string | undefined\n\n /**\n * Save `text` (default the content) back to `source`; resolves `true` once saved HERE.\n * - `text` given: shown first, as setting `content`.\n * - The cancelable `ui-saving` first: cancelled -> `false` (the listener saves).\n * - No `source`: nothing to write -- the content stays, `ui-saved`, `true`.\n * - Else `UI.sources.save()` (`fragment`: `saveFragment()`), then\n * - `ui-saved` with the new `etag`\n * - or `ui-error` (`save`, `conflict`, `no-saver` ...) and `false`\n * - The content stays either way.\n */\n @untracked\n async save(text?: string): Promise<boolean> {\n if (text !== undefined) this.content = text\n const { content, lastETag: etag } = this\n const source = this.source || undefined\n if (!this.sendSourceEvent(E.SourceEvent.save, { source, content, etag })) return false\n if (!source) {\n this.isDirty = false\n this.sendSourceEvent(E.SourceEvent.saved, { source })\n return true\n }\n this.isSaving = true\n try {\n const ui = await UI.load()\n const result = await ui.sources.save({ url: source, text: content, etag, fragment: this.saveFragment() })\n this.lastETag = result.etag\n this.isDirty = false\n this.sendSourceEvent(E.SourceEvent.saved, { source, etag: result.etag })\n return true\n } catch (error) {\n const kind = E.SourceError.kindFor(error, \"save\")\n this.sendSourceEvent(E.SourceEvent.error, { kind, source, error })\n return false\n } finally {\n this.isSaving = false\n }\n }\n\n /** Forget edits: a new `source`, or `reload()`. */\n private dropEdits() {\n this.wasEdited = undefined\n this.isDirty = false\n }\n\n ////////////////\n // ## Rendering\n ////////////////\n\n /** The shown text, as the subclass shows it. */\n protected abstract renderContent(): JSX.Element\n\n render(): JSX.Element {\n return (\n <>\n {this.isLoading ? this.loader() : undefined}\n {this.errorText ? this.errorMessage() : undefined}\n {this.renderContent()}\n </>\n )\n }\n\n /**\n * The `<ui-loader>` shown while loading.\n * - Built once, by the DOM (`statusElement()`: Solid's JSX has no types for our tags).\n * - Each time it shows, its `aria-label` says what's loading (\"Loading <source>\").\n */\n private loader(): HTMLElement {\n const loader = this.loaderElement\n loader.setAttribute(\n \"aria-label\",\n this.translationForKey(\"sourceLoading\" as E.TextKey<V>, { source: this.source ?? \"\" })\n )\n return loader\n }\n\n /** The loader, built on first use. */\n @lazy private get loaderElement(): HTMLElement {\n return this.statusElement(SOURCE_LOADER_TAG, \"loader\")\n }\n\n /** The `<ui-message>` shown on failure, built once as the loader is; its text follows `errorText`. */\n private errorMessage(): HTMLElement {\n const message = this.errorElement\n message.textContent = this.errorText ?? \"\"\n return message\n }\n\n /** The error message, built on first use. */\n @lazy private get errorElement(): HTMLElement {\n return this.statusElement(SOURCE_MESSAGE_TAG, \"error\")\n }\n\n /** A `<ui-loader>` or `<ui-message>` with part `part`, and the attributes `STATUS_ATTRIBUTES` gives its tag. */\n private statusElement(tag: keyof typeof STATUS_ATTRIBUTES, part: string): HTMLElement {\n const element = this.domElement.ownerDocument.createElement(tag)\n element.setAttribute(\"part\", this.partForName(part as never))\n for (const [name, value] of Object.entries(STATUS_ATTRIBUTES[tag])) element.setAttribute(name, value)\n return element\n }\n\n ////////////////\n // ## Subclass hooks\n ////////////////\n\n /**\n * Hook, checked before fetching: throws when this element must NOT load `source`; default never.\n * - Throws a `SourceError`, its `kind` the failure's.\n * - `<ui-include>`: a cycle (an include inside an include of the same file).\n */\n protected checkSource(_source: string) {}\n\n /** `id` of the one element a save replaces (`<ui-include selector>`); default the whole file. */\n protected saveFragment(): string | undefined {\n return undefined\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /** `send()` for the shared source events (`E.SourceEvent`), which every source vocabulary spreads. */\n protected sendSourceEvent(name: E.SourceEventName, detail: object): boolean {\n return (this.send as (name: string, detail: object) => boolean)(name, detail)\n }\n\n ////////////////\n // ## Statics\n ////////////////\n\n /**\n * `domElement`'s own content as text, dedented:\n * a `<script type=\"text/...\">` child's exact text, else a `<template>` child's markup, else the DOM element's text.\n * - Static: the native fallbacks (`ui-code`, `ui-markdown`) read the same text, without a component.\n * - `localName`, not `instanceof HTMLScriptElement`:\n * shared code never names a DOM global (`AGENTS.md` \"Solid authoring\" › SSR).\n */\n static inlineTextOf(domElement: HTMLElement): string {\n let text = domElement.textContent ?? \"\"\n for (const child of domElement.children) {\n if (child.localName === \"script\" && (child as HTMLScriptElement).type.startsWith(\"text/\")) {\n text = (child as HTMLScriptElement).text\n break\n }\n if (child.localName === \"template\") {\n text = child.innerHTML\n break\n }\n }\n return LoadableComponent.dedent(text)\n }\n\n /**\n * `text` without its common indent, and without blank first / last lines:\n * inline content is indented with the page's markup.\n * - Tabs and spaces count one each; blank lines don't set the indent.\n * - Static: pure text, no element needed.\n */\n static dedent(text: string): string {\n const lines = text.replace(/\\r\\n?/g, \"\\n\").split(\"\\n\")\n while (lines.length && !lines[0].trim()) lines.shift()\n while (lines.length && !lines[lines.length - 1].trim()) lines.pop()\n let indent = Infinity\n for (const line of lines) if (line.trim()) indent = Math.min(indent, line.length - line.trimStart().length)\n if (!Number.isFinite(indent) || indent === 0) return lines.join(\"\\n\")\n return lines.map((line) => line.slice(Math.min(indent, line.length - line.trimStart().length))).join(\"\\n\")\n }\n}\n\n/**\n * Attributes each status element gets, by tag:\n * - the loader: shown (`visible`), in the text flow (`inline`), centred (`centered`)\n * - the message: the error look (`state=\"error\"`)\n */\nconst STATUS_ATTRIBUTES = {\n [SOURCE_LOADER_TAG]: { visible: \"\", inline: \"\", centered: \"\" },\n [SOURCE_MESSAGE_TAG]: { state: \"error\" }\n} as const\n","import { E } from \"spell/ui/core\"\n\n/****************\n * ### `SourceMarkup`\n * Fetched HTML made ready for this page -- what `<ui-include>` and the source BODIES of `<ui-section>` /\n * `<ui-accordion>` (`LoadableBody`) share, so markup from a file goes in the same way everywhere.\n * - `parse()`: the file's `<body>` content (or its first `select` match) as a fragment of THIS document; parsed by\n * `DOMParser`, so its scripts never run and its `<head>` is dropped.\n * - `rewriteUrls()`: relative `href` / `src` / `action` / `poster` / `source` point where they did in the file;\n * each original is kept beside it (`data-ui-include-*`), which `restoreUrls()` puts back.\n * - `checkNesting()`: throws for a source inside a source of the same file, or nested deeper than `MAX_DEPTH`.\n * - Static only: plain DOM, no Solid, no state. Imports no element class: `UIInclude` and `LoadableBody` call it.\n ****************/\nexport class SourceMarkup {\n /**\n * `text`'s markup as a fragment of `page`: `<body>`'s content or the first `select` match, URLs rewritten against\n * `source`.\n * - Throws a `render` `SourceError` for a selector that's invalid or matches nothing.\n */\n static parse(text: string, { page, source, select }: SourceMarkupOptions): DocumentFragment {\n const parsed = new DOMParser().parseFromString(text, \"text/html\")\n let nodes: Node[]\n if (select) {\n let match: Element | null\n try {\n match = parsed.querySelector(select)\n } catch (error) {\n throw new E.SourceError(`SourceMarkup.parse(): \"${select}\" isn't a CSS selector; fix \\`select\\``, {\n cause: { kind: \"render\", error }\n })\n }\n if (!match) {\n throw new E.SourceError(\n `SourceMarkup.parse(): nothing in ${source ?? \"the content\"} matches \"${select}\"; fix \\`select\\``,\n { cause: { kind: \"render\" } }\n )\n }\n nodes = [match]\n } else nodes = [...parsed.body.childNodes]\n const fragment = page.createDocumentFragment()\n for (const node of nodes) fragment.append(page.importNode(node, true))\n if (source) SourceMarkup.rewriteUrls(fragment, source, page)\n return fragment\n }\n\n /**\n * Point relative URLs in `root` where they pointed in `source`, keeping each original beside it.\n * - Skips `#hash` links and URLs that resolve the same against the page.\n */\n static rewriteUrls(root: ParentNode, source: string, page: Document) {\n const base = new URL(source, page.baseURI)\n for (const element of root.querySelectorAll(E.URL_SELECTOR)) {\n for (const name of E.URL_ATTRIBUTES) {\n const value = element.getAttribute(name)\n if (value === null || value.startsWith(\"#\")) continue\n let absolute: string\n try {\n absolute = new URL(value, base).href\n } catch {\n continue\n }\n if (absolute === new URL(value, page.baseURI).href) continue\n element.setAttribute(E.ORIGINAL_PREFIX + name, value)\n element.setAttribute(name, absolute)\n }\n }\n }\n\n /** Every rewritten URL under `root` back as written, the kept originals removed (for saving). */\n static restoreUrls(root: ParentNode) {\n for (const element of root.querySelectorAll(\"*\")) {\n for (const name of E.URL_ATTRIBUTES) {\n const original = element.getAttribute(E.ORIGINAL_PREFIX + name)\n if (original === null) continue\n element.setAttribute(name, original)\n element.removeAttribute(E.ORIGINAL_PREFIX + name)\n }\n }\n }\n\n /**\n * Throws a `render` `SourceError` when `domElement` must NOT load `source`: an enclosing source of the same file (it\n * would include itself), or more than `MAX_DEPTH` enclosing sources.\n * - `counts` says which ancestors are sources (`<ui-include>`: other includes; a body: anything with `source`).\n * - Climbs out of shadow roots.\n */\n static checkNesting(domElement: Element, source: string, counts: (element: Element) => boolean) {\n const base = domElement.ownerDocument.baseURI\n const url = new URL(source, base).href\n let depth = 0\n for (let node = SourceMarkup.parentFor(domElement); node; node = SourceMarkup.parentFor(node)) {\n if (!counts(node)) continue\n depth++\n const outer = node.getAttribute(E.SOURCE_ATTRIBUTE)\n if (outer && new URL(outer, base).href === url) {\n throw new E.SourceError(\n `SourceMarkup.checkNesting(): ${source} includes itself; point \\`source\\` elsewhere`,\n {\n cause: { kind: \"render\" }\n }\n )\n }\n }\n if (depth >= E.MAX_DEPTH) {\n throw new E.SourceError(\n `SourceMarkup.checkNesting(): ${source} is nested more than ${E.MAX_DEPTH} sources deep; look for a cycle`,\n { cause: { kind: \"render\" } }\n )\n }\n }\n\n /**\n * `element`'s parent in the DOM tree, stepping out of shadow roots; `undefined` at the top.\n * - The DOM tree, NOT the flat tree (`flatParentFor()`): the enclosing sources are the markup's ancestors,\n * whatever slot it's shown in.\n * - `nodeType`, never `instanceof ShadowRoot` / `Element`: the static render's DOM elements are linkedom elements\n * (`AGENTS.md` \"Solid authoring\" › SSR).\n */\n private static parentFor(element: Element): Element | undefined {\n const parent = element.parentNode\n if (parent?.nodeType === E.NodeType.element) return parent as Element\n if (parent?.nodeType === E.NodeType.documentFragment) return (parent as Partial<ShadowRoot>).host\n return undefined\n }\n}\n\n/** Options of `SourceMarkup.parse()`. */\nexport type SourceMarkupOptions = {\n /** the document the fragment is for */\n page: Document\n /** `source` as written: URLs are rewritten against it, errors name it */\n source?: string\n /** CSS selector: only its first match goes in */\n select?: string\n}\n","import { E, UI } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { state, untracked } from \"spell/element\"\n\n/****************\n * ### `LoadableBody`\n * The content of a `<ui-section source>` or `<ui-accordion source>`, fetched the first time it opens,\n * so a long page can ship as a SKELETON (every title) and load each body on demand.\n * - One per owning element, which says WHEN (`load()` once it opens) and WHERE (`target()`).\n * - This does the rest, in the owner's LIGHT DOM, so the page's CSS reaches it.\n * - Fetched through `UI.sources` (same origin only, cached per URL: the path `<ui-include>` takes).\n * - Parsed by `SourceMarkup`: `<body>` or the `select` match, scripts inert, relative URLs rewritten against `source`.\n * - Insert: replaces the target's PLACEHOLDER,\n * every child but an element with a `slot` attribute (a section's header, icon, badge ... stay);\n * on `reload()`, replaces the body it put there before too.\n * - Events through the owner:\n * - `ui-loading` as it starts, `ui-loaded` once the body is in\n * - the cancelable `ui-error` on failure, after which `loadError` holds what to say (unless cancelled)\n * - a failure isn't remembered: the next `load()` tries again\n * - `isVeiled`: the owner keeps its content box closed while it's true,\n * so an opening section or panel shows the body, not the placeholder, and animates once.\n * - It turns false when the body arrives, on failure, or after `SOURCE_BODY_HOLD_MS`\n * (then `isOverdue`: the owner shows its loading look over the placeholder).\n * - Only before the FIRST body: a `reload()` (the live update) keeps the old body shown\n * until the new one replaces it in place,\n * so an open section doesn't blink, and its controls keep the focus.\n * - The families of `ui-*` tags in the body are NOT loaded here: light DOM is the page's,\n * so whatever defines the page's tags (a `<ui-root>`, which watches its subtree, or a bundle) defines these too.\n * - NOTE: a cycle (a body holding a source of its own file) or nesting deeper than `MAX_DEPTH` is a `render` error.\n * - Knows its owner only as a `LoadableBodyOwner` (`elements.types`): NEVER imports a component.\n ****************/\nexport class LoadableBody {\n /** Where the body is (`LoadableComponent`'s name for the same). */\n @state accessor loadStatus: E.SourceStatus = E.SourceStatus.idle\n\n /** The load has taken longer than `SOURCE_BODY_HOLD_MS`: stop holding the content box closed. */\n @state accessor isOverdue = false\n\n /** What the error line says; `undefined` when there's none to show. */\n @state accessor loadError: E.SourceFailure | undefined = undefined\n\n /** A body has been inserted: nothing to hold closed for any more. */\n @state accessor hasShownABody = false\n\n /** The element whose body this is. */\n private readonly owner: E.LoadableBodyOwner\n\n /** The current load (in flight, or done for `pendingKey`). */\n private pending?: Promise<void>\n\n /** `source` + `select` of `pending`. */\n private pendingKey?: string\n\n /** Counts loads: a newer one makes an older one's result moot. */\n private generation = 0\n\n /** Nodes the last insert put in the target, removed by the next one. */\n private inserted: ChildNode[] = []\n\n /** The body of `owner`, which calls `load()` once it opens. */\n constructor(owner: E.LoadableBodyOwner) {\n this.owner = owner\n }\n\n ////////////////\n // ## State\n ////////////////\n\n /** Hold the content box closed? True while the FIRST body is on its way and not `isOverdue`; tracked. */\n get isVeiled(): boolean {\n if (this.hasShownABody) return false\n const status = this.loadStatus\n return (status === E.SourceStatus.idle || status === E.SourceStatus.loading) && !this.isOverdue\n }\n\n /** Is a load in flight and past `SOURCE_BODY_HOLD_MS`? The owner's loading look; tracked. */\n get isBusy(): boolean {\n return this.loadStatus === E.SourceStatus.loading && this.isOverdue\n }\n\n ////////////////\n // ## Loading\n ////////////////\n\n /**\n * Fetch and insert the body for the current `source` (and `select`), once:\n * the same promise until either changes.\n * - Rejects when it fails.\n * - No `source`: resolves at once, nothing changes.\n * - Untracked: a load never follows `source` / `select` (the owner says when to load),\n * so the owner's `source()` / `select()` read plainly.\n */\n @untracked\n load(): Promise<void> {\n const source = this.owner.source()\n if (!source) return Promise.resolve()\n const select = this.owner.select()\n if (this.pending && this.pendingKey === LoadableBody.key(source, select)) return this.pending\n return this.start({ source, select, fresh: false })\n }\n\n /**\n * Fetch the body again past the cache, and replace the one inserted; resolves once it's in.\n * - Untracked, as `load()`.\n */\n @untracked\n reload(): Promise<void> {\n const source = this.owner.source()\n if (!source) return Promise.resolve()\n return this.start({ source, select: this.owner.select(), fresh: true })\n }\n\n /** A new load, replacing any in flight. */\n private start(request: BodyLoad): Promise<void> {\n const generation = ++this.generation\n this.pendingKey = LoadableBody.key(request.source, request.select)\n this.loadStatus = E.SourceStatus.loading\n this.loadError = undefined\n this.owner.send(E.SourceEvent.loading, { source: request.source })\n this.isOverdue = false\n const timer = E.after(E.SOURCE_BODY_HOLD_MS / 1000, () => {\n if (generation === this.generation) this.isOverdue = true\n })\n const load = this.fetch(request, generation).finally(() => timer.cancel())\n this.pending = load\n // a failure isn't remembered: the next `load()` tries again\n load.catch(() => {\n if (this.pending === load) this.pending = undefined\n })\n return load\n }\n\n /** Fetch, parse and insert; a newer load (`generation`) since makes this one quietly do nothing. */\n private async fetch({ source, select, fresh }: BodyLoad, generation: number) {\n const { domElement } = this.owner\n try {\n E.SourceMarkup.checkNesting(domElement, source, (node) => node.hasAttribute(E.SOURCE_ATTRIBUTE))\n const ui = await UI.load()\n const loaded = await ui.sources.load(source, { fresh })\n if (generation !== this.generation) return\n this.insert(E.SourceMarkup.parse(loaded.text, { page: domElement.ownerDocument, source, select }))\n this.loadStatus = E.SourceStatus.loaded\n this.owner.send(E.SourceEvent.loaded, { source, content: loaded.text })\n } catch (error) {\n if (generation !== this.generation) return\n this.fail(source, error)\n throw error\n }\n }\n\n /** Put `fragment` in the target, in place of the placeholder (and the body inserted before). */\n private insert(fragment: DocumentFragment) {\n const target = this.owner.target()\n for (const node of this.inserted) node.remove()\n for (const node of [...target.childNodes]) if (LoadableBody.isPlaceholder(node)) node.remove()\n this.inserted = [...fragment.childNodes]\n target.append(fragment)\n this.hasShownABody = true\n }\n\n /** Loading or showing failed: `ui-error`, then the error line unless it was cancelled. */\n private fail(source: string, error: unknown) {\n const kind = E.SourceError.kindFor(error, \"load\")\n this.loadStatus = E.SourceStatus.error\n const shown = this.owner.send(E.SourceEvent.error, { kind, source, error })\n this.loadError = shown ? { kind, error } : undefined\n }\n\n ////////////////\n // ## Helpers\n ////////////////\n\n /** Identity of a load: `source` and `select`. Static: pure. */\n private static key(source: string, select: string | undefined): string {\n return select ? `${source} ${select}` : source\n }\n\n /**\n * Is `node` part of the placeholder? Anything but an element headed for a named slot.\n * - Static: pure. `NodeType`, not the `Node` global, which a server render has none of.\n */\n private static isPlaceholder(node: Node): boolean {\n return !(node.nodeType === E.NodeType.element && (node as Element).hasAttribute(\"slot\"))\n }\n}\n\n/** One load of a `LoadableBody`: what to fetch, and whether past the cache. */\ntype BodyLoad = {\n /** `source`, as written */\n source: string\n /** `select`, as written */\n select: string | undefined\n /** skip the cache (`reload()`) */\n fresh: boolean\n}\n","import type { E } from \"spell/ui/core\"\n// Import directly to avoid circular import: spell-element imports nothing of Spell UI, so it has always loaded first\nimport { DOMElement } from \"spell/element\"\n\n/****************\n * ### `DOMLoadableBodyElement`\n * The DOM element of the components whose content can come from a file\n * (`<ui-section source>` and its subclasses, `<ui-accordion source>`):\n * their script API, handed on to the component's `LoadableBody`.\n * - `load()` -- fetch and insert the body now, even while folded / closed\n * - the same promise until `source` or `select` changes\n * - rejects when it fails; resolves at once without `source`\n * - `reload()` -- fetch it again past the cache and replace it (a live update); resolves once it's in.\n * - Before the component exists (not yet connected): both resolve at once, doing nothing.\n * - Knows its component only as a `LoadableBodyComponentShape` (`elements.types`): NEVER imports a component.\n * - A subclass names its component class (`DOMEpicFoldElement extends E.DOMLoadableBodyElement<EpicFold<any>>`).\n * - NOTE: `DOMElement` checks its members against the attributes' property names;\n * neither is an attribute of these elements.\n ****************/\nexport class DOMLoadableBodyElement<\n C extends LoadableBodyComponentType = LoadableBodyComponentType\n> extends DOMElement<C> {\n /** Fetch and insert the body now, even while folded / closed; `LoadableBody.load()`. */\n load(): Promise<void> {\n return this.component?.loadBody() ?? Promise.resolve()\n }\n\n /** Fetch the body again past the cache and replace it; `LoadableBody.reload()`. */\n reload(): Promise<void> {\n return this.component?.reloadBody() ?? Promise.resolve()\n }\n}\n\n/** What a `DOMLoadableBodyElement`'s component is: a component, with the `LoadableBodyComponentShape` API. */\ntype LoadableBodyComponentType = E.UIComponent<any> & E.LoadableBodyComponentShape\n","/**\n * `core` lib entry (`spell/ui/core`): the element core PLUS the foundation it builds on, as ONE module.\n * - Every component file imports shared code from here (`spell/ui/core`), never from the pieces,\n * so Rolldown puts all of it in `dist/core.js`,\n * and each family entry holds only its own classes, sheet, vocabulary and fallback.\n * - Pulls in:\n * - `spell/element`, whole: the element bases every set's elements are written on (`UIComponent`, `DOMElement`,\n * `ElementDefinition`, the `Reactive` decorators, `Cell`, `SlotContent`, `PartContext`, `OwnerContext`,\n * `Disclosure`, `OwnControls`, `ParentLink`, timing, the vocabulary's types), so `E` holds all of them\n * - `spell/ui/util`, `spell/ui/vocabulary` -- foundation JS (`proto`, `Warnings`, `ValueSets`, `Converters` ...)\n * - `spell/ui/components/components.types` as the namespace `UIT` (`UIT.FLUID`, `UIT.ToggleCommands`, `UIT.SelectValue` ...)\n * - from `spell/ui/elements`, what doesn't use Solid:\n * - `elements.types` (the element core's shared types and constants)\n * - `ClassBuilder`, `Shorthand`\n * - `NativeFallback` (the fallbacks' base)\n * - `StickyWatch` (`<ui-sticky>` and `<ui-section sticky>`)\n * - from `spell/ui/elements`, Spell UI's own on Solid:\n * - `SpellUISettings`: what Spell UI hands `spell/element` (a side effect, below)\n * - `IconGlyph`, `PartComponent` (the generic content parts)\n * - `CloseButton`: the close button of a box that closes (message, toast, nag, dialog)\n * - `ClipboardCopy`: a copy button's copy, then \"Copied\" for a moment\n * - `PopoverPanel`: the panel a control opens under itself (dropdown, calendar, search, icon picker, a\n * shrinkable menu's overflow), a `Disclosure` with its popover, overlay entry and anchor\n * - `RootSettings`: what each `<ui-root>` sets for its subtree (icon packs, emoji)\n * - the elements that show a text file:\n * `DOMLoadableElement` + `LoadableComponent`, `SourceMarkup`,\n * and `LoadableBody` + `DOMLoadableBodyElement` (`<ui-section source>` / `<ui-accordion source>`)\n * - `spell/ui/runtime` -- the eager loader (`UI`, `loadUI`), `runtime.types` and the services' TYPES;\n * `UIRuntime` itself stays a lazy chunk\n * - `spell/ui/icons` -- the icon pack format (`IconName`, `BuiltInPacks`);\n * the packs are separate files (`dist/icon-packs/`), loaded by the runtime (`UI.icons`)\n * - NOT here: the `forms` entry, loaded only by families that import it\n * (`forms.ts`: `FormComponent`, `DOMFormControl`, `Validator`, `MenuOptions`, `ControlLabels`).\n * - NOTE: `spell/ui/elements` LEAVES are re-exported one by one, as `AGENTS.md` (\"Solid authoring\") says:\n * its barrel also exports the `forms` files,\n * and an `export *` of it here would make them `core` exports, i.e. core bytes.\n * - NOTE: those leaves import this entry back, as `E` / `UI` / `UIT`:\n * a cycle, on purpose (WWOD §4 › \"ONE namespace per sub-system\").\n * - What a leaf reads while it EVALUATES (a base class, `@proto`, a static initializer)\n * comes from its own file instead (WWOD §4 › \"Circular imports\").\n * - The order below puts each such file before its readers.\n * - `tests/elements/barrel.test.ts` checks every export is live.\n * - `spell/element` (the element bases, what every set's elements are written on) is re-exported WHOLE.\n * - Its settings are installed as this module loads (`SpellUISettings`, a side effect).\n * - A tag defined before that waits.\n * - NOTE: `solid-js` and `@solidjs/web` are NOT re-exported:\n * peer dependencies, external in the build (`vite.config.ts`).\n * The custom-element layer is `spell/element` (`DOMElement`, `UIComponent`, `ShadowEvents`), bundled here.\n * - NOTE: nothing here may `import * as` a Solid package: a namespace keeps every export alive,\n * which pins ALL of Solid into any bundle (and any vendored copy) that includes `core`.\n * The Solid host page's identity probe lives in that page (`src/tools/frameworks/solid/identity.js`).\n */\n\nexport * from \"spell/element\"\nimport \"spell/ui/elements/SpellUISettings\"\nexport * from \"spell/ui/util\"\nexport * from \"spell/ui/vocabulary\"\nexport * from \"spell/ui/elements/elements.types\"\nexport * from \"spell/ui/elements/ClassBuilder\"\nexport * from \"spell/ui/elements/Shorthand\"\nexport * from \"spell/ui/elements/NativeFallback\"\nexport * from \"spell/ui/elements/StickyWatch\"\nexport * from \"spell/ui/runtime\"\nexport * from \"spell/ui/icons\"\nexport * as UIT from \"spell/ui/components/components.types\"\n\nexport * from \"spell/ui/elements/PartComponent\"\nexport * from \"spell/ui/elements/RootSettings\"\nexport * from \"spell/ui/elements/IconGlyph\"\nexport * from \"spell/ui/elements/CloseButton\"\nexport * from \"spell/ui/elements/ClipboardCopy\"\nexport * from \"spell/ui/elements/PopoverPanel\"\nexport * from \"spell/ui/elements/DOMLoadableElement\"\nexport * from \"spell/ui/elements/LoadableComponent\"\nexport * from \"spell/ui/elements/SourceMarkup\"\nexport * from \"spell/ui/elements/LoadableBody\"\nexport * from \"spell/ui/elements/DOMLoadableBodyElement\"\n\n/**\n * The package namespace (WWOD §4):\n * `import { E, UI, UIT } from \"spell/ui/core\"`, then `E.UIComponent`, `@E.proto` (`AGENTS.md`).\n */\nexport * as E from \"spell/ui/core\"\n"],"mappings":";;;;AAQA,SAAgB,WAAW,GAAY,GAAc;CACnD,OAAOiG,KAAS,QAAQ,OAAO,OAAOA,GAAOC,CAAI;AACnD;AAOA,SAAgB,kBAAkB,GAAY,IAAc,QAAQ;CAClE,IAAI,OAAOD,GAAO,eAAgB,YAAY;CAC9C,IAAME,IAAS,CAAC,GACZC,IAAQH;CACZ,QAAQ,IAAQ,OAAO,eAAeG,CAAK,OACrC,OAAOA,EAAM,eAAgB,cAAYD,EAAO,KAAKC,EAAM,WAAW,GACtEA,EAAM,gBAAgBC;CAE5B,OAAOF;AACT;AAQA,SAAgB,cAAc,GAAY,GAAkB,GAAsB;CAChF,OAAOF,IAAO;EACZ,IAAMK,IAAO,OAAO,yBAAyBL,GAAOM,CAAQ;EAC5D,IAA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