@vonage/vivid 5.15.1 → 5.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/definition.cjs +7 -207
- package/accordion/definition.js +2 -199
- package/accordion/index.cjs +4 -4
- package/accordion/index.js +93 -127
- package/accordion-item/definition.cjs +6 -146
- package/accordion-item/definition.js +2 -139
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +6 -2
- package/action-group/definition.cjs +5 -69
- package/action-group/definition.js +1 -62
- package/action-group/index.cjs +4 -4
- package/action-group/index.js +16 -46
- package/alert/definition.cjs +6 -201
- package/alert/definition.js +2 -194
- package/alert/index.cjs +15 -15
- package/alert/index.js +90 -136
- package/audio-player/definition.cjs +6 -459
- package/audio-player/definition.js +2 -452
- package/audio-player/index.cjs +49 -49
- package/audio-player/index.js +234 -302
- package/avatar/definition.cjs +6 -117
- package/avatar/definition.js +2 -110
- package/avatar/index.cjs +14 -14
- package/avatar/index.js +44 -84
- package/badge/definition.cjs +6 -85
- package/badge/definition.js +2 -78
- package/badge/index.cjs +4 -4
- package/badge/index.js +21 -65
- package/banner/definition.cjs +6 -160
- package/banner/definition.js +2 -153
- package/banner/index.cjs +13 -13
- package/banner/index.js +76 -109
- package/breadcrumb/definition.cjs +5 -97
- package/breadcrumb/definition.js +1 -90
- package/breadcrumb/index.cjs +4 -4
- package/breadcrumb/index.js +33 -59
- package/breadcrumb-item/definition.cjs +7 -47
- package/breadcrumb-item/definition.js +3 -40
- package/breadcrumb-item/index.cjs +5 -5
- package/breadcrumb-item/index.js +20 -32
- package/bundled/affix.cjs +10 -10
- package/bundled/affix.js +44 -57
- package/bundled/anchored.cjs +3 -3
- package/bundled/anchored.js +47 -65
- package/bundled/aria.cjs +1 -1
- package/bundled/aria.js +6 -6
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +17 -28
- package/bundled/base-color-picker.cjs +10 -10
- package/bundled/base-color-picker.js +115 -197
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +29 -56
- package/bundled/breadcrumb-item.cjs +1 -1
- package/bundled/breadcrumb-item.js +11 -20
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +65 -100
- package/bundled/calendar-event.cjs +1 -1
- package/bundled/calendar-event.js +11 -34
- package/bundled/calendar-picker.template.cjs +77 -77
- package/bundled/calendar-picker.template.js +2881 -3345
- package/bundled/char-count.cjs +7 -7
- package/bundled/char-count.js +31 -46
- package/bundled/children.cjs +1 -1
- package/bundled/children.js +27 -45
- package/bundled/class-names.cjs +1 -1
- package/bundled/class-names.js +8 -8
- package/bundled/data-grid.options.cjs +1 -1
- package/bundled/data-grid.options.js +22 -26
- package/bundled/decorate.cjs +1 -0
- package/bundled/decorate.js +9 -0
- package/bundled/definition.cjs +1 -39
- package/bundled/definition.js +5 -122
- package/bundled/definition10.cjs +27 -69
- package/bundled/definition10.js +173 -352
- package/bundled/definition11.cjs +19 -12
- package/bundled/definition11.js +77 -92
- package/bundled/definition12.cjs +11 -11
- package/bundled/definition12.js +122 -216
- package/bundled/definition13.cjs +18 -9
- package/bundled/definition13.js +76 -42
- package/bundled/definition14.cjs +10 -1
- package/bundled/definition14.js +28 -19
- package/bundled/definition15.cjs +73 -5
- package/bundled/definition15.js +194 -28
- package/bundled/definition16.cjs +5 -30
- package/bundled/definition16.js +16 -79
- package/bundled/definition17.cjs +13 -19
- package/bundled/definition17.js +81 -102
- package/bundled/definition18.cjs +12 -13
- package/bundled/definition18.js +67 -135
- package/bundled/definition19.cjs +48 -48
- package/bundled/definition19.js +365 -683
- package/bundled/definition2.cjs +8 -8
- package/bundled/definition2.js +79 -122
- package/bundled/definition20.cjs +5 -20
- package/bundled/definition20.js +11 -106
- package/bundled/definition21.cjs +20 -5
- package/bundled/definition21.js +57 -18
- package/bundled/definition22.cjs +16 -16
- package/bundled/definition22.js +79 -140
- package/bundled/definition3.cjs +1 -29
- package/bundled/definition3.js +183 -194
- package/bundled/definition4.cjs +39 -6
- package/bundled/definition4.js +71 -41
- package/bundled/definition5.cjs +30 -1
- package/bundled/definition5.js +48 -346
- package/bundled/definition6.cjs +28 -30
- package/bundled/definition6.js +110 -264
- package/bundled/definition7.cjs +6 -30
- package/bundled/definition7.js +22 -288
- package/bundled/definition8.cjs +13 -18
- package/bundled/definition8.js +150 -132
- package/bundled/definition9.cjs +29 -13
- package/bundled/definition9.js +157 -232
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +56 -88
- package/bundled/dialog.cjs +1 -0
- package/bundled/dialog.js +6 -0
- package/bundled/divider.cjs +1 -1
- package/bundled/divider.js +16 -33
- package/bundled/dom.cjs +1 -1
- package/bundled/dom.js +5 -5
- package/bundled/enums.cjs +1 -1
- package/bundled/enums.js +16 -9
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +953 -1238
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +165 -318
- package/bundled/form-element.cjs +1 -1
- package/bundled/form-element.js +33 -55
- package/bundled/host-semantics.cjs +1 -1
- package/bundled/host-semantics.js +46 -69
- package/bundled/key-codes.cjs +1 -1
- package/bundled/key-codes.js +4 -16
- package/bundled/linkable.cjs +6 -6
- package/bundled/linkable.js +25 -45
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +176 -351
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +451 -564
- package/bundled/mixins.cjs +20 -20
- package/bundled/mixins.js +162 -210
- package/bundled/normalize.cjs +1 -1
- package/bundled/normalize.js +6 -6
- package/bundled/numbers.cjs +1 -1
- package/bundled/numbers.js +9 -11
- package/bundled/picker-field.template.cjs +23 -23
- package/bundled/picker-field.template.js +108 -171
- package/bundled/playbackRates.cjs +1 -1
- package/bundled/playbackRates.js +10 -10
- package/bundled/ref.cjs +1 -1
- package/bundled/ref.js +10 -14
- package/bundled/repeat.cjs +1 -1
- package/bundled/repeat.js +421 -552
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +26 -29
- package/bundled/single-date-picker.cjs +1 -1
- package/bundled/single-date-picker.js +23 -38
- package/bundled/single-value-picker.cjs +1 -1
- package/bundled/single-value-picker.js +58 -86
- package/bundled/slider.template.cjs +13 -13
- package/bundled/slider.template.js +67 -78
- package/bundled/slottable-request.cjs +4 -4
- package/bundled/slottable-request.js +1937 -2904
- package/bundled/slotted.cjs +1 -1
- package/bundled/slotted.js +47 -97
- package/bundled/strings.cjs +1 -1
- package/bundled/strings.js +6 -6
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +4 -4
- package/bundled/time-selection-picker.template.cjs +26 -26
- package/bundled/time-selection-picker.template.js +355 -552
- package/bundled/trapped-focus.cjs +1 -1
- package/bundled/trapped-focus.js +18 -25
- package/bundled/vivid-element.cjs +4 -5
- package/bundled/vivid-element.js +1781 -2806
- package/bundled/when.cjs +1 -1
- package/bundled/when.js +10 -10
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +15 -31
- package/bundled/with-error-text.cjs +1 -1
- package/bundled/with-error-text.js +25 -38
- package/bundled/with-success-text.cjs +1 -1
- package/bundled/with-success-text.js +8 -15
- package/button/definition.cjs +6 -14
- package/button/definition.js +3 -4
- package/button/index.cjs +1 -1
- package/button/index.js +6 -2
- package/calendar/definition.cjs +5 -358
- package/calendar/definition.js +1 -351
- package/calendar/index.cjs +20 -20
- package/calendar/index.js +346 -401
- package/calendar-event/definition.cjs +6 -58
- package/calendar-event/definition.js +2 -51
- package/calendar-event/index.cjs +7 -7
- package/calendar-event/index.js +25 -41
- package/card/definition.cjs +6 -194
- package/card/definition.js +2 -187
- package/card/index.cjs +34 -34
- package/card/index.js +80 -133
- package/checkbox/definition.cjs +6 -209
- package/checkbox/definition.js +2 -202
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +6 -2
- package/color-picker/definition.cjs +6 -1175
- package/color-picker/definition.js +2 -1168
- package/color-picker/index.cjs +94 -94
- package/color-picker/index.js +605 -737
- package/combobox/definition.cjs +6 -647
- package/combobox/definition.js +2 -640
- package/combobox/index.cjs +37 -37
- package/combobox/index.js +254 -458
- package/contextual-help/definition.cjs +6 -63
- package/contextual-help/definition.js +2 -56
- package/contextual-help/index.cjs +1 -1
- package/contextual-help/index.js +6 -2
- package/country/definition.cjs +6 -340
- package/country/definition.js +2 -333
- package/country/index.cjs +6 -6
- package/country/index.js +1209 -308
- package/custom-elements.json +513 -851
- package/data-grid/definition.cjs +10 -2350
- package/data-grid/definition.js +2 -2339
- package/data-grid/index.cjs +61 -61
- package/data-grid/index.js +642 -992
- package/date-picker/definition.cjs +6 -152
- package/date-picker/definition.js +2 -145
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +66 -114
- package/date-range-picker/definition.cjs +6 -467
- package/date-range-picker/definition.js +2 -460
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +218 -334
- package/date-time-picker/definition.cjs +6 -285
- package/date-time-picker/definition.js +2 -278
- package/date-time-picker/index.cjs +4 -4
- package/date-time-picker/index.js +116 -211
- package/dial-pad/definition.cjs +6 -460
- package/dial-pad/definition.js +2 -453
- package/dial-pad/index.cjs +42 -42
- package/dial-pad/index.js +195 -287
- package/dialog/definition.cjs +6 -349
- package/dialog/definition.js +2 -342
- package/dialog/index.cjs +28 -28
- package/dialog/index.js +148 -229
- package/divider/definition.cjs +6 -42
- package/divider/definition.js +2 -35
- package/divider/index.cjs +1 -1
- package/divider/index.js +5 -2
- package/elevation/definition.cjs +4 -11
- package/elevation/definition.js +2 -2
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +5 -2
- package/empty-state/definition.cjs +6 -86
- package/empty-state/definition.js +2 -79
- package/empty-state/index.cjs +9 -9
- package/empty-state/index.js +28 -60
- package/fab/definition.cjs +6 -105
- package/fab/definition.js +2 -98
- package/fab/index.cjs +17 -17
- package/fab/index.js +46 -81
- package/file-picker/definition.cjs +6 -523
- package/file-picker/definition.js +2 -516
- package/file-picker/index.cjs +25 -25
- package/file-picker/index.js +246 -351
- package/header/definition.cjs +5 -78
- package/header/definition.js +1 -71
- package/header/index.cjs +5 -5
- package/header/index.js +28 -42
- package/icon/definition.cjs +5 -202
- package/icon/definition.js +1 -195
- package/icon/index.cjs +1 -1
- package/icon/index.js +5 -2
- package/index.cjs +350 -356
- package/index.js +79 -78
- package/layout/definition.cjs +5 -72
- package/layout/definition.js +1 -65
- package/layout/index.cjs +2 -2
- package/layout/index.js +10 -51
- package/lib/alert/alert.d.ts +0 -1
- package/lib/audio-player/audio-player.d.ts +0 -1
- package/lib/banner/banner.d.ts +0 -2
- package/lib/button/button.d.ts +0 -1
- package/lib/calendar/calendar.d.ts +0 -1
- package/lib/data-grid/data-grid-cell.d.ts +0 -3
- package/lib/data-grid/data-grid-row.d.ts +0 -3
- package/lib/data-grid/data-grid.d.ts +0 -1
- package/lib/fab/fab.d.ts +0 -1
- package/lib/file-picker/file-picker.d.ts +1 -1
- package/lib/icon/icon.d.ts +0 -1
- package/lib/option/option.d.ts +4 -0
- package/lib/pagination/pagination.d.ts +0 -4
- package/lib/popover/popover.d.ts +0 -5
- package/lib/split-button/split-button.d.ts +0 -2
- package/lib/tab/tab.d.ts +0 -2
- package/lib/tag/tag.d.ts +0 -2
- package/lib/toggletip/toggletip.d.ts +0 -1
- package/lib/tree-item/tree-item.d.ts +0 -2
- package/lib/tree-view/tree-view.d.ts +0 -1
- package/locales/de-DE.cjs +439 -549
- package/locales/de-DE.js +440 -547
- package/locales/en-GB.cjs +271 -382
- package/locales/en-GB.js +272 -380
- package/locales/en-US.cjs +2 -552
- package/locales/en-US.js +1 -549
- package/locales/ja-JP.cjs +432 -548
- package/locales/ja-JP.js +433 -546
- package/locales/zh-CN.cjs +433 -550
- package/locales/zh-CN.js +434 -548
- package/menu/definition.cjs +6 -393
- package/menu/definition.js +2 -386
- package/menu/index.cjs +1 -1
- package/menu/index.js +6 -2
- package/menu-item/definition.cjs +7 -14
- package/menu-item/definition.js +3 -3
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +6 -2
- package/nav/definition.cjs +5 -27
- package/nav/definition.js +1 -20
- package/nav/index.cjs +3 -3
- package/nav/index.js +7 -10
- package/nav-disclosure/definition.cjs +6 -122
- package/nav-disclosure/definition.js +2 -115
- package/nav-disclosure/index.cjs +8 -8
- package/nav-disclosure/index.js +49 -86
- package/nav-item/definition.cjs +6 -79
- package/nav-item/definition.js +2 -72
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +33 -58
- package/note/definition.cjs +6 -61
- package/note/definition.js +2 -54
- package/note/index.cjs +5 -5
- package/note/index.js +24 -38
- package/number-field/definition.cjs +6 -440
- package/number-field/definition.js +2 -433
- package/number-field/index.cjs +31 -31
- package/number-field/index.js +160 -328
- package/option/definition.cjs +6 -13
- package/option/definition.js +3 -3
- package/option/index.cjs +1 -1
- package/option/index.js +6 -2
- package/package.json +15 -16
- package/pagination/definition.cjs +6 -254
- package/pagination/definition.js +2 -247
- package/pagination/index.cjs +37 -37
- package/pagination/index.js +148 -186
- package/popover/definition.cjs +6 -356
- package/popover/definition.js +2 -349
- package/popover/index.cjs +16 -16
- package/popover/index.js +161 -239
- package/popup/definition.cjs +5 -13
- package/popup/definition.js +3 -4
- package/popup/index.cjs +1 -1
- package/popup/index.js +6 -2
- package/progress/definition.cjs +5 -87
- package/progress/definition.js +1 -80
- package/progress/index.cjs +9 -9
- package/progress/index.js +33 -55
- package/progress-ring/definition.cjs +5 -95
- package/progress-ring/definition.js +1 -88
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +5 -2
- package/radio/definition.cjs +5 -227
- package/radio/definition.js +1 -220
- package/radio/index.cjs +1 -1
- package/radio/index.js +5 -2
- package/radio-group/definition.cjs +6 -361
- package/radio-group/definition.js +2 -354
- package/radio-group/index.cjs +10 -10
- package/radio-group/index.js +160 -242
- package/range-slider/definition.cjs +6 -632
- package/range-slider/definition.js +2 -625
- package/range-slider/index.cjs +41 -41
- package/range-slider/index.js +259 -429
- package/rich-text-editor/definition.cjs +32 -15694
- package/rich-text-editor/definition.js +2 -15661
- package/rich-text-editor/index.cjs +17 -17
- package/rich-text-editor/index.js +9061 -11464
- package/rich-text-view/definition.cjs +5 -171
- package/rich-text-view/definition.js +1 -164
- package/rich-text-view/index.cjs +1 -1
- package/rich-text-view/index.js +68 -102
- package/searchable-select/definition.cjs +5 -1401
- package/searchable-select/definition.js +2 -1395
- package/searchable-select/index.cjs +94 -94
- package/searchable-select/index.js +600 -1015
- package/select/definition.cjs +6 -1002
- package/select/definition.js +2 -995
- package/select/index.cjs +1 -1
- package/select/index.js +6 -2
- package/selectable-box/definition.cjs +6 -174
- package/selectable-box/definition.js +2 -167
- package/selectable-box/index.cjs +18 -18
- package/selectable-box/index.js +66 -127
- package/side-drawer/definition.cjs +5 -130
- package/side-drawer/definition.js +1 -123
- package/side-drawer/index.cjs +7 -7
- package/side-drawer/index.js +47 -89
- package/simple-color-picker/definition.cjs +6 -225
- package/simple-color-picker/definition.js +2 -218
- package/simple-color-picker/index.cjs +15 -15
- package/simple-color-picker/index.js +98 -135
- package/slider/definition.cjs +6 -499
- package/slider/definition.js +2 -492
- package/slider/index.cjs +1 -1
- package/slider/index.js +6 -2
- package/split-button/definition.cjs +6 -176
- package/split-button/definition.js +2 -169
- package/split-button/index.cjs +15 -15
- package/split-button/index.js +74 -135
- package/status/definition.cjs +6 -82
- package/status/definition.js +2 -75
- package/status/index.cjs +7 -7
- package/status/index.js +35 -52
- package/switch/definition.cjs +6 -148
- package/switch/definition.js +2 -141
- package/switch/index.cjs +8 -8
- package/switch/index.js +48 -92
- package/tab/definition.cjs +6 -127
- package/tab/definition.js +2 -120
- package/tab/index.cjs +1 -1
- package/tab/index.js +6 -2
- package/tab-panel/definition.cjs +5 -29
- package/tab-panel/definition.js +1 -22
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +5 -2
- package/table/definition.cjs +15 -174
- package/table/definition.js +1 -157
- package/table/index.cjs +10 -10
- package/table/index.js +26 -82
- package/tabs/definition.cjs +7 -467
- package/tabs/definition.js +2 -459
- package/tabs/index.cjs +11 -11
- package/tabs/index.js +169 -296
- package/tag/definition.cjs +6 -176
- package/tag/definition.js +2 -169
- package/tag/index.cjs +26 -26
- package/tag/index.js +65 -126
- package/tag-group/definition.cjs +5 -40
- package/tag-group/definition.js +1 -33
- package/tag-group/index.cjs +4 -4
- package/tag-group/index.js +10 -21
- package/text-area/definition.cjs +6 -355
- package/text-area/definition.js +2 -348
- package/text-area/index.cjs +11 -11
- package/text-area/index.js +153 -260
- package/text-field/definition.cjs +6 -423
- package/text-field/definition.js +2 -416
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +6 -2
- package/time-picker/definition.cjs +7 -43
- package/time-picker/definition.js +3 -36
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +24 -29
- package/toggletip/definition.cjs +6 -159
- package/toggletip/definition.js +2 -152
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +6 -2
- package/tooltip/definition.cjs +6 -139
- package/tooltip/definition.js +2 -132
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +6 -2
- package/tree-item/definition.cjs +6 -13
- package/tree-item/definition.js +3 -3
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +6 -2
- package/tree-view/definition.cjs +6 -302
- package/tree-view/definition.js +2 -295
- package/tree-view/index.cjs +11 -11
- package/tree-view/index.js +145 -174
- package/unbundled/affix.cjs +89 -62
- package/unbundled/affix.js +58 -55
- package/unbundled/anchored.cjs +87 -94
- package/unbundled/anchored.js +74 -90
- package/unbundled/attribute-binding-behaviour.cjs +37 -42
- package/unbundled/attribute-binding-behaviour.js +31 -40
- package/unbundled/base-color-picker.cjs +226 -275
- package/unbundled/base-color-picker.js +214 -272
- package/unbundled/base-progress.cjs +63 -78
- package/unbundled/base-progress.js +57 -76
- package/unbundled/breadcrumb-item.cjs +24 -28
- package/unbundled/breadcrumb-item.js +18 -26
- package/unbundled/button.cjs +115 -166
- package/unbundled/button.js +109 -164
- package/unbundled/calendar-event.cjs +28 -41
- package/unbundled/calendar-event.js +22 -39
- package/unbundled/calendar-picker.template.cjs +620 -783
- package/unbundled/calendar-picker.template.js +560 -772
- package/unbundled/char-count.cjs +50 -80
- package/unbundled/char-count.js +44 -78
- package/unbundled/chunk.cjs +50 -0
- package/unbundled/chunk.js +33 -0
- package/unbundled/data-grid.options.cjs +80 -29
- package/unbundled/data-grid.options.js +51 -23
- package/unbundled/decorate.cjs +14 -0
- package/unbundled/decorate.js +9 -0
- package/unbundled/definition.cjs +42 -405
- package/unbundled/definition.js +24 -399
- package/unbundled/definition10.cjs +253 -0
- package/unbundled/definition10.js +229 -0
- package/unbundled/definition11.cjs +397 -0
- package/unbundled/definition11.js +379 -0
- package/unbundled/definition12.cjs +317 -0
- package/unbundled/definition12.js +287 -0
- package/unbundled/definition13.cjs +328 -0
- package/unbundled/definition13.js +310 -0
- package/unbundled/definition14.cjs +406 -0
- package/unbundled/definition14.js +388 -0
- package/unbundled/definition15.cjs +107 -0
- package/unbundled/definition15.js +89 -0
- package/unbundled/definition16.cjs +63 -0
- package/unbundled/definition16.js +45 -0
- package/unbundled/definition17.cjs +151 -0
- package/unbundled/definition17.js +133 -0
- package/unbundled/definition18.cjs +47 -0
- package/unbundled/definition18.js +35 -0
- package/unbundled/definition19.cjs +98 -0
- package/unbundled/definition19.js +80 -0
- package/unbundled/definition2.cjs +180 -220
- package/unbundled/definition2.js +162 -215
- package/unbundled/definition20.cjs +56 -0
- package/unbundled/definition20.js +43 -0
- package/unbundled/definition21.cjs +305 -0
- package/unbundled/definition21.js +286 -0
- package/unbundled/definition22.cjs +174 -0
- package/unbundled/definition22.js +156 -0
- package/unbundled/definition23.cjs +161 -0
- package/unbundled/definition23.js +143 -0
- package/unbundled/definition24.cjs +1038 -0
- package/unbundled/definition24.js +1020 -0
- package/unbundled/definition25.cjs +360 -0
- package/unbundled/definition25.js +342 -0
- package/unbundled/definition26.cjs +137 -0
- package/unbundled/definition26.js +119 -0
- package/unbundled/definition27.cjs +235 -0
- package/unbundled/definition27.js +211 -0
- package/unbundled/definition28.cjs +546 -0
- package/unbundled/definition28.js +528 -0
- package/unbundled/definition29.cjs +157 -0
- package/unbundled/definition29.js +139 -0
- package/unbundled/definition3.cjs +131 -284
- package/unbundled/definition3.js +113 -279
- package/unbundled/definition30.cjs +75 -0
- package/unbundled/definition30.js +57 -0
- package/unbundled/definition31.cjs +1265 -0
- package/unbundled/definition31.js +1247 -0
- package/unbundled/definition32.cjs +1908 -0
- package/unbundled/definition32.js +1866 -0
- package/unbundled/definition33.cjs +261 -0
- package/unbundled/definition33.js +183 -0
- package/unbundled/definition34.cjs +46 -0
- package/unbundled/definition34.js +33 -0
- package/unbundled/definition35.cjs +152 -0
- package/unbundled/definition35.js +134 -0
- package/unbundled/definition36.cjs +426 -0
- package/unbundled/definition36.js +408 -0
- package/unbundled/definition37.cjs +243 -0
- package/unbundled/definition37.js +225 -0
- package/unbundled/definition38.cjs +409 -0
- package/unbundled/definition38.js +391 -0
- package/unbundled/definition39.cjs +298 -0
- package/unbundled/definition39.js +280 -0
- package/unbundled/definition4.cjs +186 -205
- package/unbundled/definition4.js +162 -200
- package/unbundled/definition40.cjs +81 -0
- package/unbundled/definition40.js +63 -0
- package/unbundled/definition41.cjs +100 -0
- package/unbundled/definition41.js +82 -0
- package/unbundled/definition42.cjs +457 -0
- package/unbundled/definition42.js +439 -0
- package/unbundled/definition43.cjs +86 -0
- package/unbundled/definition43.js +68 -0
- package/unbundled/definition44.cjs +60 -0
- package/unbundled/definition44.js +41 -0
- package/unbundled/definition45.cjs +124 -0
- package/unbundled/definition45.js +106 -0
- package/unbundled/definition46.cjs +85 -0
- package/unbundled/definition46.js +67 -0
- package/unbundled/definition47.cjs +52 -0
- package/unbundled/definition47.js +31 -0
- package/unbundled/definition48.cjs +69 -0
- package/unbundled/definition48.js +51 -0
- package/unbundled/definition49.cjs +377 -0
- package/unbundled/definition49.js +359 -0
- package/unbundled/definition5.cjs +69 -298
- package/unbundled/definition5.js +44 -293
- package/unbundled/definition50.cjs +246 -0
- package/unbundled/definition50.js +228 -0
- package/unbundled/definition51.cjs +337 -0
- package/unbundled/definition51.js +319 -0
- package/unbundled/definition52.cjs +86 -0
- package/unbundled/definition52.js +67 -0
- package/unbundled/definition53.cjs +193 -0
- package/unbundled/definition53.js +174 -0
- package/unbundled/definition54.cjs +297 -0
- package/unbundled/definition54.js +279 -0
- package/unbundled/definition55.cjs +510 -0
- package/unbundled/definition55.js +492 -0
- package/unbundled/definition56.cjs +12728 -0
- package/unbundled/definition56.js +12553 -0
- package/unbundled/definition57.cjs +837 -0
- package/unbundled/definition57.js +819 -0
- package/unbundled/definition58.cjs +146 -0
- package/unbundled/definition58.js +128 -0
- package/unbundled/definition59.cjs +1080 -0
- package/unbundled/definition59.js +1062 -0
- package/unbundled/definition6.cjs +88 -56
- package/unbundled/definition6.js +69 -52
- package/unbundled/definition60.cjs +149 -0
- package/unbundled/definition60.js +131 -0
- package/unbundled/definition61.cjs +116 -0
- package/unbundled/definition61.js +97 -0
- package/unbundled/definition62.cjs +213 -0
- package/unbundled/definition62.js +195 -0
- package/unbundled/definition63.cjs +159 -0
- package/unbundled/definition63.js +141 -0
- package/unbundled/definition64.cjs +86 -0
- package/unbundled/definition64.js +68 -0
- package/unbundled/definition65.cjs +126 -0
- package/unbundled/definition65.js +107 -0
- package/unbundled/definition66.cjs +49 -0
- package/unbundled/definition66.js +28 -0
- package/unbundled/definition67.cjs +119 -0
- package/unbundled/definition67.js +101 -0
- package/unbundled/definition68.cjs +374 -0
- package/unbundled/definition68.js +349 -0
- package/unbundled/definition69.cjs +57 -0
- package/unbundled/definition69.js +38 -0
- package/unbundled/definition7.cjs +190 -0
- package/unbundled/definition7.js +166 -0
- package/unbundled/definition70.cjs +155 -0
- package/unbundled/definition70.js +137 -0
- package/unbundled/definition71.cjs +302 -0
- package/unbundled/definition71.js +284 -0
- package/unbundled/definition72.cjs +49 -0
- package/unbundled/definition72.js +38 -0
- package/unbundled/definition73.cjs +171 -0
- package/unbundled/definition73.js +147 -0
- package/unbundled/definition74.cjs +232 -0
- package/unbundled/definition74.js +213 -0
- package/unbundled/definition75.cjs +52241 -0
- package/unbundled/definition75.js +52223 -0
- package/unbundled/definition8.cjs +63 -0
- package/unbundled/definition8.js +44 -0
- package/unbundled/definition9.cjs +183 -0
- package/unbundled/definition9.js +165 -0
- package/unbundled/delegates-aria.cjs +90 -131
- package/unbundled/delegates-aria.js +77 -127
- package/unbundled/dialog.cjs +15 -0
- package/unbundled/dialog.js +10 -0
- package/unbundled/divider.cjs +42 -50
- package/unbundled/divider.js +30 -47
- package/unbundled/en-US.cjs +447 -0
- package/unbundled/en-US.js +443 -0
- package/unbundled/enums.cjs +166 -107
- package/unbundled/enums.js +95 -94
- package/unbundled/form-associated.cjs +408 -463
- package/unbundled/form-associated.js +396 -460
- package/unbundled/form-element.cjs +74 -83
- package/unbundled/form-element.js +68 -81
- package/unbundled/host-semantics.cjs +70 -89
- package/unbundled/host-semantics.js +57 -85
- package/unbundled/key-codes.cjs +16 -10
- package/unbundled/key-codes.js +5 -7
- package/unbundled/linkable.cjs +35 -56
- package/unbundled/linkable.js +27 -52
- package/unbundled/listbox.cjs +363 -465
- package/unbundled/listbox.js +357 -463
- package/unbundled/localized.cjs +79 -74
- package/unbundled/localized.js +61 -70
- package/unbundled/mixins.cjs +222 -223
- package/unbundled/mixins.js +186 -211
- package/unbundled/picker-field.template.cjs +188 -217
- package/unbundled/picker-field.template.js +165 -208
- package/unbundled/playbackRates.cjs +18 -11
- package/unbundled/playbackRates.js +13 -9
- package/unbundled/scrollIntoView.cjs +38 -43
- package/unbundled/scrollIntoView.js +33 -41
- package/unbundled/single-date-picker.cjs +48 -45
- package/unbundled/single-date-picker.js +43 -43
- package/unbundled/single-value-picker.cjs +106 -114
- package/unbundled/single-value-picker.js +101 -112
- package/unbundled/slider.template.cjs +107 -73
- package/unbundled/slider.template.js +67 -62
- package/unbundled/slottable-request.cjs +3114 -3503
- package/unbundled/slottable-request.js +2995 -3484
- package/unbundled/text-field.cjs +9 -5
- package/unbundled/text-field.js +4 -3
- package/unbundled/time-selection-picker.template.cjs +611 -755
- package/unbundled/time-selection-picker.template.js +554 -742
- package/unbundled/trapped-focus.cjs +45 -35
- package/unbundled/trapped-focus.js +34 -32
- package/unbundled/vivid-element.cjs +281 -274
- package/unbundled/vivid-element.js +239 -266
- package/unbundled/with-contextual-help.cjs +35 -39
- package/unbundled/with-contextual-help.js +29 -37
- package/unbundled/with-error-text.cjs +45 -55
- package/unbundled/with-error-text.js +39 -53
- package/unbundled/with-success-text.cjs +18 -22
- package/unbundled/with-success-text.js +12 -20
- package/video-player/definition.cjs +5 -69835
- package/video-player/definition.js +1 -69828
- package/video-player/index.cjs +44 -39
- package/video-player/index.js +23517 -35507
- package/visually-hidden/definition.cjs +5 -30
- package/visually-hidden/definition.js +1 -23
- package/visually-hidden/index.cjs +1 -1
- package/visually-hidden/index.js +5 -2
- package/vivid.api.json +150 -1631
- package/bundled/index.cjs +0 -1
- package/bundled/index.js +0 -6
- package/unbundled/_commonjsHelpers.cjs +0 -40
- package/unbundled/_commonjsHelpers.js +0 -36
- package/unbundled/index.cjs +0 -11
- package/unbundled/index.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var e=new WeakSet,t=t=>{e.add(t)},n=t=>{class n extends t{_trappedFocus(t,n){if(!e.has(t)&&t.key===`Tab`){let e=n(),r=e[0],i=e[e.length-1];if(t.shiftKey){if(this.shadowRoot.activeElement===r)return i.focus(),!0}else if(this.shadowRoot.activeElement===i)return r.focus(),!0}return!1}}return n};Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
package/bundled/trapped-focus.js
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return !1;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return c;
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
i as T,
|
|
25
|
-
l as i
|
|
1
|
+
//#region src/shared/patterns/trapped-focus.ts
|
|
2
|
+
var e = /* @__PURE__ */ new WeakSet(), t = (t) => {
|
|
3
|
+
e.add(t);
|
|
4
|
+
}, n = (t) => {
|
|
5
|
+
class n extends t {
|
|
6
|
+
_trappedFocus(t, n) {
|
|
7
|
+
if (!e.has(t) && t.key === "Tab") {
|
|
8
|
+
let e = n(), r = e[0], i = e[e.length - 1];
|
|
9
|
+
if (t.shiftKey) {
|
|
10
|
+
if (this.shadowRoot.activeElement === r) return i.focus(), !0;
|
|
11
|
+
} else if (this.shadowRoot.activeElement === i) return r.focus(), !0;
|
|
12
|
+
}
|
|
13
|
+
return !1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return n;
|
|
26
17
|
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { t as n, n as t };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
"use strict";let H;const mt="fast-kernel";try{if(document.currentScript)H=document.currentScript.getAttribute(mt);else{const i=document.getElementsByTagName("script");H=i[i.length-1].getAttribute(mt)}}catch{H="isolate"}let x;switch(H){case"share":x=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case"share-v2":x=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:const i=`-${Math.random().toString(36).substring(2,8)}`;x=Object.freeze({updateQueue:`1.2${i}`,observable:`2.2${i}`,contextEvent:`3.2${i}`,elementRegistry:`4.2${i}`});break}const M=i=>typeof i=="function",N=i=>typeof i=="string",Gt=()=>{};var P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function we(i){if(Object.prototype.hasOwnProperty.call(i,"__esModule"))return i;var t=i.default;if(typeof t=="function"){var e=function s(){var n=!1;try{n=this instanceof s}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(i).forEach(function(s){var n=Object.getOwnPropertyDescriptor(i,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return i[s]}})}),e}var wt={},St;function Se(){return St||(St=1,(function(){if(!(typeof globalThis<"u"))if(typeof P<"u")P.globalThis=P;else if(typeof self<"u")self.globalThis=self;else if(typeof window<"u")window.globalThis=window;else{const t=new Function("return this")();t.globalThis=t}})(),(function(){"requestIdleCallback"in globalThis||(globalThis.requestIdleCallback=function(e,s){const n=Date.now();return setTimeout(()=>{e({didTimeout:s?.timeout?Date.now()-n>=s.timeout:!1,timeRemaining:()=>0})},1)},globalThis.cancelIdleCallback=function(e){clearTimeout(e)})})()),wt}Se();const Jt={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,"FAST",Object.assign({value:Object.create(null)},Jt));const v=globalThis.FAST;if(v.getById===void 0){const i=Object.create(null);Reflect.defineProperty(v,"getById",Object.assign({value(t,e){let s=i[t];return s===void 0&&(s=e?i[t]=e():null),s}},Jt))}v.error===void 0&&Object.assign(v,{warn(){},error(i){return new Error(`Error ${i}`)},addMessages(){}});const Ce=Object.freeze([]);function Kt(){const i=new Map;return Object.freeze({register(t){return i.has(t.type)?!1:(i.set(t.type,t),!0)},getByType(t){return i.get(t)},getForInstance(t){if(t!=null)return i.get(t.constructor)}})}function Xt(){const i=new WeakMap;return function(t){let e=i.get(t);if(e===void 0){let s=Reflect.getPrototypeOf(t);for(;e===void 0&&s!==null;)e=i.get(s),s=Reflect.getPrototypeOf(s);e=e===void 0?[]:e.slice(0),i.set(t,e)}return e}}function O(i){i.prototype.toJSON=Gt}const y=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),Ct=i=>i,ke=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy("fast-html",{createHTML:Ct}):{createHTML:Ct};let z=Object.freeze({createHTML(i){return ke.createHTML(i)},protect(i,t,e,s){return s}});const Te=z,k=Object.freeze({get policy(){return z},setPolicy(i){if(z!==Te)throw v.error(1201);z=i},setAttribute(i,t,e){e==null?i.removeAttribute(t):i.setAttribute(t,e)},setBooleanAttribute(i,t,e){e?i.setAttribute(t,""):i.removeAttribute(t)}}),dt=v.getById(x.updateQueue,()=>{const i=[],t=[],e=globalThis.requestAnimationFrame;let s=!0;function n(){if(t.length)throw t.shift()}function r(d){try{d.call()}catch(l){if(s)t.push(l),setTimeout(n,0);else throw i.length=0,l}}function o(){let l=0;for(;l<i.length;)if(r(i[l]),l++,l>1024){for(let a=0,h=i.length-l;a<h;a++)i[a]=i[a+l];i.length-=l,l=0}i.length=0}function c(d){i.push(d),i.length<2&&(s?e(o):o())}return Object.freeze({enqueue:c,next:()=>new Promise(c),process:o,setMode:d=>s=d})});class W{constructor(t,e){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=t,this.sub1=e}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){const e=this.spillover;if(e===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else e.indexOf(t)===-1&&e.push(t)}unsubscribe(t){const e=this.spillover;if(e===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{const s=e.indexOf(t);s!==-1&&e.splice(s,1)}}notify(t){const e=this.spillover,s=this.subject;if(e===void 0){const n=this.sub1,r=this.sub2;n!==void 0&&n.handleChange(s,t),r!==void 0&&r.handleChange(s,t)}else for(let n=0,r=e.length;n<r;++n)e[n].handleChange(s,t)}}class Yt{constructor(t){this.subscribers={},this.subjectSubscribers=null,this.subject=t}notify(t){var e,s;(e=this.subscribers[t])===null||e===void 0||e.notify(t),(s=this.subjectSubscribers)===null||s===void 0||s.notify(t)}subscribe(t,e){var s,n;let r;e?r=(s=this.subscribers[e])!==null&&s!==void 0?s:this.subscribers[e]=new W(this.subject):r=(n=this.subjectSubscribers)!==null&&n!==void 0?n:this.subjectSubscribers=new W(this.subject),r.subscribe(t)}unsubscribe(t,e){var s,n;e?(s=this.subscribers[e])===null||s===void 0||s.unsubscribe(t):(n=this.subjectSubscribers)===null||n===void 0||n.unsubscribe(t)}}const Z=Object.freeze({unknown:void 0,coupled:1}),b=v.getById(x.observable,()=>{const i=dt.enqueue,t=/(:|&&|\|\||if|\?\.)/,e=new WeakMap;let s,n=l=>{throw v.error(1101)};function r(l){var a;let h=(a=l.$fastController)!==null&&a!==void 0?a:e.get(l);return h===void 0&&(Array.isArray(l)?h=n(l):e.set(l,h=new Yt(l))),h}const o=Xt();class c{constructor(a){this.name=a,this.field=`_${a}`,this.callback=`${a}Changed`}getValue(a){return s!==void 0&&s.watch(a,this.name),a[this.field]}setValue(a,h){const u=this.field,g=a[u];if(g!==h){a[u]=h;const $=a[this.callback];M($)&&$.call(a,g,h),r(a).notify(this.name)}}}class d extends W{constructor(a,h,u=!1){super(a,h),this.expression=a,this.isVolatileBinding=u,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(a){this.isAsync=this.needsQueue=a}bind(a){this.controller=a;const h=this.observe(a.source,a.context);return!a.isBound&&this.requiresUnbind(a)&&a.onUnbind(this),h}requiresUnbind(a){return a.sourceLifetime!==Z.coupled||this.first!==this.last||this.first.propertySource!==a.source}unbind(a){this.dispose()}observe(a,h){this.needsRefresh&&this.last!==null&&this.dispose();const u=s;s=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g;try{g=this.expression(a,h)}finally{s=u}return g}disconnect(){this.dispose()}dispose(){if(this.last!==null){let a=this.first;for(;a!==void 0;)a.notifier.unsubscribe(this,a.propertyName),a=a.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(a,h){const u=this.last,g=r(a),$=u===null?this.first:{};if($.propertySource=a,$.propertyName=h,$.notifier=g,g.subscribe(this,h),u!==null){if(!this.needsRefresh){let vt;s=void 0,vt=u.propertySource[u.propertyName],s=this,a===vt&&(this.needsRefresh=!0)}u.next=$}this.last=$}handleChange(){this.needsQueue?(this.needsQueue=!1,i(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let a=this.first;for(;a!==void 0;)yield a,a=a.next}}return O(d),Object.freeze({setArrayObserverFactory(l){n=l},getNotifier:r,track(l,a){s&&s.watch(l,a)},trackVolatile(){s&&(s.needsRefresh=!0)},notify(l,a){r(l).notify(a)},defineProperty(l,a){N(a)&&(a=new c(a)),o(l).push(a),Reflect.defineProperty(l,a.name,{enumerable:!0,get(){return a.getValue(this)},set(h){a.setValue(this,h)}})},getAccessors:o,binding(l,a,h=this.isVolatileBinding(l)){return new d(l,a,h)},isVolatileBinding(l){return t.test(l.toString())}})});function $e(i,t){b.defineProperty(i,t)}function Ne(i,t,e){return Object.assign({},e,{get(){return b.trackVolatile(),e.get.apply(this)}})}const kt=v.getById(x.contextEvent,()=>{let i=null;return{get(){return i},set(t){i=t}}}),A=Object.freeze({default:{index:0,length:0,get event(){return A.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return kt.get()},setEvent(i){kt.set(i)}});class tt{constructor(t,e,s=!1){this.evaluate=t,this.policy=e,this.isVolatile=s}}class Be extends tt{createObserver(t){return b.binding(this.evaluate,t,this.isVolatile)}}function ht(i,t,e=b.isVolatileBinding(i)){return new Be(i,t,e)}class Zt extends tt{createObserver(){return this}bind(t){return this.evaluate(t.source,t.context)}}O(Zt);function ut(i,t){return new Zt(i,t)}let Tt;function te(i){return i.map(t=>t instanceof m?te(t.styles):[t]).reduce((t,e)=>t.concat(e),[])}class m{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(e=>e instanceof m?e.behaviors:null).reduce((e,s)=>s===null?e:e===null?s:e.concat(s),null)}get strategy(){return this._strategy===null&&this.withStrategy(Tt),this._strategy}addStylesTo(t){this.strategy.addStylesTo(t),this.targets.add(t)}removeStylesFrom(t){this.strategy.removeStylesFrom(t),this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}withStrategy(t){return this._strategy=new t(te(this.styles)),this}static setDefaultStrategy(t){Tt=t}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new m(t):t instanceof m?t:new m([t])}}m.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;const $t=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,Nt=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,Bt=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,xt=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,At=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,Mt=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function Ot(i){return i&&i.nodeType===Node.COMMENT_NODE}const w=Object.freeze({attributeMarkerName:"data-fe-b",attributeBindingSeparator:" ",contentBindingStartMarker(i,t){return`fe-b$$start$$${i}$$${t}$$fe-b`},contentBindingEndMarker(i,t){return`fe-b$$end$$${i}$$${t}$$fe-b`},repeatStartMarker(i){return`fe-repeat$$start$$${i}$$fe-repeat`},repeatEndMarker(i){return`fe-repeat$$end$$${i}$$fe-repeat`},isContentBindingStartMarker(i){return $t.test(i)},isContentBindingEndMarker(i){return Nt.test(i)},isRepeatViewStartMarker(i){return Bt.test(i)},isRepeatViewEndMarker(i){return xt.test(i)},isElementBoundaryStartMarker(i){return Ot(i)&&At.test(i.data.trim())},isElementBoundaryEndMarker(i){return Ot(i)&&Mt.test(i.data)},parseAttributeBinding(i){const t=i.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseEnumeratedAttributeBinding(i){const t=[],e=this.attributeMarkerName.length+1,s=`${this.attributeMarkerName}-`;for(const n of i.getAttributeNames())if(n.startsWith(s)){const r=Number(n.slice(e));if(!Number.isNaN(r))t.push(r);else throw new Error(`Invalid attribute marker name: ${n}. Expected format is ${s}<number>.`)}return t.length===0?null:t},parseContentBindingStartMarker(i){return _t($t,i)},parseContentBindingEndMarker(i){return _t(Nt,i)},parseRepeatStartMarker(i){return Et(Bt,i)},parseRepeatEndMarker(i){return Et(xt,i)},parseElementBoundaryStartMarker(i){return Rt(At,i.trim())},parseElementBoundaryEndMarker(i){return Rt(Mt,i)}});function Et(i,t){const e=i.exec(t);return e===null?e:parseInt(e[1])}function Rt(i,t){const e=i.exec(t);return e===null?e:e[1]}function _t(i,t){const e=i.exec(t);return e===null?e:[parseInt(e[1]),e[2]]}const Q=Symbol.for("fe-hydration");function j(i){return i[Q]===Q}const ft=`fast-${Math.random().toString(36).substring(2,8)}`,U=`${ft}{`,R=`}${ft}`,xe=R.length;let Ae=0;const L=()=>`${ft}-${++Ae}`,pt=Object.freeze({interpolation:i=>`${U}${i}${R}`,attribute:i=>`${L()}="${U}${i}${R}"`,comment:i=>`<!--${U}${i}${R}-->`}),et=Object.freeze({parse(i,t){const e=i.split(U);if(e.length===1)return null;const s=[];for(let n=0,r=e.length;n<r;++n){const o=e[n],c=o.indexOf(R);let d;if(c===-1)d=o;else{const l=o.substring(0,c);s.push(t[l]),d=o.substring(c+xe)}d!==""&&s.push(d)}return s}}),nt=Kt(),T=Object.freeze({getForInstance:nt.getForInstance,getByType:nt.getByType,define(i,t){return t=t||{},t.type=i,nt.register(t),i},assignAspect(i,t){if(!t){i.aspectType=y.content;return}switch(i.sourceAspect=t,t[0]){case":":i.targetAspect=t.substring(1),i.aspectType=i.targetAspect==="classList"?y.tokenList:y.property;break;case"?":i.targetAspect=t.substring(1),i.aspectType=y.booleanAttribute;break;case"@":i.targetAspect=t.substring(1),i.aspectType=y.event;break;default:i.targetAspect=t,i.aspectType=y.attribute;break}}});class ee{constructor(t){this.options=t}createHTML(t){return pt.attribute(t(this))}createBehavior(){return this}}O(ee);class ie extends Error{constructor(t,e,s){super(t),this.factories=e,this.node=s}}function bt(i){return i.nodeType===Node.COMMENT_NODE}function se(i){return i.nodeType===Node.TEXT_NODE}function ne(i,t){const e=document.createRange();return e.setStart(i,0),e.setEnd(t,bt(t)||se(t)?t.data.length:t.childNodes.length),e}function Me(i){return i instanceof DocumentFragment&&"mode"in i}function Oe(i,t,e){const s=ne(i,t),n=s.commonAncestorContainer,r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(l){return s.comparePoint(l,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),o={},c={};let d=r.currentNode=i;for(;d!==null;){switch(d.nodeType){case Node.ELEMENT_NODE:{Ee(d,e,o);break}case Node.COMMENT_NODE:{Re(d,r,e,o,c);break}}d=r.nextNode()}return s.detach(),{targets:o,boundaries:c}}function Ee(i,t,e){var s;const n=(s=w.parseAttributeBinding(i))!==null&&s!==void 0?s:w.parseEnumeratedAttributeBinding(i);if(n!==null){for(const r of n){if(!t[r])throw new ie(`HydrationView was unable to successfully target factory on ${i.nodeName} inside ${i.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,i);G(t[r],i,e)}i.removeAttribute(w.attributeMarkerName)}}function Re(i,t,e,s,n){if(w.isElementBoundaryStartMarker(i)){_e(i,t);return}if(w.isContentBindingStartMarker(i.data)){const r=w.parseContentBindingStartMarker(i.data);if(r===null)return;const[o,c]=r,d=e[o],l=[];let a=t.nextSibling();i.data="";const h=a;for(;a!==null;){if(bt(a)){const u=w.parseContentBindingEndMarker(a.data);if(u&&u[1]===c)break}l.push(a),a=t.nextSibling()}if(a===null){const u=i.getRootNode();throw new Error(`Error hydrating Comment node inside "${Me(u)?u.host.nodeName:u.nodeName}".`)}if(a.data="",l.length===1&&se(l[0]))G(d,l[0],s);else{a!==h&&a.previousSibling!==null&&(n[d.targetNodeId]={first:h,last:a.previousSibling});const u=a.parentNode.insertBefore(document.createTextNode(""),a);G(d,u,s)}}}function _e(i,t){const e=w.parseElementBoundaryStartMarker(i.data);let s=t.nextSibling();for(;s!==null;){if(bt(s)){const n=w.parseElementBoundaryEndMarker(s.data);if(n&&n===e)break}s=t.nextSibling()}}function G(i,t,e){if(i.targetNodeId===void 0)throw new Error("Factory could not be target to the node");e[i.targetNodeId]=t}var re;function lt(i,t){const e=i.parentNode;let s=i,n;for(;s!==t;){if(n=s.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.removeChild(s),s=n}e.removeChild(t)}class ae{constructor(){this.index=0,this.length=0}get event(){return A.getEvent()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}}class F extends ae{constructor(t,e,s){super(),this.fragment=t,this.factories=e,this.targets=s,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=Z.unknown,this.context=this,this.firstChild=t.firstChild,this.lastChild=t.lastChild}appendTo(t){t.appendChild(this.fragment)}insertBefore(t){if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let n=this.firstChild,r;for(;n!==e;)r=n.nextSibling,s.insertBefore(n,t),n=r;s.insertBefore(e,t)}}remove(){const t=this.fragment,e=this.lastChild;let s=this.firstChild,n;for(;s!==e;)n=s.nextSibling,t.appendChild(s),s=n;t.appendChild(e)}dispose(){lt(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}bind(t,e=this){if(this.source===t)return;let s=this.behaviors;if(s===null){this.source=t,this.context=e,this.behaviors=s=new Array(this.factories.length);const n=this.factories;for(let r=0,o=n.length;r<o;++r){const c=n[r].createBehavior();c.bind(this),s[r]=c}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let n=0,r=s.length;n<r;++n)s[n].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}static disposeContiguousBatch(t){if(t.length!==0){lt(t[0].firstChild,t[t.length-1].lastChild);for(let e=0,s=t.length;e<s;++e)t[e].unbind()}}}O(F);b.defineProperty(F.prototype,"index");b.defineProperty(F.prototype,"length");const B={unhydrated:"unhydrated",hydrating:"hydrating",hydrated:"hydrated"};class Ie extends Error{constructor(t,e,s,n){super(t),this.factory=e,this.fragment=s,this.templateString=n}}class je extends ae{constructor(t,e,s,n){super(),this.firstChild=t,this.lastChild=e,this.sourceTemplate=s,this.hostBindingTarget=n,this[re]=Q,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=Z.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=B.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=s.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(t){if(this.fragment!==null)if(this.fragment.hasChildNodes())t.parentNode.insertBefore(this.fragment,t);else{const e=this.lastChild;if(t.previousSibling===e)return;const s=t.parentNode;let n=this.firstChild,r;for(;n!==e;)r=n.nextSibling,s.insertBefore(n,t),n=r;s.insertBefore(e,t)}}appendTo(t){this.fragment!==null&&t.appendChild(this.fragment)}remove(){const t=this.fragment||(this.fragment=document.createDocumentFragment()),e=this.lastChild;let s=this.firstChild,n;for(;s!==e;){if(n=s.nextSibling,!n)throw new Error(`Unmatched first/last child inside "${e.getRootNode().host.nodeName}".`);t.appendChild(s),s=n}t.appendChild(e)}bind(t,e=this){var s;if(this.hydrationStage!==B.hydrated&&(this._hydrationStage=B.hydrating),this.source===t)return;let n=this.behaviors;if(n===null){this.source=t,this.context=e;try{const{targets:o,boundaries:c}=Oe(this.firstChild,this.lastChild,this.factories);this._targets=o,this._bindingViewBoundaries=c}catch(o){if(o instanceof ie){let c=this.sourceTemplate.html;typeof c!="string"&&(c=c.innerHTML),o.templateString=c}throw o}this.behaviors=n=new Array(this.factories.length);const r=this.factories;for(let o=0,c=r.length;o<c;++o){const d=r[o];if(d.targetNodeId==="h"&&this.hostBindingTarget&&G(d,this.hostBindingTarget,this._targets),d.targetNodeId in this.targets){const l=d.createBehavior();l.bind(this),n[o]=l}else{let l=this.sourceTemplate.html;typeof l!="string"&&(l=l.innerHTML);const a=((s=this.firstChild)===null||s===void 0?void 0:s.getRootNode()).host,h=a?.nodeName||"unknown",u=d,g=[`HydrationView was unable to successfully target bindings inside "<${h.toLowerCase()}>".`,`
|
|
2
|
-
Mismatch Details:`,` - Expected target node ID: "${
|
|
3
|
-
This usually means
|
|
4
|
-
Template: ${l.slice(0,200)}${l.length>200?"...":""}`),new Ie(g.join(`
|
|
5
|
-
`),d,ne(this.firstChild,this.lastChild).cloneContents(),l)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=t,this.context=e;for(let r=0,o=n.length;r<o;++r)n[r].bind(this)}this.isBound=!0,this._hydrationStage=B.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){lt(this.firstChild,this.lastChild),this.unbind()}onUnbind(t){this.unbindables.push(t)}evaluateUnbindables(){const t=this.unbindables;for(let e=0,s=t.length;e<s;++e)t[e].unbind(this);t.length=0}}re=Q;O(je);function Le(i){return i.create!==void 0}function Ve(i,t,e,s){if(e==null&&(e=""),Le(e)){i.textContent="";let n=i.$fastView;if(n===void 0)if(j(s)&&j(e)&&s.bindingViewBoundaries[this.targetNodeId]!==void 0&&s.hydrationStage!==B.hydrated){const r=s.bindingViewBoundaries[this.targetNodeId];n=e.hydrate(r.first,r.last)}else n=e.create();else i.$fastTemplate!==e&&(n.isComposed&&(n.remove(),n.unbind()),n=e.create());n.isComposed?n.needsBindOnly&&(n.needsBindOnly=!1,n.bind(s.source,s.context)):(n.isComposed=!0,n.bind(s.source,s.context),n.insertBefore(i),i.$fastView=n,i.$fastTemplate=e)}else{const n=i.$fastView;n!==void 0&&n.isComposed&&(n.isComposed=!1,n.remove(),n.needsBindOnly?n.needsBindOnly=!1:n.unbind()),i.textContent=e}}function Fe(i,t,e){var s;const n=`${this.id}-t`,r=(s=i[n])!==null&&s!==void 0?s:i[n]={v:0,cv:Object.create(null)},o=r.cv;let c=r.v;const d=i[t];if(e!=null&&e.length){const l=e.split(/\s+/);for(let a=0,h=l.length;a<h;++a){const u=l[a];u!==""&&(o[u]=c,d.add(u))}}if(r.v=c+1,c!==0){c-=1;for(const l in o)o[l]===c&&d.remove(l)}}const De={[y.attribute]:k.setAttribute,[y.booleanAttribute]:k.setBooleanAttribute,[y.property]:(i,t,e)=>i[t]=e,[y.content]:Ve,[y.tokenList]:Fe,[y.event]:()=>{}};class E{constructor(t){this.dataBinding=t,this.updateTarget=null,this.aspectType=y.content}createHTML(t){return pt.interpolation(t(this))}createBehavior(){var t;if(this.updateTarget===null){const e=De[this.aspectType],s=(t=this.dataBinding.policy)!==null&&t!==void 0?t:this.policy;if(!e)throw v.error(1205);this.data=`${this.id}-d`,this.updateTarget=s.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(t){var e;const s=t.targets[this.targetNodeId],n=j(t)&&t.hydrationStage&&t.hydrationStage!==B.hydrated;switch(this.aspectType){case y.event:s[this.data]=t,s.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case y.content:t.onUnbind(this);default:const r=(e=s[this.data])!==null&&e!==void 0?e:s[this.data]=this.dataBinding.createObserver(this,this);if(r.target=s,r.controller=t,n&&(this.aspectType===y.attribute||this.aspectType===y.booleanAttribute)){r.bind(t);break}this.updateTarget(s,this.targetAspect,r.bind(t),t);break}}unbind(t){const s=t.targets[this.targetNodeId].$fastView;s!==void 0&&s.isComposed&&(s.unbind(),s.needsBindOnly=!0)}handleEvent(t){const e=t.currentTarget[this.data];if(e.isBound){A.setEvent(t);const s=this.dataBinding.evaluate(e.source,e.context);A.setEvent(null),s!==!0&&t.preventDefault()}}handleChange(t,e){const s=e.target,n=e.controller;this.updateTarget(s,this.targetAspect,e.bind(n),n)}}T.define(E,{aspected:!0});const oe=(i,t)=>`${i}.${t}`,It={},C={index:0,node:null};function jt(i){i.startsWith("fast-")||v.warn(1204,{name:i})}const He=new Proxy(document.createElement("div"),{get(i,t){jt(t);const e=Reflect.get(i,t);return M(e)?e.bind(i):e},set(i,t,e){return jt(t),Reflect.set(i,t,e)}});class Pe{constructor(t,e,s){this.fragment=t,this.directives=e,this.policy=s,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(t,e,s,n,r){var o,c;this.nodeIds.has(s)||(this.nodeIds.add(s),this.addTargetDescriptor(e,s,n)),t.id=(o=t.id)!==null&&o!==void 0?o:L(),t.targetNodeId=s,t.targetTagName=r,t.policy=(c=t.policy)!==null&&c!==void 0?c:this.policy,this.factories.push(t)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(t,e,s){const n=this.descriptors;if(e==="r"||e==="h"||n[e])return;if(!n[t]){const o=t.lastIndexOf("."),c=t.substring(0,o),d=parseInt(t.substring(o+1));this.addTargetDescriptor(c,t,d)}let r=It[e];if(!r){const o=`_${e}`;It[e]=r={get(){var c;return(c=this[o])!==null&&c!==void 0?c:this[o]=this[t].childNodes[s]}}}n[e]=r}createView(t){const e=this.fragment.cloneNode(!0),s=Object.create(this.proto);s.r=e,s.h=t??He;for(const n of this.nodeIds)s[n];return new F(e,this.factories,s)}}function le(i,t,e,s,n,r=!1){const o=e.attributes,c=i.directives;for(let d=0,l=o.length;d<l;++d){const a=o[d],h=a.value,u=et.parse(h,c);let g=null;u===null?r&&(g=new E(ut(()=>h,i.policy)),T.assignAspect(g,a.name)):g=gt.aggregate(u,i.policy),g!==null&&(e.removeAttributeNode(a),d--,l--,i.addFactory(g,t,s,n,e.tagName))}}function ze(i,t,e,s,n){const r=et.parse(t.textContent,i.directives);if(r===null)return C.node=t.nextSibling,C.index=n+1,C;let o,c=o=t;for(let d=0,l=r.length;d<l;++d){const a=r[d];d!==0&&(n++,s=oe(e,n),o=c.parentNode.insertBefore(document.createTextNode(""),c.nextSibling)),N(a)?o.textContent=a:(o.textContent=" ",T.assignAspect(a),i.addFactory(a,e,s,n,null)),c=o}return C.index=n+1,C.node=c.nextSibling,C}function ce(i,t,e){let s=0,n=t.firstChild;for(;n;){const r=Ue(i,e,n,s);n=r.node,s=r.index}}function Ue(i,t,e,s){const n=oe(t,s);switch(e.nodeType){case 1:le(i,t,e,n,s),ce(i,e,n);break;case 3:return ze(i,e,t,n,s);case 8:const r=et.parse(e.data,i.directives);r!==null&&i.addFactory(gt.aggregate(r),t,n,s,null);break}return C.index=s+1,C.node=e.nextSibling,C}function qe(i,t){return i&&i.nodeType==8&&et.parse(i.data,t)!==null}const Lt="TEMPLATE",gt={compile(i,t,e=k.policy){let s;if(N(i)){s=document.createElement(Lt),s.innerHTML=e.createHTML(i);const o=s.content.firstElementChild;o!==null&&o.tagName===Lt&&(s=o)}else s=i;!s.content.firstChild&&!s.content.lastChild&&s.content.appendChild(document.createComment(""));const n=document.adoptNode(s.content),r=new Pe(n,t,e);return le(r,"",s,"h",0,!0),(qe(n.firstChild,t)||n.childNodes.length===1&&Object.keys(t).length>0)&&n.insertBefore(document.createComment(""),n.firstChild),ce(r,n,"r"),C.node=null,r.freeze()},setDefaultStrategy(i){this.compile=i},aggregate(i,t=k.policy){if(i.length===1)return i[0];let e,s=!1,n;const r=i.length,o=i.map(l=>N(l)?()=>l:(e=l.sourceAspect||e,s=s||l.dataBinding.isVolatile,n=n||l.dataBinding.policy,l.dataBinding.evaluate)),c=(l,a)=>{let h="";for(let u=0;u<r;++u)h+=o[u](l,a);return h},d=new E(ht(c,n??t,s));return T.assignAspect(d,e),d}},We=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,Qe=Object.create(null);class V{constructor(t,e=Qe){this.html=t,this.factories=e}createHTML(t){const e=this.factories;for(const s in e)t(e[s]);return this.html}}V.empty=new V("");T.define(V);function Ge(i,t,e,s=T.getForInstance(i)){if(s.aspected){const n=We.exec(t);n!==null&&T.assignAspect(i,n[2])}return i.createHTML(e)}class it{constructor(t,e={},s){this.policy=s,this.result=null,this.html=t,this.factories=e}compile(){return this.result===null&&(this.result=gt.compile(this.html,this.factories,this.policy)),this.result}create(t){return this.compile().createView(t)}inline(){return new V(N(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(t){if(this.result)throw v.error(1208);if(this.policy)throw v.error(1207);return this.policy=t,this}render(t,e,s){const n=this.create(s);return n.bind(t),n.appendTo(e),n}static create(t,e,s){let n="";const r=Object.create(null),o=c=>{var d;const l=(d=c.id)!==null&&d!==void 0?d:c.id=L();return r[l]=c,l};for(let c=0,d=t.length-1;c<d;++c){const l=t[c];let a=e[c],h;if(n+=l,M(a))a=new E(ht(a));else if(a instanceof tt)a=new E(a);else if(!(h=T.getForInstance(a))){const u=a;a=new E(ut(()=>u))}n+=Ge(a,l,o,h)}return new it(n+t[t.length-1],r,s)}}O(it);const yt=((i,...t)=>{if(Array.isArray(i)&&Array.isArray(i.raw))return it.create(i,t);throw v.error(1206)});yt.partial=i=>new V(i);const Vt="boolean",Ft="reflect",de=Object.freeze({locate:Xt()}),Je={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}};function Dt(i){if(i==null)return null;const t=i*1;return isNaN(t)?null:t}const Ke={toView(i){const t=Dt(i);return t&&t.toString()},fromView:Dt};class J{constructor(t,e,s=e.toLowerCase(),n=Ft,r){this.guards=new Set,this.Owner=t,this.name=e,this.attribute=s,this.mode=n,this.converter=r,this.fieldName=`_${e}`,this.callbackName=`${e}Changed`,this.hasCallback=this.callbackName in t.prototype,n===Vt&&r===void 0&&(this.converter=Je)}setValue(t,e){const s=t[this.fieldName],n=this.converter;n!==void 0&&(e=n.fromView(e)),s!==e&&(t[this.fieldName]=e,this.tryReflectToAttribute(t),this.hasCallback&&t[this.callbackName](s,e),t.$fastController.notify(this.name))}getValue(t){return b.track(t,this.name),t[this.fieldName]}onAttributeChangedCallback(t,e){this.guards.has(t)||(this.guards.add(t),this.setValue(t,e),this.guards.delete(t))}tryReflectToAttribute(t){const e=this.mode,s=this.guards;s.has(t)||e==="fromView"||dt.enqueue(()=>{s.add(t);const n=t[this.fieldName];switch(e){case Ft:const r=this.converter;k.setAttribute(t,this.attribute,r!==void 0?r.toView(n):n);break;case Vt:k.setBooleanAttribute(t,this.attribute,n);break}s.delete(t)})}static collect(t,...e){const s=[];e.push(de.locate(t));for(let n=0,r=e.length;n<r;++n){const o=e[n];if(o!==void 0)for(let c=0,d=o.length;c<d;++c){const l=o[c];N(l)?s.push(new J(t,l)):s.push(new J(t,l.property,l.attribute,l.mode,l.converter))}}return s}}function he(i,t){let e;function s(n,r){arguments.length>1&&(e.property=r),de.locate(n.constructor).push(e)}if(arguments.length>1){e={},s(i,t);return}return e=i===void 0?{}:i,s}var Xe=function(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function c(a){try{l(s.next(a))}catch(h){o(h)}}function d(a){try{l(s.throw(a))}catch(h){o(h)}}function l(a){a.done?r(a.value):n(a.value).then(c,d)}l((s=s.apply(i,t||[])).next())})};const Ht={mode:"open"},Pt={},rt=new Set,_=v.getById(x.elementRegistry,()=>Kt()),Ye={deferAndHydrate:"defer-and-hydrate"};class p{constructor(t,e=t.definition){var s;this.platformDefined=!1,N(e)&&(e={name:e}),this.type=t,this.name=e.name,this.template=e.template,this.templateOptions=e.templateOptions,this.registry=(s=e.registry)!==null&&s!==void 0?s:customElements;const n=t.prototype,r=J.collect(t,e.attributes),o=new Array(r.length),c={},d={};for(let l=0,a=r.length;l<a;++l){const h=r[l];o[l]=h.attribute,c[h.name]=h,d[h.attribute]=h,b.defineProperty(n,h)}Reflect.defineProperty(t,"observedAttributes",{value:o,enumerable:!0}),this.attributes=r,this.propertyLookup=c,this.attributeLookup=d,this.shadowOptions=e.shadowOptions===void 0?Ht:e.shadowOptions===null?void 0:Object.assign(Object.assign({},Ht),e.shadowOptions),this.elementOptions=e.elementOptions===void 0?Pt:Object.assign(Object.assign({},Pt),e.elementOptions),this.styles=m.normalize(e.styles),_.register(this),b.defineProperty(p.isRegistered,this.name),p.isRegistered[this.name]=this.type}get isDefined(){return this.platformDefined}define(t=this.registry){var e,s;const n=this.type;return t.get(this.name)||(this.platformDefined=!0,t.define(this.name,n,this.elementOptions),(s=(e=this.lifecycleCallbacks)===null||e===void 0?void 0:e.elementDidDefine)===null||s===void 0||s.call(e,this.name)),this}static compose(t,e){return rt.has(t)||_.getByType(t)?new p(class extends t{},e):new p(t,e)}static registerBaseType(t){rt.add(t)}static composeAsync(t,e){return new Promise(s=>{(rt.has(t)||_.getByType(t))&&s(new p(class extends t{},e));const n=new p(t,e);b.getNotifier(n).subscribe({handleChange:()=>{var r,o;(o=(r=n.lifecycleCallbacks)===null||r===void 0?void 0:r.templateDidUpdate)===null||o===void 0||o.call(r,n.name),s(n)}},"template")})}}p.isRegistered={};p.getByType=_.getByType;p.getForInstance=_.getForInstance;p.registerAsync=i=>Xe(void 0,void 0,void 0,function*(){return new Promise(t=>{p.isRegistered[i]&&t(p.isRegistered[i]),b.getNotifier(p.isRegistered).subscribe({handleChange:()=>t(p.isRegistered[i])},i)})});b.defineProperty(p.prototype,"template");class Ze extends MutationObserver{constructor(t){function e(s){this.callback.call(null,s.filter(n=>this.observedNodes.has(n.target)))}super(e),this.callback=t,this.observedNodes=new Set}observe(t,e){this.observedNodes.add(t),super.observe(t,e)}unobserve(t){this.observedNodes.delete(t),this.observedNodes.size<1&&this.disconnect()}}const ti=Object.freeze({create(i){const t=[],e={};let s=null,n=!1;return{source:i,context:A.default,targets:e,get isBound(){return n},addBehaviorFactory(r,o){var c,d,l,a;const h=r;h.id=(c=h.id)!==null&&c!==void 0?c:L(),h.targetNodeId=(d=h.targetNodeId)!==null&&d!==void 0?d:L(),h.targetTagName=(l=o.tagName)!==null&&l!==void 0?l:null,h.policy=(a=h.policy)!==null&&a!==void 0?a:k.policy,this.addTarget(h.targetNodeId,o),this.addBehavior(h.createBehavior())},addTarget(r,o){e[r]=o},addBehavior(r){t.push(r),n&&r.bind(this)},onUnbind(r){s===null&&(s=[]),s.push(r)},connectedCallback(r){n||(n=!0,t.forEach(o=>o.bind(this)))},disconnectedCallback(r){n&&(n=!1,s!==null&&s.forEach(o=>o.unbind(this)))}}}}),ei={bubbles:!0,composed:!0,cancelable:!0},q="isConnected",ue=new WeakMap;function I(i){var t,e;return(e=(t=i.shadowRoot)!==null&&t!==void 0?t:ue.get(i))!==null&&e!==void 0?e:null}let zt;class S extends Yt{constructor(t,e){super(t),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=t,this.definition=e,this.shadowOptions=e.shadowOptions;const s=b.getAccessors(t);if(s.length>0){const n=this.boundObservables=Object.create(null);for(let r=0,o=s.length;r<o;++r){const c=s[r].name,d=t[c];d!==void 0&&(delete t[c],n[c]=d)}}}get isConnected(){return b.track(this,q),this.stage===1}get context(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.context)!==null&&e!==void 0?e:A.default}get isBound(){var t,e;return(e=(t=this.view)===null||t===void 0?void 0:t.isBound)!==null&&e!==void 0?e:!1}get sourceLifetime(){var t;return(t=this.view)===null||t===void 0?void 0:t.sourceLifetime}get template(){var t;if(this._template===null){const e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=(t=e.template)!==null&&t!==void 0?t:null)}return this._template}set template(t){this._template!==t&&(this._template=t,this.needsInitialization||this.renderTemplate(t))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(t){if(this._shadowRootOptions===void 0&&t!==void 0){this._shadowRootOptions=t;let e=this.source.shadowRoot;e?this.hasExistingShadowRoot=!0:(e=this.source.attachShadow(t),t.mode==="closed"&&ue.set(this.source,e))}}get mainStyles(){var t;if(this._mainStyles===null){const e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=(t=e.styles)!==null&&t!==void 0?t:null)}return this._mainStyles}set mainStyles(t){this._mainStyles!==t&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=t,this.needsInitialization||this.addStyles(t))}onUnbind(t){var e;(e=this.view)===null||e===void 0||e.onUnbind(t)}addBehavior(t){var e,s;const n=(e=this.behaviors)!==null&&e!==void 0?e:this.behaviors=new Map,r=(s=n.get(t))!==null&&s!==void 0?s:0;r===0?(n.set(t,1),t.addedCallback&&t.addedCallback(this),t.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&t.connectedCallback(this)):n.set(t,r+1)}removeBehavior(t,e=!1){const s=this.behaviors;if(s===null)return;const n=s.get(t);n!==void 0&&(n===1||e?(s.delete(t),t.disconnectedCallback&&this.stage!==3&&t.disconnectedCallback(this),t.removedCallback&&t.removedCallback(this)):s.set(t,n-1))}addStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=I(s))!==null&&e!==void 0?e:this.source).append(t);else if(!t.isAttachedTo(s)){const n=t.behaviors;if(t.addStylesTo(s),n!==null)for(let r=0,o=n.length;r<o;++r)this.addBehavior(n[r])}}removeStyles(t){var e;if(!t)return;const s=this.source;if(t instanceof HTMLElement)((e=I(s))!==null&&e!==void 0?e:s).removeChild(t);else if(t.isAttachedTo(s)){const n=t.behaviors;if(t.removeStylesFrom(s),n!==null)for(let r=0,o=n.length;r<o;++r)this.removeBehavior(n[r])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,b.notify(this,q))}bindObservables(){if(this.boundObservables!==null){const t=this.source,e=this.boundObservables,s=Object.keys(e);for(let n=0,r=s.length;n<r;++n){const o=s[n];t[o]=e[o]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){const t=this.behaviors;if(t!==null){this.guardBehaviorConnection=!0;for(const e of t.keys())e.connectedCallback&&e.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){const t=this.behaviors;if(t!==null)for(const e of t.keys())e.disconnectedCallback&&e.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,b.notify(this,q),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(t,e,s){const n=this.definition.attributeLookup[t];n!==void 0&&n.onAttributeChangedCallback(this.source,s)}emit(t,e,s){return this.stage===1?this.source.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign({detail:e},ei),s))):!1}renderTemplate(t){var e;const s=this.source,n=(e=I(s))!==null&&e!==void 0?e:s;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let r=n.firstChild;r!==null;r=n.firstChild)n.removeChild(r)}t&&(this.view=t.render(s,n,s),this.view.sourceLifetime=Z.coupled)}static forCustomElement(t,e=!1){const s=t.$fastController;if(s!==void 0&&!e)return s;const n=p.getForInstance(t);if(n===void 0)throw v.error(1401);return b.getNotifier(n).subscribe({handleChange:()=>{S.forCustomElement(t,!0),t.$fastController.connect()}},"template"),b.getNotifier(n).subscribe({handleChange:()=>{S.forCustomElement(t,!0),t.$fastController.connect()}},"shadowOptions"),t.$fastController=new zt(t,n)}static setStrategy(t){zt=t}}O(S);S.setStrategy(S);function K(i){var t;return"adoptedStyleSheets"in i?i:(t=I(i))!==null&&t!==void 0?t:i.getRootNode()}class st{constructor(t){const e=st.styleSheetCache;this.sheets=t.map(s=>{if(s instanceof CSSStyleSheet)return s;let n=e.get(s);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(s),e.set(s,n)),n})}addStylesTo(t){fe(K(t),this.sheets)}removeStylesFrom(t){pe(K(t),this.sheets)}}st.styleSheetCache=new Map;let ii=0;const si=()=>`fast-${++ii}`;function Ut(i){return i===document?document.body:i}class ni{constructor(t){this.styles=t,this.styleClass=si()}addStylesTo(t){t=Ut(K(t));const e=this.styles,s=this.styleClass;for(let n=0;n<e.length;n++){const r=document.createElement("style");r.innerHTML=e[n],r.className=s,t.append(r)}}removeStylesFrom(t){t=Ut(K(t));const e=t.querySelectorAll(`.${this.styleClass}`);for(let s=0,n=e.length;s<n;++s)t.removeChild(e[s])}}let fe=(i,t)=>{i.adoptedStyleSheets=[...i.adoptedStyleSheets,...t]},pe=(i,t)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(m.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),fe=(i,t)=>{i.adoptedStyleSheets.push(...t)},pe=(i,t)=>{for(const e of t){const s=i.adoptedStyleSheets.indexOf(e);s!==-1&&i.adoptedStyleSheets.splice(s,1)}}}catch{}m.setDefaultStrategy(st)}else m.setDefaultStrategy(ni);const D="defer-hydration",at="needs-hydration";class f extends S{get shadowOptions(){return super.shadowOptions}set shadowOptions(t){super.shadowOptions=t,(this.hasExistingShadowRoot||t!==void 0&&!this.template)&&this.definition.templateOptions===Ye.deferAndHydrate&&(this.source.toggleAttribute(D,!0),this.source.toggleAttribute(at,!0))}addHydratingInstance(){if(!f.hydratingInstances)return;const t=this.definition.name;let e=f.hydratingInstances.get(t);e||(e=new Set,f.hydratingInstances.set(t,e)),e.add(this.source)}static config(t){return f.lifecycleCallbacks=t,this}static hydrationObserverHandler(t){for(const e of t)e.target.hasAttribute(D)||(f.hydrationObserver.unobserve(e.target),e.target.$fastController.connect())}static checkHydrationComplete(t){var e,s,n;if(t.didTimeout){f.idleCallbackId=requestIdleCallback(f.checkHydrationComplete,{timeout:50});return}((e=f.hydratingInstances)===null||e===void 0?void 0:e.size)===0&&((n=(s=f.lifecycleCallbacks)===null||s===void 0?void 0:s.hydrationComplete)===null||n===void 0||n.call(s),S.setStrategy(S))}connect(){var t,e,s,n,r;if(this.needsHydration=(t=this.needsHydration)!==null&&t!==void 0?t:this.source.hasAttribute(at),this.needsHydration&&((s=(e=f.lifecycleCallbacks)===null||e===void 0?void 0:e.elementWillHydrate)===null||s===void 0||s.call(e,this.definition.name)),this.source.hasAttribute(D)){this.addHydratingInstance(),f.hydrationObserver.observe(this.source,{attributeFilter:[D]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===3){if(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.template)if(j(this.template)){const o=this.source,c=(n=I(o))!==null&&n!==void 0?n:o;let d=c.firstChild,l=c.lastChild;o.shadowRoot===null&&(w.isElementBoundaryStartMarker(d)&&(d.data="",d=d.nextSibling),w.isElementBoundaryEndMarker(l)&&(l.data="",l=l.previousSibling)),this.view=this.template.hydrate(d,l,o),(r=this.view)===null||r===void 0||r.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(at),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),b.notify(this,q)}}removeHydratingInstance(){var t,e;if(!f.hydratingInstances)return;const s=this.definition.name,n=f.hydratingInstances.get(s);(e=(t=f.lifecycleCallbacks)===null||t===void 0?void 0:t.elementDidHydrate)===null||e===void 0||e.call(t,this.definition.name),n&&(n.delete(this.source),n.size||f.hydratingInstances.delete(s),f.idleCallbackId&&cancelIdleCallback(f.idleCallbackId),f.idleCallbackId=requestIdleCallback(f.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),f.hydrationObserver.unobserve(this.source)}static install(){S.setStrategy(f)}}f.hydrationObserver=new Ze(f.hydrationObserverHandler);f.idleCallbackId=null;f.hydratingInstances=new Map;function be(i){const t=class extends i{constructor(){super(),S.forCustomElement(this)}$emit(e,s,n){return this.$fastController.emit(e,s,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,s,n){this.$fastController.onAttributeChangedCallback(e,s,n)}};return p.registerBaseType(t),t}function ri(i,t){return M(i)?p.compose(i,t):p.compose(this,i)}function ai(i,t){return M(i)?new Promise(e=>{p.composeAsync(i,t).then(s=>{e(s)})}).then(e=>e.define().type):new Promise(e=>{p.composeAsync(this,i).then(s=>{e(s)})}).then(e=>e.define().type)}function oi(i,t){return M(i)?p.compose(i,t).define().type:p.compose(this,i).define().type}function li(i){return be(i)}const ci=Object.assign(be(HTMLElement),{from:li,define:oi,compose:ri,defineAsync:ai});function di(i,t){return i instanceof Function?i(t):i}const qt=new Set,ot=new Map,hi=i=>(t="vwc")=>{const e=n=>`${t}-${n}`,s=n=>{const r=e(n.name);let o=n.type;if(o.componentName=n.name,qt.has(r))return;ot.has(o)&&ot.get(o)!==r&&(o=class extends o{}),qt.add(r),ot.set(o,r);for(const a of n.dependencies)s(a);const c=new Map([[n.type,r],...n.dependencies.map(a=>[a.type,e(a.name)])]),l={tagFor:(a,h)=>{if(!c.has(a))throw new Error(`Could not get tag for ${a.name} as it is not a dependency of ${n.name}.`);const u=c.get(a);return h?u:yt.partial(u)},tagForNonDependency(a){return e(a)}};p.compose(o,{...n.options,template:di(n.template,l),name:`${t}-${n.name}`}).define()};s(i)},ui=(i,t,e,s,n)=>({name:i,type:t,template:e,dependencies:s,options:n}),Wt=new WeakMap,ge=i=>{let t=Wt.get(i);return t||(t=[],Wt.set(i,t)),t},fi=(i,t)=>{ge(i).push(t)},pi=(i,t)=>{ge(i).forEach(e=>e(i,t))},bi=i=>i==="delegate",Qt=i=>`vvd${i.charAt(0).toUpperCase()}${i.slice(1)}`,ye=(i,t)=>{if(bi(i._vividAriaBehaviour)){const e=i[t];i[`_${t}`]=null,i.removeAttribute(Y(t)),i[`_${t}`]=e,i[t]!==null?i.dataset[Qt(t)]=i[t]:delete i.dataset[Qt(t)]}else k.setAttribute(i,Y(t),i[t])},X=new WeakMap,gi=(i,t)=>{const e=X.get(i);e?e.add(t):X.set(i,new Set([t]))},yi=(i,t)=>{i.isConnected?ye(i,t):gi(i,t)},vi=i=>{const t=X.get(i);if(t){for(const e of t)ye(i,e);X.delete(i)}},ct=["role","ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColIndexText","ariaColSpan","ariaCurrent","ariaDescription","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowIndexText","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText","ariaRelevant"],Y=i=>i.replace("aria","aria-").toLowerCase(),mi=i=>{class t extends i{constructor(...s){super(...s),this._vividAriaBehaviour="default";for(const n of ct)this[`_${n}`]=null}connectedCallback(){super.connectedCallback(),vi(this)}}for(const e of ct)he({attribute:Y(e),mode:"fromView"})(t.prototype,e),t.prototype[`${e}Changed`]=function(){yi(this,e),this._vividAriaBehaviour!=="default"&&pi(this,e)};return t};function wi(){const i=new WeakMap;return t=>(i.has(t)||i.set(t,[]),i.get(t))}const ve=wi(),Si=i=>(t,e)=>{ve(t.constructor).push({newPropertyName:e,...i})},Ci=i=>{class t extends i{#t(s){let n=!1,r=!1;const o=a=>r&&s.fromDeprecated(a[s.deprecatedPropertyName])===a[s.newPropertyName],c=a=>n&&s.toDeprecated&&s.toDeprecated(a[s.newPropertyName])===a[s.deprecatedPropertyName],d={handleChange(a,h){if(h===s.newPropertyName){if(n=!0,!s.toDeprecated||o(a))return;a[s.deprecatedPropertyName]=s.toDeprecated(a[s.newPropertyName])}if(h===s.deprecatedPropertyName){if(r=!0,c(a))return;a[s.newPropertyName]=s.fromDeprecated(a[s.deprecatedPropertyName])}}},l=b.getNotifier(this);l.subscribe(d,s.newPropertyName),l.subscribe(d,s.deprecatedPropertyName)}constructor(...s){super(...s);for(const n of ve(this.constructor))this.#t(n)}}return t};class ki extends mi(Ci(ci)){static{this.VIVID_VERSION="5.15.1"}connectedCallback(){super.connectedCallback();const t=this.constructor.componentName;this.setAttribute("data-vvd-component",t)}}exports.Binding=tt;exports.DOM=k;exports.ElementStyles=m;exports.ExecutionContext=A;exports.HTMLDirective=T;exports.HTMLView=F;exports.HydrationMarkup=w;exports.HydrationStage=B;exports.Markup=pt;exports.Observable=b;exports.StatelessAttachedAttributeDirective=ee;exports.SubscriberSet=W;exports.Updates=dt;exports.ViewBehaviorOrchestrator=ti;exports.VividElement=ki;exports.ariaAttributeName=Y;exports.ariaMixinProperties=ct;exports.attr=he;exports.commonjsGlobal=P;exports.createRegisterFunction=hi;exports.defineVividComponent=ui;exports.emptyArray=Ce;exports.getAugmentedNamespace=we;exports.getDefaultExportFromCjs=me;exports.html=yt;exports.isFunction=M;exports.isHydratable=j;exports.isString=N;exports.noop=Gt;exports.nullableNumberConverter=Ke;exports.observable=$e;exports.oneTime=ut;exports.oneWay=ht;exports.replaces=Si;exports.subscribeToAriaPropertyChanges=fi;exports.volatile=Ne;
|
|
1
|
+
var e,t=`fast-kernel`;try{if(document.currentScript)e=document.currentScript.getAttribute(t);else{let n=document.getElementsByTagName(`script`);e=n[n.length-1].getAttribute(t)}}catch{e=`isolate`}var n;switch(e){case`share`:n=Object.freeze({updateQueue:1,observable:2,contextEvent:3,elementRegistry:4});break;case`share-v2`:n=Object.freeze({updateQueue:1.2,observable:2.2,contextEvent:3.2,elementRegistry:4.2});break;default:let e=`-${Math.random().toString(36).substring(2,8)}`;n=Object.freeze({updateQueue:`1.2${e}`,observable:`2.2${e}`,contextEvent:`3.2${e}`,elementRegistry:`4.2${e}`});break}var r=e=>typeof e==`function`,i=e=>typeof e==`string`,a=()=>void 0;(function(){if(!(typeof globalThis<`u`))if(typeof global<`u`)global.globalThis=global;else if(typeof self<`u`)self.globalThis=self;else if(typeof window<`u`)window.globalThis=window;else{let e=Function(`return this`)();e.globalThis=e}})(),(function(){`requestIdleCallback`in globalThis||(globalThis.requestIdleCallback=function(e,t){let n=Date.now();return setTimeout(()=>{e({didTimeout:t?.timeout?Date.now()-n>=t.timeout:!1,timeRemaining:()=>0})},1)},globalThis.cancelIdleCallback=function(e){clearTimeout(e)})})();var o={configurable:!1,enumerable:!1,writable:!1};globalThis.FAST===void 0&&Reflect.defineProperty(globalThis,`FAST`,Object.assign({value:Object.create(null)},o));var s=globalThis.FAST;if(s.getById===void 0){let e=Object.create(null);Reflect.defineProperty(s,`getById`,Object.assign({value(t,n){let r=e[t];return r===void 0&&(r=n?e[t]=n():null),r}},o))}s.error===void 0&&Object.assign(s,{warn(){},error(e){return Error(`Error ${e}`)},addMessages(){}});var c=Object.freeze([]);function l(){let e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)},getForInstance(t){if(t!=null)return e.get(t.constructor)}})}function u(){let e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let r=Reflect.getPrototypeOf(t);for(;n===void 0&&r!==null;)n=e.get(r),r=Reflect.getPrototypeOf(r);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}function d(e){e.prototype.toJSON=a}var f=Object.freeze({none:0,attribute:1,booleanAttribute:2,property:3,content:4,tokenList:5,event:6}),p=e=>e,ee=globalThis.trustedTypes?globalThis.trustedTypes.createPolicy(`fast-html`,{createHTML:p}):{createHTML:p},m=Object.freeze({createHTML(e){return ee.createHTML(e)},protect(e,t,n,r){return r}}),te=m,h=Object.freeze({get policy(){return m},setPolicy(e){if(m!==te)throw s.error(1201);m=e},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,``):e.removeAttribute(t)}}),g=s.getById(n.updateQueue,()=>{let e=[],t=[],n=globalThis.requestAnimationFrame,r=!0;function i(){if(t.length)throw t.shift()}function a(n){try{n.call()}catch(n){if(r)t.push(n),setTimeout(i,0);else throw e.length=0,n}}function o(){let t=0;for(;t<e.length;)if(a(e[t]),t++,t>1024){for(let n=0,r=e.length-t;n<r;n++)e[n]=e[n+t];e.length-=t,t=0}e.length=0}function s(t){e.push(t),e.length<2&&(r?n(o):o())}return Object.freeze({enqueue:s,next:()=>new Promise(s),process:o,setMode:e=>r=e})}),_=class{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.subject=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){let t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){let t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{let n=t.indexOf(e);n!==-1&&t.splice(n,1)}}notify(e){let t=this.spillover,n=this.subject;if(t===void 0){let t=this.sub1,r=this.sub2;t!==void 0&&t.handleChange(n,e),r!==void 0&&r.handleChange(n,e)}else for(let r=0,i=t.length;r<i;++r)t[r].handleChange(n,e)}},ne=class{constructor(e){this.subscribers={},this.subjectSubscribers=null,this.subject=e}notify(e){var t,n;(t=this.subscribers[e])==null||t.notify(e),(n=this.subjectSubscribers)==null||n.notify(e)}subscribe(e,t){let n;n=t?this.subscribers[t]??(this.subscribers[t]=new _(this.subject)):this.subjectSubscribers??=new _(this.subject),n.subscribe(e)}unsubscribe(e,t){var n,r;t?(n=this.subscribers[t])==null||n.unsubscribe(e):(r=this.subjectSubscribers)==null||r.unsubscribe(e)}},v=Object.freeze({unknown:void 0,coupled:1}),y=s.getById(n.observable,()=>{let e=g.enqueue,t=/(:|&&|\|\||if|\?\.)/,n=new WeakMap,a,o=e=>{throw s.error(1101)};function c(e){let t=e.$fastController??n.get(e);return t===void 0&&(Array.isArray(e)?t=o(e):n.set(e,t=new ne(e))),t}let l=u();class f{constructor(e){this.name=e,this.field=`_${e}`,this.callback=`${e}Changed`}getValue(e){return a!==void 0&&a.watch(e,this.name),e[this.field]}setValue(e,t){let n=this.field,i=e[n];if(i!==t){e[n]=t;let a=e[this.callback];r(a)&&a.call(e,i,t),c(e).notify(this.name)}}}class p extends _{constructor(e,t,n=!1){super(e,t),this.expression=e,this.isVolatileBinding=n,this.needsRefresh=!0,this.needsQueue=!0,this.isAsync=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}setMode(e){this.isAsync=this.needsQueue=e}bind(e){this.controller=e;let t=this.observe(e.source,e.context);return!e.isBound&&this.requiresUnbind(e)&&e.onUnbind(this),t}requiresUnbind(e){return e.sourceLifetime!==v.coupled||this.first!==this.last||this.first.propertySource!==e.source}unbind(e){this.dispose()}observe(e,t){this.needsRefresh&&this.last!==null&&this.dispose();let n=a;a=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let r;try{r=this.expression(e,t)}finally{a=n}return r}disconnect(){this.dispose()}dispose(){if(this.last!==null){let e=this.first;for(;e!==void 0;)e.notifier.unsubscribe(this,e.propertyName),e=e.next;this.last=null,this.needsRefresh=this.needsQueue=this.isAsync}}watch(e,t){let n=this.last,r=c(e),i=n===null?this.first:{};if(i.propertySource=e,i.propertyName=t,i.notifier=r,r.subscribe(this,t),n!==null){if(!this.needsRefresh){let t;a=void 0,t=n.propertySource[n.propertyName],a=this,e===t&&(this.needsRefresh=!0)}n.next=i}this.last=i}handleChange(){this.needsQueue?(this.needsQueue=!1,e(this)):this.isAsync||this.call()}call(){this.last!==null&&(this.needsQueue=this.isAsync,this.notify(this))}*records(){let e=this.first;for(;e!==void 0;)yield e,e=e.next}}return d(p),Object.freeze({setArrayObserverFactory(e){o=e},getNotifier:c,track(e,t){a&&a.watch(e,t)},trackVolatile(){a&&(a.needsRefresh=!0)},notify(e,t){c(e).notify(t)},defineProperty(e,t){i(t)&&(t=new f(t)),l(e).push(t),Reflect.defineProperty(e,t.name,{enumerable:!0,get(){return t.getValue(this)},set(e){t.setValue(this,e)}})},getAccessors:l,binding(e,t,n=this.isVolatileBinding(e)){return new p(e,t,n)},isVolatileBinding(e){return t.test(e.toString())}})});function re(e,t){y.defineProperty(e,t)}function ie(e,t,n){return Object.assign({},n,{get(){return y.trackVolatile(),n.get.apply(this)}})}var ae=s.getById(n.contextEvent,()=>{let e=null;return{get(){return e},set(t){e=t}}}),b=Object.freeze({default:{index:0,length:0,get event(){return b.getEvent()},eventDetail(){return this.event.detail},eventTarget(){return this.event.target}},getEvent(){return ae.get()},setEvent(e){ae.set(e)}}),x=class{constructor(e,t,n=!1){this.evaluate=e,this.policy=t,this.isVolatile=n}},oe=class extends x{createObserver(e){return y.binding(this.evaluate,e,this.isVolatile)}};function se(e,t,n=y.isVolatileBinding(e)){return new oe(e,t,n)}var ce=class extends x{createObserver(){return this}bind(e){return this.evaluate(e.source,e.context)}};d(ce);function le(e,t){return new ce(e,t)}var ue;function de(e){return e.map(e=>e instanceof S?de(e.styles):[e]).reduce((e,t)=>e.concat(t),[])}var S=class e{constructor(t){this.styles=t,this.targets=new WeakSet,this._strategy=null,this.behaviors=t.map(t=>t instanceof e?t.behaviors:null).reduce((e,t)=>t===null?e:e===null?t:e.concat(t),null)}get strategy(){return this._strategy===null&&this.withStrategy(ue),this._strategy}addStylesTo(e){this.strategy.addStylesTo(e),this.targets.add(e)}removeStylesFrom(e){this.strategy.removeStylesFrom(e),this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}withStrategy(e){return this._strategy=new e(de(this.styles)),this}static setDefaultStrategy(e){ue=e}static normalize(t){return t===void 0?void 0:Array.isArray(t)?new e(t):t instanceof e?t:new e([t])}};S.supportsAdoptedStyleSheets=Array.isArray(document.adoptedStyleSheets)&&`replace`in CSSStyleSheet.prototype;var fe=/fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/,pe=/fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/,me=/fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/,he=/fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/,ge=/^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/,_e=/fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;function ve(e){return e&&e.nodeType===Node.COMMENT_NODE}var C=Object.freeze({attributeMarkerName:`data-fe-b`,attributeBindingSeparator:` `,contentBindingStartMarker(e,t){return`fe-b$$start$$${e}$$${t}$$fe-b`},contentBindingEndMarker(e,t){return`fe-b$$end$$${e}$$${t}$$fe-b`},repeatStartMarker(e){return`fe-repeat$$start$$${e}$$fe-repeat`},repeatEndMarker(e){return`fe-repeat$$end$$${e}$$fe-repeat`},isContentBindingStartMarker(e){return fe.test(e)},isContentBindingEndMarker(e){return pe.test(e)},isRepeatViewStartMarker(e){return me.test(e)},isRepeatViewEndMarker(e){return he.test(e)},isElementBoundaryStartMarker(e){return ve(e)&&ge.test(e.data.trim())},isElementBoundaryEndMarker(e){return ve(e)&&_e.test(e.data)},parseAttributeBinding(e){let t=e.getAttribute(this.attributeMarkerName);return t===null?t:t.split(this.attributeBindingSeparator).map(e=>parseInt(e))},parseEnumeratedAttributeBinding(e){let t=[],n=this.attributeMarkerName.length+1,r=`${this.attributeMarkerName}-`;for(let i of e.getAttributeNames())if(i.startsWith(r)){let e=Number(i.slice(n));if(!Number.isNaN(e))t.push(e);else throw Error(`Invalid attribute marker name: ${i}. Expected format is ${r}<number>.`)}return t.length===0?null:t},parseContentBindingStartMarker(e){return xe(fe,e)},parseContentBindingEndMarker(e){return xe(pe,e)},parseRepeatStartMarker(e){return ye(me,e)},parseRepeatEndMarker(e){return ye(he,e)},parseElementBoundaryStartMarker(e){return be(ge,e.trim())},parseElementBoundaryEndMarker(e){return be(_e,e)}});function ye(e,t){let n=e.exec(t);return n===null?n:parseInt(n[1])}function be(e,t){let n=e.exec(t);return n===null?n:n[1]}function xe(e,t){let n=e.exec(t);return n===null?n:[parseInt(n[1]),n[2]]}var w=Symbol.for(`fe-hydration`);function T(e){return e[w]===w}var Se=`fast-${Math.random().toString(36).substring(2,8)}`,E=`${Se}{`,D=`}${Se}`,Ce=D.length,we=0,O=()=>`${Se}-${++we}`,Te=Object.freeze({interpolation:e=>`${E}${e}${D}`,attribute:e=>`${O()}="${E}${e}${D}"`,comment:e=>`<!--${E}${e}${D}-->`}),k=Object.freeze({parse(e,t){let n=e.split(E);if(n.length===1)return null;let r=[];for(let e=0,i=n.length;e<i;++e){let i=n[e],a=i.indexOf(D),o;if(a===-1)o=i;else{let e=i.substring(0,a);r.push(t[e]),o=i.substring(a+Ce)}o!==``&&r.push(o)}return r}}),A=l(),j=Object.freeze({getForInstance:A.getForInstance,getByType:A.getByType,define(e,t){return t||={},t.type=e,A.register(t),e},assignAspect(e,t){if(!t){e.aspectType=f.content;return}switch(e.sourceAspect=t,t[0]){case`:`:e.targetAspect=t.substring(1),e.aspectType=e.targetAspect===`classList`?f.tokenList:f.property;break;case`?`:e.targetAspect=t.substring(1),e.aspectType=f.booleanAttribute;break;case`@`:e.targetAspect=t.substring(1),e.aspectType=f.event;break;default:e.targetAspect=t,e.aspectType=f.attribute;break}}}),Ee=class{constructor(e){this.options=e}createHTML(e){return Te.attribute(e(this))}createBehavior(){return this}};d(Ee);var De=class extends Error{constructor(e,t,n){super(e),this.factories=t,this.node=n}};function M(e){return e.nodeType===Node.COMMENT_NODE}function Oe(e){return e.nodeType===Node.TEXT_NODE}function ke(e,t){let n=document.createRange();return n.setStart(e,0),n.setEnd(t,M(t)||Oe(t)?t.data.length:t.childNodes.length),n}function Ae(e){return e instanceof DocumentFragment&&`mode`in e}function je(e,t,n){let r=ke(e,t),i=r.commonAncestorContainer,a=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT+NodeFilter.SHOW_COMMENT+NodeFilter.SHOW_TEXT,{acceptNode(e){return r.comparePoint(e,0)===0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),o={},s={},c=a.currentNode=e;for(;c!==null;){switch(c.nodeType){case Node.ELEMENT_NODE:Me(c,n,o);break;case Node.COMMENT_NODE:Ne(c,a,n,o,s);break}c=a.nextNode()}return r.detach(),{targets:o,boundaries:s}}function Me(e,t,n){let r=C.parseAttributeBinding(e)??C.parseEnumeratedAttributeBinding(e);if(r!==null){for(let i of r){if(!t[i])throw new De(`HydrationView was unable to successfully target factory on ${e.nodeName} inside ${e.getRootNode().host.nodeName}. This likely indicates a template mismatch between SSR rendering and hydration.`,t,e);N(t[i],e,n)}e.removeAttribute(C.attributeMarkerName)}}function Ne(e,t,n,r,i){if(C.isElementBoundaryStartMarker(e)){Pe(e,t);return}if(C.isContentBindingStartMarker(e.data)){let a=C.parseContentBindingStartMarker(e.data);if(a===null)return;let[o,s]=a,c=n[o],l=[],u=t.nextSibling();e.data=``;let d=u;for(;u!==null;){if(M(u)){let e=C.parseContentBindingEndMarker(u.data);if(e&&e[1]===s)break}l.push(u),u=t.nextSibling()}if(u===null){let t=e.getRootNode();throw Error(`Error hydrating Comment node inside "${Ae(t)?t.host.nodeName:t.nodeName}".`)}u.data=``,l.length===1&&Oe(l[0])?N(c,l[0],r):(u!==d&&u.previousSibling!==null&&(i[c.targetNodeId]={first:d,last:u.previousSibling}),N(c,u.parentNode.insertBefore(document.createTextNode(``),u),r))}}function Pe(e,t){let n=C.parseElementBoundaryStartMarker(e.data),r=t.nextSibling();for(;r!==null;){if(M(r)){let e=C.parseElementBoundaryEndMarker(r.data);if(e&&e===n)break}r=t.nextSibling()}}function N(e,t,n){if(e.targetNodeId===void 0)throw Error(`Factory could not be target to the node`);n[e.targetNodeId]=t}var Fe;function P(e,t){let n=e.parentNode,r=e,i;for(;r!==t;){if(i=r.nextSibling,!i)throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);n.removeChild(r),r=i}n.removeChild(t)}var Ie=class{constructor(){this.index=0,this.length=0}get event(){return b.getEvent()}get isEven(){return this.index%2==0}get isOdd(){return this.index%2!=0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}eventDetail(){return this.event.detail}eventTarget(){return this.event.target}},F=class extends Ie{constructor(e,t,n){super(),this.fragment=e,this.factories=t,this.targets=n,this.behaviors=null,this.unbindables=[],this.source=null,this.isBound=!1,this.sourceLifetime=v.unknown,this.context=this,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{let t=this.lastChild;if(e.previousSibling===t)return;let n=e.parentNode,r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,n.insertBefore(r,e),r=i;n.insertBefore(t,e)}}remove(){let e=this.fragment,t=this.lastChild,n=this.firstChild,r;for(;n!==t;)r=n.nextSibling,e.appendChild(n),n=r;e.appendChild(t)}dispose(){P(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}bind(e,t=this){if(this.source===e)return;let n=this.behaviors;if(n===null){this.source=e,this.context=t,this.behaviors=n=Array(this.factories.length);let r=this.factories;for(let e=0,t=r.length;e<t;++e){let t=r[e].createBehavior();t.bind(this),n[e]=t}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=n.length;e<t;++e)n[e].bind(this)}this.isBound=!0}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}evaluateUnbindables(){let e=this.unbindables;for(let t=0,n=e.length;t<n;++t)e[t].unbind(this);e.length=0}static disposeContiguousBatch(e){if(e.length!==0){P(e[0].firstChild,e[e.length-1].lastChild);for(let t=0,n=e.length;t<n;++t)e[t].unbind()}}};d(F),y.defineProperty(F.prototype,`index`),y.defineProperty(F.prototype,`length`);var I={unhydrated:`unhydrated`,hydrating:`hydrating`,hydrated:`hydrated`},Le=class extends Error{constructor(e,t,n,r){super(e),this.factory=t,this.fragment=n,this.templateString=r}},Re=class extends Ie{constructor(e,t,n,r){super(),this.firstChild=e,this.lastChild=t,this.sourceTemplate=n,this.hostBindingTarget=r,this[Fe]=w,this.context=this,this.source=null,this.isBound=!1,this.sourceLifetime=v.unknown,this.unbindables=[],this.fragment=null,this.behaviors=null,this._hydrationStage=I.unhydrated,this._bindingViewBoundaries={},this._targets={},this.factories=n.compile().factories}get hydrationStage(){return this._hydrationStage}get targets(){return this._targets}get bindingViewBoundaries(){return this._bindingViewBoundaries}insertBefore(e){if(this.fragment!==null)if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{let t=this.lastChild;if(e.previousSibling===t)return;let n=e.parentNode,r=this.firstChild,i;for(;r!==t;)i=r.nextSibling,n.insertBefore(r,e),r=i;n.insertBefore(t,e)}}appendTo(e){this.fragment!==null&&e.appendChild(this.fragment)}remove(){let e=this.fragment||=document.createDocumentFragment(),t=this.lastChild,n=this.firstChild,r;for(;n!==t;){if(r=n.nextSibling,!r)throw Error(`Unmatched first/last child inside "${t.getRootNode().host.nodeName}".`);e.appendChild(n),n=r}e.appendChild(t)}bind(e,t=this){if(this.hydrationStage!==I.hydrated&&(this._hydrationStage=I.hydrating),this.source===e)return;let n=this.behaviors;if(n===null){this.source=e,this.context=t;try{let{targets:e,boundaries:t}=je(this.firstChild,this.lastChild,this.factories);this._targets=e,this._bindingViewBoundaries=t}catch(e){if(e instanceof De){let t=this.sourceTemplate.html;typeof t!=`string`&&(t=t.innerHTML),e.templateString=t}throw e}this.behaviors=n=Array(this.factories.length);let r=this.factories;for(let e=0,t=r.length;e<t;++e){let t=r[e];if(t.targetNodeId===`h`&&this.hostBindingTarget&&N(t,this.hostBindingTarget,this._targets),t.targetNodeId in this.targets){let r=t.createBehavior();r.bind(this),n[e]=r}else{let e=this.sourceTemplate.html;typeof e!=`string`&&(e=e.innerHTML);let n=(this.firstChild?.getRootNode()).host?.nodeName||`unknown`,r=t,i=[`HydrationView was unable to successfully target bindings inside "<${n.toLowerCase()}>".`,`
|
|
2
|
+
Mismatch Details:`,` - Expected target node ID: "${t.targetNodeId}"`,` - Available target IDs: [${Object.keys(this.targets).join(`, `)||`none`}]`];throw t.targetTagName&&i.push(` - Expected tag name: "${t.targetTagName}"`),r.sourceAspect&&i.push(` - Source aspect: "${r.sourceAspect}"`),r.aspectType!==void 0&&i.push(` - Aspect type: ${r.aspectType}`),i.push(`
|
|
3
|
+
This usually means:`,` 1. The server-rendered HTML doesn't match the client template`,` 2. The hydration markers are missing or corrupted`,` 3. The DOM structure was modified before hydration`,`\nTemplate: ${e.slice(0,200)}${e.length>200?`...`:``}`),new Le(i.join(`
|
|
4
|
+
`),t,ke(this.firstChild,this.lastChild).cloneContents(),e)}}}else{this.source!==null&&this.evaluateUnbindables(),this.isBound=!1,this.source=e,this.context=t;for(let e=0,t=n.length;e<t;++e)n[e].bind(this)}this.isBound=!0,this._hydrationStage=I.hydrated}unbind(){!this.isBound||this.source===null||(this.evaluateUnbindables(),this.source=null,this.context=this,this.isBound=!1)}dispose(){P(this.firstChild,this.lastChild),this.unbind()}onUnbind(e){this.unbindables.push(e)}evaluateUnbindables(){let e=this.unbindables;for(let t=0,n=e.length;t<n;++t)e[t].unbind(this);e.length=0}};Fe=w,d(Re);function ze(e){return e.create!==void 0}function Be(e,t,n,r){if(n??=``,ze(n)){e.textContent=``;let t=e.$fastView;if(t===void 0)if(T(r)&&T(n)&&r.bindingViewBoundaries[this.targetNodeId]!==void 0&&r.hydrationStage!==I.hydrated){let e=r.bindingViewBoundaries[this.targetNodeId];t=n.hydrate(e.first,e.last)}else t=n.create();else e.$fastTemplate!==n&&(t.isComposed&&(t.remove(),t.unbind()),t=n.create());t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(r.source,r.context)):(t.isComposed=!0,t.bind(r.source,r.context),t.insertBefore(e),e.$fastView=t,e.$fastTemplate=n)}else{let t=e.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),e.textContent=n}}function Ve(e,t,n){let r=`${this.id}-t`,i=e[r]??(e[r]={v:0,cv:Object.create(null)}),a=i.cv,o=i.v,s=e[t];if(n!=null&&n.length){let e=n.split(/\s+/);for(let t=0,n=e.length;t<n;++t){let n=e[t];n!==``&&(a[n]=o,s.add(n))}}if(i.v=o+1,o!==0){--o;for(let e in a)a[e]===o&&s.remove(e)}}var He={[f.attribute]:h.setAttribute,[f.booleanAttribute]:h.setBooleanAttribute,[f.property]:(e,t,n)=>e[t]=n,[f.content]:Be,[f.tokenList]:Ve,[f.event]:()=>void 0},L=class{constructor(e){this.dataBinding=e,this.updateTarget=null,this.aspectType=f.content}createHTML(e){return Te.interpolation(e(this))}createBehavior(){if(this.updateTarget===null){let e=He[this.aspectType],t=this.dataBinding.policy??this.policy;if(!e)throw s.error(1205);this.data=`${this.id}-d`,this.updateTarget=t.protect(this.targetTagName,this.aspectType,this.targetAspect,e)}return this}bind(e){let t=e.targets[this.targetNodeId],n=T(e)&&e.hydrationStage&&e.hydrationStage!==I.hydrated;switch(this.aspectType){case f.event:t[this.data]=e,t.addEventListener(this.targetAspect,this,this.dataBinding.options);break;case f.content:e.onUnbind(this);default:let r=t[this.data]??(t[this.data]=this.dataBinding.createObserver(this,this));if(r.target=t,r.controller=e,n&&(this.aspectType===f.attribute||this.aspectType===f.booleanAttribute)){r.bind(e);break}this.updateTarget(t,this.targetAspect,r.bind(e),e);break}}unbind(e){let t=e.targets[this.targetNodeId].$fastView;t!==void 0&&t.isComposed&&(t.unbind(),t.needsBindOnly=!0)}handleEvent(e){let t=e.currentTarget[this.data];if(t.isBound){b.setEvent(e);let n=this.dataBinding.evaluate(t.source,t.context);b.setEvent(null),n!==!0&&e.preventDefault()}}handleChange(e,t){let n=t.target,r=t.controller;this.updateTarget(n,this.targetAspect,t.bind(r),r)}};j.define(L,{aspected:!0});var Ue=(e,t)=>`${e}.${t}`,We={},R={index:0,node:null};function Ge(e){e.startsWith(`fast-`)||s.warn(1204,{name:e})}var Ke=new Proxy(document.createElement(`div`),{get(e,t){Ge(t);let n=Reflect.get(e,t);return r(n)?n.bind(e):n},set(e,t,n){return Ge(t),Reflect.set(e,t,n)}}),qe=class{constructor(e,t,n){this.fragment=e,this.directives=t,this.policy=n,this.proto=null,this.nodeIds=new Set,this.descriptors={},this.factories=[]}addFactory(e,t,n,r,i){this.nodeIds.has(n)||(this.nodeIds.add(n),this.addTargetDescriptor(t,n,r)),e.id=e.id??O(),e.targetNodeId=n,e.targetTagName=i,e.policy=e.policy??this.policy,this.factories.push(e)}freeze(){return this.proto=Object.create(null,this.descriptors),this}addTargetDescriptor(e,t,n){let r=this.descriptors;if(t===`r`||t===`h`||r[t])return;if(!r[e]){let t=e.lastIndexOf(`.`),n=e.substring(0,t),r=parseInt(e.substring(t+1));this.addTargetDescriptor(n,e,r)}let i=We[t];if(!i){let r=`_${t}`;We[t]=i={get(){return this[r]??(this[r]=this[e].childNodes[n])}}}r[t]=i}createView(e){let t=this.fragment.cloneNode(!0),n=Object.create(this.proto);n.r=t,n.h=e??Ke;for(let e of this.nodeIds)n[e];return new F(t,this.factories,n)}};function Je(e,t,n,r,i,a=!1){let o=n.attributes,s=e.directives;for(let c=0,l=o.length;c<l;++c){let u=o[c],d=u.value,f=k.parse(d,s),p=null;f===null?a&&(p=new L(le(()=>d,e.policy)),j.assignAspect(p,u.name)):p=z.aggregate(f,e.policy),p!==null&&(n.removeAttributeNode(u),c--,l--,e.addFactory(p,t,r,i,n.tagName))}}function Ye(e,t,n,r,a){let o=k.parse(t.textContent,e.directives);if(o===null)return R.node=t.nextSibling,R.index=a+1,R;let s,c=s=t;for(let t=0,l=o.length;t<l;++t){let l=o[t];t!==0&&(a++,r=Ue(n,a),s=c.parentNode.insertBefore(document.createTextNode(``),c.nextSibling)),i(l)?s.textContent=l:(s.textContent=` `,j.assignAspect(l),e.addFactory(l,n,r,a,null)),c=s}return R.index=a+1,R.node=c.nextSibling,R}function Xe(e,t,n){let r=0,i=t.firstChild;for(;i;){let t=Ze(e,n,i,r);i=t.node,r=t.index}}function Ze(e,t,n,r){let i=Ue(t,r);switch(n.nodeType){case 1:Je(e,t,n,i,r),Xe(e,n,i);break;case 3:return Ye(e,n,t,i,r);case 8:let a=k.parse(n.data,e.directives);a!==null&&e.addFactory(z.aggregate(a),t,i,r,null);break}return R.index=r+1,R.node=n.nextSibling,R}function Qe(e,t){return e&&e.nodeType==8&&k.parse(e.data,t)!==null}var $e=`TEMPLATE`,z={compile(e,t,n=h.policy){let r;if(i(e)){r=document.createElement($e),r.innerHTML=n.createHTML(e);let t=r.content.firstElementChild;t!==null&&t.tagName===$e&&(r=t)}else r=e;!r.content.firstChild&&!r.content.lastChild&&r.content.appendChild(document.createComment(``));let a=document.adoptNode(r.content),o=new qe(a,t,n);return Je(o,``,r,`h`,0,!0),(Qe(a.firstChild,t)||a.childNodes.length===1&&Object.keys(t).length>0)&&a.insertBefore(document.createComment(``),a.firstChild),Xe(o,a,`r`),R.node=null,o.freeze()},setDefaultStrategy(e){this.compile=e},aggregate(e,t=h.policy){if(e.length===1)return e[0];let n,r=!1,a,o=e.length,s=e.map(e=>i(e)?()=>e:(n=e.sourceAspect||n,r||=e.dataBinding.isVolatile,a||=e.dataBinding.policy,e.dataBinding.evaluate)),c=new L(se((e,t)=>{let n=``;for(let r=0;r<o;++r)n+=s[r](e,t);return n},a??t,r));return j.assignAspect(c,n),c}},et=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,tt=Object.create(null),B=class{constructor(e,t=tt){this.html=e,this.factories=t}createHTML(e){let t=this.factories;for(let n in t)e(t[n]);return this.html}};B.empty=new B(``),j.define(B);function nt(e,t,n,r=j.getForInstance(e)){if(r.aspected){let n=et.exec(t);n!==null&&j.assignAspect(e,n[2])}return e.createHTML(n)}var rt=class e{constructor(e,t={},n){this.policy=n,this.result=null,this.html=e,this.factories=t}compile(){return this.result===null&&(this.result=z.compile(this.html,this.factories,this.policy)),this.result}create(e){return this.compile().createView(e)}inline(){return new B(i(this.html)?this.html:this.html.innerHTML,this.factories)}withPolicy(e){if(this.result)throw s.error(1208);if(this.policy)throw s.error(1207);return this.policy=e,this}render(e,t,n){let r=this.create(n);return r.bind(e),r.appendTo(t),r}static create(t,n,i){let a=``,o=Object.create(null),s=e=>{let t=e.id??=O();return o[t]=e,t};for(let e=0,i=t.length-1;e<i;++e){let i=t[e],o=n[e],c;if(a+=i,r(o))o=new L(se(o));else if(o instanceof x)o=new L(o);else if(!(c=j.getForInstance(o))){let e=o;o=new L(le(()=>e))}a+=nt(o,i,s,c)}return new e(a+t[t.length-1],o,i)}};d(rt);var V=((e,...t)=>{if(Array.isArray(e)&&Array.isArray(e.raw))return rt.create(e,t);throw s.error(1206)});V.partial=e=>new B(e);var it=`boolean`,at=`reflect`,ot=Object.freeze({locate:u()}),st={toView(e){return e?`true`:`false`},fromView(e){return!(e==null||e===`false`||e===!1||e===0)}};function ct(e){if(e==null)return null;let t=e*1;return isNaN(t)?null:t}var lt={toView(e){let t=ct(e);return t&&t.toString()},fromView:ct},ut=class e{constructor(e,t,n=t.toLowerCase(),r=at,i){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=n,this.mode=r,this.converter=i,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,r===it&&i===void 0&&(this.converter=st)}setValue(e,t){let n=e[this.fieldName],r=this.converter;r!==void 0&&(t=r.fromView(t)),n!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](n,t),e.$fastController.notify(this.name))}getValue(e){return y.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){let t=this.mode,n=this.guards;n.has(e)||t===`fromView`||g.enqueue(()=>{n.add(e);let r=e[this.fieldName];switch(t){case at:let t=this.converter;h.setAttribute(e,this.attribute,t===void 0?r:t.toView(r));break;case it:h.setBooleanAttribute(e,this.attribute,r);break}n.delete(e)})}static collect(t,...n){let r=[];n.push(ot.locate(t));for(let a=0,o=n.length;a<o;++a){let o=n[a];if(o!==void 0)for(let n=0,a=o.length;n<a;++n){let a=o[n];i(a)?r.push(new e(t,a)):r.push(new e(t,a.property,a.attribute,a.mode,a.converter))}}return r}};function dt(e,t){let n;function r(e,t){arguments.length>1&&(n.property=t),ot.locate(e.constructor).push(n)}if(arguments.length>1){n={},r(e,t);return}return n=e===void 0?{}:e,r}var ft=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},pt={mode:`open`},mt={},H=new Set,U=s.getById(n.elementRegistry,()=>l()),ht={deferAndHydrate:`defer-and-hydrate`},W=class e{constructor(t,n=t.definition){this.platformDefined=!1,i(n)&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template,this.templateOptions=n.templateOptions,this.registry=n.registry??customElements;let r=t.prototype,a=ut.collect(t,n.attributes),o=Array(a.length),s={},c={};for(let e=0,t=a.length;e<t;++e){let t=a[e];o[e]=t.attribute,s[t.name]=t,c[t.attribute]=t,y.defineProperty(r,t)}Reflect.defineProperty(t,`observedAttributes`,{value:o,enumerable:!0}),this.attributes=a,this.propertyLookup=s,this.attributeLookup=c,this.shadowOptions=n.shadowOptions===void 0?pt:n.shadowOptions===null?void 0:Object.assign(Object.assign({},pt),n.shadowOptions),this.elementOptions=n.elementOptions===void 0?mt:Object.assign(Object.assign({},mt),n.elementOptions),this.styles=S.normalize(n.styles),U.register(this),y.defineProperty(e.isRegistered,this.name),e.isRegistered[this.name]=this.type}get isDefined(){return this.platformDefined}define(e=this.registry){var t,n;let r=this.type;return e.get(this.name)||(this.platformDefined=!0,e.define(this.name,r,this.elementOptions),(n=(t=this.lifecycleCallbacks)?.elementDidDefine)==null||n.call(t,this.name)),this}static compose(t,n){return H.has(t)||U.getByType(t)?new e(class extends t{},n):new e(t,n)}static registerBaseType(e){H.add(e)}static composeAsync(t,n){return new Promise(r=>{(H.has(t)||U.getByType(t))&&r(new e(class extends t{},n));let i=new e(t,n);y.getNotifier(i).subscribe({handleChange:()=>{var e,t;(t=(e=i.lifecycleCallbacks)?.templateDidUpdate)==null||t.call(e,i.name),r(i)}},`template`)})}};W.isRegistered={},W.getByType=U.getByType,W.getForInstance=U.getForInstance,W.registerAsync=e=>ft(void 0,void 0,void 0,function*(){return new Promise(t=>{W.isRegistered[e]&&t(W.isRegistered[e]),y.getNotifier(W.isRegistered).subscribe({handleChange:()=>t(W.isRegistered[e])},e)})}),y.defineProperty(W.prototype,`template`);var gt=class extends MutationObserver{constructor(e){function t(e){this.callback.call(null,e.filter(e=>this.observedNodes.has(e.target)))}super(t),this.callback=e,this.observedNodes=new Set}observe(e,t){this.observedNodes.add(e),super.observe(e,t)}unobserve(e){this.observedNodes.delete(e),this.observedNodes.size<1&&this.disconnect()}},_t=Object.freeze({create(e){let t=[],n={},r=null,i=!1;return{source:e,context:b.default,targets:n,get isBound(){return i},addBehaviorFactory(e,t){let n=e;n.id=n.id??O(),n.targetNodeId=n.targetNodeId??O(),n.targetTagName=t.tagName??null,n.policy=n.policy??h.policy,this.addTarget(n.targetNodeId,t),this.addBehavior(n.createBehavior())},addTarget(e,t){n[e]=t},addBehavior(e){t.push(e),i&&e.bind(this)},onUnbind(e){r===null&&(r=[]),r.push(e)},connectedCallback(e){i||(i=!0,t.forEach(e=>e.bind(this)))},disconnectedCallback(e){i&&(i=!1,r!==null&&r.forEach(e=>e.unbind(this)))}}}}),vt={bubbles:!0,composed:!0,cancelable:!0},G=`isConnected`,yt=new WeakMap;function K(e){return e.shadowRoot??yt.get(e)??null}var bt,q=class e extends ne{constructor(e,t){super(e),this.boundObservables=null,this.needsInitialization=!0,this.hasExistingShadowRoot=!1,this._template=null,this.stage=3,this.guardBehaviorConnection=!1,this.behaviors=null,this.behaviorsConnected=!1,this._mainStyles=null,this.$fastController=this,this.view=null,this.source=e,this.definition=t,this.shadowOptions=t.shadowOptions;let n=y.getAccessors(e);if(n.length>0){let t=this.boundObservables=Object.create(null);for(let r=0,i=n.length;r<i;++r){let i=n[r].name,a=e[i];a!==void 0&&(delete e[i],t[i]=a)}}}get isConnected(){return y.track(this,G),this.stage===1}get context(){return this.view?.context??b.default}get isBound(){return this.view?.isBound??!1}get sourceLifetime(){return this.view?.sourceLifetime}get template(){if(this._template===null){let e=this.definition;this.source.resolveTemplate?this._template=this.source.resolveTemplate():e.template&&(this._template=e.template??null)}return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get shadowOptions(){return this._shadowRootOptions}set shadowOptions(e){if(this._shadowRootOptions===void 0&&e!==void 0){this._shadowRootOptions=e;let t=this.source.shadowRoot;t?this.hasExistingShadowRoot=!0:(t=this.source.attachShadow(e),e.mode===`closed`&&yt.set(this.source,t))}}get mainStyles(){if(this._mainStyles===null){let e=this.definition;this.source.resolveStyles?this._mainStyles=this.source.resolveStyles():e.styles&&(this._mainStyles=e.styles??null)}return this._mainStyles}set mainStyles(e){this._mainStyles!==e&&(this._mainStyles!==null&&this.removeStyles(this._mainStyles),this._mainStyles=e,this.needsInitialization||this.addStyles(e))}onUnbind(e){var t;(t=this.view)==null||t.onUnbind(e)}addBehavior(e){let t=this.behaviors??=new Map,n=t.get(e)??0;n===0?(t.set(e,1),e.addedCallback&&e.addedCallback(this),e.connectedCallback&&!this.guardBehaviorConnection&&(this.stage===1||this.stage===0)&&e.connectedCallback(this)):t.set(e,n+1)}removeBehavior(e,t=!1){let n=this.behaviors;if(n===null)return;let r=n.get(e);r!==void 0&&(r===1||t?(n.delete(e),e.disconnectedCallback&&this.stage!==3&&e.disconnectedCallback(this),e.removedCallback&&e.removedCallback(this)):n.set(e,r-1))}addStyles(e){if(!e)return;let t=this.source;if(e instanceof HTMLElement)(K(t)??this.source).append(e);else if(!e.isAttachedTo(t)){let n=e.behaviors;if(e.addStylesTo(t),n!==null)for(let e=0,t=n.length;e<t;++e)this.addBehavior(n[e])}}removeStyles(e){if(!e)return;let t=this.source;if(e instanceof HTMLElement)(K(t)??t).removeChild(e);else if(e.isAttachedTo(t)){let n=e.behaviors;if(e.removeStylesFrom(t),n!==null)for(let e=0,t=n.length;e<t;++e)this.removeBehavior(n[e])}}connect(){this.stage===3&&(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.needsInitialization?(this.renderTemplate(this.template),this.addStyles(this.mainStyles),this.needsInitialization=!1):this.view!==null&&this.view.bind(this.source),this.stage=1,y.notify(this,G))}bindObservables(){if(this.boundObservables!==null){let e=this.source,t=this.boundObservables,n=Object.keys(t);for(let r=0,i=n.length;r<i;++r){let i=n[r];e[i]=t[i]}this.boundObservables=null}}connectBehaviors(){if(this.behaviorsConnected===!1){let e=this.behaviors;if(e!==null){this.guardBehaviorConnection=!0;for(let t of e.keys())t.connectedCallback&&t.connectedCallback(this);this.guardBehaviorConnection=!1}this.behaviorsConnected=!0}}disconnectBehaviors(){if(this.behaviorsConnected===!0){let e=this.behaviors;if(e!==null)for(let t of e.keys())t.disconnectedCallback&&t.disconnectedCallback(this);this.behaviorsConnected=!1}}disconnect(){this.stage===1&&(this.stage=2,y.notify(this,G),this.view!==null&&this.view.unbind(),this.disconnectBehaviors(),this.stage=3)}onAttributeChangedCallback(e,t,n){let r=this.definition.attributeLookup[e];r!==void 0&&r.onAttributeChangedCallback(this.source,n)}emit(e,t,n){return this.stage===1?this.source.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},vt),n))):!1}renderTemplate(e){let t=this.source,n=K(t)??t;if(this.view!==null)this.view.dispose(),this.view=null;else if(!this.needsInitialization||this.hasExistingShadowRoot){this.hasExistingShadowRoot=!1;for(let e=n.firstChild;e!==null;e=n.firstChild)n.removeChild(e)}e&&(this.view=e.render(t,n,t),this.view.sourceLifetime=v.coupled)}static forCustomElement(t,n=!1){let r=t.$fastController;if(r!==void 0&&!n)return r;let i=W.getForInstance(t);if(i===void 0)throw s.error(1401);return y.getNotifier(i).subscribe({handleChange:()=>{e.forCustomElement(t,!0),t.$fastController.connect()}},`template`),y.getNotifier(i).subscribe({handleChange:()=>{e.forCustomElement(t,!0),t.$fastController.connect()}},`shadowOptions`),t.$fastController=new bt(t,i)}static setStrategy(e){bt=e}};d(q),q.setStrategy(q);function J(e){return`adoptedStyleSheets`in e?e:K(e)??e.getRootNode()}var xt=class e{constructor(t){let n=e.styleSheetCache;this.sheets=t.map(e=>{if(e instanceof CSSStyleSheet)return e;let t=n.get(e);return t===void 0&&(t=new CSSStyleSheet,t.replaceSync(e),n.set(e,t)),t})}addStylesTo(e){Et(J(e),this.sheets)}removeStylesFrom(e){Dt(J(e),this.sheets)}};xt.styleSheetCache=new Map;var St=0,Ct=()=>`fast-${++St}`;function wt(e){return e===document?document.body:e}var Tt=class{constructor(e){this.styles=e,this.styleClass=Ct()}addStylesTo(e){e=wt(J(e));let t=this.styles,n=this.styleClass;for(let r=0;r<t.length;r++){let i=document.createElement(`style`);i.innerHTML=t[r],i.className=n,e.append(i)}}removeStylesFrom(e){e=wt(J(e));let t=e.querySelectorAll(`.${this.styleClass}`);for(let n=0,r=t.length;n<r;++n)e.removeChild(t[n])}},Et=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},Dt=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(e=>t.indexOf(e)===-1)};if(S.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Et=(e,t)=>{e.adoptedStyleSheets.push(...t)},Dt=(e,t)=>{for(let n of t){let t=e.adoptedStyleSheets.indexOf(n);t!==-1&&e.adoptedStyleSheets.splice(t,1)}}}catch{}S.setDefaultStrategy(xt)}else S.setDefaultStrategy(Tt);var Ot=`defer-hydration`,kt=`needs-hydration`,Y=class e extends q{get shadowOptions(){return super.shadowOptions}set shadowOptions(e){super.shadowOptions=e,(this.hasExistingShadowRoot||e!==void 0&&!this.template)&&this.definition.templateOptions===ht.deferAndHydrate&&(this.source.toggleAttribute(Ot,!0),this.source.toggleAttribute(kt,!0))}addHydratingInstance(){if(!e.hydratingInstances)return;let t=this.definition.name,n=e.hydratingInstances.get(t);n||(n=new Set,e.hydratingInstances.set(t,n)),n.add(this.source)}static config(t){return e.lifecycleCallbacks=t,this}static hydrationObserverHandler(t){for(let n of t)n.target.hasAttribute(`defer-hydration`)||(e.hydrationObserver.unobserve(n.target),n.target.$fastController.connect())}static checkHydrationComplete(t){var n,r;if(t.didTimeout){e.idleCallbackId=requestIdleCallback(e.checkHydrationComplete,{timeout:50});return}e.hydratingInstances?.size===0&&((r=(n=e.lifecycleCallbacks)?.hydrationComplete)==null||r.call(n),q.setStrategy(q))}connect(){var t,n,r;if(this.needsHydration=this.needsHydration??this.source.hasAttribute(kt),this.needsHydration&&((n=(t=e.lifecycleCallbacks)?.elementWillHydrate)==null||n.call(t,this.definition.name)),this.source.hasAttribute(`defer-hydration`)){this.addHydratingInstance(),e.hydrationObserver.observe(this.source,{attributeFilter:[Ot]});return}if(!this.needsHydration){super.connect(),this.removeHydratingInstance();return}if(this.stage===3){if(this.stage=0,this.bindObservables(),this.connectBehaviors(),this.template)if(T(this.template)){let e=this.source,t=K(e)??e,n=t.firstChild,i=t.lastChild;e.shadowRoot===null&&(C.isElementBoundaryStartMarker(n)&&(n.data=``,n=n.nextSibling),C.isElementBoundaryEndMarker(i)&&(i.data=``,i=i.previousSibling)),this.view=this.template.hydrate(n,i,e),(r=this.view)==null||r.bind(this.source)}else this.renderTemplate(this.template);this.addStyles(this.mainStyles),this.stage=1,this.source.removeAttribute(kt),this.needsInitialization=this.needsHydration=!1,this.removeHydratingInstance(),y.notify(this,G)}}removeHydratingInstance(){var t,n;if(!e.hydratingInstances)return;let r=this.definition.name,i=e.hydratingInstances.get(r);(n=(t=e.lifecycleCallbacks)?.elementDidHydrate)==null||n.call(t,this.definition.name),i&&(i.delete(this.source),i.size||e.hydratingInstances.delete(r),e.idleCallbackId&&cancelIdleCallback(e.idleCallbackId),e.idleCallbackId=requestIdleCallback(e.checkHydrationComplete,{timeout:50}))}disconnect(){super.disconnect(),e.hydrationObserver.unobserve(this.source)}static install(){q.setStrategy(e)}};Y.hydrationObserver=new gt(Y.hydrationObserverHandler),Y.idleCallbackId=null,Y.hydratingInstances=new Map;function At(e){let t=class extends e{constructor(){super(),q.forCustomElement(this)}$emit(e,t,n){return this.$fastController.emit(e,t,n)}connectedCallback(){this.$fastController.connect()}disconnectedCallback(){this.$fastController.disconnect()}attributeChangedCallback(e,t,n){this.$fastController.onAttributeChangedCallback(e,t,n)}};return W.registerBaseType(t),t}function jt(e,t){return r(e)?W.compose(e,t):W.compose(this,e)}function Mt(e,t){return r(e)?new Promise(n=>{W.composeAsync(e,t).then(e=>{n(e)})}).then(e=>e.define().type):new Promise(t=>{W.composeAsync(this,e).then(e=>{t(e)})}).then(e=>e.define().type)}function Nt(e,t){return r(e)?W.compose(e,t).define().type:W.compose(this,e).define().type}function Pt(e){return At(e)}var Ft=Object.assign(At(HTMLElement),{from:Pt,define:Nt,compose:jt,defineAsync:Mt});function It(e,t){return e instanceof Function?e(t):e}var Lt=new Set,X=new Map,Rt=e=>(t=`vwc`)=>{let n=e=>`${t}-${e}`,r=e=>{let i=n(e.name),a=e.type;if(a.componentName=e.name,Lt.has(i))return;X.has(a)&&X.get(a)!==i&&(a=class extends a{}),Lt.add(i),X.set(a,i);for(let t of e.dependencies)r(t);let o=new Map([[e.type,i],...e.dependencies.map(e=>[e.type,n(e.name)])]),s={tagFor:(t,n)=>{if(!o.has(t))throw Error(`Could not get tag for ${t.name} as it is not a dependency of ${e.name}.`);let r=o.get(t);return n?r:V.partial(r)},tagForNonDependency(e){return n(e)}};W.compose(a,{...e.options,template:It(e.template,s),name:`${t}-${e.name}`}).define()};r(e)},zt=(e,t,n,r,i)=>({name:e,type:t,template:n,dependencies:r,options:i}),Bt=new WeakMap,Vt=e=>{let t=Bt.get(e);return t||(t=[],Bt.set(e,t)),t},Ht=(e,t)=>{Vt(e).push(t)},Ut=(e,t)=>{Vt(e).forEach(n=>n(e,t))},Wt=e=>e===`delegate`,Gt=e=>`vvd${e.charAt(0).toUpperCase()}${e.slice(1)}`,Kt=(e,t)=>{if(Wt(e._vividAriaBehaviour)){let n=e[t];e[`_${t}`]=null,e.removeAttribute($(t)),e[`_${t}`]=n,e[t]===null?delete e.dataset[Gt(t)]:e.dataset[Gt(t)]=e[t]}else h.setAttribute(e,$(t),e[t])},Z=new WeakMap,qt=(e,t)=>{let n=Z.get(e);n?n.add(t):Z.set(e,new Set([t]))},Jt=(e,t)=>{e.isConnected?Kt(e,t):qt(e,t)},Yt=e=>{let t=Z.get(e);if(t){for(let n of t)Kt(e,n);Z.delete(e)}},Q=`role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColIndexText.ariaColSpan.ariaCurrent.ariaDescription.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowIndexText.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText.ariaRelevant`.split(`.`),$=e=>e.replace(`aria`,`aria-`).toLowerCase(),Xt=e=>{class t extends e{constructor(...e){super(...e),this._vividAriaBehaviour=`default`;for(let e of Q)this[`_${e}`]=null}connectedCallback(){super.connectedCallback(),Yt(this)}}for(let e of Q)dt({attribute:$(e),mode:`fromView`})(t.prototype,e),t.prototype[`${e}Changed`]=function(){Jt(this,e),this._vividAriaBehaviour!==`default`&&Ut(this,e)};return t};function Zt(){let e=new WeakMap;return t=>(e.has(t)||e.set(t,[]),e.get(t))}var Qt=Zt(),$t=e=>(t,n)=>{Qt(t.constructor).push({newPropertyName:n,...e})},en=e=>{class t extends e{#e(e){let t=!1,n=!1,r=t=>n&&e.fromDeprecated(t[e.deprecatedPropertyName])===t[e.newPropertyName],i=n=>t&&e.toDeprecated&&e.toDeprecated(n[e.newPropertyName])===n[e.deprecatedPropertyName],a={handleChange(a,o){if(o===e.newPropertyName){if(t=!0,!e.toDeprecated||r(a))return;a[e.deprecatedPropertyName]=e.toDeprecated(a[e.newPropertyName])}if(o===e.deprecatedPropertyName){if(n=!0,i(a))return;a[e.newPropertyName]=e.fromDeprecated(a[e.deprecatedPropertyName])}}},o=y.getNotifier(this);o.subscribe(a,e.newPropertyName),o.subscribe(a,e.deprecatedPropertyName)}constructor(...e){super(...e);for(let e of Qt(this.constructor))this.#e(e)}}return t},tn=class extends Xt(en(Ft)){static{this.VIVID_VERSION=`5.16.0`}connectedCallback(){super.connectedCallback();let e=this.constructor.componentName;this.setAttribute(`data-vvd-component`,e)}};Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return x}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return re}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return _t}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Te}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return dt}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return tn}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return T}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return S}});
|