@arcgis/lumina-compiler 4.34.0-next.66 → 4.34.0-next.68

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.js CHANGED
@@ -337,12 +337,12 @@ function gr(e, t, i) {
337
337
  const a = [], c = /* @__PURE__ */ new Set(), l = [], d = [];
338
338
  ft = void 0;
339
339
  for (let g = 0; g < n.members.length; g++) {
340
- const y = n.members[g], v = yr(y, r, l, c, t);
340
+ const y = n.members[g], v = hr(y, r, l, c, t);
341
341
  v === void 0 ? a.push(y) : Array.isArray(v) ? d.push(...v) : (o.setEmitFlags(v, o.EmitFlags.NoComments), d.push(v));
342
342
  }
343
343
  c.size > 0 && a.forEach((g) => {
344
344
  const y = Q(g.name);
345
- y !== void 0 && c.has(y) && d.push(vr(g));
345
+ (y !== void 0 && c.has(y) || yr(g)) && d.push(Sr(g));
346
346
  }), l.length > 0 && d.push(ur(l, t, i.compiler));
347
347
  const p = o.factory.updateClassDeclaration(
348
348
  n,
@@ -373,8 +373,13 @@ function gr(e, t, i) {
373
373
  } else
374
374
  return e;
375
375
  }
376
+ function yr(e) {
377
+ return o.isPropertyDeclaration(e) && e.type !== void 0 && o.isIntersectionTypeNode(e.type) && e.type.types.some(
378
+ (t) => o.isImportTypeNode(t) && t.qualifier !== void 0 && o.isIdentifier(t.qualifier) && t.qualifier.escapedText === "T9nMeta"
379
+ );
380
+ }
376
381
  let ft;
377
- function yr(e, t, i, n, s) {
382
+ function hr(e, t, i, n, s) {
378
383
  const r = Q(e.name);
379
384
  if (r === void 0)
380
385
  return;
@@ -392,7 +397,7 @@ function yr(e, t, i, n, s) {
392
397
  Qt(e.modifiers),
393
398
  e.name,
394
399
  void 0,
395
- Sr(e.type, s),
400
+ wr(e.type, s),
396
401
  e.initializer
397
402
  );
398
403
  return o.setSyntheticLeadingComments(d, X(l)), d;
@@ -471,13 +476,13 @@ function yr(e, t, i, n, s) {
471
476
  }
472
477
  const Vt = /^typeof this\.(?<accessor>[^.]+)\.(?<boundProperty>[^.]+)$/u;
473
478
  function Xt(e, t, i) {
474
- const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(hr) ?? [];
479
+ const s = (t?.pos !== -1 ? t?.getText(i) : void 0)?.match(vr) ?? [];
475
480
  for (const r of s)
476
481
  e.add(r);
477
482
  return t;
478
483
  }
479
- const hr = /(?<=this.)[\w$]+/gu;
480
- function vr(e) {
484
+ const vr = /(?<=this.)[\w$]+/gu;
485
+ function Sr(e) {
481
486
  if (o.setEmitFlags(e, o.EmitFlags.NoComments), o.isPropertyDeclaration(e)) {
482
487
  const t = Ie(e.modifiers);
483
488
  if (t !== e.modifiers)
@@ -532,7 +537,7 @@ function Ie(e) {
532
537
  )
533
538
  ];
534
539
  }
535
- function Sr(e, t) {
540
+ function wr(e, t) {
536
541
  if (e === void 0)
537
542
  return;
538
543
  const i = o.isImportTypeNode(e) && e.qualifier && o.isIdentifier(e.qualifier) && e.qualifier.escapedText === "EventEmitter" ? e.typeArguments ?? [] : o.isTypeReferenceNode(e) && o.isIdentifier(e.typeName) && e.typeName.escapedText === "EventEmitter" ? e.typeArguments ?? [] : void 0;
@@ -545,10 +550,10 @@ function Sr(e, t) {
545
550
  t.fileName
546
551
  ), e);
547
552
  }
548
- const wr = [ar, fr], Zt = "@arcgis/lumina:componentDtsTransformer";
549
- function br(e) {
553
+ const br = [ar, fr], Zt = "@arcgis/lumina:componentDtsTransformer";
554
+ function Tr(e) {
550
555
  let t;
551
- const i = Tr(e);
556
+ const i = Er(e);
552
557
  return {
553
558
  name: Zt,
554
559
  supports(n) {
@@ -576,22 +581,22 @@ function br(e) {
576
581
  }
577
582
  };
578
583
  }
579
- const Tr = (e) => (t) => (i) => zi(e, t, i, [
580
- ...wr,
584
+ const Er = (e) => (t) => (i) => zi(e, t, i, [
585
+ ...br,
581
586
  ...e.options.types?.declarationAstTransformers ?? []
582
- ]), Er = (e) => new Proxy(e, {
583
- get: Cr,
584
- set: $r
587
+ ]), Cr = (e) => new Proxy(e, {
588
+ get: $r,
589
+ set: xr
585
590
  });
586
- function Cr(e, t, i) {
591
+ function $r(e, t, i) {
587
592
  if (t in e)
588
593
  return Reflect.get(e, t, i);
589
594
  throw new Error(`Requested unexpected property ${String(t)}`);
590
595
  }
591
- function $r(e, t) {
596
+ function xr(e, t) {
592
597
  throw new Error(`Unexpectedly tried to set the ${String(t)} property.`);
593
598
  }
594
- function xr(e) {
599
+ function Pr(e) {
595
600
  const t = e.options.types ?? {};
596
601
  let i = !1;
597
602
  const n = {
@@ -636,7 +641,7 @@ function xr(e) {
636
641
  }
637
642
  },
638
643
  ...t?.resolvers ?? [],
639
- br(e)
644
+ Tr(e)
640
645
  ]
641
646
  });
642
647
  return {
@@ -657,7 +662,7 @@ function xr(e) {
657
662
  if (typeof c != "function")
658
663
  throw new Error("Expected transform to be a function");
659
664
  if (await a.call(this, r), await c.call(
660
- Er({}),
665
+ Cr({}),
661
666
  "",
662
667
  /*
663
668
  * Have to give it a file that will be matched by the tsconfig's
@@ -669,7 +674,7 @@ function xr(e) {
669
674
  }
670
675
  };
671
676
  }
672
- const Pr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Me = Symbol("dynamic html tag name"), gt = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
677
+ const kr = "Fragment", tt = "DynamicHtmlTag", it = "DynamicSvgTag", Me = Symbol("dynamic html tag name"), gt = Symbol("dynamic svg tag name"), Vi = /* @__PURE__ */ new Set([
673
678
  /**
674
679
  * There is a "className" property. However, in JSX typings we use "class"
675
680
  * instead to keep name shorter and to match Stencil's name. Thus, it should
@@ -1640,7 +1645,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1640
1645
  "volumeChange",
1641
1646
  "waiting",
1642
1647
  "wheel"
1643
- ]), kr = /* @__PURE__ */ new Set([
1648
+ ]), Ir = /* @__PURE__ */ new Set([
1644
1649
  "area",
1645
1650
  "base",
1646
1651
  "br",
@@ -1716,7 +1721,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1716
1721
  "tspan",
1717
1722
  "use",
1718
1723
  "view"
1719
- ]), Ir = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), xt = /* @__PURE__ */ new Set([
1724
+ ]), Ar = /* @__PURE__ */ new Set(["title", "svg", "a", "script", "style"]), xt = /* @__PURE__ */ new Set([
1720
1725
  "annotation-xml",
1721
1726
  "annotation",
1722
1727
  "maction",
@@ -1748,7 +1753,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1748
1753
  "munder",
1749
1754
  "munderover",
1750
1755
  "semantics"
1751
- ]), Ar = /* @__PURE__ */ new Set([
1756
+ ]), Lr = /* @__PURE__ */ new Set([
1752
1757
  "annotation-xml",
1753
1758
  "color-profile",
1754
1759
  "font-face",
@@ -1758,7 +1763,7 @@ const Yt = /* @__PURE__ */ new Set(["itemScope"]), Zi = /* @__PURE__ */ new Set(
1758
1763
  "font-face-name",
1759
1764
  "missing-glyph"
1760
1765
  ]);
1761
- function Lr(e) {
1766
+ function Fr(e) {
1762
1767
  if (e.length === 0)
1763
1768
  return "";
1764
1769
  const t = e[0];
@@ -1771,11 +1776,11 @@ function Lr(e) {
1771
1776
  }
1772
1777
  return e.trim().length === 0 ? t : e;
1773
1778
  }
1774
- const Fr = (e) => e.replaceAll("\\", "\\\\").replace(Nr, "\\${").replaceAll("`", "\\`"), Nr = /\$\{/gu, Dr = (e) => !jr.test(e), jr = /^[^\s"'=<>`]+$/u, Rr = /[&<>]/gu, Mr = {
1779
+ const Nr = (e) => e.replaceAll("\\", "\\\\").replace(Dr, "\\${").replaceAll("`", "\\`"), Dr = /\$\{/gu, jr = (e) => !Rr.test(e), Rr = /^[^\s"'=<>`]+$/u, Mr = /[&<>]/gu, Or = {
1775
1780
  "&": "&amp;",
1776
1781
  "<": "&lt;",
1777
1782
  ">": "&gt;"
1778
- }, Yi = (e) => e.replace(Rr, (t) => Mr[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Ar.has(e), Or = async (e) => Object.fromEntries(
1783
+ }, Yi = (e) => e.replace(Mr, (t) => Or[t]), Pt = (e) => typeof e == "string" && e.includes("-") && !Lr.has(e), Jr = async (e) => Object.fromEntries(
1779
1784
  (await e.componentFilesPromise).map((t) => [en(t), t])
1780
1785
  ), en = (e, t = u.resolve("src")) => u.relative(t, u.join(e, "..", Et.slice(0, -3))), kt = async (e, t, i = t) => await ze(i, { recursive: !0 }).catch((n) => {
1781
1786
  if (String(n).includes("ENOENT"))
@@ -1795,15 +1800,15 @@ const Fr = (e) => e.replaceAll("\\", "\\\\").replace(Nr, "\\${").replaceAll("`",
1795
1800
  function Se(e, t) {
1796
1801
  if (!e.startsWith(t) || !e.endsWith(".tsx"))
1797
1802
  return !1;
1798
- const [i, n] = e.slice(0, -4).split(u.sep).slice(Jr);
1803
+ const [i, n] = e.slice(0, -4).split(u.sep).slice(Kr);
1799
1804
  return i === n;
1800
1805
  }
1801
- const Jr = -2, ei = 5, ti = 1, ii = 1, ni = 3, si = 4, qe = o;
1802
- Kr(qe.createSourceMapGenerator);
1803
- Wr(qe.createTextWriter);
1804
- Br(qe.getNewLineCharacter);
1806
+ const Kr = -2, ei = 5, ti = 1, ii = 1, ni = 3, si = 4, qe = o;
1807
+ Wr(qe.createSourceMapGenerator);
1808
+ Br(qe.createTextWriter);
1809
+ _r(qe.getNewLineCharacter);
1805
1810
  const ge = qe;
1806
- function Kr(e) {
1811
+ function Wr(e) {
1807
1812
  if (typeof e != "function")
1808
1813
  throw new Error(
1809
1814
  "Failed to find ts.createSourceMapGenerator() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1813,7 +1818,7 @@ function Kr(e) {
1813
1818
  `ts.createSourceMapGenerator() signature changed. Expected ${ei} arguments. Lumina needs to be updated to support the new TypeScript version`
1814
1819
  );
1815
1820
  }
1816
- function Wr(e) {
1821
+ function Br(e) {
1817
1822
  if (typeof e != "function")
1818
1823
  throw new Error(
1819
1824
  "Failed to find ts.createTextWriter() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1823,7 +1828,7 @@ function Wr(e) {
1823
1828
  `ts.createTextWriter() signature changed. Expected ${ti} arguments. Lumina needs to be updated to support the new TypeScript version`
1824
1829
  );
1825
1830
  }
1826
- function Br(e) {
1831
+ function _r(e) {
1827
1832
  if (typeof e != "function")
1828
1833
  throw new Error(
1829
1834
  "Failed to find ts.getNewLineCharacter() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1833,7 +1838,7 @@ function Br(e) {
1833
1838
  `ts.getNewLineCharacter() signature changed. Expected ${ii} argument. Lumina needs to be updated to support the new TypeScript version`
1834
1839
  );
1835
1840
  }
1836
- function _r(e) {
1841
+ function Hr(e) {
1837
1842
  if (typeof e != "function")
1838
1843
  throw new Error(
1839
1844
  "Failed to find ts.Printer.writeFile() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1843,7 +1848,7 @@ function _r(e) {
1843
1848
  `ts.Printer.writeFile() signature changed. Expected ${ni} arguments. Lumina needs to be updated to support the new TypeScript version`
1844
1849
  );
1845
1850
  }
1846
- function Hr(e) {
1851
+ function Ur(e) {
1847
1852
  if (typeof e != "function")
1848
1853
  throw new Error(
1849
1854
  "Failed to find ts.Printer.writeNode() function. Lumina needs to be updated to support the new TypeScript version"
@@ -1855,23 +1860,23 @@ function Hr(e) {
1855
1860
  }
1856
1861
  function tn(e) {
1857
1862
  const t = ge.createPrinter(e);
1858
- return _r(t.writeFile), Hr(t.writeNode), t;
1863
+ return Hr(t.writeFile), Ur(t.writeNode), t;
1859
1864
  }
1860
1865
  function ri(e) {
1861
1866
  const t = o.isUnionTypeNode(e) ? e.types.map(oi) : [oi(e)], i = new Set(t), n = i.delete("true"), s = i.delete("false");
1862
1867
  (n || s) && i.add("boolean");
1863
1868
  let r = Array.from(i).sort();
1864
- if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > Ur))
1865
- return r.map(Gr);
1869
+ if (r.length > 1 && (r = r.map((a) => a.includes("=>") ? `(${a})` : a)), !(r.length > zr))
1870
+ return r.map(Vr);
1866
1871
  }
1867
- const Ur = 40, zr = (e) => e?.some(
1872
+ const zr = 40, qr = (e) => e?.some(
1868
1873
  (t) => t.type === "number" || t.type === "boolean" || t.type === "string" || /**
1869
1874
  * Treat "any" as possibly literal, but not "unknown". Matches Stencil
1870
1875
  * behavior.
1871
1876
  */
1872
1877
  t.type === "any"
1873
- ) ?? !1, qr = (e) => e.length === 1 && e[0].type !== "string" && e[0].type !== "number" && e[0].type !== "boolean" && e[0].type !== "any" ? void 0 : e, nn = (e) => e.map(sn).join(" | "), sn = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
1874
- function Gr(e) {
1878
+ ) ?? !1, Gr = (e) => e.length === 1 && e[0].type !== "string" && e[0].type !== "number" && e[0].type !== "boolean" && e[0].type !== "any" ? void 0 : e, nn = (e) => e.map(sn).join(" | "), sn = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
1879
+ function Vr(e) {
1875
1880
  return e === "boolean" ? { type: "boolean" } : Number.isNaN(Number.parseFloat(e)) ? e.startsWith('"') || e.startsWith("'") ? {
1876
1881
  value: e.slice(1, -1),
1877
1882
  type: "string"
@@ -1882,25 +1887,25 @@ function Gr(e) {
1882
1887
  type: "number"
1883
1888
  };
1884
1889
  }
1885
- const Vr = (e, t, i, n) => {
1890
+ const Xr = (e, t, i, n) => {
1886
1891
  const s = e.typeScriptTypeChecker, r = o.isSetAccessor(t) ? t.parameters[0] : t, a = s.getTypeAtLocation(r), c = !i;
1887
1892
  return Oe(s, a, n, e.dir, c);
1888
1893
  };
1889
- function Xr(e, t) {
1894
+ function Qr(e, t) {
1890
1895
  if (e.length === 0)
1891
1896
  return;
1892
- const i = t.matchAll(Qr), n = [];
1897
+ const i = t.matchAll(Zr), n = [];
1893
1898
  for (const s of i) {
1894
1899
  const r = e.find((a) => a.name === s[0]);
1895
1900
  r !== void 0 && n.push({ ...r, start: s.index, end: s.index + r.name.length });
1896
1901
  }
1897
1902
  return n.length === 0 ? void 0 : n;
1898
1903
  }
1899
- const Qr = /"[^"]+"|'[^"]+'|\w+/gu;
1904
+ const Zr = /"[^"]+"|'[^"]+'|\w+/gu;
1900
1905
  function Oe(e, t, i, n, s = !1) {
1901
1906
  let { typeNode: r, references: a } = ci(e, t, i, n), c = ri(r);
1902
1907
  c === void 0 && ({ typeNode: r, references: a } = ci(e, t, i, n, !1), c = ri(r) ?? []);
1903
- const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = nn(l), p = qr(l), m = Xr(a, d);
1908
+ const l = s ? c.filter((f) => f.type !== "null" && f.type !== "undefined") : c, d = nn(l), p = Gr(l), m = Qr(a, d);
1904
1909
  return {
1905
1910
  text: d,
1906
1911
  references: m,
@@ -1908,21 +1913,21 @@ function Oe(e, t, i, n, s = !1) {
1908
1913
  };
1909
1914
  }
1910
1915
  function oi(e) {
1911
- Zr.writeNode(o.EmitHint.Unspecified, e, void 0, nt);
1916
+ Yr.writeNode(o.EmitHint.Unspecified, e, void 0, nt);
1912
1917
  const t = nt.getText();
1913
1918
  return nt.clear(), t;
1914
1919
  }
1915
- const Zr = tn({ removeComments: !0 }), nt = ge.createTextWriter(`
1916
- `), rn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, Yr = rn & o.TypeFormatFlags.NodeBuilderFlagsMask, eo = Yr | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
1917
- function to(e, t, i, n = !0) {
1920
+ const Yr = tn({ removeComments: !0 }), nt = ge.createTextWriter(`
1921
+ `), rn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, eo = rn & o.TypeFormatFlags.NodeBuilderFlagsMask, to = eo | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation;
1922
+ function io(e, t, i, n = !0) {
1918
1923
  const s = /* @__PURE__ */ new Map();
1919
1924
  se(t, s, i, n);
1920
1925
  const r = t.flags & o.TypeFlags.Union ? t.types.every(ai) : ai(t), a = e.typeToTypeNode(
1921
1926
  t,
1922
1927
  void 0,
1923
- eo & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1928
+ to & (r ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1924
1929
  );
1925
- return s.forEach(io), a === void 0 ? (T.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1930
+ return s.forEach(no), a === void 0 ? (T.warn("@arcgis/lumina", "Unexpected case: Failed to convert type to type node."), o.factory.createTypeReferenceNode(o.factory.createIdentifier("unknown"), void 0)) : a;
1926
1931
  }
1927
1932
  const ai = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1928
1933
  function ci(e, t, i, n, s = !0) {
@@ -1954,10 +1959,10 @@ function ci(e, t, i, n, s = !0) {
1954
1959
  name: f,
1955
1960
  package: void 0,
1956
1961
  module: "index.js"
1957
- } : no(m, f, i, n);
1962
+ } : so(m, f, i, n);
1958
1963
  r.push(g), a.add(f);
1959
1964
  }
1960
- return { typeNode: to(e, t, c, s), references: r };
1965
+ return { typeNode: io(e, t, c, s), references: r };
1961
1966
  }
1962
1967
  function se(e, t, i, n = !0) {
1963
1968
  if (typeof e != "object" || e === null || !("checker" in e))
@@ -1987,10 +1992,10 @@ function se(e, t, i, n = !0) {
1987
1992
  c !== "resolvedBaseConstructorType" && c !== "resolvedBaseTypes" && c !== "typeParameters" && c !== "typeParameter" && (Array.isArray(l) ? l.forEach((d) => se(d, t, i, n)) : se(l, t, i, n));
1988
1993
  });
1989
1994
  }
1990
- function io(e, t) {
1995
+ function no(e, t) {
1991
1996
  e.origin !== void 0 && (t.origin = e.origin), e.aliasSymbol !== void 0 && (t.aliasSymbol = e.aliasSymbol), e.aliasTypeArguments !== void 0 && (t.aliasTypeArguments = e.aliasTypeArguments);
1992
1997
  }
1993
- function no(e, t, i, n) {
1998
+ function so(e, t, i, n) {
1994
1999
  const s = e?.declarations?.map((c) => c.getSourceFile()) ?? [];
1995
2000
  if (s.length === 0) {
1996
2001
  if (t === "Array")
@@ -2011,7 +2016,7 @@ function no(e, t, i, n) {
2011
2016
  package: Oi,
2012
2017
  module: void 0
2013
2018
  };
2014
- const { packageName: r, moduleName: a } = so(s[0].fileName, n);
2019
+ const { packageName: r, moduleName: a } = ro(s[0].fileName, n);
2015
2020
  return r ? {
2016
2021
  name: t,
2017
2022
  package: r,
@@ -2023,7 +2028,7 @@ function no(e, t, i, n) {
2023
2028
  module: a
2024
2029
  };
2025
2030
  }
2026
- function so(e, t) {
2031
+ function ro(e, t) {
2027
2032
  const i = e.split("/node_modules/");
2028
2033
  if (i.length > 1) {
2029
2034
  const a = i.at(-1);
@@ -2036,18 +2041,18 @@ function so(e, t) {
2036
2041
  }
2037
2042
  return {
2038
2043
  packageName: void 0,
2039
- moduleName: u.relative(t.root, oo(ro(e, t)))
2044
+ moduleName: u.relative(t.root, ao(oo(e, t)))
2040
2045
  };
2041
2046
  }
2042
- function ro(e, t) {
2047
+ function oo(e, t) {
2043
2048
  return Se(e, t.srcComponents) ? u.join(t.dist, en(e, t.src)) : e.startsWith(t.src) ? u.join(t.dist, e.slice(t.src.length)) : e;
2044
2049
  }
2045
- const oo = (e) => e.endsWith(".js") || e.endsWith(".d.ts") ? e : `${e.endsWith(".ts") ? e.slice(0, -3) : e.endsWith(".tsx") ? e.slice(0, -4) : e}.d.ts`;
2050
+ const ao = (e) => e.endsWith(".js") || e.endsWith(".d.ts") ? e : `${e.endsWith(".ts") ? e.slice(0, -3) : e.endsWith(".tsx") ? e.slice(0, -4) : e}.d.ts`;
2046
2051
  function on(e) {
2047
2052
  const t = e.split("/"), n = e[0].startsWith("@") ? 2 : 1, s = t.slice(0, n).join("/"), r = t.slice(n).join("/");
2048
2053
  return { packageName: s, moduleName: r };
2049
2054
  }
2050
- const ao = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2055
+ const co = (e) => e.includes("/node_modules/") || e.includes("/dist/");
2051
2056
  function li(e, t, i) {
2052
2057
  const n = e.declarations;
2053
2058
  if (n !== void 0)
@@ -2061,7 +2066,7 @@ function li(e, t, i) {
2061
2066
  for (const c of a) {
2062
2067
  const l = di(c, t, i);
2063
2068
  if (l !== void 0)
2064
- return co(l);
2069
+ return lo(l);
2065
2070
  }
2066
2071
  }
2067
2072
  }
@@ -2085,16 +2090,16 @@ function di(e, t, i) {
2085
2090
  });
2086
2091
  });
2087
2092
  }
2088
- const co = (e) => e.split("#")[0];
2089
- function lo(e) {
2093
+ const lo = (e) => e.split("#")[0];
2094
+ function po(e) {
2090
2095
  const t = [];
2091
- for (const i of e.matchAll(po)) {
2092
- const n = i.groups.name, s = i.groups.description.replaceAll(uo, " ").trim();
2096
+ for (const i of e.matchAll(uo)) {
2097
+ const n = i.groups.name, s = i.groups.description.replaceAll(mo, " ").trim();
2093
2098
  t.push({ name: n, description: s.endsWith("*") ? s.slice(0, -1).trim() : s });
2094
2099
  }
2095
2100
  return t.length === 0 ? void 0 : t;
2096
2101
  }
2097
- const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\*? ?/gu, mo = ["keyed", "ref", "repeat", "live"], le = "staticHtml", Y = "staticSvg", de = "html", oe = "svg", an = Symbol("maybe HTML namespace or maybe SVG"), cn = "css", ln = "mathml", dn = [cn, de, ln, le, Y, oe], fo = new Set(dn), go = ["safeClassMap", "safeStyleMap", "deferLoad"], yo = "nothing", ho = [...mo, ...dn, ...go, yo], Je = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), ae = {
2102
+ const uo = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, mo = /\n\s+\*? ?/gu, fo = ["keyed", "ref", "repeat", "live"], le = "staticHtml", Y = "staticSvg", de = "html", oe = "svg", an = Symbol("maybe HTML namespace or maybe SVG"), cn = "css", ln = "mathml", dn = [cn, de, ln, le, Y, oe], go = new Set(dn), yo = ["safeClassMap", "safeStyleMap", "deferLoad"], ho = "nothing", vo = [...fo, ...dn, ...yo, ho], Je = (e) => o.isJsxElement(e) || o.isJsxSelfClosingElement(e) || o.isJsxFragment(e), ae = {
2098
2103
  [de]: ["lit", "lit/html.js", "lit-html"],
2099
2104
  /**
2100
2105
  * Sadly, Lit called these "html" and "svg", rather than "staticHtml" and
@@ -2115,7 +2120,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2115
2120
  repeat: ["lit/directives/repeat.js", "lit-html/directives/repeat.js"],
2116
2121
  ref: ["lit/directives/ref.js", "lit-html/directives/ref.js"],
2117
2122
  nothing: ["lit", "@arcgis/lumina", "lit/html.js", "lit-html", "lit-element/lit-element.js"]
2118
- }, vo = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Ke = new RegExp(`\\.(${vo.join("|")})(\\?|$)`, "u"), So = /^import ["'](?<specifier>[^"']+)["'];$/gmu, wo = () => "throwError", V = "@arcgis/lumina:loadLitCss", ee = "?layered", Ne = "?global", bo = (e) => ({
2123
+ }, So = ["css", "less", "sass", "scss", "styl", "stylus", "pcss", "postcss", "sss"], Ke = new RegExp(`\\.(${So.join("|")})(\\?|$)`, "u"), wo = /^import ["'](?<specifier>[^"']+)["'];$/gmu, bo = () => "throwError", V = "@arcgis/lumina:loadLitCss", ee = "?layered", Ne = "?global", To = (e) => ({
2119
2124
  name: V,
2120
2125
  enforce: "pre",
2121
2126
  configResolved(t) {
@@ -2136,7 +2141,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2136
2141
  if (l && (a = a.slice(0, -Ne.length)), !Ke.test(a) || a.includes("?"))
2137
2142
  return await n.handler.call(this, r, a);
2138
2143
  const d = `${a}?inline`, p = await n.handler.call(this, r, d), { code: m, ...f } = typeof p == "string" ? { code: p } : p ?? {};
2139
- if (typeof m != "string" || !m.startsWith(pn) || !m.endsWith(To))
2144
+ if (typeof m != "string" || !m.startsWith(pn) || !m.endsWith(Eo))
2140
2145
  return T.warn(
2141
2146
  V,
2142
2147
  `Expected vite:css-post to return a JS module with a string literal. Received: ${JSON.stringify(
@@ -2146,7 +2151,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2146
2151
  if (l)
2147
2152
  return e._globalCssString = un(m), { code: "", map: { mappings: "" } };
2148
2153
  {
2149
- const g = e.isFullApiExtraction ? lo(r) : void 0;
2154
+ const g = e.isFullApiExtraction ? po(r) : void 0;
2150
2155
  if (g !== void 0) {
2151
2156
  e._cssDocs ??= /* @__PURE__ */ new Map(), e._cssDocs.set(a, g);
2152
2157
  const y = e._cssImports.get(a);
@@ -2166,7 +2171,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2166
2171
  }
2167
2172
  return {
2168
2173
  ...f,
2169
- code: xo(m, e.hmrEnabled, e.shouldMinify, c),
2174
+ code: Po(m, e.hmrEnabled, e.shouldMinify, c),
2170
2175
  /**
2171
2176
  * Vite's original transform does not generate source maps for inlined
2172
2177
  * css, thus we can't either
@@ -2180,13 +2185,13 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2180
2185
  if (!(i.endsWith(".js") || i.endsWith(".ts") || i.endsWith(".tsx") || e.isInStorybook && i.endsWith(".mdx")))
2181
2186
  return;
2182
2187
  let s = 0;
2183
- const r = ao(i);
2188
+ const r = co(i);
2184
2189
  let a = !1;
2185
- const c = t.replaceAll(So, (l, d) => {
2190
+ const c = t.replaceAll(wo, (l, d) => {
2186
2191
  if (!Ke.test(d) || d.includes("?"))
2187
2192
  return l;
2188
2193
  if (r) {
2189
- if ((e.options.css?.sideEffectImportHandling ?? wo)(d, i) === "drop")
2194
+ if ((e.options.css?.sideEffectImportHandling ?? bo)(d, i) === "drop")
2190
2195
  return a = !0, or(l);
2191
2196
  throw Error(
2192
2197
  w(
@@ -2195,7 +2200,7 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2195
2200
  i
2196
2201
  )
2197
2202
  );
2198
- } else if (e.isInStorybook && Po(i, e)) {
2203
+ } else if (e.isInStorybook && ko(i, e)) {
2199
2204
  a = !0;
2200
2205
  const p = `storybookCss$${s}`;
2201
2206
  return s += 1, [
@@ -2226,8 +2231,8 @@ const po = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, uo = /\n\s+\
2226
2231
  map: null
2227
2232
  } : void 0;
2228
2233
  }
2229
- }), pn = 'export default "', To = '"', Eo = `import { css } from '${ae.css[0]}';
2230
- export const styles = css\``, Co = "`;\nexport default styles;", $o = `
2234
+ }), pn = 'export default "', Eo = '"', Co = `import { css } from '${ae.css[0]}';
2235
+ export const styles = css\``, $o = "`;\nexport default styles;", xo = `
2231
2236
 
2232
2237
  if(import.meta.hot) {
2233
2238
  import.meta.hot.data.styles ??= styles;
@@ -2239,24 +2244,24 @@ if(import.meta.hot) {
2239
2244
  import.meta.hot.data.styles.styleSheet.replaceSync(nextExports.styles.cssText);
2240
2245
  });
2241
2246
  }`, un = (e) => e.slice(pn.length - 1);
2242
- function xo(e, t, i, n) {
2243
- const s = un(e), r = JSON.parse(s), a = Fr(r), c = n ? `@layer{${i ? "" : `
2247
+ function Po(e, t, i, n) {
2248
+ const s = un(e), r = JSON.parse(s), a = Nr(r), c = n ? `@layer{${i ? "" : `
2244
2249
  `}${a}${i ? "" : `
2245
2250
  `}}` : a;
2246
- return `${Eo}${c}${Co}${t ? $o : ""}`;
2251
+ return `${Co}${c}${$o}${t ? xo : ""}`;
2247
2252
  }
2248
- const Po = (e, t) => e.endsWith(".mdx") || e.includes(".stories.") || e.includes(".story.") || e.startsWith(`${t.dir.root}stories/`);
2249
- function ko(e) {
2250
- return `import("${Io}").then(({ setCustomElementsManifest }) => {
2251
- setCustomElementsManifest(${Ao(e)});
2253
+ const ko = (e, t) => e.endsWith(".mdx") || e.includes(".stories.") || e.includes(".story.") || e.startsWith(`${t.dir.root}stories/`);
2254
+ function Io(e) {
2255
+ return `import("${Ao}").then(({ setCustomElementsManifest }) => {
2256
+ setCustomElementsManifest(${Lo(e)});
2252
2257
  });`;
2253
2258
  }
2254
- const Io = "@storybook/web-components", Ao = (e) => `JSON.parse(\`${Lo(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
2255
- function Lo(e) {
2259
+ const Ao = "@storybook/web-components", Lo = (e) => `JSON.parse(\`${Fo(JSON.stringify(JSON.stringify(e)).slice(1, -1))}\`)`;
2260
+ function Fo(e) {
2256
2261
  return e.replaceAll('\\"', '"').replaceAll("`", "\\`").replaceAll("${", "\\${");
2257
2262
  }
2258
- function Fo(e) {
2259
- No(e);
2263
+ function No(e) {
2264
+ Do(e);
2260
2265
  const t = e.options.css?.globalStylesPath;
2261
2266
  if (t === void 0)
2262
2267
  return "";
@@ -2269,7 +2274,7 @@ function Fo(e) {
2269
2274
  `) : `import "${i}${Ne}";`;
2270
2275
  }
2271
2276
  const mn = "hydrated";
2272
- function No(e) {
2277
+ function Do(e) {
2273
2278
  e._globalHydratedCssString = [
2274
2279
  ":not([",
2275
2280
  e.options.css?.hydratedAttribute ?? mn,
@@ -2286,40 +2291,40 @@ function fn(e, t) {
2286
2291
  ].join(`
2287
2292
  `);
2288
2293
  }
2289
- const Do = (e) => `${e._globalHydratedCssString}${e.shouldMinify ? "" : `
2294
+ const jo = (e) => `${e._globalHydratedCssString}${e.shouldMinify ? "" : `
2290
2295
 
2291
2296
  `}${e._globalCssString ? JSON.parse(e._globalCssString) : ""}`;
2292
- function jo(e) {
2297
+ function Ro(e) {
2293
2298
  const t = [], i = [];
2294
2299
  for (const n of e.privateApiJson.modules) {
2295
2300
  t.push(n.path);
2296
2301
  for (const s of n.declarations)
2297
- "customElement" in s && i.push(Mo(s, e, n.path));
2302
+ "customElement" in s && i.push(Oo(s, e, n.path));
2298
2303
  }
2299
2304
  return [
2300
2305
  'import { runtime } from "./runtime";',
2301
2306
  'import { makeDefineCustomElements } from "@arcgis/lumina";',
2302
- Fo(e),
2303
- e.hmrEnabled ? Jo : "",
2307
+ No(e),
2308
+ e.hmrEnabled ? Ko : "",
2304
2309
  "",
2305
- e.isInStorybook ? ko(e.apiJson) : "",
2310
+ e.isInStorybook ? Io(e.apiJson) : "",
2306
2311
  "",
2307
2312
  "export const defineCustomElements = makeDefineCustomElements(runtime, {",
2308
2313
  i.join(`,
2309
2314
  `),
2310
2315
  "});",
2311
- e.hmrEnabled ? Ko(t) : ""
2316
+ e.hmrEnabled ? Wo(t) : ""
2312
2317
  ].join(`
2313
2318
  `);
2314
2319
  }
2315
- const Ro = `import "./index";
2316
- export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;`, Mo = (e, t, i) => [
2320
+ const Mo = `import "./index";
2321
+ export declare const defineCustomElements: import("@arcgis/lumina").DefineCustomElements;`, Oo = (e, t, i) => [
2317
2322
  ` "${e.tagName}": [`,
2318
2323
  `()=>import("${u.join(t.dir.root, i)}"),`,
2319
- Oo(e),
2324
+ Jo(e),
2320
2325
  "]"
2321
2326
  ].join("");
2322
- function Oo(e) {
2327
+ function Jo(e) {
2323
2328
  const { properties: t, asyncMethods: i, syncMethods: n } = gn(e), s = t.map((p) => p.join(Es)).join(et), r = i.join(et), a = n.join(et), c = [s, r, a], l = c.findLastIndex((p) => p.length > 0), d = c.slice(0, l + 1);
2324
2329
  return d.length > 0 ? `"${d.join(Cs)}"` : "";
2325
2330
  }
@@ -2336,23 +2341,23 @@ function gn(e) {
2336
2341
  ), n = i.filter((r) => r.async === !0).map((r) => r.name), s = i.filter((r) => r.async !== !0).map((r) => r.name);
2337
2342
  return { tagName: e.tagName, properties: t, asyncMethods: n, syncMethods: s };
2338
2343
  }
2339
- const Jo = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
2340
- `, Ko = (e) => `
2344
+ const Ko = `import { handleHmrUpdate, handleComponentMetaUpdate } from "@arcgis/lumina/hmrSupport";
2345
+ `, Wo = (e) => `
2341
2346
  if(import.meta.hot) {
2342
2347
  import.meta.hot.on("component-meta-update", handleComponentMetaUpdate);
2343
2348
  import.meta.hot.accept([
2344
2349
  ${e.map((t) => ` "/${t}",`).join(`
2345
2350
  `)}
2346
2351
  ], handleHmrUpdate);
2347
- }`, Wo = "@arcgis/lumina:addMethodMetadata";
2348
- function Bo(e, t, i, n, s) {
2352
+ }`, Bo = "@arcgis/lumina:addMethodMetadata";
2353
+ function _o(e, t, i, n, s) {
2349
2354
  const r = i.getSignatureFromDeclaration(e);
2350
2355
  if (r === void 0)
2351
2356
  return;
2352
2357
  for (const d of e.parameters) {
2353
2358
  if (!o.isIdentifier(d.name)) {
2354
2359
  T.warn(
2355
- Wo,
2360
+ Bo,
2356
2361
  `Object binding patterns are not yet supported in the docs. Found ${d.name?.getText(n)} in ${e.name.getText(n)}`,
2357
2362
  n.fileName
2358
2363
  );
@@ -2373,8 +2378,8 @@ function Bo(e, t, i, n, s) {
2373
2378
  type: c
2374
2379
  }, t.signature = l.replace(" =>", ":");
2375
2380
  }
2376
- const _o = (e) => e.modifiers?.some?.((t) => t.kind === o.SyntaxKind.AsyncKeyword) ?? !1;
2377
- function Ho(e, t, i, n) {
2381
+ const Ho = (e) => e.modifiers?.some?.((t) => t.kind === o.SyntaxKind.AsyncKeyword) ?? !1;
2382
+ function Uo(e, t, i, n) {
2378
2383
  const s = i.typeScriptTypeChecker, a = s.getTypeAtLocation(e).getProperty("emit");
2379
2384
  if (a?.valueDeclaration === void 0)
2380
2385
  return;
@@ -2399,11 +2404,11 @@ function Ho(e, t, i, n) {
2399
2404
  composed: void 0,
2400
2405
  privacy: void 0
2401
2406
  };
2402
- return fe(e.name, s, g), Uo(e, g, n), g.privacy === void 0 ? g : void 0;
2407
+ return fe(e.name, s, g), zo(e, g, n), g.privacy === void 0 ? g : void 0;
2403
2408
  }
2404
2409
  }
2405
2410
  const Ae = "createEvent";
2406
- function Uo(e, t, i) {
2411
+ function zo(e, t, i) {
2407
2412
  if (!e.initializer || !o.isCallExpression(e.initializer))
2408
2413
  return;
2409
2414
  const n = e.initializer;
@@ -2454,7 +2459,7 @@ class We extends us {
2454
2459
  const i = super.extractModules(t);
2455
2460
  for (const n of i)
2456
2461
  for (const s of n.declarations)
2457
- "customElement" in s && (this.context.isFullApiExtraction && Go(s, this.context, this.indexedComponents), this.inheritMembers(s, i), this.context.isFullApiExtraction && (s.members.sort(st), s.attributes?.sort(st), s.events?.sort(st)));
2462
+ "customElement" in s && (this.context.isFullApiExtraction && Vo(s, this.context, this.indexedComponents), this.inheritMembers(s, i), this.context.isFullApiExtraction && (s.members.sort(st), s.attributes?.sort(st), s.events?.sort(st)));
2458
2463
  return i;
2459
2464
  }
2460
2465
  extractDeclarations(t) {
@@ -2637,13 +2642,13 @@ console.log("${s.tagName} is ready to go!");
2637
2642
  inheritedFrom: void 0,
2638
2643
  privacy: void 0
2639
2644
  };
2640
- return this.context.isFullApiExtraction && (this.extractComponentFieldDetails(t, l), (r === void 0 && (l.type.values === void 0 || !zr(l.type.values)) || l.readonly && !l.reflects) && (l.attribute = void 0)), l;
2645
+ return this.context.isFullApiExtraction && (this.extractComponentFieldDetails(t, l), (r === void 0 && (l.type.values === void 0 || !qr(l.type.values)) || l.readonly && !l.reflects) && (l.attribute = void 0)), l;
2641
2646
  }
2642
2647
  /**
2643
2648
  * Based on a `non-@property()` property, extract a public event if it is one.
2644
2649
  */
2645
2650
  extractComponentEvent(t, i) {
2646
- const n = Ho(t, i, this.context, this.file);
2651
+ const n = Uo(t, i, this.context, this.file);
2647
2652
  return n !== void 0 && this.copyDoc(this.copyDocDefinitions?.events?.[i], n, this.apiComponent), n;
2648
2653
  }
2649
2654
  /**
@@ -2660,7 +2665,7 @@ console.log("${s.tagName} is ready to go!");
2660
2665
  // in the documentation. The full type is still present in the .d.ts files.
2661
2666
  i.name === "messageOverrides" ? {
2662
2667
  text: "Record<string, unknown>"
2663
- } : Vr(this.context, d, f, this.file);
2668
+ } : Xr(this.context, d, f, this.file);
2664
2669
  const g = o.isPropertyDeclaration(t) && t.type !== void 0 && t.initializer !== void 0 && o.isPropertyAccessExpression(t.initializer) && o.isPropertyAccessExpression(t.initializer.expression) && t.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(t.initializer.expression.name) && o.isIdentifier(t.initializer.name);
2665
2670
  if ("initializer" in t && t.initializer !== void 0 && (!i.default || !i.description) || g) {
2666
2671
  const v = t.initializer, h = s.getSymbolAtLocation(v), S = h !== void 0 && ((h.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? s.getAliasedSymbol(h) : h, E = S?.getDeclarations() ?? [];
@@ -2717,12 +2722,12 @@ console.log("${s.tagName} is ready to go!");
2717
2722
  inheritedFrom: void 0,
2718
2723
  docsTags: void 0,
2719
2724
  signature: "",
2720
- async: _o(t) ? !0 : void 0,
2725
+ async: Ho(t) ? !0 : void 0,
2721
2726
  privacy: void 0
2722
2727
  };
2723
2728
  if (this.context.isFullApiExtraction) {
2724
2729
  const s = this.context.typeScriptTypeChecker;
2725
- Bo(t, n, s, this.file, this.context.dir), this.copyDoc(this.copyDocDefinitions?.methods?.[i], n, this.apiComponent);
2730
+ _o(t, n, s, this.file, this.context.dir), this.copyDoc(this.copyDocDefinitions?.methods?.[i], n, this.apiComponent);
2726
2731
  }
2727
2732
  return n;
2728
2733
  }
@@ -2817,16 +2822,16 @@ const pe = {
2817
2822
  name: "LitElement",
2818
2823
  package: "@arcgis/lumina"
2819
2824
  }, st = (e, t) => e.name.localeCompare(t.name);
2820
- async function zo(e, t) {
2825
+ async function qo(e, t) {
2821
2826
  t || (e.componentFilesPromise = kt(e, e.dir.srcComponents));
2822
- const i = await e.componentFilesPromise, n = await ia(e, i);
2827
+ const i = await e.componentFilesPromise, n = await na(e, i);
2823
2828
  await e.componentStoriesPromise, e._componentPathMapping = {}, e._localDefinedComponents = void 0;
2824
2829
  const s = yn(n, e, !1);
2825
2830
  e.privateApiJson = s;
2826
2831
  const [r, a] = hn(s);
2827
2832
  return e.apiJsonComponents = a, e.apiJson = r, s;
2828
2833
  }
2829
- function qo(e, t, i) {
2834
+ function Go(e, t, i) {
2830
2835
  const n = e.getSourceFile(t, i), s = yn([n], e, !0), r = s.modules[0];
2831
2836
  {
2832
2837
  const f = hn(s)[0].modules[0], g = e.apiJson.modules.findIndex((h) => h.path === f.path), y = e.apiJson.modules[g], v = Array.from(e.apiJson.modules);
@@ -2871,8 +2876,8 @@ function hn(e) {
2871
2876
  }
2872
2877
  return [t, i];
2873
2878
  }
2874
- function Go(e, t, i) {
2875
- const n = Vo(i, e);
2879
+ function Vo(e, t, i) {
2880
+ const n = Xo(i, e);
2876
2881
  M(e, n, t);
2877
2882
  for (const s of e.members) {
2878
2883
  if (s.kind === "field")
@@ -2909,12 +2914,12 @@ function Go(e, t, i) {
2909
2914
  }
2910
2915
  function Le(e, t, i) {
2911
2916
  e !== void 0 && (e.references?.reduce(
2912
- (n, s) => Xo(s, t, i, n),
2917
+ (n, s) => Qo(s, t, i, n),
2913
2918
  0
2914
2919
  ), e.text = e.text.replaceAll(
2915
- ta,
2920
+ ia,
2916
2921
  (n, s) => At(t.get(s)) ?? n
2917
- ), e.values?.forEach(Qo, t));
2922
+ ), e.values?.forEach(Zo, t));
2918
2923
  }
2919
2924
  function M(e, t, i) {
2920
2925
  if (e.description && (e.description = e.description.replaceAll(rt, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl)), e.docsTags)
@@ -2922,7 +2927,7 @@ function M(e, t, i) {
2922
2927
  n.text && (n.text = n.text.replaceAll(rt, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2923
2928
  typeof e.deprecated == "string" && (e.deprecated = e.deprecated.replaceAll(rt, t).replaceAll(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl));
2924
2929
  }
2925
- const rt = /\{@link ([^}]+)\}/gu, Vo = (e, t) => (i, n) => {
2930
+ const rt = /\{@link ([^}]+)\}/gu, Xo = (e, t) => (i, n) => {
2926
2931
  let s = n.indexOf(" ");
2927
2932
  s === -1 && (s = n.length);
2928
2933
  const r = n.slice(0, s), a = n.slice(s + 1);
@@ -2946,7 +2951,7 @@ const rt = /\{@link ([^}]+)\}/gu, Vo = (e, t) => (i, n) => {
2946
2951
  );
2947
2952
  return `[${a || (d === t ? l : `${d.tagName}.${l}`)}](${p}#${l})`;
2948
2953
  };
2949
- function Xo(e, t, i, n) {
2954
+ function Qo(e, t, i, n) {
2950
2955
  if (e.viewUrl !== void 0 && (e.viewUrl = e.viewUrl.replace(
2951
2956
  i.alternativeDocumentationUrl,
2952
2957
  i.normalizedDocumentationUrl
@@ -2960,16 +2965,16 @@ function Xo(e, t, i, n) {
2960
2965
  const r = e.name.length;
2961
2966
  e.name = At(s);
2962
2967
  const a = e.name.length - r - pi;
2963
- e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - pi, e.end = e.end + a, n += a - ea;
2968
+ e.viewUrl = s.demos?.at(0)?.url.replace(i.alternativeDocumentationUrl, i.normalizedDocumentationUrl), e.start = e.start - pi, e.end = e.end + a, n += a - ta;
2964
2969
  }
2965
2970
  }
2966
2971
  return n;
2967
2972
  }
2968
- function Qo(e) {
2973
+ function Zo(e) {
2969
2974
  e.type.startsWith("ToElement<") && (e.type = At(this.get(e.type.slice(10, -1))) ?? e.type);
2970
2975
  }
2971
- const At = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Zo = "ToElement<", pi = Zo.length, Yo = ">", ea = Yo.length, ta = /ToElement<(\w+)>/gu;
2972
- async function ia(e, t) {
2976
+ const At = (e) => e ? `HTML${e.pascalCaseName}Element` : void 0, Yo = "ToElement<", pi = Yo.length, ea = ">", ta = ea.length, ia = /ToElement<(\w+)>/gu;
2977
+ async function na(e, t) {
2973
2978
  if (e.viteCommand === "serve" && (Object.hasOwn(e, "typeScriptHost") || (e.typeScriptHost = o.createCompilerHost(e.typeScriptConfig, !1))), e.typeScriptProgram !== void 0) {
2974
2979
  const i = e.typeScriptProgram.getSourceFiles(), n = new Set(t);
2975
2980
  return i.filter((s) => n.has(s.fileName));
@@ -2982,9 +2987,9 @@ async function ia(e, t) {
2982
2987
  );
2983
2988
  }
2984
2989
  async function vn(e) {
2985
- return we ??= sa(e), await we;
2990
+ return we ??= ra(e), await we;
2986
2991
  }
2987
- function na() {
2992
+ function sa() {
2988
2993
  if (ht === void 0)
2989
2994
  throw Error(
2990
2995
  w(
@@ -3004,13 +3009,13 @@ function Sn() {
3004
3009
  );
3005
3010
  return vt;
3006
3011
  }
3007
- async function sa(e) {
3012
+ async function ra(e) {
3008
3013
  const t = J(e), i = t.dependencies ?? {}, n = t.peerDependencies ?? {}, r = (await Promise.all(
3009
- [...Object.keys(i), ...Object.keys(n)].filter((a) => !ra.has(a)).flatMap(async (a) => await wn(a, e))
3014
+ [...Object.keys(i), ...Object.keys(n)].filter((a) => !oa.has(a)).flatMap(async (a) => await wn(a, e))
3010
3015
  )).filter(j);
3011
3016
  return ht ??= r, vt = Object.fromEntries(r.flatMap((a) => Object.entries(a.components))), r;
3012
3017
  }
3013
- const ra = /* @__PURE__ */ new Set([
3018
+ const oa = /* @__PURE__ */ new Set([
3014
3019
  "@arcgis/arcade-languageservice",
3015
3020
  "@arcgis/components-build-utils",
3016
3021
  "@arcgis/components-utils",
@@ -3048,11 +3053,11 @@ const ra = /* @__PURE__ */ new Set([
3048
3053
  ]);
3049
3054
  let ht, vt, we;
3050
3055
  async function wn(e, t) {
3051
- const i = await He(e, t), n = await Ue(i), s = "exports" in n, r = pa.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3056
+ const i = await He(e, t), n = await Ue(i), s = "exports" in n, r = ua.bind(void 0, s), a = "@stencil/core" in (n.dependencies ?? {}) || "@stencil/core" in (n.devDependencies ?? {}), c = u.join(i, "dist/esm/loader.js");
3052
3057
  if (a ? await z(c) : !1) {
3053
- const g = await O(c, "utf8"), y = oa(g, "bootstrapLazy("), v = g.indexOf(", options", y), h = g.slice(y, v), S = h.startsWith('JSON.parse("') ? h.slice(12, -2).replaceAll('\\"', '"') : h;
3058
+ const g = await O(c, "utf8"), y = aa(g, "bootstrapLazy("), v = g.indexOf(", options", y), h = g.slice(y, v), S = h.startsWith('JSON.parse("') ? h.slice(12, -2).replaceAll('\\"', '"') : h;
3054
3059
  try {
3055
- const E = JSON.parse(S), P = la(E, { packageName: e, getImportPath: r });
3060
+ const E = JSON.parse(S), P = da(E, { packageName: e, getImportPath: r });
3056
3061
  return { packageName: e, type: "stencil", components: P };
3057
3062
  } catch (E) {
3058
3063
  T.warn("@arcgis/lumina", `Failed to parse dist/esm/loader.js for ${e}.
@@ -3061,7 +3066,7 @@ Error: ${String(E)}`);
3061
3066
  }
3062
3067
  const d = ui(n.customElements);
3063
3068
  if (d != null) {
3064
- const g = u.join(i, d), y = JSON.parse(await O(g, "utf-8")), v = aa(y), h = bn(y, {
3069
+ const g = u.join(i, d), y = JSON.parse(await O(g, "utf-8")), v = ca(y), h = bn(y, {
3065
3070
  packageName: e,
3066
3071
  getImportPath: r
3067
3072
  });
@@ -3069,7 +3074,7 @@ Error: ${String(E)}`);
3069
3074
  }
3070
3075
  const p = ui(n["web-types"]);
3071
3076
  if (p != null) {
3072
- const g = u.join(i, p), y = JSON.parse(await O(g, "utf-8")), v = ca(y, {
3077
+ const g = u.join(i, p), y = JSON.parse(await O(g, "utf-8")), v = la(y, {
3073
3078
  packageName: e,
3074
3079
  getImportPath: r,
3075
3080
  packageRoot: i
@@ -3078,7 +3083,7 @@ Error: ${String(E)}`);
3078
3083
  }
3079
3084
  const m = u.join(i, "dist/components");
3080
3085
  if (await z(m)) {
3081
- const g = await da(m, {
3086
+ const g = await pa(m, {
3082
3087
  packageName: e,
3083
3088
  getImportPath: r
3084
3089
  });
@@ -3086,7 +3091,7 @@ Error: ${String(E)}`);
3086
3091
  }
3087
3092
  }
3088
3093
  const ui = (e) => Array.isArray(e) ? e[0] : e;
3089
- function oa(e, t) {
3094
+ function aa(e, t) {
3090
3095
  const i = e.indexOf(t);
3091
3096
  return i === -1 ? -1 : i + t.length;
3092
3097
  }
@@ -3108,7 +3113,7 @@ function bn(e, t) {
3108
3113
  }
3109
3114
  return i;
3110
3115
  }
3111
- const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3116
+ const ca = (e) => e.compiler?.name === It, la = (e, t) => Object.fromEntries(
3112
3117
  (e.contributions?.html?.elements ?? e.contributions?.html?.tags)?.map(
3113
3118
  (i) => [
3114
3119
  i.name,
@@ -3119,7 +3124,7 @@ const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3119
3124
  }
3120
3125
  ]
3121
3126
  ) ?? []
3122
- ), la = (e, t) => Object.fromEntries(
3127
+ ), da = (e, t) => Object.fromEntries(
3123
3128
  e.flatMap(
3124
3129
  ([i, n]) => n.map(
3125
3130
  ([s, r, a]) => [
@@ -3137,7 +3142,7 @@ const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3137
3142
  ]
3138
3143
  )
3139
3144
  )
3140
- ), da = async (e, t) => Object.fromEntries(
3145
+ ), pa = async (e, t) => Object.fromEntries(
3141
3146
  (await ze(e)).filter((i) => i.endsWith(".d.ts")).map((i) => {
3142
3147
  const n = i.slice(0, -5);
3143
3148
  return [
@@ -3149,16 +3154,16 @@ const aa = (e) => e.compiler?.name === It, ca = (e, t) => Object.fromEntries(
3149
3154
  }
3150
3155
  ];
3151
3156
  })
3152
- ), pa = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, ua = (e) => e.startsWith("/") ? e : `/${e}`, Lt = (e, t) => `${e}@fs${ua(t)}`;
3157
+ ), ua = (e, t) => e ? `components/${t}` : `dist/components/${t}.js`, ma = (e) => e.startsWith("/") ? e : `/${e}`, Lt = (e, t) => `${e}@fs${ma(t)}`;
3153
3158
  function Ge(e = J(), t = !1, i = e.name === "@esri/calcite-components") {
3154
3159
  const n = e.version.includes("next"), s = e.name === "@esri/calcite-components";
3155
3160
  if (s && n)
3156
3161
  return `https://cdn.jsdelivr.net/npm/@esri/calcite-components@${e.version}/dist/calcite/`;
3157
- const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = ma(e.name), c = fa(e.version, i);
3162
+ const r = t || n ? "jsdev.arcgis.com" : "js.arcgis.com", a = fa(e.name), c = ga(e.version, i);
3158
3163
  return a.length === 0 ? `https://${r}/${c}/` : s ? `https://${r}/${a}/${c}/` : `https://${r}/${c}/${a}/`;
3159
3164
  }
3160
- const ma = (e) => e.split("/").pop() ?? e;
3161
- function fa(e, t) {
3165
+ const fa = (e) => e.split("/").pop() ?? e;
3166
+ function ga(e, t) {
3162
3167
  if (/\d+\.\d+\.\d+-(?:.*)$/u.test(e))
3163
3168
  return "next";
3164
3169
  const n = /^(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)/u, s = e.match(n);
@@ -3187,14 +3192,14 @@ function ne(e) {
3187
3192
  return (
3188
3193
  // Inlined string literal
3189
3194
  typeof e == "string" || // Syntax kinds that are never undefined
3190
- ga.has(e.kind) || // Ternary with both branches never undefined
3195
+ ya.has(e.kind) || // Ternary with both branches never undefined
3191
3196
  o.isConditionalExpression(e) && ne(e.whenTrue) && ne(e.whenFalse) || // Binary expression with operator that never results in undefined Or both sides are definitely not undefined
3192
- o.isBinaryExpression(e) && (ya.has(e.operatorToken.kind) || ne(e.left) && ne(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3197
+ o.isBinaryExpression(e) && (ha.has(e.operatorToken.kind) || ne(e.left) && ne(e.right)) || // `as`, `satisfies`, `()` with definitely not undefined expression
3193
3198
  (o.isParenthesizedExpression(e) || o.isSatisfiesExpression(e) || o.isAsExpression(e)) && ne(e.expression) || // JSX that got converted to html`<p>Something</p>`
3194
- o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && fo.has(e.tag.text)
3199
+ o.isTaggedTemplateExpression(e) && o.isIdentifier(e.tag) && go.has(e.tag.text)
3195
3200
  );
3196
3201
  }
3197
- const ga = /* @__PURE__ */ new Set([
3202
+ const ya = /* @__PURE__ */ new Set([
3198
3203
  o.SyntaxKind.NumericLiteral,
3199
3204
  o.SyntaxKind.BigIntLiteral,
3200
3205
  o.SyntaxKind.StringLiteral,
@@ -3213,7 +3218,7 @@ const ga = /* @__PURE__ */ new Set([
3213
3218
  o.SyntaxKind.ClassExpression,
3214
3219
  // Trust? Trust.
3215
3220
  o.SyntaxKind.NonNullExpression
3216
- ]), ya = /* @__PURE__ */ new Set([
3221
+ ]), ha = /* @__PURE__ */ new Set([
3217
3222
  o.SyntaxKind.PlusEqualsToken,
3218
3223
  o.SyntaxKind.MinusEqualsToken,
3219
3224
  o.SyntaxKind.AsteriskAsteriskEqualsToken,
@@ -3248,9 +3253,9 @@ const ga = /* @__PURE__ */ new Set([
3248
3253
  o.SyntaxKind.SlashToken,
3249
3254
  o.SyntaxKind.PercentToken,
3250
3255
  o.SyntaxKind.AsteriskAsteriskToken
3251
- ]), ha = {
3256
+ ]), va = {
3252
3257
  property(e, t, i, n) {
3253
- const s = va(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3258
+ const s = Sa(n, i, e), r = s?.type === "stringifiedReflected", a = s?.type === "reflected" || r;
3254
3259
  if (a) {
3255
3260
  const f = at(t);
3256
3261
  if (f === !0)
@@ -3267,7 +3272,7 @@ const ga = /* @__PURE__ */ new Set([
3267
3272
  p,
3268
3273
  e,
3269
3274
  m ? "" : void 0
3270
- ), y = i === "value" && (n === "input" || n === "textarea" || n === Me) ? wa(f, e) : f;
3275
+ ), y = i === "value" && (n === "input" || n === "textarea" || n === Me) ? ba(f, e) : f;
3271
3276
  if (y !== p)
3272
3277
  return [m ? `.${i}` : s.name, d, y];
3273
3278
  }
@@ -3337,7 +3342,7 @@ const ga = /* @__PURE__ */ new Set([
3337
3342
  return [o.factory.createIdentifier(s)];
3338
3343
  }
3339
3344
  };
3340
- function va(e, t, i) {
3345
+ function Sa(e, t, i) {
3341
3346
  if (typeof e == "string") {
3342
3347
  const r = (i.externalComponents[e] ?? i.localComponents[e])?.propToAttribute?.[t];
3343
3348
  if (r !== void 0)
@@ -3412,7 +3417,7 @@ function fi(e, t) {
3412
3417
  if (i.length === 0)
3413
3418
  return [];
3414
3419
  const n = Yi(i);
3415
- if (Dr(n)) {
3420
+ if (jr(n)) {
3416
3421
  const s = n.replaceAll('"', "&#34;");
3417
3422
  if (s.length > n.length) {
3418
3423
  const r = n.replaceAll("'", "&#39;");
@@ -3431,7 +3436,7 @@ function gi(e, t, i) {
3431
3436
  `${i} prop value must be an expression. Found ${String(t?.getText(e.sourceFile))}`
3432
3437
  );
3433
3438
  const n = t.expression;
3434
- if (Sa(n)) {
3439
+ if (wa(n)) {
3435
3440
  const r = i === "class" ? "safeClassMap" : "safeStyleMap";
3436
3441
  e.neededImports.add(r);
3437
3442
  const a = e.importRenames[r], c = o.factory.createCallExpression(o.factory.createIdentifier(a), void 0, [
@@ -3441,15 +3446,15 @@ function gi(e, t, i) {
3441
3446
  } else
3442
3447
  return [i, ...De(e, t, !0)];
3443
3448
  }
3444
- const Sa = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3445
- function wa(e, t) {
3449
+ const wa = (e) => o.isObjectLiteralExpression(e) || o.isPropertyAccessExpression(e) || o.isIdentifier(e) || o.isCallExpression(e) || o.isBinaryExpression(e) || o.isConditionalExpression(e);
3450
+ function ba(e, t) {
3446
3451
  t.neededImports.add("live");
3447
3452
  const i = t.importRenames.live;
3448
3453
  return o.factory.createCallExpression(o.factory.createIdentifier(i), void 0, [
3449
3454
  typeof e == "string" ? o.factory.createStringLiteral(e) : e
3450
3455
  ]);
3451
3456
  }
3452
- function ba(e) {
3457
+ function Ta(e) {
3453
3458
  if (e && o.isJsxExpression(e) && e.expression && o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text in yi && e.expression.arguments.length <= 1)
3454
3459
  return {
3455
3460
  propType: yi[e.expression.expression.text],
@@ -3467,15 +3472,15 @@ const yi = {
3467
3472
  bindBooleanAttribute: "booleanAttribute",
3468
3473
  bindEvent: "event"
3469
3474
  };
3470
- function Ta(e, t, i) {
3471
- return Ca.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (Vi.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !Pt(i) && (Xi.has(e) || (i === gt ? !1 : i === Me ? (
3475
+ function Ea(e, t, i) {
3476
+ return $a.has(e) ? e : e.startsWith("on") && t !== void 0 && o.isJsxExpression(t) && t.expression !== void 0 ? "event" : (Vi.has(e) || e.includes("-")) && (e !== "itemId" || i !== "arcgis-map" && i !== "arcgis-scene") ? "attribute" : !Pt(i) && (Xi.has(e) || (i === gt ? !1 : i === Me ? (
3472
3477
  // When tag name is dynamic, we can't help but check if the prop name matches an "always attribute" in any html element
3473
3478
  Object.values(yt).some((r) => r.has(e))
3474
3479
  ) : yt[i]?.has(e) === !0)) ? Yt.has(e) ? "booleanAttribute" : "attribute" : i === "svg" || i === "math" || i === gt || i !== Me && ($t.has(i) || xt.has(i)) ? e in _.common.reflected || e in _.common.stringifiedReflected || e in _.common.stringifiedNonReflected ? "property" : Yt.has(e) ? "booleanAttribute" : "attribute" : "property";
3475
3480
  }
3476
- const Ea = ["class", "style", "ref", "directives", "key", "deferLoad"], Ca = new Set(Ea), $a = (e) => typeof e != "string" || e.trim().length > 0;
3481
+ const Ca = ["class", "style", "ref", "directives", "key", "deferLoad"], $a = new Set(Ca), xa = (e) => typeof e != "string" || e.trim().length > 0;
3477
3482
  function Ve({ key: e, parts: t, litTag: i }, n) {
3478
- const s = xa(t);
3483
+ const s = Pa(t);
3479
3484
  if (s.length % 2 === 0)
3480
3485
  throw new Error("Normalized template parts array length must be odd");
3481
3486
  const [r, ...a] = s;
@@ -3496,11 +3501,11 @@ function Ve({ key: e, parts: t, litTag: i }, n) {
3496
3501
  const l = n.importRenames[c], d = o.factory.createTaggedTemplateExpression(
3497
3502
  o.factory.createIdentifier(l),
3498
3503
  void 0,
3499
- a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), Pa(a))
3504
+ a.length === 0 ? o.factory.createNoSubstitutionTemplateLiteral(r) : o.factory.createTemplateExpression(o.factory.createTemplateHead(r), ka(a))
3500
3505
  );
3501
3506
  return ct(n, e, d);
3502
3507
  }
3503
- const xa = (e) => e.reduce(
3508
+ const Pa = (e) => e.reduce(
3504
3509
  (t, i, n) => {
3505
3510
  const s = t.at(-1), r = typeof s == "string", a = typeof i == "string";
3506
3511
  if (r && a)
@@ -3510,7 +3515,7 @@ const xa = (e) => e.reduce(
3510
3515
  },
3511
3516
  [""]
3512
3517
  );
3513
- function Pa(e) {
3518
+ function ka(e) {
3514
3519
  if (!(e.length % 2 === 0))
3515
3520
  throw new Error("templatePartsToSpans should be called with normalized parts array without the first item");
3516
3521
  const i = e.length / 2;
@@ -3549,13 +3554,13 @@ function En(e, t) {
3549
3554
  );
3550
3555
  }
3551
3556
  const Nt = (e) => e.trim().length === 0 ? [] : o.getLeadingCommentRanges(e, 0) ?? [];
3552
- function ka(e) {
3557
+ function Ia(e) {
3553
3558
  const t = Nt(e);
3554
3559
  if (t.length === 0)
3555
3560
  return [e || " "];
3556
3561
  const i = t.reduceRight(
3557
3562
  ([s, ...r], a) => {
3558
- const c = Ia(s), l = Cn(c.slice(a.pos, a.end));
3563
+ const c = Aa(s), l = Cn(c.slice(a.pos, a.end));
3559
3564
  return [
3560
3565
  c.slice(0, a.pos),
3561
3566
  /**
@@ -3574,12 +3579,12 @@ function ka(e) {
3574
3579
  return (typeof n != "string" || n.trim() !== "") && i.push(" "), i;
3575
3580
  }
3576
3581
  const Cn = (e) => e.startsWith("//") ? e.slice(2) : e.slice(2, -2);
3577
- function Ia(e) {
3582
+ function Aa(e) {
3578
3583
  if (typeof e == "string")
3579
3584
  return e;
3580
3585
  throw new Error(`Expected string, got ${typeof e}: ${String(e)}`);
3581
3586
  }
3582
- function Aa(e, t) {
3587
+ function La(e, t) {
3583
3588
  if (!(o.isPropertyAccessExpression(t.expression) && t.expression.name.text === "map"))
3584
3589
  return t;
3585
3590
  const n = t.arguments[0];
@@ -3613,7 +3618,7 @@ function Aa(e, t) {
3613
3618
  const f = p.attributes.properties[m];
3614
3619
  if (f === void 0 || !o.isJsxAttribute(f))
3615
3620
  return t;
3616
- const g = Ft(f.initializer, e.sourceFile), y = La(r, n, g, l, e);
3621
+ const g = Ft(f.initializer, e.sourceFile), y = Fa(r, n, g, l, e);
3617
3622
  if (y === void 0)
3618
3623
  return t;
3619
3624
  e.liftedKeys.add(f.name), e.neededImports.add("repeat");
@@ -3646,7 +3651,7 @@ function $n(e) {
3646
3651
  void 0
3647
3652
  ), t;
3648
3653
  }
3649
- function La(e, t, i, n, s) {
3654
+ function Fa(e, t, i, n, s) {
3650
3655
  const r = B(i);
3651
3656
  if (r === void 0)
3652
3657
  return;
@@ -3662,7 +3667,7 @@ function La(e, t, i, n, s) {
3662
3667
  return;
3663
3668
  }
3664
3669
  if (!n) {
3665
- const l = Na(r, a, t);
3670
+ const l = Da(r, a, t);
3666
3671
  if (l === void 0)
3667
3672
  return;
3668
3673
  a = l;
@@ -3692,7 +3697,7 @@ function B(e) {
3692
3697
  const t = B(e.left), i = B(e.right);
3693
3698
  return t === void 0 || i === void 0 ? void 0 : [...t, ...i];
3694
3699
  } else {
3695
- if (Fa.has(e.kind))
3700
+ if (Na.has(e.kind))
3696
3701
  return [];
3697
3702
  {
3698
3703
  const t = be(e);
@@ -3700,7 +3705,7 @@ function B(e) {
3700
3705
  }
3701
3706
  }
3702
3707
  }
3703
- const Fa = /* @__PURE__ */ new Set([
3708
+ const Na = /* @__PURE__ */ new Set([
3704
3709
  o.SyntaxKind.NumericLiteral,
3705
3710
  o.SyntaxKind.BigIntLiteral,
3706
3711
  o.SyntaxKind.StringLiteral,
@@ -3709,12 +3714,12 @@ const Fa = /* @__PURE__ */ new Set([
3709
3714
  o.SyntaxKind.FalseKeyword,
3710
3715
  o.SyntaxKind.NullKeyword,
3711
3716
  o.SyntaxKind.TrueKeyword
3712
- ]), be = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? be(e.expression) : e, xn = (e, t) => o.isObjectBindingPattern(e) ? Ra(e, t) : e;
3713
- function Na(e, t, i) {
3717
+ ]), be = (e) => o.isAsExpression(e) || o.isNonNullExpression(e) || o.isSatisfiesExpression(e) || o.isParenthesizedExpression(e) ? be(e.expression) : e, xn = (e, t) => o.isObjectBindingPattern(e) ? Ma(e, t) : e;
3718
+ function Da(e, t, i) {
3714
3719
  if (e.every(Be, t))
3715
3720
  return t;
3716
3721
  if (o.isIdentifier(t)) {
3717
- const n = o.isBlock(i.body) ? he(i.body.statements, (r) => Da(r, t)) : void 0;
3722
+ const n = o.isBlock(i.body) ? he(i.body.statements, (r) => ja(r, t)) : void 0;
3718
3723
  if (n === void 0)
3719
3724
  return;
3720
3725
  const s = xn(n, e);
@@ -3722,7 +3727,7 @@ function Na(e, t, i) {
3722
3727
  return s;
3723
3728
  }
3724
3729
  }
3725
- function Da(e, t) {
3730
+ function ja(e, t) {
3726
3731
  if (!o.isVariableStatement(e) || !(e.declarationList.flags & o.NodeFlags.Const))
3727
3732
  return;
3728
3733
  const i = e.declarationList.declarations[0];
@@ -3730,19 +3735,19 @@ function Da(e, t) {
3730
3735
  }
3731
3736
  function Be(e) {
3732
3737
  const t = this;
3733
- return o.isIdentifier(t) ? t.text === e : t.elements.some(ja, e);
3738
+ return o.isIdentifier(t) ? t.text === e : t.elements.some(Ra, e);
3734
3739
  }
3735
- function ja(e) {
3740
+ function Ra(e) {
3736
3741
  const t = this;
3737
3742
  return o.isOmittedExpression(e) ? !1 : Be.call(e.name, t);
3738
3743
  }
3739
- function Ra(e, t) {
3744
+ function Ma(e, t) {
3740
3745
  let i = !1;
3741
3746
  const n = e.elements.filter((s) => o.isIdentifier(s.name) ? t.includes(s.name.text) : (i = !0, !0));
3742
3747
  return i || n.length === 0 ? e : o.factory.updateObjectBindingPattern(e, n);
3743
3748
  }
3744
- const Pn = (e, t) => t.liftedKeys.has(e), Ma = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3745
- `), Oa = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Xe = (e) => !Oa.test(e), Ce = (e) => Xe(e) ? `"${e}"` : e;
3749
+ const Pn = (e, t) => t.liftedKeys.has(e), Oa = (e) => e.apiJsonComponents.map(({ name: t, importPath: i }) => `import type { ${t} } from "./${i}";`).join(`
3750
+ `), Ja = /^[a-zA-Z_$][a-zA-Z\d_$]*$/u, Xe = (e) => !Ja.test(e), Ce = (e) => Xe(e) ? `"${e}"` : e;
3746
3751
  function Qe(e, t) {
3747
3752
  const i = [], n = [];
3748
3753
  let s = !1;
@@ -3768,13 +3773,13 @@ const vi = (e) => e.map((t) => `'${t}'`).join(" | ");
3768
3773
  function q(e, t, i) {
3769
3774
  if (Je(i))
3770
3775
  return kn(e, i);
3771
- const n = o.isCallExpression(i) ? Aa(e, i) : i, s = o.visitEachChild(
3776
+ const n = o.isCallExpression(i) ? La(e, i) : i, s = o.visitEachChild(
3772
3777
  n,
3773
3778
  // Do not add "" if parent is binary expression to not turn {(a && <b />) || c} into {(a && <b />) || "" || c}
3774
3779
  q.bind(null, e, t !== void 0 && o.isBinaryExpression(t) ? void 0 : i),
3775
3780
  e.transformationContext
3776
3781
  );
3777
- return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Je(be(i.right))) ? Wa(s) : s;
3782
+ return t !== void 0 && o.isBinaryExpression(i) && (o.isJsxExpression(t) || Je(be(i.right))) ? Ba(s) : s;
3778
3783
  }
3779
3784
  function kn(e, t) {
3780
3785
  const i = In(e, t);
@@ -3788,19 +3793,19 @@ function In(e, t) {
3788
3793
  if (o.isJsxNamespacedName(r))
3789
3794
  throw Error(`JSX namespaced elements are not supported. Found ${r.getText(e.sourceFile)} `);
3790
3795
  if (!o.isIdentifier(r) || !r.text.startsWith(r.text[0].toLowerCase()) && r.text !== tt && r.text !== it) {
3791
- const $ = o.isIdentifier(r) && r.text === Pr ? je(i, e) : {
3796
+ const $ = o.isIdentifier(r) && r.text === kr ? je(i, e) : {
3792
3797
  // No need to wrap the function call in a lit-html tag
3793
3798
  litTag: void 0,
3794
- parts: [Ka(e, t, r, i)]
3799
+ parts: [Wa(e, t, r, i)]
3795
3800
  };
3796
3801
  return {
3797
- key: Ja(s, e),
3802
+ key: Ka(s, e),
3798
3803
  ...$
3799
3804
  };
3800
3805
  }
3801
- const c = r.text === tt ? Me : r.text === it ? gt : r.text, l = r.text === tt ? le : r.text === it ? Y : Ir.has(c) ? an : $t.has(c) ? oe : de, d = Pt(c);
3806
+ const c = r.text === tt ? Me : r.text === it ? gt : r.text, l = r.text === tt ? le : r.text === it ? Y : Ar.has(c) ? an : $t.has(c) ? oe : de, d = Pt(c);
3802
3807
  let p;
3803
- d && e.compiler.viteCommand === "build" && (p = Ba(e, c));
3808
+ d && e.compiler.viteCommand === "build" && (p = _a(e, c));
3804
3809
  let m;
3805
3810
  const f = [];
3806
3811
  let g = !1;
@@ -3813,13 +3818,13 @@ Found ${L.getText(e.sourceFile)}`
3813
3818
  const { name: $, initializer: b } = L;
3814
3819
  if (o.isJsxNamespacedName($))
3815
3820
  throw Error(`JSX namespaced attributes are not supported. Found ${$.getText(e.sourceFile)}`);
3816
- const C = $.text, A = ba(b), F = A?.propType ?? Ta(C, b, c);
3821
+ const C = $.text, A = Ta(b), F = A?.propType ?? Ea(C, b, c);
3817
3822
  p?.delete(C);
3818
- const N = ha[F](e, A?.initializer ?? b, C, c);
3823
+ const N = va[F](e, A?.initializer ?? b, C, c);
3819
3824
  if (N.length === 0)
3820
3825
  return [];
3821
- const R = e.compiler.shouldMinifyJsx ? [" "] : ka(Tn($, e));
3822
- return F === "key" ? (m = typeof N[0] == "object" && !Pn($, e) ? N[0] : void 0, R.some($a) ? R : []) : F === "directives" || F === "ref" || C === "deferLoad" ? (g ||= F === "deferLoad", f.push(
3826
+ const R = e.compiler.shouldMinifyJsx ? [" "] : Ia(Tn($, e));
3827
+ return F === "key" ? (m = typeof N[0] == "object" && !Pn($, e) ? N[0] : void 0, R.some(xa) ? R : []) : F === "directives" || F === "ref" || C === "deferLoad" ? (g ||= F === "deferLoad", f.push(
3823
3828
  ...R,
3824
3829
  ...N.flatMap(
3825
3830
  (U, K) => typeof U == "string" || K === 0 || typeof N[K - 1] == "string" ? U : [" ", U]
@@ -3835,7 +3840,7 @@ Found ${L.getText(e.sourceFile)}`
3835
3840
  `JSX syntax for MathML elements is not yet supported. If you need it, please request it. Otherwise, use the \`math\` function from Lit directly. Tried to use the "${c}" element`
3836
3841
  );
3837
3842
  d && (g ? e.customElementsToImportDeferred.add(c) : e.customElementsToImport.add(c));
3838
- const v = typeof c == "string" && kr.has(c), h = je(i, e);
3843
+ const v = typeof c == "string" && Ir.has(c), h = je(i, e);
3839
3844
  if (v && h.parts.length > 0)
3840
3845
  throw Error(
3841
3846
  `Void HTML elements like <${c}> cannot have children. Found ${t.getText(e.sourceFile)}`
@@ -3859,12 +3864,12 @@ Found ${L.getText(e.sourceFile)}`
3859
3864
  ];
3860
3865
  return { key: m, parts: P, litTag: l };
3861
3866
  }
3862
- function Ja(e, t) {
3867
+ function Ka(e, t) {
3863
3868
  const i = e.attributes.properties[An(e)];
3864
3869
  return i && o.isJsxAttribute(i) && !Pn(i.name, t) ? Ft(i.initializer, t.sourceFile) : void 0;
3865
3870
  }
3866
3871
  const An = (e) => e.attributes.properties.findIndex(({ name: t }) => t && o.isIdentifier(t) && t.text === "key");
3867
- function Ka(e, t, i, n) {
3872
+ function Wa(e, t, i, n) {
3868
3873
  const r = (o.isJsxElement(t) ? t.openingElement : t).attributes.properties.map((l) => {
3869
3874
  if (o.isJsxSpreadAttribute(l))
3870
3875
  return En(Tn(l, e), o.factory.createSpreadAssignment(l.expression));
@@ -3889,7 +3894,7 @@ function je(e, t) {
3889
3894
  let i;
3890
3895
  const n = e.flatMap((s) => {
3891
3896
  if (o.isJsxText(s))
3892
- return [t.compiler.shouldMinifyJsx ? Lr(s.text) : s.text];
3897
+ return [t.compiler.shouldMinifyJsx ? Fr(s.text) : s.text];
3893
3898
  if (o.isJsxExpression(s))
3894
3899
  return Dt(t, s, s);
3895
3900
  {
@@ -3908,7 +3913,7 @@ function je(e, t) {
3908
3913
  });
3909
3914
  return { litTag: i, parts: n };
3910
3915
  }
3911
- function Wa(e) {
3916
+ function Ba(e) {
3912
3917
  return e.operatorToken.kind === o.SyntaxKind.AmpersandAmpersandToken ? o.factory.createBinaryExpression(
3913
3918
  e,
3914
3919
  o.factory.createToken(o.SyntaxKind.BarBarToken),
@@ -3959,7 +3964,7 @@ function Dt(e, t, i) {
3959
3964
  ] : [q(e, i, t.expression)]
3960
3965
  );
3961
3966
  }
3962
- function Ba(e, t) {
3967
+ function _a(e, t) {
3963
3968
  if (t in e.localComponents)
3964
3969
  for (const n of e.compiler.privateApiJson.modules)
3965
3970
  for (const s of n.declarations) {
@@ -3976,11 +3981,11 @@ const Ln = (e) => e.reduce((t, [i, n]) => (t[i] ??= [], t[i].push(n), t), {}), F
3976
3981
  ([e, t]) => t.map((i) => [i, e])
3977
3982
  )
3978
3983
  ), Nn = new Set(Object.keys(Fn));
3979
- function _a(e, t) {
3984
+ function Ha(e, t) {
3980
3985
  const i = t.importClause, n = t.moduleSpecifier;
3981
3986
  if (!o.isStringLiteral(n))
3982
3987
  return t;
3983
- const s = Ha(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
3988
+ const s = Ua(e.sourceFile.fileName, n.text, ""), r = !i?.isTypeOnly;
3984
3989
  if (r && e.existingImportedModules.add(s), i === void 0)
3985
3990
  return t;
3986
3991
  if (e.isInLightDomComponent && n.text.startsWith(".") && Ke.test(n.text) && // If id already includes ?, bypass our custom behavior
@@ -4012,11 +4017,11 @@ function _a(e, t) {
4012
4017
  r && !l.isTypeOnly && m && f && e.importedFunctionComponentsFromModules.add(s);
4013
4018
  }), t;
4014
4019
  }
4015
- const Dn = (e, t) => e === de && ae.staticHtml.includes(t) ? le : e === oe && ae.staticSvg.includes(t) ? Y : e, Ha = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4016
- function Ua(e) {
4017
- return o.isImportDeclaration(e) ? za(this, e) : e;
4020
+ const Dn = (e, t) => e === de && ae.staticHtml.includes(t) ? le : e === oe && ae.staticSvg.includes(t) ? Y : e, Ua = (e, t, i) => t.startsWith(".") ? u.resolve(e, "..", `${t}${i}`) : t;
4021
+ function za(e) {
4022
+ return o.isImportDeclaration(e) ? qa(this, e) : e;
4018
4023
  }
4019
- function za(e, t) {
4024
+ function qa(e, t) {
4020
4025
  const i = t.importClause, n = i?.namedBindings, s = t.moduleSpecifier;
4021
4026
  if (!o.isStringLiteral(s) || !n || !o.isNamedImports(n) || !Nn.has(s.text))
4022
4027
  return t;
@@ -4041,7 +4046,7 @@ function za(e, t) {
4041
4046
  t.attributes
4042
4047
  ) : t;
4043
4048
  }
4044
- function qa(e) {
4049
+ function Ga(e) {
4045
4050
  const t = Ln(
4046
4051
  Array.from(e.neededImports, (i) => [ae[i][0], i])
4047
4052
  );
@@ -4067,8 +4072,8 @@ function jn(e, t) {
4067
4072
  o.factory.createIdentifier(n)
4068
4073
  );
4069
4074
  }
4070
- function Ga(e) {
4071
- const t = na().map(({ packageName: i }) => i);
4075
+ function Va(e) {
4076
+ const t = sa().map(({ packageName: i }) => i);
4072
4077
  return e.existingImportedModules.forEach((i) => {
4073
4078
  if (u.isAbsolute(i))
4074
4079
  return;
@@ -4081,7 +4086,7 @@ function Ga(e) {
4081
4086
  }
4082
4087
  }), [];
4083
4088
  }
4084
- function Va(e) {
4089
+ function Xa(e) {
4085
4090
  if (e.compiler.viteCommand === "serve")
4086
4091
  return e.customElementsToImport.clear(), e.customElementsToImportDeferred.clear(), [];
4087
4092
  const t = e.compiler._customElementDependencies;
@@ -4096,7 +4101,7 @@ function Va(e) {
4096
4101
  t[n] ??= { referencedBy: [], referencedTagNames: [], referencedDeferredTagNames: [] }, t[n].referencedBy.push(e.sourceFile.fileName);
4097
4102
  }), [];
4098
4103
  }
4099
- function Xa(e, t, i) {
4104
+ function Qa(e, t, i) {
4100
4105
  const n = Sn()[t] ?? Rn(e)[t];
4101
4106
  if (n === void 0) {
4102
4107
  if (e.options?.build?.dependencies?.silenceUnknownJsxElementUsage?.(t, i, e) === !0)
@@ -4111,7 +4116,7 @@ function Xa(e, t, i) {
4111
4116
  }
4112
4117
  return n;
4113
4118
  }
4114
- function Qa(e, t) {
4119
+ function Za(e, t) {
4115
4120
  return e.packageName === void 0 ? ce(t, e.moduleName) : u.join(e.packageName, e.moduleName);
4116
4121
  }
4117
4122
  function Rn(e) {
@@ -4122,7 +4127,7 @@ function Rn(e) {
4122
4127
  }
4123
4128
  }), e._localDefinedComponents;
4124
4129
  }
4125
- const Za = (e, t) => {
4130
+ const Ya = (e, t) => {
4126
4131
  const i = e.pragmas;
4127
4132
  if (i?.has("jsx") === !0 || i?.has("jsxImportSource") === !0)
4128
4133
  return e.statements;
@@ -4132,7 +4137,7 @@ const Za = (e, t) => {
4132
4137
  localComponents: t.compiler.isInPuppeteerTestBackEnd ? {} : Rn(t.compiler),
4133
4138
  sourceFile: e,
4134
4139
  transformationContext: t.transformation,
4135
- importRenames: Ya(e),
4140
+ importRenames: ec(e),
4136
4141
  existingImportedModules: /* @__PURE__ */ new Set(),
4137
4142
  importedFunctionComponentsFromModules: /* @__PURE__ */ new Set(),
4138
4143
  existingLitImports: /* @__PURE__ */ new Set(),
@@ -4148,18 +4153,18 @@ const Za = (e, t) => {
4148
4153
  let s = [];
4149
4154
  if (e.statements.every((a) => {
4150
4155
  if (o.isImportDeclaration(a)) {
4151
- if (s.push(_a(n, a)), n.hasNonLuminaJsxImport)
4156
+ if (s.push(Ha(n, a)), n.hasNonLuminaJsxImport)
4152
4157
  return !1;
4153
4158
  } else
4154
4159
  s.push(q(n, void 0, a));
4155
4160
  return !0;
4156
4161
  }), n.hasNonLuminaJsxImport)
4157
4162
  return e.statements;
4158
- if (n.neededImports.size > 0 && (s = s.map(Ua, n), n.existingLitImports.size > 0))
4163
+ if (n.neededImports.size > 0 && (s = s.map(za, n), n.existingLitImports.size > 0))
4159
4164
  throw new Error(
4160
4165
  `Expected context.existingLitImports to be empty by now. Found: ${Array.from(n.existingLitImports).join(", ")}`
4161
4166
  );
4162
- const r = [qa, Ga, Va].flatMap(
4167
+ const r = [Ga, Va, Xa].flatMap(
4163
4168
  (a) => a(n)
4164
4169
  );
4165
4170
  if (n.neededImports.size > 0)
@@ -4168,18 +4173,18 @@ const Za = (e, t) => {
4168
4173
  );
4169
4174
  return [...r, ...s];
4170
4175
  };
4171
- function Ya(e) {
4172
- return ec(e), Object.fromEntries(
4173
- ho.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4176
+ function ec(e) {
4177
+ return tc(e), Object.fromEntries(
4178
+ vo.map((t) => [t, e.identifiers.has(t) ? `${t}$jsx` : t])
4174
4179
  );
4175
4180
  }
4176
- function ec(e) {
4181
+ function tc(e) {
4177
4182
  if (!("identifiers" in e))
4178
4183
  throw new Error(
4179
4184
  "Expected sourceFile to have an undocumented identifiers property that is a Map<string,string>. If this error is thrown, it may mean Lumina Compiler needs to be updated to support the version of TypeScript being used."
4180
4185
  );
4181
4186
  }
4182
- function tc(e, t, i) {
4187
+ function ic(e, t, i) {
4183
4188
  return t.size === 0 ? e : [
4184
4189
  o.factory.createPropertyDeclaration(
4185
4190
  [
@@ -4193,7 +4198,7 @@ function tc(e, t, i) {
4193
4198
  Array.from(t.entries()).map(
4194
4199
  ([n, s]) => o.factory.createPropertyAssignment(
4195
4200
  Xe(n) ? o.factory.createStringLiteral(n) : n,
4196
- ic(s, i)
4201
+ nc(s, i)
4197
4202
  )
4198
4203
  )
4199
4204
  )
@@ -4201,7 +4206,7 @@ function tc(e, t, i) {
4201
4206
  ...e
4202
4207
  ];
4203
4208
  }
4204
- function ic(e, t) {
4209
+ function nc(e, t) {
4205
4210
  let i = 0, n = !0;
4206
4211
  const s = [], r = [];
4207
4212
  for (const l of e.properties)
@@ -4243,7 +4248,7 @@ function ic(e, t) {
4243
4248
  ...t ? [] : [o.factory.createObjectLiteralExpression(r)]
4244
4249
  ]);
4245
4250
  }
4246
- function nc(e, t, i, n, s) {
4251
+ function sc(e, t, i, n, s) {
4247
4252
  let r = -1, a = -1, c = -1;
4248
4253
  t.options?.properties.forEach((f, g) => {
4249
4254
  if (o.isSpreadAssignment(f))
@@ -4255,23 +4260,23 @@ function nc(e, t, i, n, s) {
4255
4260
  y === "type" ? r = g : y === "attribute" ? a = g : y === "readOnly" && (c = g);
4256
4261
  }
4257
4262
  });
4258
- const l = s.attribute === void 0 && a === -1, d = s.readonly === !0 && s.docsOnlyReadonly !== !0 && c === -1, p = sc(e, t, i, s, r), m = [
4263
+ const l = s.attribute === void 0 && a === -1, d = s.readonly === !0 && s.docsOnlyReadonly !== !0 && c === -1, p = rc(e, t, i, s, r), m = [
4259
4264
  ...l ? [o.factory.createPropertyAssignment("attribute", o.factory.createFalse())] : [],
4260
4265
  ...d ? [o.factory.createPropertyAssignment("readOnly", o.factory.createTrue())] : [],
4261
4266
  ...p !== void 0 ? [p] : []
4262
4267
  ];
4263
4268
  return m.length > 0 ? t.options === void 0 ? o.factory.createObjectLiteralExpression(m, !1) : o.factory.updateObjectLiteralExpression(t.options, [...t.options.properties, ...m]) : t.options;
4264
4269
  }
4265
- function sc(e, t, i, n, s) {
4270
+ function rc(e, t, i, n, s) {
4266
4271
  if (n.attribute === void 0)
4267
4272
  return;
4268
- const r = oc(e), a = i.compiler.viteCommand === "serve" || r !== "Other" ? r : rc(n.type.values);
4273
+ const r = ac(e), a = i.compiler.viteCommand === "serve" || r !== "Other" ? r : oc(n.type.values);
4269
4274
  return a === "Other" || n.readonly && (a !== "Boolean" || !n.reflects) || t.options?.properties[s] !== void 0 ? void 0 : o.factory.createPropertyAssignment(
4270
4275
  o.factory.createIdentifier("type"),
4271
4276
  o.factory.createIdentifier(a)
4272
4277
  );
4273
4278
  }
4274
- function rc(e) {
4279
+ function oc(e) {
4275
4280
  let t = !1, i = !1, n = !1;
4276
4281
  if (e?.forEach((s) => {
4277
4282
  t ||= s.type === "number", i ||= s.type === "boolean", n ||= s.type === "string" || s.type === "any" || s.type === "unknown";
@@ -4283,7 +4288,7 @@ function rc(e) {
4283
4288
  }
4284
4289
  return "Other";
4285
4290
  }
4286
- function oc(e) {
4291
+ function ac(e) {
4287
4292
  const t = e.type ?? (o.isSetAccessor(e) ? e.parameters[0].type : void 0);
4288
4293
  if (t === void 0) {
4289
4294
  if ("initializer" in e && e.initializer !== void 0) {
@@ -4300,7 +4305,7 @@ function oc(e) {
4300
4305
  }
4301
4306
  return "Other";
4302
4307
  }
4303
- function ac(e, t, i, n, s) {
4308
+ function cc(e, t, i, n, s) {
4304
4309
  if (t.modifiers === void 0)
4305
4310
  return t;
4306
4311
  let r = -1, a = -1;
@@ -4310,7 +4315,7 @@ function ac(e, t, i, n, s) {
4310
4315
  d === "property" && (r = l), d === "state" && (a = l);
4311
4316
  }
4312
4317
  }), r !== -1) {
4313
- const c = cc(e, t, i, n), l = Si(t, r, n), d = nc(t, l, e, n, c);
4318
+ const c = lc(e, t, i, n), l = Si(t, r, n), d = sc(t, l, e, n, c);
4314
4319
  let p = !1;
4315
4320
  return s.set(c.name, d ?? o.factory.createObjectLiteralExpression()), p = !0, l.options = d, wi(t, l, r, p);
4316
4321
  } else if (a !== -1) {
@@ -4321,7 +4326,7 @@ function ac(e, t, i, n, s) {
4321
4326
  } else
4322
4327
  return t;
4323
4328
  }
4324
- function cc(e, t, i, n) {
4329
+ function lc(e, t, i, n) {
4325
4330
  const s = e.apiModule?.declarations.find(
4326
4331
  (a) => a.name === i
4327
4332
  ) ?? (e.compiler.isInTest ? {
@@ -4388,16 +4393,16 @@ function wi(e, t, i, n) {
4388
4393
  e.initializer
4389
4394
  );
4390
4395
  }
4391
- const lc = (e, t) => {
4396
+ const dc = (e, t) => {
4392
4397
  if (t.apiModule === void 0 && !t.compiler.isInTest)
4393
4398
  return e.statements;
4394
4399
  let i;
4395
4400
  function n() {
4396
4401
  i = /* @__PURE__ */ new Map();
4397
4402
  }
4398
- const s = (c) => tc(c, i, t.compiler.shouldMinify);
4403
+ const s = (c) => ic(c, i, t.compiler.shouldMinify);
4399
4404
  function r(c, l) {
4400
- const d = pc(t, c, l, e, i);
4405
+ const d = uc(t, c, l, e, i);
4401
4406
  return t.compiler.viteCommand === "build" && o.setEmitFlags(d, o.EmitFlags.NoComments), d;
4402
4407
  }
4403
4408
  return e.statements.map(
@@ -4431,11 +4436,11 @@ function Mn(e, t, i, n, s = Ji) {
4431
4436
  i.transformation
4432
4437
  ) : t;
4433
4438
  }
4434
- const dc = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4435
- function pc(e, t, i, n, s) {
4439
+ const pc = /* @__PURE__ */ new Set(["connectedCallback", "disconnectedCallback"]);
4440
+ function uc(e, t, i, n, s) {
4436
4441
  if (o.isMethodDeclaration(t)) {
4437
4442
  const r = t.modifiers?.filter(
4438
- (a) => !o.isDecorator(a) || !uc(a)
4443
+ (a) => !o.isDecorator(a) || !mc(a)
4439
4444
  );
4440
4445
  if (r?.length !== t.modifiers?.length)
4441
4446
  return o.factory.updateMethodDeclaration(
@@ -4449,7 +4454,7 @@ function pc(e, t, i, n, s) {
4449
4454
  t.type,
4450
4455
  t.body
4451
4456
  );
4452
- if ("text" in t.name && dc.has(t.name.text) && t.body) {
4457
+ if ("text" in t.name && pc.has(t.name.text) && t.body) {
4453
4458
  const a = t.name.text;
4454
4459
  return t.body.statements.some(
4455
4460
  (l) => o.isExpressionStatement(l) && o.isCallExpression(l.expression) && o.isPropertyAccessExpression(l.expression.expression) && l.expression.expression.expression.kind === o.SyntaxKind.SuperKeyword && l.expression.expression.name.text === a
@@ -4475,11 +4480,11 @@ function pc(e, t, i, n, s) {
4475
4480
  );
4476
4481
  }
4477
4482
  }
4478
- return o.isPropertyDeclaration(t) || o.isAccessor(t) ? ac(e, t, i, n, s) : t;
4483
+ return o.isPropertyDeclaration(t) || o.isAccessor(t) ? cc(e, t, i, n, s) : t;
4479
4484
  }
4480
- const uc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", St = "@arcgis/core", lt = J(), $e = St in (lt.dependencies ?? {}) || St in (lt.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4485
+ const mc = (e) => o.isCallExpression(e.expression) && o.isIdentifier(e.expression.expression) && e.expression.expression.text === "method", St = "@arcgis/core", lt = J(), $e = St in (lt.dependencies ?? {}) || St in (lt.peerDependencies ?? {}) || // Does not depend on `@arcgis/core` to avoid cycle, but uses core in Lumina tests
4481
4486
  lt.name === "@arcgis/lumina";
4482
- async function mc(e, t) {
4487
+ async function fc(e, t) {
4483
4488
  if (!$e)
4484
4489
  return [];
4485
4490
  const i = await He(St);
@@ -4510,8 +4515,8 @@ const bi = (e) => ({
4510
4515
  cssHref: `${e}esri/themes/light/main.css`,
4511
4516
  // This is used be the theme switcher in `@arcgis/storybook-utils`
4512
4517
  id: "arcgisCoreStylesheet"
4513
- }), Ti = "makeRuntime(", fc = "@arcgis/core";
4514
- function gc(e, t) {
4518
+ }), Ti = "makeRuntime(", gc = "@arcgis/core";
4519
+ function yc(e, t) {
4515
4520
  const i = e.indexOf(Ti);
4516
4521
  if (i === -1)
4517
4522
  throw new Error("Failed to find makeRuntime() function call in src/runtime.ts");
@@ -4529,7 +4534,7 @@ function gc(e, t) {
4529
4534
  "}",
4530
4535
  e.slice(n),
4531
4536
  $e ? `
4532
- import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${fc}/applications/Components/reactiveUtils.js";
4537
+ import {createObservable,trackAccess,createTrackingTarget,runTracked} from "${gc}/applications/Components/reactiveUtils.js";
4533
4538
  createObservable,
4534
4539
  runtime.t = trackAccess;
4535
4540
  runtime.o = createObservable;
@@ -4539,11 +4544,11 @@ runtime.r = runTracked;` : ""
4539
4544
  map: null
4540
4545
  };
4541
4546
  }
4542
- const yc = [
4543
- Za,
4547
+ const hc = [
4548
+ Ya,
4544
4549
  zs,
4545
- lc
4546
- ], Ei = "@arcgis/lumina:transformComponents", hc = (e) => ({
4550
+ dc
4551
+ ], Ei = "@arcgis/lumina:transformComponents", vc = (e) => ({
4547
4552
  name: Ei,
4548
4553
  transform: {
4549
4554
  // Transform JSX to lit-html first so that vite:esbuild doesn't transform JSX to h().
@@ -4557,7 +4562,7 @@ const yc = [
4557
4562
  i
4558
4563
  );
4559
4564
  else if (i === `${e.dir.src}runtime.ts`)
4560
- return gc(t, e);
4565
+ return yc(t, e);
4561
4566
  return;
4562
4567
  }
4563
4568
  const n = e.getSourceFile(i, t);
@@ -4565,7 +4570,7 @@ const yc = [
4565
4570
  const r = o.transform(n, [
4566
4571
  (f) => () => zi(e, f, n, [
4567
4572
  ...e.options.types?.sourceFileTransformers ?? [],
4568
- ...yc
4573
+ ...hc
4569
4574
  ])
4570
4575
  ]).transformed[0], a = e._compilerOptionsForPrinter, c = e._typeScriptPrinter, l = a.sourceMap ? ge.createSourceMapGenerator(
4571
4576
  e.typeScriptHost,
@@ -4583,7 +4588,7 @@ const yc = [
4583
4588
  }
4584
4589
  }
4585
4590
  });
4586
- function vc(e) {
4591
+ function Sc(e) {
4587
4592
  const t = e.typeScriptConfig;
4588
4593
  return {
4589
4594
  ...t,
@@ -4615,7 +4620,7 @@ function vc(e) {
4615
4620
  skipLibCheck: !0
4616
4621
  };
4617
4622
  }
4618
- function Sc(e) {
4623
+ function wc(e) {
4619
4624
  const t = e.options.types?.tsconfigPath, i = t && u.isAbsolute(t) ? t : ds(t ?? "tsconfig.json");
4620
4625
  if (i === void 0)
4621
4626
  throw Error(
@@ -4654,7 +4659,7 @@ function On(e) {
4654
4659
  const i = o.ScriptTarget[t].toLowerCase();
4655
4660
  return i === "latest" ? "esnext" : i;
4656
4661
  }
4657
- function wc(e, t) {
4662
+ function bc(e, t) {
4658
4663
  if (e.isInStorybook && e.viteCommand === "serve") {
4659
4664
  const i = (a, c, l, ...d) => {
4660
4665
  const p = a.filter(
@@ -4676,9 +4681,9 @@ function wc(e, t) {
4676
4681
  e.typeScriptProgram = a.getProgram(), e.typeScriptTypeChecker = e.typeScriptProgram.getTypeChecker(), e._typeScriptReload?.resolve(), e._typeScriptReload = new Fs();
4677
4682
  }, e.typeScriptWatchProgram = o.createWatchProgram(n), e.typeScriptConfig = e.typeScriptProgram.getCompilerOptions();
4678
4683
  }
4679
- e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = vc(e), e._typeScriptPrinter = tn(e._compilerOptionsForPrinter);
4684
+ e.typeScriptConfig.sourceMap = t, e._compilerOptionsForPrinter = Sc(e), e._typeScriptPrinter = tn(e._compilerOptionsForPrinter);
4680
4685
  }
4681
- async function bc(e, t, i) {
4686
+ async function Tc(e, t, i) {
4682
4687
  const n = u.resolve(e.dir.root, t);
4683
4688
  await z(n) && await hs(n, { recursive: !0, force: !0 }), await Z(n, { recursive: !0 }), await vs(e.dir.distCdn, u.join(n, "build"), { recursive: !0 });
4684
4689
  const s = [
@@ -4729,7 +4734,7 @@ const Jn = /* @__PURE__ */ new Set([
4729
4734
  "extras",
4730
4735
  "support"
4731
4736
  ]), H = "@arcgis/lumina:buildCdn", jt = "cdn", Kn = "index", Te = "main";
4732
- function Tc(e) {
4737
+ function Ec(e) {
4733
4738
  const { skip: t = !1, namespace: i, esbuildOptions: n = {} } = e.options.build?.cdn ?? {}, s = e.options.build?.webApp?.destination, r = i !== void 0;
4734
4739
  if (r) {
4735
4740
  if (i.toLowerCase() !== i)
@@ -4746,7 +4751,7 @@ function Tc(e) {
4746
4751
  if (e.provideAssets([
4747
4752
  {
4748
4753
  type: "dynamic",
4749
- source: () => Do(e),
4754
+ source: () => jo(e),
4750
4755
  destination: `../${r ? a : Te}.css`
4751
4756
  }
4752
4757
  ]), !t)
@@ -4755,8 +4760,8 @@ function Tc(e) {
4755
4760
  async writeBundle() {
4756
4761
  if (e.isInStorybook)
4757
4762
  return;
4758
- const c = $e && J().name !== "@arcgis/embeddable-components", l = Date.now(), d = Array.isArray(n.entryPoints) ? n.entryPoints.map((f) => typeof f == "string" ? { in: f, out: "" } : f) : typeof n.entryPoints == "object" ? Object.entries(n.entryPoints).map(([f, g]) => ({ in: g, out: f })) : [], p = await Ec(e, a, n, d, c);
4759
- await Cc(
4763
+ const c = $e && J().name !== "@arcgis/embeddable-components", l = Date.now(), d = Array.isArray(n.entryPoints) ? n.entryPoints.map((f) => typeof f == "string" ? { in: f, out: "" } : f) : typeof n.entryPoints == "object" ? Object.entries(n.entryPoints).map(([f, g]) => ({ in: g, out: f })) : [], p = await Cc(e, a, n, d, c);
4764
+ await $c(
4760
4765
  p,
4761
4766
  e,
4762
4767
  r ? `${a}.esm` : a,
@@ -4764,11 +4769,11 @@ function Tc(e) {
4764
4769
  c
4765
4770
  );
4766
4771
  const m = Date.now();
4767
- T.info(H, `CDN was built in ${m - l}ms`), s && await bc(e, s, `${r ? `${a}.esm` : a}.js`);
4772
+ T.info(H, `CDN was built in ${m - l}ms`), s && await Tc(e, s, `${r ? `${a}.esm` : a}.js`);
4768
4773
  }
4769
4774
  };
4770
4775
  }
4771
- async function Ec(e, t, i, n, s) {
4776
+ async function Cc(e, t, i, n, s) {
4772
4777
  const r = e.environment;
4773
4778
  if (i.minify && s)
4774
4779
  throw Error(
@@ -4847,7 +4852,7 @@ ${fn(e._globalCssString, e)}`,
4847
4852
  }
4848
4853
  });
4849
4854
  }
4850
- async function Cc(e, t, i, n, s) {
4855
+ async function $c(e, t, i, n, s) {
4851
4856
  const r = t.dir.distCdn, a = `${i}.js`, c = new Map(
4852
4857
  e.outputFiles.map((l) => {
4853
4858
  const d = {
@@ -4857,13 +4862,13 @@ async function Cc(e, t, i, n, s) {
4857
4862
  }, p = l.path.slice(r.length);
4858
4863
  if (p === "stdin.js") {
4859
4864
  if (s) {
4860
- const f = l.text.match($c)?.[0];
4865
+ const f = l.text.match(xc)?.[0];
4861
4866
  if (f === void 0)
4862
4867
  throw Error(
4863
4868
  `Failed to find the runtime variable name in the CDN entrypoint file. This likely indicates a bug in Lumina. stdin.js contents:
4864
4869
  ${l.text}`
4865
4870
  );
4866
- d.code = `${d.code.trimEnd()}${xc(f, n)}`, d.isAsync = !1;
4871
+ d.code = `${d.code.trimEnd()}${Pc(f, n)}`, d.isAsync = !1;
4867
4872
  }
4868
4873
  return [a, d];
4869
4874
  }
@@ -4874,8 +4879,8 @@ ${l.text}`
4874
4879
  l.isAsync === void 0 && (d.endsWith(".js") ? Wn(l, c) : l.isAsync = !1);
4875
4880
  }), t.options.build?.cdn?.transformer?.(c, t), await Promise.all(Array.from(c.entries(), async ([l, { code: d }]) => await D(r + l, d)));
4876
4881
  }
4877
- const $c = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
4878
- function xc(e, t) {
4882
+ const xc = /(?<=;var [a-zA-Z$_]=[a-zA-Z$_]\()[a-zA-Z$_](?=,\{")/u;
4883
+ function Pc(e, t) {
4879
4884
  let i = [
4880
4885
  "window.$arcgis",
4881
4886
  "||",
@@ -4919,7 +4924,7 @@ function xc(e, t) {
4919
4924
  function Wn(e, t) {
4920
4925
  const i = [], n = [], s = [], r = /* @__PURE__ */ new Set(), a = [];
4921
4926
  let c = 0;
4922
- const l = e.code.matchAll(Pc);
4927
+ const l = e.code.matchAll(kc);
4923
4928
  for (const b of l) {
4924
4929
  const [C, A, F, N, R] = b, U = R.startsWith(_e);
4925
4930
  if (c !== 0 && c !== b.index) {
@@ -4959,7 +4964,7 @@ ${K.code}`
4959
4964
  e.code = Ci(e.code, t);
4960
4965
  return;
4961
4966
  }
4962
- const d = Ac(r);
4967
+ const d = Lc(r);
4963
4968
  let p = e.code.slice(0, c);
4964
4969
  for (let b = a.length - 1; b >= 0; b--) {
4965
4970
  const [C, A, F, N] = a[b];
@@ -4970,7 +4975,7 @@ ${K.code}`
4970
4975
  }
4971
4976
  p = p.slice(0, C) + U + p.slice(C + R);
4972
4977
  }
4973
- const m = kc.exec(e.code), f = m?.index ?? e.code.length;
4978
+ const m = Ic.exec(e.code), f = m?.index ?? e.code.length;
4974
4979
  let g = "";
4975
4980
  if (m !== null) {
4976
4981
  const b = m[1].split(",");
@@ -4990,7 +4995,7 @@ ${K.code}`
4990
4995
  const $ = `${p}${S}${L}${P}`;
4991
4996
  e.code = $;
4992
4997
  }
4993
- const Pc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, kc = /export\{([^}]+)\};\n$/u, _e = "@arcgis/core/";
4998
+ const kc = /import(?:(\{[^}]+\})from|\*as (\w+) from| ([\w$]+) from)?"([^"]+)";/gu, Ic = /export\{([^}]+)\};\n$/u, _e = "@arcgis/core/";
4994
4999
  function Bn(e, t) {
4995
5000
  if (!e.startsWith("./"))
4996
5001
  return;
@@ -5002,7 +5007,7 @@ function Bn(e, t) {
5002
5007
  return n;
5003
5008
  }
5004
5009
  function Ci(e, t) {
5005
- return e.replaceAll(Ic, (i, n) => {
5010
+ return e.replaceAll(Ac, (i, n) => {
5006
5011
  if (n.startsWith(_e))
5007
5012
  return `$arcgis.t(m=>m[0],"${_n(n.slice(_e.length))}")`;
5008
5013
  if (n.startsWith("./")) {
@@ -5013,28 +5018,28 @@ function Ci(e, t) {
5013
5018
  return i;
5014
5019
  });
5015
5020
  }
5016
- const Ic = /(?<![.\w\d])import\("([^"]+)"\)/gu, _n = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
5017
- function Ac(e) {
5021
+ const Ac = /(?<![.\w\d])import\("([^"]+)"\)/gu, _n = (e) => e.endsWith(".js") ? e.slice(0, -3) : e;
5022
+ function Lc(e) {
5018
5023
  const t = [Hn];
5019
5024
  return () => {
5020
5025
  for (; ; ) {
5021
- const i = Nc(t);
5022
- if (Dc(t), !e.has(i))
5026
+ const i = Dc(t);
5027
+ if (jc(t), !e.has(i))
5023
5028
  return e.add(i), i;
5024
5029
  }
5025
5030
  };
5026
5031
  }
5027
- const Hn = 0, Rt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Un = `${Rt}0123456789`, Lc = Rt.length, Fc = Un.length;
5028
- function Nc(e) {
5032
+ const Hn = 0, Rt = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_", Un = `${Rt}0123456789`, Fc = Rt.length, Nc = Un.length;
5033
+ function Dc(e) {
5029
5034
  let t = Rt[e[0]];
5030
5035
  for (let i = 1; i < e.length; i++)
5031
5036
  t += Un[e[i]];
5032
5037
  return t;
5033
5038
  }
5034
- function Dc(e) {
5039
+ function jc(e) {
5035
5040
  let t = e.length - 1;
5036
5041
  for (; t >= 0; ) {
5037
- const i = t === 0 ? Lc : Fc;
5042
+ const i = t === 0 ? Fc : Nc;
5038
5043
  if (e[t] += 1, e[t] >= i)
5039
5044
  e[t] = 0, t--;
5040
5045
  else
@@ -5042,7 +5047,7 @@ function Dc(e) {
5042
5047
  }
5043
5048
  e = new Array(e.length + 1).fill(Hn);
5044
5049
  }
5045
- async function jc(e, t, i, n) {
5050
+ async function Rc(e, t, i, n) {
5046
5051
  const s = t.packageName, r = await He(s), { hasCss: a, cdnName: c } = await zn(u.join(r, "dist")) ?? {};
5047
5052
  if (i === "cdn") {
5048
5053
  const m = await Ue(r), f = t.cdnUrl ?? Ge(m, !0);
@@ -5101,7 +5106,7 @@ async function $i(e, t) {
5101
5106
  cdnName: t
5102
5107
  } : void 0;
5103
5108
  }
5104
- async function Rc(e, t, i, n) {
5109
+ async function Mc(e, t, i, n) {
5105
5110
  const s = t.packageName, r = await He(s), a = await Ue(r), c = await zn(u.join(r, "dist"));
5106
5111
  if (i === "cdn") {
5107
5112
  const g = a.exports?.[`./${Te}.css`] === void 0, y = g ? c.cdnName : Kn;
@@ -5113,7 +5118,7 @@ async function Rc(e, t, i, n) {
5113
5118
  }
5114
5119
  };
5115
5120
  }
5116
- const l = c?.cdnName ?? jt, d = Mc(a), p = `${s}/${u.normalize(d)}${ee}`, m = [
5121
+ const l = c?.cdnName ?? jt, d = Oc(a), p = `${s}/${u.normalize(d)}${ee}`, m = [
5117
5122
  `import styles$${n} from "${p}";`,
5118
5123
  `document.adoptedStyleSheets = [...document.adoptedStyleSheets, styles$${n}.styleSheet];`
5119
5124
  ], f = `${s}/loader`;
@@ -5132,7 +5137,7 @@ async function Rc(e, t, i, n) {
5132
5137
  ]
5133
5138
  };
5134
5139
  }
5135
- function Mc(e) {
5140
+ function Oc(e) {
5136
5141
  const { exports: t } = e;
5137
5142
  if (t === void 0)
5138
5143
  throw new Error(
@@ -5142,19 +5147,19 @@ function Mc(e) {
5142
5147
  return n ? n[0] : i.length > 0 ? i[0][0] : `./${Te}.css`;
5143
5148
  }
5144
5149
  async function Ee(e) {
5145
- return e._loadersCache ??= Oc(e), await e._loadersCache;
5150
+ return e._loadersCache ??= Jc(e), await e._loadersCache;
5146
5151
  }
5147
- async function Oc(e) {
5152
+ async function Jc(e) {
5148
5153
  const t = e.viteCommand === "build" ? "cdn" : "lazyNpm", i = e.viteConfig.base;
5149
5154
  let n = 0;
5150
5155
  const s = async (l) => (await Promise.all(
5151
5156
  l.map(async (d) => {
5152
5157
  const p = n++;
5153
- return d.type === "stencil" ? await jc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Rc(i, d, t, p) : void 0;
5158
+ return d.type === "stencil" ? await Rc(i, d, t, p) : d.type === "@arcgis/lumina" ? await Mc(i, d, t, p) : void 0;
5154
5159
  })
5155
5160
  )).filter(j).flat(), r = await Promise.all([
5156
5161
  // This may contain an import map so must be first
5157
- mc(i, t),
5162
+ fc(i, t),
5158
5163
  we.then(s),
5159
5164
  qn(e).then(s)
5160
5165
  ]), a = u.join(e.dir.src, "loader.ts");
@@ -5195,7 +5200,7 @@ async function qn(e) {
5195
5200
  ).then((i) => i.filter(j)), await e._serveOnlyDependencies);
5196
5201
  }
5197
5202
  const Gn = "/@arcgis/lumina-compiler/testSetupFile", dt = [Gn];
5198
- async function Jc(e) {
5203
+ async function Kc(e) {
5199
5204
  if (!e.viteConfig.test?.browser?.enabled)
5200
5205
  return xi(e);
5201
5206
  const i = (await Ee(e)).map((n, s) => {
@@ -5223,12 +5228,12 @@ async function Jc(e) {
5223
5228
  `);
5224
5229
  return [xi(e), i].join("");
5225
5230
  }
5226
- const xi = (e) => [e.isInPuppeteerTestBackEnd ? Kc : "", Wc].join(""), Kc = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
5231
+ const xi = (e) => [e.isInPuppeteerTestBackEnd ? Wc : "", Bc].join(""), Wc = `import { setupPuppeteerTest } from "@arcgis/lumina-compiler/puppeteerTesting";
5227
5232
  setupPuppeteerTest();
5228
- `, Wc = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
5233
+ `, Bc = `import { setupLuminaTest } from "@arcgis/lumina-compiler/testing";
5229
5234
  setupLuminaTest();
5230
5235
  `;
5231
- function Bc(e) {
5236
+ function _c(e) {
5232
5237
  let t = !0, i = !1, n, s, r, a, c;
5233
5238
  const l = "@arcgis/lumina:generateVirtualFiles", d = {
5234
5239
  name: l,
@@ -5241,17 +5246,17 @@ function Bc(e) {
5241
5246
  const v = y.startsWith(Gn);
5242
5247
  if (!(!y.endsWith(".tsx") && y !== a && !v)) {
5243
5248
  if (s === void 0 && !e.isInPuppeteerTestBackEnd) {
5244
- r === void 0 && clearTimeout(n), r ??= zo(e, t).catch((S) => {
5249
+ r === void 0 && clearTimeout(n), r ??= qo(e, t).catch((S) => {
5245
5250
  throw i = !0, S;
5246
5251
  }), t = !1;
5247
5252
  const h = await r;
5248
5253
  s ??= h;
5249
5254
  }
5250
- return y === a ? jo(e) : v ? await Jc(e) : void 0;
5255
+ return y === a ? Ro(e) : v ? await Kc(e) : void 0;
5251
5256
  }
5252
5257
  },
5253
5258
  async writeBundle() {
5254
- e.isInStorybook || await D(u.join(e.dir.dist, "loader.d.ts"), Ro);
5259
+ e.isInStorybook || await D(u.join(e.dir.dist, "loader.d.ts"), Mo);
5255
5260
  },
5256
5261
  async handleHotUpdate({ file: y, modules: v, read: h }) {
5257
5262
  const S = await p(y, h);
@@ -5316,7 +5321,7 @@ function Bc(e) {
5316
5321
  if (!Se(y, e.dir.srcComponents))
5317
5322
  return;
5318
5323
  h ??= await v();
5319
- const E = qo(e, y, h);
5324
+ const E = Go(e, y, h);
5320
5325
  if (E === void 0)
5321
5326
  return !1;
5322
5327
  for (const P of E) {
@@ -5344,9 +5349,9 @@ function ye(e, t, i = Mt) {
5344
5349
  throw Error(w(wt, "serveAssets() is only available when Vite is running in serve mode"));
5345
5350
  const n = e._serverConfigured, s = e.server.middlewares.stack.length;
5346
5351
  if (t.forEach((r) => {
5347
- const a = Xn(r), c = Zn(e.dir, Qn(a)), l = Hc(e.viteConfig.base, c, e.dir.distCdn);
5352
+ const a = Xn(r), c = Zn(e.dir, Qn(a)), l = Uc(e.viteConfig.base, c, e.dir.distCdn);
5348
5353
  e.server.middlewares.use(l, (d, p, m) => {
5349
- const f = Uc(d.url), g = a.type === "directory" ? u.resolve(a.source, f.slice(1)) : a.source, y = u.join(c, f), v = i.find((h) => h.match(y, e));
5354
+ const f = zc(d.url), g = a.type === "directory" ? u.resolve(a.source, f.slice(1)) : a.source, y = u.join(c, f), v = i.find((h) => h.match(y, e));
5350
5355
  return (typeof g == "function" ? Promise.resolve(g()) : O(g)).then((h) => {
5351
5356
  const S = (typeof g == "function" ? void 0 : v?.transform(h.toString("utf8"), y, e)) ?? h;
5352
5357
  p.setHeader("Cache-Control", "max-age=31536000, immutable"), p.setHeader("Content-Type", Ds.lookup(f) || "application/octet-stream"), p.write(S), p.end();
@@ -5419,33 +5424,33 @@ function Qn(e) {
5419
5424
  return e.destination === "" ? u.basename(e.source) : e.destination.endsWith(u.sep) ? e.type === "directory" && e.destination === u.sep ? e.destination : u.join(e.destination, u.basename(e.source)) : e.destination;
5420
5425
  }
5421
5426
  function Zn({ dist: e, distCdnAssets: t }, i) {
5422
- const n = _c(i), s = u.join(
5427
+ const n = Hc(i), s = u.join(
5423
5428
  t,
5424
5429
  n ? u.relative(t, i) : i
5425
5430
  ), r = u.relative(e, s), a = Yn(r);
5426
5431
  return u.join(e, a);
5427
5432
  }
5428
- function _c(e) {
5433
+ function Hc(e) {
5429
5434
  if (e.startsWith(u.sep)) {
5430
5435
  const t = Mi(), i = t.startsWith(u.sep) ? t.split(u.sep)[1] ?? "" : "";
5431
5436
  return e.startsWith(`/${i}/`) || e.startsWith("/Users/");
5432
5437
  } else
5433
5438
  return !!(!Ri && u.isAbsolute(e));
5434
5439
  }
5435
- function Hc(e, t, i) {
5440
+ function Uc(e, t, i) {
5436
5441
  const n = Yn(u.relative(i, t)), s = n.startsWith("/") ? n.slice(1) : n;
5437
5442
  return `${e}${s}`;
5438
5443
  }
5439
- const Yn = (e) => e.replaceAll("../", ""), Uc = (e = "") => e.split("?")[0].split("#")[0];
5444
+ const Yn = (e) => e.replaceAll("../", ""), zc = (e = "") => e.split("?")[0].split("#")[0];
5440
5445
  async function es(e) {
5441
5446
  const t = new Set(e.map(u.dirname));
5442
5447
  await Promise.all(Array.from(t, async (i) => await Z(i, { recursive: !0 })));
5443
5448
  }
5444
- const zc = {
5449
+ const qc = {
5445
5450
  match: (e, t) => t.environment === "production" && e.endsWith(".json"),
5446
5451
  transform: (e) => JSON.stringify(JSON.parse(e))
5447
- }, Mt = [zc];
5448
- function qc(e) {
5452
+ }, Mt = [qc];
5453
+ function Gc(e) {
5449
5454
  let t;
5450
5455
  const i = () => [
5451
5456
  ...e.options.assets?.transformers ?? [],
@@ -5454,7 +5459,7 @@ function qc(e) {
5454
5459
  return {
5455
5460
  name: "@arcgis/lumina:handleStaticAssets",
5456
5461
  configResolved() {
5457
- t = Gc(e);
5462
+ t = Vc(e);
5458
5463
  },
5459
5464
  async configureServer(n) {
5460
5465
  e.server = n, !e.isInPuppeteerTestBackEnd && (ye(e, await t, i()), n.watcher.on("addDir", (s) => {
@@ -5469,7 +5474,7 @@ function qc(e) {
5469
5474
  }
5470
5475
  };
5471
5476
  }
5472
- async function Gc(e) {
5477
+ async function Vc(e) {
5473
5478
  const t = z("assets"), i = await e.componentFilesPromise, n = await Promise.all(
5474
5479
  i.map(async (s) => {
5475
5480
  const r = u.dirname(s), a = u.join(r, "assets");
@@ -5482,7 +5487,7 @@ const ts = (e, t) => ({
5482
5487
  type: "directory",
5483
5488
  source: e,
5484
5489
  destination: u.basename(t)
5485
- }), is = { type: "directory", source: "assets/", destination: "" }, pt = "@arcgis/lumina:printTotalBuildSize", Vc = (e) => ({
5490
+ }), is = { type: "directory", source: "assets/", destination: "" }, pt = "@arcgis/lumina:printTotalBuildSize", Xc = (e) => ({
5486
5491
  name: pt,
5487
5492
  apply: () => e.viteCommand === "build",
5488
5493
  configResolved(t) {
@@ -5499,10 +5504,10 @@ const ts = (e, t) => ({
5499
5504
  const m = console.log;
5500
5505
  console.log = function(...g) {
5501
5506
  if (m.apply(console, g), g.length === 1 && typeof g[0] == "string") {
5502
- const [y, v] = g[0].match(Qc) ?? [];
5507
+ const [y, v] = g[0].match(Zc) ?? [];
5503
5508
  if (!y)
5504
5509
  return;
5505
- p || (p = g[0].slice(0, g[0].indexOf(y) + y.length).replaceAll(Zc, "").length);
5510
+ p || (p = g[0].slice(0, g[0].indexOf(y) + y.length).replaceAll(Yc, "").length);
5506
5511
  const h = Number.parseFloat(y.replace(" kB", "").replaceAll(",", ""));
5507
5512
  v ? (d += Number.parseFloat(v.replace(" kB", "").replaceAll(",", "")), l += h) : c += h;
5508
5513
  }
@@ -5518,7 +5523,7 @@ const ts = (e, t) => ({
5518
5523
  [
5519
5524
  Ii,
5520
5525
  v,
5521
- Xc,
5526
+ Qc,
5522
5527
  "*",
5523
5528
  " ".repeat(p - `${v}*`.length - y.length),
5524
5529
  y,
@@ -5529,10 +5534,10 @@ const ts = (e, t) => ({
5529
5534
  }
5530
5535
  };
5531
5536
  }
5532
- }), ki = "\x1B[22m\x1B[1m\x1B[22m", Ii = "\x1B[2m", Xc = "\x1B[22m\x1B[36m", Qc = /\d+(?:,\d+)?\.\d{2} kB/gu, Zc = /\x1B\[\d+m/gu, Yc = new Intl.NumberFormat("en", {
5537
+ }), ki = "\x1B[22m\x1B[1m\x1B[22m", Ii = "\x1B[2m", Qc = "\x1B[22m\x1B[36m", Zc = /\d+(?:,\d+)?\.\d{2} kB/gu, Yc = /\x1B\[\d+m/gu, el = new Intl.NumberFormat("en", {
5533
5538
  maximumFractionDigits: 2,
5534
5539
  minimumFractionDigits: 2
5535
- }), Ai = (e) => `${Yc.format(e)} kB`, Li = "@arcgis/lumina:configureVite", el = (e) => ({
5540
+ }), Ai = (e) => `${el.format(e)} kB`, Li = "@arcgis/lumina:configureVite", tl = (e) => ({
5536
5541
  name: Li,
5537
5542
  async config({
5538
5543
  server: t,
@@ -5549,7 +5554,7 @@ const ts = (e, t) => ({
5549
5554
  */
5550
5555
  loader: "src/loader.ts",
5551
5556
  // Entrypoint for bundling used components only:
5552
- ...await Or(e)
5557
+ ...await Jr(e)
5553
5558
  }, { loader: y, ...v } = g, h = e.environment === "development" || e.isInTest ? {
5554
5559
  "process.env.ESRI_INTERNAL": "true"
5555
5560
  } : void 0, S = !import.meta.url.includes("node_modules"), E = {
@@ -5707,18 +5712,18 @@ const ts = (e, t) => ({
5707
5712
  }
5708
5713
  };
5709
5714
  }
5710
- }), tl = (e) => ({
5715
+ }), il = (e) => ({
5711
5716
  name: "@arcgis/lumina:setAssetPath",
5712
5717
  apply: () => e.viteCommand === "build",
5713
5718
  config: (t) => ({
5714
5719
  base: t.base ?? e.options.assets?.defaultPath ?? Ge()
5715
5720
  })
5716
5721
  });
5717
- function il(e = J()) {
5722
+ function nl(e = J()) {
5718
5723
  const t = e.version ?? "0.0.1";
5719
5724
  return bs(t);
5720
5725
  }
5721
- const nl = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5726
+ const sl = (e) => `/*! ${e} */`, k = (e) => (t, i) => {
5722
5727
  Object.defineProperty(t, i, {
5723
5728
  get() {
5724
5729
  throw Error(
@@ -5758,7 +5763,7 @@ const me = {
5758
5763
  stencilLikeDocsJson: "docs/docs.json"
5759
5764
  };
5760
5765
  async function ns(e, t, i, n, s = J()) {
5761
- const r = sl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await z(a) ? await O(a, "utf8") : "";
5766
+ const r = rl(e, i, n, s), a = u.join(t, "lumina.ts"), l = await z(a) ? await O(a, "utf8") : "";
5762
5767
  if (l.trim().replaceAll(`\r
5763
5768
  `, `
5764
5769
  `) === r.trim())
@@ -5778,7 +5783,7 @@ ${l}`
5778
5783
  );
5779
5784
  return Ki(a, r), !0;
5780
5785
  }
5781
- function sl(e, t, i, n = J()) {
5786
+ function rl(e, t, i, n = J()) {
5782
5787
  "@arcgis/components-controllers" in (n.dependencies ?? {}) && T.warn(
5783
5788
  "@arcgis/components-controllers",
5784
5789
  "Deprecation warning: the @arcgis/components-controllers package was merged into @arcgis/lumina. Please remove it from your package.json and rewrite code to import from @arcgis/lumina/controllers and @arcgis/lumina/controllers/accessor instead."
@@ -5793,11 +5798,11 @@ declare module "@arcgis/lumina" {
5793
5798
  interface ImportStencilElements extends ${r.map((m, f) => `JSX$${f}.IntrinsicElements`).join(", ")} {}
5794
5799
  }`, l = n.devDependencies ?? {}, d = i === "preview" ? "matchers" : i === "webdriverio" ? "webdriverio" : "playwright";
5795
5800
  return [
5796
- rl,
5801
+ ol,
5797
5802
  // Avoid cyclic references for tests in @arcgis/lumina
5798
5803
  n.name === "@arcgis/lumina" ? "" : `
5799
5804
  /// <reference types="@arcgis/lumina/typings" />`,
5800
- t ? ol : "",
5805
+ t ? al : "",
5801
5806
  l.vitest ? `
5802
5807
  /// <reference types="vitest/config" />` : "",
5803
5808
  l["@vitest/browser"] ? `
@@ -5811,7 +5816,7 @@ declare module "@arcgis/lumina" {
5811
5816
  `
5812
5817
  ].join("");
5813
5818
  }
5814
- const rl = `/**
5819
+ const ol = `/**
5815
5820
  * This file is autogenerated by \`@arcgis/lumina-compiler\` - do not edit it manually.
5816
5821
  * Manual edits will be overwritten.
5817
5822
  *
@@ -5819,7 +5824,7 @@ const rl = `/**
5819
5824
  * as well as @arcgis/core typings if you use @arcgis/core.
5820
5825
  *
5821
5826
  * If you need to provide additional typings, create a separate file.
5822
- */`, ol = `
5827
+ */`, al = `
5823
5828
  /// <reference types="@arcgis/core/interfaces" />`, Re = "@arcgis/lumina:dependencySupport", ss = (e, t) => e.viteCommand === "serve" && /**
5824
5829
  * Vitest started calling transformIndexHtml in browser mode versions ^2.1.4
5825
5830
  * However, it is a bit buggy (see
@@ -5831,10 +5836,10 @@ const rl = `/**
5831
5836
  * is doing:
5832
5837
  * https://github.com/storybookjs/storybook/blob/a5c2cf1712f70b4e3ecf38d3c98e7db8e8d67849/code/builders/builder-vite/src/plugins/code-generator-plugin.ts#L110
5833
5838
  */
5834
- e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, al = (e) => ({
5839
+ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand === "build" && !e.options.build?.cdn?.skip && e.options.build?.webApp?.destination !== void 0, cl = (e) => ({
5835
5840
  name: Re,
5836
5841
  configResolved() {
5837
- !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = cl(e).catch(
5842
+ !e.isInTest && !e.isInStorybook && (e._updateLuminaTsPromise = ll(e).catch(
5838
5843
  (t) => T.error(Re, `Failed to update package's src/lumina.ts: ${String(t)}`)
5839
5844
  ));
5840
5845
  },
@@ -5882,7 +5887,7 @@ e.isInStorybook && (t === void 0 || t.path === "/iframe.html") || e.viteCommand
5882
5887
  await e._updateLuminaTsPromise;
5883
5888
  }
5884
5889
  });
5885
- async function cl(e) {
5890
+ async function ll(e) {
5886
5891
  const i = (await Promise.all([we, qn(e)])).flat();
5887
5892
  if (!await ns(
5888
5893
  i,
@@ -5893,22 +5898,22 @@ async function cl(e) {
5893
5898
  return;
5894
5899
  let s = !1;
5895
5900
  function r() {
5896
- s || T.warn(Re, ll), s = !0;
5901
+ s || T.warn(Re, dl), s = !0;
5897
5902
  }
5898
5903
  process.on("exit", () => {
5899
5904
  r(), clearTimeout(c);
5900
5905
  });
5901
5906
  const c = setTimeout(r, 2e3);
5902
5907
  }
5903
- const ll = js.greenBright(
5908
+ const dl = js.greenBright(
5904
5909
  `lumina.ts has been updated (potentially because your dependencies changed). Please commit the updated file.
5905
5910
  If build failed with TypeScript errors, try running the build again to check whether new lumina.ts resolves the errors.`
5906
5911
  );
5907
- async function dl(e, t) {
5912
+ async function pl(e, t) {
5908
5913
  const i = /* @__PURE__ */ new Map();
5909
5914
  await Promise.all(
5910
5915
  e.map(async (s) => {
5911
- const r = await O(s, "utf-8"), a = r.match(pl)?.[1];
5916
+ const r = await O(s, "utf-8"), a = r.match(ul)?.[1];
5912
5917
  if (a === void 0) {
5913
5918
  T.warn(
5914
5919
  "@arcgis/lumina:parseStoryFiles",
@@ -5920,14 +5925,14 @@ async function dl(e, t) {
5920
5925
  let c = i.get(a);
5921
5926
  c === void 0 && (c = [], i.set(a, c));
5922
5927
  const l = [];
5923
- for (const d of r.matchAll(ul)) {
5924
- const p = d[1], m = yl(p), f = r.indexOf("{", d.index), g = r.indexOf("}", f), y = r.slice(0, d.index).trimEnd();
5928
+ for (const d of r.matchAll(ml)) {
5929
+ const p = d[1], m = hl(p), f = r.indexOf("{", d.index), g = r.indexOf("}", f), y = r.slice(0, d.index).trimEnd();
5925
5930
  let v = "";
5926
5931
  if (y.endsWith("*/")) {
5927
5932
  const E = y.lastIndexOf("/**");
5928
- v = y.slice(E + 3, -2).trim().replaceAll(fl, "");
5933
+ v = y.slice(E + 3, -2).trim().replaceAll(gl, "");
5929
5934
  }
5930
- const h = r.slice(f, g).match(ml)?.[1] || m, S = gl(m);
5935
+ const h = r.slice(f, g).match(fl)?.[1] || m, S = yl(m);
5931
5936
  l.push({
5932
5937
  description: `${h}${v ? `
5933
5938
  ${v}` : ""}`,
@@ -5952,11 +5957,11 @@ ${v}` : ""}`,
5952
5957
  }
5953
5958
  return n;
5954
5959
  }
5955
- const pl = /component: ["']([^"']+)["']/u, ul = /export const (\w+)/gu, ml = /name: ["']([^"']+)["']/u, fl = /^\s*\*\s?/gmu, gl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), yl = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim(), ie = { node: "^22" };
5956
- var hl = Object.defineProperty, I = (e, t, i, n) => {
5960
+ const ul = /component: ["']([^"']+)["']/u, ml = /export const (\w+)/gu, fl = /name: ["']([^"']+)["']/u, gl = /^\s*\*\s?/gmu, yl = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), hl = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, i, n, s) => `${i} ${n}${s}`).replace(/([a-z])([A-Z])/gu, (t, i, n) => `${i} ${n}`).replace(/([a-z])([0-9])/giu, (t, i, n) => `${i} ${n}`).replace(/([0-9])([a-z])/giu, (t, i, n) => `${i} ${n}`).replace(/(\s|^)(\w)/gu, (t, i, n) => `${i}${n.toUpperCase()}`).replace(/ +/gu, " ").trim(), ie = { node: "^22" };
5961
+ var vl = Object.defineProperty, I = (e, t, i, n) => {
5957
5962
  for (var s = void 0, r = e.length - 1, a; r >= 0; r--)
5958
5963
  (a = e[r]) && (s = a(t, i, s) || s);
5959
- return s && hl(t, i, s), s;
5964
+ return s && vl(t, i, s), s;
5960
5965
  };
5961
5966
  const W = "@arcgis/lumina:context";
5962
5967
  class x {
@@ -5997,9 +6002,9 @@ class x {
5997
6002
  "Vite output directory is outside the root directory. This is not officially supported by Lumina and may lead to unexpected behavior. Contact Lumina maintainers if you need this to be supported."
5998
6003
  ), this.isInStorybook = a.resolve.conditions.includes("storybook"), this.isFullApiExtraction = this.viteCommand === "build" || this.isInStorybook, this.hmrEnabled = this.viteCommand === "serve" && !this.isInTest && !!(a.server?.hmr ?? !0);
5999
6004
  const h = this.options.documentation?.publicStoryUrlPrefix;
6000
- this.isFullApiExtraction && typeof h == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await dl(this.componentStoryFiles, h)).then((S) => {
6005
+ this.isFullApiExtraction && typeof h == "string" ? this.componentStoriesPromise = this.componentFilesPromise.then(async () => await pl(this.componentStoryFiles, h)).then((S) => {
6001
6006
  this.componentStories = S;
6002
- }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), wc(this, a.build.sourcemap !== !1), ss(this) && Ee(this);
6007
+ }) : (this.componentStoriesPromise = void 0, this.componentStories = void 0), bc(this, a.build.sourcemap !== !1), ss(this) && Ee(this);
6003
6008
  }
6004
6009
  },
6005
6010
  configureServer: {
@@ -6038,9 +6043,9 @@ class x {
6038
6043
  webTypes: s.jetBrains === !1 ? void 0 : s.jetBrains?.webTypesFileName ? ue(s.jetBrains.webTypesFileName) : me.webTypes,
6039
6044
  vsCodeHtml: s.vsCode === !1 ? void 0 : s.vsCode?.htmlFileName ? ue(s.vsCode.htmlFileName) : me.vsCodeHtml,
6040
6045
  vsCodeCss: s.vsCode === !1 ? void 0 : s.vsCode?.cssFileName ? ue(s.vsCode.cssFileName) : me.vsCodeCss
6041
- }, vn(), this.componentFilesPromise = kt(this, u.resolve("src/components")), Sc(this);
6042
- const r = t.build?.preamble ?? il();
6043
- this.banner = nl(r);
6046
+ }, vn(), this.componentFilesPromise = kt(this, u.resolve("src/components")), wc(this);
6047
+ const r = t.build?.preamble ?? nl();
6048
+ this.banner = sl(r);
6044
6049
  }
6045
6050
  _inferBuildSetup({ command: t, mode: i }, n) {
6046
6051
  this.isInTest = process.env.NODE_ENV === "test", i === "production" || i === "development" ? this.environment = i : i === "test" || i === "benchmark" ? (this.environment = "development", this.isInTest = !0) : (T.warn(It, `Vite is running in unknown mode "${i}". Assuming development`), this.environment = "development"), this.viteCommand = t;
@@ -6198,7 +6203,7 @@ I([
6198
6203
  I([
6199
6204
  k("configResolved()")
6200
6205
  ], x.prototype, "_typeScriptPrinter");
6201
- const ut = "@arcgis/lumina:addNonLazyImports", vl = (e) => ({
6206
+ const ut = "@arcgis/lumina:addNonLazyImports", Sl = (e) => ({
6202
6207
  name: ut,
6203
6208
  apply: () => e.viteCommand === "build",
6204
6209
  generateBundle(t, i) {
@@ -6237,10 +6242,10 @@ const ut = "@arcgis/lumina:addNonLazyImports", vl = (e) => ({
6237
6242
  return [];
6238
6243
  const l = u.dirname(r), d = ve(l, e.dir.srcComponents, e), p = u.relative(e.dir.src, d);
6239
6244
  function m(b) {
6240
- const C = Xa(e, b, r);
6245
+ const C = Qa(e, b, r);
6241
6246
  if (C === void 0)
6242
6247
  return;
6243
- const A = Qa(C, p);
6248
+ const A = Za(C, p);
6244
6249
  if (A !== `./${p}`)
6245
6250
  return A.startsWith(".") ? `${A}/${Fi}` : A;
6246
6251
  }
@@ -6263,12 +6268,12 @@ ${P}
6263
6268
  deferredLoaders${E.join("")};` : P;
6264
6269
  return [
6265
6270
  D(u.join(e.dir.dist, p, Fi), $),
6266
- D(u.join(e.dir.dist, p, Sl), L)
6271
+ D(u.join(e.dir.dist, p, wl), L)
6267
6272
  ];
6268
6273
  });
6269
6274
  await Promise.all(s);
6270
6275
  }
6271
- }), Fi = "index.js", Sl = "index.d.ts", rs = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), rs(e, e[s].referencedBy, i, n))), wl = (e) => ({
6276
+ }), Fi = "index.js", wl = "index.d.ts", rs = (e, t, i, n = /* @__PURE__ */ new Set()) => t.flatMap((s) => i.has(s) ? [s] : n.has(s) ? [] : (n.add(s), rs(e, e[s].referencedBy, i, n))), bl = (e) => ({
6272
6277
  name: "@arcgis/lumina:handleDynamicAssets",
6273
6278
  configureServer(t) {
6274
6279
  e.server = t, !e.isInPuppeteerTestBackEnd && Ni(e).forEach(({ assets: i, transformers: n }) => ye(e, i, n));
@@ -6287,20 +6292,20 @@ function Ni(e) {
6287
6292
  "type" in n ? t.push(n) : "assets" in n && t.push(...n.assets);
6288
6293
  }), t.length > 0 && i.push({ assets: t }), e.assetsToProvide = void 0, i;
6289
6294
  }
6290
- const bt = "@arcgis/lumina:updatePackageJson", bl = (e) => ({
6295
+ const bt = "@arcgis/lumina:updatePackageJson", Tl = (e) => ({
6291
6296
  name: bt,
6292
6297
  apply: () => e.viteCommand === "serve" && e.environment === "development" && !e.isInTest && !e.isInCi,
6293
6298
  configResolved() {
6294
- Tl(e).catch(
6299
+ El(e).catch(
6295
6300
  (t) => T.error(bt, `Failed to update package's package.json:${String(t)}`)
6296
6301
  );
6297
6302
  }
6298
6303
  });
6299
- async function Tl(e) {
6300
- const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await O(t, "utf-8")), n = El(i, e);
6304
+ async function El(e) {
6305
+ const t = u.join(e.dir.root, "package.json"), i = JSON.parse(await O(t, "utf-8")), n = Cl(i, e);
6301
6306
  n && Ki(t, JSON.stringify(n, null, 2));
6302
6307
  }
6303
- function El(e, t) {
6308
+ function Cl(e, t) {
6304
6309
  const i = e?.devDependencies ?? {};
6305
6310
  Object.keys(e?.peerDependencies ?? {}).forEach((d) => {
6306
6311
  d in i || T.warn(
@@ -6339,20 +6344,20 @@ function El(e, t) {
6339
6344
  if (n)
6340
6345
  return e;
6341
6346
  }
6342
- const Cl = (e) => ({
6347
+ const $l = (e) => ({
6343
6348
  timestamp: e.apiJson.timestamp,
6344
6349
  compiler: e.apiJson.compiler,
6345
- components: $l(e),
6350
+ components: xl(e),
6346
6351
  typeLibrary: {}
6347
6352
  });
6348
- function $l(e) {
6353
+ function xl(e) {
6349
6354
  const t = [];
6350
6355
  for (const i of e.apiJson.modules)
6351
6356
  for (const n of i.declarations)
6352
- "customElement" in n && t.push(xl(n, i.path));
6357
+ "customElement" in n && t.push(Pl(n, i.path));
6353
6358
  return t;
6354
6359
  }
6355
- function xl(e, t) {
6360
+ function Pl(e, t) {
6356
6361
  const i = e.superclass ? [{ name: "superclass", text: JSON.stringify(e.superclass) }] : [];
6357
6362
  return {
6358
6363
  filePath: t,
@@ -6367,9 +6372,9 @@ function xl(e, t) {
6367
6372
  dependencies: [],
6368
6373
  dependencyGraph: {},
6369
6374
  deprecation: typeof e.deprecated == "boolean" ? e.deprecated ? "" : void 0 : e.deprecated,
6370
- props: e.members.map(Pl).filter(j),
6371
- methods: e.members.map(kl).filter(j),
6372
- events: e.events?.map(Il) ?? [],
6375
+ props: e.members.map(kl).filter(j),
6376
+ methods: e.members.map(Il).filter(j),
6377
+ events: e.events?.map(Al) ?? [],
6373
6378
  styles: e.cssProperties?.map((n) => ({
6374
6379
  name: n.name,
6375
6380
  annotation: "prop",
@@ -6381,7 +6386,7 @@ function xl(e, t) {
6381
6386
  listeners: []
6382
6387
  };
6383
6388
  }
6384
- function Pl(e) {
6389
+ function kl(e) {
6385
6390
  if (e.kind !== "field")
6386
6391
  return;
6387
6392
  const t = e, i = t.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(t.inheritedFrom) }] : [], n = t.readonly ? [{ name: "readonly", text: "" }] : [], s = t.docsTags?.some((r) => r.name === "required") ?? !1;
@@ -6422,7 +6427,7 @@ const Ot = (e) => Object.fromEntries(
6422
6427
  ]
6423
6428
  ) ?? []
6424
6429
  );
6425
- function kl(e) {
6430
+ function Il(e) {
6426
6431
  if (e.kind !== "method")
6427
6432
  return;
6428
6433
  const t = e, i = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [], n = t.parameters?.map(({ name: s, type: r, description: a }) => ({
@@ -6453,7 +6458,7 @@ function kl(e) {
6453
6458
  deprecation: typeof t.deprecated == "boolean" ? t.deprecated ? "" : void 0 : t.deprecated
6454
6459
  };
6455
6460
  }
6456
- function Il(e) {
6461
+ function Al(e) {
6457
6462
  const t = e.inheritedFrom ? [{ name: "inheritedFrom", text: JSON.stringify(e.inheritedFrom) }] : [];
6458
6463
  return {
6459
6464
  event: e.name,
@@ -6481,14 +6486,14 @@ const os = (e) => e.flatMap(
6481
6486
  name: `::part(${i.name})`,
6482
6487
  description: i.description || void 0
6483
6488
  })) ?? []
6484
- ), Al = (e) => e.attributes?.map((t) => ({
6489
+ ), Ll = (e) => e.attributes?.map((t) => ({
6485
6490
  name: t.name ?? "",
6486
6491
  description: Ze(t.description, t.deprecated) || void 0,
6487
6492
  default: t.default,
6488
6493
  value: {
6489
- type: Ll(t.type.values?.map(sn))
6494
+ type: Fl(t.type.values?.map(sn))
6490
6495
  }
6491
- })) ?? [], Ll = (e) => e?.length === 1 ? e[0] : e, Ze = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, xe = {
6496
+ })) ?? [], Fl = (e) => e?.length === 1 ? e[0] : e, Ze = (e = "", t = !1) => t === !1 ? e : `**Deprecated**${typeof t == "string" ? `: ${t}` : ""}. ${e}`, xe = {
6492
6497
  slots: "Slots",
6493
6498
  events: "Events",
6494
6499
  cssProperties: "CSS Properties",
@@ -6496,7 +6501,7 @@ const os = (e) => e.flatMap(
6496
6501
  methods: "Methods"
6497
6502
  };
6498
6503
  function cs(e) {
6499
- const t = Fl(e.slots), i = Nl(e.events), n = Dl(e.cssProperties), s = jl(e.cssParts), r = Rl(e.members), a = Ze(e.description, e.deprecated).trim();
6504
+ const t = Nl(e.slots), i = Dl(e.events), n = jl(e.cssProperties), s = Rl(e.cssParts), r = Ml(e.members), a = Ze(e.description, e.deprecated).trim();
6500
6505
  return [...a ? [`${a}
6501
6506
  --`] : [], i, r, t, n, s].filter(Boolean).join(`
6502
6507
 
@@ -6504,28 +6509,28 @@ function cs(e) {
6504
6509
  }
6505
6510
  const Pe = (e, t) => t === void 0 || t.length === 0 ? "" : `### ${e}
6506
6511
  ${t.join(`
6507
- `)}`, Fl = (e) => Pe(
6512
+ `)}`, Nl = (e) => Pe(
6508
6513
  xe.slots,
6509
6514
  e?.map((t) => `- ${t.name ? `**${t.name}**` : "_default_"} - ${t.description}`)
6510
- ), Nl = (e) => Pe(
6515
+ ), Dl = (e) => Pe(
6511
6516
  xe.events,
6512
6517
  e?.filter((t) => t.name !== null && t.name !== void 0).map((t) => `- **${t.name}**${t.description ? ` - ${t.description}` : ""}`)
6513
- ), Dl = (e = []) => Pe(
6518
+ ), jl = (e = []) => Pe(
6514
6519
  xe.cssProperties,
6515
6520
  e?.map(
6516
6521
  (t) => `- **${t.name}** - ${t.description} ${t.default ? `_(default: ${t.default})_}` : ""}`
6517
6522
  )
6518
- ), jl = (e) => Pe(
6523
+ ), Rl = (e) => Pe(
6519
6524
  xe.cssParts,
6520
6525
  e?.map((t) => `- **${t.name}** - ${t.description}`)
6521
- ), Rl = (e) => Pe(
6526
+ ), Ml = (e) => Pe(
6522
6527
  xe.methods,
6523
6528
  e.filter(gs).map(
6524
6529
  (t) => [`- \`${t.name}${t.signature}\``, Ze(t.description, t.deprecated)].filter(Boolean).join(" - ")
6525
6530
  )
6526
6531
  );
6527
- function Ml(e, t) {
6528
- const i = Ol(e), n = os(e), s = as(e), r = J();
6532
+ function Ol(e, t) {
6533
+ const i = Jl(e), n = os(e), s = as(e), r = J();
6529
6534
  return {
6530
6535
  $schema: "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
6531
6536
  name: r.name,
@@ -6543,21 +6548,21 @@ function Ml(e, t) {
6543
6548
  }
6544
6549
  };
6545
6550
  }
6546
- const Ol = (e) => e.map((t) => ({
6551
+ const Jl = (e) => e.map((t) => ({
6547
6552
  name: t.tagName,
6548
6553
  description: cs(t),
6549
6554
  "doc-url": t.demos?.[0]?.url,
6550
- attributes: Al(t),
6555
+ attributes: Ll(t),
6551
6556
  slots: t.slots?.map((i) => ({
6552
6557
  name: i.name,
6553
6558
  description: i.description
6554
6559
  })),
6555
6560
  events: Di(t),
6556
6561
  js: {
6557
- properties: Jl(t),
6562
+ properties: Kl(t),
6558
6563
  events: Di(t)
6559
6564
  }
6560
- })), Jl = (e) => e.members.filter(ys).map((t) => ({
6565
+ })), Kl = (e) => e.members.filter(ys).map((t) => ({
6561
6566
  name: t.name,
6562
6567
  description: t.description,
6563
6568
  type: t.type?.text
@@ -6565,30 +6570,30 @@ const Ol = (e) => e.map((t) => ({
6565
6570
  name: t.name,
6566
6571
  type: t.type?.text,
6567
6572
  description: t.description
6568
- })) ?? [], Kl = (e) => e.map((t) => ({
6573
+ })) ?? [], Wl = (e) => e.map((t) => ({
6569
6574
  name: t.tagName,
6570
6575
  description: cs(t),
6571
- attributes: Wl(t),
6576
+ attributes: Bl(t),
6572
6577
  references: t.demos?.map((i) => ({ name: i.description, url: i.url })) ?? []
6573
- })), Wl = (e) => e.attributes?.map((t) => ({
6578
+ })), Bl = (e) => e.attributes?.map((t) => ({
6574
6579
  name: t.name,
6575
6580
  description: Ze(t.description, t.deprecated) || void 0,
6576
- values: Bl(t)
6577
- })) ?? [], Bl = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], _l = (e) => ({
6581
+ values: _l(t)
6582
+ })) ?? [], _l = (e) => e.type.values?.map((t) => t.value ?? "").filter(Boolean).map((t) => ({ name: t })) ?? [], Hl = (e) => ({
6578
6583
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
6579
6584
  version: 1.1,
6580
- tags: Kl(e)
6581
- }), Hl = (e) => ({
6585
+ tags: Wl(e)
6586
+ }), Ul = (e) => ({
6582
6587
  $schema: "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
6583
6588
  version: 1.1,
6584
6589
  properties: os(e),
6585
6590
  pseudoElements: as(e)
6586
- }), Ul = "@arcgis/lumina:generateDocs";
6587
- function zl(e) {
6591
+ }), zl = "@arcgis/lumina:generateDocs";
6592
+ function ql(e) {
6588
6593
  return e._documentationFileNames.stencilLikeDocsJson !== void 0 && e.provideAssets([
6589
6594
  {
6590
6595
  type: "dynamic",
6591
- source: () => JSON.stringify(Cl(e), null, 2),
6596
+ source: () => JSON.stringify($l(e), null, 2),
6592
6597
  destination: u.join("../..", e._documentationFileNames.stencilLikeDocsJson)
6593
6598
  }
6594
6599
  ]), e._documentationFileNames.apiJson !== void 0 && e.provideAssets([
@@ -6598,7 +6603,7 @@ function zl(e) {
6598
6603
  destination: u.join("../..", e._documentationFileNames.apiJson)
6599
6604
  }
6600
6605
  ]), {
6601
- name: Ul,
6606
+ name: zl,
6602
6607
  async writeBundle() {
6603
6608
  if (e.isInStorybook)
6604
6609
  return;
@@ -6608,24 +6613,24 @@ function zl(e) {
6608
6613
  await es(a);
6609
6614
  const c = [];
6610
6615
  if (n !== void 0) {
6611
- const l = JSON.stringify(_l(e.apiJsonComponents), null, 2);
6616
+ const l = JSON.stringify(Hl(e.apiJsonComponents), null, 2);
6612
6617
  c.push(D(n, l));
6613
6618
  }
6614
6619
  if (s !== void 0) {
6615
- const l = JSON.stringify(Hl(e.apiJsonComponents), null, 2);
6620
+ const l = JSON.stringify(Ul(e.apiJsonComponents), null, 2);
6616
6621
  c.push(D(s, l));
6617
6622
  }
6618
6623
  if (r !== void 0) {
6619
- const l = Ml(e.apiJsonComponents, typeof t == "object" ? t : {});
6624
+ const l = Ol(e.apiJsonComponents, typeof t == "object" ? t : {});
6620
6625
  c.push(D(r, JSON.stringify(l, null, 2)));
6621
6626
  }
6622
6627
  await Promise.all(c);
6623
6628
  }
6624
6629
  };
6625
6630
  }
6626
- const ql = (e) => `import type { h, EventHandler } from "@arcgis/lumina";
6631
+ const Gl = (e) => `import type { h, EventHandler } from "@arcgis/lumina";
6627
6632
 
6628
- ${e.map(Gl).join(`
6633
+ ${e.map(Vl).join(`
6629
6634
 
6630
6635
  `)}
6631
6636
 
@@ -6637,7 +6642,7 @@ ${e.map(({ tagName: t, pascalCaseName: i }) => ` "${t}": Lumina${i};`).join
6637
6642
  }
6638
6643
  }
6639
6644
  }`;
6640
- function Gl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6645
+ function Vl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6641
6646
  const [s, r] = Qe(e, i);
6642
6647
  return [
6643
6648
  `interface Lumina${t} extends ${s}h.JSX.HTMLAttributes<HTML${t}Element> {
@@ -6650,7 +6655,7 @@ function Gl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6650
6655
  r
6651
6656
  ].join("");
6652
6657
  }
6653
- function Vl(e) {
6658
+ function Xl(e) {
6654
6659
  const t = ` interface IntrinsicElements extends PreactJsx.IntrinsicElements {
6655
6660
  ${e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": Preact${i};`).join(`
6656
6661
  `)}
@@ -6658,7 +6663,7 @@ ${e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": Preact${i};`).join
6658
6663
  return `import { JSX as PreactJsx } from "preact";
6659
6664
  import type { EventHandler } from "@arcgis/lumina";
6660
6665
 
6661
- ${e.map(Xl).join(`
6666
+ ${e.map(Ql).join(`
6662
6667
 
6663
6668
  `)}
6664
6669
 
@@ -6671,7 +6676,7 @@ ${t}
6671
6676
  }
6672
6677
  }`;
6673
6678
  }
6674
- function Xl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6679
+ function Ql({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6675
6680
  const [s, r] = Qe(e, i);
6676
6681
  return [
6677
6682
  `interface Preact${t} extends ${s}PreactJsx.HTMLAttributes<HTML${t}Element> {
@@ -6684,13 +6689,13 @@ function Xl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6684
6689
  r
6685
6690
  ].join("");
6686
6691
  }
6687
- function Ql(e) {
6692
+ function Zl(e) {
6688
6693
  const t = e.map(({ pascalCaseName: i, tagName: n }) => ` "${n}": React${i};`).join(`
6689
6694
  `);
6690
6695
  return `import type { HTMLProps } from 'react';
6691
6696
  import type { EventHandler } from "@arcgis/lumina";
6692
6697
 
6693
- ${e.map(Zl).join(`
6698
+ ${e.map(Yl).join(`
6694
6699
 
6695
6700
  `)}
6696
6701
 
@@ -6716,7 +6721,7 @@ ${t}
6716
6721
  }
6717
6722
  }`;
6718
6723
  }
6719
- function Zl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6724
+ function Yl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6720
6725
  const [s, r] = Qe(e, i);
6721
6726
  return [
6722
6727
  `interface React${t} extends ${s}HTMLProps<HTML${t}Element> {
@@ -6729,10 +6734,10 @@ function Zl({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6729
6734
  r
6730
6735
  ].join("");
6731
6736
  }
6732
- const Yl = (e) => `import { JSXBase as StencilJsx } from "@stencil/core/internal";
6737
+ const ed = (e) => `import { JSXBase as StencilJsx } from "@stencil/core/internal";
6733
6738
  import type { EventHandler } from "@arcgis/lumina";
6734
6739
 
6735
- ${e.map(ed).join(`
6740
+ ${e.map(td).join(`
6736
6741
 
6737
6742
  `)}
6738
6743
 
@@ -6750,7 +6755,7 @@ declare module "@stencil/core/internal/stencil-public-runtime" {
6750
6755
  interface IntrinsicElements extends ExposedElements {}
6751
6756
  }
6752
6757
  }`;
6753
- function ed({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6758
+ function td({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6754
6759
  const [s, r] = Qe(e, i);
6755
6760
  return [
6756
6761
  `interface Stencil${t} extends ${s}StencilJsx.HTMLAttributes<HTML${t}Element> {
@@ -6763,16 +6768,16 @@ function ed({ name: e, pascalCaseName: t, members: i, events: n = [] }) {
6763
6768
  r
6764
6769
  ].join("");
6765
6770
  }
6766
- const td = (e, t, i) => [i, t, id(e), nd(e)].join(`
6771
+ const id = (e, t, i) => [i, t, nd(e), sd(e)].join(`
6767
6772
 
6768
- `), id = (e) => e.filter((t) => (t.events?.length ?? 0) > 0).map(
6773
+ `), nd = (e) => e.filter((t) => (t.events?.length ?? 0) > 0).map(
6769
6774
  ({ pascalCaseName: t }) => `export interface ${t}CustomEvent<T> extends CustomEvent<T> {
6770
6775
  detail: T;
6771
6776
  target: HTML${t}Element;
6772
6777
  currentTarget: HTML${t}Element;
6773
6778
  }`
6774
6779
  ).join(`
6775
- `), nd = (e) => `export { ToEvents, TargetedEvent } from "@arcgis/lumina";
6780
+ `), sd = (e) => `export { ToEvents, TargetedEvent } from "@arcgis/lumina";
6776
6781
 
6777
6782
  declare global {
6778
6783
  interface HTMLElementTagNameMap {
@@ -6780,12 +6785,12 @@ ${e.map(({ pascalCaseName: t, tagName: i }) => ` "${i}": HTML${t}Element;`).j
6780
6785
  `)}
6781
6786
  }
6782
6787
 
6783
- ${e.map(sd).join(`
6788
+ ${e.map(rd).join(`
6784
6789
  `).split(`
6785
6790
  `).map((t) => t.length > 0 ? ` ${t}` : t).join(`
6786
6791
  `)}
6787
6792
  }`;
6788
- function sd({ name: e, pascalCaseName: t, events: i = [] }) {
6793
+ function rd({ name: e, pascalCaseName: t, events: i = [] }) {
6789
6794
  const n = i.length > 0, s = `${t}CustomEvent`, r = `HTML${t}Element`;
6790
6795
  return [
6791
6796
  n ? `interface ${r}EventMap {
@@ -6804,7 +6809,7 @@ ${n ? ` addEventListener<K extends keyof ${r}EventMap>(type: K, listener: (this
6804
6809
  }`
6805
6810
  ].join("");
6806
6811
  }
6807
- function rd(e) {
6812
+ function od(e) {
6808
6813
  let t;
6809
6814
  return {
6810
6815
  name: "@arcgis/lumina:generateFrameworkTypes",
@@ -6812,11 +6817,11 @@ function rd(e) {
6812
6817
  generateBundle() {
6813
6818
  if (e.isInStorybook)
6814
6819
  return;
6815
- t = Ma(e);
6820
+ t = Oa(e);
6816
6821
  const i = u.join(e.dir.dist, "index.d.ts");
6817
6822
  e._declarationTextTransformers.push((n) => {
6818
6823
  const { filePath: s, content: r } = n;
6819
- return s === i ? { filePath: s, content: td(e.apiJsonComponents, r, t) } : n;
6824
+ return s === i ? { filePath: s, content: id(e.apiJsonComponents, r, t) } : n;
6820
6825
  });
6821
6826
  },
6822
6827
  async writeBundle() {
@@ -6826,10 +6831,10 @@ function rd(e) {
6826
6831
  await Z(i);
6827
6832
  const n = `/// <reference types="../index.d.ts" />
6828
6833
  ${t.replaceAll("./", "../")}`, s = Object.entries({
6829
- react: Ql(e.apiJsonComponents),
6830
- preact: Vl(e.apiJsonComponents),
6831
- stencil: Yl(e.apiJsonComponents),
6832
- lumina: ql(e.apiJsonComponents)
6834
+ react: Zl(e.apiJsonComponents),
6835
+ preact: Xl(e.apiJsonComponents),
6836
+ stencil: ed(e.apiJsonComponents),
6837
+ lumina: Gl(e.apiJsonComponents)
6833
6838
  }).map(
6834
6839
  async ([r, a]) => await D(u.join(i, `${r}.d.ts`), `${n}
6835
6840
  ${a}`)
@@ -6838,36 +6843,36 @@ ${a}`)
6838
6843
  }
6839
6844
  };
6840
6845
  }
6841
- function od(e) {
6846
+ function ad(e) {
6842
6847
  return {
6843
6848
  name: "@arcgis/lumina:buildWrappers",
6844
6849
  apply: () => e.viteCommand === "build" && !!e.options.build?.wrappers?.length,
6845
6850
  async writeBundle() {
6846
6851
  e.isInStorybook || await Promise.all(
6847
6852
  e.options.build?.wrappers?.map(async (t) => {
6848
- t.type === "react18" && await ld(e, t);
6853
+ t.type === "react18" && await dd(e, t);
6849
6854
  }) ?? []
6850
6855
  );
6851
6856
  }
6852
6857
  };
6853
6858
  }
6854
- const ad = "react", ji = "@lit/react", cd = `
6855
- import React from "${ad}";
6859
+ const cd = "react", ji = "@lit/react", ld = `
6860
+ import React from "${cd}";
6856
6861
  import { createComponent } from "${ji}";
6857
6862
  import type { EventName } from "${ji}";
6858
6863
  import { makeReactWrapperFactory, getReactWrapperOptions } from "@arcgis/lumina";
6859
6864
 
6860
6865
  const createWrapper = /*@__PURE__*/ makeReactWrapperFactory(React, createComponent) as typeof createComponent;
6861
6866
  `;
6862
- async function ld(e, t) {
6867
+ async function dd(e, t) {
6863
6868
  const { name: i } = J(), n = [];
6864
6869
  for (const a of e.apiJson.modules)
6865
6870
  for (const c of a.declarations)
6866
- "customElement" in c && n.push(dd(c));
6867
- const s = [`/// <reference types="${i}" preserve="true" />`, cd, ...n].join(""), r = u.resolve(t.proxiesFile);
6871
+ "customElement" in c && n.push(pd(c));
6872
+ const s = [`/// <reference types="${i}" preserve="true" />`, ld, ...n].join(""), r = u.resolve(t.proxiesFile);
6868
6873
  await Z(u.dirname(r), { recursive: !0 }), await D(r, s);
6869
6874
  }
6870
- function dd(e) {
6875
+ function pd(e) {
6871
6876
  const t = e.events?.map(
6872
6877
  (i) => ` ${Ce(`on${Ts(i.name)}`)}: "${i.name}" as EventName<HTML${e.pascalCaseName}Element["${i.name}"]>,`
6873
6878
  ).join(`
@@ -6883,30 +6888,30 @@ ${t}
6883
6888
  );
6884
6889
  `;
6885
6890
  }
6886
- function kd(e = {}) {
6891
+ function Id(e = {}) {
6887
6892
  const t = new x(e), n = [
6888
6893
  t._plugin,
6889
- el(t),
6890
6894
  tl(t),
6895
+ il(t),
6896
+ Tl(t),
6897
+ Pr(t),
6898
+ _c(t),
6899
+ od(t),
6900
+ ql(t),
6901
+ vc(t),
6902
+ To(t),
6903
+ Gc(t),
6891
6904
  bl(t),
6892
- xr(t),
6893
- Bc(t),
6894
- rd(t),
6895
- zl(t),
6896
- hc(t),
6897
- bo(t),
6898
- qc(t),
6899
- wl(t),
6900
- vl(t),
6901
- al(t),
6905
+ Sl(t),
6906
+ cl(t),
6902
6907
  Rs(t),
6903
- Tc(t),
6904
- od(t),
6905
- Vc(t)
6908
+ Ec(t),
6909
+ ad(t),
6910
+ Xc(t)
6906
6911
  ].filter(j);
6907
6912
  return n.context = t, n;
6908
6913
  }
6909
- const Id = {
6914
+ const Ad = {
6910
6915
  initializeComponentDependencies: vn,
6911
6916
  updateLuminaTs: ns,
6912
6917
  propertyToAttributeMappings: _,
@@ -6921,7 +6926,7 @@ const Id = {
6921
6926
  };
6922
6927
  export {
6923
6928
  We as LuminaApiExtractor,
6924
- Id as exportsForCodemod,
6929
+ Ad as exportsForCodemod,
6925
6930
  Ge as inferCdnUrl,
6926
- kd as useLumina
6931
+ Id as useLumina
6927
6932
  };