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