@vonage/vivid 4.31.0 → 5.1.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/{shared/definition2.cjs → accordion/definition.cjs} +20 -20
- package/{shared/definition2.js → accordion/definition.js} +5 -7
- package/accordion/index.cjs +5 -5
- package/accordion/index.js +129 -3
- package/accordion-item/definition.cjs +145 -0
- package/accordion-item/definition.js +139 -0
- package/accordion-item/index.cjs +1 -5
- package/accordion-item/index.js +2 -3
- package/{shared/definition3.cjs → action-group/definition.cjs} +12 -9
- package/{shared/definition3.js → action-group/definition.js} +5 -4
- package/action-group/index.cjs +6 -5
- package/action-group/index.js +49 -3
- package/{shared/definition4.cjs → alert/definition.cjs} +33 -31
- package/{shared/definition4.js → alert/definition.js} +11 -11
- package/alert/index.cjs +30 -5
- package/alert/index.js +158 -3
- package/{shared/definition5.cjs → audio-player/definition.cjs} +58 -57
- package/{shared/definition5.js → audio-player/definition.js} +11 -12
- package/audio-player/index.cjs +68 -4
- package/audio-player/index.js +309 -2
- package/{shared/definition6.cjs → avatar/definition.cjs} +28 -26
- package/{shared/definition6.js → avatar/definition.js} +7 -7
- package/avatar/index.cjs +18 -5
- package/avatar/index.js +93 -3
- package/{shared/definition7.cjs → badge/definition.cjs} +18 -16
- package/{shared/definition7.js → badge/definition.js} +6 -6
- package/badge/index.cjs +4 -5
- package/badge/index.js +66 -3
- package/{shared/definition8.cjs → banner/definition.cjs} +26 -25
- package/{shared/definition8.js → banner/definition.js} +10 -11
- package/banner/index.cjs +29 -4
- package/banner/index.js +128 -2
- package/{shared/definition10.cjs → breadcrumb/definition.cjs} +11 -9
- package/{shared/definition10.js → breadcrumb/definition.js} +5 -5
- package/breadcrumb/index.cjs +12 -5
- package/breadcrumb/index.js +69 -3
- package/{shared/definition9.cjs → breadcrumb-item/definition.cjs} +18 -15
- package/{shared/definition9.js → breadcrumb-item/definition.js} +7 -7
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +33 -3
- package/bundled/_has.cjs +1 -0
- package/bundled/_has.js +34 -0
- package/bundled/affix.cjs +13 -0
- package/bundled/affix.js +63 -0
- package/bundled/anchored.cjs +4 -0
- package/bundled/anchored.js +67 -0
- package/bundled/aria.cjs +1 -0
- package/bundled/aria.js +7 -0
- package/bundled/attribute-binding-behaviour.cjs +1 -0
- package/bundled/attribute-binding-behaviour.js +27 -0
- package/bundled/base-progress.cjs +1 -0
- package/bundled/base-progress.js +57 -0
- package/bundled/breadcrumb-item.cjs +1 -0
- package/bundled/breadcrumb-item.js +21 -0
- package/bundled/button.cjs +1 -0
- package/bundled/button.js +106 -0
- package/bundled/calendar-event.cjs +1 -0
- package/bundled/calendar-event.js +34 -0
- package/bundled/calendar-picker.template.cjs +148 -0
- package/bundled/calendar-picker.template.js +3371 -0
- package/bundled/char-count.cjs +13 -0
- package/bundled/char-count.js +54 -0
- package/bundled/children.cjs +1 -0
- package/bundled/children.js +38 -0
- package/bundled/class-names.cjs +1 -0
- package/bundled/class-names.js +9 -0
- package/bundled/definition.cjs +39 -0
- package/bundled/definition.js +122 -0
- package/bundled/definition10.cjs +19 -0
- package/bundled/definition10.js +73 -0
- package/bundled/definition11.cjs +10 -0
- package/bundled/definition11.js +44 -0
- package/bundled/definition12.cjs +1 -0
- package/bundled/definition12.js +20 -0
- package/bundled/definition13.cjs +73 -0
- package/bundled/definition13.js +359 -0
- package/bundled/definition14.cjs +5 -0
- package/bundled/definition14.js +29 -0
- package/bundled/definition15.cjs +30 -0
- package/bundled/definition15.js +80 -0
- package/bundled/definition16.cjs +19 -0
- package/bundled/definition16.js +103 -0
- package/bundled/definition17.cjs +13 -0
- package/bundled/definition17.js +137 -0
- package/bundled/definition18.cjs +12 -0
- package/bundled/definition18.js +94 -0
- package/bundled/definition19.cjs +67 -0
- package/bundled/definition19.js +666 -0
- package/bundled/definition2.cjs +20 -0
- package/bundled/definition2.js +180 -0
- package/bundled/definition20.cjs +20 -0
- package/bundled/definition20.js +106 -0
- package/bundled/definition21.cjs +5 -0
- package/bundled/definition21.js +19 -0
- package/bundled/definition22.cjs +24 -0
- package/bundled/definition22.js +151 -0
- package/bundled/definition3.cjs +29 -0
- package/bundled/definition3.js +195 -0
- package/bundled/definition4.cjs +6 -0
- package/bundled/definition4.js +42 -0
- package/bundled/definition5.cjs +1 -0
- package/bundled/definition5.js +345 -0
- package/bundled/definition6.cjs +31 -0
- package/bundled/definition6.js +265 -0
- package/bundled/definition7.cjs +30 -0
- package/bundled/definition7.js +288 -0
- package/bundled/definition8.cjs +19 -0
- package/bundled/definition8.js +145 -0
- package/bundled/definition9.cjs +14 -0
- package/bundled/definition9.js +1406 -0
- package/bundled/delegates-aria.cjs +1 -0
- package/bundled/delegates-aria.js +77 -0
- package/bundled/divider.cjs +1 -0
- package/bundled/divider.js +34 -0
- package/bundled/dom.cjs +1 -0
- package/bundled/dom.js +6 -0
- package/bundled/enums.cjs +1 -0
- package/bundled/enums.js +9 -0
- package/bundled/form-associated.cjs +1 -0
- package/bundled/form-associated.js +320 -0
- package/bundled/form-element.cjs +1 -0
- package/bundled/form-element.js +56 -0
- package/bundled/host-semantics.cjs +1 -0
- package/bundled/host-semantics.js +57 -0
- package/bundled/index.cjs +1 -0
- package/bundled/index.js +6 -0
- package/bundled/key-codes.cjs +1 -0
- package/bundled/key-codes.js +16 -0
- package/bundled/linkable.cjs +15 -0
- package/bundled/linkable.js +49 -0
- package/bundled/listbox.cjs +1 -0
- package/bundled/listbox.js +345 -0
- package/bundled/localized.cjs +1 -0
- package/bundled/localized.js +459 -0
- package/bundled/mixins.cjs +33 -0
- package/bundled/mixins.js +226 -0
- package/bundled/numbers.cjs +1 -0
- package/bundled/numbers.js +14 -0
- package/bundled/option.cjs +1 -0
- package/bundled/option.js +158 -0
- package/bundled/picker-field.template.cjs +62 -0
- package/bundled/picker-field.template.js +234 -0
- package/bundled/playbackRates.cjs +1 -0
- package/bundled/playbackRates.js +11 -0
- package/bundled/ref.cjs +1 -0
- package/bundled/ref.js +32 -0
- package/bundled/repeat.cjs +1 -0
- package/bundled/repeat.js +341 -0
- package/bundled/scrollIntoView.cjs +1 -0
- package/bundled/scrollIntoView.js +33 -0
- package/bundled/single-date-picker.cjs +1 -0
- package/bundled/single-date-picker.js +39 -0
- package/bundled/single-value-picker.cjs +1 -0
- package/bundled/single-value-picker.js +87 -0
- package/bundled/slider.template.cjs +41 -0
- package/bundled/slider.template.js +100 -0
- package/bundled/slotted.cjs +1 -0
- package/bundled/slotted.js +81 -0
- package/bundled/strings.cjs +1 -0
- package/bundled/strings.js +7 -0
- package/bundled/text-field.cjs +1 -0
- package/bundled/text-field.js +4 -0
- package/bundled/time-selection-picker.template.cjs +46 -0
- package/bundled/time-selection-picker.template.js +575 -0
- package/bundled/vivid-element.cjs +1 -0
- package/bundled/vivid-element.js +1761 -0
- package/bundled/when.cjs +1 -0
- package/bundled/when.js +11 -0
- package/bundled/with-contextual-help.cjs +1 -0
- package/bundled/with-contextual-help.js +22 -0
- package/bundled/with-error-text.cjs +1 -0
- package/bundled/with-error-text.js +39 -0
- package/bundled/with-success-text.cjs +1 -0
- package/bundled/with-success-text.js +16 -0
- package/button/definition.cjs +14 -0
- package/button/definition.js +4 -0
- package/button/index.cjs +1 -5
- package/button/index.js +2 -3
- package/{shared/definition13.cjs → calendar/definition.cjs} +27 -449
- package/{shared/definition13.js → calendar/definition.js} +7 -431
- package/calendar/index.cjs +53 -5
- package/calendar/index.js +431 -3
- package/{shared/definition12.cjs → calendar-event/definition.cjs} +12 -9
- package/{shared/definition12.js → calendar-event/definition.js} +6 -6
- package/calendar-event/index.cjs +9 -5
- package/calendar-event/index.js +43 -3
- package/card/definition.cjs +186 -0
- package/{shared/definition14.js → card/definition.js} +10 -11
- package/card/index.cjs +47 -5
- package/card/index.js +163 -3
- package/{shared/definition15.cjs → checkbox/definition.cjs} +35 -30
- package/{shared/definition15.js → checkbox/definition.js} +17 -14
- package/checkbox/index.cjs +1 -5
- package/checkbox/index.js +2 -3
- package/{shared/definition16.cjs → combobox/definition.cjs} +50 -52
- package/{shared/definition16.js → combobox/definition.js} +19 -23
- package/combobox/index.cjs +65 -5
- package/combobox/index.js +512 -3
- package/contextual-help/definition.cjs +62 -0
- package/contextual-help/definition.js +57 -0
- package/contextual-help/index.cjs +1 -0
- package/contextual-help/index.js +2 -0
- package/custom-elements.json +2735 -711
- package/{shared/definition17.cjs → data-grid/definition.cjs} +169 -196
- package/{shared/definition17.js → data-grid/definition.js} +71 -100
- package/data-grid/index.cjs +81 -5
- package/data-grid/index.js +1011 -3
- package/{shared/definition18.cjs → date-picker/definition.cjs} +20 -17
- package/{shared/definition18.js → date-picker/definition.js} +12 -11
- package/date-picker/index.cjs +1 -5
- package/date-picker/index.js +115 -3
- package/{shared/definition19.cjs → date-range-picker/definition.cjs} +26 -23
- package/{shared/definition19.js → date-range-picker/definition.js} +10 -9
- package/date-range-picker/index.cjs +1 -5
- package/date-range-picker/index.js +335 -3
- package/{shared/definition20.cjs → date-time-picker/definition.cjs} +27 -24
- package/{shared/definition20.js → date-time-picker/definition.js} +13 -12
- package/date-time-picker/index.cjs +8 -5
- package/date-time-picker/index.js +216 -3
- package/{shared/definition21.cjs → dial-pad/definition.cjs} +39 -40
- package/{shared/definition21.js → dial-pad/definition.js} +9 -12
- package/dial-pad/index.cjs +54 -5
- package/dial-pad/index.js +214 -3
- package/{shared/definition22.cjs → dialog/definition.cjs} +48 -47
- package/{shared/definition22.js → dialog/definition.js} +10 -11
- package/dialog/index.cjs +44 -5
- package/dialog/index.js +257 -3
- package/{shared/definition23.cjs → divider/definition.cjs} +10 -6
- package/{shared/definition23.js → divider/definition.js} +6 -5
- package/divider/index.cjs +1 -5
- package/divider/index.js +2 -3
- package/elevation/definition.cjs +11 -0
- package/elevation/definition.js +2 -0
- package/elevation/index.cjs +1 -5
- package/elevation/index.js +2 -3
- package/empty-state/definition.cjs +81 -0
- package/empty-state/definition.js +75 -0
- package/empty-state/index.cjs +14 -5
- package/empty-state/index.js +64 -3
- package/fab/definition.cjs +105 -0
- package/fab/definition.js +99 -0
- package/fab/index.cjs +20 -5
- package/fab/index.js +86 -3
- package/file-picker/definition.cjs +510 -0
- package/file-picker/definition.js +504 -0
- package/file-picker/index.cjs +58 -5
- package/file-picker/index.js +381 -3
- package/{shared/definition27.cjs → header/definition.cjs} +14 -11
- package/{shared/definition27.js → header/definition.js} +6 -5
- package/header/index.cjs +19 -5
- package/header/index.js +57 -3
- package/{shared/definition28.cjs → icon/definition.cjs} +25 -149
- package/{shared/definition28.js → icon/definition.js} +6 -132
- package/icon/index.cjs +1 -5
- package/icon/index.js +2 -3
- package/index.cjs +268 -264
- package/index.js +72 -71
- package/{shared/definition29.cjs → layout/definition.cjs} +13 -10
- package/{shared/definition29.js → layout/definition.js} +4 -3
- package/layout/index.cjs +3 -5
- package/layout/index.js +52 -3
- package/lib/accordion-item/accordion-item.d.ts +42 -2
- package/lib/action-group/action-group.d.ts +42 -2
- package/lib/alert/alert.d.ts +84 -4
- package/lib/audio-player/audio-player.d.ts +42 -2
- package/lib/avatar/avatar.d.ts +42 -2
- package/lib/badge/badge.d.ts +42 -2
- package/lib/banner/banner.d.ts +126 -6
- package/lib/breadcrumb/breadcrumb.d.ts +42 -2
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +42 -2
- package/lib/button/button.d.ts +127 -6
- package/lib/calendar-event/calendar-event.d.ts +42 -2
- package/lib/card/card.d.ts +42 -2
- package/lib/checkbox/checkbox.d.ts +252 -13
- package/lib/combobox/combobox.d.ts +252 -12
- package/lib/components.d.ts +1 -0
- package/lib/contextual-help/contextual-help.d.ts +5 -0
- package/lib/contextual-help/contextual-help.template.d.ts +3 -0
- package/lib/contextual-help/definition.d.ts +1 -0
- package/lib/data-grid/data-grid-cell.d.ts +418 -3
- package/lib/data-grid/data-grid-row.d.ts +379 -1
- package/lib/date-picker/date-picker.d.ts +374 -54
- package/lib/date-range-picker/date-range-picker.d.ts +188 -28
- package/lib/date-time-picker/date-time-picker.d.ts +376 -56
- package/lib/dial-pad/dial-pad.d.ts +42 -2
- package/lib/dialog/dialog.d.ts +84 -4
- package/lib/divider/divider.d.ts +42 -2
- package/lib/fab/fab.d.ts +43 -2
- package/lib/file-picker/accept.d.ts +1 -0
- package/lib/file-picker/data-transfer.d.ts +1 -0
- package/lib/file-picker/file-picker.d.ts +259 -31
- package/lib/file-picker/locale.d.ts +1 -0
- package/lib/header/header.d.ts +42 -2
- package/lib/menu/menu.d.ts +84 -4
- package/lib/menu-item/menu-item.d.ts +84 -4
- package/lib/nav/nav.d.ts +42 -2
- package/lib/nav-disclosure/nav-disclosure.d.ts +84 -4
- package/lib/nav-item/nav-item.d.ts +84 -4
- package/lib/note/note.d.ts +42 -2
- package/lib/number-field/number-field.d.ts +840 -104
- package/lib/option/option.d.ts +85 -4
- package/lib/pagination/pagination.d.ts +42 -2
- package/lib/progress/progress.d.ts +42 -2
- package/lib/progress-ring/progress-ring.d.ts +42 -2
- package/lib/radio/radio.d.ts +126 -7
- package/lib/radio-group/radio-group.d.ts +42 -2
- package/lib/range-slider/range-slider.d.ts +126 -6
- package/lib/rich-text-editor/menubar/menubar.d.ts +42 -2
- package/lib/rich-text-editor/rich-text-editor.d.ts +42 -2
- package/lib/searchable-select/option-tag.d.ts +42 -2
- package/lib/searchable-select/searchable-select.d.ts +336 -16
- package/lib/select/select.d.ts +294 -14
- package/lib/selectable-box/selectable-box.d.ts +42 -3
- package/lib/simple-color-picker/definition.d.ts +4 -0
- package/lib/simple-color-picker/locale.d.ts +4 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +1600 -0
- package/lib/simple-color-picker/simple-color-picker.template.d.ts +3 -0
- package/lib/slider/slider.d.ts +126 -6
- package/lib/split-button/split-button.d.ts +128 -6
- package/lib/switch/switch.d.ts +84 -4
- package/lib/tab/tab.d.ts +126 -6
- package/lib/tab-panel/tab-panel.d.ts +42 -2
- package/lib/tag/tag.d.ts +126 -6
- package/lib/tag-group/tag-group.d.ts +42 -2
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-area/text-area.d.ts +787 -91
- package/lib/text-field/text-field.d.ts +840 -104
- package/lib/time-picker/time-picker.d.ts +188 -28
- package/lib/toggletip/toggletip.d.ts +84 -4
- package/lib/tooltip/tooltip.d.ts +42 -2
- package/lib/tree-item/tree-item.d.ts +84 -4
- package/lib/tree-view/tree-view.d.ts +42 -2
- package/lib/video-player/video-player.d.ts +42 -2
- package/locales/de-DE.cjs +13 -1
- package/locales/de-DE.js +13 -1
- package/locales/en-GB.cjs +13 -1
- package/locales/en-GB.js +13 -1
- package/locales/en-US.cjs +13 -1
- package/locales/en-US.js +13 -1
- package/locales/ja-JP.cjs +13 -1
- package/locales/ja-JP.js +13 -1
- package/locales/zh-CN.cjs +13 -1
- package/locales/zh-CN.js +13 -1
- package/{shared/definition31.cjs → menu/definition.cjs} +46 -46
- package/{shared/definition31.js → menu/definition.js} +16 -18
- package/menu/index.cjs +1 -5
- package/menu/index.js +2 -3
- package/menu-item/definition.cjs +14 -0
- package/menu-item/definition.js +3 -0
- package/menu-item/index.cjs +1 -5
- package/menu-item/index.js +2 -3
- package/{shared/definition34.cjs → nav/definition.cjs} +7 -4
- package/{shared/definition34.js → nav/definition.js} +4 -3
- package/nav/index.cjs +5 -5
- package/nav/index.js +13 -3
- package/nav-disclosure/definition.cjs +122 -0
- package/nav-disclosure/definition.js +116 -0
- package/nav-disclosure/index.cjs +16 -5
- package/nav-disclosure/index.js +96 -3
- package/{shared/definition33.cjs → nav-item/definition.cjs} +19 -16
- package/{shared/definition33.js → nav-item/definition.js} +9 -8
- package/nav-item/index.cjs +2 -5
- package/nav-item/index.js +59 -3
- package/{shared/definition35.cjs → note/definition.cjs} +15 -13
- package/{shared/definition35.js → note/definition.js} +6 -6
- package/note/index.cjs +9 -5
- package/note/index.js +44 -3
- package/number-field/definition.cjs +438 -0
- package/{shared/definition36.js → number-field/definition.js} +31 -27
- package/number-field/index.cjs +60 -5
- package/number-field/index.js +369 -3
- package/option/definition.cjs +84 -0
- package/option/definition.js +78 -0
- package/option/index.cjs +1 -5
- package/option/index.js +2 -3
- package/package.json +15 -4
- package/{shared/definition38.cjs → pagination/definition.cjs} +31 -33
- package/{shared/definition38.js → pagination/definition.js} +7 -11
- package/pagination/index.cjs +43 -5
- package/pagination/index.js +194 -3
- package/popup/definition.cjs +13 -0
- package/popup/definition.js +4 -0
- package/popup/index.cjs +1 -5
- package/popup/index.js +2 -3
- package/{shared/definition40.cjs → progress/definition.cjs} +17 -15
- package/{shared/definition40.js → progress/definition.js} +6 -6
- package/progress/index.cjs +17 -5
- package/progress/index.js +69 -3
- package/{shared/definition39.cjs → progress-ring/definition.cjs} +17 -15
- package/{shared/definition39.js → progress-ring/definition.js} +7 -7
- package/progress-ring/index.cjs +1 -5
- package/progress-ring/index.js +2 -3
- package/{shared/definition42.cjs → radio/definition.cjs} +20 -23
- package/{shared/definition42.js → radio/definition.js} +8 -13
- package/radio/index.cjs +1 -5
- package/radio/index.js +2 -3
- package/{shared/definition41.cjs → radio-group/definition.cjs} +31 -30
- package/{shared/definition41.js → radio-group/definition.js} +8 -9
- package/radio-group/index.cjs +23 -5
- package/radio-group/index.js +255 -3
- package/{shared/definition43.cjs → range-slider/definition.cjs} +62 -61
- package/{shared/definition43.js → range-slider/definition.js} +13 -14
- package/range-slider/index.cjs +68 -5
- package/range-slider/index.js +456 -3
- package/rich-text-editor/definition.cjs +1206 -0
- package/rich-text-editor/definition.js +1200 -0
- package/rich-text-editor/index.cjs +133 -4
- package/rich-text-editor/index.js +10386 -2
- package/{shared/definition45.cjs → searchable-select/definition.cjs} +119 -116
- package/{shared/definition45.js → searchable-select/definition.js} +25 -24
- package/searchable-select/index.cjs +164 -5
- package/searchable-select/index.js +1025 -3
- package/{shared/definition46.cjs → select/definition.cjs} +80 -83
- package/{shared/definition46.js → select/definition.js} +19 -24
- package/select/index.cjs +1 -5
- package/select/index.js +2 -3
- package/{shared/definition47.cjs → selectable-box/definition.cjs} +26 -32
- package/{shared/definition47.js → selectable-box/definition.js} +9 -17
- package/selectable-box/index.cjs +28 -5
- package/selectable-box/index.js +136 -3
- package/shared/aria/aria-mixin.d.ts +43 -3
- package/shared/aria/attribute-removal.d.ts +3 -0
- package/shared/aria/delegate-aria-behavior.d.ts +0 -3
- package/shared/aria/delegates-aria.d.ts +42 -2
- package/shared/aria/host-semantics.d.ts +42 -2
- package/shared/color-picker/index.d.ts +2 -0
- package/shared/color-picker/types.d.ts +4 -0
- package/shared/color-picker/utils.d.ts +3 -0
- package/shared/feedback/feedback-message.d.ts +42 -2
- package/shared/feedback/mixins.d.ts +84 -4
- package/shared/foundation/button/button.d.ts +84 -4
- package/shared/foundation/form-associated/form-associated.d.ts +84 -4
- package/shared/foundation/vivid-element/vivid-element.d.ts +43 -3
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/affix.d.ts +84 -4
- package/shared/patterns/anchored.d.ts +84 -4
- package/shared/patterns/char-count/char-count.d.ts +42 -2
- package/shared/patterns/form-elements/form-element.d.ts +84 -4
- package/shared/patterns/form-elements/with-contextual-help.d.ts +1238 -0
- package/shared/patterns/form-elements/with-error-text.d.ts +126 -6
- package/shared/patterns/form-elements/with-success-text.d.ts +42 -2
- package/shared/patterns/linkable.d.ts +42 -2
- package/shared/patterns/localized.d.ts +42 -2
- package/shared/patterns/trapped-focus.d.ts +42 -2
- package/shared/picker-field/mixins/calendar-picker.d.ts +94 -14
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +94 -14
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +42 -2
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +188 -28
- package/shared/picker-field/mixins/single-date-picker.d.ts +280 -40
- package/shared/picker-field/mixins/single-value-picker.d.ts +92 -12
- package/shared/picker-field/mixins/time-selection-picker.d.ts +188 -28
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +188 -28
- package/shared/picker-field/picker-field.d.ts +252 -12
- package/{shared/definition48.cjs → side-drawer/definition.cjs} +16 -14
- package/{shared/definition48.js → side-drawer/definition.js} +5 -5
- package/side-drawer/index.cjs +17 -3
- package/side-drawer/index.js +100 -2
- package/simple-color-picker/definition.cjs +398 -0
- package/simple-color-picker/definition.js +392 -0
- package/simple-color-picker/index.cjs +31 -0
- package/simple-color-picker/index.js +250 -0
- package/{shared/definition49.cjs → slider/definition.cjs} +46 -53
- package/{shared/definition49.js → slider/definition.js} +11 -20
- package/slider/index.cjs +1 -5
- package/slider/index.js +2 -3
- package/split-button/definition.cjs +176 -0
- package/split-button/definition.js +170 -0
- package/split-button/index.cjs +26 -5
- package/split-button/index.js +149 -3
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/{shared/definition51.cjs → switch/definition.cjs} +20 -19
- package/{shared/definition51.js → switch/definition.js} +8 -9
- package/switch/index.cjs +16 -5
- package/switch/index.js +102 -3
- package/tab/definition.cjs +127 -0
- package/tab/definition.js +121 -0
- package/tab/index.cjs +1 -5
- package/tab/index.js +2 -3
- package/{shared/definition52.cjs → tab-panel/definition.cjs} +7 -4
- package/{shared/definition52.js → tab-panel/definition.js} +4 -3
- package/tab-panel/index.cjs +1 -5
- package/tab-panel/index.js +2 -3
- package/{shared/definition54.cjs → tabs/definition.cjs} +47 -40
- package/{shared/definition54.js → tabs/definition.js} +19 -14
- package/tabs/index.cjs +31 -5
- package/tabs/index.js +321 -3
- package/tag/definition.cjs +156 -0
- package/tag/definition.js +150 -0
- package/tag/index.cjs +19 -5
- package/tag/index.js +118 -3
- package/{shared/definition55.cjs → tag-group/definition.cjs} +9 -6
- package/{shared/definition55.js → tag-group/definition.js} +5 -4
- package/tag-group/index.cjs +8 -5
- package/tag-group/index.js +26 -3
- package/text-area/definition.cjs +355 -0
- package/text-area/definition.js +349 -0
- package/text-area/index.cjs +41 -5
- package/text-area/index.js +293 -3
- package/{shared/definition58.cjs → text-field/definition.cjs} +70 -52
- package/{shared/definition58.js → text-field/definition.js} +40 -24
- package/text-field/index.cjs +1 -5
- package/text-field/index.js +2 -3
- package/time-picker/definition.cjs +43 -0
- package/{shared/definition59.js → time-picker/definition.js} +9 -8
- package/time-picker/index.cjs +1 -5
- package/time-picker/index.js +29 -3
- package/{shared/definition60.cjs → toggletip/definition.cjs} +20 -18
- package/{shared/definition60.js → toggletip/definition.js} +8 -8
- package/toggletip/index.cjs +1 -5
- package/toggletip/index.js +2 -3
- package/{shared/definition61.cjs → tooltip/definition.cjs} +16 -13
- package/{shared/definition61.js → tooltip/definition.js} +7 -6
- package/tooltip/index.cjs +1 -5
- package/tooltip/index.js +2 -3
- package/tree-item/definition.cjs +13 -0
- package/tree-item/definition.js +3 -0
- package/tree-item/index.cjs +1 -5
- package/tree-item/index.js +2 -3
- package/{shared/definition63.cjs → tree-view/definition.cjs} +42 -44
- package/{shared/definition63.js → tree-view/definition.js} +7 -11
- package/tree-view/index.cjs +13 -5
- package/tree-view/index.js +171 -3
- package/{shared → unbundled}/affix.cjs +10 -11
- package/{shared → unbundled}/affix.js +2 -3
- package/{shared → unbundled}/anchored.cjs +7 -8
- package/{shared → unbundled}/anchored.js +1 -2
- package/{shared → unbundled}/attribute-binding-behaviour.cjs +3 -3
- package/{shared → unbundled}/attribute-binding-behaviour.js +1 -1
- package/{shared → unbundled}/base-progress.cjs +6 -5
- package/{shared → unbundled}/base-progress.js +2 -1
- package/{shared → unbundled}/breadcrumb-item.cjs +3 -2
- package/{shared → unbundled}/breadcrumb-item.js +2 -1
- package/{shared → unbundled}/button.cjs +10 -9
- package/{shared → unbundled}/button.js +2 -1
- package/{shared → unbundled}/calendar-event.cjs +8 -7
- package/{shared → unbundled}/calendar-event.js +2 -1
- package/unbundled/calendar-picker.template.cjs +917 -0
- package/unbundled/calendar-picker.template.js +906 -0
- package/{shared → unbundled}/char-count.cjs +6 -7
- package/{shared → unbundled}/char-count.js +2 -3
- package/unbundled/definition.cjs +225 -0
- package/unbundled/definition.js +220 -0
- package/{shared/definition30.cjs → unbundled/definition2.cjs} +49 -46
- package/{shared/definition30.js → unbundled/definition2.js} +14 -11
- package/unbundled/definition3.cjs +207 -0
- package/{shared/definition62.js → unbundled/definition3.js} +6 -10
- package/unbundled/definition4.cjs +298 -0
- package/unbundled/definition4.js +293 -0
- package/{shared/definition65.cjs → unbundled/definition5.cjs} +7 -6
- package/{shared/definition65.js → unbundled/definition5.js} +3 -2
- package/{shared → unbundled}/delegates-aria.cjs +8 -28
- package/{shared → unbundled}/delegates-aria.js +6 -26
- package/{shared → unbundled}/divider.cjs +13 -7
- package/{shared → unbundled}/divider.js +11 -5
- package/{shared → unbundled}/form-associated.cjs +13 -13
- package/{shared → unbundled}/form-associated.js +2 -2
- package/{shared → unbundled}/form-element.cjs +3 -3
- package/{shared → unbundled}/form-element.js +1 -1
- package/{shared → unbundled}/host-semantics.cjs +2 -1
- package/{shared → unbundled}/host-semantics.js +2 -1
- package/unbundled/key-codes.cjs +10 -0
- package/unbundled/key-codes.js +7 -0
- package/{shared → unbundled}/linkable.cjs +11 -12
- package/{shared → unbundled}/linkable.js +1 -2
- package/{shared → unbundled}/listbox.cjs +22 -38
- package/{shared → unbundled}/listbox.js +4 -20
- package/{shared → unbundled}/localized.cjs +2 -2
- package/{shared → unbundled}/localized.js +1 -1
- package/{shared → unbundled}/mixins.cjs +27 -83
- package/{shared → unbundled}/mixins.js +6 -62
- package/{shared → unbundled}/option.cjs +42 -17
- package/{shared → unbundled}/option.js +29 -4
- package/{shared → unbundled}/picker-field.template.cjs +21 -21
- package/{shared → unbundled}/picker-field.template.js +7 -7
- package/{shared → unbundled}/slider.template.cjs +15 -19
- package/{shared → unbundled}/slider.template.js +3 -7
- package/unbundled/text-field.cjs +5 -0
- package/unbundled/text-field.js +3 -0
- package/{shared → unbundled}/time-selection-picker.template.cjs +28 -30
- package/{shared → unbundled}/time-selection-picker.template.js +4 -6
- package/unbundled/vivid-element.cjs +283 -0
- package/unbundled/vivid-element.js +274 -0
- package/unbundled/with-contextual-help.cjs +29 -0
- package/unbundled/with-contextual-help.js +27 -0
- package/{shared → unbundled}/with-error-text.cjs +2 -2
- package/{shared → unbundled}/with-error-text.js +1 -1
- package/{shared → unbundled}/with-success-text.cjs +2 -2
- package/{shared → unbundled}/with-success-text.js +1 -1
- package/video-player/definition.cjs +536 -0
- package/video-player/definition.js +530 -0
- package/video-player/index.cjs +536 -3
- package/video-player/index.js +35912 -2
- package/{shared/definition66.cjs → visually-hidden/definition.cjs} +6 -3
- package/{shared/definition66.js → visually-hidden/definition.js} +3 -2
- package/visually-hidden/index.cjs +1 -5
- package/visually-hidden/index.js +2 -3
- package/vivid.api.json +716 -914
- package/shared/_has.cjs +0 -58
- package/shared/_has.js +0 -54
- package/shared/aria.cjs +0 -11
- package/shared/aria.js +0 -9
- package/shared/calendar-picker.template.cjs +0 -6377
- package/shared/calendar-picker.template.js +0 -6366
- package/shared/children.cjs +0 -61
- package/shared/children.js +0 -59
- package/shared/class-names.cjs +0 -17
- package/shared/class-names.js +0 -15
- package/shared/definition.cjs +0 -145
- package/shared/definition.js +0 -141
- package/shared/definition11.cjs +0 -220
- package/shared/definition11.js +0 -215
- package/shared/definition14.cjs +0 -185
- package/shared/definition24.cjs +0 -80
- package/shared/definition24.js +0 -76
- package/shared/definition25.cjs +0 -90
- package/shared/definition25.js +0 -86
- package/shared/definition26.cjs +0 -2514
- package/shared/definition26.js +0 -2510
- package/shared/definition32.cjs +0 -120
- package/shared/definition32.js +0 -116
- package/shared/definition36.cjs +0 -432
- package/shared/definition37.cjs +0 -71
- package/shared/definition37.js +0 -68
- package/shared/definition44.cjs +0 -14666
- package/shared/definition44.js +0 -14662
- package/shared/definition50.cjs +0 -148
- package/shared/definition50.js +0 -144
- package/shared/definition53.cjs +0 -124
- package/shared/definition53.js +0 -120
- package/shared/definition56.cjs +0 -154
- package/shared/definition56.js +0 -150
- package/shared/definition57.cjs +0 -335
- package/shared/definition57.js +0 -331
- package/shared/definition59.cjs +0 -39
- package/shared/definition62.cjs +0 -211
- package/shared/definition64.cjs +0 -69579
- package/shared/definition64.js +0 -69575
- package/shared/definition67.cjs +0 -2227
- package/shared/definition67.js +0 -2222
- package/shared/dom.cjs +0 -10
- package/shared/dom.js +0 -8
- package/shared/key-codes.cjs +0 -32
- package/shared/key-codes.js +0 -18
- package/shared/numbers.cjs +0 -38
- package/shared/numbers.js +0 -34
- package/shared/ref.cjs +0 -43
- package/shared/ref.js +0 -41
- package/shared/repeat.cjs +0 -767
- package/shared/repeat.js +0 -764
- package/shared/slotted.cjs +0 -123
- package/shared/slotted.js +0 -119
- package/shared/strings.cjs +0 -11
- package/shared/strings.js +0 -9
- package/shared/text-field.cjs +0 -5
- package/shared/text-field.js +0 -3
- package/shared/vivid-element.cjs +0 -2771
- package/shared/vivid-element.js +0 -2748
- package/shared/when.cjs +0 -31
- package/shared/when.js +0 -29
- /package/{shared → unbundled}/enums.cjs +0 -0
- /package/{shared → unbundled}/enums.js +0 -0
- /package/{shared → unbundled}/index.cjs +0 -0
- /package/{shared → unbundled}/index.js +0 -0
- /package/{shared → unbundled}/playbackRates.cjs +0 -0
- /package/{shared → unbundled}/playbackRates.js +0 -0
- /package/{shared → unbundled}/scrollIntoView.cjs +0 -0
- /package/{shared → unbundled}/scrollIntoView.js +0 -0
- /package/{shared → unbundled}/single-date-picker.cjs +0 -0
- /package/{shared → unbundled}/single-date-picker.js +0 -0
- /package/{shared → unbundled}/single-value-picker.cjs +0 -0
- /package/{shared → unbundled}/single-value-picker.js +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { D as c } from "./delegates-aria.js";
|
|
2
|
+
import { V as d, D as p, a as o } from "./vivid-element.js";
|
|
3
|
+
import { F as l } from "./form-associated.js";
|
|
4
|
+
var f = Object.defineProperty, i = (n, t, e, m) => {
|
|
5
|
+
for (var r = void 0, a = n.length - 1, h; a >= 0; a--)
|
|
6
|
+
(h = n[a]) && (r = h(t, e, r) || r);
|
|
7
|
+
return r && f(t, e, r), r;
|
|
8
|
+
};
|
|
9
|
+
class s extends c(
|
|
10
|
+
l(d)
|
|
11
|
+
) {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments), this.proxy = document.createElement("input"), this.handleClick = (t) => {
|
|
14
|
+
this.disabled && t.stopPropagation();
|
|
15
|
+
}, this.handleSubmission = () => {
|
|
16
|
+
this.form && (this.attachProxy(), this.form.requestSubmit(this.proxy), this.detachProxy());
|
|
17
|
+
}, this.handleFormReset = () => {
|
|
18
|
+
this.form?.reset();
|
|
19
|
+
}, this.handleUnsupportedDelegatesFocus = () => {
|
|
20
|
+
this.$fastController.definition.shadowOptions && window.ShadowRoot && /* eslint-disable-next-line */
|
|
21
|
+
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") && this.$fastController.definition.shadowOptions.delegatesFocus && Object.defineProperty(this, "focus", {
|
|
22
|
+
value: () => {
|
|
23
|
+
this.control.focus();
|
|
24
|
+
},
|
|
25
|
+
configurable: !0
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
// @ts-expect-error Function is delcared but not used
|
|
30
|
+
formactionChanged() {
|
|
31
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.formAction = this.formaction);
|
|
32
|
+
}
|
|
33
|
+
// @ts-expect-error Function is delcared but not used
|
|
34
|
+
formenctypeChanged() {
|
|
35
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.formEnctype = this.formenctype);
|
|
36
|
+
}
|
|
37
|
+
// @ts-expect-error Function is delcared but not used
|
|
38
|
+
formmethodChanged() {
|
|
39
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.formMethod = this.formmethod);
|
|
40
|
+
}
|
|
41
|
+
// @ts-expect-error Function is delcared but not used
|
|
42
|
+
formnovalidateChanged() {
|
|
43
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.formNoValidate = this.formnovalidate);
|
|
44
|
+
}
|
|
45
|
+
// @ts-expect-error Function is delcared but not used
|
|
46
|
+
formtargetChanged() {
|
|
47
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.formTarget = this.formtarget);
|
|
48
|
+
}
|
|
49
|
+
// @ts-expect-error Function is delcared but not used
|
|
50
|
+
typeChanged(t, e) {
|
|
51
|
+
this.proxy instanceof HTMLInputElement && (this.proxy.type = this.type), e === "submit" && this.addEventListener("click", this.handleSubmission), t === "submit" && this.removeEventListener("click", this.handleSubmission), e === "reset" && this.addEventListener("click", this.handleFormReset), t === "reset" && this.removeEventListener("click", this.handleFormReset);
|
|
52
|
+
}
|
|
53
|
+
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
54
|
+
validate() {
|
|
55
|
+
super.validate(this.control);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
connectedCallback() {
|
|
61
|
+
super.connectedCallback(), this.proxy.setAttribute("type", this.type), this.handleUnsupportedDelegatesFocus(), this.autofocus && p.queueUpdate(() => {
|
|
62
|
+
this.focus();
|
|
63
|
+
});
|
|
64
|
+
const t = Array.from(this.control.children);
|
|
65
|
+
t && t.forEach((e) => {
|
|
66
|
+
e.addEventListener("click", this.handleClick);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
disconnectedCallback() {
|
|
73
|
+
super.disconnectedCallback();
|
|
74
|
+
const t = Array.from(this.control.children);
|
|
75
|
+
t && t.forEach((e) => {
|
|
76
|
+
e.removeEventListener("click", this.handleClick);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
i([
|
|
81
|
+
o({ mode: "boolean" })
|
|
82
|
+
], s.prototype, "autofocus");
|
|
83
|
+
i([
|
|
84
|
+
o({ attribute: "form" })
|
|
85
|
+
], s.prototype, "formId");
|
|
86
|
+
i([
|
|
87
|
+
o
|
|
88
|
+
], s.prototype, "formaction");
|
|
89
|
+
i([
|
|
90
|
+
o
|
|
91
|
+
], s.prototype, "formenctype");
|
|
92
|
+
i([
|
|
93
|
+
o
|
|
94
|
+
], s.prototype, "formmethod");
|
|
95
|
+
i([
|
|
96
|
+
o({ mode: "boolean" })
|
|
97
|
+
], s.prototype, "formnovalidate");
|
|
98
|
+
i([
|
|
99
|
+
o
|
|
100
|
+
], s.prototype, "formtarget");
|
|
101
|
+
i([
|
|
102
|
+
o
|
|
103
|
+
], s.prototype, "type");
|
|
104
|
+
export {
|
|
105
|
+
s as V
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./vivid-element.cjs"),v=require("./delegates-aria.cjs");var u=Object.defineProperty,r=(o,l,p,s)=>{for(var a=void 0,n=o.length-1,i;n>=0;n--)(i=o[n])&&(a=i(l,p,a)||a);return a&&u(l,p,a),a};class t extends v.DelegatesAria(e.VividElement){}r([e.attr],t.prototype,"heading");r([e.attr],t.prototype,"description");r([e.attr],t.prototype,"connotation");r([e.attr],t.prototype,"appearance");r([e.attr({converter:e.nullableNumberConverter,attribute:"overlap-count"})],t.prototype,"overlapCount");r([e.attr({converter:e.nullableNumberConverter})],t.prototype,"start");r([e.attr({converter:e.nullableNumberConverter})],t.prototype,"duration");exports.CalendarEvent=t;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { V as l, a as e, n } from "./vivid-element.js";
|
|
2
|
+
import { D as d } from "./delegates-aria.js";
|
|
3
|
+
var c = Object.defineProperty, t = (a, i, s, u) => {
|
|
4
|
+
for (var o = void 0, p = a.length - 1, v; p >= 0; p--)
|
|
5
|
+
(v = a[p]) && (o = v(i, s, o) || o);
|
|
6
|
+
return o && c(i, s, o), o;
|
|
7
|
+
};
|
|
8
|
+
class r extends d(l) {
|
|
9
|
+
// TODO should be converted to allowed range
|
|
10
|
+
}
|
|
11
|
+
t([
|
|
12
|
+
e
|
|
13
|
+
], r.prototype, "heading");
|
|
14
|
+
t([
|
|
15
|
+
e
|
|
16
|
+
], r.prototype, "description");
|
|
17
|
+
t([
|
|
18
|
+
e
|
|
19
|
+
], r.prototype, "connotation");
|
|
20
|
+
t([
|
|
21
|
+
e
|
|
22
|
+
], r.prototype, "appearance");
|
|
23
|
+
t([
|
|
24
|
+
e({ converter: n, attribute: "overlap-count" })
|
|
25
|
+
], r.prototype, "overlapCount");
|
|
26
|
+
t([
|
|
27
|
+
e({ converter: n })
|
|
28
|
+
], r.prototype, "start");
|
|
29
|
+
t([
|
|
30
|
+
e({ converter: n })
|
|
31
|
+
], r.prototype, "duration");
|
|
32
|
+
export {
|
|
33
|
+
r as C
|
|
34
|
+
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";const c=require("./vivid-element.cjs"),be=require("./divider.cjs"),qe=require("./definition3.cjs"),ye=require("./definition12.cjs"),F=require("./repeat.cjs"),D=require("./when.cjs"),ge=require("./class-names.cjs"),Fe='.segments{display:inline-flex;gap:24px}.segment{display:flex;flex-direction:column;gap:12px}.segment .header{display:flex;align-items:center;padding-block:8px}.segment .title{display:flex;flex-grow:1;justify-content:center}.segment .title-action{border-radius:8px;block-size:24px;font:var(--vvd-typography-base-extended);padding-inline:8px}.calendar{display:flex;flex-direction:column;margin-top:8px;gap:4px}.calendar .calendar-separator{margin-inline:10px}.calendar .calendar-weekdays{display:flex;justify-content:center}.calendar .calendar-weekday{display:inline-flex;align-items:center;justify-content:center;block-size:16px;font:var(--vvd-typography-base-condensed);inline-size:40px}.calendar .calendar-week{display:flex;justify-content:center}.calendar .calendar-day{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;aspect-ratio:1/1;block-size:28px;font:var(--vvd-typography-base);margin-inline:6px}.calendar .calendar-day.start,.calendar .calendar-day.end{border:2px solid var(--vvd-color-cta-50);background-color:var(--vvd-color-cta-200)}.calendar:focus-visible .calendar .calendar-day.start,.calendar:focus-visible .calendar .calendar-day.end{border-width:3px}.calendar .calendar-day:before,.calendar .calendar-day:after{position:absolute;z-index:-1;display:block;width:20px;height:28px}.calendar .calendar-day:before{right:50%}.calendar .calendar-day:after{left:50%}.calendar .calendar-day.range:before,.calendar .calendar-day.range:after{background-color:var(--vvd-color-cta-50)}.calendar .calendar-day.range:not(.start):before,.calendar .calendar-day.range:not(.end):after{content:""}.calendar .calendar-day.outside-month,.calendar .calendar-day:disabled{color:var(--vvd-color-neutral-400)}.months-separator{margin-inline:-12px}.month-grid{display:flex;flex-direction:column;gap:34px}.month-grid .months-row{display:flex;justify-content:center;gap:29px}.month-grid .month{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;aspect-ratio:1/1;block-size:48px;font:var(--vvd-typography-base-extended);text-transform:uppercase}.month-grid .month:disabled{color:var(--vvd-color-neutral-400)}.button{--_connotation-color-primary: var(--vvd-date-picker-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-firm: var(--vvd-date-picker-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-date-picker-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-date-picker-accent-soft, var(--vvd-color-neutral-100));--_connotation-color-dim: var(--vvd-date-picker-accent-dim, var(--vvd-color-neutral-200));--_connotation-color-pale: var(--vvd-date-picker-accent-pale, var(--vvd-color-neutral-300))}.button{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}@media (hover: hover){.button:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}}.button.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.button:active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.button.active:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.button.selected:where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}@media (hover: hover){.button.selected:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}}.button.selected.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-dim);--_appearance-color-outline: transparent}.button.selected:disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}.button.selected.disabled{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: transparent}.button{position:relative;padding:0;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer}.button:disabled{cursor:not-allowed}.button:focus:not(.title-action),.button.title-action:focus-visible{--focus-stroke-gap-color: transparent;color:var(--vvd-color-canvas-text);box-shadow:0 0 0 4px color-mix(in srgb,var(--vvd-color-cta-500),transparent 85%),inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:1px solid var(--focus-stroke-color, var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset, 0px))}.button:focus:not(.title-action).start,.button:focus:not(.title-action).end,.button.title-action:focus-visible.start,.button.title-action:focus-visible.end{border-width:3px}.button.current{border:1px solid var(--vvd-color-neutral-200)}.button.selected{border:1px solid var(--vvd-color-neutral-900)}';function _(r){const e=Object.prototype.toString.call(r);return r instanceof Date||typeof r=="object"&&e==="[object Date]"?new r.constructor(+r):typeof r=="number"||e==="[object Number]"||typeof r=="string"||e==="[object String]"?new Date(r):new Date(NaN)}function b(r,e){return r instanceof Date?new r.constructor(e):new Date(e)}function ne(r,e){const n=_(r);return isNaN(e)?b(r,NaN):(e&&n.setDate(n.getDate()+e),n)}const xe=6048e5,Ie=864e5,Le=6e4,He=36e5,Re=1e3;let Qe={};function L(){return Qe}function $(r,e){const n=L(),t=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=_(r),o=a.getDay(),s=(o<t?7:0)+o-t;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function I(r){return $(r,{weekStartsOn:1})}function _e(r){const e=_(r),n=e.getFullYear(),t=b(r,0);t.setFullYear(n+1,0,4),t.setHours(0,0,0,0);const a=I(t),o=b(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const s=I(o);return e.getTime()>=a.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function ue(r){const e=_(r);return e.setHours(0,0,0,0),e}function V(r){const e=_(r),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+r-+n}function Be(r,e){const n=ue(r),t=ue(e),a=+n-V(n),o=+t-V(t);return Math.round((a-o)/Ie)}function Ae(r){const e=_e(r),n=b(r,0);return n.setFullYear(e,0,4),n.setHours(0,0,0,0),I(n)}function Ve(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function Ge(r){if(!Ve(r)&&typeof r!="number")return!1;const e=_(r);return!isNaN(Number(e))}function Xe(r){const e=_(r),n=b(r,0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}const je={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ze=(r,e,n)=>{let t;const a=je[r];return typeof a=="string"?t=a:e===1?t=a.one:t=a.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+t:t+" ago":t};function K(r){return(e={})=>{const n=e.width?String(e.width):r.defaultWidth;return r.formats[n]||r.formats[r.defaultWidth]}}const Ke={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Je={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ue={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ze={date:K({formats:Ke,defaultWidth:"full"}),time:K({formats:Je,defaultWidth:"full"}),dateTime:K({formats:Ue,defaultWidth:"full"})},Se={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},et=(r,e,n,t)=>Se[r];function H(r){return(e,n)=>{const t=n?.context?String(n.context):"standalone";let a;if(t==="formatting"&&r.formattingValues){const s=r.defaultFormattingWidth||r.defaultWidth,i=n?.width?String(n.width):s;a=r.formattingValues[i]||r.formattingValues[s]}else{const s=r.defaultWidth,i=n?.width?String(n.width):r.defaultWidth;a=r.values[i]||r.values[s]}const o=r.argumentCallback?r.argumentCallback(e):e;return a[o]}}const tt={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},nt={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},rt={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},at={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ot={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},st={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},it=(r,e)=>{const n=Number(r),t=n%100;if(t>20||t<10)switch(t%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},ct={ordinalNumber:it,era:H({values:tt,defaultWidth:"wide"}),quarter:H({values:nt,defaultWidth:"wide",argumentCallback:r=>r-1}),month:H({values:rt,defaultWidth:"wide"}),day:H({values:at,defaultWidth:"wide"}),dayPeriod:H({values:ot,defaultWidth:"wide",formattingValues:st,defaultFormattingWidth:"wide"})};function R(r){return(e,n={})=>{const t=n.width,a=t&&r.matchPatterns[t]||r.matchPatterns[r.defaultMatchWidth],o=e.match(a);if(!o)return null;const s=o[0],i=t&&r.parsePatterns[t]||r.parsePatterns[r.defaultParseWidth],f=Array.isArray(i)?ut(i,h=>h.test(s)):lt(i,h=>h.test(s));let v;v=r.valueCallback?r.valueCallback(f):f,v=n.valueCallback?n.valueCallback(v):v;const m=e.slice(s.length);return{value:v,rest:m}}}function lt(r,e){for(const n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&e(r[n]))return n}function ut(r,e){for(let n=0;n<r.length;n++)if(e(r[n]))return n}function dt(r){return(e,n={})=>{const t=e.match(r.matchPattern);if(!t)return null;const a=t[0],o=e.match(r.parsePattern);if(!o)return null;let s=r.valueCallback?r.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const i=e.slice(a.length);return{value:s,rest:i}}}const ht=/^(\d+)(th|st|nd|rd)?/i,ft=/\d+/i,mt={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},pt={any:[/^b/i,/^(a|c)/i]},wt={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bt={any:[/1/i,/2/i,/3/i,/4/i]},yt={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},gt={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},xt={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_t={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},vt={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mt={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kt={ordinalNumber:dt({matchPattern:ht,parsePattern:ft,valueCallback:r=>parseInt(r,10)}),era:R({matchPatterns:mt,defaultMatchWidth:"wide",parsePatterns:pt,defaultParseWidth:"any"}),quarter:R({matchPatterns:wt,defaultMatchWidth:"wide",parsePatterns:bt,defaultParseWidth:"any",valueCallback:r=>r+1}),month:R({matchPatterns:yt,defaultMatchWidth:"wide",parsePatterns:gt,defaultParseWidth:"any"}),day:R({matchPatterns:xt,defaultMatchWidth:"wide",parsePatterns:_t,defaultParseWidth:"any"}),dayPeriod:R({matchPatterns:vt,defaultMatchWidth:"any",parsePatterns:Mt,defaultParseWidth:"any"})},ve={code:"en-US",formatDistance:ze,formatLong:Ze,formatRelative:et,localize:ct,match:kt,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Dt(r){const e=_(r);return Be(e,Xe(e))+1}function Me(r){const e=_(r),n=+I(e)-+Ae(e);return Math.round(n/xe)+1}function re(r,e){const n=_(r),t=n.getFullYear(),a=L(),o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,s=b(r,0);s.setFullYear(t+1,0,o),s.setHours(0,0,0,0);const i=$(s,e),f=b(r,0);f.setFullYear(t,0,o),f.setHours(0,0,0,0);const v=$(f,e);return n.getTime()>=i.getTime()?t+1:n.getTime()>=v.getTime()?t:t-1}function Pt(r,e){const n=L(),t=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=re(r,e),o=b(r,0);return o.setFullYear(a,0,t),o.setHours(0,0,0,0),$(o,e)}function ke(r,e){const n=_(r),t=+$(n,e)-+Pt(n,e);return Math.round(t/xe)+1}function u(r,e){const n=r<0?"-":"",t=Math.abs(r).toString().padStart(e,"0");return n+t}const C={y(r,e){const n=r.getFullYear(),t=n>0?n:1-n;return u(e==="yy"?t%100:t,e.length)},M(r,e){const n=r.getMonth();return e==="M"?String(n+1):u(n+1,2)},d(r,e){return u(r.getDate(),e.length)},a(r,e){const n=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(r,e){return u(r.getHours()%12||12,e.length)},H(r,e){return u(r.getHours(),e.length)},m(r,e){return u(r.getMinutes(),e.length)},s(r,e){return u(r.getSeconds(),e.length)},S(r,e){const n=e.length,t=r.getMilliseconds(),a=Math.trunc(t*Math.pow(10,n-3));return u(a,e.length)}},q={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},de={G:function(r,e,n){const t=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})}},y:function(r,e,n){if(e==="yo"){const t=r.getFullYear(),a=t>0?t:1-t;return n.ordinalNumber(a,{unit:"year"})}return C.y(r,e)},Y:function(r,e,n,t){const a=re(r,t),o=a>0?a:1-a;if(e==="YY"){const s=o%100;return u(s,2)}return e==="Yo"?n.ordinalNumber(o,{unit:"year"}):u(o,e.length)},R:function(r,e){const n=_e(r);return u(n,e.length)},u:function(r,e){const n=r.getFullYear();return u(n,e.length)},Q:function(r,e,n){const t=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(t);case"QQ":return u(t,2);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})}},q:function(r,e,n){const t=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(t);case"qq":return u(t,2);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})}},M:function(r,e,n){const t=r.getMonth();switch(e){case"M":case"MM":return C.M(r,e);case"Mo":return n.ordinalNumber(t+1,{unit:"month"});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})}},L:function(r,e,n){const t=r.getMonth();switch(e){case"L":return String(t+1);case"LL":return u(t+1,2);case"Lo":return n.ordinalNumber(t+1,{unit:"month"});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})}},w:function(r,e,n,t){const a=ke(r,t);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):u(a,e.length)},I:function(r,e,n){const t=Me(r);return e==="Io"?n.ordinalNumber(t,{unit:"week"}):u(t,e.length)},d:function(r,e,n){return e==="do"?n.ordinalNumber(r.getDate(),{unit:"date"}):C.d(r,e)},D:function(r,e,n){const t=Dt(r);return e==="Do"?n.ordinalNumber(t,{unit:"dayOfYear"}):u(t,e.length)},E:function(r,e,n){const t=r.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})}},e:function(r,e,n,t){const a=r.getDay(),o=(a-t.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return u(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(r,e,n,t){const a=r.getDay(),o=(a-t.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return u(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(r,e,n){const t=r.getDay(),a=t===0?7:t;switch(e){case"i":return String(a);case"ii":return u(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(t,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(t,{width:"short",context:"formatting"});case"iiii":default:return n.day(t,{width:"wide",context:"formatting"})}},a:function(r,e,n){const a=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(r,e,n){const t=r.getHours();let a;switch(t===12?a=q.noon:t===0?a=q.midnight:a=t/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(r,e,n){const t=r.getHours();let a;switch(t>=17?a=q.evening:t>=12?a=q.afternoon:t>=4?a=q.morning:a=q.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(r,e,n){if(e==="ho"){let t=r.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return C.h(r,e)},H:function(r,e,n){return e==="Ho"?n.ordinalNumber(r.getHours(),{unit:"hour"}):C.H(r,e)},K:function(r,e,n){const t=r.getHours()%12;return e==="Ko"?n.ordinalNumber(t,{unit:"hour"}):u(t,e.length)},k:function(r,e,n){let t=r.getHours();return t===0&&(t=24),e==="ko"?n.ordinalNumber(t,{unit:"hour"}):u(t,e.length)},m:function(r,e,n){return e==="mo"?n.ordinalNumber(r.getMinutes(),{unit:"minute"}):C.m(r,e)},s:function(r,e,n){return e==="so"?n.ordinalNumber(r.getSeconds(),{unit:"second"}):C.s(r,e)},S:function(r,e){return C.S(r,e)},X:function(r,e,n){const t=r.getTimezoneOffset();if(t===0)return"Z";switch(e){case"X":return fe(t);case"XXXX":case"XX":return E(t);case"XXXXX":case"XXX":default:return E(t,":")}},x:function(r,e,n){const t=r.getTimezoneOffset();switch(e){case"x":return fe(t);case"xxxx":case"xx":return E(t);case"xxxxx":case"xxx":default:return E(t,":")}},O:function(r,e,n){const t=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+he(t,":");case"OOOO":default:return"GMT"+E(t,":")}},z:function(r,e,n){const t=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+he(t,":");case"zzzz":default:return"GMT"+E(t,":")}},t:function(r,e,n){const t=Math.trunc(r.getTime()/1e3);return u(t,e.length)},T:function(r,e,n){const t=r.getTime();return u(t,e.length)}};function he(r,e=""){const n=r>0?"-":"+",t=Math.abs(r),a=Math.trunc(t/60),o=t%60;return o===0?n+String(a):n+String(a)+e+u(o,2)}function fe(r,e){return r%60===0?(r>0?"-":"+")+u(Math.abs(r)/60,2):E(r,e)}function E(r,e=""){const n=r>0?"-":"+",t=Math.abs(r),a=u(Math.trunc(t/60),2),o=u(t%60,2);return n+a+e+o}const me=(r,e)=>{switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},De=(r,e)=>{switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Tt=(r,e)=>{const n=r.match(/(P+)(p+)?/)||[],t=n[1],a=n[2];if(!a)return me(r,e);let o;switch(t){case"P":o=e.dateTime({width:"short"});break;case"PP":o=e.dateTime({width:"medium"});break;case"PPP":o=e.dateTime({width:"long"});break;case"PPPP":default:o=e.dateTime({width:"full"});break}return o.replace("{{date}}",me(t,e)).replace("{{time}}",De(a,e))},U={p:De,P:Tt},Yt=/^D+$/,Ot=/^Y+$/,Ct=["D","DD","YY","YYYY"];function Pe(r){return Yt.test(r)}function Te(r){return Ot.test(r)}function Z(r,e,n){const t=$t(r,e,n);if(console.warn(t),Ct.includes(r))throw new RangeError(t)}function $t(r,e,n){const t=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Et=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Nt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wt=/^'([^]*?)'?$/,qt=/''/g,Ft=/[a-zA-Z]/;function It(r,e,n){const t=L(),a=t.locale??ve,o=t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,s=t.weekStartsOn??t.locale?.options?.weekStartsOn??0,i=_(r);if(!Ge(i))throw new RangeError("Invalid time value");let f=e.match(Nt).map(m=>{const h=m[0];if(h==="p"||h==="P"){const O=U[h];return O(m,a.formatLong)}return m}).join("").match(Et).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const h=m[0];if(h==="'")return{isToken:!1,value:Lt(m)};if(de[h])return{isToken:!0,value:m};if(h.match(Ft))throw new RangeError("Format string contains an unescaped latin alphabet character `"+h+"`");return{isToken:!1,value:m}});a.localize.preprocessor&&(f=a.localize.preprocessor(i,f));const v={firstWeekContainsDate:o,weekStartsOn:s,locale:a};return f.map(m=>{if(!m.isToken)return m.value;const h=m.value;(Te(h)||Pe(h))&&Z(h,e,String(r));const O=de[h[0]];return O(i,h,a.localize,v)}).join("")}function Lt(r){const e=r.match(Wt);return e?e[1].replace(qt,"'"):r}function Ht(r,e){const n=_(r);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const t=e?.format??"extended";let a="";const o=t==="extended"?"-":"";{const s=u(n.getDate(),2),i=u(n.getMonth()+1,2);a=`${u(n.getFullYear(),4)}${o}${i}${o}${s}`}return a}function Rt(){return Object.assign({},L())}function Qt(r){let n=_(r).getDay();return n===0&&(n=7),n}function Bt(r,e){const n=e instanceof Date?b(e,0):new e(0);return n.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),n.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),n}const At=10;class Ye{subPriority=0;validate(e,n){return!0}}class Vt extends Ye{constructor(e,n,t,a,o){super(),this.value=e,this.validateValue=n,this.setValue=t,this.priority=a,o&&(this.subPriority=o)}validate(e,n){return this.validateValue(e,this.value,n)}set(e,n,t){return this.setValue(e,n,this.value,t)}}class Gt extends Ye{priority=At;subPriority=-1;set(e,n){return n.timestampIsSet?e:b(e,Bt(e,Date))}}class d{run(e,n,t,a){const o=this.parse(e,n,t,a);return o?{setter:new Vt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,n,t){return!0}}class Xt extends d{priority=140;parse(e,n,t){switch(n){case"G":case"GG":case"GGG":return t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"});case"GGGGG":return t.era(e,{width:"narrow"});case"GGGG":default:return t.era(e,{width:"wide"})||t.era(e,{width:"abbreviated"})||t.era(e,{width:"narrow"})}}set(e,n,t){return n.era=t,e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const g={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},P={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function x(r,e){return r&&{value:e(r.value),rest:r.rest}}function p(r,e){const n=e.match(r);return n?{value:parseInt(n[0],10),rest:e.slice(n[0].length)}:null}function T(r,e){const n=e.match(r);if(!n)return null;if(n[0]==="Z")return{value:0,rest:e.slice(1)};const t=n[1]==="+"?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:t*(a*He+o*Le+s*Re),rest:e.slice(n[0].length)}}function Oe(r){return p(g.anyDigitsSigned,r)}function y(r,e){switch(r){case 1:return p(g.singleDigit,e);case 2:return p(g.twoDigits,e);case 3:return p(g.threeDigits,e);case 4:return p(g.fourDigits,e);default:return p(new RegExp("^\\d{1,"+r+"}"),e)}}function G(r,e){switch(r){case 1:return p(g.singleDigitSigned,e);case 2:return p(g.twoDigitsSigned,e);case 3:return p(g.threeDigitsSigned,e);case 4:return p(g.fourDigitsSigned,e);default:return p(new RegExp("^-?\\d{1,"+r+"}"),e)}}function ae(r){switch(r){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ce(r,e){const n=e>0,t=n?e:1-e;let a;if(t<=50)a=r||100;else{const o=t+50,s=Math.trunc(o/100)*100,i=r>=o%100;a=r+s-(i?100:0)}return n?a:1-a}function $e(r){return r%400===0||r%4===0&&r%100!==0}class jt extends d{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,n,t){const a=o=>({year:o,isTwoDigitYear:n==="yy"});switch(n){case"y":return x(y(4,e),a);case"yo":return x(t.ordinalNumber(e,{unit:"year"}),a);default:return x(y(n.length,e),a)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,t){const a=e.getFullYear();if(t.isTwoDigitYear){const s=Ce(t.year,a);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const o=!("era"in n)||n.era===1?t.year:1-t.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}class zt extends d{priority=130;parse(e,n,t){const a=o=>({year:o,isTwoDigitYear:n==="YY"});switch(n){case"Y":return x(y(4,e),a);case"Yo":return x(t.ordinalNumber(e,{unit:"year"}),a);default:return x(y(n.length,e),a)}}validate(e,n){return n.isTwoDigitYear||n.year>0}set(e,n,t,a){const o=re(e,a);if(t.isTwoDigitYear){const i=Ce(t.year,o);return e.setFullYear(i,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),$(e,a)}const s=!("era"in n)||n.era===1?t.year:1-t.year;return e.setFullYear(s,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),$(e,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}class Kt extends d{priority=130;parse(e,n){return G(n==="R"?4:n.length,e)}set(e,n,t){const a=b(e,0);return a.setFullYear(t,0,4),a.setHours(0,0,0,0),I(a)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class Jt extends d{priority=130;parse(e,n){return G(n==="u"?4:n.length,e)}set(e,n,t){return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class Ut extends d{priority=120;parse(e,n,t){switch(n){case"Q":case"QQ":return y(n.length,e);case"Qo":return t.ordinalNumber(e,{unit:"quarter"});case"QQQ":return t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return t.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(e,{width:"wide",context:"formatting"})||t.quarter(e,{width:"abbreviated",context:"formatting"})||t.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=1&&n<=4}set(e,n,t){return e.setMonth((t-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class Zt extends d{priority=120;parse(e,n,t){switch(n){case"q":case"qq":return y(n.length,e);case"qo":return t.ordinalNumber(e,{unit:"quarter"});case"qqq":return t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return t.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(e,{width:"wide",context:"standalone"})||t.quarter(e,{width:"abbreviated",context:"standalone"})||t.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=1&&n<=4}set(e,n,t){return e.setMonth((t-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class St extends d{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,n,t){const a=o=>o-1;switch(n){case"M":return x(p(g.month,e),a);case"MM":return x(y(2,e),a);case"Mo":return x(t.ordinalNumber(e,{unit:"month"}),a);case"MMM":return t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return t.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(e,{width:"wide",context:"formatting"})||t.month(e,{width:"abbreviated",context:"formatting"})||t.month(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=11}set(e,n,t){return e.setMonth(t,1),e.setHours(0,0,0,0),e}}class en extends d{priority=110;parse(e,n,t){const a=o=>o-1;switch(n){case"L":return x(p(g.month,e),a);case"LL":return x(y(2,e),a);case"Lo":return x(t.ordinalNumber(e,{unit:"month"}),a);case"LLL":return t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return t.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(e,{width:"wide",context:"standalone"})||t.month(e,{width:"abbreviated",context:"standalone"})||t.month(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=11}set(e,n,t){return e.setMonth(t,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function tn(r,e,n){const t=_(r),a=ke(t,n)-e;return t.setDate(t.getDate()-a*7),t}class nn extends d{priority=100;parse(e,n,t){switch(n){case"w":return p(g.week,e);case"wo":return t.ordinalNumber(e,{unit:"week"});default:return y(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,t,a){return $(tn(e,t,a),a)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function rn(r,e){const n=_(r),t=Me(n)-e;return n.setDate(n.getDate()-t*7),n}class an extends d{priority=100;parse(e,n,t){switch(n){case"I":return p(g.week,e);case"Io":return t.ordinalNumber(e,{unit:"week"});default:return y(n.length,e)}}validate(e,n){return n>=1&&n<=53}set(e,n,t){return I(rn(e,t))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const on=[31,28,31,30,31,30,31,31,30,31,30,31],sn=[31,29,31,30,31,30,31,31,30,31,30,31];class cn extends d{priority=90;subPriority=1;parse(e,n,t){switch(n){case"d":return p(g.date,e);case"do":return t.ordinalNumber(e,{unit:"date"});default:return y(n.length,e)}}validate(e,n){const t=e.getFullYear(),a=$e(t),o=e.getMonth();return a?n>=1&&n<=sn[o]:n>=1&&n<=on[o]}set(e,n,t){return e.setDate(t),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class ln extends d{priority=90;subpriority=1;parse(e,n,t){switch(n){case"D":case"DD":return p(g.dayOfYear,e);case"Do":return t.ordinalNumber(e,{unit:"date"});default:return y(n.length,e)}}validate(e,n){const t=e.getFullYear();return $e(t)?n>=1&&n<=366:n>=1&&n<=365}set(e,n,t){return e.setMonth(0,t),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function oe(r,e,n){const t=L(),a=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,o=_(r),s=o.getDay(),f=(e%7+7)%7,v=7-a,m=e<0||e>6?e-(s+v)%7:(f+v)%7-(s+v)%7;return ne(o,m)}class un extends d{priority=90;parse(e,n,t){switch(n){case"E":case"EE":case"EEE":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return t.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,t,a){return e=oe(e,t,a),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class dn extends d{priority=90;parse(e,n,t,a){const o=s=>{const i=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+i};switch(n){case"e":case"ee":return x(y(n.length,e),o);case"eo":return x(t.ordinalNumber(e,{unit:"day"}),o);case"eee":return t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeeee":return t.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"})}}validate(e,n){return n>=0&&n<=6}set(e,n,t,a){return e=oe(e,t,a),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class hn extends d{priority=90;parse(e,n,t,a){const o=s=>{const i=Math.floor((s-1)/7)*7;return(s+a.weekStartsOn+6)%7+i};switch(n){case"c":case"cc":return x(y(n.length,e),o);case"co":return x(t.ordinalNumber(e,{unit:"day"}),o);case"ccc":return t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"ccccc":return t.day(e,{width:"narrow",context:"standalone"});case"cccccc":return t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return t.day(e,{width:"wide",context:"standalone"})||t.day(e,{width:"abbreviated",context:"standalone"})||t.day(e,{width:"short",context:"standalone"})||t.day(e,{width:"narrow",context:"standalone"})}}validate(e,n){return n>=0&&n<=6}set(e,n,t,a){return e=oe(e,t,a),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function fn(r,e){const n=_(r),t=Qt(n),a=e-t;return ne(n,a)}class mn extends d{priority=90;parse(e,n,t){const a=o=>o===0?7:o;switch(n){case"i":case"ii":return y(n.length,e);case"io":return t.ordinalNumber(e,{unit:"day"});case"iii":return x(t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),a);case"iiiii":return x(t.day(e,{width:"narrow",context:"formatting"}),a);case"iiiiii":return x(t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),a);case"iiii":default:return x(t.day(e,{width:"wide",context:"formatting"})||t.day(e,{width:"abbreviated",context:"formatting"})||t.day(e,{width:"short",context:"formatting"})||t.day(e,{width:"narrow",context:"formatting"}),a)}}validate(e,n){return n>=1&&n<=7}set(e,n,t){return e=fn(e,t),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class pn extends d{priority=80;parse(e,n,t){switch(n){case"a":case"aa":case"aaa":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return t.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,t){return e.setHours(ae(t),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class wn extends d{priority=80;parse(e,n,t){switch(n){case"b":case"bb":case"bbb":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return t.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,t){return e.setHours(ae(t),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class bn extends d{priority=80;parse(e,n,t){switch(n){case"B":case"BB":case"BBB":return t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return t.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(e,{width:"wide",context:"formatting"})||t.dayPeriod(e,{width:"abbreviated",context:"formatting"})||t.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,n,t){return e.setHours(ae(t),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class yn extends d{priority=70;parse(e,n,t){switch(n){case"h":return p(g.hour12h,e);case"ho":return t.ordinalNumber(e,{unit:"hour"});default:return y(n.length,e)}}validate(e,n){return n>=1&&n<=12}set(e,n,t){const a=e.getHours()>=12;return a&&t<12?e.setHours(t+12,0,0,0):!a&&t===12?e.setHours(0,0,0,0):e.setHours(t,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class gn extends d{priority=70;parse(e,n,t){switch(n){case"H":return p(g.hour23h,e);case"Ho":return t.ordinalNumber(e,{unit:"hour"});default:return y(n.length,e)}}validate(e,n){return n>=0&&n<=23}set(e,n,t){return e.setHours(t,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class xn extends d{priority=70;parse(e,n,t){switch(n){case"K":return p(g.hour11h,e);case"Ko":return t.ordinalNumber(e,{unit:"hour"});default:return y(n.length,e)}}validate(e,n){return n>=0&&n<=11}set(e,n,t){return e.getHours()>=12&&t<12?e.setHours(t+12,0,0,0):e.setHours(t,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class _n extends d{priority=70;parse(e,n,t){switch(n){case"k":return p(g.hour24h,e);case"ko":return t.ordinalNumber(e,{unit:"hour"});default:return y(n.length,e)}}validate(e,n){return n>=1&&n<=24}set(e,n,t){const a=t<=24?t%24:t;return e.setHours(a,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class vn extends d{priority=60;parse(e,n,t){switch(n){case"m":return p(g.minute,e);case"mo":return t.ordinalNumber(e,{unit:"minute"});default:return y(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,t){return e.setMinutes(t,0,0),e}incompatibleTokens=["t","T"]}class Mn extends d{priority=50;parse(e,n,t){switch(n){case"s":return p(g.second,e);case"so":return t.ordinalNumber(e,{unit:"second"});default:return y(n.length,e)}}validate(e,n){return n>=0&&n<=59}set(e,n,t){return e.setSeconds(t,0),e}incompatibleTokens=["t","T"]}class kn extends d{priority=30;parse(e,n){const t=a=>Math.trunc(a*Math.pow(10,-n.length+3));return x(y(n.length,e),t)}set(e,n,t){return e.setMilliseconds(t),e}incompatibleTokens=["t","T"]}class Dn extends d{priority=10;parse(e,n){switch(n){case"X":return T(P.basicOptionalMinutes,e);case"XX":return T(P.basic,e);case"XXXX":return T(P.basicOptionalSeconds,e);case"XXXXX":return T(P.extendedOptionalSeconds,e);case"XXX":default:return T(P.extended,e)}}set(e,n,t){return n.timestampIsSet?e:b(e,e.getTime()-V(e)-t)}incompatibleTokens=["t","T","x"]}class Pn extends d{priority=10;parse(e,n){switch(n){case"x":return T(P.basicOptionalMinutes,e);case"xx":return T(P.basic,e);case"xxxx":return T(P.basicOptionalSeconds,e);case"xxxxx":return T(P.extendedOptionalSeconds,e);case"xxx":default:return T(P.extended,e)}}set(e,n,t){return n.timestampIsSet?e:b(e,e.getTime()-V(e)-t)}incompatibleTokens=["t","T","X"]}class Tn extends d{priority=40;parse(e){return Oe(e)}set(e,n,t){return[b(e,t*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class Yn extends d{priority=20;parse(e){return Oe(e)}set(e,n,t){return[b(e,t),{timestampIsSet:!0}]}incompatibleTokens="*"}const On={G:new Xt,y:new jt,Y:new zt,R:new Kt,u:new Jt,Q:new Ut,q:new Zt,M:new St,L:new en,w:new nn,I:new an,d:new cn,D:new ln,E:new un,e:new dn,c:new hn,i:new mn,a:new pn,b:new wn,B:new bn,h:new yn,H:new gn,K:new xn,k:new _n,m:new vn,s:new Mn,S:new kn,X:new Dn,x:new Pn,t:new Tn,T:new Yn},Cn=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$n=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,En=/^'([^]*?)'?$/,Nn=/''/g,Wn=/\S/,qn=/[a-zA-Z]/;function Fn(r,e,n,t){const a=Rt(),o=a.locale??ve,s=a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,i=a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(e==="")return r===""?_(n):b(n,NaN);const f={firstWeekContainsDate:s,weekStartsOn:i,locale:o},v=[new Gt],m=e.match($n).map(l=>{const w=l[0];if(w in U){const k=U[w];return k(l,o.formatLong)}return l}).join("").match(Cn),h=[];for(let l of m){Te(l)&&Z(l,e,r),Pe(l)&&Z(l,e,r);const w=l[0],k=On[w];if(k){const{incompatibleTokens:ie}=k;if(Array.isArray(ie)){const ce=h.find(le=>ie.includes(le.token)||le.token===w);if(ce)throw new RangeError(`The format string mustn't contain \`${ce.fullToken}\` and \`${l}\` at the same time`)}else if(k.incompatibleTokens==="*"&&h.length>0)throw new RangeError(`The format string mustn't contain \`${l}\` and any other token at the same time`);h.push({token:w,fullToken:l});const z=k.run(r,l,o.match,f);if(!z)return b(n,NaN);v.push(z.setter),r=z.rest}else{if(w.match(qn))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");if(l==="''"?l="'":w==="'"&&(l=In(l)),r.indexOf(l)===0)r=r.slice(l.length);else return b(n,NaN)}}if(r.length>0&&Wn.test(r))return b(n,NaN);const O=v.map(l=>l.priority).sort((l,w)=>w-l).filter((l,w,k)=>k.indexOf(l)===w).map(l=>v.filter(w=>w.priority===l).sort((w,k)=>k.subPriority-w.subPriority)).map(l=>l[0]);let W=_(n);if(isNaN(W.getTime()))return b(n,NaN);const se={};for(const l of O){if(!l.validate(W,f))return b(n,NaN);const w=l.set(W,se,f);Array.isArray(w)?(W=w[0],Object.assign(se,w[1])):W=w}return b(n,W)}function In(r){return r.match(En)[1].replace(Nn,"'")}const X=r=>Ht(r,{}),S=(r=new Date)=>X(r),j=r=>{const[e,n,t]=r.split("-");return new Date(parseInt(e),parseInt(n)-1,parseInt(t))},A=(r,e)=>{const n=j(r),t=new Date(n);return t.setDate(t.getDate()+e),X(t)},ee=(r,e)=>r>e?1:r<e?-1:0,Ln=r=>r.length===3,Hn=r=>r.every(e=>/^\d+$/.test(e)),Rn=([r,e,n])=>{const t=parseInt(r),a=parseInt(e)-1,o=parseInt(n),s=new Date(t,a,o);return s.getFullYear()===t&&s.getMonth()===a&&s.getDate()===o},Ee=r=>{const e=r.split("-");return Ln(e)&&Hn(e)&&Rn(e)},Qn=(r,e)=>{const n=j(r);return It(n,e.dateFormat)},Bn=(r,e)=>{const n=Fn(r,e.dateFormat,new Date);return X(n)},J=(r=new Date)=>({month:r.getMonth(),year:r.getFullYear()}),Q=r=>{const e=j(r);return{month:e.getMonth(),year:e.getFullYear()}},M=({month:r,year:e},n)=>{const t=new Date(e,r);return t.setMonth(t.getMonth()+n),{month:t.getMonth(),year:t.getFullYear()}},N=(r,e)=>r.year===e.year?r.month-e.month:r.year-e.year,B=(r,e)=>N(r,e)===0,Ne=({month:r,year:e})=>`${e.toString().padStart(4,"0")}-${(r+1).toString().padStart(2,"0")}`,pe=r=>j(r).getFullYear(),We=4,An=(r,e)=>{const n=[];let t=[];for(let a=0;a<12;a++){const o={month:a,year:r};t.push({label:e.months.shorthand[a],monthName:e.months.name[a],month:o}),t.length===We&&(n.push(t),t=[])}return n},Vn=r=>{const e=r.firstDayOfWeek,n=a=>(a+e)%7,t=[];for(let a=0;a<7;a++)t.push({name:r.weekdays.name[n(a)],shortName:r.weekdays.shorthand[n(a)]});return t},Gn=(r,e)=>({date:X(r),label:`${r.getDate()}`,isOutsideMonth:e});function Xn(r,e){return r<0||r>=e}const jn=({month:r,year:e},n)=>{const t=[],a=new Date(e,r,1),o=new Date(e,r+1,0),s=n(a),i=o.getDate(),f=7-n(o),v=i+s+f;let m=[];for(let h=0;h<v;h++){const O=h-s;m.push(Gn(ne(a,O),Xn(O,i))),m.length===7&&(t.push(m),m=[])}return t},zn=(r,e)=>{const{firstDayOfWeek:n}=e,t=a=>(a.getDay()-n+7)%7;return{weekdays:Vn(e),grid:jn(r,t)}};var Kn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,Y=(r,e,n,t)=>{for(var a=t>1?void 0:t?Jn(e,n):e,o=r.length-1,s;o>=0;o--)(s=r[o])&&(a=(t?s(e,n,a):s(a))||a);return t&&a&&Kn(e,n,a),a};const Un=r=>{class e extends r{constructor(...t){super(...t),this._selectedMonth=J(),this._currentDate=S(),this._currentMonth=J(),this._numCalendars=1,this._hideDatesOutsideMonth=!1,this._lastFocussedDate=null,this._monthPickerYear=null,this._lastFocussedMonth=null,this.value=""}_adjustSelectedMonthToEnsureVisibilityOf(t){const a=Q(t),o=this._selectedMonth,s=M(this._selectedMonth,this._numCalendars-1);return N(a,o)<0?(this._selectedMonth=a,!0):N(a,s)>0?(this._selectedMonth=M(a,1-this._numCalendars),!0):!1}_isDateInValidRange(t){return(!this._resolvedMinDate||ee(t,this._resolvedMinDate)>=0)&&(!this._resolvedMaxDate||ee(t,this._resolvedMaxDate)<=0)}#e(t){return this._resolvedMaxDate&&N(t,Q(this._resolvedMaxDate))>0}#t(t){return this._resolvedMinDate&&N(t,Q(this._resolvedMinDate))<0}_isMonthInValidRange(t){return!(this.#t(t)||this.#e(t))}_closePopup(t=!0){super._closePopup(t),this._monthPickerYear=null}_onPickerButtonClick(){if(super._onPickerButtonClick(),this._popupOpen){c.DOM.processUpdates();const t=this._tabbableDate;t&&this.shadowRoot.querySelector(`[data-date="${t}"]`).focus()}}_onTitleActionClick(){this._inMonthPicker?this._monthPickerYear=null:this._monthPickerYear=this._selectedMonth.year}get _isPrevYearDisabled(){const a=(this._inMonthPicker?this._monthPickerYear:this._selectedMonth.year)-1;return this._resolvedMinDate&&a<pe(this._resolvedMinDate)}_onPrevYearClick(){this._inMonthPicker?this._monthPickerYear=this._monthPickerYear-1:this._selectedMonth={year:this._selectedMonth.year-1,month:this._selectedMonth.month}}get _isNextYearDisabled(){const a=(this._inMonthPicker?this._monthPickerYear:this._selectedMonth.year)+1;return this._resolvedMaxDate&&a>pe(this._resolvedMaxDate)}_onNextYearClick(){this._inMonthPicker?this._monthPickerYear=this._monthPickerYear+1:this._selectedMonth={year:this._selectedMonth.year+1,month:this._selectedMonth.month}}get _isPrevMonthDisabled(){return this.#t(M(this._selectedMonth,-1))}_onPrevMonthClick(){this._selectedMonth=M(this._selectedMonth,-1)}get _isNextMonthDisabled(){return this.#e(M(this._selectedMonth,1))}_onNextMonthClick(){this._selectedMonth=M(this._selectedMonth,1)}get _segments(){const t=[];if(this._inMonthPicker)t.push({id:0,type:"month-picker",title:`${this._monthPickerYear}`,titleClickable:!0,titleAriaLabel:this.locale.calendarPicker.showCalendarForMonthLabel(`${this.locale.calendarPicker.months.name[this._selectedMonth.month]} ${this._selectedMonth.year}`),prevYearButton:!0,nextYearButton:!0,months:An(this._monthPickerYear,this.locale.calendarPicker)});else for(let a=0;a<this._numCalendars;a++){const o=M(this._selectedMonth,a),s=this._numCalendars===1,i=a===0,f=a===this._numCalendars-1;t.push({id:a,type:"calendar",title:`${this.locale.calendarPicker.months.name[o.month]} ${o.year}`,titleClickable:s,titleAriaLabel:this.locale.calendarPicker.changeMonthLabel(`${this.locale.calendarPicker.months.name[o.month]} ${o.year}`),prevYearButton:i&&s,prevMonthButton:i,nextMonthButton:f,nextYearButton:f&&s,calendar:zn(o,this.locale.calendarPicker)})}return t}_isDateSelected(t){return!1}_isDateInSelectedRange(t){return!1}_isDateRangeStart(t){return!1}_isDateRangeEnd(t){return!1}_onDateMouseEnter(t){}_onDateMouseLeave(t){}_onDateKeydown(t,a){let o=null;return a.key==="ArrowUp"?o=A(t,-7):a.key==="ArrowDown"?o=A(t,7):a.key==="ArrowLeft"?o=A(t,-1):a.key==="ArrowRight"&&(o=A(t,1)),o&&this._isDateInValidRange(o)?(this._adjustSelectedMonthToEnsureVisibilityOf(o)&&c.DOM.processUpdates(),this._dialogEl.querySelector(`[data-date="${o}"]`).focus(),!1):!0}_onDateFocus(t){this._lastFocussedDate=t}get _tabbableDate(){const t=this._segments.filter(i=>i.type==="calendar").flatMap(i=>i.calendar.grid.flat().map(f=>f.date)),a=[this._lastFocussedDate,...this._getSelectedDates(),S(),...t],o=this._selectedMonth,s=M(this._selectedMonth,this._numCalendars-1);return a.find(i=>i&&N(Q(i),o)>=0&&N(Q(i),s)<=0&&this._isDateInValidRange(i))??null}get _inMonthPicker(){return this._monthPickerYear!==null}_onMonthClick(t){this._selectedMonth=t,this._monthPickerYear=null}_onMonthKeydown(t,a){let o=null;return a.key==="ArrowUp"?o=M(t,-4):a.key==="ArrowDown"?o=M(t,We):a.key==="ArrowLeft"?o=M(t,-1):a.key==="ArrowRight"&&(o=M(t,1)),o&&this._isMonthInValidRange(o)?(o.year!==this._monthPickerYear&&(this._monthPickerYear=o.year,c.DOM.processUpdates()),this._dialogEl.querySelector(`[data-month="${Ne(o)}"]`).focus(),!1):!0}_onMonthFocus(t){this._lastFocussedMonth=t}get _tabbableMonth(){const t=this._segments.filter(o=>o.type==="month-picker").flatMap(o=>o.months.flat().map(s=>s.month));return[this._lastFocussedMonth,this._selectedMonth,J(),...t].find(o=>o&&o.year===this._monthPickerYear&&this._isMonthInValidRange(o))??null}}return Y([c.observable],e.prototype,"_selectedMonth",2),Y([c.volatile],e.prototype,"_isPrevYearDisabled",1),Y([c.volatile],e.prototype,"_isNextYearDisabled",1),Y([c.observable],e.prototype,"_numCalendars",2),Y([c.observable],e.prototype,"_lastFocussedDate",2),Y([c.volatile],e.prototype,"_tabbableDate",1),Y([c.observable],e.prototype,"_monthPickerYear",2),Y([c.observable],e.prototype,"_lastFocussedMonth",2),Y([c.volatile],e.prototype,"_tabbableMonth",1),e};var Zn=Object.defineProperty,we=(r,e,n,t)=>{for(var a=void 0,o=r.length-1,s;o>=0;o--)(s=r[o])&&(a=s(e,n,a)||a);return a&&Zn(e,n,a),a};const te={fromView:r=>r&&Ee(r)?r:"",toView(r){return r}},Sn=r=>{class e extends r{minChanged(t,a){this.proxy instanceof HTMLInputElement&&(this.proxy.min=a,this.validate())}get _resolvedMinDate(){return this.min}maxChanged(t,a){this.proxy instanceof HTMLInputElement&&(this.proxy.max=a,this.validate())}get _resolvedMaxDate(){return this.max}constructor(...t){super(...t),this.min="",this.max=""}}return we([c.attr({converter:te})],e.prototype,"min"),we([c.attr({converter:te})],e.prototype,"max"),e};function er(r){const e=r.tagFor(qe.Button);return c.html`<div class="header" tabindex="-1">
|
|
2
|
+
${D.when(n=>n.prevYearButton,c.html`
|
|
3
|
+
<${e}
|
|
4
|
+
tabindex='1'
|
|
5
|
+
class='vwc-button'
|
|
6
|
+
size='super-condensed'
|
|
7
|
+
icon='${(n,t)=>t.parent._inMonthPicker?"chevron-left-line":"double-chevron-left-line"}'
|
|
8
|
+
aria-label='${(n,t)=>t.parent.locale.calendarPicker.prevYearLabel}'
|
|
9
|
+
?disabled='${(n,t)=>t.parent._isPrevYearDisabled}'
|
|
10
|
+
@click='${(n,t)=>t.parent._onPrevYearClick()}'
|
|
11
|
+
></${e}>
|
|
12
|
+
`)}
|
|
13
|
+
${D.when(n=>n.prevMonthButton,c.html`
|
|
14
|
+
<${e}
|
|
15
|
+
tabindex='1'
|
|
16
|
+
class='vwc-button'
|
|
17
|
+
size='super-condensed'
|
|
18
|
+
icon='chevron-left-line'
|
|
19
|
+
aria-label='${(n,t)=>t.parent.locale.calendarPicker.prevMonthLabel}'
|
|
20
|
+
?disabled='${(n,t)=>t.parent._isPrevMonthDisabled}'
|
|
21
|
+
@click='${(n,t)=>t.parent._onPrevMonthClick()}'
|
|
22
|
+
></${e}>
|
|
23
|
+
`)}
|
|
24
|
+
<div class="title">
|
|
25
|
+
${D.when(n=>n.titleClickable,c.html`
|
|
26
|
+
<button
|
|
27
|
+
tabindex="1"
|
|
28
|
+
id="${n=>`grid-label-${n.id}`}"
|
|
29
|
+
class="title-action button"
|
|
30
|
+
aria-live="polite"
|
|
31
|
+
aria-label="${n=>n.titleAriaLabel}"
|
|
32
|
+
@click="${(n,t)=>t.parent._onTitleActionClick()}"
|
|
33
|
+
>
|
|
34
|
+
${n=>n.title}
|
|
35
|
+
</button>
|
|
36
|
+
`)}
|
|
37
|
+
${D.when(n=>!n.titleClickable,c.html`
|
|
38
|
+
<div
|
|
39
|
+
id="${n=>`grid-label-${n.id}`}"
|
|
40
|
+
class="title-action"
|
|
41
|
+
aria-live="polite"
|
|
42
|
+
>
|
|
43
|
+
${n=>n.title}
|
|
44
|
+
</div>
|
|
45
|
+
`)}
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
${D.when(n=>n.nextMonthButton,c.html`
|
|
49
|
+
<${e}
|
|
50
|
+
tabindex='1'
|
|
51
|
+
class='vwc-button'
|
|
52
|
+
size='super-condensed'
|
|
53
|
+
icon='chevron-right-line'
|
|
54
|
+
aria-label='${(n,t)=>t.parent.locale.calendarPicker.nextMonthLabel}'
|
|
55
|
+
?disabled='${(n,t)=>t.parent._isNextMonthDisabled}'
|
|
56
|
+
@click='${(n,t)=>t.parent._onNextMonthClick()}'
|
|
57
|
+
></${e}>
|
|
58
|
+
`)}
|
|
59
|
+
${D.when(n=>n.nextYearButton,c.html`
|
|
60
|
+
<${e}
|
|
61
|
+
tabindex='1'
|
|
62
|
+
class='vwc-button'
|
|
63
|
+
size='super-condensed'
|
|
64
|
+
icon='${(n,t)=>t.parent._inMonthPicker?"chevron-right-line":"double-chevron-right-line"}'
|
|
65
|
+
aria-label='${(n,t)=>t.parent.locale.calendarPicker.nextYearLabel}'
|
|
66
|
+
?disabled='${(n,t)=>t.parent._isNextYearDisabled}'
|
|
67
|
+
@click='${(n,t)=>t.parent._onNextYearClick()}'
|
|
68
|
+
></${e}>
|
|
69
|
+
`)}
|
|
70
|
+
</div>`}function tr(r){const e=r.tagFor(be.Divider),n=r.tagFor(ye.VisuallyHidden);return c.html`
|
|
71
|
+
<div
|
|
72
|
+
class='calendar'
|
|
73
|
+
role='grid'
|
|
74
|
+
aria-labelledby='${t=>`grid-label-${t.id}`}'
|
|
75
|
+
>
|
|
76
|
+
<div class='calendar-weekdays' role='row'>
|
|
77
|
+
${F.repeat(t=>t.calendar.weekdays,c.html`
|
|
78
|
+
<div
|
|
79
|
+
class="calendar-weekday"
|
|
80
|
+
role="columnheader"
|
|
81
|
+
aria-label="${t=>t.name}"
|
|
82
|
+
>
|
|
83
|
+
${t=>t.shortName}
|
|
84
|
+
</div>
|
|
85
|
+
`)}
|
|
86
|
+
</div>
|
|
87
|
+
<${e} class='calendar-separator' role='presentation'></${e}>
|
|
88
|
+
${F.repeat(t=>t.calendar.grid,c.html` <div class="calendar-week" role="row">
|
|
89
|
+
${F.repeat(t=>t,c.html`
|
|
90
|
+
${D.when((t,a)=>a.parentContext.parentContext.parent._hideDatesOutsideMonth&&t.isOutsideMonth,c.html`<div class="calendar-day"></div>`)}
|
|
91
|
+
${D.when((t,a)=>!a.parentContext.parentContext.parent._hideDatesOutsideMonth||!t.isOutsideMonth,c.html` <span role="gridcell">
|
|
92
|
+
<button
|
|
93
|
+
class="${(t,a)=>ge.classNames("calendar-day","button",["current",t.date===a.parentContext.parentContext.parent._currentDate],["selected",a.parentContext.parentContext.parent._isDateSelected(t.date)],["range",a.parentContext.parentContext.parent._isDateInSelectedRange(t.date)],["start",a.parentContext.parentContext.parent._isDateRangeStart(t.date)],["end",a.parentContext.parentContext.parent._isDateRangeEnd(t.date)],["outside-month",t.isOutsideMonth])}"
|
|
94
|
+
?disabled="${(t,a)=>!a.parentContext.parentContext.parent._isDateInValidRange(t.date)}"
|
|
95
|
+
tabindex="${(t,a)=>t.date===a.parentContext.parentContext.parent._tabbableDate?1:-1}"
|
|
96
|
+
data-date="${t=>t.date}"
|
|
97
|
+
@click="${(t,a)=>a.parentContext.parentContext.parent._onDateClick(t.date)}"
|
|
98
|
+
@focus="${(t,a)=>a.parentContext.parentContext.parent._onDateFocus(t.date)}"
|
|
99
|
+
@mouseenter="${(t,a)=>a.parentContext.parentContext.parent._onDateMouseEnter(t.date)}"
|
|
100
|
+
@mouseleave="${(t,a)=>a.parentContext.parentContext.parent._onDateMouseLeave(t.date)}"
|
|
101
|
+
@keydown="${(t,a)=>a.parentContext.parentContext.parent._onDateKeydown(t.date,a.event)}"
|
|
102
|
+
>
|
|
103
|
+
${t=>t.label}
|
|
104
|
+
<${n}>${(t,a)=>{const o=a.parentContext.parentContext.parent,s=[];return t.date===o._currentDate&&s.push(o.locale.calendarPicker.todayLabel),o._isDateAriaSelected(t.date)&&s.push(o.locale.calendarPicker.selectedLabel),s.join(" ")}}</${n}>
|
|
105
|
+
</button>
|
|
106
|
+
</span>`)}
|
|
107
|
+
</div>
|
|
108
|
+
`)}
|
|
109
|
+
</div>`)}`}function nr(r){const e=r.tagFor(be.Divider),n=r.tagFor(ye.VisuallyHidden);return c.html`
|
|
110
|
+
<${e}
|
|
111
|
+
class='months-separator'
|
|
112
|
+
role='presentation'
|
|
113
|
+
></${e}>
|
|
114
|
+
<div
|
|
115
|
+
class='month-grid'
|
|
116
|
+
role='grid'
|
|
117
|
+
aria-labelledby='grid-label'
|
|
118
|
+
>
|
|
119
|
+
${F.repeat(t=>t.months,c.html`
|
|
120
|
+
<div class="months-row" role="row">
|
|
121
|
+
${F.repeat(t=>t,c.html`
|
|
122
|
+
<span role="gridcell">
|
|
123
|
+
<button
|
|
124
|
+
class="${(t,a)=>ge.classNames("month","button",["current",B(t.month,a.parentContext.parentContext.parent._currentMonth)],["selected",B(t.month,a.parentContext.parentContext.parent._selectedMonth)])}"
|
|
125
|
+
tabindex="${(t,a)=>a.parentContext.parentContext.parent._tabbableMonth&&B(t.month,a.parentContext.parentContext.parent._tabbableMonth)?1:-1}"
|
|
126
|
+
aria-label="${t=>t.monthName}"
|
|
127
|
+
data-month="${t=>Ne(t.month)}"
|
|
128
|
+
?disabled="${(t,a)=>!a.parentContext.parentContext.parent._isMonthInValidRange(t.month)}"
|
|
129
|
+
@click="${(t,a)=>a.parentContext.parentContext.parent._onMonthClick(t.month)}"
|
|
130
|
+
@focus="${(t,a)=>a.parentContext.parentContext.parent._onMonthFocus(t.month)}"
|
|
131
|
+
@keydown="${(t,a)=>a.parentContext.parentContext.parent._onMonthKeydown(t.month,a.event)}"
|
|
132
|
+
>
|
|
133
|
+
${t=>t.label}
|
|
134
|
+
<${n}>${(t,a)=>{const o=a.parentContext.parentContext.parent,s=[];return B(t.month,o._currentMonth)&&s.push(o.locale.calendarPicker.currentLabel),B(t.month,o._selectedMonth)&&s.push(o.locale.calendarPicker.selectedLabel),s.join(" ")}}</${n}>
|
|
135
|
+
</button>
|
|
136
|
+
</span>
|
|
137
|
+
`)}
|
|
138
|
+
</div>
|
|
139
|
+
`)}
|
|
140
|
+
</div>`}const rr=r=>c.html`
|
|
141
|
+
<div class="segments">
|
|
142
|
+
${F.repeat(e=>e._segments,c.html` <div class="segment">
|
|
143
|
+
${er(r)}
|
|
144
|
+
${D.when(e=>e.type==="month-picker",c.html`${nr(r)}`)}
|
|
145
|
+
${D.when(e=>e.type==="calendar",c.html`${tr(r)}`)}
|
|
146
|
+
</div>`)}
|
|
147
|
+
</div>
|
|
148
|
+
`;exports.CalendarPicker=Un;exports.CalendarPickerTemplate=rr;exports.MinMaxCalendarPicker=Sn;exports.ValidDateFilter=te;exports.calendarStyles=Fe;exports.compareDateStr=ee;exports.currentDateStr=S;exports.formatPresentationDate=Qn;exports.isValidDateStr=Ee;exports.parsePresentationDate=Bn;
|