@mgdis/stencil-helpers 1.1.2 → 1.1.4
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/dist/ide/index.d.ts +2 -2
- package/dist/ide/index.d.ts.map +1 -1
- package/dist/index.es.js +426 -381
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/storybook/index.d.ts +1 -1
- package/package.json +13 -12
package/dist/index.es.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
const s = new Uint8Array(
|
|
1
|
+
var ae = Object.defineProperty;
|
|
2
|
+
var fe = (e, t, s) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var g = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
|
+
const Ne = (e = "", t = 10) => {
|
|
5
|
+
const s = new Uint8Array(t);
|
|
6
6
|
crypto.getRandomValues(s);
|
|
7
|
-
const r = Array.from(s).map((
|
|
8
|
-
return
|
|
7
|
+
const r = Array.from(s).map((l) => l.toString(16).padStart(2, "0")).join("").slice(0, t);
|
|
8
|
+
return e !== "" ? `${e}-${r}` : r;
|
|
9
9
|
};
|
|
10
|
-
class
|
|
11
|
-
constructor(
|
|
10
|
+
class Be {
|
|
11
|
+
constructor(t = []) {
|
|
12
12
|
/**
|
|
13
13
|
* Available classes
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
g(this, "classes");
|
|
16
16
|
/**
|
|
17
17
|
* Add class
|
|
18
18
|
* @param className - class name to add
|
|
19
19
|
*/
|
|
20
|
-
|
|
21
|
-
this.has(
|
|
20
|
+
g(this, "add", (t) => {
|
|
21
|
+
this.has(t) || this.classes.push(t);
|
|
22
22
|
});
|
|
23
23
|
/**
|
|
24
24
|
* Delete class
|
|
25
25
|
* @param className - class name to delete
|
|
26
26
|
*/
|
|
27
|
-
|
|
28
|
-
const s = this.classes.indexOf(
|
|
27
|
+
g(this, "delete", (t) => {
|
|
28
|
+
const s = this.classes.indexOf(t);
|
|
29
29
|
s > -1 && this.classes.splice(s, 1);
|
|
30
30
|
});
|
|
31
31
|
/**
|
|
@@ -33,148 +33,146 @@ class Me {
|
|
|
33
33
|
* @param className - class name to check
|
|
34
34
|
* @returns class name is in the list
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
g(this, "has", (t) => this.classes.includes(t));
|
|
37
37
|
/**
|
|
38
38
|
* Join classes seperated by spaces
|
|
39
39
|
* @returns joined values
|
|
40
40
|
*/
|
|
41
|
-
|
|
42
|
-
this.classes =
|
|
41
|
+
g(this, "join", () => this.classes.join(" "));
|
|
42
|
+
this.classes = t;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
return [
|
|
48
|
-
},
|
|
49
|
-
if (
|
|
45
|
+
const Ue = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ce = (e, t) => t.includes(e == null ? void 0 : e.tagName.toLowerCase()), He = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', we = (e) => {
|
|
46
|
+
const t = X(e), s = K(e);
|
|
47
|
+
return [e, ...t, ...s];
|
|
48
|
+
}, X = (e, t = []) => {
|
|
49
|
+
if (e.self !== e.top)
|
|
50
50
|
try {
|
|
51
|
-
const s =
|
|
52
|
-
return s ? (
|
|
51
|
+
const s = e.parent;
|
|
52
|
+
return s ? (t.push(s), X(s, t)) : t;
|
|
53
53
|
} catch (s) {
|
|
54
|
-
return console.error("Different hosts between iframes:", s),
|
|
54
|
+
return console.error("Different hosts between iframes:", s), t;
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
if (
|
|
59
|
-
for (const s of Array.from(
|
|
60
|
-
|
|
61
|
-
return
|
|
62
|
-
},
|
|
63
|
-
if (!
|
|
56
|
+
return t;
|
|
57
|
+
}, K = (e, t = []) => {
|
|
58
|
+
if (e.frames.length > 0)
|
|
59
|
+
for (const s of Array.from(e.frames))
|
|
60
|
+
t.push(s), K(s, t);
|
|
61
|
+
return t;
|
|
62
|
+
}, Pe = (e) => typeof e == "string" && e.trim() !== "", We = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, ze = async (e) => e(), Q = (e, t) => {
|
|
63
|
+
if (!t)
|
|
64
64
|
return;
|
|
65
|
-
const s =
|
|
66
|
-
return `${
|
|
67
|
-
},
|
|
68
|
-
if (
|
|
69
|
-
return `${
|
|
70
|
-
},
|
|
71
|
-
let
|
|
65
|
+
const s = t.split("/");
|
|
66
|
+
return `${e}${s.slice(2, s.length - 1).join("-")}--docs`;
|
|
67
|
+
}, ce = (e, t) => {
|
|
68
|
+
if (t)
|
|
69
|
+
return `${e}${t}`;
|
|
70
|
+
}, J = (e) => {
|
|
71
|
+
let t = e.overview ? `${e.overview}
|
|
72
72
|
|
|
73
73
|
` : "";
|
|
74
|
-
const s =
|
|
75
|
-
s.length && (
|
|
76
|
-
`,
|
|
77
|
-
`).join(""),
|
|
74
|
+
const s = e.props.filter(({ attr: l }) => l !== void 0);
|
|
75
|
+
s.length && (t += `Attributes:
|
|
76
|
+
`, t += s.map(({ attr: l, docs: i }) => `- \`${l}\`: ${i}
|
|
77
|
+
`).join(""), t += `
|
|
78
78
|
`);
|
|
79
|
-
const r =
|
|
80
|
-
return r.length && (
|
|
81
|
-
`,
|
|
82
|
-
`).join(""),
|
|
83
|
-
`),
|
|
84
|
-
`,
|
|
85
|
-
`).join(""),
|
|
86
|
-
`),
|
|
87
|
-
`,
|
|
88
|
-
`).join(""),
|
|
89
|
-
`),
|
|
90
|
-
`,
|
|
91
|
-
`).join(""),
|
|
92
|
-
`),
|
|
93
|
-
`,
|
|
94
|
-
`).join(""),
|
|
95
|
-
`),
|
|
96
|
-
},
|
|
79
|
+
const r = e.props.filter(({ attr: l }) => l === void 0);
|
|
80
|
+
return r.length && (t += `Properties:
|
|
81
|
+
`, t += r.map(({ name: l, docs: i }) => `- \`${l}\`: ${i}
|
|
82
|
+
`).join(""), t += `
|
|
83
|
+
`), e.methods.length && (t += `Methods:
|
|
84
|
+
`, t += e.methods.map(({ name: l, docs: i }) => `- \`${l}\`: ${i}
|
|
85
|
+
`).join(""), t += `
|
|
86
|
+
`), e.events.length && (t += `Events:
|
|
87
|
+
`, t += e.events.map(({ event: l, docs: i }) => `- \`${l}\`: ${i}
|
|
88
|
+
`).join(""), t += `
|
|
89
|
+
`), e.listeners.length && (t += `Listeners:
|
|
90
|
+
`, t += e.listeners.map(({ event: l }) => `- \`${l}\`
|
|
91
|
+
`).join(""), t += `
|
|
92
|
+
`), e.slots.length && (t += `Slots:
|
|
93
|
+
`, t += e.slots.map(({ name: l, docs: i }) => `- \`${l}\`: ${i}
|
|
94
|
+
`).join(""), t += `
|
|
95
|
+
`), t;
|
|
96
|
+
}, M = (e) => `${e.docs}
|
|
97
97
|
|
|
98
|
-
Type: \`${
|
|
98
|
+
Type: \`${e.type}\``, qe = (e, t, s, r) => ({
|
|
99
99
|
$schema: "https://json.schemastore.org/web-types",
|
|
100
|
-
name:
|
|
101
|
-
version:
|
|
100
|
+
name: e,
|
|
101
|
+
version: t,
|
|
102
102
|
"description-markup": "markdown",
|
|
103
103
|
contributions: {
|
|
104
104
|
html: {
|
|
105
|
-
elements: s.components.map((
|
|
106
|
-
const
|
|
105
|
+
elements: s.components.map((l) => {
|
|
106
|
+
const i = Q(r, l.filePath);
|
|
107
107
|
return {
|
|
108
|
-
name:
|
|
109
|
-
description:
|
|
110
|
-
"doc-url":
|
|
111
|
-
attributes:
|
|
112
|
-
name:
|
|
113
|
-
description:
|
|
114
|
-
"doc-url":
|
|
108
|
+
name: l.tag,
|
|
109
|
+
description: J(l),
|
|
110
|
+
"doc-url": i,
|
|
111
|
+
attributes: l.props.filter((n) => n.attr).map((n) => ({
|
|
112
|
+
name: n.attr,
|
|
113
|
+
description: M(n),
|
|
114
|
+
"doc-url": i,
|
|
115
115
|
value: {
|
|
116
|
-
type:
|
|
117
|
-
default:
|
|
118
|
-
required:
|
|
116
|
+
type: n.type,
|
|
117
|
+
default: n.default,
|
|
118
|
+
required: n.required
|
|
119
119
|
}
|
|
120
120
|
})),
|
|
121
121
|
js: {
|
|
122
|
-
properties:
|
|
123
|
-
name:
|
|
124
|
-
description:
|
|
125
|
-
"doc-url":
|
|
122
|
+
properties: l.props.map((n) => ({
|
|
123
|
+
name: n.name,
|
|
124
|
+
description: M(n),
|
|
125
|
+
"doc-url": i,
|
|
126
126
|
value: {
|
|
127
|
-
type:
|
|
128
|
-
default:
|
|
129
|
-
required:
|
|
127
|
+
type: n.type,
|
|
128
|
+
default: n.default,
|
|
129
|
+
required: n.required
|
|
130
130
|
}
|
|
131
131
|
})),
|
|
132
|
-
events:
|
|
133
|
-
name:
|
|
134
|
-
description:
|
|
132
|
+
events: l.events.map((n) => ({
|
|
133
|
+
name: n.event,
|
|
134
|
+
description: n.docs
|
|
135
135
|
}))
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
})
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
version: t,
|
|
152
|
-
tags: e.components.map((n) => {
|
|
153
|
-
const l = fe(s, r, n.filePath);
|
|
141
|
+
}), $e = (e, t, s) => [
|
|
142
|
+
{ name: "Storybook", url: Q(e, s) },
|
|
143
|
+
{ name: "Sources", url: ce(t, s) }
|
|
144
|
+
], ue = (e) => {
|
|
145
|
+
if (!e.values.some(({ value: t }) => t === void 0))
|
|
146
|
+
return e.values.map(({ value: t }) => ({ name: t }));
|
|
147
|
+
}, Ie = (e, t, s, r) => ({
|
|
148
|
+
version: e,
|
|
149
|
+
tags: t.components.map((l) => {
|
|
150
|
+
const i = $e(s, r, l.filePath);
|
|
154
151
|
return {
|
|
155
|
-
name:
|
|
156
|
-
description:
|
|
157
|
-
attributes:
|
|
158
|
-
name:
|
|
159
|
-
description:
|
|
160
|
-
values:
|
|
161
|
-
references:
|
|
152
|
+
name: l.tag,
|
|
153
|
+
description: J(l),
|
|
154
|
+
attributes: l.props.map((n) => ({
|
|
155
|
+
name: n.attr || n.name,
|
|
156
|
+
description: M(n),
|
|
157
|
+
values: ue(n),
|
|
158
|
+
references: i
|
|
162
159
|
})),
|
|
163
|
-
references:
|
|
160
|
+
references: i
|
|
164
161
|
};
|
|
165
162
|
}),
|
|
166
163
|
globalAttributes: [],
|
|
167
164
|
valueSets: []
|
|
168
|
-
}),
|
|
169
|
-
const
|
|
170
|
-
return ge([
|
|
171
|
-
},
|
|
172
|
-
const r =
|
|
165
|
+
}), Ge = (e) => {
|
|
166
|
+
const t = { value: "2023", pattern: "yyyy" }, s = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
|
|
167
|
+
return ge([t.value, s.value, r.value].join("-"), e).replace(t.value, t.pattern).replace(s.value, s.pattern).replace(r.value, r.pattern);
|
|
168
|
+
}, Xe = (e) => e.toISOString().split("T")[0], de = (e, t, s) => {
|
|
169
|
+
const r = e.closest("[lang]"), l = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), i = l.length > 0 && typeof l[0] == "string" ? l[0] : navigator.language || s, n = i.split("-").shift();
|
|
173
170
|
return {
|
|
174
|
-
locale:
|
|
175
|
-
messages:
|
|
171
|
+
locale: i,
|
|
172
|
+
messages: t[n] || t[s]
|
|
176
173
|
};
|
|
177
|
-
},
|
|
174
|
+
}, Ke = (e, t, s) => new Intl.NumberFormat(t, { style: "currency", currency: s }).format(e), Qe = (e, t, s = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: s }).format(s > 0 ? Number(e == null ? void 0 : e.toFixed(s)) : e), pe = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, ge = (e, t) => typeof e != "string" || e === "" || !pe.test(e) ? "" : new Intl.DateTimeFormat(t).format(new Date(e)), Je = (e, t) => (s) => de(s, e, t);
|
|
175
|
+
var N = {
|
|
178
176
|
allRenderFn: !1,
|
|
179
177
|
cmpDidLoad: !0,
|
|
180
178
|
cmpDidUnload: !1,
|
|
@@ -262,298 +260,345 @@ Type: \`${t.type}\``, Ce = (t, e, s, r) => ({
|
|
|
262
260
|
attachStyles: !0,
|
|
263
261
|
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
264
262
|
experimentalSlotFixes: !1
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
263
|
+
}, ve = Object.defineProperty, he = (e, t) => {
|
|
264
|
+
for (var s in t)
|
|
265
|
+
ve(e, s, { get: t[s], enumerable: !0 });
|
|
266
|
+
}, w = {}, ye = "http://www.w3.org/2000/svg", be = "http://www.w3.org/1999/xhtml", me = (e) => e != null, Y = (e) => (e = typeof e, e === "object" || e === "function"), Se = {};
|
|
267
|
+
he(Se, {
|
|
268
|
+
err: () => Z,
|
|
269
|
+
map: () => ke,
|
|
270
|
+
ok: () => D,
|
|
271
|
+
unwrap: () => Te,
|
|
272
|
+
unwrapErr: () => xe
|
|
273
|
+
});
|
|
274
|
+
var D = (e) => ({
|
|
275
|
+
isOk: !0,
|
|
276
|
+
isErr: !1,
|
|
277
|
+
value: e
|
|
278
|
+
}), Z = (e) => ({
|
|
279
|
+
isOk: !1,
|
|
280
|
+
isErr: !0,
|
|
281
|
+
value: e
|
|
282
|
+
});
|
|
283
|
+
function ke(e, t) {
|
|
284
|
+
if (e.isOk) {
|
|
285
|
+
const s = t(e.value);
|
|
286
|
+
return s instanceof Promise ? s.then((r) => D(r)) : D(s);
|
|
279
287
|
}
|
|
280
|
-
if (
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
288
|
+
if (e.isErr) {
|
|
289
|
+
const s = e.value;
|
|
290
|
+
return Z(s);
|
|
291
|
+
}
|
|
292
|
+
throw "should never get here";
|
|
293
|
+
}
|
|
294
|
+
var Te = (e) => {
|
|
295
|
+
if (e.isOk)
|
|
296
|
+
return e.value;
|
|
297
|
+
throw e.value;
|
|
298
|
+
}, xe = (e) => {
|
|
299
|
+
if (e.isErr)
|
|
300
|
+
return e.value;
|
|
301
|
+
throw e.value;
|
|
302
|
+
}, P = "http://www.w3.org/1999/xlink", Ee = (e, t, ...s) => {
|
|
303
|
+
let r = null, l = null, i = null, n = !1, c = !1;
|
|
304
|
+
const o = [], d = ($) => {
|
|
305
|
+
for (let u = 0; u < $.length; u++)
|
|
306
|
+
r = $[u], Array.isArray(r) ? d(r) : r != null && typeof r != "boolean" && ((n = !Y(r)) && (r = String(r)), n && c ? o[o.length - 1].$text$ += r : o.push(n ? _(null, r) : r), c = n);
|
|
307
|
+
};
|
|
308
|
+
d(s);
|
|
309
|
+
const a = _(e, null);
|
|
310
|
+
return a.$attrs$ = t, o.length > 0 && (a.$children$ = o), a.$key$ = l, a.$name$ = i, a;
|
|
311
|
+
}, _ = (e, t) => {
|
|
285
312
|
const s = {
|
|
286
313
|
$flags$: 0,
|
|
287
|
-
$tag$:
|
|
288
|
-
$text$:
|
|
314
|
+
$tag$: e,
|
|
315
|
+
$text$: t,
|
|
289
316
|
$elm$: null,
|
|
290
317
|
$children$: null
|
|
291
318
|
};
|
|
292
319
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
|
293
|
-
},
|
|
294
|
-
forEach: (t, e) => t.map(W).forEach(e),
|
|
295
|
-
map: (t, e) => t.map(W).map(e).map(ke)
|
|
296
|
-
}, W = (t) => ({
|
|
297
|
-
vattrs: t.$attrs$,
|
|
298
|
-
vchildren: t.$children$,
|
|
299
|
-
vkey: t.$key$,
|
|
300
|
-
vname: t.$name$,
|
|
301
|
-
vtag: t.$tag$,
|
|
302
|
-
vtext: t.$text$
|
|
303
|
-
}), ke = (t) => {
|
|
304
|
-
if (typeof t.vtag == "function") {
|
|
305
|
-
const s = Object.assign({}, t.vattrs);
|
|
306
|
-
return t.vkey && (s.key = t.vkey), t.vname && (s.name = t.vname), Y(t.vtag, s, ...t.vchildren || []);
|
|
307
|
-
}
|
|
308
|
-
const e = M(t.vtag, t.vtext);
|
|
309
|
-
return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
|
|
310
|
-
}, z = (t, e, s, r, n, l) => {
|
|
320
|
+
}, Ae = {}, Le = (e) => e && e.$tag$ === Ae, W = (e, t, s, r, l, i) => {
|
|
311
321
|
if (s !== r) {
|
|
312
|
-
let
|
|
313
|
-
if (
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
} else if (
|
|
317
|
-
for (const
|
|
318
|
-
(!r || r[
|
|
319
|
-
for (const
|
|
320
|
-
(!s || r[
|
|
321
|
-
} else if (
|
|
322
|
-
if (
|
|
323
|
-
r && r(
|
|
324
|
-
else if (!
|
|
325
|
-
if (
|
|
326
|
-
const
|
|
327
|
-
|
|
322
|
+
let n = G(e, t), c = t.toLowerCase();
|
|
323
|
+
if (t === "class") {
|
|
324
|
+
const o = e.classList, d = z(s), a = z(r);
|
|
325
|
+
o.remove(...d.filter(($) => $ && !a.includes($))), o.add(...a.filter(($) => $ && !d.includes($)));
|
|
326
|
+
} else if (t === "style") {
|
|
327
|
+
for (const o in s)
|
|
328
|
+
(!r || r[o] == null) && (o.includes("-") ? e.style.removeProperty(o) : e.style[o] = "");
|
|
329
|
+
for (const o in r)
|
|
330
|
+
(!s || r[o] !== s[o]) && (o.includes("-") ? e.style.setProperty(o, r[o]) : e.style[o] = r[o]);
|
|
331
|
+
} else if (t !== "key")
|
|
332
|
+
if (t === "ref")
|
|
333
|
+
r && r(e);
|
|
334
|
+
else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
|
|
335
|
+
if (t[2] === "-" ? t = t.slice(3) : G(H, c) ? t = c.slice(2) : t = c[2] + t.slice(3), s || r) {
|
|
336
|
+
const o = t.endsWith(V);
|
|
337
|
+
t = t.replace(je, ""), s && x.rel(e, t, s, o), r && x.ael(e, t, r, o);
|
|
328
338
|
}
|
|
329
339
|
} else {
|
|
330
|
-
const
|
|
331
|
-
if ((
|
|
340
|
+
const o = Y(r);
|
|
341
|
+
if ((n || o && r !== null) && !l)
|
|
332
342
|
try {
|
|
333
|
-
if (
|
|
334
|
-
t
|
|
343
|
+
if (e.tagName.includes("-"))
|
|
344
|
+
e[t] = r;
|
|
335
345
|
else {
|
|
336
|
-
const
|
|
337
|
-
|
|
346
|
+
const a = r ?? "";
|
|
347
|
+
t === "list" ? n = !1 : (s == null || e[t] != a) && (e[t] = a);
|
|
338
348
|
}
|
|
339
349
|
} catch {
|
|
340
350
|
}
|
|
341
351
|
let d = !1;
|
|
342
|
-
c !== (c = c.replace(/^xlink\:?/, "")) && (
|
|
352
|
+
c !== (c = c.replace(/^xlink\:?/, "")) && (t = c, d = !0), r == null || r === !1 ? (r !== !1 || e.getAttribute(t) === "") && (d ? e.removeAttributeNS(P, t) : e.removeAttribute(t)) : (!n || i & 4 || l) && !o && (r = r === !0 ? "" : r, d ? e.setAttributeNS(P, t, r) : e.setAttribute(t, r));
|
|
343
353
|
}
|
|
344
354
|
}
|
|
345
|
-
},
|
|
346
|
-
const
|
|
347
|
-
for (
|
|
348
|
-
|
|
349
|
-
for (
|
|
350
|
-
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
355
|
+
}, Re = /\s/, z = (e) => e ? e.split(Re) : [], V = "Capture", je = new RegExp(V + "$"), ee = (e, t, s) => {
|
|
356
|
+
const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, l = e && e.$attrs$ || w, i = t.$attrs$ || w;
|
|
357
|
+
for (const n of q(Object.keys(l)))
|
|
358
|
+
n in i || W(r, n, l[n], void 0, s, t.$flags$);
|
|
359
|
+
for (const n of q(Object.keys(i)))
|
|
360
|
+
W(r, n, l[n], i[n], s, t.$flags$);
|
|
361
|
+
};
|
|
362
|
+
function q(e) {
|
|
363
|
+
return e.includes("ref") ? (
|
|
364
|
+
// we need to sort these to ensure that `'ref'` is the last attr
|
|
365
|
+
[...e.filter((t) => t !== "ref"), "ref"]
|
|
366
|
+
) : (
|
|
367
|
+
// no need to sort, return the original array
|
|
368
|
+
e
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
var S, F, T, B = !1, j = !1, U = !1, h = !1, O = (e, t, s, r) => {
|
|
372
|
+
var l, i, n, c;
|
|
373
|
+
const o = t.$children$[s];
|
|
374
|
+
let d = 0, a, $, u;
|
|
375
|
+
if (B || (U = !0, o.$tag$ === "slot" && (S && r.classList.add(S + "-s"), o.$flags$ |= o.$children$ ? (
|
|
356
376
|
// slot element has fallback content
|
|
377
|
+
// still create an element that "mocks" the slot element
|
|
357
378
|
2
|
|
358
379
|
) : (
|
|
359
380
|
// slot element does not have fallback content
|
|
381
|
+
// create an html comment we'll use to always reference
|
|
382
|
+
// where actual slot content should sit next to
|
|
360
383
|
1
|
|
361
|
-
))),
|
|
362
|
-
|
|
363
|
-
else if (
|
|
364
|
-
|
|
384
|
+
))), o.$text$ !== null)
|
|
385
|
+
a = o.$elm$ = R.createTextNode(o.$text$);
|
|
386
|
+
else if (o.$flags$ & 1)
|
|
387
|
+
a = o.$elm$ = R.createTextNode("");
|
|
365
388
|
else {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
389
|
+
h || (h = o.$tag$ === "svg"), a = o.$elm$ = R.createElementNS(
|
|
390
|
+
h ? ye : be,
|
|
391
|
+
o.$flags$ & 2 ? "slot-fb" : o.$tag$
|
|
392
|
+
), h && o.$tag$ === "foreignObject" && (h = !1), ee(null, o, h), me(S) && a["s-si"] !== S && a.classList.add(a["s-si"] = S);
|
|
393
|
+
{
|
|
394
|
+
const f = ((l = t.$elm$) == null ? void 0 : l["s-rsc"]) || ((i = t.$elm$) == null ? void 0 : i["s-si"]) || ((n = t.$elm$) == null ? void 0 : n["s-sc"]);
|
|
395
|
+
f && (a["s-rsc"] = f, !a.classList.contains(f) && a.classList.add(f));
|
|
396
|
+
}
|
|
397
|
+
if (o.$children$)
|
|
398
|
+
for (d = 0; d < o.$children$.length; ++d)
|
|
399
|
+
$ = O(e, o, d, a), $ && a.appendChild($);
|
|
400
|
+
o.$tag$ === "svg" ? h = !1 : a.tagName === "foreignObject" && (h = !0);
|
|
370
401
|
}
|
|
371
|
-
return
|
|
372
|
-
},
|
|
402
|
+
return a["s-hn"] = T, o.$flags$ & 3 && (a["s-sr"] = !0, a["s-cr"] = F, a["s-sn"] = o.$name$ || "", a["s-rf"] = (c = o.$attrs$) == null ? void 0 : c.ref, u = e && e.$children$ && e.$children$[s], u && u.$tag$ === o.$tag$ && e.$elm$ && E(e.$elm$, !1)), a;
|
|
403
|
+
}, E = (e, t) => {
|
|
373
404
|
x.$flags$ |= 1;
|
|
374
|
-
const s = Array.from(
|
|
375
|
-
if (
|
|
376
|
-
let r =
|
|
405
|
+
const s = Array.from(e.childNodes);
|
|
406
|
+
if (e["s-sr"] && N.experimentalSlotFixes) {
|
|
407
|
+
let r = e;
|
|
377
408
|
for (; r = r.nextSibling; )
|
|
378
|
-
r && r["s-sn"] ===
|
|
409
|
+
r && r["s-sn"] === e["s-sn"] && r["s-sh"] === T && s.push(r);
|
|
379
410
|
}
|
|
380
411
|
for (let r = s.length - 1; r >= 0; r--) {
|
|
381
|
-
const
|
|
382
|
-
|
|
412
|
+
const l = s[r];
|
|
413
|
+
l["s-hn"] !== T && l["s-ol"] && (re(l).insertBefore(l, C(l)), l["s-ol"].remove(), l["s-ol"] = void 0, l["s-sh"] = void 0, U = !0), t && E(l, t);
|
|
383
414
|
}
|
|
384
415
|
x.$flags$ &= -2;
|
|
385
|
-
},
|
|
386
|
-
let
|
|
387
|
-
for (
|
|
388
|
-
r[
|
|
389
|
-
},
|
|
390
|
-
for (let r =
|
|
391
|
-
const
|
|
392
|
-
if (
|
|
393
|
-
const
|
|
394
|
-
|
|
416
|
+
}, te = (e, t, s, r, l, i) => {
|
|
417
|
+
let n = e["s-cr"] && e["s-cr"].parentNode || e, c;
|
|
418
|
+
for (n.shadowRoot && n.tagName === T && (n = n.shadowRoot); l <= i; ++l)
|
|
419
|
+
r[l] && (c = O(null, s, l, e), c && (r[l].$elm$ = c, n.insertBefore(c, C(t))));
|
|
420
|
+
}, se = (e, t, s) => {
|
|
421
|
+
for (let r = t; r <= s; ++r) {
|
|
422
|
+
const l = e[r];
|
|
423
|
+
if (l) {
|
|
424
|
+
const i = l.$elm$;
|
|
425
|
+
oe(l), i && (j = !0, i["s-ol"] ? i["s-ol"].remove() : E(i, !0), i.remove());
|
|
395
426
|
}
|
|
396
427
|
}
|
|
397
|
-
},
|
|
398
|
-
let
|
|
399
|
-
for (;
|
|
400
|
-
if (
|
|
401
|
-
|
|
402
|
-
else if (
|
|
403
|
-
|
|
428
|
+
}, Oe = (e, t, s, r, l = !1) => {
|
|
429
|
+
let i = 0, n = 0, c = 0, o = 0, d = t.length - 1, a = t[0], $ = t[d], u = r.length - 1, f = r[0], p = r[u], b, y;
|
|
430
|
+
for (; i <= d && n <= u; )
|
|
431
|
+
if (a == null)
|
|
432
|
+
a = t[++i];
|
|
433
|
+
else if ($ == null)
|
|
434
|
+
$ = t[--d];
|
|
404
435
|
else if (f == null)
|
|
405
|
-
f = r[++
|
|
406
|
-
else if (
|
|
407
|
-
|
|
408
|
-
else if (
|
|
409
|
-
|
|
410
|
-
else if (
|
|
411
|
-
|
|
412
|
-
else if (
|
|
413
|
-
(
|
|
414
|
-
else if (
|
|
415
|
-
(
|
|
436
|
+
f = r[++n];
|
|
437
|
+
else if (p == null)
|
|
438
|
+
p = r[--u];
|
|
439
|
+
else if (L(a, f, l))
|
|
440
|
+
k(a, f, l), a = t[++i], f = r[++n];
|
|
441
|
+
else if (L($, p, l))
|
|
442
|
+
k($, p, l), $ = t[--d], p = r[--u];
|
|
443
|
+
else if (L(a, p, l))
|
|
444
|
+
(a.$tag$ === "slot" || p.$tag$ === "slot") && E(a.$elm$.parentNode, !1), k(a, p, l), e.insertBefore(a.$elm$, $.$elm$.nextSibling), a = t[++i], p = r[--u];
|
|
445
|
+
else if (L($, f, l))
|
|
446
|
+
(a.$tag$ === "slot" || p.$tag$ === "slot") && E($.$elm$.parentNode, !1), k($, f, l), e.insertBefore($.$elm$, a.$elm$), $ = t[--d], f = r[++n];
|
|
416
447
|
else {
|
|
417
|
-
for (c = -1,
|
|
418
|
-
if (
|
|
419
|
-
c =
|
|
448
|
+
for (c = -1, o = i; o <= d; ++o)
|
|
449
|
+
if (t[o] && t[o].$key$ !== null && t[o].$key$ === f.$key$) {
|
|
450
|
+
c = o;
|
|
420
451
|
break;
|
|
421
452
|
}
|
|
422
|
-
c >= 0 ? (y =
|
|
453
|
+
c >= 0 ? (y = t[c], y.$tag$ !== f.$tag$ ? b = O(t && t[n], s, c, e) : (k(y, f, l), t[c] = void 0, b = y.$elm$), f = r[++n]) : (b = O(t && t[n], s, n, e), f = r[++n]), b && re(a.$elm$).insertBefore(b, C(a.$elm$));
|
|
423
454
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
455
|
+
i > d ? te(
|
|
456
|
+
e,
|
|
457
|
+
r[u + 1] == null ? null : r[u + 1].$elm$,
|
|
458
|
+
s,
|
|
459
|
+
r,
|
|
460
|
+
n,
|
|
461
|
+
u
|
|
462
|
+
) : n > u && se(t, i, d);
|
|
463
|
+
}, L = (e, t, s = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : s ? !0 : e.$key$ === t.$key$ : !1, C = (e) => e && e["s-ol"] || e, re = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, k = (e, t, s = !1) => {
|
|
464
|
+
const r = t.$elm$ = e.$elm$, l = e.$children$, i = t.$children$, n = t.$tag$, c = t.$text$;
|
|
465
|
+
let o;
|
|
466
|
+
c === null ? (h = n === "svg" ? !0 : n === "foreignObject" ? !1 : h, n === "slot" && !B || ee(e, t, h), l !== null && i !== null ? Oe(r, l, t, i, s) : i !== null ? (e.$text$ !== null && (r.textContent = ""), te(r, null, t, i, 0, i.length - 1)) : l !== null && se(l, 0, l.length - 1), h && n === "svg" && (h = !1)) : (o = r["s-cr"]) ? o.parentNode.textContent = c : e.$text$ !== c && (r.data = c);
|
|
467
|
+
}, le = (e) => {
|
|
468
|
+
const t = e.childNodes;
|
|
469
|
+
for (const s of t)
|
|
432
470
|
if (s.nodeType === 1) {
|
|
433
471
|
if (s["s-sr"]) {
|
|
434
472
|
const r = s["s-sn"];
|
|
435
473
|
s.hidden = !1;
|
|
436
|
-
for (const
|
|
437
|
-
if (
|
|
438
|
-
if (
|
|
439
|
-
if (
|
|
474
|
+
for (const l of t)
|
|
475
|
+
if (l !== s) {
|
|
476
|
+
if (l["s-hn"] !== s["s-hn"] || r !== "") {
|
|
477
|
+
if (l.nodeType === 1 && (r === l.getAttribute("slot") || r === l["s-sn"]) || l.nodeType === 3 && r === l["s-sn"]) {
|
|
440
478
|
s.hidden = !0;
|
|
441
479
|
break;
|
|
442
480
|
}
|
|
443
|
-
} else if (
|
|
481
|
+
} else if (l.nodeType === 1 || l.nodeType === 3 && l.textContent.trim() !== "") {
|
|
444
482
|
s.hidden = !0;
|
|
445
483
|
break;
|
|
446
484
|
}
|
|
447
485
|
}
|
|
448
486
|
}
|
|
449
|
-
|
|
487
|
+
le(s);
|
|
450
488
|
}
|
|
451
|
-
},
|
|
452
|
-
let
|
|
453
|
-
for (const
|
|
454
|
-
if (
|
|
455
|
-
s =
|
|
456
|
-
const
|
|
489
|
+
}, m = [], ne = (e) => {
|
|
490
|
+
let t, s, r;
|
|
491
|
+
for (const l of e.childNodes) {
|
|
492
|
+
if (l["s-sr"] && (t = l["s-cr"]) && t.parentNode) {
|
|
493
|
+
s = t.parentNode.childNodes;
|
|
494
|
+
const i = l["s-sn"];
|
|
457
495
|
for (r = s.length - 1; r >= 0; r--)
|
|
458
|
-
if (
|
|
459
|
-
if (
|
|
460
|
-
let
|
|
461
|
-
|
|
462
|
-
$slotRefNode$:
|
|
463
|
-
$nodeToRelocate$:
|
|
464
|
-
})),
|
|
465
|
-
|
|
496
|
+
if (t = s[r], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== l["s-hn"] && !N.experimentalSlotFixes)
|
|
497
|
+
if (I(t, i)) {
|
|
498
|
+
let n = m.find((c) => c.$nodeToRelocate$ === t);
|
|
499
|
+
j = !0, t["s-sn"] = t["s-sn"] || i, n ? (n.$nodeToRelocate$["s-sh"] = l["s-hn"], n.$slotRefNode$ = l) : (t["s-sh"] = l["s-hn"], m.push({
|
|
500
|
+
$slotRefNode$: l,
|
|
501
|
+
$nodeToRelocate$: t
|
|
502
|
+
})), t["s-sr"] && m.map((c) => {
|
|
503
|
+
I(c.$nodeToRelocate$, t["s-sn"]) && (n = m.find((o) => o.$nodeToRelocate$ === t), n && !c.$slotRefNode$ && (c.$slotRefNode$ = n.$slotRefNode$));
|
|
466
504
|
});
|
|
467
505
|
} else
|
|
468
|
-
|
|
469
|
-
$nodeToRelocate$:
|
|
506
|
+
m.some((n) => n.$nodeToRelocate$ === t) || m.push({
|
|
507
|
+
$nodeToRelocate$: t
|
|
470
508
|
});
|
|
471
509
|
}
|
|
472
|
-
|
|
510
|
+
l.nodeType === 1 && ne(l);
|
|
473
511
|
}
|
|
474
|
-
},
|
|
475
|
-
|
|
476
|
-
},
|
|
477
|
-
var r,
|
|
478
|
-
const
|
|
479
|
-
if (
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
512
|
+
}, I = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", oe = (e) => {
|
|
513
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(oe);
|
|
514
|
+
}, Me = (e, t, s = !1) => {
|
|
515
|
+
var r, l, i, n, c;
|
|
516
|
+
const o = e.$hostElement$, d = e.$cmpMeta$, a = e.$vnode$ || _(null, null), $ = Le(t) ? t : Ee(null, null, t);
|
|
517
|
+
if (T = o.tagName, d.$attrsToReflect$ && ($.$attrs$ = $.$attrs$ || {}, d.$attrsToReflect$.map(
|
|
518
|
+
([u, f]) => $.$attrs$[f] = o[u]
|
|
519
|
+
)), s && $.$attrs$)
|
|
520
|
+
for (const u of Object.keys($.$attrs$))
|
|
521
|
+
o.hasAttribute(u) && !["key", "ref", "style", "class"].includes(u) && ($.$attrs$[u] = o[u]);
|
|
522
|
+
$.$tag$ = null, $.$flags$ |= 4, e.$vnode$ = $, $.$elm$ = a.$elm$ = o.shadowRoot || o, S = o["s-sc"], B = (d.$flags$ & 1) !== 0, F = o["s-cr"], j = !1, k(a, $, s);
|
|
483
523
|
{
|
|
484
|
-
if (x.$flags$ |= 1,
|
|
485
|
-
ne(
|
|
486
|
-
for (const
|
|
487
|
-
const f =
|
|
524
|
+
if (x.$flags$ |= 1, U) {
|
|
525
|
+
ne($.$elm$);
|
|
526
|
+
for (const u of m) {
|
|
527
|
+
const f = u.$nodeToRelocate$;
|
|
488
528
|
if (!f["s-ol"]) {
|
|
489
|
-
const
|
|
490
|
-
|
|
529
|
+
const p = R.createTextNode("");
|
|
530
|
+
p["s-nr"] = f, f.parentNode.insertBefore(f["s-ol"] = p, f);
|
|
491
531
|
}
|
|
492
532
|
}
|
|
493
|
-
for (const
|
|
494
|
-
const f =
|
|
495
|
-
if (
|
|
496
|
-
const
|
|
497
|
-
let y =
|
|
533
|
+
for (const u of m) {
|
|
534
|
+
const f = u.$nodeToRelocate$, p = u.$slotRefNode$;
|
|
535
|
+
if (p) {
|
|
536
|
+
const b = p.parentNode;
|
|
537
|
+
let y = p.nextSibling;
|
|
498
538
|
{
|
|
499
|
-
let
|
|
500
|
-
for (;
|
|
501
|
-
let
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
-
|
|
539
|
+
let A = (r = f["s-ol"]) == null ? void 0 : r.previousSibling;
|
|
540
|
+
for (; A; ) {
|
|
541
|
+
let v = (l = A["s-nr"]) != null ? l : null;
|
|
542
|
+
if (v && v["s-sn"] === f["s-sn"] && b === v.parentNode) {
|
|
543
|
+
for (v = v.nextSibling; v === f || v != null && v["s-sr"]; )
|
|
544
|
+
v = v == null ? void 0 : v.nextSibling;
|
|
545
|
+
if (!v || !v["s-nr"]) {
|
|
546
|
+
y = v;
|
|
547
|
+
break;
|
|
548
|
+
}
|
|
505
549
|
}
|
|
506
|
-
|
|
550
|
+
A = A.previousSibling;
|
|
507
551
|
}
|
|
508
552
|
}
|
|
509
|
-
(!y &&
|
|
553
|
+
(!y && b !== f.parentNode || f.nextSibling !== y) && f !== y && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), b.insertBefore(f, y), f.nodeType === 1 && (f.hidden = (i = f["s-ih"]) != null ? i : !1)), f && typeof p["s-rf"] == "function" && p["s-rf"](f);
|
|
510
554
|
} else
|
|
511
|
-
f.nodeType === 1 && (s && (f["s-ih"] = (
|
|
555
|
+
f.nodeType === 1 && (s && (f["s-ih"] = (n = f.hidden) != null ? n : !1), f.hidden = !0);
|
|
512
556
|
}
|
|
513
557
|
}
|
|
514
|
-
|
|
558
|
+
j && le($.$elm$), x.$flags$ &= -2, m.length = 0;
|
|
515
559
|
}
|
|
516
|
-
if (
|
|
517
|
-
for (const
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}, G = (
|
|
521
|
-
|
|
522
|
-
|
|
560
|
+
if (N.experimentalScopedSlotChanges && d.$flags$ & 2)
|
|
561
|
+
for (const u of $.$elm$.childNodes)
|
|
562
|
+
u["s-hn"] !== T && !u["s-sh"] && (s && u["s-ih"] == null && (u["s-ih"] = (c = u.hidden) != null ? c : !1), u.hidden = !0);
|
|
563
|
+
F = void 0;
|
|
564
|
+
}, G = (e, t) => t in e, H = typeof window < "u" ? window : {}, R = H.document || { head: {} };
|
|
565
|
+
H.HTMLElement;
|
|
566
|
+
var x = {
|
|
523
567
|
$flags$: 0,
|
|
524
568
|
$resourcesUrl$: "",
|
|
525
|
-
jmp: (
|
|
526
|
-
raf: (
|
|
527
|
-
ael: (
|
|
528
|
-
rel: (
|
|
529
|
-
ce: (
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
569
|
+
jmp: (e) => e(),
|
|
570
|
+
raf: (e) => requestAnimationFrame(e),
|
|
571
|
+
ael: (e, t, s, r) => e.addEventListener(t, s, r),
|
|
572
|
+
rel: (e, t, s, r) => e.removeEventListener(t, s, r),
|
|
573
|
+
ce: (e, t) => new CustomEvent(e, t)
|
|
574
|
+
};
|
|
575
|
+
const De = (e, t, s) => {
|
|
576
|
+
[null, void 0, "", !1].includes(s) || ["innerHTML", "style"].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof s) ? "/!\\ Object props are not rendered in the code example" : s);
|
|
577
|
+
}, ie = (e, t, s, r, l) => {
|
|
578
|
+
if (t && typeof t == "string") {
|
|
579
|
+
const i = document.createElement(t);
|
|
580
|
+
Object.keys(s || {}).forEach((n) => {
|
|
581
|
+
De(i, n, s[n]);
|
|
582
|
+
}), r == null || r.forEach((n) => {
|
|
583
|
+
ie(i, n.$tag$, n.$attrs$, n.$children$, n.$text$);
|
|
584
|
+
}), s != null && s.innerHTML && (i.innerHTML = s.innerHTML), e.appendChild(i);
|
|
540
585
|
}
|
|
541
|
-
|
|
542
|
-
},
|
|
586
|
+
l && (e.innerHTML = l);
|
|
587
|
+
}, Ye = (e, t) => {
|
|
543
588
|
const s = {};
|
|
544
|
-
if (typeof
|
|
589
|
+
if (typeof e != "object")
|
|
545
590
|
throw new Error("filterArgs - args isn't an object.");
|
|
546
|
-
for (const r in
|
|
591
|
+
for (const r in e)
|
|
547
592
|
if (!r.startsWith("slot")) {
|
|
548
|
-
const
|
|
549
|
-
(!
|
|
593
|
+
const l = e[r], i = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
594
|
+
(!t || !Object.keys(t).includes(r) || t[r] !== l) && (s[i] = l);
|
|
550
595
|
}
|
|
551
596
|
return s;
|
|
552
|
-
},
|
|
553
|
-
var r,
|
|
597
|
+
}, Ze = (e, t) => {
|
|
598
|
+
var r, l;
|
|
554
599
|
const s = document.getElementById("storybook-root");
|
|
555
600
|
if (s)
|
|
556
|
-
return (
|
|
601
|
+
return (l = document.querySelector("[lang]")) == null || l.setAttribute("lang", ((r = t.globals) == null ? void 0 : r.locale) || "en"), Me(
|
|
557
602
|
{
|
|
558
603
|
$ancestorComponent$: void 0,
|
|
559
604
|
$flags$: 0,
|
|
@@ -564,60 +609,60 @@ const x = {
|
|
|
564
609
|
},
|
|
565
610
|
$hostElement$: s
|
|
566
611
|
},
|
|
567
|
-
t
|
|
612
|
+
e(t)
|
|
568
613
|
), s.children[s.children.length - 1];
|
|
569
|
-
},
|
|
570
|
-
const
|
|
571
|
-
return
|
|
572
|
-
},
|
|
614
|
+
}, Ve = ({ $tag$: e, $attrs$: t, $children$: s, $text$: r }) => {
|
|
615
|
+
const l = document.createElement("div");
|
|
616
|
+
return ie(l, e, t, s, r), l.innerHTML;
|
|
617
|
+
}, et = ({ disconnect: e, observe: t, takeRecords: s }) => {
|
|
573
618
|
class r {
|
|
574
|
-
constructor(
|
|
619
|
+
constructor(i) {
|
|
575
620
|
/**
|
|
576
621
|
*
|
|
577
622
|
*/
|
|
578
|
-
|
|
623
|
+
g(this, "disconnect", e);
|
|
579
624
|
/**
|
|
580
625
|
*
|
|
581
626
|
*/
|
|
582
|
-
|
|
627
|
+
g(this, "observe", t);
|
|
583
628
|
/**
|
|
584
629
|
*
|
|
585
630
|
*/
|
|
586
|
-
|
|
631
|
+
g(this, "takeRecords", s);
|
|
587
632
|
/**
|
|
588
633
|
*
|
|
589
634
|
*/
|
|
590
|
-
|
|
591
|
-
this.cb =
|
|
635
|
+
g(this, "cb");
|
|
636
|
+
this.cb = i;
|
|
592
637
|
}
|
|
593
638
|
}
|
|
594
|
-
return [window, global].forEach((
|
|
595
|
-
Object.defineProperty(
|
|
639
|
+
return [window, global].forEach((l) => {
|
|
640
|
+
Object.defineProperty(l, "MutationObserver", {
|
|
596
641
|
writable: !0,
|
|
597
642
|
configurable: !0,
|
|
598
643
|
value: r
|
|
599
644
|
});
|
|
600
645
|
}), r;
|
|
601
|
-
},
|
|
646
|
+
}, tt = ({ disconnect: e, observe: t }) => {
|
|
602
647
|
class s {
|
|
603
|
-
constructor(
|
|
648
|
+
constructor(l) {
|
|
604
649
|
/**
|
|
605
650
|
*
|
|
606
651
|
*/
|
|
607
|
-
|
|
652
|
+
g(this, "disconnect", e);
|
|
608
653
|
/**
|
|
609
654
|
*
|
|
610
655
|
*/
|
|
611
|
-
|
|
656
|
+
g(this, "observe", t);
|
|
612
657
|
/**
|
|
613
658
|
*
|
|
614
659
|
*/
|
|
615
|
-
|
|
660
|
+
g(this, "unobserve");
|
|
616
661
|
/**
|
|
617
662
|
*
|
|
618
663
|
*/
|
|
619
|
-
|
|
620
|
-
this.cb =
|
|
664
|
+
g(this, "cb");
|
|
665
|
+
this.cb = l;
|
|
621
666
|
}
|
|
622
667
|
}
|
|
623
668
|
return [window, global].forEach((r) => {
|
|
@@ -628,52 +673,52 @@ const x = {
|
|
|
628
673
|
});
|
|
629
674
|
}), s;
|
|
630
675
|
};
|
|
631
|
-
class
|
|
676
|
+
class _e extends Event {
|
|
632
677
|
constructor() {
|
|
633
678
|
super(...arguments);
|
|
634
679
|
/**
|
|
635
680
|
*
|
|
636
681
|
*/
|
|
637
682
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
638
|
-
|
|
683
|
+
g(this, "detail");
|
|
639
684
|
}
|
|
640
685
|
}
|
|
641
|
-
const
|
|
642
|
-
class
|
|
686
|
+
const st = () => {
|
|
687
|
+
class e extends _e {
|
|
643
688
|
}
|
|
644
|
-
return [window, global].forEach((
|
|
645
|
-
Object.defineProperty(
|
|
689
|
+
return [window, global].forEach((t) => {
|
|
690
|
+
Object.defineProperty(t, "SubmitEvent", {
|
|
646
691
|
writable: !0,
|
|
647
692
|
configurable: !0,
|
|
648
|
-
value:
|
|
693
|
+
value: e
|
|
649
694
|
});
|
|
650
|
-
}),
|
|
695
|
+
}), e;
|
|
651
696
|
};
|
|
652
697
|
export {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
698
|
+
Be as ClassList,
|
|
699
|
+
Ue as allItemsAreString,
|
|
700
|
+
We as cleanString,
|
|
701
|
+
Ne as createID,
|
|
702
|
+
pe as dateRegExp,
|
|
703
|
+
Xe as dateToString,
|
|
704
|
+
Je as defineLocales,
|
|
705
|
+
Ye as filterArgs,
|
|
706
|
+
He as focusableElements,
|
|
707
|
+
Ge as getLocaleDatePattern,
|
|
708
|
+
X as getParentWindows,
|
|
709
|
+
Ve as getStoryHTML,
|
|
710
|
+
we as getWindows,
|
|
711
|
+
Ce as isTagName,
|
|
712
|
+
Pe as isValidString,
|
|
713
|
+
Ke as localeCurrency,
|
|
669
714
|
ge as localeDate,
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
715
|
+
Qe as localeNumber,
|
|
716
|
+
ze as nextTick,
|
|
717
|
+
et as setupMutationObserverMock,
|
|
718
|
+
tt as setupResizeObserverMock,
|
|
719
|
+
st as setupSubmitEventMock,
|
|
720
|
+
Ze as stencilWrapper,
|
|
721
|
+
Ie as vsCodeGenerator,
|
|
722
|
+
qe as webTypesGenerator
|
|
678
723
|
};
|
|
679
724
|
//# sourceMappingURL=index.es.js.map
|