@mgdis/stencil-helpers 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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 r = Array.from(n).map((s) => s.toString(16).padStart(2, "0")).join("").slice(0, e);
8
+ return t !== "" ? `${t}-${r}` : r;
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 = G(t), n = I(t);
47
+ return [t, ...e, ...n];
48
+ }, G = (t, e = []) => {
49
+ if (t.self !== t.top)
50
+ try {
51
+ const n = t.parent;
52
+ return n ? (e.push(n), G(n, e)) : e;
53
+ } catch (n) {
54
+ return console.error("Different hosts between iframes:", n), e;
55
+ }
56
+ return e;
57
+ }, I = (t, e = []) => {
58
+ if (t.frames.length > 0)
59
+ for (const n of Array.from(t.frames))
60
+ e.push(n), I(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(), X = (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
+ }, K = (t) => {
71
+ let e = t.overview ? `${t.overview}
72
+
73
+ ` : "";
74
+ const n = t.props.filter(({ attr: s }) => s !== void 0);
75
+ n.length && (e += `Attributes:
76
+ `, e += n.map(({ attr: s, docs: o }) => `- \`${s}\`: ${o}
77
+ `).join(""), e += `
78
+ `);
79
+ const r = t.props.filter(({ attr: s }) => s === void 0);
80
+ return r.length && (e += `Properties:
81
+ `, e += r.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
82
+ `).join(""), e += `
83
+ `), t.methods.length && (e += `Methods:
84
+ `, e += t.methods.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
85
+ `).join(""), e += `
86
+ `), t.events.length && (e += `Events:
87
+ `, e += t.events.map(({ event: s, docs: o }) => `- \`${s}\`: ${o}
88
+ `).join(""), e += `
89
+ `), t.listeners.length && (e += `Listeners:
90
+ `, e += t.listeners.map(({ event: s }) => `- \`${s}\`
91
+ `).join(""), e += `
92
+ `), t.slots.length && (e += `Slots:
93
+ `, e += t.slots.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
94
+ `).join(""), e += `
95
+ `), e;
96
+ }, F = (t) => `${t.docs}
97
+
98
+ Type: \`${t.type}\``, Ce = (t, e, n, r) => ({
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((s) => {
106
+ const o = X(r, s.filePath);
107
+ return {
108
+ name: s.tag,
109
+ description: K(s),
110
+ "doc-url": o,
111
+ attributes: s.props.filter((l) => l.attr).map((l) => ({
112
+ name: l.attr,
113
+ description: F(l),
114
+ "doc-url": o,
115
+ value: {
116
+ type: l.type,
117
+ default: l.default,
118
+ required: l.required
119
+ }
120
+ })),
121
+ js: {
122
+ properties: s.props.map((l) => ({
123
+ name: l.name,
124
+ description: F(l),
125
+ "doc-url": o,
126
+ value: {
127
+ type: l.type,
128
+ default: l.default,
129
+ required: l.required
130
+ }
131
+ })),
132
+ events: s.events.map((l) => ({
133
+ name: l.event,
134
+ description: l.docs
135
+ }))
136
+ }
137
+ };
138
+ })
139
+ }
140
+ }
141
+ }), fe = (t, e, n) => {
142
+ if (n)
143
+ return [
144
+ { name: "Storybook", url: X(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, r) => ({
151
+ version: t,
152
+ tags: e.components.map((s) => {
153
+ const o = fe(n, r, s.filePath);
154
+ return {
155
+ name: s.tag,
156
+ description: K(s),
157
+ attributes: s.props.map((l) => ({
158
+ name: l.attr || l.name,
159
+ description: F(l),
160
+ values: $e(l),
161
+ references: o
162
+ })),
163
+ references: o
164
+ };
165
+ }),
166
+ globalAttributes: [],
167
+ valueSets: []
168
+ }), Pe = (t) => {
169
+ const e = { value: "2023", pattern: "yyyy" }, n = { value: "12", pattern: "mm" }, r = { value: "24", pattern: "dd" };
170
+ return ge([e.value, n.value, r.value].join("-"), t).replace(e.value, e.pattern).replace(n.value, n.pattern).replace(r.value, r.pattern);
171
+ }, We = (t) => t.toISOString().split("T")[0], ue = (t, e, n) => {
172
+ const r = t.closest("[lang]"), s = Intl.NumberFormat.supportedLocalesOf(r == null ? void 0 : r.lang), o = s.length > 0 && typeof s[0] == "string" ? s[0] : navigator.language || n, l = o.split("-").shift();
173
+ return {
174
+ locale: o,
175
+ messages: e[l] || 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), Q = {
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, x, _ = !1, R = !1, B = !1, h = !1;
267
+ const C = "http://www.w3.org/1999/xlink", H = {}, 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 r = null, s = null, o = null, l = !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" && ((l = typeof t != "function" && !J(r)) && (r = String(r)), l && c ? i[i.length - 1].$text$ += r : i.push(l ? M(null, r) : r), c = l);
99
272
  };
100
273
  if (d(n), e) {
101
- e.key && (l = e.key), e.name && (r = e.name);
274
+ e.key && (s = e.key), e.name && (o = 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$ = s, u.$name$ = o, u;
284
+ }, M = (t, e) => {
112
285
  const n = {
113
286
  $flags$: 0,
114
287
  $tag$: t,
@@ -117,9 +290,9 @@ 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 = {
293
+ }, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {
121
294
  forEach: (t, e) => t.map(P).forEach(e),
122
- map: (t, e) => t.map(P).map(e).map(ue)
295
+ map: (t, e) => t.map(P).map(e).map(ke)
123
296
  }, P = (t) => ({
124
297
  vattrs: t.$attrs$,
125
298
  vchildren: t.$children$,
@@ -127,254 +300,254 @@ const H = "http://www.w3.org/1999/xlink", C = {}, re = "http://www.w3.org/2000/s
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) => {
138
- if (n !== s) {
139
- let o = I(t, e), c = e.toLowerCase();
310
+ }, W = (t, e, n, r, s, o) => {
311
+ if (n !== r) {
312
+ let l = w(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 = z(n), u = z(r);
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
- (!s || s[i] == null) && (i.includes("-") ? t.style.removeProperty(i) : t.style[i] = "");
146
- for (const i in s)
147
- (!n || s[i] !== n[i]) && (i.includes("-") ? t.style.setProperty(i, s[i]) : t.style[i] = s[i]);
318
+ (!r || r[i] == null) && (i.includes("-") ? t.style.removeProperty(i) : t.style[i] = "");
319
+ for (const i in r)
320
+ (!n || r[i] !== n[i]) && (i.includes("-") ? t.style.setProperty(i, r[i]) : t.style[i] = r[i]);
148
321
  } else if (e !== "key")
149
322
  if (e === "ref")
150
- s && s(t);
323
+ r && r(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) : w(U, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || r) {
326
+ const i = e.endsWith(Z);
327
+ e = e.replace(Te, ""), n && T.rel(t, e, n, i), r && T.ael(t, e, r, i);
155
328
  }
156
329
  } else {
157
- const i = q(s);
158
- if ((o || i && s !== null) && !l)
330
+ const i = J(r);
331
+ if ((l || i && r !== null) && !s)
159
332
  try {
160
333
  if (t.tagName.includes("-"))
161
- t[e] = s;
334
+ t[e] = r;
162
335
  else {
163
- const u = s ?? "";
164
- e === "list" ? o = !1 : (n == null || t[e] != u) && (t[e] = u);
336
+ const u = r ?? "";
337
+ e === "list" ? l = !1 : (n == null || t[e] != u) && (t[e] = u);
165
338
  }
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), r == null || r === !1 ? (r !== !1 || t.getAttribute(e) === "") && (d ? t.removeAttributeNS(C, e) : t.removeAttribute(e)) : (!l || o & 4 || s) && !i && (r = r === !0 ? "" : r, d ? t.setAttributeNS(C, e, r) : t.setAttribute(e, r));
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$);
176
- for (s in o)
177
- U(l, s, r[s], o[s], n, e.$flags$);
178
- }, j = (t, e, n, s) => {
179
- 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$ ? (
345
+ }, me = /\s/, z = (t) => t ? t.split(me) : [], Z = "Capture", Te = new RegExp(Z + "$"), V = (t, e, n, r) => {
346
+ const s = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, o = t && t.$attrs$ || H, l = e.$attrs$ || H;
347
+ for (r in o)
348
+ r in l || W(s, r, o[r], void 0, n, e.$flags$);
349
+ for (r in l)
350
+ W(s, r, o[r], l[r], n, e.$flags$);
351
+ }, O = (t, e, n, r) => {
352
+ const s = e.$children$[n];
353
+ let o = 0, l, c, i;
354
+ if (_ || (B = !0, s.$tag$ === "slot" && (k && r.classList.add(k + "-s"), s.$flags$ |= s.$children$ ? (
182
355
  // slot element has fallback content
183
356
  2
184
357
  ) : (
185
358
  // slot element does not have fallback content
186
359
  1
187
- ))), l.$text$ !== null)
188
- o = l.$elm$ = R.createTextNode(l.$text$);
189
- else if (l.$flags$ & 1)
190
- o = l.$elm$ = R.createTextNode("");
360
+ ))), s.$text$ !== null)
361
+ l = s.$elm$ = j.createTextNode(s.$text$);
362
+ else if (s.$flags$ & 1)
363
+ l = s.$elm$ = j.createTextNode("");
191
364
  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);
365
+ if (h || (h = s.$tag$ === "svg"), l = s.$elm$ = j.createElementNS(h ? pe : he, s.$flags$ & 2 ? "slot-fb" : s.$tag$), h && s.$tag$ === "foreignObject" && (h = !1), V(null, s, h), ye(k) && l["s-si"] !== k && l.classList.add(l["s-si"] = k), s.$children$)
366
+ for (o = 0; o < s.$children$.length; ++o)
367
+ c = O(t, s, o, l), c && l.appendChild(c);
368
+ s.$tag$ === "svg" ? h = !1 : l.tagName === "foreignObject" && (h = !0);
196
369
  }
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;
198
- }, L = (t, e) => {
199
- x.$flags$ |= 1;
370
+ return l["s-hn"] = x, s.$flags$ & 3 && (l["s-sr"] = !0, l["s-cr"] = D, l["s-sn"] = s.$name$ || "", i = t && t.$children$ && t.$children$[n], i && i.$tag$ === s.$tag$ && t.$elm$ && E(t.$elm$, !1)), l;
371
+ }, E = (t, e) => {
372
+ T.$flags$ |= 1;
200
373
  const n = t.childNodes;
201
- 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);
374
+ for (let r = n.length - 1; r >= 0; r--) {
375
+ const s = n[r];
376
+ s["s-hn"] !== x && s["s-ol"] && (se(s).insertBefore(s, N(s)), s["s-ol"].remove(), s["s-ol"] = void 0, s["s-sh"] = void 0, B = !0), e && E(s, e);
204
377
  }
205
- x.$flags$ &= -2;
206
- }, J = (t, e, n, s, l, r) => {
207
- 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) => {
211
- 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());
378
+ T.$flags$ &= -2;
379
+ }, ee = (t, e, n, r, s, o) => {
380
+ let l = t["s-cr"] && t["s-cr"].parentNode || t, c;
381
+ for (l.shadowRoot && l.tagName === x && (l = l.shadowRoot); s <= o; ++s)
382
+ r[s] && (c = O(null, n, s, t), c && (r[s].$elm$ = c, l.insertBefore(c, N(e))));
383
+ }, te = (t, e, n) => {
384
+ for (let r = e; r <= n; ++r) {
385
+ const s = t[r];
386
+ if (s) {
387
+ const o = s.$elm$;
388
+ le(s), o && (R = !0, o["s-ol"] ? o["s-ol"].remove() : E(o, !0), o.remove());
216
389
  }
217
390
  }
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 <= $; )
391
+ }, xe = (t, e, n, r, s = !1) => {
392
+ let o = 0, l = 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;
393
+ for (; o <= d && l <= $; )
221
394
  if (u == null)
222
- u = e[++r];
223
- else if (f == null)
224
- f = e[--d];
395
+ u = e[++o];
225
396
  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];
397
+ a = e[--d];
398
+ else if (f == null)
399
+ f = r[++l];
400
+ else if (g == null)
401
+ g = r[--$];
402
+ else if (A(u, f, s))
403
+ m(u, f, s), u = e[++o], f = r[++l];
404
+ else if (A(a, g, s))
405
+ m(a, g, s), a = e[--d], g = r[--$];
406
+ else if (A(u, g, s))
407
+ (u.$tag$ === "slot" || g.$tag$ === "slot") && E(u.$elm$.parentNode, !1), m(u, g, s), t.insertBefore(u.$elm$, a.$elm$.nextSibling), u = e[++o], g = r[--$];
408
+ else if (A(a, f, s))
409
+ (u.$tag$ === "slot" || g.$tag$ === "slot") && E(a.$elm$.parentNode, !1), m(a, f, s), t.insertBefore(a.$elm$, u.$elm$), a = e[--d], f = r[++l];
237
410
  else {
238
- for (c = -1, i = r; i <= d; ++i)
239
- if (e[i] && e[i].$key$ !== null && e[i].$key$ === a.$key$) {
411
+ for (c = -1, i = o; i <= d; ++i)
412
+ if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {
240
413
  c = i;
241
414
  break;
242
415
  }
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$));
416
+ c >= 0 ? (y = e[c], y.$tag$ !== f.$tag$ ? v = O(e && e[l], n, c, t) : (m(y, f, s), e[c] = void 0, v = y.$elm$), f = r[++l]) : (v = O(e && e[l], n, l, t), f = r[++l]), v && se(u.$elm$).insertBefore(v, N(u.$elm$));
244
417
  }
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$;
418
+ o > d ? ee(t, r[$ + 1] == null ? null : r[$ + 1].$elm$, n, r, l, $) : l > $ && te(e, o, d);
419
+ }, A = (t, e, n = !1) => t.$tag$ === e.$tag$ ? t.$tag$ === "slot" ? t.$name$ === e.$name$ : n ? !0 : t.$key$ === e.$key$ : !1, N = (t) => t && t["s-ol"] || t, se = (t) => (t["s-ol"] ? t["s-ol"] : t).parentNode, m = (t, e, n = !1) => {
420
+ const r = e.$elm$ = t.$elm$, s = t.$children$, o = e.$children$, l = e.$tag$, c = e.$text$;
248
421
  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) => {
422
+ c === null ? (h = l === "svg" ? !0 : l === "foreignObject" ? !1 : h, l === "slot" && !_ || V(t, e, h), s !== null && o !== null ? xe(r, s, e, o, n) : o !== null ? (t.$text$ !== null && (r.textContent = ""), ee(r, null, e, o, 0, o.length - 1)) : s !== null && te(s, 0, s.length - 1), h && l === "svg" && (h = !1)) : (i = r["s-cr"]) ? i.parentNode.textContent = c : t.$text$ !== c && (r.data = c);
423
+ }, ne = (t) => {
251
424
  const e = t.childNodes;
252
425
  for (const n of e)
253
426
  if (n.nodeType === 1) {
254
427
  if (n["s-sr"]) {
255
- const s = n["s-sn"];
428
+ const r = n["s-sn"];
256
429
  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"])) {
430
+ for (const s of e)
431
+ if (s !== n) {
432
+ if (s["s-hn"] !== n["s-hn"] || r !== "") {
433
+ if (s.nodeType === 1 && (r === s.getAttribute("slot") || r === s["s-sn"])) {
261
434
  n.hidden = !0;
262
435
  break;
263
436
  }
264
- } else if (l.nodeType === 1 || l.nodeType === 3 && l.textContent.trim() !== "") {
437
+ } else if (s.nodeType === 1 || s.nodeType === 3 && s.textContent.trim() !== "") {
265
438
  n.hidden = !0;
266
439
  break;
267
440
  }
268
441
  }
269
442
  }
270
- w(n);
443
+ ne(n);
271
444
  }
272
- }, S = [], V = (t) => {
273
- let e, n, s;
274
- for (const l of t.childNodes) {
275
- if (l["s-sr"] && (e = l["s-cr"]) && e.parentNode) {
445
+ }, b = [], re = (t) => {
446
+ let e, n, r;
447
+ for (const s of t.childNodes) {
448
+ if (s["s-sr"] && (e = s["s-cr"]) && e.parentNode) {
276
449
  n = e.parentNode.childNodes;
277
- const r = l["s-sn"];
278
- 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,
450
+ const o = s["s-sn"];
451
+ for (r = n.length - 1; r >= 0; r--)
452
+ if (e = n[r], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== s["s-hn"] && !Q.experimentalSlotFixes)
453
+ if (q(e, o)) {
454
+ let l = b.find((c) => c.$nodeToRelocate$ === e);
455
+ R = !0, e["s-sn"] = e["s-sn"] || o, l ? (l.$nodeToRelocate$["s-sh"] = s["s-hn"], l.$slotRefNode$ = s) : (e["s-sh"] = s["s-hn"], b.push({
456
+ $slotRefNode$: s,
284
457
  $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$));
458
+ })), e["s-sr"] && b.map((c) => {
459
+ q(c.$nodeToRelocate$, e["s-sn"]) && (l = b.find((i) => i.$nodeToRelocate$ === e), l && !c.$slotRefNode$ && (c.$slotRefNode$ = l.$slotRefNode$));
287
460
  });
288
461
  } else
289
- S.some((o) => o.$nodeToRelocate$ === e) || S.push({
462
+ b.some((l) => l.$nodeToRelocate$ === e) || b.push({
290
463
  $nodeToRelocate$: e
291
464
  });
292
465
  }
293
- l.nodeType === 1 && V(l);
466
+ s.nodeType === 1 && re(s);
294
467
  }
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);
468
+ }, q = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", le = (t) => {
469
+ t.$attrs$ && t.$attrs$.ref && t.$attrs$.ref(null), t.$children$ && t.$children$.map(le);
470
+ }, Ee = (t, e, n = !1) => {
471
+ var r, s, o, l, c;
472
+ const i = t.$hostElement$, d = t.$cmpMeta$, u = t.$vnode$ || M(null, null), a = be(e) ? e : Y(null, null, e);
473
+ if (x = i.tagName, d.$attrsToReflect$ && (a.$attrs$ = a.$attrs$ || {}, d.$attrsToReflect$.map(([$, f]) => a.$attrs$[f] = i[$])), n && a.$attrs$)
474
+ for (const $ of Object.keys(a.$attrs$))
475
+ i.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (a.$attrs$[$] = i[$]);
476
+ a.$tag$ = null, a.$flags$ |= 4, t.$vnode$ = a, a.$elm$ = u.$elm$ = i.shadowRoot || i, k = i["s-sc"], _ = (d.$flags$ & 1) !== 0, D = i["s-cr"], R = !1, m(u, a, n);
304
477
  {
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);
478
+ if (T.$flags$ |= 1, B) {
479
+ re(a.$elm$);
480
+ for (const $ of b) {
481
+ const f = $.$nodeToRelocate$;
482
+ if (!f["s-ol"]) {
483
+ const g = j.createTextNode("");
484
+ g["s-nr"] = f, f.parentNode.insertBefore(f["s-ol"] = g, f);
312
485
  }
313
486
  }
314
- for (const $ of S) {
315
- const a = $.$nodeToRelocate$, p = $.$slotRefNode$;
316
- if (p) {
317
- const v = p.parentNode;
318
- let y = p.nextSibling;
487
+ for (const $ of b) {
488
+ const f = $.$nodeToRelocate$, g = $.$slotRefNode$;
489
+ if (g) {
490
+ const v = g.parentNode;
491
+ let y = g.nextSibling;
319
492
  {
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;
493
+ let L = (r = f["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
494
+ for (; L; ) {
495
+ let S = (s = L["s-nr"]) !== null && s !== void 0 ? s : null;
496
+ if (S && S["s-sn"] === f["s-sn"] && v === S.parentNode && (S = S.nextSibling, !S || !S["s-nr"])) {
497
+ y = S;
325
498
  break;
326
499
  }
327
- E = E.previousSibling;
500
+ L = L.previousSibling;
328
501
  }
329
502
  }
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));
503
+ (!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 = (o = f["s-ih"]) !== null && o !== void 0 ? o : !1));
331
504
  } else
332
- a.nodeType === 1 && (n && (a["s-ih"] = (o = a.hidden) !== null && o !== void 0 ? o : !1), a.hidden = !0);
505
+ f.nodeType === 1 && (n && (f["s-ih"] = (l = f.hidden) !== null && l !== void 0 ? l : !1), f.hidden = !0);
333
506
  }
334
507
  }
335
- M && w(f.$elm$), x.$flags$ &= -2, S.length = 0;
508
+ R && ne(a.$elm$), T.$flags$ &= -2, b.length = 0;
336
509
  }
337
- if (X.experimentalScopedSlotChanges && d.$flags$ & 2)
338
- for (const $ of f.$elm$.childNodes)
339
- $["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;
343
- const x = {
510
+ if (Q.experimentalScopedSlotChanges && d.$flags$ & 2)
511
+ for (const $ of a.$elm$.childNodes)
512
+ $["s-hn"] !== x && !$["s-sh"] && (n && $["s-ih"] == null && ($["s-ih"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);
513
+ D = void 0;
514
+ }, w = (t, e) => e in t, U = typeof window < "u" ? window : {}, j = U.document || { head: {} };
515
+ U.HTMLElement;
516
+ const T = {
344
517
  $flags$: 0,
345
518
  $resourcesUrl$: "",
346
519
  jmp: (t) => t(),
347
520
  raf: (t) => requestAnimationFrame(t),
348
- ael: (t, e, n, s) => t.addEventListener(e, n, s),
349
- rel: (t, e, n, s) => t.removeEventListener(e, n, s),
521
+ ael: (t, e, n, r) => t.addEventListener(e, n, r),
522
+ rel: (t, e, n, r) => t.removeEventListener(e, n, r),
350
523
  ce: (t, e) => new CustomEvent(t, e)
351
- }, ye = (t, e, n) => {
524
+ }, Le = (t, e, n) => {
352
525
  [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) => {
526
+ }, oe = (t, e, n, r, s) => {
354
527
  if (e && typeof e == "string") {
355
- const r = document.createElement(e);
356
- Object.keys(n || {}).forEach((o) => {
357
- ye(r, o, n[o]);
358
- }), 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);
528
+ const o = document.createElement(e);
529
+ Object.keys(n || {}).forEach((l) => {
530
+ Le(o, l, n[l]);
531
+ }), r == null || r.forEach((l) => {
532
+ oe(o, l.$tag$, l.$attrs$, l.$children$, l.$text$);
533
+ }), n != null && n.innerHTML && (o.innerHTML = n.innerHTML), t.appendChild(o);
361
534
  }
362
- l && (t.innerHTML = l);
363
- }, xe = (t, e) => {
535
+ s && (t.innerHTML = s);
536
+ }, Ge = (t, e) => {
364
537
  const n = {};
365
538
  if (typeof t != "object")
366
539
  throw new Error("filterArgs - args isn't an object.");
367
- for (const s in t)
368
- 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);
540
+ for (const r in t)
541
+ if (!r.startsWith("slot")) {
542
+ const s = t[r], o = r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
543
+ (!e || !Object.keys(e).includes(r) || e[r] !== s) && (n[o] = s);
371
544
  }
372
545
  return n;
373
- }, me = (t, e) => {
374
- var s, l;
546
+ }, Ie = (t, e) => {
547
+ var r, s;
375
548
  const n = document.getElementById("storybook-root");
376
549
  if (n)
377
- return (l = document.querySelector("[lang]")) == null || l.setAttribute("lang", ((s = e.globals) == null ? void 0 : s.locale) || "en"), he(
550
+ return (s = document.querySelector("[lang]")) == null || s.setAttribute("lang", ((r = e.globals) == null ? void 0 : r.locale) || "en"), Ee(
378
551
  {
379
552
  $ancestorComponent$: void 0,
380
553
  $flags$: 0,
@@ -387,147 +560,80 @@ const x = {
387
560
  },
388
561
  t(e)
389
562
  ), 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 }) => {
461
- class s {
462
- constructor(r) {
563
+ }, Xe = ({ $tag$: t, $attrs$: e, $children$: n, $text$: r }) => {
564
+ const s = document.createElement("div");
565
+ return oe(s, t, e, n, r), s.innerHTML;
566
+ }, Ke = ({ disconnect: t, observe: e, takeRecords: n }) => {
567
+ class r {
568
+ constructor(o) {
463
569
  /**
464
570
  *
465
571
  */
466
- g(this, "disconnect", t);
572
+ p(this, "disconnect", t);
467
573
  /**
468
574
  *
469
575
  */
470
- g(this, "observe", e);
576
+ p(this, "observe", e);
471
577
  /**
472
578
  *
473
579
  */
474
- g(this, "takeRecords", n);
580
+ p(this, "takeRecords", n);
475
581
  /**
476
582
  *
477
583
  */
478
- g(this, "cb");
479
- this.cb = r;
584
+ p(this, "cb");
585
+ this.cb = o;
480
586
  }
481
587
  }
482
- return [window, global].forEach((l) => {
483
- Object.defineProperty(l, "MutationObserver", {
588
+ return [window, global].forEach((s) => {
589
+ Object.defineProperty(s, "MutationObserver", {
484
590
  writable: !0,
485
591
  configurable: !0,
486
- value: s
592
+ value: r
487
593
  });
488
- }), s;
489
- }, We = ({ disconnect: t, observe: e }) => {
594
+ }), r;
595
+ }, Qe = ({ disconnect: t, observe: e }) => {
490
596
  class n {
491
- constructor(l) {
597
+ constructor(s) {
492
598
  /**
493
599
  *
494
600
  */
495
- g(this, "disconnect", t);
601
+ p(this, "disconnect", t);
496
602
  /**
497
603
  *
498
604
  */
499
- g(this, "observe", e);
605
+ p(this, "observe", e);
500
606
  /**
501
607
  *
502
608
  */
503
- g(this, "unobserve");
609
+ p(this, "unobserve");
504
610
  /**
505
611
  *
506
612
  */
507
- g(this, "cb");
508
- this.cb = l;
613
+ p(this, "cb");
614
+ this.cb = s;
509
615
  }
510
616
  }
511
- return [window, global].forEach((s) => {
512
- Object.defineProperty(s, "ResizeObserver", {
617
+ return [window, global].forEach((r) => {
618
+ Object.defineProperty(r, "ResizeObserver", {
513
619
  writable: !0,
514
620
  configurable: !0,
515
621
  value: n
516
622
  });
517
623
  }), n;
518
624
  };
519
- class Te extends Event {
625
+ class Ae extends Event {
520
626
  constructor() {
521
627
  super(...arguments);
522
628
  /**
523
629
  *
524
630
  */
525
631
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
526
- g(this, "detail");
632
+ p(this, "detail");
527
633
  }
528
634
  }
529
- const ze = () => {
530
- class t extends Te {
635
+ const Je = () => {
636
+ class t extends Ae {
531
637
  }
532
638
  return [window, global].forEach((e) => {
533
639
  Object.defineProperty(e, "SubmitEvent", {
@@ -538,28 +644,30 @@ const ze = () => {
538
644
  }), t;
539
645
  };
540
646
  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
647
+ Me as ClassList,
648
+ Oe as allItemsAreString,
649
+ Ne as cleanString,
650
+ Re as createID,
651
+ de as dateRegExp,
652
+ We as dateToString,
653
+ we as defineLocales,
654
+ Ge as filterArgs,
655
+ De as focusableElements,
656
+ Pe as getLocaleDatePattern,
657
+ G as getParentWindows,
658
+ Xe as getStoryHTML,
659
+ _e as getWindows,
660
+ Fe as isTagName,
661
+ Be as isValidString,
662
+ ze as localeCurrency,
663
+ ge as localeDate,
664
+ qe as localeNumber,
665
+ Ue as nextTick,
666
+ Ke as setupMutationObserverMock,
667
+ Qe as setupResizeObserverMock,
668
+ Je as setupSubmitEventMock,
669
+ Ie as stencilWrapper,
670
+ He as vsCodeGenerator,
671
+ Ce as webTypesGenerator
564
672
  };
565
673
  //# sourceMappingURL=index.es.js.map