@vonage/vivid 5.15.0 → 5.15.1
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/README.md +1 -1
- package/accordion/definition.cjs +0 -5
- package/accordion/definition.js +0 -5
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +3 -14
- package/accordion-item/definition.cjs +1 -1
- package/accordion-item/definition.js +1 -1
- package/alert/definition.cjs +2 -2
- package/alert/definition.js +2 -2
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/definition.cjs +2 -6
- package/audio-player/definition.js +2 -6
- package/audio-player/index.cjs +1 -1
- package/audio-player/index.js +2 -8
- package/banner/definition.cjs +1 -1
- package/banner/definition.js +1 -1
- package/breadcrumb/definition.cjs +0 -1
- package/breadcrumb/definition.js +0 -1
- package/breadcrumb/index.cjs +1 -1
- package/breadcrumb/index.js +0 -1
- package/breadcrumb-item/definition.cjs +1 -1
- package/breadcrumb-item/definition.js +1 -1
- package/breadcrumb-item/index.cjs +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/bundled/attribute-binding-behaviour.cjs +1 -1
- package/bundled/attribute-binding-behaviour.js +1 -3
- package/bundled/base-color-picker.cjs +1 -1
- package/bundled/base-color-picker.js +2 -7
- package/bundled/base-progress.cjs +1 -1
- package/bundled/base-progress.js +0 -3
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +1 -10
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +90 -42
- package/bundled/children.js +1 -1
- package/bundled/definition.cjs +1 -1
- package/bundled/definition.js +1 -1
- package/bundled/definition10.cjs +1 -1
- package/bundled/definition10.js +0 -10
- package/bundled/definition11.cjs +1 -1
- package/bundled/definition11.js +0 -1
- package/bundled/definition12.cjs +2 -2
- package/bundled/definition12.js +1 -2
- package/bundled/definition13.cjs +1 -1
- package/bundled/definition13.js +1 -1
- package/bundled/definition17.cjs +1 -1
- package/bundled/definition17.js +1 -4
- package/bundled/definition18.cjs +1 -1
- package/bundled/definition18.js +6 -18
- package/bundled/definition19.cjs +2 -2
- package/bundled/definition19.js +8 -24
- package/bundled/definition2.cjs +5 -5
- package/bundled/definition2.js +26 -27
- package/bundled/definition20.cjs +1 -1
- package/bundled/definition20.js +1 -1
- package/bundled/definition22.cjs +5 -5
- package/bundled/definition22.js +2 -3
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +1 -2
- package/bundled/definition5.cjs +1 -1
- package/bundled/definition5.js +1 -6
- package/bundled/definition6.cjs +1 -1
- package/bundled/definition6.js +1 -2
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +2 -5
- package/bundled/definition8.cjs +1 -1
- package/bundled/definition8.js +2 -13
- package/bundled/definition9.js +9 -9
- package/bundled/delegates-aria.cjs +1 -1
- package/bundled/delegates-aria.js +1 -3
- package/bundled/floating-ui.dom.cjs +1 -1
- package/bundled/floating-ui.dom.js +491 -487
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +9 -18
- package/bundled/key-codes.cjs +1 -1
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +10 -27
- package/bundled/localized.cjs +1 -1
- package/bundled/localized.js +48 -48
- package/bundled/mixins.cjs +2 -2
- package/bundled/mixins.js +1 -4
- package/bundled/normalize.js +2 -2
- package/bundled/picker-field.template.cjs +1 -1
- package/bundled/picker-field.template.js +0 -1
- package/bundled/scrollIntoView.cjs +1 -1
- package/bundled/scrollIntoView.js +1 -4
- package/bundled/slider.template.cjs +1 -1
- package/bundled/slider.template.js +1 -1
- package/bundled/slottable-request.js +1 -1
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +2 -2
- package/bundled/time-selection-picker.template.js +3 -6
- package/bundled/vivid-element.cjs +3 -3
- package/bundled/vivid-element.js +302 -293
- package/button/definition.cjs +1 -1
- package/button/definition.js +1 -1
- package/calendar/definition.cjs +0 -2
- package/calendar/definition.js +1 -3
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +6 -8
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/checkbox/definition.cjs +1 -2
- package/checkbox/definition.js +1 -2
- package/color-picker/definition.cjs +1 -6
- package/color-picker/definition.js +1 -6
- package/color-picker/index.cjs +1 -1
- package/color-picker/index.js +2 -7
- package/combobox/definition.cjs +2 -8
- package/combobox/definition.js +2 -8
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +2 -9
- package/contextual-help/definition.cjs +1 -1
- package/contextual-help/definition.js +1 -1
- package/custom-elements.json +37 -720
- package/data-grid/definition.cjs +72 -85
- package/data-grid/definition.js +75 -88
- package/data-grid/index.cjs +2 -2
- package/data-grid/index.js +7 -39
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-range-picker/definition.cjs +1 -3
- package/date-range-picker/definition.js +1 -3
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +1 -5
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/dial-pad/definition.cjs +2 -11
- package/dial-pad/definition.js +3 -12
- package/dial-pad/index.cjs +1 -1
- package/dial-pad/index.js +14 -38
- package/dialog/definition.cjs +2 -3
- package/dialog/definition.js +2 -3
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -2
- package/empty-state/definition.js +1 -1
- package/fab/definition.cjs +1 -2
- package/fab/definition.js +1 -2
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -2
- package/file-picker/definition.cjs +2 -5
- package/file-picker/definition.js +3 -6
- package/file-picker/index.cjs +1 -1
- package/file-picker/index.js +1 -4
- package/icon/definition.cjs +7 -5
- package/icon/definition.js +7 -5
- package/index.cjs +95 -95
- package/index.js +18 -18
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/lib/card/card.d.ts +0 -2
- package/lib/combobox/combobox.d.ts +1 -1
- package/lib/icon/icon.d.ts +0 -1
- package/lib/menu/menu.d.ts +0 -1
- package/lib/menu-item/menu-item.d.ts +0 -1
- package/lib/pagination/pagination.d.ts +0 -3
- package/lib/select/select.d.ts +2 -2
- package/lib/table/table-head.d.ts +1 -0
- package/lib/tabs/tabs.d.ts +0 -1
- package/lib/text-field/text-field.d.ts +0 -1
- package/locales/de-DE.cjs +95 -95
- package/locales/de-DE.js +95 -95
- package/locales/en-GB.cjs +1 -1
- package/locales/en-GB.js +1 -1
- package/locales/en-US.cjs +95 -95
- package/locales/en-US.js +95 -95
- package/locales/ja-JP.cjs +94 -94
- package/locales/ja-JP.js +94 -94
- package/locales/zh-CN.cjs +94 -94
- package/locales/zh-CN.js +94 -94
- package/menu/definition.cjs +2 -3
- package/menu/definition.js +2 -3
- package/menu-item/definition.cjs +1 -1
- package/menu-item/definition.js +1 -1
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-disclosure/index.cjs +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +1 -1
- package/number-field/definition.cjs +2 -2
- package/number-field/definition.js +2 -2
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/package.json +20 -18
- package/pagination/definition.cjs +1 -3
- package/pagination/definition.js +3 -5
- package/pagination/index.cjs +3 -3
- package/pagination/index.js +4 -6
- package/popover/definition.cjs +1 -8
- package/popover/definition.js +1 -8
- package/popover/index.cjs +1 -1
- package/popover/index.js +6 -17
- package/popup/definition.cjs +1 -1
- package/popup/definition.js +1 -1
- package/radio/definition.cjs +1 -5
- package/radio/definition.js +1 -5
- package/radio-group/definition.js +2 -2
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +2 -2
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/definition.cjs +128 -43
- package/rich-text-editor/definition.js +128 -43
- package/rich-text-editor/index.cjs +12 -12
- package/rich-text-editor/index.js +1577 -1532
- package/rich-text-view/definition.js +1 -1
- package/searchable-select/definition.cjs +2 -5
- package/searchable-select/definition.js +2 -5
- package/searchable-select/index.cjs +1 -1
- package/searchable-select/index.js +2 -6
- package/select/definition.cjs +4 -14
- package/select/definition.js +5 -15
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +2 -2
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +2 -2
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +2 -5
- package/simple-color-picker/definition.cjs +18 -9
- package/simple-color-picker/definition.js +19 -10
- package/simple-color-picker/index.cjs +5 -5
- package/simple-color-picker/index.js +23 -23
- package/slider/definition.cjs +1 -6
- package/slider/definition.js +3 -8
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +2 -2
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/status/definition.cjs +9 -3
- package/status/definition.js +11 -5
- package/status/index.cjs +10 -7
- package/status/index.js +46 -39
- package/styles/core/all.css +6 -5
- package/styles/core/theme.css +6 -5
- package/styles/core/typography.css +1 -2
- package/styles/tokens/theme-dark.css +17 -21
- package/styles/tokens/theme-light.css +17 -21
- package/styles/tokens/vivid-2-compat.css +1 -2
- package/switch/definition.cjs +1 -2
- package/switch/definition.js +2 -3
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -2
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +2 -2
- package/tab-panel/definition.js +1 -1
- package/table/definition.cjs +17 -11
- package/table/definition.js +19 -13
- package/table/index.cjs +18 -14
- package/table/index.js +55 -48
- package/tabs/definition.cjs +0 -2
- package/tabs/definition.js +2 -4
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +0 -2
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +2 -2
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tag-group/definition.js +1 -1
- package/text-area/definition.cjs +1 -7
- package/text-area/definition.js +2 -8
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -7
- package/text-field/definition.cjs +0 -10
- package/text-field/definition.js +1 -11
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +2 -2
- package/toggletip/definition.cjs +0 -2
- package/toggletip/definition.js +1 -3
- package/tooltip/definition.cjs +0 -1
- package/tooltip/definition.js +1 -2
- package/tree-view/definition.cjs +0 -16
- package/tree-view/definition.js +1 -17
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +0 -16
- package/unbundled/_commonjsHelpers.cjs +6 -2
- package/unbundled/_commonjsHelpers.js +6 -2
- package/unbundled/anchored.js +1 -1
- package/unbundled/attribute-binding-behaviour.cjs +0 -1
- package/unbundled/attribute-binding-behaviour.js +0 -1
- package/unbundled/base-color-picker.cjs +0 -3
- package/unbundled/base-color-picker.js +0 -3
- package/unbundled/base-progress.cjs +0 -3
- package/unbundled/base-progress.js +0 -3
- package/unbundled/button.cjs +1 -10
- package/unbundled/button.js +1 -10
- package/unbundled/calendar-picker.template.cjs +2 -4
- package/unbundled/calendar-picker.template.js +2 -4
- package/unbundled/data-grid.options.js +1 -1
- package/unbundled/definition.cjs +349 -170
- package/unbundled/definition.js +348 -170
- package/unbundled/definition2.cjs +169 -351
- package/unbundled/definition2.js +169 -350
- package/unbundled/definition3.cjs +1 -2
- package/unbundled/definition3.js +1 -2
- package/unbundled/definition4.cjs +1 -2
- package/unbundled/definition4.js +3 -4
- package/unbundled/definition5.cjs +1 -1
- package/unbundled/definition5.js +2 -2
- package/unbundled/delegates-aria.cjs +1 -1
- package/unbundled/delegates-aria.js +1 -1
- package/unbundled/enums.js +1 -1
- package/unbundled/form-associated.cjs +4 -5
- package/unbundled/form-associated.js +4 -5
- package/unbundled/host-semantics.cjs +1 -0
- package/unbundled/host-semantics.js +2 -1
- package/unbundled/key-codes.js +1 -1
- package/unbundled/listbox.cjs +6 -14
- package/unbundled/listbox.js +6 -14
- package/unbundled/mixins.cjs +0 -2
- package/unbundled/mixins.js +2 -4
- package/unbundled/picker-field.template.cjs +1 -2
- package/unbundled/picker-field.template.js +1 -2
- package/unbundled/scrollIntoView.cjs +0 -1
- package/unbundled/scrollIntoView.js +0 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/slottable-request.cjs +2 -2
- package/unbundled/slottable-request.js +2 -2
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +1 -4
- package/unbundled/time-selection-picker.template.js +1 -4
- package/unbundled/vivid-element.cjs +2 -1
- package/unbundled/vivid-element.js +2 -1
- package/video-player/definition.cjs +7953 -7720
- package/video-player/definition.js +7955 -7722
- package/video-player/index.cjs +38 -54
- package/video-player/index.js +12785 -12735
- package/visually-hidden/definition.js +1 -1
- package/vivid.api.json +16 -341
package/bundled/vivid-element.js
CHANGED
|
@@ -38,18 +38,23 @@ switch (F) {
|
|
|
38
38
|
});
|
|
39
39
|
break;
|
|
40
40
|
}
|
|
41
|
-
const E = (i) => typeof i == "function", B = (i) => typeof i == "string",
|
|
41
|
+
const E = (i) => typeof i == "function", B = (i) => typeof i == "string", ge = () => {
|
|
42
42
|
};
|
|
43
43
|
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
44
|
-
function
|
|
44
|
+
function ui(i) {
|
|
45
45
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
if (i
|
|
47
|
+
function fi(i) {
|
|
48
|
+
if (Object.prototype.hasOwnProperty.call(i, "__esModule")) return i;
|
|
49
49
|
var t = i.default;
|
|
50
50
|
if (typeof t == "function") {
|
|
51
51
|
var e = function s() {
|
|
52
|
-
|
|
52
|
+
var n = !1;
|
|
53
|
+
try {
|
|
54
|
+
n = this instanceof s;
|
|
55
|
+
} catch {
|
|
56
|
+
}
|
|
57
|
+
return n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
|
|
53
58
|
};
|
|
54
59
|
e.prototype = t.prototype;
|
|
55
60
|
} else e = {};
|
|
@@ -63,45 +68,48 @@ function di(i) {
|
|
|
63
68
|
});
|
|
64
69
|
}), e;
|
|
65
70
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
})
|
|
92
|
-
|
|
71
|
+
var pt = {}, bt;
|
|
72
|
+
function ye() {
|
|
73
|
+
return bt || (bt = 1, (function() {
|
|
74
|
+
if (!(typeof globalThis < "u"))
|
|
75
|
+
if (typeof tt < "u")
|
|
76
|
+
tt.globalThis = tt;
|
|
77
|
+
else if (typeof self < "u")
|
|
78
|
+
self.globalThis = self;
|
|
79
|
+
else if (typeof window < "u")
|
|
80
|
+
window.globalThis = window;
|
|
81
|
+
else {
|
|
82
|
+
const t = new Function("return this")();
|
|
83
|
+
t.globalThis = t;
|
|
84
|
+
}
|
|
85
|
+
})(), (function() {
|
|
86
|
+
"requestIdleCallback" in globalThis || (globalThis.requestIdleCallback = function(e, s) {
|
|
87
|
+
const n = Date.now();
|
|
88
|
+
return setTimeout(() => {
|
|
89
|
+
e({
|
|
90
|
+
didTimeout: s?.timeout ? Date.now() - n >= s.timeout : !1,
|
|
91
|
+
timeRemaining: () => 0
|
|
92
|
+
});
|
|
93
|
+
}, 1);
|
|
94
|
+
}, globalThis.cancelIdleCallback = function(e) {
|
|
95
|
+
clearTimeout(e);
|
|
96
|
+
});
|
|
97
|
+
})()), pt;
|
|
98
|
+
}
|
|
99
|
+
ye();
|
|
100
|
+
const zt = {
|
|
93
101
|
configurable: !1,
|
|
94
102
|
enumerable: !1,
|
|
95
103
|
writable: !1
|
|
96
104
|
};
|
|
97
|
-
globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: /* @__PURE__ */ Object.create(null) },
|
|
105
|
+
globalThis.FAST === void 0 && Reflect.defineProperty(globalThis, "FAST", Object.assign({ value: /* @__PURE__ */ Object.create(null) }, zt));
|
|
98
106
|
const v = globalThis.FAST;
|
|
99
107
|
if (v.getById === void 0) {
|
|
100
108
|
const i = /* @__PURE__ */ Object.create(null);
|
|
101
109
|
Reflect.defineProperty(v, "getById", Object.assign({ value(t, e) {
|
|
102
110
|
let s = i[t];
|
|
103
111
|
return s === void 0 && (s = e ? i[t] = e() : null), s;
|
|
104
|
-
} },
|
|
112
|
+
} }, zt));
|
|
105
113
|
}
|
|
106
114
|
v.error === void 0 && Object.assign(v, {
|
|
107
115
|
warn() {
|
|
@@ -112,8 +120,8 @@ v.error === void 0 && Object.assign(v, {
|
|
|
112
120
|
addMessages() {
|
|
113
121
|
}
|
|
114
122
|
});
|
|
115
|
-
const
|
|
116
|
-
function
|
|
123
|
+
const pi = Object.freeze([]);
|
|
124
|
+
function Ut() {
|
|
117
125
|
const i = /* @__PURE__ */ new Map();
|
|
118
126
|
return Object.freeze({
|
|
119
127
|
register(t) {
|
|
@@ -128,7 +136,7 @@ function Pt() {
|
|
|
128
136
|
}
|
|
129
137
|
});
|
|
130
138
|
}
|
|
131
|
-
function
|
|
139
|
+
function qt() {
|
|
132
140
|
const i = /* @__PURE__ */ new WeakMap();
|
|
133
141
|
return function(t) {
|
|
134
142
|
let e = i.get(t);
|
|
@@ -142,7 +150,7 @@ function zt() {
|
|
|
142
150
|
};
|
|
143
151
|
}
|
|
144
152
|
function x(i) {
|
|
145
|
-
i.prototype.toJSON =
|
|
153
|
+
i.prototype.toJSON = ge;
|
|
146
154
|
}
|
|
147
155
|
const y = Object.freeze({
|
|
148
156
|
/**
|
|
@@ -173,21 +181,21 @@ const y = Object.freeze({
|
|
|
173
181
|
* An event.
|
|
174
182
|
*/
|
|
175
183
|
event: 6
|
|
176
|
-
}),
|
|
177
|
-
let
|
|
184
|
+
}), gt = (i) => i, ve = globalThis.trustedTypes ? globalThis.trustedTypes.createPolicy("fast-html", { createHTML: gt }) : { createHTML: gt };
|
|
185
|
+
let P = Object.freeze({
|
|
178
186
|
createHTML(i) {
|
|
179
|
-
return
|
|
187
|
+
return ve.createHTML(i);
|
|
180
188
|
},
|
|
181
189
|
protect(i, t, e, s) {
|
|
182
190
|
return s;
|
|
183
191
|
}
|
|
184
192
|
});
|
|
185
|
-
const
|
|
193
|
+
const me = P, T = Object.freeze({
|
|
186
194
|
/**
|
|
187
195
|
* Gets the dom policy used by the templating system.
|
|
188
196
|
*/
|
|
189
197
|
get policy() {
|
|
190
|
-
return
|
|
198
|
+
return P;
|
|
191
199
|
},
|
|
192
200
|
/**
|
|
193
201
|
* Sets the dom policy used by the templating system.
|
|
@@ -197,12 +205,12 @@ const ge = D, T = Object.freeze({
|
|
|
197
205
|
* called by the application developer at the start of their program.
|
|
198
206
|
*/
|
|
199
207
|
setPolicy(i) {
|
|
200
|
-
if (
|
|
208
|
+
if (P !== me)
|
|
201
209
|
throw v.error(
|
|
202
210
|
1201
|
|
203
211
|
/* Message.onlySetDOMPolicyOnce */
|
|
204
212
|
);
|
|
205
|
-
|
|
213
|
+
P = i;
|
|
206
214
|
},
|
|
207
215
|
/**
|
|
208
216
|
* Sets an attribute value on an element.
|
|
@@ -227,7 +235,7 @@ const ge = D, T = Object.freeze({
|
|
|
227
235
|
setBooleanAttribute(i, t, e) {
|
|
228
236
|
e ? i.setAttribute(t, "") : i.removeAttribute(t);
|
|
229
237
|
}
|
|
230
|
-
}),
|
|
238
|
+
}), Wt = v.getById(N.updateQueue, () => {
|
|
231
239
|
const i = [], t = [], e = globalThis.requestAnimationFrame;
|
|
232
240
|
let s = !0;
|
|
233
241
|
function n() {
|
|
@@ -328,7 +336,7 @@ class rt {
|
|
|
328
336
|
e[n].handleChange(s, t);
|
|
329
337
|
}
|
|
330
338
|
}
|
|
331
|
-
class
|
|
339
|
+
class Qt {
|
|
332
340
|
/**
|
|
333
341
|
* Creates an instance of PropertyChangeNotifier for the specified subject.
|
|
334
342
|
* @param subject - The object that subscribers will receive notifications for.
|
|
@@ -375,7 +383,7 @@ const J = Object.freeze({
|
|
|
375
383
|
*/
|
|
376
384
|
coupled: 1
|
|
377
385
|
}), g = v.getById(N.observable, () => {
|
|
378
|
-
const i =
|
|
386
|
+
const i = Wt.enqueue, t = /(:|&&|\|\||if|\?\.)/, e = /* @__PURE__ */ new WeakMap();
|
|
379
387
|
let s, n = (l) => {
|
|
380
388
|
throw v.error(
|
|
381
389
|
1101
|
|
@@ -385,9 +393,9 @@ const J = Object.freeze({
|
|
|
385
393
|
function r(l) {
|
|
386
394
|
var a;
|
|
387
395
|
let h = (a = l.$fastController) !== null && a !== void 0 ? a : e.get(l);
|
|
388
|
-
return h === void 0 && (Array.isArray(l) ? h = n(l) : e.set(l, h = new
|
|
396
|
+
return h === void 0 && (Array.isArray(l) ? h = n(l) : e.set(l, h = new Qt(l))), h;
|
|
389
397
|
}
|
|
390
|
-
const o =
|
|
398
|
+
const o = qt();
|
|
391
399
|
class c {
|
|
392
400
|
constructor(a) {
|
|
393
401
|
this.name = a, this.field = `_${a}`, this.callback = `${a}Changed`;
|
|
@@ -548,17 +556,17 @@ const J = Object.freeze({
|
|
|
548
556
|
}
|
|
549
557
|
});
|
|
550
558
|
});
|
|
551
|
-
function
|
|
559
|
+
function bi(i, t) {
|
|
552
560
|
g.defineProperty(i, t);
|
|
553
561
|
}
|
|
554
|
-
function
|
|
562
|
+
function gi(i, t, e) {
|
|
555
563
|
return Object.assign({}, e, {
|
|
556
564
|
get() {
|
|
557
565
|
return g.trackVolatile(), e.get.apply(this);
|
|
558
566
|
}
|
|
559
567
|
});
|
|
560
568
|
}
|
|
561
|
-
const
|
|
569
|
+
const yt = v.getById(N.contextEvent, () => {
|
|
562
570
|
let i = null;
|
|
563
571
|
return {
|
|
564
572
|
get() {
|
|
@@ -590,14 +598,14 @@ const bt = v.getById(N.contextEvent, () => {
|
|
|
590
598
|
* @returns An event object.
|
|
591
599
|
*/
|
|
592
600
|
getEvent() {
|
|
593
|
-
return
|
|
601
|
+
return yt.get();
|
|
594
602
|
},
|
|
595
603
|
/**
|
|
596
604
|
* Sets the current event.
|
|
597
605
|
* @param event - An event object.
|
|
598
606
|
*/
|
|
599
607
|
setEvent(i) {
|
|
600
|
-
|
|
608
|
+
yt.set(i);
|
|
601
609
|
}
|
|
602
610
|
});
|
|
603
611
|
class lt {
|
|
@@ -611,15 +619,15 @@ class lt {
|
|
|
611
619
|
this.evaluate = t, this.policy = e, this.isVolatile = s;
|
|
612
620
|
}
|
|
613
621
|
}
|
|
614
|
-
class
|
|
622
|
+
class we extends lt {
|
|
615
623
|
createObserver(t) {
|
|
616
624
|
return g.binding(this.evaluate, t, this.isVolatile);
|
|
617
625
|
}
|
|
618
626
|
}
|
|
619
|
-
function
|
|
620
|
-
return new
|
|
627
|
+
function Gt(i, t, e = g.isVolatileBinding(i)) {
|
|
628
|
+
return new we(i, t, e);
|
|
621
629
|
}
|
|
622
|
-
class
|
|
630
|
+
class Jt extends lt {
|
|
623
631
|
createObserver() {
|
|
624
632
|
return this;
|
|
625
633
|
}
|
|
@@ -627,13 +635,13 @@ class Qt extends lt {
|
|
|
627
635
|
return this.evaluate(t.source, t.context);
|
|
628
636
|
}
|
|
629
637
|
}
|
|
630
|
-
x(
|
|
631
|
-
function
|
|
632
|
-
return new
|
|
638
|
+
x(Jt);
|
|
639
|
+
function Kt(i, t) {
|
|
640
|
+
return new Jt(i, t);
|
|
633
641
|
}
|
|
634
|
-
let
|
|
635
|
-
function
|
|
636
|
-
return i.map((t) => t instanceof m ?
|
|
642
|
+
let vt;
|
|
643
|
+
function Xt(i) {
|
|
644
|
+
return i.map((t) => t instanceof m ? Xt(t.styles) : [t]).reduce((t, e) => t.concat(e), []);
|
|
637
645
|
}
|
|
638
646
|
class m {
|
|
639
647
|
/**
|
|
@@ -647,7 +655,7 @@ class m {
|
|
|
647
655
|
* Gets the StyleStrategy associated with these element styles.
|
|
648
656
|
*/
|
|
649
657
|
get strategy() {
|
|
650
|
-
return this._strategy === null && this.withStrategy(
|
|
658
|
+
return this._strategy === null && this.withStrategy(vt), this._strategy;
|
|
651
659
|
}
|
|
652
660
|
/** @internal */
|
|
653
661
|
addStylesTo(t) {
|
|
@@ -673,14 +681,14 @@ class m {
|
|
|
673
681
|
* @param strategy - The strategy to use.
|
|
674
682
|
*/
|
|
675
683
|
withStrategy(t) {
|
|
676
|
-
return this._strategy = new t(
|
|
684
|
+
return this._strategy = new t(Xt(this.styles)), this;
|
|
677
685
|
}
|
|
678
686
|
/**
|
|
679
687
|
* Sets the default strategy type to use when creating style strategies.
|
|
680
688
|
* @param Strategy - The strategy type to construct.
|
|
681
689
|
*/
|
|
682
690
|
static setDefaultStrategy(t) {
|
|
683
|
-
|
|
691
|
+
vt = t;
|
|
684
692
|
}
|
|
685
693
|
/**
|
|
686
694
|
* Normalizes a set of composable style options.
|
|
@@ -692,8 +700,8 @@ class m {
|
|
|
692
700
|
}
|
|
693
701
|
}
|
|
694
702
|
m.supportsAdoptedStyleSheets = Array.isArray(document.adoptedStyleSheets) && "replace" in CSSStyleSheet.prototype;
|
|
695
|
-
const
|
|
696
|
-
function
|
|
703
|
+
const mt = /fe-b\$\$start\$\$(\d+)\$\$(.+)\$\$fe-b/, wt = /fe-b\$\$end\$\$(\d+)\$\$(.+)\$\$fe-b/, St = /fe-repeat\$\$start\$\$(\d+)\$\$fe-repeat/, Ct = /fe-repeat\$\$end\$\$(\d+)\$\$fe-repeat/, kt = /^(?:.{0,1000})fe-eb\$\$start\$\$(.+?)\$\$fe-eb/, Tt = /fe-eb\$\$end\$\$(.{0,1000})\$\$fe-eb(?:.{0,1000})$/;
|
|
704
|
+
function $t(i) {
|
|
697
705
|
return i && i.nodeType === Node.COMMENT_NODE;
|
|
698
706
|
}
|
|
699
707
|
const w = Object.freeze({
|
|
@@ -712,22 +720,22 @@ const w = Object.freeze({
|
|
|
712
720
|
return `fe-repeat$$end$$${i}$$fe-repeat`;
|
|
713
721
|
},
|
|
714
722
|
isContentBindingStartMarker(i) {
|
|
715
|
-
return
|
|
723
|
+
return mt.test(i);
|
|
716
724
|
},
|
|
717
725
|
isContentBindingEndMarker(i) {
|
|
718
|
-
return
|
|
726
|
+
return wt.test(i);
|
|
719
727
|
},
|
|
720
728
|
isRepeatViewStartMarker(i) {
|
|
721
|
-
return
|
|
729
|
+
return St.test(i);
|
|
722
730
|
},
|
|
723
731
|
isRepeatViewEndMarker(i) {
|
|
724
|
-
return
|
|
732
|
+
return Ct.test(i);
|
|
725
733
|
},
|
|
726
734
|
isElementBoundaryStartMarker(i) {
|
|
727
|
-
return
|
|
735
|
+
return $t(i) && kt.test(i.data.trim());
|
|
728
736
|
},
|
|
729
737
|
isElementBoundaryEndMarker(i) {
|
|
730
|
-
return
|
|
738
|
+
return $t(i) && Tt.test(i.data);
|
|
731
739
|
},
|
|
732
740
|
/**
|
|
733
741
|
* Returns the indexes of the ViewBehaviorFactories affecting
|
|
@@ -760,49 +768,49 @@ const w = Object.freeze({
|
|
|
760
768
|
* the binding index or null if the index cannot be retrieved.
|
|
761
769
|
*/
|
|
762
770
|
parseContentBindingStartMarker(i) {
|
|
763
|
-
return
|
|
771
|
+
return xt(mt, i);
|
|
764
772
|
},
|
|
765
773
|
parseContentBindingEndMarker(i) {
|
|
766
|
-
return
|
|
774
|
+
return xt(wt, i);
|
|
767
775
|
},
|
|
768
776
|
/**
|
|
769
777
|
* Parses the index of a repeat directive from a content string.
|
|
770
778
|
*/
|
|
771
779
|
parseRepeatStartMarker(i) {
|
|
772
|
-
return
|
|
780
|
+
return Nt(St, i);
|
|
773
781
|
},
|
|
774
782
|
parseRepeatEndMarker(i) {
|
|
775
|
-
return
|
|
783
|
+
return Nt(Ct, i);
|
|
776
784
|
},
|
|
777
785
|
/**
|
|
778
786
|
* Parses element Id from element boundary markers
|
|
779
787
|
*/
|
|
780
788
|
parseElementBoundaryStartMarker(i) {
|
|
781
|
-
return
|
|
789
|
+
return Bt(kt, i.trim());
|
|
782
790
|
},
|
|
783
791
|
parseElementBoundaryEndMarker(i) {
|
|
784
|
-
return
|
|
792
|
+
return Bt(Tt, i);
|
|
785
793
|
}
|
|
786
794
|
});
|
|
787
|
-
function
|
|
795
|
+
function Nt(i, t) {
|
|
788
796
|
const e = i.exec(t);
|
|
789
797
|
return e === null ? e : parseInt(e[1]);
|
|
790
798
|
}
|
|
791
|
-
function
|
|
799
|
+
function Bt(i, t) {
|
|
792
800
|
const e = i.exec(t);
|
|
793
801
|
return e === null ? e : e[1];
|
|
794
802
|
}
|
|
795
|
-
function
|
|
803
|
+
function xt(i, t) {
|
|
796
804
|
const e = i.exec(t);
|
|
797
805
|
return e === null ? e : [parseInt(e[1]), e[2]];
|
|
798
806
|
}
|
|
799
|
-
const z = Symbol.for("fe-hydration");
|
|
807
|
+
const z = /* @__PURE__ */ Symbol.for("fe-hydration");
|
|
800
808
|
function U(i) {
|
|
801
809
|
return i[z] === z;
|
|
802
810
|
}
|
|
803
|
-
const ct = `fast-${Math.random().toString(36).substring(2, 8)}`,
|
|
804
|
-
let
|
|
805
|
-
const j = () => `${ct}-${++
|
|
811
|
+
const ct = `fast-${Math.random().toString(36).substring(2, 8)}`, D = `${ct}{`, R = `}${ct}`, Se = R.length;
|
|
812
|
+
let Ce = 0;
|
|
813
|
+
const j = () => `${ct}-${++Ce}`, Yt = Object.freeze({
|
|
806
814
|
/**
|
|
807
815
|
* Creates a placeholder string suitable for marking out a location *within*
|
|
808
816
|
* an attribute value or HTML content.
|
|
@@ -810,7 +818,7 @@ const j = () => `${ct}-${++me}`, Kt = Object.freeze({
|
|
|
810
818
|
* @remarks
|
|
811
819
|
* Used internally by binding directives.
|
|
812
820
|
*/
|
|
813
|
-
interpolation: (i) => `${
|
|
821
|
+
interpolation: (i) => `${D}${i}${R}`,
|
|
814
822
|
/**
|
|
815
823
|
* Creates a placeholder that manifests itself as an attribute on an
|
|
816
824
|
* element.
|
|
@@ -819,14 +827,14 @@ const j = () => `${ct}-${++me}`, Kt = Object.freeze({
|
|
|
819
827
|
* @remarks
|
|
820
828
|
* Used internally by attribute directives such as `ref`, `slotted`, and `children`.
|
|
821
829
|
*/
|
|
822
|
-
attribute: (i) => `${j()}="${
|
|
830
|
+
attribute: (i) => `${j()}="${D}${i}${R}"`,
|
|
823
831
|
/**
|
|
824
832
|
* Creates a placeholder that manifests itself as a marker within the DOM structure.
|
|
825
833
|
* @param index - The directive index to create the placeholder for.
|
|
826
834
|
* @remarks
|
|
827
835
|
* Used internally by structural directives such as `repeat`.
|
|
828
836
|
*/
|
|
829
|
-
comment: (i) => `<!--${
|
|
837
|
+
comment: (i) => `<!--${D}${i}${R}-->`
|
|
830
838
|
}), K = Object.freeze({
|
|
831
839
|
/**
|
|
832
840
|
* Parses text content or HTML attribute content, separating out the static strings
|
|
@@ -837,7 +845,7 @@ const j = () => `${ct}-${++me}`, Kt = Object.freeze({
|
|
|
837
845
|
* directives or null if no directives are found in the string.
|
|
838
846
|
*/
|
|
839
847
|
parse(i, t) {
|
|
840
|
-
const e = i.split(
|
|
848
|
+
const e = i.split(D);
|
|
841
849
|
if (e.length === 1)
|
|
842
850
|
return null;
|
|
843
851
|
const s = [];
|
|
@@ -848,13 +856,13 @@ const j = () => `${ct}-${++me}`, Kt = Object.freeze({
|
|
|
848
856
|
d = o;
|
|
849
857
|
else {
|
|
850
858
|
const l = o.substring(0, c);
|
|
851
|
-
s.push(t[l]), d = o.substring(c +
|
|
859
|
+
s.push(t[l]), d = o.substring(c + Se);
|
|
852
860
|
}
|
|
853
861
|
d !== "" && s.push(d);
|
|
854
862
|
}
|
|
855
863
|
return s;
|
|
856
864
|
}
|
|
857
|
-
}), et =
|
|
865
|
+
}), et = Ut(), $ = Object.freeze({
|
|
858
866
|
/**
|
|
859
867
|
* Gets the directive definition associated with the instance.
|
|
860
868
|
* @param instance - The directive instance to retrieve the definition for.
|
|
@@ -901,7 +909,7 @@ const j = () => `${ct}-${++me}`, Kt = Object.freeze({
|
|
|
901
909
|
}
|
|
902
910
|
}
|
|
903
911
|
});
|
|
904
|
-
class
|
|
912
|
+
class ke {
|
|
905
913
|
/**
|
|
906
914
|
* Creates an instance of RefDirective.
|
|
907
915
|
* @param options - The options to use in configuring the directive.
|
|
@@ -916,7 +924,7 @@ class we {
|
|
|
916
924
|
* Creates a custom attribute placeholder.
|
|
917
925
|
*/
|
|
918
926
|
createHTML(t) {
|
|
919
|
-
return
|
|
927
|
+
return Yt.attribute(t(this));
|
|
920
928
|
}
|
|
921
929
|
/**
|
|
922
930
|
* Creates a behavior.
|
|
@@ -926,8 +934,8 @@ class we {
|
|
|
926
934
|
return this;
|
|
927
935
|
}
|
|
928
936
|
}
|
|
929
|
-
x(
|
|
930
|
-
class
|
|
937
|
+
x(ke);
|
|
938
|
+
class Zt extends Error {
|
|
931
939
|
constructor(t, e, s) {
|
|
932
940
|
super(t), this.factories = e, this.node = s;
|
|
933
941
|
}
|
|
@@ -935,18 +943,18 @@ class Xt extends Error {
|
|
|
935
943
|
function dt(i) {
|
|
936
944
|
return i.nodeType === Node.COMMENT_NODE;
|
|
937
945
|
}
|
|
938
|
-
function
|
|
946
|
+
function te(i) {
|
|
939
947
|
return i.nodeType === Node.TEXT_NODE;
|
|
940
948
|
}
|
|
941
|
-
function
|
|
949
|
+
function ee(i, t) {
|
|
942
950
|
const e = document.createRange();
|
|
943
|
-
return e.setStart(i, 0), e.setEnd(t, dt(t) ||
|
|
951
|
+
return e.setStart(i, 0), e.setEnd(t, dt(t) || te(t) ? t.data.length : t.childNodes.length), e;
|
|
944
952
|
}
|
|
945
|
-
function
|
|
953
|
+
function Te(i) {
|
|
946
954
|
return i instanceof DocumentFragment && "mode" in i;
|
|
947
955
|
}
|
|
948
|
-
function
|
|
949
|
-
const s =
|
|
956
|
+
function $e(i, t, e) {
|
|
957
|
+
const s = ee(i, t), n = s.commonAncestorContainer, r = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT + NodeFilter.SHOW_COMMENT + NodeFilter.SHOW_TEXT, {
|
|
950
958
|
acceptNode(l) {
|
|
951
959
|
return s.comparePoint(l, 0) === 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
|
|
952
960
|
}
|
|
@@ -955,11 +963,11 @@ function Ce(i, t, e) {
|
|
|
955
963
|
for (; d !== null; ) {
|
|
956
964
|
switch (d.nodeType) {
|
|
957
965
|
case Node.ELEMENT_NODE: {
|
|
958
|
-
|
|
966
|
+
Ne(d, e, o);
|
|
959
967
|
break;
|
|
960
968
|
}
|
|
961
969
|
case Node.COMMENT_NODE: {
|
|
962
|
-
|
|
970
|
+
Be(d, r, e, o, c);
|
|
963
971
|
break;
|
|
964
972
|
}
|
|
965
973
|
}
|
|
@@ -967,21 +975,21 @@ function Ce(i, t, e) {
|
|
|
967
975
|
}
|
|
968
976
|
return s.detach(), { targets: o, boundaries: c };
|
|
969
977
|
}
|
|
970
|
-
function
|
|
978
|
+
function Ne(i, t, e) {
|
|
971
979
|
var s;
|
|
972
980
|
const n = (s = w.parseAttributeBinding(i)) !== null && s !== void 0 ? s : w.parseEnumeratedAttributeBinding(i);
|
|
973
981
|
if (n !== null) {
|
|
974
982
|
for (const r of n) {
|
|
975
983
|
if (!t[r])
|
|
976
|
-
throw new
|
|
984
|
+
throw new Zt(`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);
|
|
977
985
|
q(t[r], i, e);
|
|
978
986
|
}
|
|
979
987
|
i.removeAttribute(w.attributeMarkerName);
|
|
980
988
|
}
|
|
981
989
|
}
|
|
982
|
-
function
|
|
990
|
+
function Be(i, t, e, s, n) {
|
|
983
991
|
if (w.isElementBoundaryStartMarker(i)) {
|
|
984
|
-
|
|
992
|
+
xe(i, t);
|
|
985
993
|
return;
|
|
986
994
|
}
|
|
987
995
|
if (w.isContentBindingStartMarker(i.data)) {
|
|
@@ -1002,9 +1010,9 @@ function Te(i, t, e, s, n) {
|
|
|
1002
1010
|
}
|
|
1003
1011
|
if (a === null) {
|
|
1004
1012
|
const u = i.getRootNode();
|
|
1005
|
-
throw new Error(`Error hydrating Comment node inside "${
|
|
1013
|
+
throw new Error(`Error hydrating Comment node inside "${Te(u) ? u.host.nodeName : u.nodeName}".`);
|
|
1006
1014
|
}
|
|
1007
|
-
if (a.data = "", l.length === 1 &&
|
|
1015
|
+
if (a.data = "", l.length === 1 && te(l[0]))
|
|
1008
1016
|
q(d, l[0], s);
|
|
1009
1017
|
else {
|
|
1010
1018
|
a !== h && a.previousSibling !== null && (n[d.targetNodeId] = {
|
|
@@ -1016,7 +1024,7 @@ function Te(i, t, e, s, n) {
|
|
|
1016
1024
|
}
|
|
1017
1025
|
}
|
|
1018
1026
|
}
|
|
1019
|
-
function
|
|
1027
|
+
function xe(i, t) {
|
|
1020
1028
|
const e = w.parseElementBoundaryStartMarker(i.data);
|
|
1021
1029
|
let s = t.nextSibling();
|
|
1022
1030
|
for (; s !== null; ) {
|
|
@@ -1033,7 +1041,7 @@ function q(i, t, e) {
|
|
|
1033
1041
|
throw new Error("Factory could not be target to the node");
|
|
1034
1042
|
e[i.targetNodeId] = t;
|
|
1035
1043
|
}
|
|
1036
|
-
var
|
|
1044
|
+
var ie;
|
|
1037
1045
|
function at(i, t) {
|
|
1038
1046
|
const e = i.parentNode;
|
|
1039
1047
|
let s = i, n;
|
|
@@ -1044,7 +1052,7 @@ function at(i, t) {
|
|
|
1044
1052
|
}
|
|
1045
1053
|
e.removeChild(t);
|
|
1046
1054
|
}
|
|
1047
|
-
class
|
|
1055
|
+
class se {
|
|
1048
1056
|
constructor() {
|
|
1049
1057
|
this.index = 0, this.length = 0;
|
|
1050
1058
|
}
|
|
@@ -1102,7 +1110,7 @@ class ee {
|
|
|
1102
1110
|
return this.event.target;
|
|
1103
1111
|
}
|
|
1104
1112
|
}
|
|
1105
|
-
class X extends
|
|
1113
|
+
class X extends se {
|
|
1106
1114
|
/**
|
|
1107
1115
|
* Constructs an instance of HTMLView.
|
|
1108
1116
|
* @param fragment - The html fragment that contains the nodes for this view.
|
|
@@ -1212,14 +1220,14 @@ const A = {
|
|
|
1212
1220
|
hydrating: "hydrating",
|
|
1213
1221
|
hydrated: "hydrated"
|
|
1214
1222
|
};
|
|
1215
|
-
class
|
|
1223
|
+
class Ae extends Error {
|
|
1216
1224
|
constructor(t, e, s, n) {
|
|
1217
1225
|
super(t), this.factory = e, this.fragment = s, this.templateString = n;
|
|
1218
1226
|
}
|
|
1219
1227
|
}
|
|
1220
|
-
class
|
|
1228
|
+
class Me extends se {
|
|
1221
1229
|
constructor(t, e, s, n) {
|
|
1222
|
-
super(), this.firstChild = t, this.lastChild = e, this.sourceTemplate = s, this.hostBindingTarget = n, this[
|
|
1230
|
+
super(), this.firstChild = t, this.lastChild = e, this.sourceTemplate = s, this.hostBindingTarget = n, this[ie] = z, this.context = this, this.source = null, this.isBound = !1, this.sourceLifetime = J.unknown, this.unbindables = [], this.fragment = null, this.behaviors = null, this._hydrationStage = A.unhydrated, this._bindingViewBoundaries = {}, this._targets = {}, this.factories = s.compile().factories;
|
|
1223
1231
|
}
|
|
1224
1232
|
get hydrationStage() {
|
|
1225
1233
|
return this._hydrationStage;
|
|
@@ -1275,10 +1283,10 @@ class Be extends ee {
|
|
|
1275
1283
|
if (n === null) {
|
|
1276
1284
|
this.source = t, this.context = e;
|
|
1277
1285
|
try {
|
|
1278
|
-
const { targets: o, boundaries: c } =
|
|
1286
|
+
const { targets: o, boundaries: c } = $e(this.firstChild, this.lastChild, this.factories);
|
|
1279
1287
|
this._targets = o, this._bindingViewBoundaries = c;
|
|
1280
1288
|
} catch (o) {
|
|
1281
|
-
if (o instanceof
|
|
1289
|
+
if (o instanceof Zt) {
|
|
1282
1290
|
let c = this.sourceTemplate.html;
|
|
1283
1291
|
typeof c != "string" && (c = c.innerHTML), o.templateString = c;
|
|
1284
1292
|
}
|
|
@@ -1303,8 +1311,8 @@ Mismatch Details:`,
|
|
|
1303
1311
|
];
|
|
1304
1312
|
throw d.targetTagName && b.push(` - Expected tag name: "${d.targetTagName}"`), u.sourceAspect && b.push(` - Source aspect: "${u.sourceAspect}"`), u.aspectType !== void 0 && b.push(` - Aspect type: ${u.aspectType}`), b.push(`
|
|
1305
1313
|
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", `
|
|
1306
|
-
Template: ${l.slice(0, 200)}${l.length > 200 ? "..." : ""}`), new
|
|
1307
|
-
`), d,
|
|
1314
|
+
Template: ${l.slice(0, 200)}${l.length > 200 ? "..." : ""}`), new Ae(b.join(`
|
|
1315
|
+
`), d, ee(this.firstChild, this.lastChild).cloneContents(), l);
|
|
1308
1316
|
}
|
|
1309
1317
|
}
|
|
1310
1318
|
} else {
|
|
@@ -1334,13 +1342,13 @@ Template: ${l.slice(0, 200)}${l.length > 200 ? "..." : ""}`), new Ne(b.join(`
|
|
|
1334
1342
|
t.length = 0;
|
|
1335
1343
|
}
|
|
1336
1344
|
}
|
|
1337
|
-
|
|
1338
|
-
x(
|
|
1339
|
-
function
|
|
1345
|
+
ie = z;
|
|
1346
|
+
x(Me);
|
|
1347
|
+
function Oe(i) {
|
|
1340
1348
|
return i.create !== void 0;
|
|
1341
1349
|
}
|
|
1342
|
-
function
|
|
1343
|
-
if (e == null && (e = ""),
|
|
1350
|
+
function Ee(i, t, e, s) {
|
|
1351
|
+
if (e == null && (e = ""), Oe(e)) {
|
|
1344
1352
|
i.textContent = "";
|
|
1345
1353
|
let n = i.$fastView;
|
|
1346
1354
|
if (n === void 0)
|
|
@@ -1357,7 +1365,7 @@ function Ae(i, t, e, s) {
|
|
|
1357
1365
|
n !== void 0 && n.isComposed && (n.isComposed = !1, n.remove(), n.needsBindOnly ? n.needsBindOnly = !1 : n.unbind()), i.textContent = e;
|
|
1358
1366
|
}
|
|
1359
1367
|
}
|
|
1360
|
-
function
|
|
1368
|
+
function Re(i, t, e) {
|
|
1361
1369
|
var s;
|
|
1362
1370
|
const n = `${this.id}-t`, r = (s = i[n]) !== null && s !== void 0 ? s : i[n] = { v: 0, cv: /* @__PURE__ */ Object.create(null) }, o = r.cv;
|
|
1363
1371
|
let c = r.v;
|
|
@@ -1375,12 +1383,12 @@ function Me(i, t, e) {
|
|
|
1375
1383
|
o[l] === c && d.remove(l);
|
|
1376
1384
|
}
|
|
1377
1385
|
}
|
|
1378
|
-
const
|
|
1386
|
+
const _e = {
|
|
1379
1387
|
[y.attribute]: T.setAttribute,
|
|
1380
1388
|
[y.booleanAttribute]: T.setBooleanAttribute,
|
|
1381
1389
|
[y.property]: (i, t, e) => i[t] = e,
|
|
1382
|
-
[y.content]:
|
|
1383
|
-
[y.tokenList]:
|
|
1390
|
+
[y.content]: Ee,
|
|
1391
|
+
[y.tokenList]: Re,
|
|
1384
1392
|
[y.event]: () => {
|
|
1385
1393
|
}
|
|
1386
1394
|
};
|
|
@@ -1397,7 +1405,7 @@ class M {
|
|
|
1397
1405
|
* @param add - Can be used to add behavior factories to a template.
|
|
1398
1406
|
*/
|
|
1399
1407
|
createHTML(t) {
|
|
1400
|
-
return
|
|
1408
|
+
return Yt.interpolation(t(this));
|
|
1401
1409
|
}
|
|
1402
1410
|
/**
|
|
1403
1411
|
* Creates a behavior.
|
|
@@ -1405,7 +1413,7 @@ class M {
|
|
|
1405
1413
|
createBehavior() {
|
|
1406
1414
|
var t;
|
|
1407
1415
|
if (this.updateTarget === null) {
|
|
1408
|
-
const e =
|
|
1416
|
+
const e = _e[this.aspectType], s = (t = this.dataBinding.policy) !== null && t !== void 0 ? t : this.policy;
|
|
1409
1417
|
if (!e)
|
|
1410
1418
|
throw v.error(
|
|
1411
1419
|
1205
|
|
@@ -1425,6 +1433,7 @@ class M {
|
|
|
1425
1433
|
break;
|
|
1426
1434
|
case y.content:
|
|
1427
1435
|
t.onUnbind(this);
|
|
1436
|
+
// intentional fall through
|
|
1428
1437
|
default:
|
|
1429
1438
|
const r = (e = s[this.data]) !== null && e !== void 0 ? e : s[this.data] = this.dataBinding.createObserver(this, this);
|
|
1430
1439
|
if (r.target = s, r.controller = t, n && (this.aspectType === y.attribute || this.aspectType === y.booleanAttribute)) {
|
|
@@ -1456,24 +1465,24 @@ class M {
|
|
|
1456
1465
|
}
|
|
1457
1466
|
}
|
|
1458
1467
|
$.define(M, { aspected: !0 });
|
|
1459
|
-
const
|
|
1468
|
+
const ne = (i, t) => `${i}.${t}`, At = {}, C = {
|
|
1460
1469
|
index: 0,
|
|
1461
1470
|
node: null
|
|
1462
1471
|
};
|
|
1463
|
-
function
|
|
1472
|
+
function Mt(i) {
|
|
1464
1473
|
i.startsWith("fast-") || v.warn(1204, { name: i });
|
|
1465
1474
|
}
|
|
1466
|
-
const
|
|
1475
|
+
const Ie = new Proxy(document.createElement("div"), {
|
|
1467
1476
|
get(i, t) {
|
|
1468
|
-
|
|
1477
|
+
Mt(t);
|
|
1469
1478
|
const e = Reflect.get(i, t);
|
|
1470
1479
|
return E(e) ? e.bind(i) : e;
|
|
1471
1480
|
},
|
|
1472
1481
|
set(i, t, e) {
|
|
1473
|
-
return
|
|
1482
|
+
return Mt(t), Reflect.set(i, t, e);
|
|
1474
1483
|
}
|
|
1475
1484
|
});
|
|
1476
|
-
class
|
|
1485
|
+
class je {
|
|
1477
1486
|
constructor(t, e, s) {
|
|
1478
1487
|
this.fragment = t, this.directives = e, this.policy = s, this.proto = null, this.nodeIds = /* @__PURE__ */ new Set(), this.descriptors = {}, this.factories = [];
|
|
1479
1488
|
}
|
|
@@ -1494,10 +1503,10 @@ class Re {
|
|
|
1494
1503
|
const o = t.lastIndexOf("."), c = t.substring(0, o), d = parseInt(t.substring(o + 1));
|
|
1495
1504
|
this.addTargetDescriptor(c, t, d);
|
|
1496
1505
|
}
|
|
1497
|
-
let r =
|
|
1506
|
+
let r = At[e];
|
|
1498
1507
|
if (!r) {
|
|
1499
1508
|
const o = `_${e}`;
|
|
1500
|
-
|
|
1509
|
+
At[e] = r = {
|
|
1501
1510
|
get() {
|
|
1502
1511
|
var c;
|
|
1503
1512
|
return (c = this[o]) !== null && c !== void 0 ? c : this[o] = this[t].childNodes[s];
|
|
@@ -1508,46 +1517,46 @@ class Re {
|
|
|
1508
1517
|
}
|
|
1509
1518
|
createView(t) {
|
|
1510
1519
|
const e = this.fragment.cloneNode(!0), s = Object.create(this.proto);
|
|
1511
|
-
s.r = e, s.h = t ??
|
|
1520
|
+
s.r = e, s.h = t ?? Ie;
|
|
1512
1521
|
for (const n of this.nodeIds)
|
|
1513
1522
|
s[n];
|
|
1514
1523
|
return new X(e, this.factories, s);
|
|
1515
1524
|
}
|
|
1516
1525
|
}
|
|
1517
|
-
function
|
|
1526
|
+
function re(i, t, e, s, n, r = !1) {
|
|
1518
1527
|
const o = e.attributes, c = i.directives;
|
|
1519
1528
|
for (let d = 0, l = o.length; d < l; ++d) {
|
|
1520
1529
|
const a = o[d], h = a.value, u = K.parse(h, c);
|
|
1521
1530
|
let b = null;
|
|
1522
|
-
u === null ? r && (b = new M(
|
|
1531
|
+
u === null ? r && (b = new M(Kt(() => h, i.policy)), $.assignAspect(b, a.name)) : b = ht.aggregate(u, i.policy), b !== null && (e.removeAttributeNode(a), d--, l--, i.addFactory(b, t, s, n, e.tagName));
|
|
1523
1532
|
}
|
|
1524
1533
|
}
|
|
1525
|
-
function
|
|
1534
|
+
function Le(i, t, e, s, n) {
|
|
1526
1535
|
const r = K.parse(t.textContent, i.directives);
|
|
1527
1536
|
if (r === null)
|
|
1528
1537
|
return C.node = t.nextSibling, C.index = n + 1, C;
|
|
1529
1538
|
let o, c = o = t;
|
|
1530
1539
|
for (let d = 0, l = r.length; d < l; ++d) {
|
|
1531
1540
|
const a = r[d];
|
|
1532
|
-
d !== 0 && (n++, s =
|
|
1541
|
+
d !== 0 && (n++, s = ne(e, n), o = c.parentNode.insertBefore(document.createTextNode(""), c.nextSibling)), B(a) ? o.textContent = a : (o.textContent = " ", $.assignAspect(a), i.addFactory(a, e, s, n, null)), c = o;
|
|
1533
1542
|
}
|
|
1534
1543
|
return C.index = n + 1, C.node = c.nextSibling, C;
|
|
1535
1544
|
}
|
|
1536
|
-
function
|
|
1545
|
+
function ae(i, t, e) {
|
|
1537
1546
|
let s = 0, n = t.firstChild;
|
|
1538
1547
|
for (; n; ) {
|
|
1539
|
-
const r =
|
|
1548
|
+
const r = Ve(i, e, n, s);
|
|
1540
1549
|
n = r.node, s = r.index;
|
|
1541
1550
|
}
|
|
1542
1551
|
}
|
|
1543
|
-
function
|
|
1544
|
-
const n =
|
|
1552
|
+
function Ve(i, t, e, s) {
|
|
1553
|
+
const n = ne(t, s);
|
|
1545
1554
|
switch (e.nodeType) {
|
|
1546
1555
|
case 1:
|
|
1547
|
-
|
|
1556
|
+
re(i, t, e, n, s), ae(i, e, n);
|
|
1548
1557
|
break;
|
|
1549
1558
|
case 3:
|
|
1550
|
-
return
|
|
1559
|
+
return Le(i, e, t, n, s);
|
|
1551
1560
|
case 8:
|
|
1552
1561
|
const r = K.parse(e.data, i.directives);
|
|
1553
1562
|
r !== null && i.addFactory(
|
|
@@ -1562,10 +1571,10 @@ function Ie(i, t, e, s) {
|
|
|
1562
1571
|
}
|
|
1563
1572
|
return C.index = s + 1, C.node = e.nextSibling, C;
|
|
1564
1573
|
}
|
|
1565
|
-
function
|
|
1574
|
+
function Fe(i, t) {
|
|
1566
1575
|
return i && i.nodeType == 8 && K.parse(i.data, t) !== null;
|
|
1567
1576
|
}
|
|
1568
|
-
const
|
|
1577
|
+
const Ot = "TEMPLATE", ht = {
|
|
1569
1578
|
/**
|
|
1570
1579
|
* Compiles a template and associated directives into a compilation
|
|
1571
1580
|
* result which can be used to create views.
|
|
@@ -1581,14 +1590,14 @@ const At = "TEMPLATE", ht = {
|
|
|
1581
1590
|
compile(i, t, e = T.policy) {
|
|
1582
1591
|
let s;
|
|
1583
1592
|
if (B(i)) {
|
|
1584
|
-
s = document.createElement(
|
|
1593
|
+
s = document.createElement(Ot), s.innerHTML = e.createHTML(i);
|
|
1585
1594
|
const o = s.content.firstElementChild;
|
|
1586
|
-
o !== null && o.tagName ===
|
|
1595
|
+
o !== null && o.tagName === Ot && (s = o);
|
|
1587
1596
|
} else
|
|
1588
1597
|
s = i;
|
|
1589
1598
|
!s.content.firstChild && !s.content.lastChild && s.content.appendChild(document.createComment(""));
|
|
1590
|
-
const n = document.adoptNode(s.content), r = new
|
|
1591
|
-
return
|
|
1599
|
+
const n = document.adoptNode(s.content), r = new je(n, t, e);
|
|
1600
|
+
return re(
|
|
1592
1601
|
r,
|
|
1593
1602
|
"",
|
|
1594
1603
|
s,
|
|
@@ -1600,10 +1609,10 @@ const At = "TEMPLATE", ht = {
|
|
|
1600
1609
|
// because something like a when, repeat, etc. could add nodes before the marker.
|
|
1601
1610
|
// To mitigate this, we insert a stable first node. However, if we insert a node,
|
|
1602
1611
|
// that will alter the result of the TreeWalker. So, we also need to offset the target index.
|
|
1603
|
-
(
|
|
1612
|
+
(Fe(n.firstChild, t) || // Or if there is only one node and a directive, it means the template's content
|
|
1604
1613
|
// is *only* the directive. In that case, HTMLView.dispose() misses any nodes inserted by
|
|
1605
1614
|
// the directive. Inserting a new node ensures proper disposal of nodes added by the directive.
|
|
1606
|
-
n.childNodes.length === 1 && Object.keys(t).length > 0) && n.insertBefore(document.createComment(""), n.firstChild),
|
|
1615
|
+
n.childNodes.length === 1 && Object.keys(t).length > 0) && n.insertBefore(document.createComment(""), n.firstChild), ae(
|
|
1607
1616
|
r,
|
|
1608
1617
|
n,
|
|
1609
1618
|
/* root */
|
|
@@ -1634,19 +1643,19 @@ const At = "TEMPLATE", ht = {
|
|
|
1634
1643
|
for (let u = 0; u < r; ++u)
|
|
1635
1644
|
h += o[u](l, a);
|
|
1636
1645
|
return h;
|
|
1637
|
-
}, d = new M(
|
|
1646
|
+
}, d = new M(Gt(c, n ?? t, s));
|
|
1638
1647
|
return $.assignAspect(d, e), d;
|
|
1639
1648
|
}
|
|
1640
|
-
},
|
|
1649
|
+
}, Pe = (
|
|
1641
1650
|
/* eslint-disable-next-line no-control-regex, max-len */
|
|
1642
1651
|
/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/
|
|
1643
|
-
),
|
|
1652
|
+
), De = /* @__PURE__ */ Object.create(null);
|
|
1644
1653
|
class L {
|
|
1645
1654
|
/**
|
|
1646
1655
|
* Creates an instance of InlineTemplateDirective.
|
|
1647
1656
|
* @param template - The template to inline.
|
|
1648
1657
|
*/
|
|
1649
|
-
constructor(t, e =
|
|
1658
|
+
constructor(t, e = De) {
|
|
1650
1659
|
this.html = t, this.factories = e;
|
|
1651
1660
|
}
|
|
1652
1661
|
/**
|
|
@@ -1662,9 +1671,9 @@ class L {
|
|
|
1662
1671
|
}
|
|
1663
1672
|
L.empty = new L("");
|
|
1664
1673
|
$.define(L);
|
|
1665
|
-
function
|
|
1674
|
+
function He(i, t, e, s = $.getForInstance(i)) {
|
|
1666
1675
|
if (s.aspected) {
|
|
1667
|
-
const n =
|
|
1676
|
+
const n = Pe.exec(t);
|
|
1668
1677
|
n !== null && $.assignAspect(i, n[2]);
|
|
1669
1678
|
}
|
|
1670
1679
|
return i.createHTML(e);
|
|
@@ -1754,34 +1763,34 @@ class Y {
|
|
|
1754
1763
|
const l = t[c];
|
|
1755
1764
|
let a = e[c], h;
|
|
1756
1765
|
if (n += l, E(a))
|
|
1757
|
-
a = new M(
|
|
1766
|
+
a = new M(Gt(a));
|
|
1758
1767
|
else if (a instanceof lt)
|
|
1759
1768
|
a = new M(a);
|
|
1760
1769
|
else if (!(h = $.getForInstance(a))) {
|
|
1761
1770
|
const u = a;
|
|
1762
|
-
a = new M(
|
|
1771
|
+
a = new M(Kt(() => u));
|
|
1763
1772
|
}
|
|
1764
|
-
n +=
|
|
1773
|
+
n += He(a, l, o, h);
|
|
1765
1774
|
}
|
|
1766
1775
|
return new Y(n + t[t.length - 1], r, s);
|
|
1767
1776
|
}
|
|
1768
1777
|
}
|
|
1769
1778
|
x(Y);
|
|
1770
|
-
const
|
|
1779
|
+
const oe = ((i, ...t) => {
|
|
1771
1780
|
if (Array.isArray(i) && Array.isArray(i.raw))
|
|
1772
1781
|
return Y.create(i, t);
|
|
1773
1782
|
throw v.error(
|
|
1774
1783
|
1206
|
|
1775
1784
|
/* Message.directCallToHTMLTagNotAllowed */
|
|
1776
1785
|
);
|
|
1777
|
-
};
|
|
1778
|
-
|
|
1779
|
-
const
|
|
1786
|
+
});
|
|
1787
|
+
oe.partial = (i) => new L(i);
|
|
1788
|
+
const Et = "boolean", Rt = "reflect", le = Object.freeze({
|
|
1780
1789
|
/**
|
|
1781
1790
|
* Locates all attribute configurations associated with a type.
|
|
1782
1791
|
*/
|
|
1783
|
-
locate:
|
|
1784
|
-
}),
|
|
1792
|
+
locate: qt()
|
|
1793
|
+
}), ze = {
|
|
1785
1794
|
toView(i) {
|
|
1786
1795
|
return i ? "true" : "false";
|
|
1787
1796
|
},
|
|
@@ -1789,18 +1798,18 @@ const Mt = "boolean", Ot = "reflect", ae = Object.freeze({
|
|
|
1789
1798
|
return !(i == null || i === "false" || i === !1 || i === 0);
|
|
1790
1799
|
}
|
|
1791
1800
|
};
|
|
1792
|
-
function
|
|
1801
|
+
function _t(i) {
|
|
1793
1802
|
if (i == null)
|
|
1794
1803
|
return null;
|
|
1795
1804
|
const t = i * 1;
|
|
1796
1805
|
return isNaN(t) ? null : t;
|
|
1797
1806
|
}
|
|
1798
|
-
const
|
|
1807
|
+
const yi = {
|
|
1799
1808
|
toView(i) {
|
|
1800
|
-
const t =
|
|
1809
|
+
const t = _t(i);
|
|
1801
1810
|
return t && t.toString();
|
|
1802
1811
|
},
|
|
1803
|
-
fromView:
|
|
1812
|
+
fromView: _t
|
|
1804
1813
|
};
|
|
1805
1814
|
class W {
|
|
1806
1815
|
/**
|
|
@@ -1812,8 +1821,8 @@ class W {
|
|
|
1812
1821
|
* @param converter - A {@link ValueConverter} that integrates with the property getter/setter
|
|
1813
1822
|
* to convert values to and from a DOM string.
|
|
1814
1823
|
*/
|
|
1815
|
-
constructor(t, e, s = e.toLowerCase(), n =
|
|
1816
|
-
this.guards = /* @__PURE__ */ 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 ===
|
|
1824
|
+
constructor(t, e, s = e.toLowerCase(), n = Rt, r) {
|
|
1825
|
+
this.guards = /* @__PURE__ */ 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 === Et && r === void 0 && (this.converter = ze);
|
|
1817
1826
|
}
|
|
1818
1827
|
/**
|
|
1819
1828
|
* Sets the value of the attribute/property on the source element.
|
|
@@ -1837,15 +1846,15 @@ class W {
|
|
|
1837
1846
|
}
|
|
1838
1847
|
tryReflectToAttribute(t) {
|
|
1839
1848
|
const e = this.mode, s = this.guards;
|
|
1840
|
-
s.has(t) || e === "fromView" ||
|
|
1849
|
+
s.has(t) || e === "fromView" || Wt.enqueue(() => {
|
|
1841
1850
|
s.add(t);
|
|
1842
1851
|
const n = t[this.fieldName];
|
|
1843
1852
|
switch (e) {
|
|
1844
|
-
case
|
|
1853
|
+
case Rt:
|
|
1845
1854
|
const r = this.converter;
|
|
1846
1855
|
T.setAttribute(t, this.attribute, r !== void 0 ? r.toView(n) : n);
|
|
1847
1856
|
break;
|
|
1848
|
-
case
|
|
1857
|
+
case Et:
|
|
1849
1858
|
T.setBooleanAttribute(t, this.attribute, n);
|
|
1850
1859
|
break;
|
|
1851
1860
|
}
|
|
@@ -1860,7 +1869,7 @@ class W {
|
|
|
1860
1869
|
*/
|
|
1861
1870
|
static collect(t, ...e) {
|
|
1862
1871
|
const s = [];
|
|
1863
|
-
e.push(
|
|
1872
|
+
e.push(le.locate(t));
|
|
1864
1873
|
for (let n = 0, r = e.length; n < r; ++n) {
|
|
1865
1874
|
const o = e[n];
|
|
1866
1875
|
if (o !== void 0)
|
|
@@ -1872,10 +1881,10 @@ class W {
|
|
|
1872
1881
|
return s;
|
|
1873
1882
|
}
|
|
1874
1883
|
}
|
|
1875
|
-
function
|
|
1884
|
+
function Ue(i, t) {
|
|
1876
1885
|
let e;
|
|
1877
1886
|
function s(n, r) {
|
|
1878
|
-
arguments.length > 1 && (e.property = r),
|
|
1887
|
+
arguments.length > 1 && (e.property = r), le.locate(n.constructor).push(e);
|
|
1879
1888
|
}
|
|
1880
1889
|
if (arguments.length > 1) {
|
|
1881
1890
|
e = {}, s(i, t);
|
|
@@ -1883,7 +1892,7 @@ function He(i, t) {
|
|
|
1883
1892
|
}
|
|
1884
1893
|
return e = i === void 0 ? {} : i, s;
|
|
1885
1894
|
}
|
|
1886
|
-
var
|
|
1895
|
+
var qe = function(i, t, e, s) {
|
|
1887
1896
|
function n(r) {
|
|
1888
1897
|
return r instanceof e ? r : new e(function(o) {
|
|
1889
1898
|
o(r);
|
|
@@ -1910,7 +1919,7 @@ var Pe = function(i, t, e, s) {
|
|
|
1910
1919
|
l((s = s.apply(i, t || [])).next());
|
|
1911
1920
|
});
|
|
1912
1921
|
};
|
|
1913
|
-
const
|
|
1922
|
+
const It = { mode: "open" }, jt = {}, it = /* @__PURE__ */ new Set(), _ = v.getById(N.elementRegistry, () => Ut()), We = {
|
|
1914
1923
|
deferAndHydrate: "defer-and-hydrate"
|
|
1915
1924
|
};
|
|
1916
1925
|
class p {
|
|
@@ -1925,7 +1934,7 @@ class p {
|
|
|
1925
1934
|
Reflect.defineProperty(t, "observedAttributes", {
|
|
1926
1935
|
value: o,
|
|
1927
1936
|
enumerable: !0
|
|
1928
|
-
}), this.attributes = r, this.propertyLookup = c, this.attributeLookup = d, this.shadowOptions = e.shadowOptions === void 0 ?
|
|
1937
|
+
}), this.attributes = r, this.propertyLookup = c, this.attributeLookup = d, this.shadowOptions = e.shadowOptions === void 0 ? It : e.shadowOptions === null ? void 0 : Object.assign(Object.assign({}, It), e.shadowOptions), this.elementOptions = e.elementOptions === void 0 ? jt : Object.assign(Object.assign({}, jt), e.elementOptions), this.styles = m.normalize(e.styles), _.register(this), g.defineProperty(p.isRegistered, this.name), p.isRegistered[this.name] = this.type;
|
|
1929
1938
|
}
|
|
1930
1939
|
/**
|
|
1931
1940
|
* Indicates if this element has been defined in at least one registry.
|
|
@@ -1988,13 +1997,13 @@ class p {
|
|
|
1988
1997
|
p.isRegistered = {};
|
|
1989
1998
|
p.getByType = _.getByType;
|
|
1990
1999
|
p.getForInstance = _.getForInstance;
|
|
1991
|
-
p.registerAsync = (i) =>
|
|
2000
|
+
p.registerAsync = (i) => qe(void 0, void 0, void 0, function* () {
|
|
1992
2001
|
return new Promise((t) => {
|
|
1993
2002
|
p.isRegistered[i] && t(p.isRegistered[i]), g.getNotifier(p.isRegistered).subscribe({ handleChange: () => t(p.isRegistered[i]) }, i);
|
|
1994
2003
|
});
|
|
1995
2004
|
});
|
|
1996
2005
|
g.defineProperty(p.prototype, "template");
|
|
1997
|
-
class
|
|
2006
|
+
class Qe extends MutationObserver {
|
|
1998
2007
|
/**
|
|
1999
2008
|
* Creates an instance of UnobservableMutationObserver.
|
|
2000
2009
|
* @param callback - The callback to invoke when observed nodes are changed.
|
|
@@ -2012,7 +2021,7 @@ class Ue extends MutationObserver {
|
|
|
2012
2021
|
this.observedNodes.delete(t), this.observedNodes.size < 1 && this.disconnect();
|
|
2013
2022
|
}
|
|
2014
2023
|
}
|
|
2015
|
-
const
|
|
2024
|
+
const vi = Object.freeze({
|
|
2016
2025
|
/**
|
|
2017
2026
|
* Creates a ViewBehaviorOrchestrator.
|
|
2018
2027
|
* @param source - The source to to associate behaviors with.
|
|
@@ -2050,17 +2059,17 @@ const bi = Object.freeze({
|
|
|
2050
2059
|
}
|
|
2051
2060
|
};
|
|
2052
2061
|
}
|
|
2053
|
-
}),
|
|
2062
|
+
}), Ge = {
|
|
2054
2063
|
bubbles: !0,
|
|
2055
2064
|
composed: !0,
|
|
2056
2065
|
cancelable: !0
|
|
2057
|
-
},
|
|
2066
|
+
}, H = "isConnected", ce = /* @__PURE__ */ new WeakMap();
|
|
2058
2067
|
function I(i) {
|
|
2059
2068
|
var t, e;
|
|
2060
|
-
return (e = (t = i.shadowRoot) !== null && t !== void 0 ? t :
|
|
2069
|
+
return (e = (t = i.shadowRoot) !== null && t !== void 0 ? t : ce.get(i)) !== null && e !== void 0 ? e : null;
|
|
2061
2070
|
}
|
|
2062
|
-
let
|
|
2063
|
-
class S extends
|
|
2071
|
+
let Lt;
|
|
2072
|
+
class S extends Qt {
|
|
2064
2073
|
/**
|
|
2065
2074
|
* Creates a Controller to control the specified element.
|
|
2066
2075
|
* @param element - The element to be controlled by this controller.
|
|
@@ -2084,7 +2093,7 @@ class S extends qt {
|
|
|
2084
2093
|
* connected to the document.
|
|
2085
2094
|
*/
|
|
2086
2095
|
get isConnected() {
|
|
2087
|
-
return g.track(this,
|
|
2096
|
+
return g.track(this, H), this.stage === 1;
|
|
2088
2097
|
}
|
|
2089
2098
|
/**
|
|
2090
2099
|
* The context the expression is evaluated against.
|
|
@@ -2133,7 +2142,7 @@ class S extends qt {
|
|
|
2133
2142
|
if (this._shadowRootOptions === void 0 && t !== void 0) {
|
|
2134
2143
|
this._shadowRootOptions = t;
|
|
2135
2144
|
let e = this.source.shadowRoot;
|
|
2136
|
-
e ? this.hasExistingShadowRoot = !0 : (e = this.source.attachShadow(t), t.mode === "closed" &&
|
|
2145
|
+
e ? this.hasExistingShadowRoot = !0 : (e = this.source.attachShadow(t), t.mode === "closed" && ce.set(this.source, e));
|
|
2137
2146
|
}
|
|
2138
2147
|
}
|
|
2139
2148
|
/**
|
|
@@ -2220,7 +2229,7 @@ class S extends qt {
|
|
|
2220
2229
|
* Runs connected lifecycle behavior on the associated element.
|
|
2221
2230
|
*/
|
|
2222
2231
|
connect() {
|
|
2223
|
-
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, g.notify(this,
|
|
2232
|
+
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, g.notify(this, H));
|
|
2224
2233
|
}
|
|
2225
2234
|
/**
|
|
2226
2235
|
* Binds any observables that were set before upgrade.
|
|
@@ -2266,7 +2275,7 @@ class S extends qt {
|
|
|
2266
2275
|
* Runs disconnected lifecycle behavior on the associated element.
|
|
2267
2276
|
*/
|
|
2268
2277
|
disconnect() {
|
|
2269
|
-
this.stage === 1 && (this.stage = 2, g.notify(this,
|
|
2278
|
+
this.stage === 1 && (this.stage = 2, g.notify(this, H), this.view !== null && this.view.unbind(), this.disconnectBehaviors(), this.stage = 3);
|
|
2270
2279
|
}
|
|
2271
2280
|
/**
|
|
2272
2281
|
* Runs the attribute changed callback for the associated element.
|
|
@@ -2287,7 +2296,7 @@ class S extends qt {
|
|
|
2287
2296
|
* Only emits events if connected.
|
|
2288
2297
|
*/
|
|
2289
2298
|
emit(t, e, s) {
|
|
2290
|
-
return this.stage === 1 ? this.source.dispatchEvent(new CustomEvent(t, Object.assign(Object.assign({ detail: e },
|
|
2299
|
+
return this.stage === 1 ? this.source.dispatchEvent(new CustomEvent(t, Object.assign(Object.assign({ detail: e }, Ge), s))) : !1;
|
|
2291
2300
|
}
|
|
2292
2301
|
/**
|
|
2293
2302
|
* Renders the provided template to the element.
|
|
@@ -2335,7 +2344,7 @@ class S extends qt {
|
|
|
2335
2344
|
handleChange: () => {
|
|
2336
2345
|
S.forCustomElement(t, !0), t.$fastController.connect();
|
|
2337
2346
|
}
|
|
2338
|
-
}, "shadowOptions"), t.$fastController = new
|
|
2347
|
+
}, "shadowOptions"), t.$fastController = new Lt(t, n);
|
|
2339
2348
|
}
|
|
2340
2349
|
/**
|
|
2341
2350
|
* Sets the strategy that ElementController.forCustomElement uses to construct
|
|
@@ -2343,7 +2352,7 @@ class S extends qt {
|
|
|
2343
2352
|
* @param strategy - The strategy to use.
|
|
2344
2353
|
*/
|
|
2345
2354
|
static setStrategy(t) {
|
|
2346
|
-
|
|
2355
|
+
Lt = t;
|
|
2347
2356
|
}
|
|
2348
2357
|
}
|
|
2349
2358
|
x(S);
|
|
@@ -2363,24 +2372,24 @@ class Z {
|
|
|
2363
2372
|
});
|
|
2364
2373
|
}
|
|
2365
2374
|
addStylesTo(t) {
|
|
2366
|
-
|
|
2375
|
+
de(Q(t), this.sheets);
|
|
2367
2376
|
}
|
|
2368
2377
|
removeStylesFrom(t) {
|
|
2369
|
-
|
|
2378
|
+
he(Q(t), this.sheets);
|
|
2370
2379
|
}
|
|
2371
2380
|
}
|
|
2372
2381
|
Z.styleSheetCache = /* @__PURE__ */ new Map();
|
|
2373
|
-
let
|
|
2374
|
-
const
|
|
2375
|
-
function
|
|
2382
|
+
let Je = 0;
|
|
2383
|
+
const Ke = () => `fast-${++Je}`;
|
|
2384
|
+
function Vt(i) {
|
|
2376
2385
|
return i === document ? document.body : i;
|
|
2377
2386
|
}
|
|
2378
|
-
class
|
|
2387
|
+
class Xe {
|
|
2379
2388
|
constructor(t) {
|
|
2380
|
-
this.styles = t, this.styleClass =
|
|
2389
|
+
this.styles = t, this.styleClass = Ke();
|
|
2381
2390
|
}
|
|
2382
2391
|
addStylesTo(t) {
|
|
2383
|
-
t =
|
|
2392
|
+
t = Vt(Q(t));
|
|
2384
2393
|
const e = this.styles, s = this.styleClass;
|
|
2385
2394
|
for (let n = 0; n < e.length; n++) {
|
|
2386
2395
|
const r = document.createElement("style");
|
|
@@ -2388,22 +2397,22 @@ class Ge {
|
|
|
2388
2397
|
}
|
|
2389
2398
|
}
|
|
2390
2399
|
removeStylesFrom(t) {
|
|
2391
|
-
t =
|
|
2400
|
+
t = Vt(Q(t));
|
|
2392
2401
|
const e = t.querySelectorAll(`.${this.styleClass}`);
|
|
2393
2402
|
for (let s = 0, n = e.length; s < n; ++s)
|
|
2394
2403
|
t.removeChild(e[s]);
|
|
2395
2404
|
}
|
|
2396
2405
|
}
|
|
2397
|
-
let
|
|
2406
|
+
let de = (i, t) => {
|
|
2398
2407
|
i.adoptedStyleSheets = [...i.adoptedStyleSheets, ...t];
|
|
2399
|
-
},
|
|
2408
|
+
}, he = (i, t) => {
|
|
2400
2409
|
i.adoptedStyleSheets = i.adoptedStyleSheets.filter((e) => t.indexOf(e) === -1);
|
|
2401
2410
|
};
|
|
2402
2411
|
if (m.supportsAdoptedStyleSheets) {
|
|
2403
2412
|
try {
|
|
2404
|
-
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(),
|
|
2413
|
+
document.adoptedStyleSheets.push(), document.adoptedStyleSheets.splice(), de = (i, t) => {
|
|
2405
2414
|
i.adoptedStyleSheets.push(...t);
|
|
2406
|
-
},
|
|
2415
|
+
}, he = (i, t) => {
|
|
2407
2416
|
for (const e of t) {
|
|
2408
2417
|
const s = i.adoptedStyleSheets.indexOf(e);
|
|
2409
2418
|
s !== -1 && i.adoptedStyleSheets.splice(s, 1);
|
|
@@ -2413,7 +2422,7 @@ if (m.supportsAdoptedStyleSheets) {
|
|
|
2413
2422
|
}
|
|
2414
2423
|
m.setDefaultStrategy(Z);
|
|
2415
2424
|
} else
|
|
2416
|
-
m.setDefaultStrategy(
|
|
2425
|
+
m.setDefaultStrategy(Xe);
|
|
2417
2426
|
const V = "defer-hydration", st = "needs-hydration";
|
|
2418
2427
|
class f extends S {
|
|
2419
2428
|
/**
|
|
@@ -2423,7 +2432,7 @@ class f extends S {
|
|
|
2423
2432
|
return super.shadowOptions;
|
|
2424
2433
|
}
|
|
2425
2434
|
set shadowOptions(t) {
|
|
2426
|
-
super.shadowOptions = t, (this.hasExistingShadowRoot || t !== void 0 && !this.template) && this.definition.templateOptions ===
|
|
2435
|
+
super.shadowOptions = t, (this.hasExistingShadowRoot || t !== void 0 && !this.template) && this.definition.templateOptions === We.deferAndHydrate && (this.source.toggleAttribute(V, !0), this.source.toggleAttribute(st, !0));
|
|
2427
2436
|
}
|
|
2428
2437
|
/**
|
|
2429
2438
|
* Adds the current element instance to the hydrating instances map
|
|
@@ -2483,7 +2492,7 @@ class f extends S {
|
|
|
2483
2492
|
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);
|
|
2484
2493
|
} else
|
|
2485
2494
|
this.renderTemplate(this.template);
|
|
2486
|
-
this.addStyles(this.mainStyles), this.stage = 1, this.source.removeAttribute(st), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), g.notify(this,
|
|
2495
|
+
this.addStyles(this.mainStyles), this.stage = 1, this.source.removeAttribute(st), this.needsInitialization = this.needsHydration = !1, this.removeHydratingInstance(), g.notify(this, H);
|
|
2487
2496
|
}
|
|
2488
2497
|
}
|
|
2489
2498
|
/**
|
|
@@ -2512,10 +2521,10 @@ class f extends S {
|
|
|
2512
2521
|
S.setStrategy(f);
|
|
2513
2522
|
}
|
|
2514
2523
|
}
|
|
2515
|
-
f.hydrationObserver = new
|
|
2524
|
+
f.hydrationObserver = new Qe(f.hydrationObserverHandler);
|
|
2516
2525
|
f.idleCallbackId = null;
|
|
2517
2526
|
f.hydratingInstances = /* @__PURE__ */ new Map();
|
|
2518
|
-
function
|
|
2527
|
+
function ue(i) {
|
|
2519
2528
|
const t = class extends i {
|
|
2520
2529
|
constructor() {
|
|
2521
2530
|
super(), S.forCustomElement(this);
|
|
@@ -2535,10 +2544,10 @@ function de(i) {
|
|
|
2535
2544
|
};
|
|
2536
2545
|
return p.registerBaseType(t), t;
|
|
2537
2546
|
}
|
|
2538
|
-
function
|
|
2547
|
+
function Ye(i, t) {
|
|
2539
2548
|
return E(i) ? p.compose(i, t) : p.compose(this, i);
|
|
2540
2549
|
}
|
|
2541
|
-
function
|
|
2550
|
+
function Ze(i, t) {
|
|
2542
2551
|
return E(i) ? new Promise((e) => {
|
|
2543
2552
|
p.composeAsync(i, t).then((s) => {
|
|
2544
2553
|
e(s);
|
|
@@ -2549,48 +2558,48 @@ function Ke(i, t) {
|
|
|
2549
2558
|
});
|
|
2550
2559
|
}).then((e) => e.define().type);
|
|
2551
2560
|
}
|
|
2552
|
-
function
|
|
2561
|
+
function ti(i, t) {
|
|
2553
2562
|
return E(i) ? p.compose(i, t).define().type : p.compose(this, i).define().type;
|
|
2554
2563
|
}
|
|
2555
|
-
function
|
|
2556
|
-
return
|
|
2564
|
+
function ei(i) {
|
|
2565
|
+
return ue(i);
|
|
2557
2566
|
}
|
|
2558
|
-
const
|
|
2567
|
+
const ii = Object.assign(ue(HTMLElement), {
|
|
2559
2568
|
/**
|
|
2560
2569
|
* Creates a new FASTElement base class inherited from the
|
|
2561
2570
|
* provided base type.
|
|
2562
2571
|
* @param BaseType - The base element type to inherit from.
|
|
2563
2572
|
*/
|
|
2564
|
-
from:
|
|
2573
|
+
from: ei,
|
|
2565
2574
|
/**
|
|
2566
2575
|
* Defines a platform custom element based on the provided type and definition.
|
|
2567
2576
|
* @param type - The custom element type to define.
|
|
2568
2577
|
* @param nameOrDef - The name of the element to define or a definition object
|
|
2569
2578
|
* that describes the element to define.
|
|
2570
2579
|
*/
|
|
2571
|
-
define:
|
|
2580
|
+
define: ti,
|
|
2572
2581
|
/**
|
|
2573
2582
|
* Defines metadata for a FASTElement which can be used to later define the element.
|
|
2574
2583
|
* @public
|
|
2575
2584
|
*/
|
|
2576
|
-
compose:
|
|
2585
|
+
compose: Ye,
|
|
2577
2586
|
/**
|
|
2578
2587
|
* Defines metadata for a FASTElement which can be used after it has been resolved to define the element.
|
|
2579
2588
|
* @alpha
|
|
2580
2589
|
*/
|
|
2581
|
-
defineAsync:
|
|
2590
|
+
defineAsync: Ze
|
|
2582
2591
|
});
|
|
2583
|
-
function
|
|
2592
|
+
function si(i, t) {
|
|
2584
2593
|
return i instanceof Function ? i(t) : i;
|
|
2585
2594
|
}
|
|
2586
|
-
const
|
|
2595
|
+
const Ft = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Map(), mi = (i) => (t = "vwc") => {
|
|
2587
2596
|
const e = (n) => `${t}-${n}`, s = (n) => {
|
|
2588
2597
|
const r = e(n.name);
|
|
2589
2598
|
let o = n.type;
|
|
2590
|
-
if (o.componentName = n.name,
|
|
2599
|
+
if (o.componentName = n.name, Ft.has(r))
|
|
2591
2600
|
return;
|
|
2592
2601
|
nt.has(o) && nt.get(o) !== r && (o = class extends o {
|
|
2593
|
-
}),
|
|
2602
|
+
}), Ft.add(r), nt.set(o, r);
|
|
2594
2603
|
for (const a of n.dependencies)
|
|
2595
2604
|
s(a);
|
|
2596
2605
|
const c = new Map([
|
|
@@ -2605,7 +2614,7 @@ const Lt = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Map(), gi = (i) =
|
|
|
2605
2614
|
`Could not get tag for ${a.name} as it is not a dependency of ${n.name}.`
|
|
2606
2615
|
);
|
|
2607
2616
|
const u = c.get(a);
|
|
2608
|
-
return h ? u :
|
|
2617
|
+
return h ? u : oe.partial(u);
|
|
2609
2618
|
},
|
|
2610
2619
|
tagForNonDependency(a) {
|
|
2611
2620
|
return e(a);
|
|
@@ -2613,7 +2622,7 @@ const Lt = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Map(), gi = (i) =
|
|
|
2613
2622
|
};
|
|
2614
2623
|
p.compose(o, {
|
|
2615
2624
|
...n.options,
|
|
2616
|
-
template:
|
|
2625
|
+
template: si(
|
|
2617
2626
|
n.template,
|
|
2618
2627
|
l
|
|
2619
2628
|
),
|
|
@@ -2621,42 +2630,42 @@ const Lt = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Map(), gi = (i) =
|
|
|
2621
2630
|
}).define();
|
|
2622
2631
|
};
|
|
2623
2632
|
s(i);
|
|
2624
|
-
},
|
|
2633
|
+
}, wi = (i, t, e, s, n) => ({
|
|
2625
2634
|
name: i,
|
|
2626
2635
|
type: t,
|
|
2627
2636
|
template: e,
|
|
2628
2637
|
dependencies: s,
|
|
2629
2638
|
options: n
|
|
2630
|
-
}),
|
|
2631
|
-
let t =
|
|
2632
|
-
return t || (t = [],
|
|
2633
|
-
},
|
|
2634
|
-
|
|
2635
|
-
},
|
|
2636
|
-
|
|
2637
|
-
},
|
|
2638
|
-
if (
|
|
2639
|
+
}), Pt = /* @__PURE__ */ new WeakMap(), fe = (i) => {
|
|
2640
|
+
let t = Pt.get(i);
|
|
2641
|
+
return t || (t = [], Pt.set(i, t)), t;
|
|
2642
|
+
}, Si = (i, t) => {
|
|
2643
|
+
fe(i).push(t);
|
|
2644
|
+
}, ni = (i, t) => {
|
|
2645
|
+
fe(i).forEach((e) => e(i, t));
|
|
2646
|
+
}, ri = (i) => i === "delegate", Dt = (i) => `vvd${i.charAt(0).toUpperCase()}${i.slice(1)}`, pe = (i, t) => {
|
|
2647
|
+
if (ri(i._vividAriaBehaviour)) {
|
|
2639
2648
|
const e = i[t];
|
|
2640
|
-
i[`_${t}`] = null, i.removeAttribute(ot(t)), i[`_${t}`] = e, i[t] !== null ? i.dataset[
|
|
2649
|
+
i[`_${t}`] = null, i.removeAttribute(ot(t)), i[`_${t}`] = e, i[t] !== null ? i.dataset[Dt(t)] = i[t] : delete i.dataset[Dt(t)];
|
|
2641
2650
|
} else
|
|
2642
2651
|
T.setAttribute(
|
|
2643
2652
|
i,
|
|
2644
2653
|
ot(t),
|
|
2645
2654
|
i[t]
|
|
2646
2655
|
);
|
|
2647
|
-
}, G = /* @__PURE__ */ new WeakMap(),
|
|
2656
|
+
}, G = /* @__PURE__ */ new WeakMap(), ai = (i, t) => {
|
|
2648
2657
|
const e = G.get(i);
|
|
2649
2658
|
e ? e.add(t) : G.set(i, /* @__PURE__ */ new Set([t]));
|
|
2650
|
-
},
|
|
2651
|
-
i.isConnected ?
|
|
2652
|
-
},
|
|
2659
|
+
}, oi = (i, t) => {
|
|
2660
|
+
i.isConnected ? pe(i, t) : ai(i, t);
|
|
2661
|
+
}, li = (i) => {
|
|
2653
2662
|
const t = G.get(i);
|
|
2654
2663
|
if (t) {
|
|
2655
2664
|
for (const e of t)
|
|
2656
|
-
|
|
2665
|
+
pe(i, e);
|
|
2657
2666
|
G.delete(i);
|
|
2658
2667
|
}
|
|
2659
|
-
},
|
|
2668
|
+
}, Ht = [
|
|
2660
2669
|
"role",
|
|
2661
2670
|
"ariaAtomic",
|
|
2662
2671
|
"ariaAutoComplete",
|
|
@@ -2700,36 +2709,36 @@ const Lt = /* @__PURE__ */ new Set(), nt = /* @__PURE__ */ new Map(), gi = (i) =
|
|
|
2700
2709
|
"ariaValueText",
|
|
2701
2710
|
"ariaRelevant"
|
|
2702
2711
|
// Non-standard
|
|
2703
|
-
], ot = (i) => i.replace("aria", "aria-").toLowerCase(),
|
|
2712
|
+
], ot = (i) => i.replace("aria", "aria-").toLowerCase(), ci = (i) => {
|
|
2704
2713
|
class t extends i {
|
|
2705
2714
|
constructor(...s) {
|
|
2706
2715
|
super(...s), this._vividAriaBehaviour = "default";
|
|
2707
|
-
for (const n of
|
|
2716
|
+
for (const n of Ht)
|
|
2708
2717
|
this[`_${n}`] = null;
|
|
2709
2718
|
}
|
|
2710
2719
|
connectedCallback() {
|
|
2711
|
-
super.connectedCallback(),
|
|
2720
|
+
super.connectedCallback(), li(this);
|
|
2712
2721
|
}
|
|
2713
2722
|
}
|
|
2714
|
-
for (const e of
|
|
2715
|
-
|
|
2723
|
+
for (const e of Ht)
|
|
2724
|
+
Ue({
|
|
2716
2725
|
attribute: ot(e),
|
|
2717
2726
|
mode: "fromView"
|
|
2718
2727
|
})(t.prototype, e), t.prototype[`${e}Changed`] = function() {
|
|
2719
|
-
|
|
2728
|
+
oi(this, e), this._vividAriaBehaviour !== "default" && ni(this, e);
|
|
2720
2729
|
};
|
|
2721
2730
|
return t;
|
|
2722
2731
|
};
|
|
2723
|
-
function
|
|
2732
|
+
function di() {
|
|
2724
2733
|
const i = /* @__PURE__ */ new WeakMap();
|
|
2725
2734
|
return (t) => (i.has(t) || i.set(t, []), i.get(t));
|
|
2726
2735
|
}
|
|
2727
|
-
const
|
|
2728
|
-
|
|
2736
|
+
const be = di(), Ci = (i) => (t, e) => {
|
|
2737
|
+
be(t.constructor).push({
|
|
2729
2738
|
newPropertyName: e,
|
|
2730
2739
|
...i
|
|
2731
2740
|
});
|
|
2732
|
-
},
|
|
2741
|
+
}, hi = (i) => {
|
|
2733
2742
|
class t extends i {
|
|
2734
2743
|
#t(s) {
|
|
2735
2744
|
let n = !1, r = !1;
|
|
@@ -2755,15 +2764,15 @@ const fe = oi(), mi = (i) => (t, e) => {
|
|
|
2755
2764
|
}
|
|
2756
2765
|
constructor(...s) {
|
|
2757
2766
|
super(...s);
|
|
2758
|
-
for (const n of
|
|
2767
|
+
for (const n of be(this.constructor))
|
|
2759
2768
|
this.#t(n);
|
|
2760
2769
|
}
|
|
2761
2770
|
}
|
|
2762
2771
|
return t;
|
|
2763
2772
|
};
|
|
2764
|
-
class
|
|
2773
|
+
class ki extends ci(hi(ii)) {
|
|
2765
2774
|
static {
|
|
2766
|
-
this.VIVID_VERSION = "5.15.
|
|
2775
|
+
this.VIVID_VERSION = "5.15.1";
|
|
2767
2776
|
}
|
|
2768
2777
|
/**
|
|
2769
2778
|
* Add data-vvd-component attribute with component name globally,
|
|
@@ -2776,40 +2785,40 @@ class wi extends ai(li(Ze)) {
|
|
|
2776
2785
|
}
|
|
2777
2786
|
}
|
|
2778
2787
|
export {
|
|
2779
|
-
|
|
2788
|
+
fi as A,
|
|
2780
2789
|
lt as B,
|
|
2781
2790
|
T as D,
|
|
2782
2791
|
O as E,
|
|
2783
2792
|
$ as H,
|
|
2784
|
-
|
|
2793
|
+
Yt as M,
|
|
2785
2794
|
g as O,
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2795
|
+
ke as S,
|
|
2796
|
+
Wt as U,
|
|
2797
|
+
ki as V,
|
|
2798
|
+
Ue as a,
|
|
2799
|
+
vi as b,
|
|
2800
|
+
mi as c,
|
|
2801
|
+
wi as d,
|
|
2802
|
+
pi as e,
|
|
2794
2803
|
E as f,
|
|
2795
|
-
|
|
2796
|
-
|
|
2804
|
+
Gt as g,
|
|
2805
|
+
oe as h,
|
|
2797
2806
|
B as i,
|
|
2798
2807
|
ot as j,
|
|
2799
|
-
|
|
2808
|
+
Ht as k,
|
|
2800
2809
|
rt as l,
|
|
2801
2810
|
U as m,
|
|
2802
|
-
|
|
2803
|
-
|
|
2811
|
+
yi as n,
|
|
2812
|
+
bi as o,
|
|
2804
2813
|
A as p,
|
|
2805
2814
|
X as q,
|
|
2806
|
-
|
|
2807
|
-
|
|
2815
|
+
Ci as r,
|
|
2816
|
+
Si as s,
|
|
2808
2817
|
w as t,
|
|
2809
|
-
|
|
2810
|
-
|
|
2818
|
+
Kt as u,
|
|
2819
|
+
gi as v,
|
|
2811
2820
|
m as w,
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2821
|
+
ge as x,
|
|
2822
|
+
tt as y,
|
|
2823
|
+
ui as z
|
|
2815
2824
|
};
|