@mgdis/stencil-helpers 1.1.2 → 1.1.3

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