@mgdis/stencil-helpers 1.1.0 → 1.1.2

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,10 +1,10 @@
1
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);
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
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);
5
+ const s = new Uint8Array(e);
6
+ crypto.getRandomValues(s);
7
+ const r = Array.from(s).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, e);
8
8
  return t !== "" ? `${t}-${r}` : r;
9
9
  };
10
10
  class Me {
@@ -25,8 +25,8 @@ class Me {
25
25
  * @param className - class name to delete
26
26
  */
27
27
  p(this, "delete", (e) => {
28
- const n = this.classes.indexOf(e);
29
- n > -1 && this.classes.splice(n, 1);
28
+ const s = this.classes.indexOf(e);
29
+ s > -1 && this.classes.splice(s, 1);
30
30
  });
31
31
  /**
32
32
  * Check if class exist in list
@@ -43,138 +43,138 @@ class Me {
43
43
  }
44
44
  }
45
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 = []) => {
46
+ const e = I(t), s = X(t);
47
+ return [t, ...e, ...s];
48
+ }, I = (t, e = []) => {
49
49
  if (t.self !== t.top)
50
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;
51
+ const s = t.parent;
52
+ return s ? (e.push(s), I(s, e)) : e;
53
+ } catch (s) {
54
+ return console.error("Different hosts between iframes:", s), e;
55
55
  }
56
56
  return e;
57
- }, I = (t, e = []) => {
57
+ }, X = (t, e = []) => {
58
58
  if (t.frames.length > 0)
59
- for (const n of Array.from(t.frames))
60
- e.push(n), I(n, e);
59
+ for (const s of Array.from(t.frames))
60
+ e.push(s), X(s, e);
61
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) => {
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
63
  if (!e)
64
64
  return;
65
- const n = e.split("/");
66
- return `${t}${n.slice(2, n.length - 1).join("-")}--docs`;
65
+ const s = e.split("/");
66
+ return `${t}${s.slice(2, s.length - 1).join("-")}--docs`;
67
67
  }, ae = (t, e) => {
68
68
  if (e)
69
69
  return `${t}${e}`;
70
- }, K = (t) => {
70
+ }, Q = (t) => {
71
71
  let e = t.overview ? `${t.overview}
72
72
 
73
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}
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
77
  `).join(""), e += `
78
78
  `);
79
- const r = t.props.filter(({ attr: s }) => s === void 0);
79
+ const r = t.props.filter(({ attr: n }) => n === void 0);
80
80
  return r.length && (e += `Properties:
81
- `, e += r.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
81
+ `, e += r.map(({ name: n, docs: l }) => `- \`${n}\`: ${l}
82
82
  `).join(""), e += `
83
83
  `), t.methods.length && (e += `Methods:
84
- `, e += t.methods.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
84
+ `, e += t.methods.map(({ name: n, docs: l }) => `- \`${n}\`: ${l}
85
85
  `).join(""), e += `
86
86
  `), t.events.length && (e += `Events:
87
- `, e += t.events.map(({ event: s, docs: o }) => `- \`${s}\`: ${o}
87
+ `, e += t.events.map(({ event: n, docs: l }) => `- \`${n}\`: ${l}
88
88
  `).join(""), e += `
89
89
  `), t.listeners.length && (e += `Listeners:
90
- `, e += t.listeners.map(({ event: s }) => `- \`${s}\`
90
+ `, e += t.listeners.map(({ event: n }) => `- \`${n}\`
91
91
  `).join(""), e += `
92
92
  `), t.slots.length && (e += `Slots:
93
- `, e += t.slots.map(({ name: s, docs: o }) => `- \`${s}\`: ${o}
93
+ `, e += t.slots.map(({ name: n, docs: l }) => `- \`${n}\`: ${l}
94
94
  `).join(""), e += `
95
95
  `), e;
96
96
  }, F = (t) => `${t.docs}
97
97
 
98
- Type: \`${t.type}\``, Ce = (t, e, n, r) => ({
98
+ Type: \`${t.type}\``, Ce = (t, e, s, r) => ({
99
99
  $schema: "https://json.schemastore.org/web-types",
100
100
  name: t,
101
101
  version: e,
102
102
  "description-markup": "markdown",
103
103
  contributions: {
104
104
  html: {
105
- elements: n.components.map((s) => {
106
- const o = X(r, s.filePath);
105
+ elements: s.components.map((n) => {
106
+ const l = K(r, n.filePath);
107
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,
108
+ name: n.tag,
109
+ description: Q(n),
110
+ "doc-url": l,
111
+ attributes: n.props.filter((o) => o.attr).map((o) => ({
112
+ name: o.attr,
113
+ description: F(o),
114
+ "doc-url": l,
115
115
  value: {
116
- type: l.type,
117
- default: l.default,
118
- required: l.required
116
+ type: o.type,
117
+ default: o.default,
118
+ required: o.required
119
119
  }
120
120
  })),
121
121
  js: {
122
- properties: s.props.map((l) => ({
123
- name: l.name,
124
- description: F(l),
125
- "doc-url": o,
122
+ properties: n.props.map((o) => ({
123
+ name: o.name,
124
+ description: F(o),
125
+ "doc-url": l,
126
126
  value: {
127
- type: l.type,
128
- default: l.default,
129
- required: l.required
127
+ type: o.type,
128
+ default: o.default,
129
+ required: o.required
130
130
  }
131
131
  })),
132
- events: s.events.map((l) => ({
133
- name: l.event,
134
- description: l.docs
132
+ events: n.events.map((o) => ({
133
+ name: o.event,
134
+ description: o.docs
135
135
  }))
136
136
  }
137
137
  };
138
138
  })
139
139
  }
140
140
  }
141
- }), fe = (t, e, n) => {
142
- if (n)
141
+ }), fe = (t, e, s) => {
142
+ if (s)
143
143
  return [
144
- { name: "Storybook", url: X(t, n) },
145
- { name: "Sources", url: ae(e, n) }
144
+ { name: "Storybook", url: K(t, s) },
145
+ { name: "Sources", url: ae(e, s) }
146
146
  ];
147
147
  }, $e = (t) => {
148
148
  if (!t.values.some(({ value: e }) => e === void 0))
149
149
  return t.values.map(({ value: e }) => ({ name: e }));
150
- }, He = (t, e, n, r) => ({
150
+ }, He = (t, e, s, r) => ({
151
151
  version: t,
152
- tags: e.components.map((s) => {
153
- const o = fe(n, r, s.filePath);
152
+ tags: e.components.map((n) => {
153
+ const l = fe(s, r, n.filePath);
154
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
155
+ name: n.tag,
156
+ description: Q(n),
157
+ attributes: n.props.map((o) => ({
158
+ name: o.attr || o.name,
159
+ description: F(o),
160
+ values: $e(o),
161
+ references: l
162
162
  })),
163
- references: o
163
+ references: l
164
164
  };
165
165
  }),
166
166
  globalAttributes: [],
167
167
  valueSets: []
168
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();
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();
173
173
  return {
174
- locale: o,
175
- messages: e[l] || e[n]
174
+ locale: l,
175
+ messages: e[o] || e[s]
176
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 = {
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), _ = {
178
178
  allRenderFn: !1,
179
179
  cmpDidLoad: !0,
180
180
  cmpDidUnload: !1,
@@ -263,37 +263,37 @@ Type: \`${t.type}\``, Ce = (t, e, n, 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, 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;
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) => {
268
+ let r = null, n = null, l = null, o = !1, c = !1;
269
269
  const i = [], d = (a) => {
270
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);
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);
272
272
  };
273
- if (d(n), e) {
274
- e.key && (s = e.key), e.name && (o = e.name);
273
+ if (d(s), e) {
274
+ e.key && (n = e.key), e.name && (l = e.name);
275
275
  {
276
276
  const a = e.className || e.class;
277
277
  a && (e.class = typeof a != "object" ? a : Object.keys(a).filter(($) => a[$]).join(" "));
278
278
  }
279
279
  }
280
280
  if (typeof t == "function")
281
- return t(e === null ? {} : e, i, Se);
281
+ return t(e === null ? {} : e, i, be);
282
282
  const u = M(t, null);
283
- return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = s, u.$name$ = o, u;
283
+ return u.$attrs$ = e, i.length > 0 && (u.$children$ = i), u.$key$ = n, u.$name$ = l, u;
284
284
  }, M = (t, e) => {
285
- const n = {
285
+ const s = {
286
286
  $flags$: 0,
287
287
  $tag$: t,
288
288
  $text$: e,
289
289
  $elm$: null,
290
290
  $children$: null
291
291
  };
292
- return n.$attrs$ = null, n.$key$ = null, n.$name$ = null, n;
293
- }, ve = {}, be = (t) => t && t.$tag$ === ve, Se = {
294
- forEach: (t, e) => t.map(P).forEach(e),
295
- map: (t, e) => t.map(P).map(e).map(ke)
296
- }, P = (t) => ({
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
297
  vattrs: t.$attrs$,
298
298
  vchildren: t.$children$,
299
299
  vkey: t.$key$,
@@ -302,189 +302,195 @@ const C = "http://www.w3.org/1999/xlink", H = {}, pe = "http://www.w3.org/2000/s
302
302
  vtext: t.$text$
303
303
  }), ke = (t) => {
304
304
  if (typeof t.vtag == "function") {
305
- const n = Object.assign({}, t.vattrs);
306
- return t.vkey && (n.key = t.vkey), t.vname && (n.name = t.vname), Y(t.vtag, n, ...t.vchildren || []);
305
+ const s = Object.assign({}, t.vattrs);
306
+ return t.vkey && (s.key = t.vkey), t.vname && (s.name = t.vname), Y(t.vtag, s, ...t.vchildren || []);
307
307
  }
308
308
  const e = M(t.vtag, t.vtext);
309
309
  return e.$attrs$ = t.vattrs, e.$children$ = t.vchildren, e.$key$ = t.vkey, e.$name$ = t.vname, e;
310
- }, W = (t, e, n, r, s, o) => {
311
- if (n !== r) {
312
- let l = w(t, e), c = e.toLowerCase();
310
+ }, z = (t, e, s, r, n, l) => {
311
+ if (s !== r) {
312
+ let o = G(t, e), c = e.toLowerCase();
313
313
  if (e === "class") {
314
- const i = t.classList, d = z(n), u = z(r);
314
+ const i = t.classList, d = q(s), u = q(r);
315
315
  i.remove(...d.filter((a) => a && !u.includes(a))), i.add(...u.filter((a) => a && !d.includes(a)));
316
316
  } else if (e === "style") {
317
- for (const i in n)
317
+ for (const i in s)
318
318
  (!r || r[i] == null) && (i.includes("-") ? t.style.removeProperty(i) : t.style[i] = "");
319
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]);
320
+ (!s || r[i] !== s[i]) && (i.includes("-") ? t.style.setProperty(i, r[i]) : t.style[i] = r[i]);
321
321
  } else if (e !== "key")
322
322
  if (e === "ref")
323
323
  r && r(t);
324
324
  else if (!t.__lookupSetter__(e) && e[0] === "o" && e[1] === "n") {
325
- if (e[2] === "-" ? e = e.slice(3) : w(U, c) ? e = c.slice(2) : e = c[2] + e.slice(3), n || r) {
325
+ if (e[2] === "-" ? e = e.slice(3) : G(C, c) ? e = c.slice(2) : e = c[2] + e.slice(3), s || r) {
326
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);
327
+ e = e.replace(me, ""), s && x.rel(t, e, s, i), r && x.ael(t, e, r, i);
328
328
  }
329
329
  } else {
330
330
  const i = J(r);
331
- if ((l || i && r !== null) && !s)
331
+ if ((o || i && r !== null) && !n)
332
332
  try {
333
333
  if (t.tagName.includes("-"))
334
334
  t[e] = r;
335
335
  else {
336
336
  const u = r ?? "";
337
- e === "list" ? l = !1 : (n == null || t[e] != u) && (t[e] = u);
337
+ e === "list" ? o = !1 : (s == null || t[e] != u) && (t[e] = 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(C, e) : t.removeAttribute(e)) : (!l || o & 4 || s) && !i && (r = r === !0 ? "" : r, d ? t.setAttributeNS(C, e, r) : t.setAttribute(e, r));
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));
343
343
  }
344
344
  }
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$);
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;
349
347
  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$ ? (
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) => {
352
+ var n;
353
+ const l = e.$children$[s];
354
+ let o = 0, c, i, d;
355
+ if (B || (N = !0, l.$tag$ === "slot" && (k && r.classList.add(k + "-s"), l.$flags$ |= l.$children$ ? (
355
356
  // slot element has fallback content
356
357
  2
357
358
  ) : (
358
359
  // slot element does not have fallback content
359
360
  1
360
- ))), s.$text$ !== null)
361
- l = s.$elm$ = j.createTextNode(s.$text$);
362
- else if (s.$flags$ & 1)
363
- l = s.$elm$ = j.createTextNode("");
361
+ ))), l.$text$ !== null)
362
+ c = l.$elm$ = j.createTextNode(l.$text$);
363
+ else if (l.$flags$ & 1)
364
+ c = l.$elm$ = j.createTextNode("");
364
365
  else {
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);
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);
370
+ }
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;
377
+ for (; r = r.nextSibling; )
378
+ r && r["s-sn"] === t["s-sn"] && r["s-sh"] === m && s.push(r);
369
379
  }
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;
373
- const n = t.childNodes;
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);
380
+ for (let r = s.length - 1; r >= 0; r--) {
381
+ 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);
377
383
  }
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());
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];
392
+ if (n) {
393
+ const l = n.$elm$;
394
+ le(n), l && (R = !0, l["s-ol"] ? l["s-ol"].remove() : A(l, !0), l.remove());
389
395
  }
390
396
  }
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 <= $; )
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;
399
+ for (; l <= d && o <= $; )
394
400
  if (u == null)
395
- u = e[++o];
401
+ u = e[++l];
396
402
  else if (a == null)
397
403
  a = e[--d];
398
404
  else if (f == null)
399
- f = r[++l];
405
+ f = r[++o];
400
406
  else if (g == null)
401
407
  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];
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[--$];
412
+ 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];
410
416
  else {
411
- for (c = -1, i = o; i <= d; ++i)
417
+ for (c = -1, i = l; i <= d; ++i)
412
418
  if (e[i] && e[i].$key$ !== null && e[i].$key$ === f.$key$) {
413
419
  c = i;
414
420
  break;
415
421
  }
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$));
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$));
417
423
  }
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$;
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$;
421
427
  let i;
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) => {
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) => {
424
430
  const e = t.childNodes;
425
- for (const n of e)
426
- if (n.nodeType === 1) {
427
- if (n["s-sr"]) {
428
- const r = n["s-sn"];
429
- n.hidden = !1;
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"])) {
434
- n.hidden = !0;
431
+ for (const s of e)
432
+ if (s.nodeType === 1) {
433
+ if (s["s-sr"]) {
434
+ const r = s["s-sn"];
435
+ s.hidden = !1;
436
+ for (const n of e)
437
+ if (n !== s) {
438
+ if (n["s-hn"] !== s["s-hn"] || r !== "") {
439
+ if (n.nodeType === 1 && (r === n.getAttribute("slot") || r === n["s-sn"])) {
440
+ s.hidden = !0;
435
441
  break;
436
442
  }
437
- } else if (s.nodeType === 1 || s.nodeType === 3 && s.textContent.trim() !== "") {
438
- n.hidden = !0;
443
+ } else if (n.nodeType === 1 || n.nodeType === 3 && n.textContent.trim() !== "") {
444
+ s.hidden = !0;
439
445
  break;
440
446
  }
441
447
  }
442
448
  }
443
- ne(n);
449
+ re(s);
444
450
  }
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) {
449
- n = e.parentNode.childNodes;
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,
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;
456
+ const l = n["s-sn"];
457
+ 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({
462
+ $slotRefNode$: n,
457
463
  $nodeToRelocate$: e
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$));
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$));
460
466
  });
461
467
  } else
462
- b.some((l) => l.$nodeToRelocate$ === e) || b.push({
468
+ S.some((o) => o.$nodeToRelocate$ === e) || S.push({
463
469
  $nodeToRelocate$: e
464
470
  });
465
471
  }
466
- s.nodeType === 1 && re(s);
472
+ n.nodeType === 1 && ne(n);
467
473
  }
468
- }, q = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", le = (t) => {
474
+ }, w = (t, e) => t.nodeType === 1 ? t.getAttribute("slot") === null && e === "" || t.getAttribute("slot") === e : t["s-sn"] === e ? !0 : e === "", le = (t) => {
469
475
  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$)
476
+ }, Ae = (t, e, s = !1) => {
477
+ 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$)
474
480
  for (const $ of Object.keys(a.$attrs$))
475
481
  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);
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);
477
483
  {
478
- if (T.$flags$ |= 1, B) {
479
- re(a.$elm$);
480
- for (const $ of b) {
484
+ if (x.$flags$ |= 1, N) {
485
+ ne(a.$elm$);
486
+ for (const $ of S) {
481
487
  const f = $.$nodeToRelocate$;
482
488
  if (!f["s-ol"]) {
483
489
  const g = j.createTextNode("");
484
490
  g["s-nr"] = f, f.parentNode.insertBefore(f["s-ol"] = g, f);
485
491
  }
486
492
  }
487
- for (const $ of b) {
493
+ for (const $ of S) {
488
494
  const f = $.$nodeToRelocate$, g = $.$slotRefNode$;
489
495
  if (g) {
490
496
  const v = g.parentNode;
@@ -492,80 +498,80 @@ const C = "http://www.w3.org/1999/xlink", H = {}, pe = "http://www.w3.org/2000/s
492
498
  {
493
499
  let L = (r = f["s-ol"]) === null || r === void 0 ? void 0 : r.previousSibling;
494
500
  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;
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;
498
504
  break;
499
505
  }
500
506
  L = L.previousSibling;
501
507
  }
502
508
  }
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));
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);
504
510
  } else
505
- f.nodeType === 1 && (n && (f["s-ih"] = (l = f.hidden) !== null && l !== void 0 ? l : !1), f.hidden = !0);
511
+ f.nodeType === 1 && (s && (f["s-ih"] = (o = f.hidden) !== null && o !== void 0 ? o : !1), f.hidden = !0);
506
512
  }
507
513
  }
508
- R && ne(a.$elm$), T.$flags$ &= -2, b.length = 0;
514
+ R && re(a.$elm$), x.$flags$ &= -2, S.length = 0;
509
515
  }
510
- if (Q.experimentalScopedSlotChanges && d.$flags$ & 2)
516
+ if (_.experimentalScopedSlotChanges && d.$flags$ & 2)
511
517
  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);
518
+ $["s-hn"] !== m && !$["s-sh"] && (s && $["s-ih"] == null && ($["s-ih"] = (c = $.hidden) !== null && c !== void 0 ? c : !1), $.hidden = !0);
513
519
  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 = {
520
+ }, G = (t, e) => e in t, C = typeof window < "u" ? window : {}, j = C.document || { head: {} };
521
+ C.HTMLElement;
522
+ const x = {
517
523
  $flags$: 0,
518
524
  $resourcesUrl$: "",
519
525
  jmp: (t) => t(),
520
526
  raf: (t) => requestAnimationFrame(t),
521
- ael: (t, e, n, r) => t.addEventListener(e, n, r),
522
- rel: (t, e, n, r) => t.removeEventListener(e, n, r),
527
+ ael: (t, e, s, r) => t.addEventListener(e, s, r),
528
+ rel: (t, e, s, r) => t.removeEventListener(e, s, r),
523
529
  ce: (t, e) => new CustomEvent(t, e)
524
- }, Le = (t, e, n) => {
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);
526
- }, oe = (t, e, n, r, s) => {
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) => {
527
533
  if (e && typeof e == "string") {
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);
534
+ const l = document.createElement(e);
535
+ Object.keys(s || {}).forEach((o) => {
536
+ Le(l, o, s[o]);
537
+ }), 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);
534
540
  }
535
- s && (t.innerHTML = s);
541
+ n && (t.innerHTML = n);
536
542
  }, Ge = (t, e) => {
537
- const n = {};
543
+ const s = {};
538
544
  if (typeof t != "object")
539
545
  throw new Error("filterArgs - args isn't an object.");
540
546
  for (const r in t)
541
547
  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);
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);
544
550
  }
545
- return n;
551
+ return s;
546
552
  }, Ie = (t, e) => {
547
- var r, s;
548
- const n = document.getElementById("storybook-root");
549
- if (n)
550
- return (s = document.querySelector("[lang]")) == null || s.setAttribute("lang", ((r = e.globals) == null ? void 0 : r.locale) || "en"), Ee(
553
+ var r, n;
554
+ const s = document.getElementById("storybook-root");
555
+ if (s)
556
+ return (n = document.querySelector("[lang]")) == null || n.setAttribute("lang", ((r = e.globals) == null ? void 0 : r.locale) || "en"), Ae(
551
557
  {
552
558
  $ancestorComponent$: void 0,
553
559
  $flags$: 0,
554
560
  $modeName$: void 0,
555
561
  $cmpMeta$: {
556
562
  $flags$: 0,
557
- $tagName$: n.tagName
563
+ $tagName$: s.tagName
558
564
  },
559
- $hostElement$: n
565
+ $hostElement$: s
560
566
  },
561
567
  t(e)
562
- ), n.children[n.children.length - 1];
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 }) => {
568
+ ), s.children[s.children.length - 1];
569
+ }, Xe = ({ $tag$: t, $attrs$: e, $children$: s, $text$: r }) => {
570
+ const n = document.createElement("div");
571
+ return oe(n, t, e, s, r), n.innerHTML;
572
+ }, Ke = ({ disconnect: t, observe: e, takeRecords: s }) => {
567
573
  class r {
568
- constructor(o) {
574
+ constructor(l) {
569
575
  /**
570
576
  *
571
577
  */
@@ -577,24 +583,24 @@ const T = {
577
583
  /**
578
584
  *
579
585
  */
580
- p(this, "takeRecords", n);
586
+ p(this, "takeRecords", s);
581
587
  /**
582
588
  *
583
589
  */
584
590
  p(this, "cb");
585
- this.cb = o;
591
+ this.cb = l;
586
592
  }
587
593
  }
588
- return [window, global].forEach((s) => {
589
- Object.defineProperty(s, "MutationObserver", {
594
+ return [window, global].forEach((n) => {
595
+ Object.defineProperty(n, "MutationObserver", {
590
596
  writable: !0,
591
597
  configurable: !0,
592
598
  value: r
593
599
  });
594
600
  }), r;
595
601
  }, Qe = ({ disconnect: t, observe: e }) => {
596
- class n {
597
- constructor(s) {
602
+ class s {
603
+ constructor(n) {
598
604
  /**
599
605
  *
600
606
  */
@@ -611,18 +617,18 @@ const T = {
611
617
  *
612
618
  */
613
619
  p(this, "cb");
614
- this.cb = s;
620
+ this.cb = n;
615
621
  }
616
622
  }
617
623
  return [window, global].forEach((r) => {
618
624
  Object.defineProperty(r, "ResizeObserver", {
619
625
  writable: !0,
620
626
  configurable: !0,
621
- value: n
627
+ value: s
622
628
  });
623
- }), n;
629
+ }), s;
624
630
  };
625
- class Ae extends Event {
631
+ class Ee extends Event {
626
632
  constructor() {
627
633
  super(...arguments);
628
634
  /**
@@ -633,7 +639,7 @@ class Ae extends Event {
633
639
  }
634
640
  }
635
641
  const Je = () => {
636
- class t extends Ae {
642
+ class t extends Ee {
637
643
  }
638
644
  return [window, global].forEach((e) => {
639
645
  Object.defineProperty(e, "SubmitEvent", {
@@ -654,7 +660,7 @@ export {
654
660
  Ge as filterArgs,
655
661
  De as focusableElements,
656
662
  Pe as getLocaleDatePattern,
657
- G as getParentWindows,
663
+ I as getParentWindows,
658
664
  Xe as getStoryHTML,
659
665
  _e as getWindows,
660
666
  Fe as isTagName,