@vonage/vivid 5.19.0 → 5.20.0
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/accordion/definition.cjs +1 -1
- package/accordion/definition.js +1 -1
- package/accordion/index.cjs +2 -2
- package/accordion/index.js +2 -2
- package/accordion-item/definition.cjs +1 -1
- package/accordion-item/definition.js +1 -1
- package/action-group/definition.cjs +1 -1
- package/action-group/definition.js +1 -1
- package/action-group/index.cjs +2 -2
- package/action-group/index.js +2 -2
- package/alert/index.cjs +5 -5
- package/alert/index.js +8 -8
- package/audio-player/index.cjs +10 -10
- package/audio-player/index.js +28 -28
- package/avatar/index.cjs +7 -7
- package/avatar/index.js +14 -14
- package/banner/index.cjs +5 -5
- package/banner/index.js +9 -9
- package/breadcrumb/index.cjs +2 -2
- package/breadcrumb/index.js +3 -3
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +1 -1
- package/bundled/affix.cjs +2 -2
- package/bundled/affix.js +11 -11
- package/bundled/anchored.cjs +1 -1
- package/bundled/anchored.js +6 -6
- package/bundled/aria-binding-directive.cjs +1 -1
- package/bundled/aria-binding-directive.js +88 -16
- package/bundled/base-color-picker.cjs +3 -3
- package/bundled/base-color-picker.js +5 -5
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +3 -3
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/breadcrumb-item.js +3 -3
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +3 -3
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +4 -4
- package/bundled/calendar-picker.template.cjs +23 -24
- package/bundled/calendar-picker.template.js +35 -36
- package/bundled/char-count.cjs +2 -2
- package/bundled/char-count.js +8 -8
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +11 -13
- package/bundled/definition.cjs +1 -1
- package/bundled/definition.js +2 -2
- package/bundled/definition10.cjs +3 -3
- package/bundled/definition10.js +5 -5
- package/bundled/definition11.cjs +2 -2
- package/bundled/definition11.js +7 -7
- package/bundled/definition12.cjs +15 -16
- package/bundled/definition12.js +22 -22
- package/bundled/definition13.cjs +3 -3
- package/bundled/definition13.js +5 -5
- package/bundled/definition14.cjs +2 -2
- package/bundled/definition14.js +2 -2
- package/bundled/definition15.cjs +7 -8
- package/bundled/definition15.js +14 -14
- package/bundled/definition16.cjs +3 -3
- package/bundled/definition16.js +8 -8
- package/bundled/definition17.cjs +7 -7
- package/bundled/definition17.js +13 -13
- package/bundled/definition18.cjs +18 -18
- package/bundled/definition18.js +36 -36
- package/bundled/definition19.cjs +2 -2
- package/bundled/definition19.js +1 -1
- package/bundled/definition2.cjs +10 -9
- package/bundled/definition2.js +24 -24
- package/bundled/definition20.cjs +19 -14
- package/bundled/definition20.js +51 -39
- package/bundled/definition21.cjs +6 -6
- package/bundled/definition21.js +18 -18
- package/bundled/definition22.cjs +3 -3
- package/bundled/definition22.js +7 -7
- package/bundled/definition23.cjs +4 -4
- package/bundled/definition23.js +8 -8
- package/bundled/definition24.cjs +8 -8
- package/bundled/definition24.js +17 -17
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +5 -5
- package/bundled/definition4.cjs +9 -9
- package/bundled/definition4.js +16 -16
- package/bundled/definition5.cjs +4 -4
- package/bundled/definition5.js +5 -5
- package/bundled/definition6.cjs +6 -6
- package/bundled/definition6.js +21 -21
- package/bundled/definition7.cjs +2 -2
- package/bundled/definition7.js +4 -4
- package/bundled/definition8.cjs +4 -4
- package/bundled/definition8.js +7 -7
- package/bundled/definition9.cjs +10 -6
- package/bundled/definition9.js +48 -34
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +20 -9
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +3 -3
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +6 -6
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +1 -1
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +2 -1
- package/bundled/kbd-shortcut.cjs +1 -0
- package/bundled/kbd-shortcut.js +14 -0
- package/bundled/linkable.cjs +2 -2
- package/bundled/linkable.js +5 -5
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +4 -4
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +3 -2
- package/bundled/mixins.cjs +16 -16
- package/bundled/mixins.js +39 -105
- package/bundled/picker-field.template.cjs +6 -6
- package/bundled/picker-field.template.js +15 -15
- package/bundled/platform.cjs +1 -0
- package/bundled/platform.js +9 -0
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +2 -2
- package/bundled/render-in-light-dom.cjs +1 -0
- package/bundled/render-in-light-dom.js +57 -0
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +117 -107
- package/bundled/slider.template.cjs +3 -3
- package/bundled/slider.template.js +1 -1
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +2 -2
- package/bundled/time-selection-picker.template.cjs +4 -4
- package/bundled/time-selection-picker.template.js +18 -18
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +626 -550
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +2 -2
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +1 -1
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +1 -1
- package/bundled/with-success-text.cjs +1 -1
- package/bundled/with-success-text.js +1 -1
- package/calendar/index.cjs +8 -8
- package/calendar/index.js +9 -9
- package/calendar-event/index.cjs +4 -4
- package/calendar-event/index.js +1 -1
- package/card/index.cjs +24 -25
- package/card/index.js +29 -30
- package/color-picker/index.cjs +26 -26
- package/color-picker/index.js +90 -90
- package/combobox/index.cjs +13 -13
- package/combobox/index.js +22 -22
- package/country-group/index.cjs +4 -4
- package/country-group/index.js +3 -3
- package/custom-elements.json +940 -112
- package/data-grid/index.cjs +34 -34
- package/data-grid/index.js +37 -38
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +2 -2
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +4 -4
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +2 -2
- package/date-time-picker/index.js +6 -6
- package/dial-pad/definition.cjs +1 -1
- package/dial-pad/definition.js +1 -1
- package/dial-pad/index.cjs +8 -8
- package/dial-pad/index.js +15 -15
- package/dialog/definition.cjs +1 -1
- package/dialog/definition.js +1 -1
- package/dialog/index.cjs +16 -17
- package/dialog/index.js +29 -27
- package/divider/definition.cjs +1 -1
- package/divider/definition.js +1 -1
- package/empty-state/definition.cjs +1 -1
- package/empty-state/definition.js +1 -1
- package/empty-state/index.cjs +5 -5
- package/empty-state/index.js +9 -9
- package/fab/definition.cjs +1 -1
- package/fab/definition.js +1 -1
- package/fab/index.cjs +2 -2
- package/fab/index.js +6 -6
- package/file-picker/definition.cjs +1 -1
- package/file-picker/definition.js +1 -1
- package/file-picker/index.cjs +9 -10
- package/file-picker/index.js +21 -22
- package/flag/index.cjs +3 -3
- package/flag/index.js +7 -7
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/header/index.cjs +2 -2
- package/header/index.js +8 -8
- package/icon/definition.cjs +1 -1
- package/icon/definition.js +1 -1
- package/index.cjs +184 -172
- package/index.js +52 -49
- package/kbd-key/definition.cjs +5 -0
- package/kbd-key/definition.js +2 -0
- package/kbd-key/index.cjs +5 -0
- package/kbd-key/index.js +65 -0
- package/kbd-shortcut/definition.cjs +5 -0
- package/kbd-shortcut/definition.js +2 -0
- package/kbd-shortcut/index.cjs +3 -0
- package/kbd-shortcut/index.js +27 -0
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/layout/index.cjs +2 -2
- package/layout/index.js +2 -2
- package/lib/accordion-item/accordion-item.d.ts +18 -1
- package/lib/action-group/action-group.d.ts +18 -1
- package/lib/alert/alert.d.ts +36 -2
- package/lib/audio-player/audio-player.d.ts +18 -1
- package/lib/avatar/avatar.d.ts +18 -1
- package/lib/badge/badge.d.ts +18 -1
- package/lib/banner/banner.d.ts +54 -3
- package/lib/breadcrumb/breadcrumb.d.ts +18 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +18 -1
- package/lib/button/button.d.ts +54 -3
- package/lib/calendar-event/calendar-event.d.ts +18 -1
- package/lib/card/card.d.ts +18 -1
- package/lib/checkbox/checkbox.d.ts +107 -5
- package/lib/color-picker/color-picker.d.ts +126 -7
- package/lib/combobox/combobox.d.ts +124 -5
- package/lib/components.d.ts +4 -1
- package/lib/country-group/country-group.d.ts +36 -2
- package/lib/data-grid/data-grid-cell.d.ts +36 -2
- package/lib/data-grid/data-grid-row.d.ts +18 -1
- package/lib/date-picker/date-picker.d.ts +140 -4
- package/lib/date-range-picker/date-range-picker.d.ts +70 -2
- package/lib/date-time-picker/date-time-picker.d.ts +140 -4
- package/lib/dial-pad/dial-pad.d.ts +18 -1
- package/lib/dialog/dialog.d.ts +36 -2
- package/lib/divider/divider.d.ts +18 -1
- package/lib/fab/fab.d.ts +18 -1
- package/lib/file-picker/file-picker.d.ts +124 -5
- package/lib/header/header.d.ts +18 -1
- package/lib/icon/icon.template.d.ts +1 -2
- package/lib/kbd-key/definition.d.ts +4 -0
- package/lib/kbd-key/index.d.ts +1 -0
- package/lib/kbd-key/kbd-key.d.ts +18 -0
- package/lib/kbd-key/kbd-key.template.d.ts +4 -0
- package/lib/kbd-shortcut/definition.d.ts +3 -0
- package/lib/kbd-shortcut/index.d.ts +1 -0
- package/lib/kbd-shortcut/kbd-shortcut.d.ts +4 -0
- package/lib/kbd-shortcut/kbd-shortcut.template.d.ts +4 -0
- package/lib/menu/menu.d.ts +35 -1
- package/lib/menu-item/menu-item.d.ts +463 -2
- package/lib/nav/nav.d.ts +18 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +36 -2
- package/lib/nav-item/nav-item.d.ts +36 -2
- package/lib/note/note.d.ts +18 -1
- package/lib/number-field/number-field.d.ts +160 -7
- package/lib/option/option.d.ts +36 -2
- package/lib/pagination/pagination.d.ts +18 -1
- package/lib/platform-switch/definition.d.ts +3 -0
- package/lib/platform-switch/index.d.ts +1 -0
- package/lib/platform-switch/platform-switch.d.ts +4 -0
- package/lib/platform-switch/platform-switch.template.d.ts +4 -0
- package/lib/popover/popover.d.ts +36 -2
- package/lib/progress/progress.d.ts +18 -1
- package/lib/progress-ring/progress-ring.d.ts +18 -1
- package/lib/radio/radio.d.ts +53 -2
- package/lib/radio-group/radio-group.d.ts +18 -1
- package/lib/range-slider/range-slider.d.ts +52 -1
- package/lib/rich-text-editor/locale.d.ts +1 -0
- package/lib/rich-text-editor/popover.d.ts +1 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +17 -0
- package/lib/rich-text-editor/rte/utils/ui.d.ts +1 -0
- package/lib/searchable-select/option-tag.d.ts +18 -1
- package/lib/searchable-select/searchable-select.d.ts +160 -7
- package/lib/select/select.d.ts +160 -7
- package/lib/selectable-box/selectable-box.d.ts +18 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +35 -1
- package/lib/slider/slider.d.ts +53 -2
- package/lib/split-button/split-button.d.ts +54 -3
- package/lib/status/status.d.ts +18 -1
- package/lib/switch/switch.d.ts +36 -2
- package/lib/tab/tab.d.ts +54 -3
- package/lib/tab-panel/tab-panel.d.ts +18 -1
- package/lib/table/table-cell.d.ts +18 -1
- package/lib/table/table-header-cell.d.ts +18 -1
- package/lib/table/table-row.d.ts +18 -1
- package/lib/table/table-sorting-button.d.ts +18 -1
- package/lib/tag/tag.d.ts +54 -3
- package/lib/tag-group/tag-group.d.ts +18 -1
- package/lib/tag-name-map.d.ts +4 -1
- package/lib/text-area/text-area.d.ts +142 -6
- package/lib/text-field/text-field.d.ts +160 -7
- package/lib/time-picker/time-picker.d.ts +70 -2
- package/lib/toggletip/toggletip.d.ts +35 -1
- package/lib/tooltip/tooltip.d.ts +444 -0
- package/lib/tree-item/tree-item.d.ts +36 -2
- package/lib/tree-view/tree-view.d.ts +18 -1
- package/lib/video-player/video-player.d.ts +18 -1
- package/locales/de-DE.cjs +1 -0
- package/locales/de-DE.js +1 -0
- package/locales/en-GB.cjs +1 -0
- package/locales/en-GB.js +1 -0
- package/locales/en-US.cjs +1 -0
- package/locales/en-US.js +1 -0
- package/locales/ja-JP.cjs +1 -0
- package/locales/ja-JP.js +1 -0
- package/locales/zh-CN.cjs +1 -0
- package/locales/zh-CN.js +1 -0
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav/index.cjs +2 -2
- package/nav/index.js +2 -2
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +3 -4
- package/nav-disclosure/index.js +11 -11
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +6 -6
- package/note/definition.cjs +1 -1
- package/note/definition.js +1 -1
- package/note/index.cjs +2 -2
- package/note/index.js +7 -7
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +8 -9
- package/number-field/index.js +16 -17
- package/package.json +8 -8
- package/pagination/definition.cjs +1 -1
- package/pagination/definition.js +1 -1
- package/pagination/index.cjs +9 -9
- package/pagination/index.js +16 -16
- package/platform-switch/definition.cjs +5 -0
- package/platform-switch/definition.js +2 -0
- package/platform-switch/index.cjs +1 -0
- package/platform-switch/index.js +28 -0
- package/popover/definition.cjs +1 -1
- package/popover/definition.js +1 -1
- package/popover/index.cjs +6 -6
- package/popover/index.js +12 -12
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/progress/index.cjs +4 -4
- package/progress/index.js +5 -5
- package/progress-ring/definition.cjs +1 -1
- package/progress-ring/definition.js +1 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio-group/definition.cjs +1 -1
- package/radio-group/definition.js +1 -1
- package/radio-group/index.cjs +5 -8
- package/radio-group/index.js +16 -16
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/range-slider/index.cjs +5 -5
- package/range-slider/index.js +9 -9
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +1 -1
- package/rich-text-editor/index.cjs +8 -6
- package/rich-text-editor/index.js +101 -78
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +3 -3
- package/searchable-select/definition.cjs +1 -1
- package/searchable-select/definition.js +1 -1
- package/searchable-select/index.cjs +38 -40
- package/searchable-select/index.js +64 -64
- package/select/definition.cjs +1 -1
- package/select/definition.js +1 -1
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/selectable-box/index.cjs +4 -4
- package/selectable-box/index.js +13 -13
- package/shared/aria/aria-binding-directive.d.ts +4 -4
- package/shared/aria/aria-mixin.d.ts +21 -3
- package/shared/aria/delegates-aria.d.ts +18 -1
- package/shared/aria/host-semantics.d.ts +18 -1
- package/shared/aria/idrefs-controller.d.ts +17 -0
- package/shared/color-picker/base-color-picker.d.ts +18 -1
- package/shared/feedback/feedback-message.d.ts +18 -1
- package/shared/feedback/mixins.d.ts +36 -2
- package/shared/foundation/button/button.d.ts +35 -1
- package/shared/foundation/form-associated/form-associated.d.ts +35 -1
- package/shared/foundation/vivid-element/vivid-element.d.ts +375 -0
- package/shared/framework/reactive-controller.d.ts +373 -0
- package/shared/patterns/affix.d.ts +36 -2
- package/shared/patterns/anchored.d.ts +34 -0
- package/shared/patterns/char-count/char-count.d.ts +18 -1
- package/shared/patterns/form-elements/form-element.d.ts +17 -0
- package/shared/patterns/form-elements/with-contextual-help.d.ts +18 -1
- package/shared/patterns/form-elements/with-error-text.d.ts +18 -1
- package/shared/patterns/form-elements/with-success-text.d.ts +18 -1
- package/shared/patterns/index.d.ts +1 -0
- package/shared/patterns/kbd-shortcut.d.ts +431 -0
- package/shared/patterns/linkable.d.ts +18 -1
- package/shared/patterns/localized.d.ts +35 -1
- package/shared/patterns/trapped-focus.d.ts +18 -1
- package/shared/picker-field/mixins/calendar-picker.d.ts +35 -1
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +35 -1
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +18 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +35 -1
- package/shared/picker-field/mixins/single-date-picker.d.ts +35 -1
- package/shared/picker-field/mixins/single-value-picker.d.ts +35 -1
- package/shared/picker-field/mixins/time-selection-picker.d.ts +35 -1
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +70 -2
- package/shared/picker-field/picker-field.d.ts +124 -5
- package/shared/templating/render-in-light-dom.d.ts +7 -20
- package/shared/utils/platform.d.ts +1 -0
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/side-drawer/index.cjs +3 -3
- package/side-drawer/index.js +3 -3
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/simple-color-picker/index.cjs +2 -2
- package/simple-color-picker/index.js +6 -6
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +1 -1
- package/split-button/index.cjs +5 -6
- package/split-button/index.js +8 -8
- package/status/definition.cjs +1 -1
- package/status/definition.js +1 -1
- package/status/index.cjs +4 -4
- package/status/index.js +9 -9
- package/styles/core/all.css +24 -2
- package/styles/core/typography.css +24 -2
- package/styles/fonts/spezia-variable.css +6 -0
- package/styles/tokens/theme-dark.css +2 -0
- package/styles/tokens/theme-light.css +2 -0
- package/switch/definition.cjs +1 -1
- package/switch/definition.js +1 -1
- package/switch/index.cjs +3 -3
- package/switch/index.js +4 -4
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +1 -1
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/table/definition.cjs +1 -1
- package/table/definition.js +1 -1
- package/table/index.cjs +9 -9
- package/table/index.js +19 -19
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +1 -1
- package/tabs/index.cjs +8 -8
- package/tabs/index.js +14 -14
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +1 -1
- package/tag/index.cjs +8 -8
- package/tag/index.js +11 -11
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/tag-group/index.cjs +2 -2
- package/tag-group/index.js +2 -2
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/text-area/index.cjs +8 -9
- package/text-area/index.js +25 -26
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/tree-view/index.cjs +4 -4
- package/tree-view/index.js +7 -7
- package/unbundled/affix.cjs +1 -1
- package/unbundled/affix.js +1 -1
- package/unbundled/aria-binding-directive.cjs +112 -2
- package/unbundled/aria-binding-directive.js +108 -4
- package/unbundled/calendar-picker.template.cjs +8 -10
- package/unbundled/calendar-picker.template.js +8 -10
- package/unbundled/char-count.cjs +1 -1
- package/unbundled/char-count.js +1 -1
- package/unbundled/definition.cjs +91 -17
- package/unbundled/definition.js +88 -14
- package/unbundled/definition10.js +1 -1
- package/unbundled/definition11.js +1 -1
- package/unbundled/definition12.cjs +15 -2
- package/unbundled/definition12.js +17 -4
- package/unbundled/definition13.js +1 -1
- package/unbundled/definition14.js +1 -1
- package/unbundled/definition15.cjs +1 -1
- package/unbundled/definition15.js +2 -2
- package/unbundled/definition16.cjs +1 -1
- package/unbundled/definition16.js +2 -2
- package/unbundled/definition17.cjs +1 -1
- package/unbundled/definition17.js +2 -2
- package/unbundled/definition18.cjs +1 -1
- package/unbundled/definition18.js +2 -2
- package/unbundled/definition19.js +1 -1
- package/unbundled/definition2.cjs +96 -77
- package/unbundled/definition2.js +94 -75
- package/unbundled/definition20.js +1 -1
- package/unbundled/definition21.js +1 -1
- package/unbundled/definition22.cjs +2 -3
- package/unbundled/definition22.js +3 -4
- package/unbundled/definition23.cjs +3 -3
- package/unbundled/definition23.js +5 -5
- package/unbundled/definition24.js +1 -1
- package/unbundled/definition25.cjs +1 -1
- package/unbundled/definition25.js +2 -2
- package/unbundled/definition26.cjs +8 -8
- package/unbundled/definition26.js +6 -6
- package/unbundled/definition27.cjs +26 -12
- package/unbundled/definition27.js +28 -14
- package/unbundled/definition28.cjs +1 -1
- package/unbundled/definition28.js +3 -3
- package/unbundled/definition29.cjs +1 -1
- package/unbundled/definition29.js +2 -2
- package/unbundled/definition3.cjs +154 -95
- package/unbundled/definition3.js +146 -93
- package/unbundled/definition30.cjs +1 -1
- package/unbundled/definition30.js +3 -3
- package/unbundled/definition31.cjs +1 -1
- package/unbundled/definition31.js +2 -2
- package/unbundled/definition32.js +1 -1
- package/unbundled/definition33.cjs +1 -1
- package/unbundled/definition33.js +2 -2
- package/unbundled/definition34.cjs +103 -65
- package/unbundled/definition34.js +102 -64
- package/unbundled/definition35.cjs +26 -326
- package/unbundled/definition35.js +24 -247
- package/unbundled/definition36.cjs +131 -25
- package/unbundled/definition36.js +124 -23
- package/unbundled/definition37.cjs +326 -51
- package/unbundled/definition37.js +324 -49
- package/unbundled/definition38.cjs +137 -317
- package/unbundled/definition38.js +135 -315
- package/unbundled/definition39.cjs +337 -173
- package/unbundled/definition39.js +334 -170
- package/unbundled/definition4.cjs +34 -159
- package/unbundled/definition4.js +25 -151
- package/unbundled/definition40.cjs +234 -339
- package/unbundled/definition40.js +230 -335
- package/unbundled/definition41.cjs +48 -271
- package/unbundled/definition41.js +44 -267
- package/unbundled/definition42.cjs +68 -49
- package/unbundled/definition42.js +65 -46
- package/unbundled/definition43.cjs +424 -56
- package/unbundled/definition43.js +422 -54
- package/unbundled/definition44.cjs +45 -428
- package/unbundled/definition44.js +42 -425
- package/unbundled/definition45.cjs +45 -54
- package/unbundled/definition45.js +42 -51
- package/unbundled/definition46.cjs +178 -30
- package/unbundled/definition46.js +175 -26
- package/unbundled/definition47.cjs +29 -94
- package/unbundled/definition47.js +25 -91
- package/unbundled/definition48.cjs +76 -36
- package/unbundled/definition48.js +73 -33
- package/unbundled/definition49.cjs +56 -23
- package/unbundled/definition49.js +54 -18
- package/unbundled/definition5.cjs +56 -38
- package/unbundled/definition5.js +52 -28
- package/unbundled/definition50.cjs +23 -40
- package/unbundled/definition50.js +18 -38
- package/unbundled/definition51.cjs +30 -338
- package/unbundled/definition51.js +30 -338
- package/unbundled/definition52.cjs +317 -187
- package/unbundled/definition52.js +314 -184
- package/unbundled/definition53.cjs +194 -289
- package/unbundled/definition53.js +189 -284
- package/unbundled/definition54.cjs +47 -54
- package/unbundled/definition54.js +44 -50
- package/unbundled/definition55.cjs +279 -133
- package/unbundled/definition55.js +277 -130
- package/unbundled/definition56.cjs +50 -262
- package/unbundled/definition56.js +48 -261
- package/unbundled/definition57.cjs +128 -460
- package/unbundled/definition57.js +126 -459
- package/unbundled/definition58.cjs +235 -3604
- package/unbundled/definition58.js +231 -3437
- package/unbundled/definition59.cjs +419 -729
- package/unbundled/definition59.js +417 -727
- package/unbundled/definition6.cjs +18 -64
- package/unbundled/definition6.js +15 -60
- package/unbundled/definition60.cjs +3666 -106
- package/unbundled/definition60.js +3498 -101
- package/unbundled/definition61.cjs +625 -878
- package/unbundled/definition61.js +619 -872
- package/unbundled/definition62.cjs +106 -108
- package/unbundled/definition62.js +103 -105
- package/unbundled/definition63.cjs +1045 -71
- package/unbundled/definition63.js +1041 -66
- package/unbundled/definition64.cjs +105 -173
- package/unbundled/definition64.js +102 -170
- package/unbundled/definition65.cjs +70 -113
- package/unbundled/definition65.js +66 -110
- package/unbundled/definition66.cjs +185 -54
- package/unbundled/definition66.js +182 -51
- package/unbundled/definition67.cjs +110 -77
- package/unbundled/definition67.js +111 -77
- package/unbundled/definition68.cjs +58 -21
- package/unbundled/definition68.js +56 -16
- package/unbundled/definition69.cjs +82 -75
- package/unbundled/definition69.js +81 -75
- package/unbundled/definition7.cjs +2 -2
- package/unbundled/definition7.js +3 -3
- package/unbundled/definition70.cjs +19 -349
- package/unbundled/definition70.js +15 -341
- package/unbundled/definition71.cjs +88 -26
- package/unbundled/definition71.js +86 -23
- package/unbundled/definition72.cjs +309 -119
- package/unbundled/definition72.js +234 -116
- package/unbundled/definition73.cjs +293 -229
- package/unbundled/definition73.js +287 -230
- package/unbundled/definition74.cjs +39 -30
- package/unbundled/definition74.js +29 -28
- package/unbundled/definition75.cjs +106 -121
- package/unbundled/definition75.js +104 -113
- package/unbundled/definition76.cjs +260 -179
- package/unbundled/definition76.js +258 -176
- package/unbundled/definition77.cjs +29 -514
- package/unbundled/definition77.js +27 -503
- package/unbundled/definition78.cjs +171 -0
- package/unbundled/definition78.js +147 -0
- package/unbundled/definition79.cjs +233 -0
- package/unbundled/definition79.js +214 -0
- package/unbundled/definition8.js +1 -1
- package/unbundled/definition80.cjs +533 -0
- package/unbundled/definition80.js +513 -0
- package/unbundled/definition9.cjs +1 -1
- package/unbundled/definition9.js +2 -2
- package/unbundled/delegates-aria.cjs +15 -1
- package/unbundled/delegates-aria.js +17 -3
- package/unbundled/host-semantics.cjs +2 -1
- package/unbundled/host-semantics.js +2 -1
- package/unbundled/kbd-shortcut.cjs +26 -0
- package/unbundled/kbd-shortcut.js +20 -0
- package/unbundled/mixins.cjs +7 -77
- package/unbundled/mixins.js +6 -64
- package/unbundled/platform.cjs +17 -0
- package/unbundled/platform.js +12 -0
- package/unbundled/randomId.cjs +47 -0
- package/unbundled/randomId.js +35 -0
- package/unbundled/time-selection-picker.template.js +1 -1
- package/unbundled/vivid-element.cjs +82 -9
- package/unbundled/vivid-element.js +63 -8
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/video-player/index.cjs +3 -3
- package/video-player/index.js +5 -5
- package/visually-hidden/definition.cjs +1 -1
- package/visually-hidden/definition.js +1 -1
- package/vivid.api.json +604 -6
- package/bundled/normalize.cjs +0 -1
- package/bundled/normalize.js +0 -7
package/bundled/vivid-element.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
1
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/interfaces.js
|
|
2
2
|
var e, t = "fast-kernel";
|
|
3
3
|
try {
|
|
4
4
|
if (document.currentScript) e = document.currentScript.getAttribute(t);
|
|
@@ -37,7 +37,11 @@ switch (e) {
|
|
|
37
37
|
});
|
|
38
38
|
break;
|
|
39
39
|
}
|
|
40
|
-
var r
|
|
40
|
+
var r;
|
|
41
|
+
(function(e) {
|
|
42
|
+
e[e.needsArrayObservation = 1101] = "needsArrayObservation", e[e.onlySetDOMPolicyOnce = 1201] = "onlySetDOMPolicyOnce", e[e.bindingInnerHTMLRequiresTrustedTypes = 1202] = "bindingInnerHTMLRequiresTrustedTypes", e[e.twoWayBindingRequiresObservables = 1203] = "twoWayBindingRequiresObservables", e[e.hostBindingWithoutHost = 1204] = "hostBindingWithoutHost", e[e.unsupportedBindingBehavior = 1205] = "unsupportedBindingBehavior", e[e.directCallToHTMLTagNotAllowed = 1206] = "directCallToHTMLTagNotAllowed", e[e.onlySetTemplatePolicyOnce = 1207] = "onlySetTemplatePolicyOnce", e[e.cannotSetTemplatePolicyAfterCompilation = 1208] = "cannotSetTemplatePolicyAfterCompilation", e[e.blockedByDOMPolicy = 1209] = "blockedByDOMPolicy", e[e.missingElementDefinition = 1401] = "missingElementDefinition", e[e.noRegistrationForContext = 1501] = "noRegistrationForContext", e[e.noFactoryForResolver = 1502] = "noFactoryForResolver", e[e.invalidResolverStrategy = 1503] = "invalidResolverStrategy", e[e.cannotAutoregisterDependency = 1504] = "cannotAutoregisterDependency", e[e.cannotResolveKey = 1505] = "cannotResolveKey", e[e.cannotConstructNativeFunction = 1506] = "cannotConstructNativeFunction", e[e.cannotJITRegisterNonConstructor = 1507] = "cannotJITRegisterNonConstructor", e[e.cannotJITRegisterIntrinsic = 1508] = "cannotJITRegisterIntrinsic", e[e.cannotJITRegisterInterface = 1509] = "cannotJITRegisterInterface", e[e.invalidResolver = 1510] = "invalidResolver", e[e.invalidKey = 1511] = "invalidKey", e[e.noDefaultResolver = 1512] = "noDefaultResolver", e[e.cyclicDependency = 1513] = "cyclicDependency", e[e.connectUpdateRequiresController = 1514] = "connectUpdateRequiresController";
|
|
43
|
+
})(r ||= {});
|
|
44
|
+
var i = (e) => typeof e == "function", a = (e) => typeof e == "string", o = () => void 0;
|
|
41
45
|
(function() {
|
|
42
46
|
if (!(typeof globalThis < "u")) if (typeof global < "u") global.globalThis = global;
|
|
43
47
|
else if (typeof self < "u") self.globalThis = self;
|
|
@@ -60,30 +64,30 @@ var r = (e) => typeof e == "function", i = (e) => typeof e == "string", a = () =
|
|
|
60
64
|
});
|
|
61
65
|
})();
|
|
62
66
|
//#endregion
|
|
63
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
64
|
-
var
|
|
67
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/platform.js
|
|
68
|
+
var s = {
|
|
65
69
|
configurable: !1,
|
|
66
70
|
enumerable: !1,
|
|
67
71
|
writable: !1
|
|
68
72
|
};
|
|
69
|
-
globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: Object.create(null) },
|
|
70
|
-
var
|
|
71
|
-
if (
|
|
73
|
+
globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: Object.create(null) }, s));
|
|
74
|
+
var c = globalThis.FAST;
|
|
75
|
+
if (c.getById === void 0) {
|
|
72
76
|
let e = Object.create(null);
|
|
73
|
-
Reflect.defineProperty(
|
|
77
|
+
Reflect.defineProperty(c, "getById", Object.assign({ value(t, n) {
|
|
74
78
|
let r = e[t];
|
|
75
79
|
return r === void 0 && (r = n ? e[t] = n() : null), r;
|
|
76
|
-
} },
|
|
80
|
+
} }, s));
|
|
77
81
|
}
|
|
78
|
-
|
|
82
|
+
c.error === void 0 && Object.assign(c, {
|
|
79
83
|
warn() {},
|
|
80
84
|
error(e) {
|
|
81
85
|
return /* @__PURE__ */ Error(`Error ${e}`);
|
|
82
86
|
},
|
|
83
87
|
addMessages() {}
|
|
84
88
|
});
|
|
85
|
-
var
|
|
86
|
-
function
|
|
89
|
+
var l = Object.freeze([]);
|
|
90
|
+
function u() {
|
|
87
91
|
let e = /* @__PURE__ */ new Map();
|
|
88
92
|
return Object.freeze({
|
|
89
93
|
register(t) {
|
|
@@ -97,7 +101,7 @@ function l() {
|
|
|
97
101
|
}
|
|
98
102
|
});
|
|
99
103
|
}
|
|
100
|
-
function
|
|
104
|
+
function d() {
|
|
101
105
|
let e = /* @__PURE__ */ new WeakMap();
|
|
102
106
|
return function(t) {
|
|
103
107
|
let n = e.get(t);
|
|
@@ -109,12 +113,12 @@ function u() {
|
|
|
109
113
|
return n;
|
|
110
114
|
};
|
|
111
115
|
}
|
|
112
|
-
function
|
|
113
|
-
e.prototype.toJSON =
|
|
116
|
+
function f(e) {
|
|
117
|
+
e.prototype.toJSON = o;
|
|
114
118
|
}
|
|
115
119
|
//#endregion
|
|
116
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
117
|
-
var
|
|
120
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/dom.js
|
|
121
|
+
var p = Object.freeze({
|
|
118
122
|
none: 0,
|
|
119
123
|
attribute: 1,
|
|
120
124
|
booleanAttribute: 2,
|
|
@@ -122,20 +126,20 @@ var f = Object.freeze({
|
|
|
122
126
|
content: 4,
|
|
123
127
|
tokenList: 5,
|
|
124
128
|
event: 6
|
|
125
|
-
}),
|
|
129
|
+
}), m = (e) => e, ee = globalThis.trustedTypes ? globalThis.trustedTypes.createPolicy("fast-html", { createHTML: m }) : { createHTML: m }, h = Object.freeze({
|
|
126
130
|
createHTML(e) {
|
|
127
131
|
return ee.createHTML(e);
|
|
128
132
|
},
|
|
129
133
|
protect(e, t, n, r) {
|
|
130
134
|
return r;
|
|
131
135
|
}
|
|
132
|
-
}), te =
|
|
136
|
+
}), te = h, g = Object.freeze({
|
|
133
137
|
get policy() {
|
|
134
|
-
return
|
|
138
|
+
return h;
|
|
135
139
|
},
|
|
136
140
|
setPolicy(e) {
|
|
137
|
-
if (
|
|
138
|
-
|
|
141
|
+
if (h !== te) throw c.error(r.onlySetDOMPolicyOnce);
|
|
142
|
+
h = e;
|
|
139
143
|
},
|
|
140
144
|
setAttribute(e, t, n) {
|
|
141
145
|
n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
|
|
@@ -143,36 +147,6 @@ var f = Object.freeze({
|
|
|
143
147
|
setBooleanAttribute(e, t, n) {
|
|
144
148
|
n ? e.setAttribute(t, "") : e.removeAttribute(t);
|
|
145
149
|
}
|
|
146
|
-
}), g = s.getById(n.updateQueue, () => {
|
|
147
|
-
let e = [], t = [], n = globalThis.requestAnimationFrame, r = !0;
|
|
148
|
-
function i() {
|
|
149
|
-
if (t.length) throw t.shift();
|
|
150
|
-
}
|
|
151
|
-
function a(n) {
|
|
152
|
-
try {
|
|
153
|
-
n.call();
|
|
154
|
-
} catch (n) {
|
|
155
|
-
if (r) t.push(n), setTimeout(i, 0);
|
|
156
|
-
else throw e.length = 0, n;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function o() {
|
|
160
|
-
let t = 0;
|
|
161
|
-
for (; t < e.length;) if (a(e[t]), t++, t > 1024) {
|
|
162
|
-
for (let n = 0, r = e.length - t; n < r; n++) e[n] = e[n + t];
|
|
163
|
-
e.length -= t, t = 0;
|
|
164
|
-
}
|
|
165
|
-
e.length = 0;
|
|
166
|
-
}
|
|
167
|
-
function s(t) {
|
|
168
|
-
e.push(t), e.length < 2 && (r ? n(o) : o());
|
|
169
|
-
}
|
|
170
|
-
return Object.freeze({
|
|
171
|
-
enqueue: s,
|
|
172
|
-
next: () => new Promise(s),
|
|
173
|
-
process: o,
|
|
174
|
-
setMode: (e) => r = e
|
|
175
|
-
});
|
|
176
150
|
}), _ = class {
|
|
177
151
|
constructor(e, t) {
|
|
178
152
|
this.sub1 = void 0, this.sub2 = void 0, this.spillover = void 0, this.subject = e, this.sub1 = t;
|
|
@@ -230,35 +204,65 @@ var f = Object.freeze({
|
|
|
230
204
|
var n, r;
|
|
231
205
|
t ? (n = this.subscribers[t]) == null || n.unsubscribe(e) : (r = this.subjectSubscribers) == null || r.unsubscribe(e);
|
|
232
206
|
}
|
|
233
|
-
},
|
|
207
|
+
}, re = c.getById(n.updateQueue, () => {
|
|
208
|
+
let e = [], t = [], n = globalThis.requestAnimationFrame, r = !0;
|
|
209
|
+
function i() {
|
|
210
|
+
if (t.length) throw t.shift();
|
|
211
|
+
}
|
|
212
|
+
function a(n) {
|
|
213
|
+
try {
|
|
214
|
+
n.call();
|
|
215
|
+
} catch (n) {
|
|
216
|
+
if (r) t.push(n), setTimeout(i, 0);
|
|
217
|
+
else throw e.length = 0, n;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function o() {
|
|
221
|
+
let t = 0;
|
|
222
|
+
for (; t < e.length;) if (a(e[t]), t++, t > 1024) {
|
|
223
|
+
for (let n = 0, r = e.length - t; n < r; n++) e[n] = e[n + t];
|
|
224
|
+
e.length -= t, t = 0;
|
|
225
|
+
}
|
|
226
|
+
e.length = 0;
|
|
227
|
+
}
|
|
228
|
+
function s(t) {
|
|
229
|
+
e.push(t), e.length < 2 && (r ? n(o) : o());
|
|
230
|
+
}
|
|
231
|
+
return Object.freeze({
|
|
232
|
+
enqueue: s,
|
|
233
|
+
next: () => new Promise(s),
|
|
234
|
+
process: o,
|
|
235
|
+
setMode: (e) => r = e
|
|
236
|
+
});
|
|
237
|
+
}), v = Object.freeze({
|
|
234
238
|
unknown: void 0,
|
|
235
239
|
coupled: 1
|
|
236
|
-
}), y =
|
|
237
|
-
let e =
|
|
238
|
-
throw
|
|
240
|
+
}), y = c.getById(n.observable, () => {
|
|
241
|
+
let e = re.enqueue, t = /(:|&&|\|\||if|\?\.)/, n = /* @__PURE__ */ new WeakMap(), o, s = (e) => {
|
|
242
|
+
throw c.error(r.needsArrayObservation);
|
|
239
243
|
};
|
|
240
|
-
function
|
|
244
|
+
function l(e) {
|
|
241
245
|
let t = e.$fastController ?? n.get(e);
|
|
242
|
-
return t === void 0 && (Array.isArray(e) ? t =
|
|
246
|
+
return t === void 0 && (Array.isArray(e) ? t = s(e) : n.set(e, t = new ne(e))), t;
|
|
243
247
|
}
|
|
244
|
-
let
|
|
245
|
-
class
|
|
248
|
+
let u = d();
|
|
249
|
+
class p {
|
|
246
250
|
constructor(e) {
|
|
247
251
|
this.name = e, this.field = `_${e}`, this.callback = `${e}Changed`;
|
|
248
252
|
}
|
|
249
253
|
getValue(e) {
|
|
250
|
-
return
|
|
254
|
+
return o !== void 0 && o.watch(e, this.name), e[this.field];
|
|
251
255
|
}
|
|
252
256
|
setValue(e, t) {
|
|
253
|
-
let n = this.field,
|
|
254
|
-
if (
|
|
257
|
+
let n = this.field, r = e[n];
|
|
258
|
+
if (r !== t) {
|
|
255
259
|
e[n] = t;
|
|
256
260
|
let a = e[this.callback];
|
|
257
|
-
|
|
261
|
+
i(a) && a.call(e, r, t), l(e).notify(this.name);
|
|
258
262
|
}
|
|
259
263
|
}
|
|
260
264
|
}
|
|
261
|
-
class
|
|
265
|
+
class m extends _ {
|
|
262
266
|
constructor(e, t, n = !1) {
|
|
263
267
|
super(e, t), this.expression = e, this.isVolatileBinding = n, this.needsRefresh = !0, this.needsQueue = !0, this.isAsync = !0, this.first = this, this.last = null, this.propertySource = void 0, this.propertyName = void 0, this.notifier = void 0, this.next = void 0;
|
|
264
268
|
}
|
|
@@ -278,13 +282,13 @@ var f = Object.freeze({
|
|
|
278
282
|
}
|
|
279
283
|
observe(e, t) {
|
|
280
284
|
this.needsRefresh && this.last !== null && this.dispose();
|
|
281
|
-
let n =
|
|
282
|
-
|
|
285
|
+
let n = o;
|
|
286
|
+
o = this.needsRefresh ? this : void 0, this.needsRefresh = this.isVolatileBinding;
|
|
283
287
|
let r;
|
|
284
288
|
try {
|
|
285
289
|
r = this.expression(e, t);
|
|
286
290
|
} finally {
|
|
287
|
-
|
|
291
|
+
o = n;
|
|
288
292
|
}
|
|
289
293
|
return r;
|
|
290
294
|
}
|
|
@@ -299,11 +303,11 @@ var f = Object.freeze({
|
|
|
299
303
|
}
|
|
300
304
|
}
|
|
301
305
|
watch(e, t) {
|
|
302
|
-
let n = this.last, r =
|
|
306
|
+
let n = this.last, r = l(e), i = n === null ? this.first : {};
|
|
303
307
|
if (i.propertySource = e, i.propertyName = t, i.notifier = r, r.subscribe(this, t), n !== null) {
|
|
304
308
|
if (!this.needsRefresh) {
|
|
305
309
|
let t;
|
|
306
|
-
|
|
310
|
+
o = void 0, t = n.propertySource[n.propertyName], o = this, e === t && (this.needsRefresh = !0);
|
|
307
311
|
}
|
|
308
312
|
n.next = i;
|
|
309
313
|
}
|
|
@@ -320,22 +324,22 @@ var f = Object.freeze({
|
|
|
320
324
|
for (; e !== void 0;) yield e, e = e.next;
|
|
321
325
|
}
|
|
322
326
|
}
|
|
323
|
-
return
|
|
327
|
+
return f(m), Object.freeze({
|
|
324
328
|
setArrayObserverFactory(e) {
|
|
325
|
-
|
|
329
|
+
s = e;
|
|
326
330
|
},
|
|
327
|
-
getNotifier:
|
|
331
|
+
getNotifier: l,
|
|
328
332
|
track(e, t) {
|
|
329
|
-
|
|
333
|
+
o && o.watch(e, t);
|
|
330
334
|
},
|
|
331
335
|
trackVolatile() {
|
|
332
|
-
|
|
336
|
+
o && (o.needsRefresh = !0);
|
|
333
337
|
},
|
|
334
338
|
notify(e, t) {
|
|
335
|
-
|
|
339
|
+
l(e).notify(t);
|
|
336
340
|
},
|
|
337
341
|
defineProperty(e, t) {
|
|
338
|
-
|
|
342
|
+
a(t) && (t = new p(t)), u(e).push(t), Reflect.defineProperty(e, t.name, {
|
|
339
343
|
enumerable: !0,
|
|
340
344
|
get() {
|
|
341
345
|
return t.getValue(this);
|
|
@@ -345,24 +349,24 @@ var f = Object.freeze({
|
|
|
345
349
|
}
|
|
346
350
|
});
|
|
347
351
|
},
|
|
348
|
-
getAccessors:
|
|
352
|
+
getAccessors: u,
|
|
349
353
|
binding(e, t, n = this.isVolatileBinding(e)) {
|
|
350
|
-
return new
|
|
354
|
+
return new m(e, t, n);
|
|
351
355
|
},
|
|
352
356
|
isVolatileBinding(e) {
|
|
353
357
|
return t.test(e.toString());
|
|
354
358
|
}
|
|
355
359
|
});
|
|
356
360
|
});
|
|
357
|
-
function
|
|
361
|
+
function ie(e, t) {
|
|
358
362
|
y.defineProperty(e, t);
|
|
359
363
|
}
|
|
360
|
-
function
|
|
364
|
+
function ae(e, t, n) {
|
|
361
365
|
return Object.assign({}, n, { get() {
|
|
362
366
|
return y.trackVolatile(), n.get.apply(this);
|
|
363
367
|
} });
|
|
364
368
|
}
|
|
365
|
-
var
|
|
369
|
+
var oe = c.getById(n.contextEvent, () => {
|
|
366
370
|
let e = null;
|
|
367
371
|
return {
|
|
368
372
|
get() {
|
|
@@ -387,25 +391,25 @@ var ae = s.getById(n.contextEvent, () => {
|
|
|
387
391
|
}
|
|
388
392
|
},
|
|
389
393
|
getEvent() {
|
|
390
|
-
return
|
|
394
|
+
return oe.get();
|
|
391
395
|
},
|
|
392
396
|
setEvent(e) {
|
|
393
|
-
|
|
397
|
+
oe.set(e);
|
|
394
398
|
}
|
|
395
399
|
}), x = class {
|
|
396
400
|
constructor(e, t, n = !1) {
|
|
397
401
|
this.evaluate = e, this.policy = t, this.isVolatile = n;
|
|
398
402
|
}
|
|
399
|
-
},
|
|
403
|
+
}, se = class extends x {
|
|
400
404
|
createObserver(e) {
|
|
401
405
|
return y.binding(this.evaluate, e, this.isVolatile);
|
|
402
406
|
}
|
|
403
407
|
};
|
|
404
|
-
function
|
|
405
|
-
return new
|
|
408
|
+
function S(e, t, n = y.isVolatileBinding(e)) {
|
|
409
|
+
return new se(e, t, n);
|
|
406
410
|
}
|
|
407
411
|
//#endregion
|
|
408
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
412
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/binding/one-time.js
|
|
409
413
|
var ce = class extends x {
|
|
410
414
|
createObserver() {
|
|
411
415
|
return this;
|
|
@@ -414,23 +418,23 @@ var ce = class extends x {
|
|
|
414
418
|
return this.evaluate(e.source, e.context);
|
|
415
419
|
}
|
|
416
420
|
};
|
|
417
|
-
|
|
418
|
-
function
|
|
421
|
+
f(ce);
|
|
422
|
+
function C(e, t) {
|
|
419
423
|
return new ce(e, t);
|
|
420
424
|
}
|
|
421
425
|
//#endregion
|
|
422
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
423
|
-
var
|
|
424
|
-
function
|
|
425
|
-
return e.map((e) => e instanceof
|
|
426
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/styles/element-styles.js
|
|
427
|
+
var le;
|
|
428
|
+
function ue(e) {
|
|
429
|
+
return e.map((e) => e instanceof w ? ue(e.styles) : [e]).reduce((e, t) => e.concat(t), []);
|
|
426
430
|
}
|
|
427
|
-
var
|
|
431
|
+
var w = class e {
|
|
432
|
+
get strategy() {
|
|
433
|
+
return this._strategy === null && this.withStrategy(le), this._strategy;
|
|
434
|
+
}
|
|
428
435
|
constructor(t) {
|
|
429
436
|
this.styles = t, this.targets = /* @__PURE__ */ new WeakSet(), this._strategy = null, this.behaviors = t.map((t) => t instanceof e ? t.behaviors : null).reduce((e, t) => t === null ? e : e === null ? t : e.concat(t), null);
|
|
430
437
|
}
|
|
431
|
-
get strategy() {
|
|
432
|
-
return this._strategy === null && this.withStrategy(ue), this._strategy;
|
|
433
|
-
}
|
|
434
438
|
addStylesTo(e) {
|
|
435
439
|
this.strategy.addStylesTo(e), this.targets.add(e);
|
|
436
440
|
}
|
|
@@ -444,24 +448,83 @@ var S = class e {
|
|
|
444
448
|
return this.behaviors = this.behaviors === null ? e : this.behaviors.concat(e), this;
|
|
445
449
|
}
|
|
446
450
|
withStrategy(e) {
|
|
447
|
-
return this._strategy = new e(
|
|
451
|
+
return this._strategy = new e(ue(this.styles)), this;
|
|
448
452
|
}
|
|
449
453
|
static setDefaultStrategy(e) {
|
|
450
|
-
|
|
454
|
+
le = e;
|
|
451
455
|
}
|
|
452
456
|
static normalize(t) {
|
|
453
457
|
return t === void 0 ? void 0 : Array.isArray(t) ? new e(t) : t instanceof e ? t : new e([t]);
|
|
454
458
|
}
|
|
455
459
|
};
|
|
456
|
-
|
|
460
|
+
w.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
|
|
457
461
|
//#endregion
|
|
458
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
459
|
-
var
|
|
460
|
-
|
|
462
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/templating/markup.js
|
|
463
|
+
var T = `fast-${Math.random().toString(36).substring(2, 8)}`, E = `${T}{`, D = `}${T}`, de = D.length, fe = 0, O = () => `${T}-${++fe}`, pe = Object.freeze({
|
|
464
|
+
interpolation: (e) => `${E}${e}${D}`,
|
|
465
|
+
attribute: (e) => `${O()}="${E}${e}${D}"`,
|
|
466
|
+
comment: (e) => `<!--${E}${e}${D}-->`
|
|
467
|
+
}), k = Object.freeze({ parse(e, t) {
|
|
468
|
+
let n = e.split(E);
|
|
469
|
+
if (n.length === 1) return null;
|
|
470
|
+
let r = [];
|
|
471
|
+
for (let e = 0, i = n.length; e < i; ++e) {
|
|
472
|
+
let i = n[e], a = i.indexOf(D), o;
|
|
473
|
+
if (a === -1) o = i;
|
|
474
|
+
else {
|
|
475
|
+
let e = i.substring(0, a);
|
|
476
|
+
r.push(t[e]), o = i.substring(a + de);
|
|
477
|
+
}
|
|
478
|
+
o !== "" && r.push(o);
|
|
479
|
+
}
|
|
480
|
+
return r;
|
|
481
|
+
} }), me = u(), A = Object.freeze({
|
|
482
|
+
getForInstance: me.getForInstance,
|
|
483
|
+
getByType: me.getByType,
|
|
484
|
+
define(e, t) {
|
|
485
|
+
return t ||= {}, t.type = e, me.register(t), e;
|
|
486
|
+
},
|
|
487
|
+
assignAspect(e, t) {
|
|
488
|
+
if (!t) {
|
|
489
|
+
e.aspectType = p.content;
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
switch (e.sourceAspect = t, t[0]) {
|
|
493
|
+
case ":":
|
|
494
|
+
e.targetAspect = t.substring(1), e.aspectType = e.targetAspect === "classList" ? p.tokenList : p.property;
|
|
495
|
+
break;
|
|
496
|
+
case "?":
|
|
497
|
+
e.targetAspect = t.substring(1), e.aspectType = p.booleanAttribute;
|
|
498
|
+
break;
|
|
499
|
+
case "@":
|
|
500
|
+
e.targetAspect = t.substring(1), e.aspectType = p.event;
|
|
501
|
+
break;
|
|
502
|
+
default:
|
|
503
|
+
e.targetAspect = t, e.aspectType = p.attribute;
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}), he = class {
|
|
508
|
+
constructor(e) {
|
|
509
|
+
this.options = e;
|
|
510
|
+
}
|
|
511
|
+
createHTML(e) {
|
|
512
|
+
return pe.attribute(e(this));
|
|
513
|
+
}
|
|
514
|
+
createBehavior() {
|
|
515
|
+
return this;
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
f(he);
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/components/hydration.js
|
|
521
|
+
var ge = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, _e = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, ve = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, ye = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, be = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, xe = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
|
|
522
|
+
function Se(e) {
|
|
461
523
|
return e && e.nodeType === Node.COMMENT_NODE;
|
|
462
524
|
}
|
|
463
|
-
var
|
|
525
|
+
var j = Object.freeze({
|
|
464
526
|
attributeMarkerName: "data-fe-b",
|
|
527
|
+
compactAttributeMarkerName: "data-fe-c",
|
|
465
528
|
attributeBindingSeparator: " ",
|
|
466
529
|
contentBindingStartMarker(e, t) {
|
|
467
530
|
return `fe-b$$start$$${e}$$${t}$$fe-b`;
|
|
@@ -476,22 +539,22 @@ var C = Object.freeze({
|
|
|
476
539
|
return `fe-repeat$$end$$${e}$$fe-repeat`;
|
|
477
540
|
},
|
|
478
541
|
isContentBindingStartMarker(e) {
|
|
479
|
-
return
|
|
542
|
+
return ge.test(e);
|
|
480
543
|
},
|
|
481
544
|
isContentBindingEndMarker(e) {
|
|
482
|
-
return
|
|
545
|
+
return _e.test(e);
|
|
483
546
|
},
|
|
484
547
|
isRepeatViewStartMarker(e) {
|
|
485
|
-
return
|
|
548
|
+
return ve.test(e);
|
|
486
549
|
},
|
|
487
550
|
isRepeatViewEndMarker(e) {
|
|
488
|
-
return
|
|
551
|
+
return ye.test(e);
|
|
489
552
|
},
|
|
490
553
|
isElementBoundaryStartMarker(e) {
|
|
491
|
-
return
|
|
554
|
+
return Se(e) && be.test(e.data.trim());
|
|
492
555
|
},
|
|
493
556
|
isElementBoundaryEndMarker(e) {
|
|
494
|
-
return
|
|
557
|
+
return Se(e) && xe.test(e.data);
|
|
495
558
|
},
|
|
496
559
|
parseAttributeBinding(e) {
|
|
497
560
|
let t = e.getAttribute(this.attributeMarkerName);
|
|
@@ -502,199 +565,160 @@ var C = Object.freeze({
|
|
|
502
565
|
for (let i of e.getAttributeNames()) if (i.startsWith(r)) {
|
|
503
566
|
let e = Number(i.slice(n));
|
|
504
567
|
if (!Number.isNaN(e)) t.push(e);
|
|
505
|
-
else throw
|
|
568
|
+
else throw c.error(1601, {
|
|
569
|
+
name: i,
|
|
570
|
+
expectedFormat: `${r}<number>`
|
|
571
|
+
});
|
|
506
572
|
}
|
|
507
573
|
return t.length === 0 ? null : t;
|
|
508
574
|
},
|
|
575
|
+
parseCompactAttributeBinding(e) {
|
|
576
|
+
let t = `${this.compactAttributeMarkerName}-`, n = e.getAttributeNames().find((e) => e.startsWith(t));
|
|
577
|
+
if (!n) return null;
|
|
578
|
+
let r = n.slice(t.length).split("-"), i = parseInt(r[0], 10), a = parseInt(r[1], 10);
|
|
579
|
+
if (r.length !== 2 || Number.isNaN(i) || Number.isNaN(a) || i < 0 || a < 1) throw c.error(1604, {
|
|
580
|
+
name: n,
|
|
581
|
+
expectedFormat: `${this.compactAttributeMarkerName}-{index}-{count}`
|
|
582
|
+
});
|
|
583
|
+
let o = [];
|
|
584
|
+
for (let e = 0; e < a; e++) o.push(i + e);
|
|
585
|
+
return o;
|
|
586
|
+
},
|
|
509
587
|
parseContentBindingStartMarker(e) {
|
|
510
|
-
return
|
|
588
|
+
return Te(ge, e);
|
|
511
589
|
},
|
|
512
590
|
parseContentBindingEndMarker(e) {
|
|
513
|
-
return
|
|
591
|
+
return Te(_e, e);
|
|
514
592
|
},
|
|
515
593
|
parseRepeatStartMarker(e) {
|
|
516
|
-
return
|
|
594
|
+
return Ce(ve, e);
|
|
517
595
|
},
|
|
518
596
|
parseRepeatEndMarker(e) {
|
|
519
|
-
return ye
|
|
597
|
+
return Ce(ye, e);
|
|
520
598
|
},
|
|
521
599
|
parseElementBoundaryStartMarker(e) {
|
|
522
|
-
return be
|
|
600
|
+
return we(be, e.trim());
|
|
523
601
|
},
|
|
524
602
|
parseElementBoundaryEndMarker(e) {
|
|
525
|
-
return
|
|
603
|
+
return we(xe, e);
|
|
526
604
|
}
|
|
527
605
|
});
|
|
528
|
-
function
|
|
606
|
+
function Ce(e, t) {
|
|
529
607
|
let n = e.exec(t);
|
|
530
608
|
return n === null ? n : parseInt(n[1]);
|
|
531
609
|
}
|
|
532
|
-
function
|
|
610
|
+
function we(e, t) {
|
|
533
611
|
let n = e.exec(t);
|
|
534
612
|
return n === null ? n : n[1];
|
|
535
613
|
}
|
|
536
|
-
function
|
|
614
|
+
function Te(e, t) {
|
|
537
615
|
let n = e.exec(t);
|
|
538
616
|
return n === null ? n : [parseInt(n[1]), n[2]];
|
|
539
617
|
}
|
|
540
|
-
var
|
|
541
|
-
function
|
|
542
|
-
return e[
|
|
618
|
+
var M = Symbol.for("fe-hydration");
|
|
619
|
+
function N(e) {
|
|
620
|
+
return e[M] === M;
|
|
543
621
|
}
|
|
544
|
-
|
|
545
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/templating/markup.js
|
|
546
|
-
var Se = `fast-${Math.random().toString(36).substring(2, 8)}`, E = `${Se}{`, D = `}${Se}`, Ce = D.length, we = 0, O = () => `${Se}-${++we}`, Te = Object.freeze({
|
|
547
|
-
interpolation: (e) => `${E}${e}${D}`,
|
|
548
|
-
attribute: (e) => `${O()}="${E}${e}${D}"`,
|
|
549
|
-
comment: (e) => `<!--${E}${e}${D}-->`
|
|
550
|
-
}), k = Object.freeze({ parse(e, t) {
|
|
551
|
-
let n = e.split(E);
|
|
552
|
-
if (n.length === 1) return null;
|
|
553
|
-
let r = [];
|
|
554
|
-
for (let e = 0, i = n.length; e < i; ++e) {
|
|
555
|
-
let i = n[e], a = i.indexOf(D), o;
|
|
556
|
-
if (a === -1) o = i;
|
|
557
|
-
else {
|
|
558
|
-
let e = i.substring(0, a);
|
|
559
|
-
r.push(t[e]), o = i.substring(a + Ce);
|
|
560
|
-
}
|
|
561
|
-
o !== "" && r.push(o);
|
|
562
|
-
}
|
|
563
|
-
return r;
|
|
564
|
-
} }), A = l(), j = Object.freeze({
|
|
565
|
-
getForInstance: A.getForInstance,
|
|
566
|
-
getByType: A.getByType,
|
|
567
|
-
define(e, t) {
|
|
568
|
-
return t ||= {}, t.type = e, A.register(t), e;
|
|
569
|
-
},
|
|
570
|
-
assignAspect(e, t) {
|
|
571
|
-
if (!t) {
|
|
572
|
-
e.aspectType = f.content;
|
|
573
|
-
return;
|
|
574
|
-
}
|
|
575
|
-
switch (e.sourceAspect = t, t[0]) {
|
|
576
|
-
case ":":
|
|
577
|
-
e.targetAspect = t.substring(1), e.aspectType = e.targetAspect === "classList" ? f.tokenList : f.property;
|
|
578
|
-
break;
|
|
579
|
-
case "?":
|
|
580
|
-
e.targetAspect = t.substring(1), e.aspectType = f.booleanAttribute;
|
|
581
|
-
break;
|
|
582
|
-
case "@":
|
|
583
|
-
e.targetAspect = t.substring(1), e.aspectType = f.event;
|
|
584
|
-
break;
|
|
585
|
-
default:
|
|
586
|
-
e.targetAspect = t, e.aspectType = f.attribute;
|
|
587
|
-
break;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}), Ee = class {
|
|
591
|
-
constructor(e) {
|
|
592
|
-
this.options = e;
|
|
593
|
-
}
|
|
594
|
-
createHTML(e) {
|
|
595
|
-
return Te.attribute(e(this));
|
|
596
|
-
}
|
|
597
|
-
createBehavior() {
|
|
598
|
-
return this;
|
|
599
|
-
}
|
|
600
|
-
};
|
|
601
|
-
d(Ee);
|
|
602
|
-
//#endregion
|
|
603
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/hydration/target-builder.js
|
|
604
|
-
var De = class extends Error {
|
|
622
|
+
var Ee = "defer-hydration", De = class extends Error {
|
|
605
623
|
constructor(e, t, n) {
|
|
606
624
|
super(e), this.factories = t, this.node = n;
|
|
607
625
|
}
|
|
608
626
|
};
|
|
609
|
-
function
|
|
627
|
+
function Oe(e) {
|
|
610
628
|
return e.nodeType === Node.COMMENT_NODE;
|
|
611
629
|
}
|
|
612
|
-
function
|
|
630
|
+
function ke(e) {
|
|
613
631
|
return e.nodeType === Node.TEXT_NODE;
|
|
614
632
|
}
|
|
615
|
-
function
|
|
633
|
+
function Ae(e, t) {
|
|
616
634
|
let n = document.createRange();
|
|
617
|
-
return n.setStart(e, 0), n.setEnd(t,
|
|
635
|
+
return n.setStart(e, 0), n.setEnd(t, Oe(t) || ke(t) ? t.data.length : t.childNodes.length), n;
|
|
618
636
|
}
|
|
619
|
-
function
|
|
637
|
+
function je(e) {
|
|
620
638
|
return e instanceof DocumentFragment && "mode" in e;
|
|
621
639
|
}
|
|
622
|
-
function
|
|
623
|
-
let r =
|
|
640
|
+
function Me(e, t, n) {
|
|
641
|
+
let r = Ae(e, t), i = r.commonAncestorContainer, a = Ie(n), o = document.createTreeWalker(i, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, { acceptNode(e) {
|
|
624
642
|
return r.comparePoint(e, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
625
|
-
} }),
|
|
626
|
-
for (;
|
|
627
|
-
switch (
|
|
643
|
+
} }), s = {}, c = {}, l = o.currentNode = e;
|
|
644
|
+
for (; l !== null;) {
|
|
645
|
+
switch (l.nodeType) {
|
|
628
646
|
case Node.ELEMENT_NODE:
|
|
629
|
-
|
|
647
|
+
Ne(l, n, s, a);
|
|
630
648
|
break;
|
|
631
649
|
case Node.COMMENT_NODE:
|
|
632
|
-
|
|
650
|
+
Pe(l, o, n, s, c, a);
|
|
633
651
|
break;
|
|
634
652
|
}
|
|
635
|
-
|
|
653
|
+
l = o.nextNode();
|
|
636
654
|
}
|
|
637
655
|
return r.detach(), {
|
|
638
|
-
targets:
|
|
639
|
-
boundaries:
|
|
656
|
+
targets: s,
|
|
657
|
+
boundaries: c
|
|
640
658
|
};
|
|
641
659
|
}
|
|
642
|
-
function
|
|
643
|
-
let
|
|
644
|
-
if (
|
|
645
|
-
for (let
|
|
646
|
-
|
|
647
|
-
|
|
660
|
+
function Ne(e, t, n, r) {
|
|
661
|
+
let i = j.parseAttributeBinding(e) ?? j.parseEnumeratedAttributeBinding(e) ?? j.parseCompactAttributeBinding(e);
|
|
662
|
+
if (i !== null) {
|
|
663
|
+
for (let a of i) {
|
|
664
|
+
let i = t[a + r];
|
|
665
|
+
if (!i) throw new De(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`, t, e);
|
|
666
|
+
P(i, e, n);
|
|
648
667
|
}
|
|
649
|
-
e.removeAttribute(
|
|
668
|
+
e.removeAttribute(j.attributeMarkerName);
|
|
650
669
|
}
|
|
651
670
|
}
|
|
652
|
-
function
|
|
653
|
-
if (
|
|
654
|
-
|
|
671
|
+
function Pe(e, t, n, r, i, a) {
|
|
672
|
+
if (j.isElementBoundaryStartMarker(e)) {
|
|
673
|
+
Fe(e, t);
|
|
655
674
|
return;
|
|
656
675
|
}
|
|
657
|
-
if (
|
|
658
|
-
let
|
|
659
|
-
if (
|
|
660
|
-
let [
|
|
676
|
+
if (j.isContentBindingStartMarker(e.data)) {
|
|
677
|
+
let o = j.parseContentBindingStartMarker(e.data);
|
|
678
|
+
if (o === null) return;
|
|
679
|
+
let [s, c] = o, l = n[s + a], u = [], d = t.nextSibling();
|
|
661
680
|
e.data = "";
|
|
662
|
-
let
|
|
663
|
-
for (;
|
|
664
|
-
if (
|
|
665
|
-
let e =
|
|
666
|
-
if (e && e[1] ===
|
|
681
|
+
let f = d;
|
|
682
|
+
for (; d !== null;) {
|
|
683
|
+
if (Oe(d)) {
|
|
684
|
+
let e = j.parseContentBindingEndMarker(d.data);
|
|
685
|
+
if (e && e[1] === c) break;
|
|
667
686
|
}
|
|
668
|
-
|
|
687
|
+
u.push(d), d = t.nextSibling();
|
|
669
688
|
}
|
|
670
|
-
if (
|
|
689
|
+
if (d === null) {
|
|
671
690
|
let t = e.getRootNode();
|
|
672
|
-
throw Error(`Error hydrating Comment node inside "${
|
|
691
|
+
throw Error(`Error hydrating Comment node inside "${je(t) ? t.host.nodeName : t.nodeName}".`);
|
|
673
692
|
}
|
|
674
|
-
|
|
675
|
-
first:
|
|
676
|
-
last:
|
|
677
|
-
}),
|
|
693
|
+
d.data = "", u.length === 1 && ke(u[0]) ? P(l, u[0], r) : (d !== f && d.previousSibling !== null && (i[l.targetNodeId] = {
|
|
694
|
+
first: f,
|
|
695
|
+
last: d.previousSibling
|
|
696
|
+
}), P(l, d.parentNode.insertBefore(document.createTextNode(""), d), r));
|
|
678
697
|
}
|
|
679
698
|
}
|
|
680
|
-
function
|
|
681
|
-
let n =
|
|
699
|
+
function Fe(e, t) {
|
|
700
|
+
let n = j.parseElementBoundaryStartMarker(e.data), r = t.nextSibling();
|
|
682
701
|
for (; r !== null;) {
|
|
683
|
-
if (
|
|
684
|
-
let e =
|
|
702
|
+
if (Oe(r)) {
|
|
703
|
+
let e = j.parseElementBoundaryEndMarker(r.data);
|
|
685
704
|
if (e && e === n) break;
|
|
686
705
|
}
|
|
687
706
|
r = t.nextSibling();
|
|
688
707
|
}
|
|
689
708
|
}
|
|
690
|
-
function
|
|
709
|
+
function Ie(e) {
|
|
710
|
+
let t = 0;
|
|
711
|
+
for (let n = 0, r = e.length; n < r && e[n].targetNodeId === "h"; ++n) t++;
|
|
712
|
+
return t;
|
|
713
|
+
}
|
|
714
|
+
function P(e, t, n) {
|
|
691
715
|
if (e.targetNodeId === void 0) throw Error("Factory could not be target to the node");
|
|
692
716
|
n[e.targetNodeId] = t;
|
|
693
717
|
}
|
|
694
718
|
//#endregion
|
|
695
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
696
|
-
var
|
|
697
|
-
function
|
|
719
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/templating/view.js
|
|
720
|
+
var Le;
|
|
721
|
+
function Re(e, t) {
|
|
698
722
|
let n = e.parentNode, r = e, i;
|
|
699
723
|
for (; r !== t;) {
|
|
700
724
|
if (i = r.nextSibling, !i) throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);
|
|
@@ -702,7 +726,7 @@ function P(e, t) {
|
|
|
702
726
|
}
|
|
703
727
|
n.removeChild(t);
|
|
704
728
|
}
|
|
705
|
-
var
|
|
729
|
+
var ze = class {
|
|
706
730
|
constructor() {
|
|
707
731
|
this.index = 0, this.length = 0;
|
|
708
732
|
}
|
|
@@ -730,7 +754,7 @@ var Ie = class {
|
|
|
730
754
|
eventTarget() {
|
|
731
755
|
return this.event.target;
|
|
732
756
|
}
|
|
733
|
-
}, F = class extends
|
|
757
|
+
}, F = class extends ze {
|
|
734
758
|
constructor(e, t, n) {
|
|
735
759
|
super(), this.fragment = e, this.factories = t, this.targets = n, this.behaviors = null, this.unbindables = [], this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.context = this, this.firstChild = e.firstChild, this.lastChild = e.lastChild;
|
|
736
760
|
}
|
|
@@ -753,7 +777,7 @@ var Ie = class {
|
|
|
753
777
|
e.appendChild(t);
|
|
754
778
|
}
|
|
755
779
|
dispose() {
|
|
756
|
-
|
|
780
|
+
Re(this.firstChild, this.lastChild), this.unbind();
|
|
757
781
|
}
|
|
758
782
|
onUnbind(e) {
|
|
759
783
|
this.unbindables.push(e);
|
|
@@ -784,24 +808,21 @@ var Ie = class {
|
|
|
784
808
|
}
|
|
785
809
|
static disposeContiguousBatch(e) {
|
|
786
810
|
if (e.length !== 0) {
|
|
787
|
-
|
|
811
|
+
Re(e[0].firstChild, e[e.length - 1].lastChild);
|
|
788
812
|
for (let t = 0, n = e.length; t < n; ++t) e[t].unbind();
|
|
789
813
|
}
|
|
790
814
|
}
|
|
791
815
|
};
|
|
792
|
-
|
|
816
|
+
f(F), y.defineProperty(F.prototype, "index"), y.defineProperty(F.prototype, "length");
|
|
793
817
|
var I = {
|
|
794
818
|
unhydrated: "unhydrated",
|
|
795
819
|
hydrating: "hydrating",
|
|
796
820
|
hydrated: "hydrated"
|
|
797
|
-
},
|
|
821
|
+
}, Be = class extends Error {
|
|
798
822
|
constructor(e, t, n, r) {
|
|
799
823
|
super(e), this.factory = t, this.fragment = n, this.templateString = r;
|
|
800
824
|
}
|
|
801
|
-
},
|
|
802
|
-
constructor(e, t, n, r) {
|
|
803
|
-
super(), this.firstChild = e, this.lastChild = t, this.sourceTemplate = n, this.hostBindingTarget = r, this[Fe] = w, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = I.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = n.compile().factories;
|
|
804
|
-
}
|
|
825
|
+
}, Ve = class extends ze {
|
|
805
826
|
get hydrationStage() {
|
|
806
827
|
return this._hydrationStage;
|
|
807
828
|
}
|
|
@@ -811,6 +832,9 @@ var I = {
|
|
|
811
832
|
get bindingViewBoundaries() {
|
|
812
833
|
return this._bindingViewBoundaries;
|
|
813
834
|
}
|
|
835
|
+
constructor(e, t, n, r) {
|
|
836
|
+
super(), this.firstChild = e, this.lastChild = t, this.sourceTemplate = n, this.hostBindingTarget = r, this[Le] = M, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = v.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = I.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = n.compile().factories;
|
|
837
|
+
}
|
|
814
838
|
insertBefore(e) {
|
|
815
839
|
if (this.fragment !== null) if (this.fragment.hasChildNodes()) e.parentNode.insertBefore(this.fragment, e);
|
|
816
840
|
else {
|
|
@@ -838,7 +862,7 @@ var I = {
|
|
|
838
862
|
if (n === null) {
|
|
839
863
|
this.source = e, this.context = t;
|
|
840
864
|
try {
|
|
841
|
-
let { targets: e, boundaries: t } =
|
|
865
|
+
let { targets: e, boundaries: t } = Me(this.firstChild, this.lastChild, this.factories);
|
|
842
866
|
this._targets = e, this._bindingViewBoundaries = t;
|
|
843
867
|
} catch (e) {
|
|
844
868
|
if (e instanceof De) {
|
|
@@ -851,7 +875,7 @@ var I = {
|
|
|
851
875
|
let r = this.factories;
|
|
852
876
|
for (let e = 0, t = r.length; e < t; ++e) {
|
|
853
877
|
let t = r[e];
|
|
854
|
-
if (t.targetNodeId === "h" && this.hostBindingTarget &&
|
|
878
|
+
if (t.targetNodeId === "h" && this.hostBindingTarget && P(t, this.hostBindingTarget, this._targets), t.targetNodeId in this.targets) {
|
|
855
879
|
let r = t.createBehavior();
|
|
856
880
|
r.bind(this), n[e] = r;
|
|
857
881
|
} else {
|
|
@@ -863,7 +887,7 @@ var I = {
|
|
|
863
887
|
` - Expected target node ID: "${t.targetNodeId}"`,
|
|
864
888
|
` - Available target IDs: [${Object.keys(this.targets).join(", ") || "none"}]`
|
|
865
889
|
];
|
|
866
|
-
throw t.targetTagName && i.push(` - Expected tag name: "${t.targetTagName}"`), r.sourceAspect && i.push(` - Source aspect: "${r.sourceAspect}"`), r.aspectType !== void 0 && i.push(` - Aspect type: ${r.aspectType}`), i.push("\nThis usually means:", " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `\nTemplate: ${e.slice(0, 200)}${e.length > 200 ? "..." : ""}`), new
|
|
890
|
+
throw t.targetTagName && i.push(` - Expected tag name: "${t.targetTagName}"`), r.sourceAspect && i.push(` - Source aspect: "${r.sourceAspect}"`), r.aspectType !== void 0 && i.push(` - Aspect type: ${r.aspectType}`), i.push("\nThis usually means:", " 1. The server-rendered HTML doesn't match the client template", " 2. The hydration markers are missing or corrupted", " 3. The DOM structure was modified before hydration", `\nTemplate: ${e.slice(0, 200)}${e.length > 200 ? "..." : ""}`), new Be(i.join("\n"), t, Ae(this.firstChild, this.lastChild).cloneContents(), e);
|
|
867
891
|
}
|
|
868
892
|
}
|
|
869
893
|
} else {
|
|
@@ -876,7 +900,7 @@ var I = {
|
|
|
876
900
|
!this.isBound || this.source === null || (this.evaluateUnbindables(), this.source = null, this.context = this, this.isBound = !1);
|
|
877
901
|
}
|
|
878
902
|
dispose() {
|
|
879
|
-
|
|
903
|
+
Re(this.firstChild, this.lastChild), this.unbind();
|
|
880
904
|
}
|
|
881
905
|
onUnbind(e) {
|
|
882
906
|
this.unbindables.push(e);
|
|
@@ -887,17 +911,17 @@ var I = {
|
|
|
887
911
|
e.length = 0;
|
|
888
912
|
}
|
|
889
913
|
};
|
|
890
|
-
|
|
914
|
+
Le = M, f(Ve);
|
|
891
915
|
//#endregion
|
|
892
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
893
|
-
function
|
|
916
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/templating/html-binding-directive.js
|
|
917
|
+
function He(e) {
|
|
894
918
|
return e.create !== void 0;
|
|
895
919
|
}
|
|
896
|
-
function
|
|
897
|
-
if (n ??= "",
|
|
920
|
+
function Ue(e, t, n, r) {
|
|
921
|
+
if (n ??= "", He(n)) {
|
|
898
922
|
e.textContent = "";
|
|
899
923
|
let t = e.$fastView;
|
|
900
|
-
if (t === void 0) if (
|
|
924
|
+
if (t === void 0) if (N(r) && N(n) && r.bindingViewBoundaries[this.targetNodeId] !== void 0 && r.hydrationStage !== I.hydrated) {
|
|
901
925
|
let e = r.bindingViewBoundaries[this.targetNodeId];
|
|
902
926
|
t = n.hydrate(e.first, e.last);
|
|
903
927
|
} else t = n.create();
|
|
@@ -908,7 +932,7 @@ function Be(e, t, n, r) {
|
|
|
908
932
|
t !== void 0 && t.isComposed && (t.isComposed = !1, t.remove(), t.needsBindOnly ? t.needsBindOnly = !1 : t.unbind()), e.textContent = n;
|
|
909
933
|
}
|
|
910
934
|
}
|
|
911
|
-
function
|
|
935
|
+
function We(e, t, n) {
|
|
912
936
|
let r = `${this.id}-t`, i = e[r] ?? (e[r] = {
|
|
913
937
|
v: 0,
|
|
914
938
|
cv: Object.create(null)
|
|
@@ -925,43 +949,44 @@ function Ve(e, t, n) {
|
|
|
925
949
|
for (let e in a) a[e] === o && s.remove(e);
|
|
926
950
|
}
|
|
927
951
|
}
|
|
928
|
-
var
|
|
929
|
-
[
|
|
930
|
-
[
|
|
931
|
-
[
|
|
932
|
-
[
|
|
933
|
-
[
|
|
934
|
-
[
|
|
952
|
+
var Ge = {
|
|
953
|
+
[p.attribute]: g.setAttribute,
|
|
954
|
+
[p.booleanAttribute]: g.setBooleanAttribute,
|
|
955
|
+
[p.property]: (e, t, n) => e[t] = n,
|
|
956
|
+
[p.content]: Ue,
|
|
957
|
+
[p.tokenList]: We,
|
|
958
|
+
[p.event]: () => void 0
|
|
935
959
|
}, L = class {
|
|
936
960
|
constructor(e) {
|
|
937
|
-
this.dataBinding = e, this.updateTarget = null, this.aspectType =
|
|
961
|
+
this.dataBinding = e, this.updateTarget = null, this.aspectType = p.content;
|
|
938
962
|
}
|
|
939
963
|
createHTML(e) {
|
|
940
|
-
return
|
|
964
|
+
return pe.interpolation(e(this));
|
|
941
965
|
}
|
|
942
966
|
createBehavior() {
|
|
943
967
|
if (this.updateTarget === null) {
|
|
944
|
-
let e =
|
|
945
|
-
if (!e) throw
|
|
968
|
+
let e = Ge[this.aspectType], t = this.dataBinding.policy ?? this.policy;
|
|
969
|
+
if (!e) throw c.error(r.unsupportedBindingBehavior);
|
|
946
970
|
this.data = `${this.id}-d`, this.updateTarget = t.protect(this.targetTagName, this.aspectType, this.targetAspect, e);
|
|
947
971
|
}
|
|
948
972
|
return this;
|
|
949
973
|
}
|
|
950
974
|
bind(e) {
|
|
951
|
-
let t = e.targets[this.targetNodeId], n =
|
|
975
|
+
let t = e.targets[this.targetNodeId], n = N(e) && e.hydrationStage && e.hydrationStage !== I.hydrated;
|
|
952
976
|
switch (this.aspectType) {
|
|
953
|
-
case
|
|
977
|
+
case p.event:
|
|
954
978
|
t[this.data] = e, t.addEventListener(this.targetAspect, this, this.dataBinding.options);
|
|
955
979
|
break;
|
|
956
|
-
case
|
|
957
|
-
default:
|
|
980
|
+
case p.content: e.onUnbind(this);
|
|
981
|
+
default: {
|
|
958
982
|
let r = t[this.data] ?? (t[this.data] = this.dataBinding.createObserver(this, this));
|
|
959
|
-
if (r.target = t, r.controller = e, n && (this.aspectType ===
|
|
983
|
+
if (r.target = t, r.controller = e, n && (this.aspectType === p.attribute || this.aspectType === p.booleanAttribute)) {
|
|
960
984
|
r.bind(e);
|
|
961
985
|
break;
|
|
962
986
|
}
|
|
963
987
|
this.updateTarget(t, this.targetAspect, r.bind(e), e);
|
|
964
988
|
break;
|
|
989
|
+
}
|
|
965
990
|
}
|
|
966
991
|
}
|
|
967
992
|
unbind(e) {
|
|
@@ -977,30 +1002,32 @@ var He = {
|
|
|
977
1002
|
}
|
|
978
1003
|
}
|
|
979
1004
|
handleChange(e, t) {
|
|
980
|
-
let n = t.
|
|
981
|
-
|
|
1005
|
+
let n = t.controller;
|
|
1006
|
+
if (!n.isBound) return;
|
|
1007
|
+
let r = t.target;
|
|
1008
|
+
this.updateTarget(r, this.targetAspect, t.bind(n), n);
|
|
982
1009
|
}
|
|
983
1010
|
};
|
|
984
|
-
|
|
1011
|
+
A.define(L, { aspected: !0 });
|
|
985
1012
|
//#endregion
|
|
986
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
987
|
-
var
|
|
1013
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/templating/compiler.js
|
|
1014
|
+
var Ke = (e, t) => `${e}.${t}`, qe = {}, R = {
|
|
988
1015
|
index: 0,
|
|
989
1016
|
node: null
|
|
990
1017
|
};
|
|
991
|
-
function
|
|
992
|
-
e.startsWith("fast-") ||
|
|
1018
|
+
function Je(e) {
|
|
1019
|
+
e.startsWith("fast-") || c.warn(r.hostBindingWithoutHost, { name: e });
|
|
993
1020
|
}
|
|
994
|
-
var
|
|
1021
|
+
var Ye = new Proxy(document.createElement("div"), {
|
|
995
1022
|
get(e, t) {
|
|
996
|
-
|
|
1023
|
+
Je(t);
|
|
997
1024
|
let n = Reflect.get(e, t);
|
|
998
|
-
return
|
|
1025
|
+
return i(n) ? n.bind(e) : n;
|
|
999
1026
|
},
|
|
1000
1027
|
set(e, t, n) {
|
|
1001
|
-
return
|
|
1028
|
+
return Je(t), Reflect.set(e, t, n);
|
|
1002
1029
|
}
|
|
1003
|
-
}),
|
|
1030
|
+
}), Xe = class {
|
|
1004
1031
|
constructor(e, t, n) {
|
|
1005
1032
|
this.fragment = e, this.directives = t, this.policy = n, this.proto = null, this.nodeIds = /* @__PURE__ */ new Set(), this.descriptors = {}, this.factories = [];
|
|
1006
1033
|
}
|
|
@@ -1014,13 +1041,13 @@ var Ke = new Proxy(document.createElement("div"), {
|
|
|
1014
1041
|
let r = this.descriptors;
|
|
1015
1042
|
if (t === "r" || t === "h" || r[t]) return;
|
|
1016
1043
|
if (!r[e]) {
|
|
1017
|
-
let t = e.lastIndexOf("."), n = e.substring(0, t), r = parseInt(e.substring(t + 1));
|
|
1044
|
+
let t = e.lastIndexOf("."), n = e.substring(0, t), r = parseInt(e.substring(t + 1), 10);
|
|
1018
1045
|
this.addTargetDescriptor(n, e, r);
|
|
1019
1046
|
}
|
|
1020
|
-
let i =
|
|
1047
|
+
let i = qe[t];
|
|
1021
1048
|
if (!i) {
|
|
1022
1049
|
let r = `_${t}`;
|
|
1023
|
-
|
|
1050
|
+
qe[t] = i = { get() {
|
|
1024
1051
|
return this[r] ?? (this[r] = this[e].childNodes[n]);
|
|
1025
1052
|
} };
|
|
1026
1053
|
}
|
|
@@ -1028,143 +1055,78 @@ var Ke = new Proxy(document.createElement("div"), {
|
|
|
1028
1055
|
}
|
|
1029
1056
|
createView(e) {
|
|
1030
1057
|
let t = this.fragment.cloneNode(!0), n = Object.create(this.proto);
|
|
1031
|
-
n.r = t, n.h = e ??
|
|
1032
|
-
for (let e of this.nodeIds) n
|
|
1058
|
+
n.r = t, n.h = e ?? Ye;
|
|
1059
|
+
for (let e of this.nodeIds) Reflect.get(n, e);
|
|
1033
1060
|
return new F(t, this.factories, n);
|
|
1034
1061
|
}
|
|
1035
1062
|
};
|
|
1036
|
-
function
|
|
1063
|
+
function Ze(e, t, n, r, i, a = !1) {
|
|
1037
1064
|
let o = n.attributes, s = e.directives;
|
|
1038
1065
|
for (let c = 0, l = o.length; c < l; ++c) {
|
|
1039
1066
|
let u = o[c], d = u.value, f = k.parse(d, s), p = null;
|
|
1040
|
-
f === null ? a && (p = new L(
|
|
1067
|
+
f === null ? a && (p = new L(C(() => d, e.policy)), A.assignAspect(p, u.name)) : p = z.aggregate(f, e.policy), p !== null && (n.removeAttributeNode(u), c--, l--, e.addFactory(p, t, r, i, n.tagName));
|
|
1041
1068
|
}
|
|
1042
1069
|
}
|
|
1043
|
-
function
|
|
1070
|
+
function Qe(e, t, n, r, i) {
|
|
1044
1071
|
let o = k.parse(t.textContent, e.directives);
|
|
1045
|
-
if (o === null) return R.node = t.nextSibling, R.index =
|
|
1072
|
+
if (o === null) return R.node = t.nextSibling, R.index = i + 1, R;
|
|
1046
1073
|
let s, c = s = t;
|
|
1047
1074
|
for (let t = 0, l = o.length; t < l; ++t) {
|
|
1048
1075
|
let l = o[t];
|
|
1049
|
-
t !== 0 && (
|
|
1076
|
+
t !== 0 && (i++, r = Ke(n, i), s = c.parentNode.insertBefore(document.createTextNode(""), c.nextSibling)), a(l) ? s.textContent = l : (s.textContent = " ", A.assignAspect(l), e.addFactory(l, n, r, i, null)), c = s;
|
|
1050
1077
|
}
|
|
1051
|
-
return R.index =
|
|
1078
|
+
return R.index = i + 1, R.node = c.nextSibling, R;
|
|
1052
1079
|
}
|
|
1053
|
-
function
|
|
1080
|
+
function $e(e, t, n) {
|
|
1054
1081
|
let r = 0, i = t.firstChild;
|
|
1055
1082
|
for (; i;) {
|
|
1056
|
-
let t =
|
|
1083
|
+
let t = et(e, n, i, r);
|
|
1057
1084
|
i = t.node, r = t.index;
|
|
1058
1085
|
}
|
|
1059
1086
|
}
|
|
1060
|
-
function
|
|
1061
|
-
let i =
|
|
1087
|
+
function et(e, t, n, r) {
|
|
1088
|
+
let i = Ke(t, r);
|
|
1062
1089
|
switch (n.nodeType) {
|
|
1063
1090
|
case 1:
|
|
1064
|
-
|
|
1091
|
+
Ze(e, t, n, i, r), $e(e, n, i);
|
|
1065
1092
|
break;
|
|
1066
|
-
case 3: return
|
|
1067
|
-
case 8:
|
|
1093
|
+
case 3: return Qe(e, n, t, i, r);
|
|
1094
|
+
case 8: {
|
|
1068
1095
|
let a = k.parse(n.data, e.directives);
|
|
1069
1096
|
a !== null && e.addFactory(z.aggregate(a), t, i, r, null);
|
|
1070
1097
|
break;
|
|
1098
|
+
}
|
|
1071
1099
|
}
|
|
1072
1100
|
return R.index = r + 1, R.node = n.nextSibling, R;
|
|
1073
1101
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return e && e.nodeType
|
|
1102
|
+
function tt(e, t) {
|
|
1103
|
+
return e && e.nodeType === 8 && k.parse(e.data, t) !== null;
|
|
1076
1104
|
}
|
|
1077
|
-
var
|
|
1078
|
-
compile(e, t, n =
|
|
1105
|
+
var nt = "TEMPLATE", z = {
|
|
1106
|
+
compile(e, t, n = g.policy) {
|
|
1079
1107
|
let r;
|
|
1080
|
-
if (
|
|
1081
|
-
r = document.createElement(
|
|
1108
|
+
if (a(e)) {
|
|
1109
|
+
r = document.createElement(nt), r.innerHTML = n.createHTML(e);
|
|
1082
1110
|
let t = r.content.firstElementChild;
|
|
1083
|
-
t !== null && t.tagName ===
|
|
1111
|
+
t !== null && t.tagName === nt && (r = t);
|
|
1084
1112
|
} else r = e;
|
|
1085
1113
|
!r.content.firstChild && !r.content.lastChild && r.content.appendChild(document.createComment(""));
|
|
1086
|
-
let
|
|
1087
|
-
return
|
|
1114
|
+
let i = document.adoptNode(r.content), o = new Xe(i, t, n);
|
|
1115
|
+
return Ze(o, "", r, "h", 0, !0), (tt(i.firstChild, t) || i.childNodes.length === 1 && Object.keys(t).length > 0) && i.insertBefore(document.createComment(""), i.firstChild), $e(o, i, "r"), R.node = null, o.freeze();
|
|
1088
1116
|
},
|
|
1089
1117
|
setDefaultStrategy(e) {
|
|
1090
1118
|
this.compile = e;
|
|
1091
1119
|
},
|
|
1092
|
-
aggregate(e, t =
|
|
1120
|
+
aggregate(e, t = g.policy) {
|
|
1093
1121
|
if (e.length === 1) return e[0];
|
|
1094
|
-
let n, r = !1,
|
|
1122
|
+
let n, r = !1, i, o = e.length, s = e.map((e) => a(e) ? () => e : (n = e.sourceAspect || n, r ||= e.dataBinding.isVolatile, i ||= e.dataBinding.policy, e.dataBinding.evaluate)), c = new L(S((e, t) => {
|
|
1095
1123
|
let n = "";
|
|
1096
1124
|
for (let r = 0; r < o; ++r) n += s[r](e, t);
|
|
1097
1125
|
return n;
|
|
1098
|
-
},
|
|
1099
|
-
return
|
|
1100
|
-
}
|
|
1101
|
-
}, et = /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/, tt = Object.create(null), B = class {
|
|
1102
|
-
constructor(e, t = tt) {
|
|
1103
|
-
this.html = e, this.factories = t;
|
|
1104
|
-
}
|
|
1105
|
-
createHTML(e) {
|
|
1106
|
-
let t = this.factories;
|
|
1107
|
-
for (let n in t) e(t[n]);
|
|
1108
|
-
return this.html;
|
|
1109
|
-
}
|
|
1110
|
-
};
|
|
1111
|
-
B.empty = new B(""), j.define(B);
|
|
1112
|
-
function nt(e, t, n, r = j.getForInstance(e)) {
|
|
1113
|
-
if (r.aspected) {
|
|
1114
|
-
let n = et.exec(t);
|
|
1115
|
-
n !== null && j.assignAspect(e, n[2]);
|
|
1116
|
-
}
|
|
1117
|
-
return e.createHTML(n);
|
|
1118
|
-
}
|
|
1119
|
-
var rt = class e {
|
|
1120
|
-
constructor(e, t = {}, n) {
|
|
1121
|
-
this.policy = n, this.result = null, this.html = e, this.factories = t;
|
|
1122
|
-
}
|
|
1123
|
-
compile() {
|
|
1124
|
-
return this.result === null && (this.result = z.compile(this.html, this.factories, this.policy)), this.result;
|
|
1125
|
-
}
|
|
1126
|
-
create(e) {
|
|
1127
|
-
return this.compile().createView(e);
|
|
1128
|
-
}
|
|
1129
|
-
inline() {
|
|
1130
|
-
return new B(i(this.html) ? this.html : this.html.innerHTML, this.factories);
|
|
1126
|
+
}, i ?? t, r));
|
|
1127
|
+
return A.assignAspect(c, n), c;
|
|
1131
1128
|
}
|
|
1132
|
-
|
|
1133
|
-
if (this.result) throw s.error(1208);
|
|
1134
|
-
if (this.policy) throw s.error(1207);
|
|
1135
|
-
return this.policy = e, this;
|
|
1136
|
-
}
|
|
1137
|
-
render(e, t, n) {
|
|
1138
|
-
let r = this.create(n);
|
|
1139
|
-
return r.bind(e), r.appendTo(t), r;
|
|
1140
|
-
}
|
|
1141
|
-
static create(t, n, i) {
|
|
1142
|
-
let a = "", o = Object.create(null), s = (e) => {
|
|
1143
|
-
let t = e.id ??= O();
|
|
1144
|
-
return o[t] = e, t;
|
|
1145
|
-
};
|
|
1146
|
-
for (let e = 0, i = t.length - 1; e < i; ++e) {
|
|
1147
|
-
let i = t[e], o = n[e], c;
|
|
1148
|
-
if (a += i, r(o)) o = new L(se(o));
|
|
1149
|
-
else if (o instanceof x) o = new L(o);
|
|
1150
|
-
else if (!(c = j.getForInstance(o))) {
|
|
1151
|
-
let e = o;
|
|
1152
|
-
o = new L(le(() => e));
|
|
1153
|
-
}
|
|
1154
|
-
a += nt(o, i, s, c);
|
|
1155
|
-
}
|
|
1156
|
-
return new e(a + t[t.length - 1], o, i);
|
|
1157
|
-
}
|
|
1158
|
-
};
|
|
1159
|
-
d(rt);
|
|
1160
|
-
var V = ((e, ...t) => {
|
|
1161
|
-
if (Array.isArray(e) && Array.isArray(e.raw)) return rt.create(e, t);
|
|
1162
|
-
throw s.error(1206);
|
|
1163
|
-
});
|
|
1164
|
-
V.partial = (e) => new B(e);
|
|
1165
|
-
//#endregion
|
|
1166
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.8.3/node_modules/@microsoft/fast-element/dist/esm/components/attributes.js
|
|
1167
|
-
var it = "boolean", at = "reflect", ot = Object.freeze({ locate: u() }), st = {
|
|
1129
|
+
}, rt = "boolean", it = "reflect", at = Object.freeze({ locate: d() }), ot = {
|
|
1168
1130
|
toView(e) {
|
|
1169
1131
|
return e ? "true" : "false";
|
|
1170
1132
|
},
|
|
@@ -1172,20 +1134,20 @@ var it = "boolean", at = "reflect", ot = Object.freeze({ locate: u() }), st = {
|
|
|
1172
1134
|
return !(e == null || e === "false" || e === !1 || e === 0);
|
|
1173
1135
|
}
|
|
1174
1136
|
};
|
|
1175
|
-
function
|
|
1137
|
+
function st(e) {
|
|
1176
1138
|
if (e == null) return null;
|
|
1177
1139
|
let t = e * 1;
|
|
1178
1140
|
return isNaN(t) ? null : t;
|
|
1179
1141
|
}
|
|
1180
|
-
var
|
|
1142
|
+
var ct = {
|
|
1181
1143
|
toView(e) {
|
|
1182
|
-
let t =
|
|
1144
|
+
let t = st(e);
|
|
1183
1145
|
return t && t.toString();
|
|
1184
1146
|
},
|
|
1185
|
-
fromView:
|
|
1186
|
-
},
|
|
1187
|
-
constructor(e, t, n = t.toLowerCase(), r =
|
|
1188
|
-
this.guards = /* @__PURE__ */ new Set(), this.Owner = e, this.name = t, this.attribute = n, this.mode = r, this.converter = i, this.fieldName = `_${t}`, this.callbackName = `${t}Changed`, this.hasCallback = this.callbackName in e.prototype, r ===
|
|
1147
|
+
fromView: st
|
|
1148
|
+
}, lt = class e {
|
|
1149
|
+
constructor(e, t, n = t.toLowerCase(), r = it, i) {
|
|
1150
|
+
this.guards = /* @__PURE__ */ new Set(), this.Owner = e, this.name = t, this.attribute = n, this.mode = r, this.converter = i, this.fieldName = `_${t}`, this.callbackName = `${t}Changed`, this.hasCallback = this.callbackName in e.prototype, r === rt && i === void 0 && (this.converter = ot);
|
|
1189
1151
|
}
|
|
1190
1152
|
setValue(e, t) {
|
|
1191
1153
|
let n = e[this.fieldName], r = this.converter;
|
|
@@ -1199,16 +1161,16 @@ var lt = {
|
|
|
1199
1161
|
}
|
|
1200
1162
|
tryReflectToAttribute(e) {
|
|
1201
1163
|
let t = this.mode, n = this.guards;
|
|
1202
|
-
n.has(e) || t === "fromView" ||
|
|
1164
|
+
n.has(e) || t === "fromView" || re.enqueue(() => {
|
|
1203
1165
|
n.add(e);
|
|
1204
1166
|
let r = e[this.fieldName];
|
|
1205
1167
|
switch (t) {
|
|
1206
|
-
case
|
|
1168
|
+
case it:
|
|
1207
1169
|
let t = this.converter;
|
|
1208
|
-
|
|
1170
|
+
g.setAttribute(e, this.attribute, t === void 0 ? r : t.toView(r));
|
|
1209
1171
|
break;
|
|
1210
|
-
case
|
|
1211
|
-
|
|
1172
|
+
case rt:
|
|
1173
|
+
g.setBooleanAttribute(e, this.attribute, r);
|
|
1212
1174
|
break;
|
|
1213
1175
|
}
|
|
1214
1176
|
n.delete(e);
|
|
@@ -1216,21 +1178,21 @@ var lt = {
|
|
|
1216
1178
|
}
|
|
1217
1179
|
static collect(t, ...n) {
|
|
1218
1180
|
let r = [];
|
|
1219
|
-
n.push(
|
|
1220
|
-
for (let
|
|
1221
|
-
let o = n[
|
|
1222
|
-
if (o !== void 0) for (let n = 0,
|
|
1223
|
-
let
|
|
1224
|
-
i
|
|
1181
|
+
n.push(at.locate(t));
|
|
1182
|
+
for (let i = 0, o = n.length; i < o; ++i) {
|
|
1183
|
+
let o = n[i];
|
|
1184
|
+
if (o !== void 0) for (let n = 0, i = o.length; n < i; ++n) {
|
|
1185
|
+
let i = o[n];
|
|
1186
|
+
a(i) ? r.push(new e(t, i)) : r.push(new e(t, i.property, i.attribute, i.mode, i.converter));
|
|
1225
1187
|
}
|
|
1226
1188
|
}
|
|
1227
1189
|
return r;
|
|
1228
1190
|
}
|
|
1229
1191
|
};
|
|
1230
|
-
function
|
|
1192
|
+
function ut(e, t) {
|
|
1231
1193
|
let n;
|
|
1232
1194
|
function r(e, t) {
|
|
1233
|
-
arguments.length > 1 && (n.property = t),
|
|
1195
|
+
arguments.length > 1 && (n.property = t), at.locate(e.constructor).push(n);
|
|
1234
1196
|
}
|
|
1235
1197
|
if (arguments.length > 1) {
|
|
1236
1198
|
n = {}, r(e, t);
|
|
@@ -1239,8 +1201,8 @@ function dt(e, t) {
|
|
|
1239
1201
|
return n = e === void 0 ? {} : e, r;
|
|
1240
1202
|
}
|
|
1241
1203
|
//#endregion
|
|
1242
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
1243
|
-
var
|
|
1204
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/components/fast-definitions.js
|
|
1205
|
+
var dt = function(e, t, n, r) {
|
|
1244
1206
|
function i(e) {
|
|
1245
1207
|
return e instanceof n ? e : new n(function(t) {
|
|
1246
1208
|
t(e);
|
|
@@ -1266,52 +1228,118 @@ var ft = function(e, t, n, r) {
|
|
|
1266
1228
|
}
|
|
1267
1229
|
c((r = r.apply(e, t || [])).next());
|
|
1268
1230
|
});
|
|
1269
|
-
},
|
|
1270
|
-
constructor(t, n = t.definition) {
|
|
1271
|
-
this.platformDefined = !1, i(n) && (n = { name: n }), this.type = t, this.name = n.name, this.template = n.template, this.templateOptions = n.templateOptions, this.registry = n.registry ?? customElements;
|
|
1272
|
-
let r = t.prototype, a = ut.collect(t, n.attributes), o = Array(a.length), s = {}, c = {};
|
|
1273
|
-
for (let e = 0, t = a.length; e < t; ++e) {
|
|
1274
|
-
let t = a[e];
|
|
1275
|
-
o[e] = t.attribute, s[t.name] = t, c[t.attribute] = t, y.defineProperty(r, t);
|
|
1276
|
-
}
|
|
1277
|
-
Reflect.defineProperty(t, "observedAttributes", {
|
|
1278
|
-
value: o,
|
|
1279
|
-
enumerable: !0
|
|
1280
|
-
}), this.attributes = a, this.propertyLookup = s, this.attributeLookup = c, this.shadowOptions = n.shadowOptions === void 0 ? pt : n.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, pt), n.shadowOptions), this.elementOptions = n.elementOptions === void 0 ? mt : Object.assign(Object.assign({}, mt), n.elementOptions), this.styles = S.normalize(n.styles), U.register(this), y.defineProperty(e.isRegistered, this.name), e.isRegistered[this.name] = this.type;
|
|
1281
|
-
}
|
|
1231
|
+
}, B, ft = { mode: "open" }, pt = {}, V = /* @__PURE__ */ new Set(), H = c.getById(n.elementRegistry, () => u()), mt = { deferAndHydrate: "defer-and-hydrate" }, U = class {
|
|
1282
1232
|
get isDefined() {
|
|
1283
1233
|
return this.platformDefined;
|
|
1284
1234
|
}
|
|
1235
|
+
constructor(e, t = e.definition) {
|
|
1236
|
+
this.platformDefined = !1, a(t) && (t = { name: t }), this.type = e, this.name = t.name, this.template = t.template, this.templateOptions = t.templateOptions, this.registry = t.registry ?? customElements;
|
|
1237
|
+
let n = e.prototype, r = lt.collect(e, t.attributes), i = Array(r.length), o = {}, s = {};
|
|
1238
|
+
for (let e = 0, t = r.length; e < t; ++e) {
|
|
1239
|
+
let t = r[e];
|
|
1240
|
+
i[e] = t.attribute, o[t.name] = t, s[t.attribute] = t, y.defineProperty(n, t);
|
|
1241
|
+
}
|
|
1242
|
+
Reflect.defineProperty(e, "observedAttributes", {
|
|
1243
|
+
value: i,
|
|
1244
|
+
enumerable: !0
|
|
1245
|
+
}), this.attributes = r, this.propertyLookup = o, this.attributeLookup = s, this.shadowOptions = t.shadowOptions === void 0 ? ft : t.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, ft), t.shadowOptions), this.elementOptions = t.elementOptions === void 0 ? pt : Object.assign(Object.assign({}, pt), t.elementOptions), this.styles = w.normalize(t.styles), H.register(this), y.defineProperty(B.isRegistered, this.name), B.isRegistered[this.name] = this.type;
|
|
1246
|
+
}
|
|
1285
1247
|
define(e = this.registry) {
|
|
1286
1248
|
var t, n;
|
|
1287
1249
|
let r = this.type;
|
|
1288
1250
|
return e.get(this.name) || (this.platformDefined = !0, e.define(this.name, r, this.elementOptions), (n = (t = this.lifecycleCallbacks)?.elementDidDefine) == null || n.call(t, this.name)), this;
|
|
1289
1251
|
}
|
|
1290
|
-
static compose(
|
|
1291
|
-
return
|
|
1252
|
+
static compose(e, t) {
|
|
1253
|
+
return V.has(e) || H.getByType(e) ? new B(class extends e {}, t) : new B(e, t);
|
|
1292
1254
|
}
|
|
1293
1255
|
static registerBaseType(e) {
|
|
1294
|
-
|
|
1256
|
+
V.add(e);
|
|
1295
1257
|
}
|
|
1296
|
-
static composeAsync(
|
|
1297
|
-
return new Promise((
|
|
1298
|
-
(
|
|
1299
|
-
let
|
|
1300
|
-
y.getNotifier(
|
|
1258
|
+
static composeAsync(e, t) {
|
|
1259
|
+
return new Promise((n) => {
|
|
1260
|
+
(V.has(e) || H.getByType(e)) && n(new B(class extends e {}, t));
|
|
1261
|
+
let r = new B(e, t);
|
|
1262
|
+
y.getNotifier(r).subscribe({ handleChange: () => {
|
|
1301
1263
|
var e, t;
|
|
1302
|
-
(t = (e =
|
|
1264
|
+
(t = (e = r.lifecycleCallbacks)?.templateDidUpdate) == null || t.call(e, r.name), n(r);
|
|
1303
1265
|
} }, "template");
|
|
1304
1266
|
});
|
|
1305
1267
|
}
|
|
1306
1268
|
};
|
|
1307
|
-
|
|
1269
|
+
B = U, U.isRegistered = {}, U.getByType = H.getByType, U.getForInstance = H.getForInstance, U.registerAsync = (e) => dt(void 0, void 0, void 0, function* () {
|
|
1308
1270
|
return new Promise((t) => {
|
|
1309
|
-
|
|
1271
|
+
B.isRegistered[e] && t(B.isRegistered[e]), y.getNotifier(B.isRegistered).subscribe({ handleChange: () => t(B.isRegistered[e]) }, e);
|
|
1310
1272
|
});
|
|
1311
|
-
}), y.defineProperty(
|
|
1273
|
+
}), y.defineProperty(U.prototype, "template");
|
|
1312
1274
|
//#endregion
|
|
1313
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
1314
|
-
var gt =
|
|
1275
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/templating/template.js
|
|
1276
|
+
var ht = /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/, gt = Object.create(null), W = class {
|
|
1277
|
+
constructor(e, t = gt) {
|
|
1278
|
+
this.html = e, this.factories = t;
|
|
1279
|
+
}
|
|
1280
|
+
createHTML(e) {
|
|
1281
|
+
let t = this.factories;
|
|
1282
|
+
for (let n in t) e(t[n]);
|
|
1283
|
+
return this.html;
|
|
1284
|
+
}
|
|
1285
|
+
};
|
|
1286
|
+
W.empty = new W(""), A.define(W);
|
|
1287
|
+
function _t(e, t, n, r = A.getForInstance(e)) {
|
|
1288
|
+
if (r.aspected) {
|
|
1289
|
+
let n = ht.exec(t);
|
|
1290
|
+
n !== null && A.assignAspect(e, n[2]);
|
|
1291
|
+
}
|
|
1292
|
+
return e.createHTML(n);
|
|
1293
|
+
}
|
|
1294
|
+
var vt = class e {
|
|
1295
|
+
constructor(e, t = {}, n) {
|
|
1296
|
+
this.policy = n, this.result = null, this.html = e, this.factories = t;
|
|
1297
|
+
}
|
|
1298
|
+
compile() {
|
|
1299
|
+
return this.result === null && (this.result = z.compile(this.html, this.factories, this.policy)), this.result;
|
|
1300
|
+
}
|
|
1301
|
+
create(e) {
|
|
1302
|
+
return this.compile().createView(e);
|
|
1303
|
+
}
|
|
1304
|
+
inline() {
|
|
1305
|
+
return new W(a(this.html) ? this.html : this.html.innerHTML, this.factories);
|
|
1306
|
+
}
|
|
1307
|
+
withPolicy(e) {
|
|
1308
|
+
if (this.result) throw c.error(r.cannotSetTemplatePolicyAfterCompilation);
|
|
1309
|
+
if (this.policy) throw c.error(r.onlySetTemplatePolicyOnce);
|
|
1310
|
+
return this.policy = e, this;
|
|
1311
|
+
}
|
|
1312
|
+
render(e, t, n) {
|
|
1313
|
+
let r = this.create(n);
|
|
1314
|
+
return r.bind(e), r.appendTo(t), r;
|
|
1315
|
+
}
|
|
1316
|
+
static create(t, n, r) {
|
|
1317
|
+
let a = "", o = Object.create(null), s = (e) => {
|
|
1318
|
+
let t = e.id ??= O();
|
|
1319
|
+
return o[t] = e, t;
|
|
1320
|
+
};
|
|
1321
|
+
for (let e = 0, r = t.length - 1; e < r; ++e) {
|
|
1322
|
+
let r = t[e], o = n[e], c;
|
|
1323
|
+
if (a += r, i(o)) o = new L(S(o));
|
|
1324
|
+
else if (o instanceof x) o = new L(o);
|
|
1325
|
+
else if (!(c = A.getForInstance(o))) {
|
|
1326
|
+
let e = o;
|
|
1327
|
+
o = new L(C(() => e));
|
|
1328
|
+
}
|
|
1329
|
+
a += _t(o, r, s, c);
|
|
1330
|
+
}
|
|
1331
|
+
return new e(a + t[t.length - 1], o, r);
|
|
1332
|
+
}
|
|
1333
|
+
};
|
|
1334
|
+
f(vt);
|
|
1335
|
+
var yt = ((e, ...t) => {
|
|
1336
|
+
if (Array.isArray(e) && Array.isArray(e.raw)) return vt.create(e, t);
|
|
1337
|
+
throw c.error(r.directCallToHTMLTagNotAllowed);
|
|
1338
|
+
});
|
|
1339
|
+
yt.partial = (e) => new W(e);
|
|
1340
|
+
//#endregion
|
|
1341
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/utilities.js
|
|
1342
|
+
var bt = class extends MutationObserver {
|
|
1315
1343
|
constructor(e) {
|
|
1316
1344
|
function t(e) {
|
|
1317
1345
|
this.callback.call(null, e.filter((e) => this.observedNodes.has(e.target)));
|
|
@@ -1324,7 +1352,7 @@ var gt = class extends MutationObserver {
|
|
|
1324
1352
|
unobserve(e) {
|
|
1325
1353
|
this.observedNodes.delete(e), this.observedNodes.size < 1 && this.disconnect();
|
|
1326
1354
|
}
|
|
1327
|
-
},
|
|
1355
|
+
}, xt = Object.freeze({ create(e) {
|
|
1328
1356
|
let t = [], n = {}, r = null, i = !1;
|
|
1329
1357
|
return {
|
|
1330
1358
|
source: e,
|
|
@@ -1335,7 +1363,7 @@ var gt = class extends MutationObserver {
|
|
|
1335
1363
|
},
|
|
1336
1364
|
addBehaviorFactory(e, t) {
|
|
1337
1365
|
let n = e;
|
|
1338
|
-
n.id = n.id ?? O(), n.targetNodeId = n.targetNodeId ?? O(), n.targetTagName = t.tagName ?? null, n.policy = n.policy ??
|
|
1366
|
+
n.id = n.id ?? O(), n.targetNodeId = n.targetNodeId ?? O(), n.targetTagName = t.tagName ?? null, n.policy = n.policy ?? g.policy, this.addTarget(n.targetNodeId, t), this.addBehavior(n.createBehavior());
|
|
1339
1367
|
},
|
|
1340
1368
|
addTarget(e, t) {
|
|
1341
1369
|
n[e] = t;
|
|
@@ -1353,28 +1381,21 @@ var gt = class extends MutationObserver {
|
|
|
1353
1381
|
i && (i = !1, r !== null && r.forEach((e) => e.unbind(this)));
|
|
1354
1382
|
}
|
|
1355
1383
|
};
|
|
1356
|
-
} }),
|
|
1384
|
+
} }), St = {
|
|
1357
1385
|
bubbles: !0,
|
|
1358
1386
|
composed: !0,
|
|
1359
1387
|
cancelable: !0
|
|
1360
|
-
}, G = "isConnected",
|
|
1388
|
+
}, G = "isConnected", Ct = /* @__PURE__ */ new WeakMap();
|
|
1361
1389
|
function K(e) {
|
|
1362
|
-
return e.shadowRoot ??
|
|
1390
|
+
return e.shadowRoot ?? Ct.get(e) ?? null;
|
|
1363
1391
|
}
|
|
1364
|
-
var
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
let t = this.boundObservables = Object.create(null);
|
|
1370
|
-
for (let r = 0, i = n.length; r < i; ++r) {
|
|
1371
|
-
let i = n[r].name, a = e[i];
|
|
1372
|
-
a !== void 0 && (delete e[i], t[i] = a);
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1392
|
+
var wt, q;
|
|
1393
|
+
(function(e) {
|
|
1394
|
+
e[e.connecting = 0] = "connecting", e[e.connected = 1] = "connected", e[e.disconnecting = 2] = "disconnecting", e[e.disconnected = 3] = "disconnected";
|
|
1395
|
+
})(q ||= {});
|
|
1396
|
+
var J = class e extends ne {
|
|
1376
1397
|
get isConnected() {
|
|
1377
|
-
return y.track(this, G), this.stage ===
|
|
1398
|
+
return y.track(this, G), this.stage === q.connected;
|
|
1378
1399
|
}
|
|
1379
1400
|
get context() {
|
|
1380
1401
|
return this.view?.context ?? b.default;
|
|
@@ -1402,7 +1423,7 @@ var bt, q = class e extends ne {
|
|
|
1402
1423
|
if (this._shadowRootOptions === void 0 && e !== void 0) {
|
|
1403
1424
|
this._shadowRootOptions = e;
|
|
1404
1425
|
let t = this.source.shadowRoot;
|
|
1405
|
-
t ? this.hasExistingShadowRoot = !0 : (t = this.source.attachShadow(e), e.mode === "closed" &&
|
|
1426
|
+
t ? this.hasExistingShadowRoot = !0 : (t = this.source.attachShadow(e), e.mode === "closed" && Ct.set(this.source, t));
|
|
1406
1427
|
}
|
|
1407
1428
|
}
|
|
1408
1429
|
get mainStyles() {
|
|
@@ -1415,19 +1436,30 @@ var bt, q = class e extends ne {
|
|
|
1415
1436
|
set mainStyles(e) {
|
|
1416
1437
|
this._mainStyles !== e && (this._mainStyles !== null && this.removeStyles(this._mainStyles), this._mainStyles = e, this.needsInitialization || this.addStyles(e));
|
|
1417
1438
|
}
|
|
1439
|
+
constructor(e, t) {
|
|
1440
|
+
super(e), this.boundObservables = null, this.needsInitialization = !0, this.hasExistingShadowRoot = !1, this._template = null, this.stage = q.disconnected, this.guardBehaviorConnection = !1, this.behaviors = null, this.behaviorsConnected = !1, this._mainStyles = null, this.$fastController = this, this.view = null, this.source = e, this.definition = t, this.shadowOptions = t.shadowOptions;
|
|
1441
|
+
let n = y.getAccessors(e);
|
|
1442
|
+
if (n.length > 0) {
|
|
1443
|
+
let t = this.boundObservables = Object.create(null);
|
|
1444
|
+
for (let r = 0, i = n.length; r < i; ++r) {
|
|
1445
|
+
let i = n[r].name, a = e[i];
|
|
1446
|
+
a !== void 0 && (delete e[i], t[i] = a);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1418
1450
|
onUnbind(e) {
|
|
1419
1451
|
var t;
|
|
1420
1452
|
(t = this.view) == null || t.onUnbind(e);
|
|
1421
1453
|
}
|
|
1422
1454
|
addBehavior(e) {
|
|
1423
1455
|
let t = this.behaviors ??= /* @__PURE__ */ new Map(), n = t.get(e) ?? 0;
|
|
1424
|
-
n === 0 ? (t.set(e, 1), e.addedCallback && e.addedCallback(this), e.connectedCallback && !this.guardBehaviorConnection && (this.stage ===
|
|
1456
|
+
n === 0 ? (t.set(e, 1), e.addedCallback && e.addedCallback(this), e.connectedCallback && !this.guardBehaviorConnection && (this.stage === q.connected || this.stage === q.connecting) && e.connectedCallback(this)) : t.set(e, n + 1);
|
|
1425
1457
|
}
|
|
1426
1458
|
removeBehavior(e, t = !1) {
|
|
1427
1459
|
let n = this.behaviors;
|
|
1428
1460
|
if (n === null) return;
|
|
1429
1461
|
let r = n.get(e);
|
|
1430
|
-
r !== void 0 && (r === 1 || t ? (n.delete(e), e.disconnectedCallback && this.stage !==
|
|
1462
|
+
r !== void 0 && (r === 1 || t ? (n.delete(e), e.disconnectedCallback && this.stage !== q.disconnected && e.disconnectedCallback(this), e.removedCallback && e.removedCallback(this)) : n.set(e, r - 1));
|
|
1431
1463
|
}
|
|
1432
1464
|
addStyles(e) {
|
|
1433
1465
|
if (!e) return;
|
|
@@ -1448,7 +1480,7 @@ var bt, q = class e extends ne {
|
|
|
1448
1480
|
}
|
|
1449
1481
|
}
|
|
1450
1482
|
connect() {
|
|
1451
|
-
this.stage ===
|
|
1483
|
+
this.stage === q.disconnected && (this.stage = q.connecting, this.bindObservables(), this.connectBehaviors(), this.needsInitialization ? (this.renderTemplate(this.template), this.addStyles(this.mainStyles), this.needsInitialization = !1) : this.view !== null && this.view.bind(this.source), this.stage = q.connected, y.notify(this, G));
|
|
1452
1484
|
}
|
|
1453
1485
|
bindObservables() {
|
|
1454
1486
|
if (this.boundObservables !== null) {
|
|
@@ -1479,14 +1511,14 @@ var bt, q = class e extends ne {
|
|
|
1479
1511
|
}
|
|
1480
1512
|
}
|
|
1481
1513
|
disconnect() {
|
|
1482
|
-
this.stage ===
|
|
1514
|
+
this.stage === q.connected && (this.stage = q.disconnecting, y.notify(this, G), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = q.disconnected);
|
|
1483
1515
|
}
|
|
1484
1516
|
onAttributeChangedCallback(e, t, n) {
|
|
1485
1517
|
let r = this.definition.attributeLookup[e];
|
|
1486
1518
|
r !== void 0 && r.onAttributeChangedCallback(this.source, n);
|
|
1487
1519
|
}
|
|
1488
1520
|
emit(e, t, n) {
|
|
1489
|
-
return this.stage ===
|
|
1521
|
+
return this.stage === q.connected ? this.source.dispatchEvent(new CustomEvent(e, Object.assign(Object.assign({ detail: t }, St), n))) : !1;
|
|
1490
1522
|
}
|
|
1491
1523
|
renderTemplate(e) {
|
|
1492
1524
|
let t = this.source, n = K(t) ?? t;
|
|
@@ -1498,25 +1530,25 @@ var bt, q = class e extends ne {
|
|
|
1498
1530
|
e && (this.view = e.render(t, n, t), this.view.sourceLifetime = v.coupled);
|
|
1499
1531
|
}
|
|
1500
1532
|
static forCustomElement(t, n = !1) {
|
|
1501
|
-
let
|
|
1502
|
-
if (
|
|
1503
|
-
let
|
|
1504
|
-
if (
|
|
1505
|
-
return y.getNotifier(
|
|
1533
|
+
let i = t.$fastController;
|
|
1534
|
+
if (i !== void 0 && !n) return i;
|
|
1535
|
+
let a = U.getForInstance(t);
|
|
1536
|
+
if (a === void 0) throw c.error(r.missingElementDefinition);
|
|
1537
|
+
return y.getNotifier(a).subscribe({ handleChange: () => {
|
|
1506
1538
|
e.forCustomElement(t, !0), t.$fastController.connect();
|
|
1507
|
-
} }, "template"), y.getNotifier(
|
|
1539
|
+
} }, "template"), y.getNotifier(a).subscribe({ handleChange: () => {
|
|
1508
1540
|
e.forCustomElement(t, !0), t.$fastController.connect();
|
|
1509
|
-
} }, "shadowOptions"), t.$fastController = new
|
|
1541
|
+
} }, "shadowOptions"), t.$fastController = new wt(t, a);
|
|
1510
1542
|
}
|
|
1511
1543
|
static setStrategy(e) {
|
|
1512
|
-
|
|
1544
|
+
wt = e;
|
|
1513
1545
|
}
|
|
1514
1546
|
};
|
|
1515
|
-
|
|
1516
|
-
function
|
|
1547
|
+
f(J), J.setStrategy(J);
|
|
1548
|
+
function Y(e) {
|
|
1517
1549
|
return "adoptedStyleSheets" in e ? e : K(e) ?? e.getRootNode();
|
|
1518
1550
|
}
|
|
1519
|
-
var
|
|
1551
|
+
var Tt = class e {
|
|
1520
1552
|
constructor(t) {
|
|
1521
1553
|
let n = e.styleSheetCache;
|
|
1522
1554
|
this.sheets = t.map((e) => {
|
|
@@ -1526,23 +1558,23 @@ var xt = class e {
|
|
|
1526
1558
|
});
|
|
1527
1559
|
}
|
|
1528
1560
|
addStylesTo(e) {
|
|
1529
|
-
|
|
1561
|
+
At(Y(e), this.sheets);
|
|
1530
1562
|
}
|
|
1531
1563
|
removeStylesFrom(e) {
|
|
1532
|
-
|
|
1564
|
+
jt(Y(e), this.sheets);
|
|
1533
1565
|
}
|
|
1534
1566
|
};
|
|
1535
|
-
|
|
1536
|
-
var
|
|
1537
|
-
function
|
|
1567
|
+
Tt.styleSheetCache = /* @__PURE__ */ new Map();
|
|
1568
|
+
var Et = 0, Dt = () => `fast-${++Et}`;
|
|
1569
|
+
function Ot(e) {
|
|
1538
1570
|
return e === document ? document.body : e;
|
|
1539
1571
|
}
|
|
1540
|
-
var
|
|
1572
|
+
var kt = class {
|
|
1541
1573
|
constructor(e) {
|
|
1542
|
-
this.styles = e, this.styleClass =
|
|
1574
|
+
this.styles = e, this.styleClass = Dt();
|
|
1543
1575
|
}
|
|
1544
1576
|
addStylesTo(e) {
|
|
1545
|
-
e =
|
|
1577
|
+
e = Ot(Y(e));
|
|
1546
1578
|
let t = this.styles, n = this.styleClass;
|
|
1547
1579
|
for (let r = 0; r < t.length; r++) {
|
|
1548
1580
|
let i = document.createElement("style");
|
|
@@ -1550,34 +1582,34 @@ var Tt = class {
|
|
|
1550
1582
|
}
|
|
1551
1583
|
}
|
|
1552
1584
|
removeStylesFrom(e) {
|
|
1553
|
-
e =
|
|
1585
|
+
e = Ot(Y(e));
|
|
1554
1586
|
let t = e.querySelectorAll(`.${this.styleClass}`);
|
|
1555
1587
|
for (let n = 0, r = t.length; n < r; ++n) e.removeChild(t[n]);
|
|
1556
1588
|
}
|
|
1557
|
-
},
|
|
1589
|
+
}, At = (e, t) => {
|
|
1558
1590
|
e.adoptedStyleSheets = [...e.adoptedStyleSheets, ...t];
|
|
1559
|
-
},
|
|
1591
|
+
}, jt = (e, t) => {
|
|
1560
1592
|
e.adoptedStyleSheets = e.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
|
|
1561
1593
|
};
|
|
1562
|
-
if (
|
|
1594
|
+
if (w.supportsAdoptedStyleSheets) {
|
|
1563
1595
|
try {
|
|
1564
|
-
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(),
|
|
1596
|
+
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(), At = (e, t) => {
|
|
1565
1597
|
e.adoptedStyleSheets.push(...t);
|
|
1566
|
-
},
|
|
1598
|
+
}, jt = (e, t) => {
|
|
1567
1599
|
for (let n of t) {
|
|
1568
1600
|
let t = e.adoptedStyleSheets.indexOf(n);
|
|
1569
1601
|
t !== -1 && e.adoptedStyleSheets.splice(t, 1);
|
|
1570
1602
|
}
|
|
1571
1603
|
};
|
|
1572
1604
|
} catch {}
|
|
1573
|
-
|
|
1574
|
-
} else
|
|
1575
|
-
var
|
|
1605
|
+
w.setDefaultStrategy(Tt);
|
|
1606
|
+
} else w.setDefaultStrategy(kt);
|
|
1607
|
+
var Mt = "needs-hydration", X = class e extends J {
|
|
1576
1608
|
get shadowOptions() {
|
|
1577
1609
|
return super.shadowOptions;
|
|
1578
1610
|
}
|
|
1579
1611
|
set shadowOptions(e) {
|
|
1580
|
-
super.shadowOptions = e, (this.hasExistingShadowRoot || e !== void 0 && !this.template) && this.definition.templateOptions ===
|
|
1612
|
+
super.shadowOptions = e, (this.hasExistingShadowRoot || e !== void 0 && !this.template) && this.definition.templateOptions === mt.deferAndHydrate && (this.source.toggleAttribute(Ee, !0), this.source.toggleAttribute(Mt, !0));
|
|
1581
1613
|
}
|
|
1582
1614
|
addHydratingInstance() {
|
|
1583
1615
|
if (!e.hydratingInstances) return;
|
|
@@ -1596,46 +1628,63 @@ var Ot = "defer-hydration", kt = "needs-hydration", Y = class e extends q {
|
|
|
1596
1628
|
e.idleCallbackId = requestIdleCallback(e.checkHydrationComplete, { timeout: 50 });
|
|
1597
1629
|
return;
|
|
1598
1630
|
}
|
|
1599
|
-
e.hydratingInstances?.size === 0
|
|
1631
|
+
if (e.hydratingInstances?.size === 0) {
|
|
1632
|
+
try {
|
|
1633
|
+
(r = (n = e.lifecycleCallbacks).hydrationComplete) == null || r.call(n);
|
|
1634
|
+
} catch {}
|
|
1635
|
+
J.setStrategy(J);
|
|
1636
|
+
}
|
|
1600
1637
|
}
|
|
1601
1638
|
connect() {
|
|
1602
|
-
var t, n, r;
|
|
1603
|
-
if (this.needsHydration = this.needsHydration ?? this.source.hasAttribute(
|
|
1604
|
-
this.addHydratingInstance(), e.hydrationObserver.observe(this.source, { attributeFilter: [
|
|
1639
|
+
var t, n, r, i, a;
|
|
1640
|
+
if (this.needsHydration = this.needsHydration ?? this.source.hasAttribute(Mt), this.needsHydration && this.addHydratingInstance(), this.source.hasAttribute("defer-hydration")) {
|
|
1641
|
+
this.addHydratingInstance(), e.hydrationObserver.observe(this.source, { attributeFilter: [Ee] });
|
|
1605
1642
|
return;
|
|
1606
1643
|
}
|
|
1607
1644
|
if (!this.needsHydration) {
|
|
1608
1645
|
super.connect(), this.removeHydratingInstance();
|
|
1609
1646
|
return;
|
|
1610
1647
|
}
|
|
1611
|
-
if (this.stage ===
|
|
1612
|
-
if (
|
|
1613
|
-
|
|
1614
|
-
|
|
1648
|
+
if (this.stage === q.disconnected) {
|
|
1649
|
+
if (!e.hydrationStarted) {
|
|
1650
|
+
e.hydrationStarted = !0;
|
|
1651
|
+
try {
|
|
1652
|
+
(n = (t = e.lifecycleCallbacks).hydrationStarted) == null || n.call(t);
|
|
1653
|
+
} catch {}
|
|
1654
|
+
}
|
|
1655
|
+
try {
|
|
1656
|
+
(i = (r = e.lifecycleCallbacks).elementWillHydrate) == null || i.call(r, this.source);
|
|
1657
|
+
} catch {}
|
|
1658
|
+
if (this.stage = q.connecting, this.bindObservables(), this.connectBehaviors(), this.template) if (N(this.template)) {
|
|
1659
|
+
let e = this.source, t = K(e) ?? e, n = t.firstChild, r = t.lastChild;
|
|
1660
|
+
e.shadowRoot === null && (j.isElementBoundaryStartMarker(n) && (n.data = "", n = n.nextSibling), j.isElementBoundaryEndMarker(r) && (r.data = "", r = r.previousSibling)), this.view = this.template.hydrate(n, r, e), (a = this.view) == null || a.bind(this.source);
|
|
1615
1661
|
} else this.renderTemplate(this.template);
|
|
1616
|
-
this.addStyles(this.mainStyles), this.stage =
|
|
1662
|
+
this.addStyles(this.mainStyles), this.stage = q.connected, this.source.removeAttribute(Mt), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), y.notify(this, G);
|
|
1617
1663
|
}
|
|
1618
1664
|
}
|
|
1619
1665
|
removeHydratingInstance() {
|
|
1620
1666
|
var t, n;
|
|
1621
1667
|
if (!e.hydratingInstances) return;
|
|
1668
|
+
try {
|
|
1669
|
+
(n = (t = e.lifecycleCallbacks).elementDidHydrate) == null || n.call(t, this.source);
|
|
1670
|
+
} catch {}
|
|
1622
1671
|
let r = this.definition.name, i = e.hydratingInstances.get(r);
|
|
1623
|
-
|
|
1672
|
+
i && (i.delete(this.source), i.size || e.hydratingInstances.delete(r), e.idleCallbackId && cancelIdleCallback(e.idleCallbackId), e.idleCallbackId = requestIdleCallback(e.checkHydrationComplete, { timeout: 50 }));
|
|
1624
1673
|
}
|
|
1625
1674
|
disconnect() {
|
|
1626
1675
|
super.disconnect(), e.hydrationObserver.unobserve(this.source);
|
|
1627
1676
|
}
|
|
1628
1677
|
static install() {
|
|
1629
|
-
|
|
1678
|
+
J.setStrategy(e);
|
|
1630
1679
|
}
|
|
1631
1680
|
};
|
|
1632
|
-
|
|
1681
|
+
X.hydrationObserver = new bt(X.hydrationObserverHandler), X.lifecycleCallbacks = {}, X.hydrationStarted = !1, X.idleCallbackId = null, X.hydratingInstances = /* @__PURE__ */ new Map();
|
|
1633
1682
|
//#endregion
|
|
1634
|
-
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.
|
|
1635
|
-
function
|
|
1683
|
+
//#region ../../node_modules/.pnpm/@microsoft+fast-element@2.10.4/node_modules/@microsoft/fast-element/dist/esm/components/fast-element.js
|
|
1684
|
+
function Nt(e) {
|
|
1636
1685
|
let t = class extends e {
|
|
1637
1686
|
constructor() {
|
|
1638
|
-
super(),
|
|
1687
|
+
super(), J.forCustomElement(this);
|
|
1639
1688
|
}
|
|
1640
1689
|
$emit(e, t, n) {
|
|
1641
1690
|
return this.$fastController.emit(e, t, n);
|
|
@@ -1650,123 +1699,150 @@ function At(e) {
|
|
|
1650
1699
|
this.$fastController.onAttributeChangedCallback(e, t, n);
|
|
1651
1700
|
}
|
|
1652
1701
|
};
|
|
1653
|
-
return
|
|
1702
|
+
return U.registerBaseType(t), t;
|
|
1654
1703
|
}
|
|
1655
|
-
function
|
|
1656
|
-
return
|
|
1704
|
+
function Pt(e, t) {
|
|
1705
|
+
return i(e) ? U.compose(e, t) : U.compose(this, e);
|
|
1657
1706
|
}
|
|
1658
|
-
function
|
|
1659
|
-
return
|
|
1660
|
-
|
|
1707
|
+
function Ft(e, t) {
|
|
1708
|
+
return i(e) ? new Promise((n) => {
|
|
1709
|
+
U.composeAsync(e, t).then((e) => {
|
|
1661
1710
|
n(e);
|
|
1662
1711
|
});
|
|
1663
1712
|
}).then((e) => e.define().type) : new Promise((t) => {
|
|
1664
|
-
|
|
1713
|
+
U.composeAsync(this, e).then((e) => {
|
|
1665
1714
|
t(e);
|
|
1666
1715
|
});
|
|
1667
1716
|
}).then((e) => e.define().type);
|
|
1668
1717
|
}
|
|
1669
|
-
function
|
|
1670
|
-
return
|
|
1718
|
+
function It(e, t) {
|
|
1719
|
+
return i(e) ? U.compose(e, t).define().type : U.compose(this, e).define().type;
|
|
1671
1720
|
}
|
|
1672
|
-
function
|
|
1673
|
-
return
|
|
1721
|
+
function Lt(e) {
|
|
1722
|
+
return Nt(e);
|
|
1674
1723
|
}
|
|
1675
|
-
var
|
|
1676
|
-
from:
|
|
1677
|
-
define:
|
|
1678
|
-
compose:
|
|
1679
|
-
defineAsync:
|
|
1724
|
+
var Rt = Object.assign(Nt(HTMLElement), {
|
|
1725
|
+
from: Lt,
|
|
1726
|
+
define: It,
|
|
1727
|
+
compose: Pt,
|
|
1728
|
+
defineAsync: Ft
|
|
1680
1729
|
});
|
|
1681
1730
|
//#endregion
|
|
1682
1731
|
//#region src/shared/design-system/createRegisterFunction.ts
|
|
1683
|
-
function
|
|
1732
|
+
function zt(e, t) {
|
|
1684
1733
|
return e instanceof Function ? e(t) : e;
|
|
1685
1734
|
}
|
|
1686
|
-
var
|
|
1735
|
+
var Bt = /* @__PURE__ */ new Set(), Vt = /* @__PURE__ */ new Map(), Ht = (e) => (t = "vwc") => {
|
|
1687
1736
|
let n = (e) => `${t}-${e}`, r = (e) => {
|
|
1688
1737
|
let i = n(e.name), a = e.type;
|
|
1689
|
-
if (a.componentName = e.name,
|
|
1690
|
-
|
|
1738
|
+
if (a.componentName = e.name, Bt.has(i)) return;
|
|
1739
|
+
Vt.has(a) && Vt.get(a) !== i && (a = class extends a {}), Bt.add(i), Vt.set(a, i);
|
|
1691
1740
|
for (let t of e.dependencies) r(t);
|
|
1692
1741
|
let o = new Map([[e.type, i], ...e.dependencies.map((e) => [e.type, n(e.name)])]), s = {
|
|
1693
1742
|
tagFor: (t, n) => {
|
|
1694
1743
|
if (!o.has(t)) throw Error(`Could not get tag for ${t.name} as it is not a dependency of ${e.name}.`);
|
|
1695
1744
|
let r = o.get(t);
|
|
1696
|
-
return n ? r :
|
|
1745
|
+
return n ? r : yt.partial(r);
|
|
1697
1746
|
},
|
|
1698
1747
|
tagForNonDependency(e) {
|
|
1699
1748
|
return n(e);
|
|
1700
1749
|
}
|
|
1701
1750
|
};
|
|
1702
|
-
|
|
1751
|
+
U.compose(a, {
|
|
1703
1752
|
...e.options,
|
|
1704
|
-
template:
|
|
1753
|
+
template: zt(e.template, s),
|
|
1705
1754
|
name: `${t}-${e.name}`
|
|
1706
1755
|
}).define();
|
|
1707
1756
|
};
|
|
1708
1757
|
r(e);
|
|
1709
|
-
},
|
|
1758
|
+
}, Ut = (e, t, n, r, i) => ({
|
|
1710
1759
|
name: e,
|
|
1711
1760
|
type: t,
|
|
1712
1761
|
template: n,
|
|
1713
1762
|
dependencies: r,
|
|
1714
1763
|
options: i
|
|
1715
|
-
}),
|
|
1716
|
-
let t =
|
|
1717
|
-
return t || (t = [],
|
|
1718
|
-
},
|
|
1764
|
+
}), Wt = /* @__PURE__ */ new WeakMap(), Z = (e) => {
|
|
1765
|
+
let t = Wt.get(e);
|
|
1766
|
+
return t || (t = [], Wt.set(e, t)), t;
|
|
1767
|
+
}, Gt = (e, t) => {
|
|
1719
1768
|
Z(e).push(t);
|
|
1720
|
-
},
|
|
1769
|
+
}, Kt = (e, t) => {
|
|
1721
1770
|
Z(e).splice(Z(e).indexOf(t), 1);
|
|
1722
|
-
},
|
|
1771
|
+
}, qt = (e, t) => {
|
|
1723
1772
|
Z(e).forEach((n) => n(e, t));
|
|
1724
|
-
},
|
|
1725
|
-
if (
|
|
1773
|
+
}, Jt = (e) => e === "delegate", Yt = (e) => `vvd${e.charAt(0).toUpperCase()}${e.slice(1)}`, Xt = (e, t) => {
|
|
1774
|
+
if (Jt(e._vividAriaBehaviour)) {
|
|
1726
1775
|
let n = e[t];
|
|
1727
|
-
e[`_${t}`] = null, e.removeAttribute($(t)), e[`_${t}`] = n, e[t] === null ? delete e.dataset[
|
|
1728
|
-
} else
|
|
1729
|
-
}, Q = /* @__PURE__ */ new WeakMap(),
|
|
1776
|
+
e[`_${t}`] = null, e.removeAttribute($(t)), e[`_${t}`] = n, e[t] === null ? delete e.dataset[Yt(t)] : e.dataset[Yt(t)] = e[t];
|
|
1777
|
+
} else g.setAttribute(e, $(t), e[t]);
|
|
1778
|
+
}, Q = /* @__PURE__ */ new WeakMap(), Zt = (e, t) => {
|
|
1730
1779
|
let n = Q.get(e);
|
|
1731
1780
|
n ? n.add(t) : Q.set(e, new Set([t]));
|
|
1732
|
-
},
|
|
1733
|
-
e.isConnected ?
|
|
1734
|
-
},
|
|
1781
|
+
}, Qt = (e, t) => {
|
|
1782
|
+
e.isConnected ? Xt(e, t) : Zt(e, t);
|
|
1783
|
+
}, $t = (e) => {
|
|
1735
1784
|
let t = Q.get(e);
|
|
1736
1785
|
if (t) {
|
|
1737
|
-
for (let n of t)
|
|
1786
|
+
for (let n of t) Xt(e, n);
|
|
1738
1787
|
Q.delete(e);
|
|
1739
1788
|
}
|
|
1740
|
-
},
|
|
1789
|
+
}, en = /* @__PURE__ */ "role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColIndexText.ariaColSpan.ariaCurrent.ariaDescription.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowIndexText.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText.ariaRelevant".split("."), tn = [
|
|
1790
|
+
"ariaControls",
|
|
1791
|
+
"ariaDescribedBy",
|
|
1792
|
+
"ariaDetails",
|
|
1793
|
+
"ariaErrorMessage",
|
|
1794
|
+
"ariaFlowTo",
|
|
1795
|
+
"ariaLabelledBy",
|
|
1796
|
+
"ariaOwns"
|
|
1797
|
+
], nn = [...en, ...tn], $ = (e) => e.replace("aria", "aria-").toLowerCase(), rn = (e) => {
|
|
1741
1798
|
class t extends e {
|
|
1742
1799
|
constructor(...e) {
|
|
1743
1800
|
super(...e), this._vividAriaBehaviour = "default";
|
|
1744
|
-
for (let e of
|
|
1801
|
+
for (let e of nn) this[`_${e}`] = null;
|
|
1745
1802
|
}
|
|
1746
1803
|
connectedCallback() {
|
|
1747
|
-
super.connectedCallback(),
|
|
1804
|
+
super.connectedCallback(), $t(this);
|
|
1748
1805
|
}
|
|
1749
1806
|
}
|
|
1750
|
-
for (let e of
|
|
1807
|
+
for (let e of nn) ut({
|
|
1751
1808
|
attribute: $(e),
|
|
1752
1809
|
mode: "fromView"
|
|
1753
1810
|
})(t.prototype, e), t.prototype[`${e}Changed`] = function() {
|
|
1754
|
-
|
|
1811
|
+
Qt(this, e), this._vividAriaBehaviour !== "default" && qt(this, e);
|
|
1755
1812
|
};
|
|
1756
1813
|
return t;
|
|
1814
|
+
}, an = (e) => {
|
|
1815
|
+
class t extends e {
|
|
1816
|
+
#e = /* @__PURE__ */ new Set();
|
|
1817
|
+
_addController(e) {
|
|
1818
|
+
this.#e.add(e), this.$fastController.isConnected && e.hostConnected?.();
|
|
1819
|
+
}
|
|
1820
|
+
_removeController(e) {
|
|
1821
|
+
this.#e.delete(e);
|
|
1822
|
+
}
|
|
1823
|
+
connectedCallback() {
|
|
1824
|
+
super.connectedCallback();
|
|
1825
|
+
for (let e of this.#e) e.hostConnected?.();
|
|
1826
|
+
}
|
|
1827
|
+
disconnectedCallback() {
|
|
1828
|
+
super.disconnectedCallback();
|
|
1829
|
+
for (let e of this.#e) e.hostDisconnected?.();
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
return t;
|
|
1757
1833
|
};
|
|
1758
1834
|
//#endregion
|
|
1759
1835
|
//#region src/shared/deprecation/replaced-props.ts
|
|
1760
|
-
function
|
|
1836
|
+
function on() {
|
|
1761
1837
|
let e = /* @__PURE__ */ new WeakMap();
|
|
1762
1838
|
return (t) => (e.has(t) || e.set(t, []), e.get(t));
|
|
1763
1839
|
}
|
|
1764
|
-
var
|
|
1765
|
-
|
|
1840
|
+
var sn = on(), cn = (e) => (t, n) => {
|
|
1841
|
+
sn(t.constructor).push({
|
|
1766
1842
|
newPropertyName: n,
|
|
1767
1843
|
...e
|
|
1768
1844
|
});
|
|
1769
|
-
},
|
|
1845
|
+
}, ln = (e) => {
|
|
1770
1846
|
class t extends e {
|
|
1771
1847
|
#e(e) {
|
|
1772
1848
|
let t = !1, n = !1, r = (t) => n && e.fromDeprecated(t[e.deprecatedPropertyName]) === t[e.newPropertyName], i = (n) => t && e.toDeprecated && e.toDeprecated(n[e.newPropertyName]) === n[e.deprecatedPropertyName], a = { handleChange(a, o) {
|
|
@@ -1783,13 +1859,13 @@ var $t = Qt(), en = (e) => (t, n) => {
|
|
|
1783
1859
|
}
|
|
1784
1860
|
constructor(...e) {
|
|
1785
1861
|
super(...e);
|
|
1786
|
-
for (let e of
|
|
1862
|
+
for (let e of sn(this.constructor)) this.#e(e);
|
|
1787
1863
|
}
|
|
1788
1864
|
}
|
|
1789
1865
|
return t;
|
|
1790
|
-
},
|
|
1866
|
+
}, un = class extends rn(ln(an(Rt))) {
|
|
1791
1867
|
static {
|
|
1792
|
-
this.VIVID_VERSION = "5.
|
|
1868
|
+
this.VIVID_VERSION = "5.20.0";
|
|
1793
1869
|
}
|
|
1794
1870
|
connectedCallback() {
|
|
1795
1871
|
super.connectedCallback();
|
|
@@ -1798,4 +1874,4 @@ var $t = Qt(), en = (e) => (t, n) => {
|
|
|
1798
1874
|
}
|
|
1799
1875
|
};
|
|
1800
1876
|
//#endregion
|
|
1801
|
-
export {
|
|
1877
|
+
export { ie as A, pe as C, x as D, S as E, l as F, i as I, a as L, re as M, _ as N, b as O, g as P, o as R, he as S, C as T, F as _, en as a, N as b, Gt as c, Ht as d, xt as f, L as g, ct as h, tn as i, ae as j, y as k, Kt as l, ut as m, cn as n, Qt as o, yt as p, $ as r, qt as s, un as t, Ut as u, I as v, w, A as x, j as y };
|