@mgdis/stencil-helpers 3.2.6 → 3.2.7

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,4 +1,4 @@
1
- class Yt {
1
+ class qt {
2
2
  /**
3
3
  * Available classes
4
4
  */
@@ -33,29 +33,29 @@ class Yt {
33
33
  */
34
34
  join = () => this.classes.join(" ");
35
35
  }
36
- const Z = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, qe = (e, t, r) => {
37
- if (!Z(e) || typeof t != "string")
36
+ const F = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, Me = (e, t, r) => {
37
+ if (!F(e) || typeof t != "string")
38
38
  return r;
39
39
  const [n, ...i] = t.split(".");
40
- return i.length ? qe(e[n], i.join("."), r) : e[n] ?? r;
41
- }, Qt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ge = (e) => typeof e == "string" && e.trim() !== "", Vt = (e) => typeof e == "object" ? JSON.stringify(e) : String(e), er = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Je = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, r) => (r > 0 ? "-" : "") + t.toLowerCase()).replace(/[^a-z0-9-]+/g, "-").replace(/--+/g, "-").replace(/(?:^-)|(?:-$)/g, ""), tr = (e = "", t = 10) => {
40
+ return i.length ? Me(e[n], i.join("."), r) : e[n] ?? r;
41
+ }, Jt = (e) => Array.isArray(e) && e.every((t) => typeof t == "string"), Ue = (e) => typeof e == "string" && e.trim() !== "", Kt = (e) => typeof e == "object" ? JSON.stringify(e) : String(e), Xt = (e) => typeof e == "string" ? e.toLocaleLowerCase().normalize("NFD").replaceAll(/[\u0300-\u036f]/g, "") : e, Be = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (t, r) => (r > 0 ? "-" : "") + t.toLowerCase()).replace(/[^a-z0-9-]+/g, "-").replace(/--+/g, "-").replace(/(?:^-)|(?:-$)/g, ""), Yt = (e = "", t = 10) => {
42
42
  const r = new Uint8Array(t);
43
43
  crypto.getRandomValues(r);
44
44
  const s = Array.from(r).map((n) => n.toString(16).padStart(2, "0")).join("").slice(0, t);
45
45
  return e !== "" ? `${e}-${s}` : s;
46
- }, rr = (e) => Ge(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null, sr = (e) => {
46
+ }, Qt = (e) => Ue(e) && /^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/.exec(e) !== null, Vt = (e) => {
47
47
  let t;
48
- return typeof e == "string" ? t = e : e && typeof e == "object" && (Z(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && typeof e != "object" && (t = String(e)), t && Je(t);
49
- }, nr = async (e) => {
48
+ return typeof e == "string" ? t = e : e && typeof e == "object" && (F(e) || Array.isArray(e)) ? t = JSON.stringify(e) : e != null && typeof e != "boolean" && typeof e != "object" && (t = String(e)), t && Be(t);
49
+ }, er = async (e) => {
50
50
  if (e)
51
51
  return e();
52
- }, ir = {
52
+ }, tr = {
53
53
  FIRST: "first",
54
54
  NEXT: "next",
55
55
  PREVIOUS: "previous",
56
56
  LAST: "last"
57
- }, $e = 10;
58
- class Ke {
57
+ }, ue = 10;
58
+ class We {
59
59
  /**
60
60
  * Define items
61
61
  */
@@ -67,7 +67,7 @@ class Ke {
67
67
  /**
68
68
  * Define top
69
69
  */
70
- top = $e;
70
+ top = ue;
71
71
  /**
72
72
  * Define next
73
73
  */
@@ -77,7 +77,7 @@ class Ke {
77
77
  */
78
78
  baseIndex = 1;
79
79
  constructor(t) {
80
- if (Z(t))
80
+ if (F(t))
81
81
  Array.isArray(t.items) && (this.items = t.items), typeof t.top == "number" && (this.top = t.top), this.total = typeof t.total == "number" ? t.total : this.items.length, this.next = t.next;
82
82
  else
83
83
  throw new Error("Page - init must match IPage type.");
@@ -94,25 +94,25 @@ class Ke {
94
94
  const n = this.items.length - this.baseIndex;
95
95
  let i, o = 0;
96
96
  if (["previous", "next"].includes(t) && r) {
97
- const c = this.items.findIndex((l) => JSON.stringify(l) === JSON.stringify(r));
98
- if (c === -1)
97
+ const a = this.items.findIndex((l) => JSON.stringify(l) === JSON.stringify(r));
98
+ if (a === -1)
99
99
  return 0;
100
- o = c;
100
+ o = a;
101
101
  }
102
102
  return t === "first" ? i = 0 : t === "last" ? i = n : t === "previous" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[0]) ? n : o - this.baseIndex : t === "next" ? i = JSON.stringify(this.items[o]) === JSON.stringify(this.items[n]) ? 0 : o + this.baseIndex : i = 0, i;
103
103
  };
104
104
  }
105
- class or {
105
+ class rr {
106
106
  /**
107
107
  * Define paginated items
108
108
  */
109
109
  items = [];
110
110
  /* Privates */
111
- #e = $e;
111
+ #e = ue;
112
112
  #t;
113
113
  #r;
114
114
  constructor(t, r) {
115
- Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || Z(r.next) && URL.canParse(r.next)) && (this.#t = r.next), typeof r?.top == "number" && (this.#e = r.top), typeof r?.total == "number" && (this.#r = r.total);
115
+ Array.isArray(t) && (this.items = t), r && (["string", "function"].includes(typeof r.next) || F(r.next) && URL.canParse(r.next)) && (this.#t = r.next), typeof r?.top == "number" && (this.#e = r.top), typeof r?.total == "number" && (this.#r = r.total);
116
116
  }
117
117
  /**
118
118
  * Get page
@@ -123,7 +123,7 @@ class or {
123
123
  getPage = (t = 0, r) => {
124
124
  const s = typeof r == "function" ? this.items.filter(r) : this.items;
125
125
  let n;
126
- return this.#t ? n = this.#t : s.length > t + this.#e && (n = () => this.getPage(t + this.#e, r)), new Ke({
126
+ return this.#t ? n = this.#t : s.length > t + this.#e && (n = () => this.getPage(t + this.#e, r)), new We({
127
127
  items: s.slice(t, t + this.#e),
128
128
  total: this.#r,
129
129
  top: this.#e,
@@ -131,65 +131,65 @@ class or {
131
131
  });
132
132
  };
133
133
  }
134
- const ar = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, lr = (e) => e.toISOString().split("T")[0], cr = (e, t) => t.includes(e?.tagName.toLowerCase()), fr = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', ur = (e) => typeof e == "number" && !Number.isNaN(e), pr = (e) => {
135
- const t = he(e), r = _e(e);
134
+ const sr = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, nr = (e) => e.toISOString().split("T")[0], ir = (e, t) => t.includes(e?.tagName.toLowerCase()), or = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]), [identifier], mg-button', ar = (e) => typeof e == "number" && !Number.isNaN(e), lr = (e) => {
135
+ const t = pe(e), r = ge(e);
136
136
  return [e, ...t, ...r];
137
- }, he = (e, t = []) => {
137
+ }, pe = (e, t = []) => {
138
138
  if (e.self !== e.top)
139
139
  try {
140
140
  const r = e.parent;
141
- return r ? (t.push(r), he(r, t)) : t;
141
+ return r ? (t.push(r), pe(r, t)) : t;
142
142
  } catch (r) {
143
143
  return console.error("Different hosts between iframes:", r), t;
144
144
  }
145
145
  return t;
146
- }, _e = (e, t = []) => {
146
+ }, ge = (e, t = []) => {
147
147
  if (e.frames.length > 0)
148
148
  for (const r of Array.from(e.frames))
149
- t.push(r), _e(r, t);
149
+ t.push(r), ge(r, t);
150
150
  return t;
151
151
  };
152
- var Xe = Object.defineProperty, Ye = (e, t) => {
152
+ var Ze = Object.defineProperty, qe = (e, t) => {
153
153
  for (var r in t)
154
- Xe(e, r, { get: t[r], enumerable: !0 });
155
- }, Qe = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ve = {};
156
- Ye(Ve, {
157
- err: () => ye,
158
- map: () => et,
159
- ok: () => B,
160
- unwrap: () => tt,
161
- unwrapErr: () => rt
154
+ Ze(e, r, { get: t[r], enumerable: !0 });
155
+ }, Je = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ke = {};
156
+ qe(Ke, {
157
+ err: () => $e,
158
+ map: () => Xe,
159
+ ok: () => U,
160
+ unwrap: () => Ye,
161
+ unwrapErr: () => Qe
162
162
  });
163
- var B = (e) => ({
163
+ var U = (e) => ({
164
164
  isOk: !0,
165
165
  isErr: !1,
166
166
  value: e
167
- }), ye = (e) => ({
167
+ }), $e = (e) => ({
168
168
  isOk: !1,
169
169
  isErr: !0,
170
170
  value: e
171
171
  });
172
- function et(e, t) {
172
+ function Xe(e, t) {
173
173
  if (e.isOk) {
174
174
  const r = t(e.value);
175
- return r instanceof Promise ? r.then((s) => B(s)) : B(r);
175
+ return r instanceof Promise ? r.then((s) => U(s)) : U(r);
176
176
  }
177
177
  if (e.isErr) {
178
178
  const r = e.value;
179
- return ye(r);
179
+ return $e(r);
180
180
  }
181
181
  throw "should never get here";
182
182
  }
183
- var tt = (e) => {
183
+ var Ye = (e) => {
184
184
  if (e.isOk)
185
185
  return e.value;
186
186
  throw e.value;
187
- }, rt = (e) => {
187
+ }, Qe = (e) => {
188
188
  if (e.isErr)
189
189
  return e.value;
190
190
  throw e.value;
191
- }, Y = (e) => {
192
- const t = Qe(e);
191
+ }, K = (e) => {
192
+ const t = Je(e);
193
193
  return new RegExp(
194
194
  // First capture group: match any context before the selector that's not inside @supports selector()
195
195
  // Using negative lookahead to avoid matching inside @supports selector(...) condition
@@ -197,18 +197,18 @@ var tt = (e) => {
197
197
  "g"
198
198
  );
199
199
  };
200
- Y("::slotted");
201
- Y(":host");
202
- Y(":host-context");
203
- const be = (e, t) => {
200
+ K("::slotted");
201
+ K(":host");
202
+ K(":host-context");
203
+ const de = (e, t) => {
204
204
  if (!t)
205
205
  return;
206
206
  const r = t.split("/");
207
207
  return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
208
- }, st = (e, t) => {
208
+ }, Ve = (e, t) => {
209
209
  if (t)
210
210
  return `${e}${t}`;
211
- }, me = (e) => {
211
+ }, _e = (e) => {
212
212
  let t = e.overview ? `${e.overview}
213
213
 
214
214
  ` : "";
@@ -234,9 +234,9 @@ const be = (e, t) => {
234
234
  `, t += e.slots.map(({ name: n, docs: i }) => `- \`${n}\`: ${i}
235
235
  `).join(""), t += `
236
236
  `), t;
237
- }, q = (e) => `${e.docs}
237
+ }, B = (e) => `${e.docs}
238
238
 
239
- Type: \`${e.type}\``, gr = (e, t, r, s) => ({
239
+ Type: \`${e.type}\``, cr = (e, t, r, s) => ({
240
240
  $schema: "https://json.schemastore.org/web-types",
241
241
  name: e,
242
242
  version: t,
@@ -244,14 +244,14 @@ Type: \`${e.type}\``, gr = (e, t, r, s) => ({
244
244
  contributions: {
245
245
  html: {
246
246
  elements: r.components.map((n) => {
247
- const i = be(s, n.filePath);
247
+ const i = de(s, n.filePath);
248
248
  return {
249
249
  name: n.tag,
250
- description: me(n),
250
+ description: _e(n),
251
251
  "doc-url": i,
252
252
  attributes: n.props.filter((o) => o.attr).map((o) => ({
253
253
  name: o.attr,
254
- description: q(o),
254
+ description: B(o),
255
255
  "doc-url": i,
256
256
  value: {
257
257
  type: o.type,
@@ -262,7 +262,7 @@ Type: \`${e.type}\``, gr = (e, t, r, s) => ({
262
262
  js: {
263
263
  properties: n.props.map((o) => ({
264
264
  name: o.name,
265
- description: q(o),
265
+ description: B(o),
266
266
  "doc-url": i,
267
267
  value: {
268
268
  type: o.type,
@@ -285,23 +285,23 @@ Type: \`${e.type}\``, gr = (e, t, r, s) => ({
285
285
  })
286
286
  }
287
287
  }
288
- }), nt = (e, t, r) => [
289
- { name: "Storybook", url: be(e, r) },
290
- { name: "Sources", url: st(t, r) }
291
- ], it = (e) => {
288
+ }), et = (e, t, r) => [
289
+ { name: "Storybook", url: de(e, r) },
290
+ { name: "Sources", url: Ve(t, r) }
291
+ ], tt = (e) => {
292
292
  if (!e.values.some(({ value: t }) => t === void 0))
293
293
  return e.values.map(({ value: t }) => ({ name: t }));
294
- }, dr = (e, t, r) => ({
294
+ }, fr = (e, t, r) => ({
295
295
  version: 1.1,
296
296
  tags: e.components.map((s) => {
297
- const n = nt(t, r, s.filePath);
297
+ const n = et(t, r, s.filePath);
298
298
  return {
299
299
  name: s.tag,
300
- description: me(s),
300
+ description: _e(s),
301
301
  attributes: s.props.map((i) => ({
302
302
  name: i.attr ?? i.name,
303
- description: q(i),
304
- values: it(i),
303
+ description: B(i),
304
+ values: tt(i),
305
305
  references: n
306
306
  })),
307
307
  references: n
@@ -309,16 +309,16 @@ Type: \`${e.type}\``, gr = (e, t, r, s) => ({
309
309
  }),
310
310
  globalAttributes: [],
311
311
  valueSets: []
312
- }), $r = (e) => ({
312
+ }), ur = (e) => ({
313
313
  version: 1.1,
314
314
  properties: e.components.flatMap((t) => t.styles.map((r) => ({
315
315
  name: r.name,
316
316
  description: r.docs
317
317
  })))
318
- }), ot = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, hr = (e) => {
318
+ }), rt = /^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])$/, pr = (e) => {
319
319
  const t = { value: "2023", pattern: "yyyy" }, r = { value: "12", pattern: "mm" }, s = { value: "24", pattern: "dd" };
320
- return lt([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
321
- }, at = (e, t, r) => {
320
+ return nt([t.value, r.value, s.value].join("-"), e, { timeZone: "UTC" }).replace(t.value, t.pattern).replace(r.value, r.pattern).replace(s.value, s.pattern);
321
+ }, st = (e, t, r) => {
322
322
  const s = e.closest("[lang]"), n = Intl.NumberFormat.supportedLocalesOf(s?.lang), i = n.length > 0 && typeof n[0] == "string" ? n[0] : navigator.language || r, o = i.split("-").shift();
323
323
  return Object.keys(t).length === 0 ? {
324
324
  locale: i,
@@ -327,26 +327,26 @@ Type: \`${e.type}\``, gr = (e, t, r, s) => ({
327
327
  locale: i,
328
328
  messages: t[o] ?? t[r] ?? { lang: r }
329
329
  };
330
- }, _r = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), yr = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), br = (e, t, r = 0) => new Intl.NumberFormat(t, {
330
+ }, gr = (e, t, r) => new Intl.NumberFormat(t, { style: "currency", currency: r }).format(e), $r = (e, t, r = 0) => new Intl.NumberFormat(t, { minimumFractionDigits: r }).format(Number(e)), dr = (e, t, r = 0) => new Intl.NumberFormat(t, {
331
331
  style: "percent",
332
332
  minimumFractionDigits: r,
333
333
  maximumFractionDigits: r
334
- }).format(e), mr = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
334
+ }).format(e), _r = (e, t, r, s = "short", n = 0) => new Intl.NumberFormat(t, {
335
335
  style: "unit",
336
336
  unit: r,
337
337
  unitDisplay: s,
338
338
  minimumFractionDigits: n,
339
339
  maximumFractionDigits: n
340
- }).format(e), lt = (e, t, r) => typeof e != "string" || e === "" || !ot.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), vr = (e, t) => (r) => at(r, e, t);
341
- var R = {
340
+ }).format(e), nt = (e, t, r) => typeof e != "string" || e === "" || !rt.test(e) ? "" : new Intl.DateTimeFormat(t, r).format(new Date(e)), hr = (e, t) => (r) => st(r, e, t);
341
+ var L = {
342
342
  updatable: !0,
343
343
  slotRelocation: !0,
344
344
  // TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
345
345
  experimentalSlotFixes: !1
346
- }, ct = Object.defineProperty, ft = (e, t) => {
346
+ }, it = Object.defineProperty, ot = (e, t) => {
347
347
  for (var r in t)
348
- ct(e, r, { get: t[r], enumerable: !0 });
349
- }, ut = "http://www.w3.org/2000/svg", pt = "http://www.w3.org/1999/xhtml", ie = (e, t) => t in e, oe = "http://www.w3.org/1999/xlink", S = typeof window < "u" ? window : {}, j = {
348
+ it(e, r, { get: t[r], enumerable: !0 });
349
+ }, at = "http://www.w3.org/2000/svg", lt = "http://www.w3.org/1999/xhtml", te = (e, t) => t in e, re = "http://www.w3.org/1999/xlink", O = typeof window < "u" ? window : {}, A = {
350
350
  $flags$: 0,
351
351
  $resourcesUrl$: "",
352
352
  jmp: (e) => e(),
@@ -354,53 +354,53 @@ var R = {
354
354
  ael: (e, t, r, s) => e.addEventListener(t, r, s),
355
355
  rel: (e, t, r, s) => e.removeEventListener(t, r, s),
356
356
  ce: (e, t) => new CustomEvent(e, t)
357
- }, gt = (e) => e != null && e !== void 0, ve = (e) => (e = typeof e, e === "object" || e === "function"), dt = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), $t = {};
358
- ft($t, {
359
- err: () => we,
360
- map: () => ht,
361
- ok: () => G,
362
- unwrap: () => _t,
363
- unwrapErr: () => yt
357
+ }, ct = (e) => e != null && e !== void 0, he = (e) => (e = typeof e, e === "object" || e === "function"), ft = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ut = {};
358
+ ot(ut, {
359
+ err: () => Ee,
360
+ map: () => pt,
361
+ ok: () => W,
362
+ unwrap: () => gt,
363
+ unwrapErr: () => $t
364
364
  });
365
- var G = (e) => ({
365
+ var W = (e) => ({
366
366
  isOk: !0,
367
367
  isErr: !1,
368
368
  value: e
369
- }), we = (e) => ({
369
+ }), Ee = (e) => ({
370
370
  isOk: !1,
371
371
  isErr: !0,
372
372
  value: e
373
373
  });
374
- function ht(e, t) {
374
+ function pt(e, t) {
375
375
  if (e.isOk) {
376
376
  const r = t(e.value);
377
- return r instanceof Promise ? r.then((s) => G(s)) : G(r);
377
+ return r instanceof Promise ? r.then((s) => W(s)) : W(r);
378
378
  }
379
379
  if (e.isErr) {
380
380
  const r = e.value;
381
- return we(r);
381
+ return Ee(r);
382
382
  }
383
383
  throw "should never get here";
384
384
  }
385
- var _t = (e) => {
385
+ var gt = (e) => {
386
386
  if (e.isOk)
387
387
  return e.value;
388
388
  throw e.value;
389
- }, yt = (e) => {
389
+ }, $t = (e) => {
390
390
  if (e.isErr)
391
391
  return e.value;
392
392
  throw e.value;
393
- }, xe = (e) => {
394
- const t = le(e, "childNodes");
395
- e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && Ee(t, e.tagName).forEach((s) => {
396
- s.nodeType === 1 && s.tagName === "SLOT-FB" && (mt(s, Q(s), !1).length ? s.hidden = !0 : s.hidden = !1);
393
+ }, ye = (e) => {
394
+ const t = ne(e, "childNodes");
395
+ e.tagName && e.tagName.includes("-") && e["s-cr"] && e.tagName !== "SLOT-FB" && be(t, e.tagName).forEach((s) => {
396
+ s.nodeType === 1 && s.tagName === "SLOT-FB" && (_t(s, X(s), !1).length ? s.hidden = !0 : s.hidden = !1);
397
397
  });
398
398
  let r = 0;
399
399
  for (r = 0; r < t.length; r++) {
400
400
  const s = t[r];
401
- s.nodeType === 1 && le(s, "childNodes").length && xe(s);
401
+ s.nodeType === 1 && ne(s, "childNodes").length && ye(s);
402
402
  }
403
- }, bt = (e) => {
403
+ }, dt = (e) => {
404
404
  const t = [];
405
405
  for (let r = 0; r < e.length; r++) {
406
406
  const s = e[r]["s-nr"] || void 0;
@@ -408,21 +408,21 @@ var _t = (e) => {
408
408
  }
409
409
  return t;
410
410
  };
411
- function Ee(e, t, r) {
411
+ function be(e, t, r) {
412
412
  let s = 0, n = [], i;
413
413
  for (; s < e.length; s++)
414
- i = e[s], i["s-sr"] && (!t || i["s-hn"] === t) && r === void 0 && n.push(i), n = [...n, ...Ee(i.childNodes, t, r)];
414
+ i = e[s], i["s-sr"] && (!t || i["s-hn"] === t) && r === void 0 && n.push(i), n = [...n, ...be(i.childNodes, t, r)];
415
415
  return n;
416
416
  }
417
- var mt = (e, t, r = !0) => {
417
+ var _t = (e, t, r = !0) => {
418
418
  const s = [];
419
419
  (r && e["s-sr"] || !e["s-sr"]) && s.push(e);
420
420
  let n = e;
421
421
  for (; n = n.nextSibling; )
422
- Q(n) === t && (r || !n["s-sr"]) && s.push(n);
422
+ X(n) === t && (r || !n["s-sr"]) && s.push(n);
423
423
  return s;
424
- }, ae = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Q = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
425
- function vt(e) {
424
+ }, se = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", X = (e) => typeof e["s-sn"] == "string" ? e["s-sn"] : e.nodeType === 1 && e.getAttribute("slot") || void 0;
425
+ function ht(e) {
426
426
  if (e.assignedElements || e.assignedNodes || !e["s-sr"]) return;
427
427
  const t = (r) => (function(s) {
428
428
  const n = [], i = this["s-sn"];
@@ -432,8 +432,8 @@ function vt(e) {
432
432
  If you have a particular use case, please open an issue on the Stencil repo.
433
433
  `);
434
434
  const o = this["s-cr"].parentElement;
435
- return (o.__childNodes ? o.childNodes : bt(o.childNodes)).forEach((l) => {
436
- i === Q(l) && n.push(l);
435
+ return (o.__childNodes ? o.childNodes : dt(o.childNodes)).forEach((l) => {
436
+ i === X(l) && n.push(l);
437
437
  }), r ? n.filter(
438
438
  (l) => l.nodeType === 1
439
439
  /* ElementNode */
@@ -441,23 +441,23 @@ function vt(e) {
441
441
  }).bind(e);
442
442
  e.assignedElements = t(!0), e.assignedNodes = t(!1);
443
443
  }
444
- function le(e, t) {
444
+ function ne(e, t) {
445
445
  if ("__" + t in e) {
446
446
  const r = e["__" + t];
447
447
  return typeof r != "function" ? r : r.bind(e);
448
448
  } else
449
449
  return typeof e[t] != "function" ? e[t] : e[t].bind(e);
450
450
  }
451
- var wt = (e, t, ...r) => {
452
- let s = null, n = null, i = null, o = !1, c = !1;
453
- const l = [], u = (a) => {
454
- for (let g = 0; g < a.length; g++)
455
- s = a[g], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((o = !ve(s)) && (s = String(s)), o && c ? l[l.length - 1].$text$ += s : l.push(o ? J(null, s) : s), c = o);
451
+ var Et = (e, t, ...r) => {
452
+ let s = null, n = null, i = null, o = !1, a = !1;
453
+ const l = [], u = (f) => {
454
+ for (let p = 0; p < f.length; p++)
455
+ s = f[p], Array.isArray(s) ? u(s) : s != null && typeof s != "boolean" && ((o = !he(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? Z(null, s) : s), a = o);
456
456
  };
457
457
  u(r);
458
- const p = J(e, null);
459
- return p.$attrs$ = t, l.length > 0 && (p.$children$ = l), p.$key$ = n, p.$name$ = i, p;
460
- }, J = (e, t) => {
458
+ const c = Z(e, null);
459
+ return c.$attrs$ = t, l.length > 0 && (c.$children$ = l), c.$key$ = n, c.$name$ = i, c;
460
+ }, Z = (e, t) => {
461
461
  const r = {
462
462
  $flags$: 0,
463
463
  $tag$: e,
@@ -466,8 +466,8 @@ var wt = (e, t, ...r) => {
466
466
  $children$: null
467
467
  };
468
468
  return r.$attrs$ = null, r.$key$ = null, r.$name$ = null, r;
469
- }, xt = {}, Et = (e) => e && e.$tag$ === xt, V = (e) => {
470
- const t = dt(e);
469
+ }, yt = {}, bt = (e) => e && e.$tag$ === yt, Y = (e) => {
470
+ const t = ft(e);
471
471
  return new RegExp(
472
472
  // First capture group: match any context before the selector that's not inside @supports selector()
473
473
  // Using negative lookahead to avoid matching inside @supports selector(...) condition
@@ -475,17 +475,17 @@ var wt = (e, t, ...r) => {
475
475
  "g"
476
476
  );
477
477
  };
478
- V("::slotted");
479
- V(":host");
480
- V(":host-context");
481
- var ce = (e, t, r, s, n, i, o) => {
478
+ Y("::slotted");
479
+ Y(":host");
480
+ Y(":host-context");
481
+ var ie = (e, t, r, s, n, i, o) => {
482
482
  if (r === s)
483
483
  return;
484
- let c = ie(e, t), l = t.toLowerCase();
484
+ let a = te(e, t), l = t.toLowerCase();
485
485
  if (t === "class") {
486
- const u = e.classList, p = fe(r);
487
- let a = fe(s);
488
- u.remove(...p.filter((g) => g && !a.includes(g))), u.add(...a.filter((g) => g && !p.includes(g)));
486
+ const u = e.classList, c = oe(r);
487
+ let f = oe(s);
488
+ u.remove(...c.filter((p) => p && !f.includes(p))), u.add(...f.filter((p) => p && !c.includes(p)));
489
489
  } else if (t === "style") {
490
490
  for (const u in r)
491
491
  (!s || s[u] == null) && (u.includes("-") ? e.style.removeProperty(u) : e.style[u] = "");
@@ -494,47 +494,47 @@ var ce = (e, t, r, s, n, i, o) => {
494
494
  } else if (t !== "key") if (t === "ref")
495
495
  s && s(e);
496
496
  else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n") {
497
- if (t[2] === "-" ? t = t.slice(3) : ie(S, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {
498
- const u = t.endsWith(Se);
499
- t = t.replace(Ot, ""), r && j.rel(e, t, r, u), s && j.ael(e, t, s, u);
497
+ if (t[2] === "-" ? t = t.slice(3) : te(O, l) ? t = l.slice(2) : t = l[2] + t.slice(3), r || s) {
498
+ const u = t.endsWith(me);
499
+ t = t.replace(vt, ""), r && A.rel(e, t, r, u), s && A.ael(e, t, s, u);
500
500
  }
501
501
  } else {
502
- const u = ve(s);
503
- if ((c || u && s !== null) && !n)
502
+ const u = he(s);
503
+ if ((a || u && s !== null) && !n)
504
504
  try {
505
505
  if (e.tagName.includes("-"))
506
506
  e[t] !== s && (e[t] = s);
507
507
  else {
508
- const a = s ?? "";
509
- t === "list" ? c = !1 : (r == null || e[t] != a) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = a : e.setAttribute(t, a));
508
+ const f = s ?? "";
509
+ t === "list" ? a = !1 : (r == null || e[t] != f) && (typeof e.__lookupSetter__(t) == "function" ? e[t] = f : e.setAttribute(t, f));
510
510
  }
511
511
  } catch {
512
512
  }
513
- let p = !1;
514
- l !== (l = l.replace(/^xlink\:?/, "")) && (t = l, p = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (p ? e.removeAttributeNS(oe, t) : e.removeAttribute(t)) : (!c || i & 4 || n) && !u && e.nodeType === 1 && (s = s === !0 ? "" : s, p ? e.setAttributeNS(oe, t, s) : e.setAttribute(t, s));
513
+ let c = !1;
514
+ l !== (l = l.replace(/^xlink\:?/, "")) && (t = l, c = !0), s == null || s === !1 ? (s !== !1 || e.getAttribute(t) === "") && (c ? e.removeAttributeNS(re, t) : e.removeAttribute(t)) : (!a || i & 4 || n) && !u && e.nodeType === 1 && (s = s === !0 ? "" : s, c ? e.setAttributeNS(re, t, s) : e.setAttribute(t, s));
515
515
  }
516
- }, St = /\s/, fe = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(St)), Se = "Capture", Ot = new RegExp(Se + "$"), K = (e, t, r, s) => {
516
+ }, mt = /\s/, oe = (e) => (typeof e == "object" && e && "baseVal" in e && (e = e.baseVal), !e || typeof e != "string" ? [] : e.split(mt)), me = "Capture", vt = new RegExp(me + "$"), q = (e, t, r, s) => {
517
517
  const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = e && e.$attrs$ || {}, o = t.$attrs$ || {};
518
- for (const c of ue(Object.keys(i)))
519
- c in o || ce(
518
+ for (const a of ae(Object.keys(i)))
519
+ a in o || ie(
520
520
  n,
521
- c,
522
- i[c],
521
+ a,
522
+ i[a],
523
523
  void 0,
524
524
  r,
525
525
  t.$flags$
526
526
  );
527
- for (const c of ue(Object.keys(o)))
528
- ce(
527
+ for (const a of ae(Object.keys(o)))
528
+ ie(
529
529
  n,
530
- c,
531
- i[c],
532
- o[c],
530
+ a,
531
+ i[a],
532
+ o[a],
533
533
  r,
534
534
  t.$flags$
535
535
  );
536
536
  };
537
- function ue(e) {
537
+ function ae(e) {
538
538
  return e.includes("ref") ? (
539
539
  // we need to sort these to ensure that `'ref'` is the last attr
540
540
  [...e.filter((t) => t !== "ref"), "ref"]
@@ -543,11 +543,11 @@ function ue(e) {
543
543
  e
544
544
  );
545
545
  }
546
- var C, P, z, X = !1, W = !1, ee = !1, y = !1, U = (e, t, r) => {
546
+ var P, z, N, J = !1, H = !1, Q = !1, h = !1, G = (e, t, r) => {
547
547
  var s;
548
548
  const n = t.$children$[r];
549
- let i = 0, o, c, l;
550
- if (X || (ee = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
549
+ let i = 0, o, a, l;
550
+ if (J || (Q = !0, n.$tag$ === "slot" && (n.$flags$ |= n.$children$ ? (
551
551
  // slot element has fallback content
552
552
  // still create an element that "mocks" the slot element
553
553
  2
@@ -557,91 +557,91 @@ var C, P, z, X = !1, W = !1, ee = !1, y = !1, U = (e, t, r) => {
557
557
  // where actual slot content should sit next to
558
558
  1
559
559
  ))), n.$text$ !== null)
560
- o = n.$elm$ = S.document.createTextNode(n.$text$);
560
+ o = n.$elm$ = O.document.createTextNode(n.$text$);
561
561
  else if (n.$flags$ & 1)
562
- o = n.$elm$ = S.document.createTextNode(""), K(null, n, y);
562
+ o = n.$elm$ = O.document.createTextNode(""), q(null, n, h);
563
563
  else {
564
- if (y || (y = n.$tag$ === "svg"), !S.document)
564
+ if (h || (h = n.$tag$ === "svg"), !O.document)
565
565
  throw new Error(
566
566
  "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
567
567
  );
568
- if (o = n.$elm$ = S.document.createElementNS(
569
- y ? ut : pt,
570
- !X && R.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
571
- ), y && n.$tag$ === "foreignObject" && (y = !1), K(null, n, y), gt(C) && o["s-si"] !== C && o.classList.add(o["s-si"] = C), n.$children$)
568
+ if (o = n.$elm$ = O.document.createElementNS(
569
+ h ? at : lt,
570
+ !J && L.slotRelocation && n.$flags$ & 2 ? "slot-fb" : n.$tag$
571
+ ), h && n.$tag$ === "foreignObject" && (h = !1), q(null, n, h), ct(P) && o["s-si"] !== P && o.classList.add(o["s-si"] = P), n.$children$)
572
572
  for (i = 0; i < n.$children$.length; ++i)
573
- c = U(e, n, i), c && o.appendChild(c);
574
- n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
573
+ a = G(e, n, i), a && o.appendChild(a);
574
+ n.$tag$ === "svg" ? h = !1 : o.tagName === "foreignObject" && (h = !0);
575
575
  }
576
- return o["s-hn"] = z, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = P, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, vt(o), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && I(e.$elm$, !1), Te(P, o, t.$elm$, e?.$elm$)), o;
577
- }, I = (e, t) => {
578
- j.$flags$ |= 1;
576
+ return o["s-hn"] = N, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = z, o["s-sn"] = n.$name$ || "", o["s-rf"] = (s = n.$attrs$) == null ? void 0 : s.ref, ht(o), l = e && e.$children$ && e.$children$[r], l && l.$tag$ === n.$tag$ && e.$elm$ && k(e.$elm$, !1), Ae(z, o, t.$elm$, e?.$elm$)), o;
577
+ }, k = (e, t) => {
578
+ A.$flags$ |= 1;
579
579
  const r = Array.from(e.__childNodes || e.childNodes);
580
- e["s-sr"] && R.experimentalSlotFixes;
580
+ e["s-sr"] && L.experimentalSlotFixes;
581
581
  for (let s = r.length - 1; s >= 0; s--) {
582
582
  const n = r[s];
583
- n["s-hn"] !== z && n["s-ol"] && (O(N(n).parentNode, n, N(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, ee = !0), t && I(n, t);
583
+ n["s-hn"] !== N && n["s-ol"] && (x(I(n).parentNode, n, I(n)), n["s-ol"].remove(), n["s-ol"] = void 0, n["s-sh"] = void 0, Q = !0), t && k(n, t);
584
584
  }
585
- j.$flags$ &= -2;
586
- }, Oe = (e, t, r, s, n, i) => {
587
- let o = e["s-cr"] && e["s-cr"].parentNode || e, c;
588
- for (o.shadowRoot && o.tagName === z && (o = o.shadowRoot); n <= i; ++n)
589
- s[n] && (c = U(null, r, n), c && (s[n].$elm$ = c, O(o, c, N(t))));
590
- }, Ae = (e, t, r) => {
585
+ A.$flags$ &= -2;
586
+ }, ve = (e, t, r, s, n, i) => {
587
+ let o = e["s-cr"] && e["s-cr"].parentNode || e, a;
588
+ for (o.shadowRoot && o.tagName === N && (o = o.shadowRoot); n <= i; ++n)
589
+ s[n] && (a = G(null, r, n), a && (s[n].$elm$ = a, x(o, a, I(t))));
590
+ }, Oe = (e, t, r) => {
591
591
  for (let s = t; s <= r; ++s) {
592
592
  const n = e[s];
593
593
  if (n) {
594
594
  const i = n.$elm$;
595
- je(n), i && (W = !0, i["s-ol"] ? i["s-ol"].remove() : I(i, !0), i.remove());
595
+ Re(n), i && (H = !0, i["s-ol"] ? i["s-ol"].remove() : k(i, !0), i.remove());
596
596
  }
597
597
  }
598
- }, At = (e, t, r, s, n = !1) => {
599
- let i = 0, o = 0, c = 0, l = 0, u = t.length - 1, p = t[0], a = t[u], g = s.length - 1, d = s[0], f = s[g], h, _;
600
- for (; i <= u && o <= g; )
601
- if (p == null)
602
- p = t[++i];
603
- else if (a == null)
604
- a = t[--u];
605
- else if (d == null)
606
- d = s[++o];
598
+ }, Ot = (e, t, r, s, n = !1) => {
599
+ let i = 0, o = 0, a = 0, l = 0, u = t.length - 1, c = t[0], f = t[u], p = s.length - 1, $ = s[0], g = s[p], _, y;
600
+ for (; i <= u && o <= p; )
601
+ if (c == null)
602
+ c = t[++i];
607
603
  else if (f == null)
608
- f = s[--g];
609
- else if (F(p, d, n))
610
- k(p, d, n), p = t[++i], d = s[++o];
611
- else if (F(a, f, n))
612
- k(a, f, n), a = t[--u], f = s[--g];
613
- else if (F(p, f, n))
614
- (p.$tag$ === "slot" || f.$tag$ === "slot") && I(p.$elm$.parentNode, !1), k(p, f, n), O(e, p.$elm$, a.$elm$.nextSibling), p = t[++i], f = s[--g];
615
- else if (F(a, d, n))
616
- (p.$tag$ === "slot" || f.$tag$ === "slot") && I(a.$elm$.parentNode, !1), k(a, d, n), O(e, a.$elm$, p.$elm$), a = t[--u], d = s[++o];
604
+ f = t[--u];
605
+ else if ($ == null)
606
+ $ = s[++o];
607
+ else if (g == null)
608
+ g = s[--p];
609
+ else if (D(c, $, n))
610
+ R(c, $, n), c = t[++i], $ = s[++o];
611
+ else if (D(f, g, n))
612
+ R(f, g, n), f = t[--u], g = s[--p];
613
+ else if (D(c, g, n))
614
+ (c.$tag$ === "slot" || g.$tag$ === "slot") && k(c.$elm$.parentNode, !1), R(c, g, n), x(e, c.$elm$, f.$elm$.nextSibling), c = t[++i], g = s[--p];
615
+ else if (D(f, $, n))
616
+ (c.$tag$ === "slot" || g.$tag$ === "slot") && k(f.$elm$.parentNode, !1), R(f, $, n), x(e, f.$elm$, c.$elm$), f = t[--u], $ = s[++o];
617
617
  else {
618
- for (c = -1, l = i; l <= u; ++l)
619
- if (t[l] && t[l].$key$ !== null && t[l].$key$ === d.$key$) {
620
- c = l;
618
+ for (a = -1, l = i; l <= u; ++l)
619
+ if (t[l] && t[l].$key$ !== null && t[l].$key$ === $.$key$) {
620
+ a = l;
621
621
  break;
622
622
  }
623
- c >= 0 ? (_ = t[c], _.$tag$ !== d.$tag$ ? h = U(t && t[o], r, c) : (k(_, d, n), t[c] = void 0, h = _.$elm$), d = s[++o]) : (h = U(t && t[o], r, o), d = s[++o]), h && O(
624
- N(p.$elm$).parentNode,
625
- h,
626
- N(p.$elm$)
623
+ a >= 0 ? (y = t[a], y.$tag$ !== $.$tag$ ? _ = G(t && t[o], r, a) : (R(y, $, n), t[a] = void 0, _ = y.$elm$), $ = s[++o]) : (_ = G(t && t[o], r, o), $ = s[++o]), _ && x(
624
+ I(c.$elm$).parentNode,
625
+ _,
626
+ I(c.$elm$)
627
627
  );
628
628
  }
629
- i > u ? Oe(
629
+ i > u ? ve(
630
630
  e,
631
- s[g + 1] == null ? null : s[g + 1].$elm$,
631
+ s[p + 1] == null ? null : s[p + 1].$elm$,
632
632
  r,
633
633
  s,
634
634
  o,
635
- g
636
- ) : o > g && Ae(t, i, u);
637
- }, F = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, N = (e) => e && e["s-ol"] || e, k = (e, t, r = !1) => {
638
- const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, c = t.$text$;
635
+ p
636
+ ) : o > p && Oe(t, i, u);
637
+ }, D = (e, t, r = !1) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : r ? (r && !e.$key$ && t.$key$ && (e.$key$ = t.$key$), !0) : e.$key$ === t.$key$ : !1, I = (e) => e && e["s-ol"] || e, R = (e, t, r = !1) => {
638
+ const s = t.$elm$ = e.$elm$, n = e.$children$, i = t.$children$, o = t.$tag$, a = t.$text$;
639
639
  let l;
640
- c === null ? (y = o === "svg" ? !0 : o === "foreignObject" ? !1 : y, K(e, t, y), n !== null && i !== null ? At(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), Oe(s, null, t, i, 0, i.length - 1)) : (
640
+ a === null ? (h = o === "svg" ? !0 : o === "foreignObject" ? !1 : h, q(e, t, h), n !== null && i !== null ? Ot(s, n, t, i, r) : i !== null ? (e.$text$ !== null && (s.textContent = ""), ve(s, null, t, i, 0, i.length - 1)) : (
641
641
  // don't do this on initial render as it can cause non-hydrated content to be removed
642
- !r && R.updatable && n !== null && Ae(n, 0, n.length - 1)
643
- ), y && o === "svg" && (y = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = c : e.$text$ !== c && (s.data = c);
644
- }, m = [], ke = (e) => {
642
+ !r && L.updatable && n !== null && Oe(n, 0, n.length - 1)
643
+ ), h && o === "svg" && (h = !1)) : (l = s["s-cr"]) ? l.parentNode.textContent = a : e.$text$ !== a && (s.data = a);
644
+ }, v = [], xe = (e) => {
645
645
  let t, r, s;
646
646
  const n = e.__childNodes || e.childNodes;
647
647
  for (const i of n) {
@@ -650,105 +650,104 @@ var C, P, z, X = !1, W = !1, ee = !1, y = !1, U = (e, t, r) => {
650
650
  const o = i["s-sn"];
651
651
  for (s = r.length - 1; s >= 0; s--)
652
652
  if (t = r[s], !t["s-cn"] && !t["s-nr"] && t["s-hn"] !== i["s-hn"])
653
- if (ae(t, o)) {
654
- let c = m.find((l) => l.$nodeToRelocate$ === t);
655
- W = !0, t["s-sn"] = t["s-sn"] || o, c ? (c.$nodeToRelocate$["s-sh"] = i["s-hn"], c.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], m.push({
653
+ if (se(t, o)) {
654
+ let a = v.find((l) => l.$nodeToRelocate$ === t);
655
+ H = !0, t["s-sn"] = t["s-sn"] || o, a ? (a.$nodeToRelocate$["s-sh"] = i["s-hn"], a.$slotRefNode$ = i) : (t["s-sh"] = i["s-hn"], v.push({
656
656
  $slotRefNode$: i,
657
657
  $nodeToRelocate$: t
658
- })), t["s-sr"] && m.map((l) => {
659
- ae(l.$nodeToRelocate$, t["s-sn"]) && (c = m.find((u) => u.$nodeToRelocate$ === t), c && !l.$slotRefNode$ && (l.$slotRefNode$ = c.$slotRefNode$));
658
+ })), t["s-sr"] && v.map((l) => {
659
+ se(l.$nodeToRelocate$, t["s-sn"]) && (a = v.find((u) => u.$nodeToRelocate$ === t), a && !l.$slotRefNode$ && (l.$slotRefNode$ = a.$slotRefNode$));
660
660
  });
661
- } else m.some((c) => c.$nodeToRelocate$ === t) || m.push({
661
+ } else v.some((a) => a.$nodeToRelocate$ === t) || v.push({
662
662
  $nodeToRelocate$: t
663
663
  });
664
664
  }
665
- i.nodeType === 1 && ke(i);
665
+ i.nodeType === 1 && xe(i);
666
666
  }
667
- }, je = (e) => {
668
- e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(je);
669
- }, O = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && Te(t["s-cr"], t, e, t.parentElement), e?.insertBefore(t, r));
670
- function Te(e, t, r, s) {
667
+ }, Re = (e) => {
668
+ e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Re);
669
+ }, x = (e, t, r) => (typeof t["s-sn"] == "string" && t["s-sr"] && t["s-cr"] && Ae(t["s-cr"], t, e, t.parentElement), e?.insertBefore(t, r));
670
+ function Ae(e, t, r, s) {
671
671
  var n, i;
672
672
  let o;
673
673
  if (e && typeof t["s-sn"] == "string" && t["s-sr"] && e.parentNode && e.parentNode["s-sc"] && (o = t["s-si"] || e.parentNode["s-sc"])) {
674
- const c = t["s-sn"], l = t["s-hn"];
674
+ const a = t["s-sn"], l = t["s-hn"];
675
675
  if ((n = r.classList) == null || n.add(o + "-s"), s && ((i = s.classList) != null && i.contains(o + "-s"))) {
676
- let u = (s.__childNodes || s.childNodes)[0], p = !1;
676
+ let u = (s.__childNodes || s.childNodes)[0], c = !1;
677
677
  for (; u; ) {
678
- if (u["s-sn"] !== c && u["s-hn"] === l && u["s-sr"]) {
679
- p = !0;
678
+ if (u["s-sn"] !== a && u["s-hn"] === l && u["s-sr"]) {
679
+ c = !0;
680
680
  break;
681
681
  }
682
682
  u = u.nextSibling;
683
683
  }
684
- p || s.classList.remove(o + "-s");
684
+ c || s.classList.remove(o + "-s");
685
685
  }
686
686
  }
687
687
  }
688
- var kt = (e, t, r = !1) => {
689
- var s, n, i, o, c;
690
- const l = e.$hostElement$, u = e.$cmpMeta$, p = e.$vnode$ || J(null, null), g = Et(t) ? t : wt(null, null, t);
691
- if (z = l.tagName, u.$attrsToReflect$ && (g.$attrs$ = g.$attrs$ || {}, u.$attrsToReflect$.forEach(([d, f]) => {
692
- R.serializer && e.$serializerValues$.has(d) ? g.$attrs$[f] = e.$serializerValues$.get(d) : g.$attrs$[f] = l[d];
693
- })), r && g.$attrs$)
694
- for (const d of Object.keys(g.$attrs$))
695
- l.hasAttribute(d) && !["key", "ref", "style", "class"].includes(d) && (g.$attrs$[d] = l[d]);
696
- g.$tag$ = null, g.$flags$ |= 4, e.$vnode$ = g, g.$elm$ = p.$elm$ = l.shadowRoot || l, C = l["s-sc"], X = !!(u.$flags$ & 1) && !(u.$flags$ & 128), P = l["s-cr"], W = !1, k(p, g, r);
688
+ var xt = (e, t, r = !1) => {
689
+ var s, n, i, o, a;
690
+ const l = e.$hostElement$, u = e.$cmpMeta$, c = e.$vnode$ || Z(null, null), p = bt(t) ? t : Et(null, null, t);
691
+ if (N = l.tagName, u.$attrsToReflect$ && (p.$attrs$ = p.$attrs$ || {}, u.$attrsToReflect$.forEach(([$, g]) => {
692
+ L.serializer && e.$serializerValues$.has($) ? p.$attrs$[g] = e.$serializerValues$.get($) : p.$attrs$[g] = l[$];
693
+ })), r && p.$attrs$)
694
+ for (const $ of Object.keys(p.$attrs$))
695
+ l.hasAttribute($) && !["key", "ref", "style", "class"].includes($) && (p.$attrs$[$] = l[$]);
696
+ p.$tag$ = null, p.$flags$ |= 4, e.$vnode$ = p, p.$elm$ = c.$elm$ = l.shadowRoot || l, P = l["s-sc"], J = !!(u.$flags$ & 1) && !(u.$flags$ & 128), z = l["s-cr"], H = !1, R(c, p, r);
697
697
  {
698
- if (j.$flags$ |= 1, ee) {
699
- ke(g.$elm$);
700
- for (const d of m) {
701
- const f = d.$nodeToRelocate$;
702
- if (!f["s-ol"] && S.document) {
703
- const h = S.document.createTextNode("");
704
- h["s-nr"] = f, O(f.parentNode, f["s-ol"] = h, f);
698
+ if (A.$flags$ |= 1, Q) {
699
+ xe(p.$elm$);
700
+ for (const $ of v) {
701
+ const g = $.$nodeToRelocate$;
702
+ if (!g["s-ol"] && O.document) {
703
+ const _ = O.document.createTextNode("");
704
+ _["s-nr"] = g, x(g.parentNode, g["s-ol"] = _, g);
705
705
  }
706
706
  }
707
- for (const d of m) {
708
- const f = d.$nodeToRelocate$, h = d.$slotRefNode$;
709
- if (h) {
710
- const _ = h.parentNode;
711
- let x = h.nextSibling;
707
+ for (const $ of v) {
708
+ const g = $.$nodeToRelocate$, _ = $.$slotRefNode$;
709
+ if (_) {
710
+ const y = _.parentNode;
711
+ let b = _.nextSibling;
712
712
  {
713
- let E = (s = f["s-ol"]) == null ? void 0 : s.previousSibling;
714
- for (; E; ) {
715
- let $ = (n = E["s-nr"]) != null ? n : null;
716
- if ($ && $["s-sn"] === f["s-sn"] && _ === ($.__parentNode || $.parentNode)) {
717
- for ($ = $.nextSibling; $ === f || $?.["s-sr"]; )
718
- $ = $?.nextSibling;
719
- if (!$ || !$["s-nr"]) {
720
- x = $;
713
+ let m = (s = g["s-ol"]) == null ? void 0 : s.previousSibling;
714
+ for (; m; ) {
715
+ let d = (n = m["s-nr"]) != null ? n : null;
716
+ if (d && d["s-sn"] === g["s-sn"] && y === (d.__parentNode || d.parentNode)) {
717
+ for (d = d.nextSibling; d === g || d?.["s-sr"]; )
718
+ d = d?.nextSibling;
719
+ if (!d || !d["s-nr"]) {
720
+ b = d;
721
721
  break;
722
722
  }
723
723
  }
724
- E = E.previousSibling;
724
+ m = m.previousSibling;
725
725
  }
726
726
  }
727
- const A = f.__parentNode || f.parentNode, se = f.__nextSibling || f.nextSibling;
728
- (!x && _ !== A || se !== x) && f !== x && (!f["s-hn"] && f["s-ol"] && (f["s-hn"] = f["s-ol"].parentNode.nodeName), O(_, f, x), f.nodeType === 1 && f.tagName !== "SLOT-FB" && (f.hidden = (i = f["s-ih"]) != null ? i : !1)), f && typeof h["s-rf"] == "function" && h["s-rf"](h);
727
+ const V = g.__parentNode || g.parentNode, j = g.__nextSibling || g.nextSibling;
728
+ (!b && y !== V || j !== b) && g !== b && (!g["s-hn"] && g["s-ol"] && (g["s-hn"] = g["s-ol"].parentNode.nodeName), x(y, g, b), g.nodeType === 1 && g.tagName !== "SLOT-FB" && (g.hidden = (i = g["s-ih"]) != null ? i : !1)), g && typeof _["s-rf"] == "function" && _["s-rf"](_);
729
729
  } else
730
- f.nodeType === 1 && (r && (f["s-ih"] = (o = f.hidden) != null ? o : !1), f.hidden = !0);
730
+ g.nodeType === 1 && (r && (g["s-ih"] = (o = g.hidden) != null ? o : !1), g.hidden = !0);
731
731
  }
732
732
  }
733
- W && xe(g.$elm$), j.$flags$ &= -2, m.length = 0;
733
+ H && ye(p.$elm$), A.$flags$ &= -2, v.length = 0;
734
734
  }
735
- if (R.experimentalScopedSlotChanges && u.$flags$ & 2) {
736
- const d = g.$elm$.__childNodes || g.$elm$.childNodes;
737
- for (const f of d)
738
- f["s-hn"] !== z && !f["s-sh"] && (r && f["s-ih"] == null && (f["s-ih"] = (c = f.hidden) != null ? c : !1), f.hidden = !0);
735
+ if (L.experimentalScopedSlotChanges && u.$flags$ & 2) {
736
+ const $ = p.$elm$.__childNodes || p.$elm$.childNodes;
737
+ for (const g of $)
738
+ g["s-hn"] !== N && !g["s-sh"] && (r && g["s-ih"] == null && (g["s-ih"] = (a = g.hidden) != null ? a : !1), g.hidden = !0);
739
739
  }
740
- P = void 0;
740
+ z = void 0;
741
741
  };
742
- const te = {
742
+ const T = {
743
743
  content_wrap: 0,
744
744
  ignore: [],
745
- ignore_with: "_!i-£___£%_",
745
+ ignore_with: "!i-£___£%_",
746
746
  strict: !1,
747
747
  tab_size: 2,
748
748
  tag_wrap: 0,
749
- tag_wrap_width: 80,
750
749
  trim: []
751
- }, v = "__!i-£___£%__", w = "!i-£___£%_", Re = [
750
+ }, we = [
752
751
  "area",
753
752
  "base",
754
753
  "br",
@@ -763,11 +762,16 @@ const te = {
763
762
  "source",
764
763
  "track",
765
764
  "wbr"
766
- ], ze = {
765
+ ], Te = {
767
766
  checked_html: !1,
768
- config: { ...te },
769
- ignored: !1
770
- }, D = () => ze, L = (e) => Object.assign(ze, e), re = (e) => (L({ checked_html: !0 }), /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\s+.*?)*?\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e)), Ie = (e, t) => {
767
+ config: { ...T },
768
+ ignored: !1,
769
+ constants: {
770
+ CONTENT_IGNORE_PLACEHOLDER: `${T.ignore_with}_`,
771
+ SELF_CLOSING_PLACEHOLDER: `${T.ignore_with}/_>`,
772
+ ATTRIBUTE_IGNORE_PLACEHOLDER: `${T.ignore_with}=_`
773
+ }
774
+ }, E = () => Te, C = (e) => Object.assign(Te, e), Se = (e) => (C({ checked_html: !0 }), /<(?:[A-Za-z]+[A-Za-z0-9]*)(?:\s+.*?)*?\/{0,1}>/.test(e) || /<(?<Element>(?:[A-Za-z]+[A-Za-z0-9]*:)?(?:[A-Za-z]+[A-Za-z0-9]*))(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e) || /<(?<Element>(?:[a-z][a-z0-9._]*:)?[a-z][a-z0-9._]*-[a-z0-9._-]+)(?:\s+.*?)*?>(?:.|\n)*?<\/{1}\k<Element>>/.test(e)), Le = (e, t) => {
771
775
  if (!e || !t)
772
776
  throw new Error("Both 'current' and 'updates' must be passed-in to mergeObjects()");
773
777
  let r;
@@ -776,49 +780,68 @@ const te = {
776
780
  else if (typeof e == "object") {
777
781
  r = { ...e };
778
782
  for (let s of Object.keys(t))
779
- typeof t[s] != "object" ? r[s] = t[s] : r[s] = Ie(r[s] || {}, t[s]);
783
+ typeof t[s] != "object" ? r[s] = t[s] : r[s] = Le(r[s] || {}, t[s]);
780
784
  }
781
785
  return r;
782
- }, jt = (e, t) => {
783
- const r = Ie(e, t);
784
- return L({ config: r }), r;
785
- }, Tt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(/\n/g, w + "nl!").replace(/\r/g, w + "cr!").replace(/\s/g, w + "ws!"))), e), Rt = (e) => e.replace(/\n/g, v + "nl!").replace(/\r/g, v + "cr!").replace(/\s/g, v + "ws!"), zt = (e) => {
786
- const t = /\s*<([a-zA-Z0-9:-]+)[^>]*>\n\s*<\/\1>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n\s*)<\/\3>/g;
787
- return e.replace(t, (r, s, n, i, o) => {
788
- const c = n || o;
789
- if (!c)
790
- return r;
791
- const l = c.replace(/\n/g, v + "nl!").replace(/\r/g, v + "cr!").replace(/\s/g, v + "ws!");
792
- return r.replace(c, l);
786
+ }, Rt = (e, t) => {
787
+ const r = Le(e, t);
788
+ return C({
789
+ config: r,
790
+ constants: {
791
+ CONTENT_IGNORE_PLACEHOLDER: `${r.ignore_with}_`,
792
+ SELF_CLOSING_PLACEHOLDER: `${r.ignore_with}/_>`,
793
+ ATTRIBUTE_IGNORE_PLACEHOLDER: `${r.ignore_with}=_`
794
+ }
795
+ }), r;
796
+ }, At = (e) => {
797
+ const { constants: t } = E();
798
+ return e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (r, s) => r.replace(s, (n) => n.replace(/\n/g, t.ATTRIBUTE_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, t.ATTRIBUTE_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, t.ATTRIBUTE_IGNORE_PLACEHOLDER + "ws!"))), e;
799
+ }, wt = (e) => {
800
+ const { constants: t } = E();
801
+ return e.replace(/\n/g, t.CONTENT_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, t.CONTENT_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, t.CONTENT_IGNORE_PLACEHOLDER + "ws!");
802
+ }, Tt = (e) => {
803
+ const t = /\s*<([a-zA-Z0-9:-]+)[^>]*>\n\s*<\/\1>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n)|<([a-zA-Z0-9:-]+)[^>]*>(?=\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n)(\n[ ]*\S[^\n]*\n\s*)<\/\3>/g, { constants: r } = E();
804
+ return e.replace(t, (s, n, i, o, a) => {
805
+ const l = i || a;
806
+ if (!l)
807
+ return s;
808
+ const u = l.replace(/\n/g, r.CONTENT_IGNORE_PLACEHOLDER + "nl!").replace(/\r/g, r.CONTENT_IGNORE_PLACEHOLDER + "cr!").replace(/\s/g, r.CONTENT_IGNORE_PLACEHOLDER + "ws!");
809
+ return s.replace(l, u);
793
810
  });
794
- }, It = (e) => {
795
- const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\s+[A-Za-z0-9_-]+="[^"]*"|\s*[a-z]*)*)>/g;
796
- return e = e.replace(t, (r, s, n) => r.replace(n, (i) => i.replace(/</g, w + "lt!").replace(/>/g, w + "gt!"))), e;
797
- }, Nt = (e, t) => {
811
+ }, St = (e) => {
812
+ const t = /<([A-Za-z][A-Za-z0-9]*|[a-z][a-z0-9._]*-[a-z0-9._-]+)((?:\s+[A-Za-z0-9_-]+="[^"]*"|\s*[a-z]*)*)>/g, { constants: r } = E();
813
+ return e = e.replace(t, (s, n, i) => s.replace(i, (o) => o.replace(/</g, r.ATTRIBUTE_IGNORE_PLACEHOLDER + "lt!").replace(/>/g, r.ATTRIBUTE_IGNORE_PLACEHOLDER + "gt!"))), e;
814
+ }, Lt = (e, t) => {
798
815
  for (let r = 0; r < t.length; r++) {
799
816
  const s = new RegExp(`(<${t[r]}[^>]*>)\\s+`, "g"), n = new RegExp(`\\s+(</${t[r]}>)`, "g");
800
817
  e = e.replace(s, "$1").replace(n, "$1");
801
818
  }
802
819
  return e;
803
- }, Dt = (e) => (e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (t, r) => t.replace(r, (s) => s.replace(new RegExp(w + "nl!", "g"), `
804
- `).replace(new RegExp(w + "cr!", "g"), "\r").replace(new RegExp(w + "ws!", "g"), " "))), e), Lt = (e) => (e = e.replace(/.*__!i-£___£%__[a-z]{2}!.*/g, (t) => t.replace(/__!i-£___£%__[a-z]{2}!/g, (r) => r.replace(new RegExp(v + "nl!", "g"), `
805
- `).replace(new RegExp(v + "cr!", "g"), "\r").replace(new RegExp(v + "ws!", "g"), " "))), e), Ne = w.replace(
806
- /[-\/\\^$*+?.()|[\]{}]/g,
807
- "\\$&"
808
- ), Mt = new RegExp(Ne + "lt!", "g"), Ft = new RegExp(Ne + "gt!", "g"), Ct = (e) => {
809
- const t = /<([\w:\-]+)([^>]*)>/g;
820
+ }, Nt = (e) => {
821
+ const { constants: t } = E();
822
+ return e = e.replace(/<[\w:\-]+([^>]*[^\/])>/g, (r, s) => r.replace(s, (n) => n.replace(new RegExp(t.ATTRIBUTE_IGNORE_PLACEHOLDER + "nl!", "g"), `
823
+ `).replace(new RegExp(t.ATTRIBUTE_IGNORE_PLACEHOLDER + "cr!", "g"), "\r").replace(new RegExp(t.ATTRIBUTE_IGNORE_PLACEHOLDER + "ws!", "g"), " "))), e;
824
+ }, kt = (e) => {
825
+ const { constants: t } = E();
826
+ return e = e.replace(new RegExp(`.*${t.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!.*`, "g"), (r) => r.replace(new RegExp(`${t.CONTENT_IGNORE_PLACEHOLDER}[a-z]{2}!`, "g"), (s) => s.replace(new RegExp(t.CONTENT_IGNORE_PLACEHOLDER + "nl!", "g"), `
827
+ `).replace(new RegExp(t.CONTENT_IGNORE_PLACEHOLDER + "cr!", "g"), "\r").replace(new RegExp(t.CONTENT_IGNORE_PLACEHOLDER + "ws!", "g"), " "))), e;
828
+ }, It = (e) => {
829
+ const t = /<([\w:\-]+)([^>]*)>/g, { constants: r } = E(), s = r.ATTRIBUTE_IGNORE_PLACEHOLDER.replace(
830
+ /[-\/\\^$*+?.()|[\]{}]/g,
831
+ "\\$&"
832
+ ), n = new RegExp(s + "lt!", "g"), i = new RegExp(s + "gt!", "g");
810
833
  return e.replace(
811
834
  t,
812
- (r, s, n) => {
813
- const i = n.replace(Mt, "<").replace(Ft, ">");
814
- return `<${s}${i}>`;
835
+ (o, a, l) => {
836
+ const u = l.replace(n, "<").replace(i, ">");
837
+ return `<${a}${u}>`;
815
838
  }
816
839
  );
817
- }, Pt = (e) => {
840
+ }, Ct = (e) => {
818
841
  if (typeof e != "object") throw new Error("Config must be an object.");
819
- const t = { ...te };
820
- if (!(Object.hasOwn(e, "content_wrap") || Object.hasOwn(e, "ignore") || Object.hasOwn(e, "ignore_with") || Object.hasOwn(e, "strict") || Object.hasOwn(e, "tab_size") || Object.hasOwn(e, "tag_wrap") || Object.hasOwn(e, "tag_wrap_width") || Object.hasOwn(e, "trim")))
821
- return L({ config: t }), t;
842
+ const t = { ...T };
843
+ if (!(Object.hasOwn(e, "content_wrap") || Object.hasOwn(e, "ignore") || Object.hasOwn(e, "ignore_with") || Object.hasOwn(e, "strict") || Object.hasOwn(e, "tab_size") || Object.hasOwn(e, "tag_wrap") || Object.hasOwn(e, "trim")))
844
+ return C({ config: t }), t;
822
845
  let s = e.tab_size;
823
846
  if (s) {
824
847
  if (typeof s != "number") throw new Error(`tab_size must be a number, not ${typeof e.tab_size}.`);
@@ -827,21 +850,23 @@ const te = {
827
850
  e.tab_size = s;
828
851
  }
829
852
  if (Object.hasOwn(e, "content_wrap") && typeof e.content_wrap != "number")
830
- throw new Error(`content_wrap config must be a number, not ${typeof e.tag_wrap_width}.`);
853
+ throw new Error(`content_wrap config must be a number, not ${typeof e.content_wrap}.`);
831
854
  if (Object.hasOwn(e, "ignore") && (!Array.isArray(e.ignore) || !e.ignore?.every((n) => typeof n == "string")))
832
855
  throw new Error("Ignore config must be an array of strings.");
833
- if (Object.hasOwn(e, "ignore_with") && typeof e.ignore_with != "string")
834
- throw new Error(`Ignore_with config must be a string, not ${typeof e.ignore_with}.`);
856
+ if (Object.hasOwn(e, "ignore_with")) {
857
+ if (typeof e.ignore_with != "string")
858
+ throw new Error(`ignore_with must be a string, not ${typeof e.ignore_with}.`);
859
+ if (e.ignore_with.startsWith("_"))
860
+ throw new Error("ignore_with cannot start with an underscore.");
861
+ }
835
862
  if (Object.hasOwn(e, "strict") && typeof e.strict != "boolean")
836
863
  throw new Error(`Strict config must be a boolean, not ${typeof e.strict}.`);
837
- if (Object.hasOwn(e, "tag_wrap") && typeof e.tag_wrap == "boolean" && (console.warn("tag_wrap as a boolean is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes."), e.tag_wrap_width ? e.tag_wrap = e.tag_wrap_width : e.tag_wrap = t.tag_wrap_width), Object.hasOwn(e, "tag_wrap") && typeof e.tag_wrap != "number")
864
+ if (Object.hasOwn(e, "tag_wrap") && typeof e.tag_wrap != "number")
838
865
  throw new Error(`tag_wrap config must be a number, not ${typeof e.tag_wrap}.`);
839
- if (Object.hasOwn(e, "tag_wrap_width") && console.warn("tag_wrap_width is deprecated, and will not be supported in v0.9.0+. Use `tag_wrap: <number>` instead; where <number> is the max character width acceptable before wrapping attributes."), Object.hasOwn(e, "tag_wrap_width") && typeof e.tag_wrap_width != "number")
840
- throw new Error(`tag_wrap_width config must be a number, not ${typeof e.tag_wrap_width}.`);
841
866
  if (Object.hasOwn(e, "trim") && (!Array.isArray(e.trim) || !e.trim?.every((n) => typeof n == "string")))
842
867
  throw new Error("Trim config must be an array of strings.");
843
- return jt(t, e);
844
- }, Wt = (e, t, r) => {
868
+ return Rt(t, e);
869
+ }, jt = (e, t, r) => {
845
870
  const s = e.trim().split(/\s+/);
846
871
  if (s.length === 0 || s.length === 1 && s[0] === "")
847
872
  return "";
@@ -857,160 +882,170 @@ const te = {
857
882
  const u = i === "" ? l : i + " " + l;
858
883
  u.length <= t ? i = u : (i !== "" && n.push(n.length === 0 ? r + i : o + i), i = l);
859
884
  }), i !== "" && n.push(n.length === 0 ? r + i : o + i);
860
- const c = n.join(`
885
+ const a = n.join(`
861
886
  `);
862
- return Rt(c);
887
+ return wt(a);
863
888
  };
864
- function De(e, t) {
865
- L({ ignored: !0 });
889
+ function Ne(e) {
890
+ C({ ignored: !0 });
891
+ const t = E().config;
866
892
  let r = e;
867
893
  const s = /* @__PURE__ */ new Map();
868
894
  let n = 0;
869
895
  const i = "___HTMLFY_SPECIAL_IGNORE_MARKER_";
870
896
  for (const o of t.ignore) {
871
- const c = o.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), l = new RegExp(
872
- `<${c}[^>]*>.*?</${c}>`,
897
+ const a = o.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), l = new RegExp(
898
+ `(<\\s*${a}[^>]*>)(.*?)(<\\s*/\\s*${a}\\s*>)`,
873
899
  "gs"
874
900
  // global and dotAll
875
901
  );
876
902
  let u;
877
- const p = [];
903
+ const c = [];
878
904
  for (; (u = l.exec(r)) !== null; ) {
879
- const a = `${i}${n++}___`;
880
- s.set(a, u[0]), p.push({
881
- start: u.index,
882
- end: l.lastIndex,
883
- marker: a
905
+ const f = `${i}${n++}___`;
906
+ s.set(f, u[2]), c.push({
907
+ start: u.index + u[1].length,
908
+ // start of content
909
+ end: u.index + u[1].length + u[2].length,
910
+ // end of content
911
+ marker: f
884
912
  });
885
913
  }
886
- for (let a = p.length - 1; a >= 0; a--) {
887
- const g = p[a];
888
- r = r.substring(0, g.start) + g.marker + r.substring(g.end);
914
+ for (let f = c.length - 1; f >= 0; f--) {
915
+ const p = c[f];
916
+ r = r.substring(0, p.start) + p.marker + r.substring(p.end);
889
917
  }
890
918
  }
891
919
  return { html_with_markers: r, extracted_map: s };
892
920
  }
893
- function Le(e, t) {
894
- L({ ignored: !1 });
921
+ function ke(e, t) {
922
+ C({ ignored: !1 });
895
923
  let r = e;
896
924
  for (const [s, n] of t)
897
925
  r = r.split(s).join(n);
898
926
  return r;
899
927
  }
900
- const Ut = (e) => {
901
- const { checked_html: t } = D();
902
- return !t && !re(e) ? e : e.replace(/<([a-zA-Z\-0-9:]+)[^>]*>/g, (r, s) => Re.indexOf(s) > -1 ? `${r.substring(0, r.length - 1)} />`.replace(/\/\s\//g, "/") : r.replace(/[\s]?\/>/g, `></${s}>`));
903
- }, Zt = (e, t = !1) => (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;").replace(/\s/g, "&nbsp;"))), t && (e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (r, s) => (r = r.replace(s, (n) => n.replace(/\n|\t/g, "").replace(/[a-z]+="\s*"/ig, "").replace(/>\s+</g, "><").replace(/\s+/g, " ")), r = r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/class=["']\s/g, (n) => n.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"), r))), e);
904
- let pe;
905
- const Ht = (e, t) => {
928
+ const Dt = new RegExp(`<(${we.join("|")})(?:\\s(?:[^/>]|/(?!>))*)*>`, "g");
929
+ function Pt(e) {
930
+ const { constants: t } = E();
931
+ return e.replace(
932
+ // match only void elements that are not self-closing
933
+ Dt,
934
+ (r) => r.replace(/>$/, t.SELF_CLOSING_PLACEHOLDER)
935
+ );
936
+ }
937
+ function zt(e) {
938
+ const { constants: t } = E();
939
+ return e.replace(t.SELF_CLOSING_PLACEHOLDER, ">");
940
+ }
941
+ const Ht = (e, t = !1) => (e = e.replace(/<\s*textarea[^>]*>((.|\n)*?)<s*\/\s*textarea\s*>/g, (r, s) => r.replace(s, (n) => n.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/\n/g, "&#10;").replace(/\r/g, "&#13;").replace(/\s/g, "&nbsp;"))), t && (e = e.replace(/<\s*textarea[^>]*>(.|\n)*?<\s*\/\s*textarea\s*>/g, (r) => r.replace(/\s+/g, " ").replace(/\s>/g, ">").replace(/>\s/g, ">").replace(/\s</g, "<").replace(/<\s/g, "<").replace(/<\/\s/g, "</").replace(/class=["']\s/g, (s) => s.replace(/\s/g, "")).replace(/(class=.*)\s(["'])/g, "$1$2"))), e), Gt = (e) => e = e.replace(/<textarea[^>]*>((.|\n)*?)<\/textarea>/g, (t, r) => t.replace(r, (s) => (s = s.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/&#10;/g, `
942
+ `).replace(/&#13;/g, "\r").replace(/&nbsp;/g, " ").replace(/\s+/g, " "), s)));
943
+ let le;
944
+ const Ft = (e, t) => {
906
945
  let r = !1;
907
- const { checked_html: s, ignored: n } = D();
908
- if (!s && !re(e)) return e;
909
- const i = D().config, o = i.ignore.length > 0;
946
+ const { checked_html: s, ignored: n } = E();
947
+ if (!s && !Se(e)) return e;
948
+ const o = E().config.ignore.length > 0;
910
949
  if (!n && o) {
911
- const { html_with_markers: c, extracted_map: l } = De(e, i);
912
- e = c, pe = l, r = !0;
950
+ const { html_with_markers: a, extracted_map: l } = Ne(e);
951
+ e = a, le = l, r = !0;
913
952
  }
914
- return e = Zt(e), e = e.replace(/\n|\t/g, ""), e = e.replace(/>\s+</g, "><"), e = e.replace(/ {2,}/g, " "), e = e.replace(/ >/g, ">"), e = e.replace(/ </g, "<"), e = e.replace(/> /g, ">"), e = e.replace(/<\s*\//g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
953
+ return e = Ht(e, !0), e = e.replace(/\n|\t/g, ""), e = e.replace(/>\s+</g, "><"), e = e.replace(/ {2,}/g, " "), e = e.replace(/ >/g, ">"), e = e.replace(/ </g, "<"), e = e.replace(/> /g, ">"), e = e.replace(/< /g, "<"), e = e.replace(/<\s+\//g, "</"), e = e.replace(/<\/\s+/g, "</"), e = e.replace(/ = /g, "="), e = e.replace(
915
954
  /([a-zA-Z0-9_-]+)=(['"])(.*?)\2/g,
916
- (c, l, u, p) => {
917
- const a = p.trim();
918
- return `${l}=${u}${a}${u}`;
955
+ (a, l, u, c) => {
956
+ const f = c.trim();
957
+ return `${l}=${u}${f}${u}`;
919
958
  }
920
- ), e = e.trim(), r && (e = Le(e, pe)), e;
921
- }, T = {
959
+ ), e = e.trim(), e = Gt(e), r && (e = ke(e, le)), e;
960
+ }, S = {
922
961
  line: []
923
962
  };
924
- let ge;
925
- const Bt = (e) => {
926
- T.line = [];
963
+ let ce;
964
+ const Mt = (e) => {
965
+ S.line = [];
927
966
  let t = -1;
928
967
  const r = /(<[^>]+>)|([^<]+)/g;
929
- return e = e.replace(r, (s, n, i) => (n ? T.line.push({ type: "tag", value: s }) : i && i.trim().length > 0 && T.line.push({ type: "text", value: s }), t++, `
968
+ e.replace(r, (s, n, i) => (n ? S.line.push({ type: "tag", value: s }) : i && i.trim().length > 0 && S.line.push({ type: "text", value: s }), t++, `
930
969
  [#-# : ${t} : ${s} : #-#]
931
- `)), e;
932
- }, qt = (e) => {
933
- e = Ut(e);
934
- const { config: t } = D();
935
- return t.trim.length > 0 && (e = Nt(e, t.trim)), e = Ht(e), e = Bt(e), e;
936
- }, Gt = (e) => {
937
- const t = " ".repeat(e.tab_size), r = e.tag_wrap, s = e.content_wrap, i = `-${e.ignore_with}`, o = e.strict;
938
- let c = "";
939
- const l = [], u = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, p = /\s{1}[A-Za-z-]+(?:=".*?")?/g;
940
- T.line.forEach((g, d) => {
941
- let f = g.value;
942
- const h = f.startsWith(i + "lt--") || f.startsWith(i + "gt--") || f.startsWith(i + "nl--") || f.startsWith(i + "cr--") || f.startsWith(i + "ws--") || f.startsWith(i + "tab--");
970
+ `));
971
+ }, Ut = () => {
972
+ const { config: e, constants: t } = E(), r = " ".repeat(e.tab_size), s = e.tag_wrap, n = e.content_wrap, i = e.strict;
973
+ let o = "";
974
+ const a = [], l = /<[A-Za-z]+\b[^>]*(?:.|\n)*?\/?>/g, u = /\s{1}[A-Za-z-]+(?:=".*?")?/g;
975
+ S.line.forEach((f, p) => {
976
+ let $ = f.value;
977
+ const g = $.startsWith("___HTMLFY_SPECIAL_IGNORE_MARKER_");
943
978
  let _ = 0;
944
- const x = T.line[d - 1], A = x?.value ?? "";
945
- c += "0", d === 0 && _++, f.trim().startsWith("</") && _++, A.trim().startsWith("<!doctype") && _++, A.trim().startsWith("<!--") && _++, A.trim().endsWith("/>") && _++, A.trim().startsWith("</") && _++, x?.type === "text" && _++;
946
- const E = Math.max(0, c.length - _);
947
- if (c = c.substring(0, E), g.type === "text" && /^[!,;\.]/.test(f))
948
- if (f.length === 1) {
949
- l[l.length - 1] = l.at(-1) + f;
979
+ const y = S.line[p - 1], b = y?.value ?? "";
980
+ o += "0", p === 0 && _++, $.trim().startsWith("</") && _++, b.trim().startsWith("<!doctype") && _++, b.trim().startsWith("<!--") && _++, (b.trim().endsWith("/>") || b.trim().endsWith(t.SELF_CLOSING_PLACEHOLDER)) && _++, b.trim().startsWith("</") && _++, y?.type === "text" && _++;
981
+ const j = Math.max(0, o.length - _);
982
+ if (o = o.substring(0, j), f.type === "text" && /^[!,;\.]/.test($))
983
+ if ($.length === 1) {
984
+ a[a.length - 1] = a.at(-1) + $;
950
985
  return;
951
986
  } else
952
- l[l.length - 1] = l.at(-1) + f.charAt(0), f = f.slice(1).trim();
953
- const $ = t.repeat(E);
954
- if (h)
955
- l.push(f);
987
+ a[a.length - 1] = a.at(-1) + $.charAt(0), $ = $.slice(1).trim();
988
+ const m = r.repeat(j);
989
+ if (g)
990
+ a.push($);
956
991
  else {
957
- if (o && f.trim().startsWith("<!--"))
992
+ if (i && $.trim().startsWith("<!--"))
958
993
  return;
959
- let b = f;
960
- if (g.type === "text" && s > 0 && b.length >= s)
961
- b = Wt(b, s, $);
962
- else if (r > 0 && b.length > r && u.test(b)) {
963
- u.lastIndex = 0, p.lastIndex = 0;
964
- const M = b.split(p).filter(Boolean);
965
- if (M.length >= 2) {
966
- const Fe = b.matchAll(p), Ce = $ + t;
967
- let H = $ + M[0] + `
994
+ let d = $;
995
+ if (d = zt(d), f.type === "text" && n > 0 && d.length >= n)
996
+ d = jt(d, n, m);
997
+ else if (s > 0 && d.length > s && l.test(d)) {
998
+ l.lastIndex = 0, u.lastIndex = 0;
999
+ const w = d.split(u).filter(Boolean);
1000
+ if (w.length >= 2) {
1001
+ const Ce = d.matchAll(u), je = m + r;
1002
+ let M = m + w[0] + `
968
1003
  `;
969
- for (const He of Fe) {
970
- const Be = He[0].trim();
971
- H += Ce + Be + `
1004
+ for (const Ge of Ce) {
1005
+ const Fe = Ge[0].trim();
1006
+ M += je + Fe + `
972
1007
  `;
973
1008
  }
974
- const ne = M[0].match(/<([A-Za-z_:-]+)/), Pe = ne ? ne[1] : "", We = Re.includes(Pe), Ue = M[1].trim(), Ze = $ + (o && We ? " " : "");
975
- H += Ze + Ue, b = H;
1009
+ const ee = w[0].match(/<([A-Za-z_:-]+)/), De = ee ? ee[1] : "", Pe = w.at(-1)?.endsWith("/>") && we.includes(De), ze = w[1].trim(), He = m + (i && Pe ? " " : "");
1010
+ M += He + ze, d = M;
976
1011
  } else
977
- b = $ + b;
1012
+ d = m + d;
978
1013
  } else
979
- b = $ + b;
980
- l.push(b);
1014
+ d = m + d;
1015
+ a.push(d);
981
1016
  }
982
1017
  });
983
- let a = l.join(`
1018
+ let c = a.join(`
984
1019
  `);
985
- return r > 0 && (a = Tt(a)), s > 0 && /\n[ ]*[^\n]*__!i-£___£%__[^\n]*\n/.test(a) && (a = zt(a)), a = a.replace(
986
- /<(?<Element>.+).*>[^<]*?[^><\/\s][^<]*?<\/{1}\k<Element>|<script[^>]*>\s+<\/script>|<(\w+)>\s+<\/(\w+)|<(?:([\w:\._-]+)|([\w:\._-]+)[^>]*[^\/])>\s+<\/([\w:\._-]+)>/g,
987
- (g) => g.replace(/\n|\t|\s{2,}/g, "")
988
- ), s > 0 && (a = Lt(a)), r > 0 && (a = Dt(a)), o && (a = a.replace(/\s\/>|\/>/g, ">")), a.startsWith(`
989
- `) && (a = a.substring(1)), a.endsWith(`
990
- `) && (a = a.substring(0, a.length - 1)), a;
991
- }, Jt = (e, t) => {
1020
+ return s > 0 && (c = At(c)), n > 0 && new RegExp(`/\\n[ ]*[^\\n]*${t.CONTENT_IGNORE_PLACEHOLDER}[^\\n]*\\n/`).test(c) && (c = Tt(c)), c = c.replace(
1021
+ /<(?<Element>[^>\s]+)[^>]*>[^<]*?[^><\/\s][^<]*?<\/\k<Element>>|<script[^>]*>[\s]*<\/script>|<([\w:\._-]+)([^>]*)><\/\2>|<([\w:\._-]+)([^>]*)>[\s]+<\/\4>/g,
1022
+ (f) => f.includes(t.SELF_CLOSING_PLACEHOLDER) || f.includes(t.CONTENT_IGNORE_PLACEHOLDER) ? f : f.replace(/\n|\t|\s{2,}/g, "")
1023
+ ), n > 0 && (c = kt(c)), s > 0 && (c = Nt(c)), i && (c = c.replace(/\s\/>|\/>/g, ">")), c.startsWith(`
1024
+ `) && (c = c.substring(1)), c.endsWith(`
1025
+ `) && (c = c.substring(0, c.length - 1)), c;
1026
+ }, Bt = (e, t) => {
992
1027
  let r = !1;
993
- const { checked_html: s, ignored: n } = D();
994
- if (!s && !re(e)) return e;
995
- const i = t ? Pt(t) : { ...te }, o = i.ignore.length > 0;
996
- if (!n && o) {
997
- const { html_with_markers: c, extracted_map: l } = De(e, i);
998
- e = c, ge = l, r = !0;
1028
+ const { checked_html: s, ignored: n } = E();
1029
+ if (!s && !Se(e)) return e;
1030
+ const i = Ct(t || {}), o = i.ignore.length > 0;
1031
+ if (i.trim.length > 0 && (e = Lt(e, i.trim)), !n && o) {
1032
+ const { html_with_markers: a, extracted_map: l } = Ne(e);
1033
+ e = a, ce = l, r = !0;
999
1034
  }
1000
- return e = It(e), e = qt(e), e = Gt(i), e = Ct(e), r && (e = Le(e, ge)), e;
1001
- }, Kt = (e, t, r) => {
1035
+ return e = St(e), e = Pt(e), e = Ft(e), Mt(e), e = Ut(), e = It(e), r && (e = ke(e, ce)), e;
1036
+ }, Wt = (e, t, r) => {
1002
1037
  [null, void 0, "", !1].includes(r) || ["innerHTML", "style", ""].includes(t) || e.setAttribute(t, ["object", "function"].includes(typeof r) ? "⚠️ Property must be set through a script or a framework-specific syntax." : r);
1003
- }, Me = (e, t, r, s, n) => {
1038
+ }, Ie = (e, t, r, s, n) => {
1004
1039
  if (t && typeof t == "string") {
1005
1040
  const i = document.createElement(t);
1006
1041
  Object.keys(r || {}).forEach((o) => {
1007
- Kt(i, o, r[o]);
1042
+ Wt(i, o, r[o]);
1008
1043
  }), s?.forEach((o) => {
1009
- Me(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
1044
+ Ie(i, o.$tag$, o.$attrs$, o.$children$, o.$text$);
1010
1045
  }), r?.innerHTML && (i.innerHTML = r.innerHTML), e.appendChild(i);
1011
1046
  }
1012
1047
  n && (e.innerHTML = n);
1013
- }, wr = (e, t, r = []) => {
1048
+ }, Er = (e, t, r = []) => {
1014
1049
  const s = {};
1015
1050
  if (typeof e != "object")
1016
1051
  throw new Error("filterArgs - args isn't an object.");
@@ -1020,29 +1055,29 @@ const Bt = (e) => {
1020
1055
  (!t || !Object.keys(t).includes(n) || t[n] !== i) && (s[o] = i);
1021
1056
  }
1022
1057
  return s;
1023
- }, xr = (e, t) => {
1058
+ }, yr = (e, t) => {
1024
1059
  const r = document.getElementById("storybook-root");
1025
1060
  if (r !== null)
1026
- return document.querySelector("[lang]")?.setAttribute("lang", t.globals?.locale || "en"), kt({
1061
+ return document.querySelector("[lang]")?.setAttribute("lang", t.globals?.locale || "en"), xt({
1027
1062
  $cmpMeta$: {
1028
1063
  $flags$: 0,
1029
1064
  $tagName$: r.tagName
1030
1065
  },
1031
1066
  $hostElement$: r
1032
1067
  }, e(t)), r.children[r.children.length - 1];
1033
- }, Er = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
1068
+ }, br = ({ $tag$: e, $attrs$: t, $children$: r, $text$: s }) => {
1034
1069
  const n = document.createElement("div");
1035
- return Me(n, e, t, r, s), Jt(n.innerHTML, {
1070
+ return Ie(n, e, t, r, s), Bt(n.innerHTML, {
1036
1071
  tag_wrap: 40,
1037
1072
  content_wrap: 120
1038
1073
  }).replace(/="true"/g, "");
1039
- }, de = (e, t) => {
1074
+ }, fe = (e, t) => {
1040
1075
  if (!t)
1041
1076
  return;
1042
1077
  const r = t.split("/");
1043
1078
  return `${e}${r.slice(2, r.length - 1).join("-")}--docs`;
1044
1079
  };
1045
- class Sr {
1080
+ class mr {
1046
1081
  /**
1047
1082
  * JsonDocs
1048
1083
  */
@@ -1072,97 +1107,97 @@ class Sr {
1072
1107
  * @returns component arg types
1073
1108
  */
1074
1109
  extractArgTypes = (t) => {
1075
- const r = this.#e(t), s = r?.props.reduce((p, a) => {
1076
- const { control: g, options: d } = this.#t(a);
1110
+ const r = this.#e(t), s = r?.props.reduce((c, f) => {
1111
+ const { control: p, options: $ } = this.#t(f);
1077
1112
  return {
1078
- ...p,
1079
- [a.name]: {
1080
- name: a.attr || a.name,
1081
- description: a.docs,
1082
- type: { required: a.required },
1113
+ ...c,
1114
+ [f.name]: {
1115
+ name: f.attr || f.name,
1116
+ description: f.docs,
1117
+ type: { required: f.required },
1083
1118
  table: {
1084
1119
  category: "props",
1085
- type: { summary: a.type },
1086
- defaultValue: { summary: a.default }
1120
+ type: { summary: f.type },
1121
+ defaultValue: { summary: f.default }
1087
1122
  },
1088
- control: g,
1089
- options: d
1123
+ control: p,
1124
+ options: $
1090
1125
  }
1091
1126
  };
1092
- }, {}), n = r?.events.reduce((p, a) => ({
1093
- ...p,
1094
- [a.event]: {
1095
- name: a.event,
1096
- description: a.docs,
1127
+ }, {}), n = r?.events.reduce((c, f) => ({
1128
+ ...c,
1129
+ [f.event]: {
1130
+ name: f.event,
1131
+ description: f.docs,
1097
1132
  table: {
1098
1133
  category: "events",
1099
- type: { summary: a.detail }
1134
+ type: { summary: f.detail }
1100
1135
  }
1101
1136
  }
1102
- }), {}), i = r?.methods.reduce((p, a) => ({
1103
- ...p,
1104
- [a.name]: {
1105
- name: a.name,
1106
- description: a.docs,
1137
+ }), {}), i = r?.methods.reduce((c, f) => ({
1138
+ ...c,
1139
+ [f.name]: {
1140
+ name: f.name,
1141
+ description: f.docs,
1107
1142
  table: {
1108
1143
  category: "methods",
1109
- type: { summary: a.signature }
1144
+ type: { summary: f.signature }
1110
1145
  }
1111
1146
  }
1112
- }), {}), o = r?.slots.reduce((p, a) => ({
1113
- ...p,
1114
- [a.name]: {
1115
- name: a.name !== "" ? a.name : "default",
1147
+ }), {}), o = r?.slots.reduce((c, f) => ({
1148
+ ...c,
1149
+ [f.name]: {
1150
+ name: f.name !== "" ? f.name : "default",
1116
1151
  // default slot are unnamed
1117
- description: a.docs,
1152
+ description: f.docs,
1118
1153
  table: {
1119
1154
  category: "slots",
1120
1155
  type: { summary: void 0 }
1121
1156
  }
1122
1157
  }
1123
- }), {}), c = r?.styles.reduce((p, a) => ({
1124
- ...p,
1125
- [a.name]: {
1126
- name: a.name,
1127
- description: a.docs,
1158
+ }), {}), a = r?.styles.reduce((c, f) => ({
1159
+ ...c,
1160
+ [f.name]: {
1161
+ name: f.name,
1162
+ description: f.docs,
1128
1163
  table: {
1129
1164
  category: "custom properties",
1130
1165
  type: { summary: void 0 }
1131
1166
  }
1132
1167
  }
1133
- }), {}), l = r?.dependencies.reduce((p, a) => {
1134
- const g = this.#e(a);
1135
- return g ? {
1136
- ...p,
1137
- [a]: {
1138
- name: a,
1139
- description: `<a href="./?path=/docs/${de("", g?.filePath)}">View Component Documentation</a>`,
1168
+ }), {}), l = r?.dependencies.reduce((c, f) => {
1169
+ const p = this.#e(f);
1170
+ return p ? {
1171
+ ...c,
1172
+ [f]: {
1173
+ name: f,
1174
+ description: `<a href="./?path=/docs/${fe("", p?.filePath)}">View Component Documentation</a>`,
1140
1175
  table: {
1141
1176
  category: "depends on",
1142
1177
  type: { summary: void 0 }
1143
1178
  }
1144
1179
  }
1145
- } : p;
1146
- }, {}), u = r?.dependents.reduce((p, a) => {
1147
- const g = this.#e(a);
1148
- return g ? {
1149
- ...p,
1150
- [a]: {
1151
- name: a,
1152
- description: `<a href="./?path=/docs/${de("", g?.filePath)}">View Component Documentation</a>`,
1180
+ } : c;
1181
+ }, {}), u = r?.dependents.reduce((c, f) => {
1182
+ const p = this.#e(f);
1183
+ return p ? {
1184
+ ...c,
1185
+ [f]: {
1186
+ name: f,
1187
+ description: `<a href="./?path=/docs/${fe("", p?.filePath)}">View Component Documentation</a>`,
1153
1188
  table: {
1154
1189
  category: "used by",
1155
1190
  type: { summary: void 0 }
1156
1191
  }
1157
1192
  }
1158
- } : p;
1193
+ } : c;
1159
1194
  }, {});
1160
1195
  return {
1161
1196
  ...s,
1162
1197
  ...n,
1163
1198
  ...i,
1164
1199
  ...o,
1165
- ...c,
1200
+ ...a,
1166
1201
  ...l,
1167
1202
  ...u
1168
1203
  };
@@ -1177,7 +1212,7 @@ class Sr {
1177
1212
  return r?.readme || r?.docs;
1178
1213
  };
1179
1214
  }
1180
- const Or = ({ disconnect: e, observe: t, takeRecords: r }) => {
1215
+ const vr = ({ disconnect: e, observe: t, takeRecords: r }) => {
1181
1216
  class s {
1182
1217
  /**
1183
1218
  *
@@ -1206,7 +1241,7 @@ const Or = ({ disconnect: e, observe: t, takeRecords: r }) => {
1206
1241
  value: s
1207
1242
  });
1208
1243
  }), s;
1209
- }, Ar = ({ disconnect: e, observe: t }) => {
1244
+ }, Or = ({ disconnect: e, observe: t }) => {
1210
1245
  class r {
1211
1246
  /**
1212
1247
  *
@@ -1236,15 +1271,15 @@ const Or = ({ disconnect: e, observe: t, takeRecords: r }) => {
1236
1271
  });
1237
1272
  }), r;
1238
1273
  };
1239
- class Xt extends Event {
1274
+ class Zt extends Event {
1240
1275
  /**
1241
1276
  *
1242
1277
  */
1243
1278
  detail;
1244
1279
  // eslint-disable-line @typescript-eslint/no-explicit-any
1245
1280
  }
1246
- const kr = () => {
1247
- class e extends Xt {
1281
+ const xr = () => {
1282
+ class e extends Zt {
1248
1283
  }
1249
1284
  return [window, global].forEach((t) => {
1250
1285
  Object.defineProperty(t, "SubmitEvent", {
@@ -1253,7 +1288,7 @@ const kr = () => {
1253
1288
  value: e
1254
1289
  });
1255
1290
  }), e;
1256
- }, jr = (e) => {
1291
+ }, Rr = (e) => {
1257
1292
  const t = (r) => (setTimeout(r, 1), e(), 0);
1258
1293
  return [window, global].forEach((r) => {
1259
1294
  Object.defineProperty(r, "requestAnimationFrame", {
@@ -1264,45 +1299,45 @@ const kr = () => {
1264
1299
  }), t;
1265
1300
  };
1266
1301
  export {
1267
- Yt as ClassList,
1268
- ir as Cursor,
1269
- Ke as Page,
1270
- or as Paginate,
1271
- Sr as StorybookPreview,
1272
- Qt as allItemsAreString,
1273
- er as cleanString,
1274
- tr as createID,
1275
- ar as dateRegExp,
1276
- lr as dateToString,
1277
- vr as defineLocales,
1278
- wr as filterArgs,
1279
- fr as focusableElements,
1280
- sr as formatID,
1281
- hr as getLocaleDatePattern,
1282
- qe as getObjectValueFromKey,
1283
- he as getParentWindows,
1284
- Er as getStoryHTML,
1285
- de as getStorybookUrl,
1286
- pr as getWindows,
1287
- Z as isObject,
1288
- cr as isTagName,
1289
- ur as isValidNumber,
1290
- Ge as isValidString,
1291
- rr as isValideID,
1292
- _r as localeCurrency,
1293
- lt as localeDate,
1294
- yr as localeNumber,
1295
- br as localePercent,
1296
- mr as localeUnit,
1297
- nr as nextTick,
1298
- jr as setUpRequestAnimationFrameMock,
1299
- Or as setupMutationObserverMock,
1300
- Ar as setupResizeObserverMock,
1301
- kr as setupSubmitEventMock,
1302
- xr as stencilWrapper,
1303
- Vt as toString,
1304
- $r as vsCodeCssGenerator,
1305
- dr as vsCodeGenerator,
1306
- gr as webTypesGenerator
1302
+ qt as ClassList,
1303
+ tr as Cursor,
1304
+ We as Page,
1305
+ rr as Paginate,
1306
+ mr as StorybookPreview,
1307
+ Jt as allItemsAreString,
1308
+ Xt as cleanString,
1309
+ Yt as createID,
1310
+ sr as dateRegExp,
1311
+ nr as dateToString,
1312
+ hr as defineLocales,
1313
+ Er as filterArgs,
1314
+ or as focusableElements,
1315
+ Vt as formatID,
1316
+ pr as getLocaleDatePattern,
1317
+ Me as getObjectValueFromKey,
1318
+ pe as getParentWindows,
1319
+ br as getStoryHTML,
1320
+ fe as getStorybookUrl,
1321
+ lr as getWindows,
1322
+ F as isObject,
1323
+ ir as isTagName,
1324
+ ar as isValidNumber,
1325
+ Ue as isValidString,
1326
+ Qt as isValideID,
1327
+ gr as localeCurrency,
1328
+ nt as localeDate,
1329
+ $r as localeNumber,
1330
+ dr as localePercent,
1331
+ _r as localeUnit,
1332
+ er as nextTick,
1333
+ Rr as setUpRequestAnimationFrameMock,
1334
+ vr as setupMutationObserverMock,
1335
+ Or as setupResizeObserverMock,
1336
+ xr as setupSubmitEventMock,
1337
+ yr as stencilWrapper,
1338
+ Kt as toString,
1339
+ ur as vsCodeCssGenerator,
1340
+ fr as vsCodeGenerator,
1341
+ cr as webTypesGenerator
1307
1342
  };
1308
1343
  //# sourceMappingURL=index.es.js.map