@arcgis/api-extractor 5.2.0-next.1 → 5.2.0-next.11

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.
@@ -1,42 +1,43 @@
1
- import { l as H, a as se, e as De, p as me } from "./typeScript-Bi6LkUmP.js";
2
- import { a as be, o as xe, t as Le, b as Oe, c as Ne, e as Be, p as We, d as Ue, f as _, i as pe, g as je, h as ze, j as He, k as Je, n as Ve, r as Xe } from "./worker-C9agsAIe.js";
3
- import { getViewUrl as Ye, postProcessDeprecated as Q, postProcessDescription as R, postProcessDocsTags as V, resolveJsDocLink as qe } from "./extractor/processing/links.js";
1
+ import { l as H, a as se, e as Ge, p as pe } from "./typeScript-rpB6x3rO.js";
2
+ import { a as re, o as xe, t as De, b as Le, c as Ne, e as Oe, p as Be, d as We, f as _, i as ue, g as Ue, h as je, j as ze, k as He, n as Je, r as Ve } from "./worker-B9PXR8bT.js";
3
+ import { getViewUrl as Xe, postProcessDeprecated as Q, postProcessDescription as G, postProcessDocsTags as V, resolveJsDocLink as Ye } from "./extractor/processing/links.js";
4
4
  import E from "typescript";
5
- import { path as N, toPosixPathSeparators as Ze } from "@arcgis/components-build-utils";
5
+ import { path as O, toPosixPathSeparators as qe } from "@arcgis/components-build-utils";
6
6
  import { mkdir as ae, writeFile as Pe } from "fs/promises";
7
7
  import { styleText as x } from "node:util";
8
- import { kebabToPascal as _e } from "@arcgis/toolkit/string";
9
- import { g as h, a as fe, b as Ke, c as Qe, d as Ie, e as oe, p as ne } from "./privateContext-CB7P40up.js";
10
- import { apiTypeToImportType as le, globalPackageIdentifier as ke, getApiMemberName as et, getMaybeStaticApiMemberName as ce, mergeApiNodes as Se, naturalSortModules as tt, compareNamedNodes as it, compareClassMembers as ot } from "./utils/apiHelpers.js";
11
- import { printTypeParameters as te, printTypeAlias as nt } from "./utils/partPrinter.js";
12
- import { identity as Ee, debounce as rt } from "@arcgis/toolkit/function";
8
+ import { kebabToPascal as Ze } from "@arcgis/toolkit/string";
9
+ import { g as h, a as fe, b as _e, c as Ke, d as Ie, e as oe, p as ne } from "./privateContext-CB7P40up.js";
10
+ import { apiTypeToImportType as le, globalPackageIdentifier as me, getApiMemberName as Qe, getMaybeStaticApiMemberName as ce, mergeApiNodes as Se, naturalSortModules as et, compareNamedNodes as tt, compareClassMembers as it } from "./utils/apiHelpers.js";
11
+ import { printTypeParameters as te, printTypeAlias as ot } from "./utils/partPrinter.js";
12
+ import { getBasename as nt } from "./utils/astHelpers.js";
13
+ import { identity as ke, debounce as rt } from "@arcgis/toolkit/function";
13
14
  import { hasRuntimeDeclaration as st } from "./utils/inferEntrypoints.js";
14
15
  import { opendirSync as at, watch as lt, readFileSync as ct, statSync as dt } from "node:fs";
15
- const S = "/** @deprecated since 5.0. Refactor using \\@arcgis/codemod */", ft = `${S}
16
+ const k = "/** @deprecated since 5.0. Refactor using \\@arcgis/codemod */", ft = `${k}
16
17
  type HashMap<T> = Record<string, T | undefined>;
17
- ${S}
18
+ ${k}
18
19
  type nullish = null | undefined;
19
20
 
20
- ${S}
21
+ ${k}
21
22
  type IHandle = import("./core/Handles.js").ResourceHandle;
22
23
 
23
- ${S}
24
+ ${k}
24
25
  type GroupKey<T> = import("./core/Accessor.js").GroupKey<T>;
25
26
 
26
- ${S}
27
+ ${k}
27
28
  declare namespace __esri {
28
- ${S}
29
+ ${k}
29
30
  type Constructor<T> = new (...params: any[]) => T;
30
31
 
31
- ${S}
32
+ ${k}
32
33
  export type AnonymousAccessor = Accessor;
33
34
 
34
- ${S}
35
+ ${k}
35
36
  export type ReadonlyAccessor = Omit<Accessor, "set" | "_set" | "destroy" | "notifyChange" | "_get">;
36
37
 
37
38
  `, mt = `
38
39
 
39
- ${S}
40
+ ${k}
40
41
  export namespace CIM {
41
42
  export enum ExpressionReturnType {
42
43
  Default = "Default",
@@ -1089,12 +1090,12 @@ declare namespace __esri {
1089
1090
  | ExternalReferenceEnvelope;
1090
1091
  }
1091
1092
 
1092
- ${S}
1093
+ ${k}
1093
1094
  export type EventHandlerCallback = (selectionResult: SelectionResultType) => void;
1094
- ${S}
1095
+ ${k}
1095
1096
  export type On = (eventName: string, eventHandler: EventHandlerCallback) => IHandle;
1096
1097
  }`;
1097
- let B, D, j, W, O = "", U = "", q = "", ee = "";
1098
+ let B, D, j, W, N = "", U = "", q = "", ee = "";
1098
1099
  function pt(e, t) {
1099
1100
  j = void 0, W = void 0, U = e.path, q = "", ee = "";
1100
1101
  const i = `import("./${U}.js")`;
@@ -1102,12 +1103,12 @@ function pt(e, t) {
1102
1103
  const s = e.exports?.[0]?.declaration.name, a = h(e);
1103
1104
  if (a.constructorPropertiesInterface !== void 0) {
1104
1105
  const n = a.constructorPropertiesInterface;
1105
- ye(n), A.length !== 0 && (o += ue(n, U, n.name, t));
1106
+ he(n), A.length !== 0 && (o += ye(n, U, n.name, t));
1106
1107
  }
1107
1108
  let r;
1108
1109
  for (let n = 0; n < e.declarations.length; ++n) {
1109
1110
  const l = e.declarations[n];
1110
- if (ye(l), A.length === 0)
1111
+ if (he(l), A.length === 0)
1111
1112
  continue;
1112
1113
  const c = l.name === s, d = c ? "default" : l.name, m = l.kind === "function", f = l.kind === "variable";
1113
1114
  if (m || f) {
@@ -1121,7 +1122,7 @@ function pt(e, t) {
1121
1122
  }), Z(A[0], t), D === void 0 && t.emitError("Expected default export @esriCompatibilityName tag to include a #", {
1122
1123
  file: h(e).file,
1123
1124
  node: void 0
1124
- }), o += ` ${S}
1125
+ }), o += ` ${k}
1125
1126
  interface ${D} {
1126
1127
  ${l.name}: typeof ${i}.${d};
1127
1128
  }
@@ -1139,36 +1140,36 @@ function pt(e, t) {
1139
1140
  }), Z(A[0], t), (D !== void 0 || B !== void 0) && t.emitError("Expected default export @esriCompatibilityName tag to not include a # or .", {
1140
1141
  file: h(e).file,
1141
1142
  node: void 0
1142
- }), o += ` export const ${O}: typeof ${i}.default;
1143
+ }), o += ` export const ${N}: typeof ${i}.default;
1143
1144
 
1144
1145
  `;
1145
1146
  continue;
1146
1147
  }
1147
1148
  for (let p = 0; p < A.length; ++p)
1148
- Z(A[p], t), f && j !== void 0 ? q += ` export const ${O}: ${i}.${d};
1149
- ` : ee += ` ${O}: typeof ${i}.${d};
1149
+ Z(A[p], t), f && j !== void 0 ? q += ` export const ${N}: ${i}.${d};
1150
+ ` : ee += ` ${N}: typeof ${i}.${d};
1150
1151
  `;
1151
1152
  } else if (l.kind === "class" || l.kind === "mixin" || l.kind === "interface" && fe(l).isMixinBaseClass === !0) {
1152
1153
  const p = te(K(l.typeParameters, !1, U)), g = te(K(l.typeParameters, !1, void 0)), u = te(K(l.typeParameters, !0, void 0)), v = ` ${i}.${d}`;
1153
1154
  for (let C = 0; C < A.length; ++C) {
1154
- if (Z(A[C], t), O.startsWith("$")) {
1155
- const b = O.slice(1);
1155
+ if (Z(A[C], t), N.startsWith("$")) {
1156
+ const b = N.slice(1);
1156
1157
  o += ut(b, l, d, U);
1157
1158
  continue;
1158
1159
  }
1159
1160
  const y = B === void 0 ? " " : " ";
1160
- o += `${y}${S}
1161
- ${y}export type ${O}${p} =${v}${g};
1162
- ${y}export const ${O}: typeof${v}${u};
1161
+ o += `${y}${k}
1162
+ ${y}export type ${N}${p} =${v}${g};
1163
+ ${y}export const ${N}: typeof${v}${u};
1163
1164
 
1164
1165
  `;
1165
1166
  }
1166
- } else l.kind === "interface" && (o += ue(l, U, d, t));
1167
+ } else l.kind === "interface" && (o += ye(l, U, d, t));
1167
1168
  }
1168
1169
  return q.length > 0 && (j === void 0 && t.emitError("Invalid @esriCompatibilityName usage: Namespace name was not set correctly.", {
1169
1170
  file: h(e).file,
1170
1171
  node: void 0
1171
- }), o += ` ${S}
1172
+ }), o += ` ${k}
1172
1173
  namespace ${j} {
1173
1174
  ${q.slice(0, -1)} }
1174
1175
 
@@ -1178,7 +1179,7 @@ ${q.slice(0, -1)} }
1178
1179
  file: h(e).file,
1179
1180
  node: void 0
1180
1181
  }
1181
- ), o += ` ${S}
1182
+ ), o += ` ${k}
1182
1183
  interface ${W} {
1183
1184
  ${ee} }
1184
1185
 
@@ -1186,15 +1187,15 @@ ${ee} }
1186
1187
 
1187
1188
  `), o;
1188
1189
  }
1189
- function ue(e, t, i, o) {
1190
+ function ye(e, t, i, o) {
1190
1191
  const s = te(K(e.typeParameters, !1, void 0)), a = K(e.typeParameters, !1, t), r = `import("./${t}.js").${i}${s}`;
1191
1192
  let n = "";
1192
1193
  for (let l = 0; l < A.length; ++l) {
1193
1194
  Z(A[l], o);
1194
- const c = nt(O, a, void 0, r);
1195
- B === void 0 ? n += ` ${S}
1195
+ const c = ot(N, a, void 0, r);
1196
+ B === void 0 ? n += ` ${k}
1196
1197
  ${c}
1197
- ` : q += ` ${S}
1198
+ ` : q += ` ${k}
1198
1199
  ${c}
1199
1200
 
1200
1201
  `;
@@ -1245,13 +1246,13 @@ function K(e, t, i) {
1245
1246
  }
1246
1247
  const ie = [];
1247
1248
  let A = ie;
1248
- function ye(e) {
1249
- e.kind === "variable" ? A = Ke(e).esriCompatibilityNames ?? ie : e.kind === "function" ? A = Qe(e).esriCompatibilityNames ?? ie : A = fe(e).esriCompatibilityNames ?? ie;
1249
+ function he(e) {
1250
+ e.kind === "variable" ? A = _e(e).esriCompatibilityNames ?? ie : e.kind === "function" ? A = Ke(e).esriCompatibilityNames ?? ie : A = fe(e).esriCompatibilityNames ?? ie;
1250
1251
  }
1251
1252
  function Z(e, t) {
1252
1253
  const i = e.indexOf(".");
1253
1254
  if (i !== -1) {
1254
- B = e.slice(0, i), D = void 0, O = e.slice(i + 1), j === void 0 ? j = B : j !== B && t.emitError(
1255
+ B = e.slice(0, i), D = void 0, N = e.slice(i + 1), j === void 0 ? j = B : j !== B && t.emitError(
1255
1256
  `Invalid @esriCompatibilityName usage: Multiple different namespaces in a single file are not supported. Found ${j} and ${B}`,
1256
1257
  {
1257
1258
  file: void 0,
@@ -1263,7 +1264,7 @@ function Z(e, t) {
1263
1264
  }
1264
1265
  const o = e.indexOf("#");
1265
1266
  if (o !== -1) {
1266
- B = void 0, D = e.slice(0, o), O = e.slice(o + 1), W === void 0 ? W = D : W !== D && t.emitError(
1267
+ B = void 0, D = e.slice(0, o), N = e.slice(o + 1), W === void 0 ? W = D : W !== D && t.emitError(
1267
1268
  `Invalid @esriCompatibilityName usage: Multiple different __esri interfaces in a single file are not supported. Found ${W} and ${D}`,
1268
1269
  {
1269
1270
  file: void 0,
@@ -1273,14 +1274,14 @@ function Z(e, t) {
1273
1274
  );
1274
1275
  return;
1275
1276
  }
1276
- B = void 0, D = void 0, O = e;
1277
+ B = void 0, D = void 0, N = e;
1277
1278
  }
1278
1279
  function ut(e, t, i, o) {
1279
1280
  const s = yt(e, t.events), r = `${// IdentityManager fake class got renamed to IdentityManagerBase real class
1280
- t.name.startsWith(A[0]) ? A[0] : t.name}${_e(e)}Event`, n = ht(s, o) ?? ` = import("./${o}.js").${i}["@eventTypes"]["${e}"]`, l = n.startsWith("<") ? n.indexOf(">") + 1 : -1, c = l !== -1 ? n.slice(0, l) : "";
1281
- return ` ${S}
1281
+ t.name.startsWith(A[0]) ? A[0] : t.name}${Ze(e)}Event`, n = ht(s, o) ?? ` = import("./${o}.js").${i}["@eventTypes"]["${e}"]`, l = n.startsWith("<") ? n.indexOf(">") + 1 : -1, c = l !== -1 ? n.slice(0, l) : "";
1282
+ return ` ${k}
1282
1283
  export type ${r}${n};
1283
- ${S}
1284
+ ${k}
1284
1285
  export type ${r}Handler${c} = (event: ${r}${c}) => void;
1285
1286
 
1286
1287
  `;
@@ -1315,17 +1316,17 @@ function gt(e, t) {
1315
1316
  return i + mt;
1316
1317
  }
1317
1318
  function vt(e, t, i) {
1318
- let o = "";
1319
+ let o = Ct(t.file);
1319
1320
  const s = t.importsMap, a = /* @__PURE__ */ Object.create(null);
1320
1321
  for (const r in s) {
1321
1322
  const n = s[r];
1322
1323
  if (!n.wasUsed)
1323
1324
  continue;
1324
- let l = n.specifier;
1325
+ let l = n.rawSpecifier;
1325
1326
  if (n.replacementName !== void 0) {
1326
1327
  const d = s[n.replacementName];
1327
1328
  if (d?.wasUsed === !0) {
1328
- d.specifier !== n.specifier && i.emitError(
1329
+ d.modulePath !== n.modulePath && i.emitError(
1329
1330
  `Failed to perform type replacement of ${r} with ${n.replacementName} because ${n.replacementName} is already imported from ${d.modulePath}, where as type replacement was going to import it from ${n.modulePath}. Either manually replace ${n.replacementName} usage with ${r} or alias ${r} to another name.`,
1330
1331
  {
1331
1332
  file: t.file,
@@ -1350,7 +1351,7 @@ function vt(e, t, i) {
1350
1351
  }
1351
1352
  );
1352
1353
  } else
1353
- l = re(g, t);
1354
+ l = re(t.dtsPath, g.dtsPath);
1354
1355
  }
1355
1356
  const d = a[l], m = n.actualName === void 0 ? c : `${n.actualName} as ${c}`;
1356
1357
  a[l] = d === void 0 ? m : `${d}, ${m}`;
@@ -1363,7 +1364,7 @@ function vt(e, t, i) {
1363
1364
  file: t.file,
1364
1365
  node: void 0
1365
1366
  }
1366
- ) : l = re(m, t);
1367
+ ) : l = re(t.dtsPath, m.dtsPath);
1367
1368
  }
1368
1369
  o += `import type ${c} from "${l}";
1369
1370
  `;
@@ -1376,7 +1377,7 @@ function vt(e, t, i) {
1376
1377
  file: t.file,
1377
1378
  node: void 0
1378
1379
  }
1379
- ) : l = re(h(d), t);
1380
+ ) : l = re(t.dtsPath, h(d).dtsPath);
1380
1381
  }
1381
1382
  c === "__esri" ? o = `/// <reference types="@arcgis/core/interfaces.d.ts" />
1382
1383
  ${o}` : o += `import type * as ${c} from "${l}";
@@ -1396,10 +1397,26 @@ ${o}` : o += `import type * as ${c} from "${l}";
1396
1397
  t.importsText = o;
1397
1398
  }
1398
1399
  }
1399
- function re(e, t) {
1400
- return `${be(t.dtsPath, e.dtsPath)}.js`;
1400
+ function Ct(e) {
1401
+ let t = "";
1402
+ for (let i = 0; i < e.libReferenceDirectives.length; ++i) {
1403
+ const o = e.libReferenceDirectives[i];
1404
+ o.preserve === !0 && (t += `/// <reference lib="${o.fileName}" preserve="true" />
1405
+ `);
1406
+ }
1407
+ for (let i = 0; i < e.typeReferenceDirectives.length; ++i) {
1408
+ const o = e.typeReferenceDirectives[i];
1409
+ o.preserve === !0 && (t += `/// <reference types="${o.fileName}" preserve="true" />
1410
+ `);
1411
+ }
1412
+ for (let i = 0; i < e.referencedFiles.length; ++i) {
1413
+ const o = e.referencedFiles[i];
1414
+ o.preserve === !0 && (t += `/// <reference path="${nt(o.fileName)}.d.ts" preserve="true" />
1415
+ `);
1416
+ }
1417
+ return t;
1401
1418
  }
1402
- function Ct(e, t, i, o) {
1419
+ function Mt(e, t, i, o) {
1403
1420
  const s = e.references;
1404
1421
  if (s !== void 0) {
1405
1422
  if (t.autoCastingRequiresType === void 0 && s.length > 1 && s[0].module === "core/Collection")
@@ -1407,20 +1424,20 @@ function Ct(e, t, i, o) {
1407
1424
  t.autoCastingRequiresType = !0;
1408
1425
  else {
1409
1426
  const a = s[1], r = a.module === void 0 ? i : o.moduleMap.get(a.module), n = r === void 0 ? void 0 : h(r), l = a.name === "default" ? n?.index.default : n?.index.named[a.name];
1410
- Ae(l) && (t.autoCastingRequiresType = !0);
1427
+ Fe(l) && (t.autoCastingRequiresType = !0);
1411
1428
  }
1412
- return Te(e, t, o, i, s);
1429
+ return Ee(e, t, o, i, s);
1413
1430
  }
1414
1431
  }
1415
- function Te(e, t, i, o, s) {
1432
+ function Ee(e, t, i, o, s) {
1416
1433
  for (let a = s.length - 1; a >= 0; a--) {
1417
1434
  const r = s[a];
1418
1435
  if (r.package !== void 0) {
1419
- r.package === ke && r.name === "Date" && he(
1436
+ r.package === me && r.name === "Date" && ge(
1420
1437
  e,
1421
1438
  s,
1422
1439
  a,
1423
- { type: xt, inheritedFrom: void 0 },
1440
+ { type: Pt, inheritedFrom: void 0 },
1424
1441
  i,
1425
1442
  o,
1426
1443
  t
@@ -1428,7 +1445,7 @@ function Te(e, t, i, o, s) {
1428
1445
  continue;
1429
1446
  }
1430
1447
  const n = r.module === void 0 ? o : i.moduleMap.get(r.module), l = n === void 0 ? void 0 : h(n), c = r.name === "default" ? l?.index.default : l?.index.named[r.name];
1431
- if (Ae(c)) {
1448
+ if (Fe(c)) {
1432
1449
  const m = `(${c.type.text})`, f = e.text;
1433
1450
  e.text = `${e.text.slice(0, r.start)}${m}${e.text.slice(r.end)}`;
1434
1451
  const p = e.text, g = r.start + 1, u = [];
@@ -1441,7 +1458,7 @@ function Te(e, t, i, o, s) {
1441
1458
  end: y.end + g
1442
1459
  });
1443
1460
  }
1444
- if (Te(e, t, i, o, u), e.text === p) {
1461
+ if (Ee(e, t, i, o, u), e.text === p) {
1445
1462
  e.text = f;
1446
1463
  continue;
1447
1464
  }
@@ -1452,7 +1469,7 @@ function Te(e, t, i, o, s) {
1452
1469
  }
1453
1470
  if (c?.kind !== "class")
1454
1471
  continue;
1455
- const d = $e(c, n, void 0, i);
1472
+ const d = Te(c, n, void 0, i);
1456
1473
  if (d === void 0) {
1457
1474
  i.emitError(
1458
1475
  `Failed to resolve auto-castable type for ${x("red", c.name)} from ${x("red", n.sourcePath)}. Ensure the class either has a public constructor or a public ${x("green", c.name)}Properties interface. Auto-casting resolution was attempted because this class is used in an autocastable property in ${x("blue", o.sourcePath)} in type ${x("blue", e.text)}.`,
@@ -1463,7 +1480,7 @@ function Te(e, t, i, o, s) {
1463
1480
  );
1464
1481
  continue;
1465
1482
  }
1466
- he(
1483
+ ge(
1467
1484
  e,
1468
1485
  s,
1469
1486
  a,
@@ -1474,14 +1491,14 @@ function Te(e, t, i, o, s) {
1474
1491
  );
1475
1492
  }
1476
1493
  }
1477
- function $e(e, t, i, o) {
1494
+ function Te(e, t, i, o) {
1478
1495
  const s = h(t), a = s.constructorAutoCastType;
1479
1496
  if (a !== void 0)
1480
1497
  return a;
1481
- const r = Mt(e, t, i, o);
1498
+ const r = bt(e, t, i, o);
1482
1499
  return r !== void 0 && (s.constructorAutoCastType = r), r;
1483
1500
  }
1484
- function Mt(e, t, i, o) {
1501
+ function bt(e, t, i, o) {
1485
1502
  if (e.members !== void 0)
1486
1503
  for (let r = 0; r < e.members.length; ++r) {
1487
1504
  const n = e.members[r];
@@ -1505,7 +1522,7 @@ function Mt(e, t, i, o) {
1505
1522
  name: a.name,
1506
1523
  module: t.path,
1507
1524
  package: void 0,
1508
- viewUrl: Ye(t.path, a.name, void 0, o),
1525
+ viewUrl: Xe(t.path, a.name, void 0, o),
1509
1526
  start: 0,
1510
1527
  end: a.name.length
1511
1528
  }
@@ -1516,10 +1533,10 @@ function Mt(e, t, i, o) {
1516
1533
  if (e.superclass !== void 0) {
1517
1534
  const r = e.superclass.module === void 0 ? t : o.moduleMap.get(e.superclass.module), c = (r === void 0 ? void 0 : h(r))?.index?.class;
1518
1535
  if (c !== void 0)
1519
- return $e(c, r, r, o);
1536
+ return Te(c, r, r, o);
1520
1537
  }
1521
1538
  }
1522
- function he(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1539
+ function ge(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1523
1540
  let l = o.references;
1524
1541
  l.length === 2 && l[0].name === "ReadonlyArrayOrCollection" && l[1].name === "T" && (l = [l[0]], o = {
1525
1542
  ...o,
@@ -1553,15 +1570,15 @@ function he(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1553
1570
  );
1554
1571
  continue;
1555
1572
  }
1556
- Fe(g, C, a, r);
1573
+ $e(g, C, a, r);
1557
1574
  const M = d.start, I = {
1558
1575
  ...g,
1559
1576
  start: g.start + M + f,
1560
1577
  end: g.end + M + f
1561
1578
  }, P = y.typeName;
1562
1579
  if (l.length === 1 && n.autoCastingRequiresType === !0 && P !== void 0) {
1563
- const L = n.autoCastingDefaultType === P, k = `(${u} & { type${L ? "?" : ""}: "${P}" })`, F = k.length - u.length;
1564
- f += F, I.end += F, c = c.slice(0, g.start) + k + c.slice(g.end);
1580
+ const L = n.autoCastingDefaultType === P, S = `(${u} & { type${L ? "?" : ""}: "${P}" })`, F = S.length - u.length;
1581
+ f += F, I.end += F, c = c.slice(0, g.start) + S + c.slice(g.end);
1565
1582
  }
1566
1583
  t.splice(i, 0, I);
1567
1584
  }
@@ -1571,10 +1588,10 @@ function he(e, t, i, { type: o, inheritedFrom: s }, a, r, n) {
1571
1588
  i + (l?.length ?? 0)
1572
1589
  ), !0;
1573
1590
  }
1574
- function Fe(e, t, i, o) {
1591
+ function $e(e, t, i, o) {
1575
1592
  const s = h(o);
1576
1593
  if (e.package !== void 0) {
1577
- if (e.package === ke)
1594
+ if (e.package === me)
1578
1595
  return;
1579
1596
  i.emitError(
1580
1597
  `Unsupported case: cannot yet handle auto-adding imports for external packages. Tried to add ${e.name} from ${e.package} when resolving auto-casting type.`,
@@ -1604,7 +1621,7 @@ function Fe(e, t, i, o) {
1604
1621
  d === void 0 ? s.importsMap[n] = {
1605
1622
  type: e.name === "default" ? "default" : "named",
1606
1623
  modulePath: t.path,
1607
- specifier: be(s.dtsPath, a.dtsPath),
1624
+ rawSpecifier: "",
1608
1625
  replacementName: void 0,
1609
1626
  actualName: l,
1610
1627
  wasUsed: !0
@@ -1616,10 +1633,10 @@ function Fe(e, t, i, o) {
1616
1633
  }
1617
1634
  ) : d.wasUsed = !0;
1618
1635
  }
1619
- function Ae(e) {
1620
- return e?.kind === "interface" && e.members === void 0 && e.supertypes === void 0 && e.type?.references !== void 0 && e.type.references.length > 1 && e.typeParameters === void 0 && bt(e.type);
1636
+ function Fe(e) {
1637
+ return e?.kind === "interface" && e.members === void 0 && e.supertypes === void 0 && e.type?.references !== void 0 && e.type.references.length > 1 && e.typeParameters === void 0 && xt(e.type);
1621
1638
  }
1622
- function bt(e) {
1639
+ function xt(e) {
1623
1640
  let t = 0;
1624
1641
  for (let i = 0; i < e.references.length; ++i) {
1625
1642
  const o = e.references[i], s = e.text.slice(t, o.start).trim();
@@ -1629,14 +1646,14 @@ function bt(e) {
1629
1646
  }
1630
1647
  return t === e.text.length;
1631
1648
  }
1632
- const xt = {
1649
+ const Pt = {
1633
1650
  // Wrap in parents to correctly substitute Date[] in TimeInfo.stops
1634
1651
  text: "(Date | number | string)",
1635
1652
  references: [
1636
1653
  {
1637
1654
  name: "Date",
1638
1655
  module: void 0,
1639
- package: "global:",
1656
+ package: me,
1640
1657
  viewUrl: "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date",
1641
1658
  start: 1,
1642
1659
  end: 5
@@ -1645,19 +1662,19 @@ const xt = {
1645
1662
  values: void 0,
1646
1663
  source: void 0
1647
1664
  };
1648
- function Pt(e, t) {
1665
+ function It(e, t) {
1649
1666
  const i = e.constructorPropertiesInterface;
1650
1667
  i.type = void 0;
1651
1668
  const o = h(t.apiModule).index.class;
1652
1669
  i.typeParameters = o.typeParameters;
1653
1670
  const s = o.superclass;
1654
1671
  if (s !== void 0) {
1655
- const r = ge(s, t);
1672
+ const r = ve(s, t);
1656
1673
  r !== void 0 && (i.supertypes ??= [], i.supertypes.push(r));
1657
1674
  }
1658
1675
  if (o.mixins !== void 0)
1659
1676
  for (let r = 0; r < o.mixins.length; ++r) {
1660
- const n = o.mixins[r], l = ge(n, t);
1677
+ const n = o.mixins[r], l = ve(n, t);
1661
1678
  l !== void 0 && (i.supertypes ??= [], i.supertypes.push(l));
1662
1679
  }
1663
1680
  let a = "";
@@ -1733,7 +1750,7 @@ function Pt(e, t) {
1733
1750
  i.supertypes.push(n);
1734
1751
  }
1735
1752
  }
1736
- function ge(e, t) {
1753
+ function ve(e, t) {
1737
1754
  if (e.package !== void 0)
1738
1755
  return;
1739
1756
  const i = t.moduleMap.get(e.module);
@@ -1758,16 +1775,16 @@ function ge(e, t) {
1758
1775
  * views/3d/environment/SunLighting as it imports webscene/SunLighting.
1759
1776
  * apiReference.name !== class.name for references to mixin base classes.
1760
1777
  */
1761
- [ne]: a === e.name ? void 0 : It(a, o.index.class.name),
1778
+ [ne]: a === e.name ? void 0 : St(a, o.index.class.name),
1762
1779
  name: s.name,
1763
1780
  module: e.module,
1764
1781
  package: e.package,
1765
1782
  viewUrl: e.viewUrl,
1766
1783
  typeArguments: void 0
1767
1784
  };
1768
- return Fe(r, i, t, t.apiModule), r[ne] ??= s.name, r;
1785
+ return $e(r, i, t, t.apiModule), r[ne] ??= s.name, r;
1769
1786
  }
1770
- function It(e, t) {
1787
+ function St(e, t) {
1771
1788
  if (e === void 0 || e === t)
1772
1789
  return;
1773
1790
  const i = e.indexOf("<");
@@ -1791,7 +1808,7 @@ function kt(e) {
1791
1808
  description: s.description,
1792
1809
  inheritedFrom: s.inheritedFrom,
1793
1810
  type: a === void 0 || a.length === 0 ? s.type : {
1794
- text: Le(a),
1811
+ text: De(a),
1795
1812
  references: void 0,
1796
1813
  values: a,
1797
1814
  source: void 0
@@ -1815,7 +1832,7 @@ const de = {
1815
1832
  */
1816
1833
  deferred: 1
1817
1834
  };
1818
- function St(e, t, i, o) {
1835
+ function Et(e, t, i, o) {
1819
1836
  const s = e;
1820
1837
  o.produceDts && (fe(t).eventTypesProperty = s);
1821
1838
  const a = h(i), r = `${t.name}Events`;
@@ -1842,9 +1859,9 @@ function St(e, t, i, o) {
1842
1859
  );
1843
1860
  return;
1844
1861
  }
1845
- t.events ??= [], we(n, t, i, void 0, o);
1862
+ t.events ??= [], Ae(n, t, i, void 0, o);
1846
1863
  }
1847
- function we(e, t, i, o, s) {
1864
+ function Ae(e, t, i, o, s) {
1848
1865
  const a = o !== void 0;
1849
1866
  if (o ??= /* @__PURE__ */ new Set(), e.type !== void 0) {
1850
1867
  s.emitError(
@@ -1861,7 +1878,7 @@ function we(e, t, i, o, s) {
1861
1878
  const n = e.members[r];
1862
1879
  if (n.kind !== "field") {
1863
1880
  s.emitError(
1864
- `Event interfaces should only contain properties. Found ${et(n)} of kind ${x("red", n.kind)} in ${e.name}.`,
1881
+ `Event interfaces should only contain properties. Found ${Qe(n)} of kind ${x("red", n.kind)} in ${e.name}.`,
1865
1882
  {
1866
1883
  file: h(i).file,
1867
1884
  node: void 0
@@ -1901,10 +1918,10 @@ function we(e, t, i, o, s) {
1901
1918
  );
1902
1919
  return;
1903
1920
  }
1904
- we(c, t, l, o, s);
1921
+ Ae(c, t, l, o, s);
1905
1922
  }
1906
1923
  }
1907
- function Ge(e, t, i) {
1924
+ function we(e, t, i) {
1908
1925
  const o = h(e);
1909
1926
  if (o.inheritance !== void 0)
1910
1927
  return;
@@ -1915,14 +1932,14 @@ function Ge(e, t, i) {
1915
1932
  const f = t.members[m];
1916
1933
  if (f.kind === "field") {
1917
1934
  if (f.name === "@eventTypes") {
1918
- a = !0, St(f, t, e, i), t.members.splice(m, 1), m -= 1;
1935
+ a = !0, Et(f, t, e, i), t.members.splice(m, 1), m -= 1;
1919
1936
  continue;
1920
1937
  }
1921
- f.inheritedFrom === void 0 && Tt(f, e, i);
1938
+ f.inheritedFrom === void 0 && $t(f, e, i);
1922
1939
  }
1923
1940
  }
1924
1941
  const r = t;
1925
- let n = t.mixins, l = r.superclass, c = l === void 0 ? void 0 : Me(l, e, i);
1942
+ let n = t.mixins, l = r.superclass, c = l === void 0 ? void 0 : be(l, e, i);
1926
1943
  if (c?.supertypes !== void 0) {
1927
1944
  n = n === void 0 ? [] : [...n];
1928
1945
  do {
@@ -1931,28 +1948,28 @@ function Ge(e, t, i) {
1931
1948
  const g = c.supertypes[p], u = g.module === void 0 ? { ...g, module: l.module } : g;
1932
1949
  n.unshift(u);
1933
1950
  }
1934
- l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 : Me(l, e, i);
1951
+ l = m ? c.supertypes[0] : void 0, c = l === void 0 ? void 0 : be(l, e, i);
1935
1952
  } while (c?.supertypes !== void 0);
1936
1953
  }
1937
1954
  if (n !== void 0) {
1938
1955
  const m = n.length - (t.mixins?.length ?? 0);
1939
1956
  for (let f = n.length - 1; f >= 0; f--) {
1940
- const p = n[f], g = Ce(p.module ?? e.path, !0, i);
1941
- typeof g == "object" ? ve(g, t, a, i) : f >= m && (t.mixins.splice(f - m, 1), t.mixins.length === 0 && (t.mixins = void 0));
1957
+ const p = n[f], g = Me(p.module ?? e.path, !0, i);
1958
+ typeof g == "object" ? Ce(g, t, a, i) : f >= m && (t.mixins.splice(f - m, 1), t.mixins.length === 0 && (t.mixins = void 0));
1942
1959
  }
1943
1960
  }
1944
1961
  if (l?.package !== void 0)
1945
1962
  return;
1946
1963
  const d = l?.module;
1947
1964
  if (d !== void 0) {
1948
- const m = Ce(d, !1, i);
1965
+ const m = Me(d, !1, i);
1949
1966
  typeof m == "object" && (m.declaration.privacy !== void 0 && t.privacy === void 0 && i.emitError(
1950
1967
  `Public component may only subclass a public component to avoid broken inheritance. Tried to inherit from private ${m.declaration.name}. Remove @private from it but feel free to add a jsdoc description stating the base class is abstract - not for direct consumption. Lumina does bare minimum extraction work for private components, which makes them ineligible for public docs.`,
1951
1968
  { file: o.file, node: void 0 }
1952
- ), ve(m, t, a, i));
1969
+ ), Ce(m, t, a, i));
1953
1970
  }
1954
1971
  }
1955
- function ve(e, t, i, o) {
1972
+ function Ce(e, t, i, o) {
1956
1973
  const s = e.declaration, a = t;
1957
1974
  if (e.indexedMembers !== void 0) {
1958
1975
  t.members ??= [];
@@ -2020,12 +2037,12 @@ function X(e = [], t, i, o) {
2020
2037
  }
2021
2038
  return e;
2022
2039
  }
2023
- function Ce(e, t, i) {
2024
- const o = i.moduleMap.get(e), s = Et(o, e, t, i), a = o === void 0 ? void 0 : h(o);
2040
+ function Me(e, t, i) {
2041
+ const o = i.moduleMap.get(e), s = Tt(o, e, t, i), a = o === void 0 ? void 0 : h(o);
2025
2042
  if (s === !1 || o === void 0)
2026
2043
  return a !== void 0 ? a.inheritance = de.skip : t && i.privateMixinModuleNames.add(e), de.skip;
2027
2044
  const [r, n] = s, l = n;
2028
- Ge(o, n, i);
2045
+ we(o, n, i);
2029
2046
  let c, d = !1;
2030
2047
  if (n.members !== void 0) {
2031
2048
  c = /* @__PURE__ */ Object.create(null);
@@ -2063,7 +2080,7 @@ function Y(e) {
2063
2080
  }
2064
2081
  return t;
2065
2082
  }
2066
- function Et(e, t, i, o) {
2083
+ function Tt(e, t, i, o) {
2067
2084
  const s = e === void 0 ? void 0 : h(e), a = s?.index.class;
2068
2085
  return a === void 0 ? (i || o.emitError(
2069
2086
  `Failed to find @public class/custom element declaration in ${x("red", t)}. Referenced in the extends clause by ${x("blue", o.apiModule.sourcePath)}`,
@@ -2074,7 +2091,7 @@ function Et(e, t, i, o) {
2074
2091
  }
2075
2092
  ), !1) : [t, a];
2076
2093
  }
2077
- function Me(e, t, i) {
2094
+ function be(e, t, i) {
2078
2095
  if (e.package !== void 0)
2079
2096
  return;
2080
2097
  const o = e.module === void 0 ? t : i.moduleMap.get(e.module), s = o === void 0 ? void 0 : h(o), a = e.name === "default" ? s?.index.default : s?.index.named[e.name];
@@ -2091,11 +2108,11 @@ function Me(e, t, i) {
2091
2108
  }
2092
2109
  return a.kind === "interface" ? a : void 0;
2093
2110
  }
2094
- function Tt(e, t, i) {
2111
+ function $t(e, t, i) {
2095
2112
  const o = oe(e), s = h(t);
2096
- o.hasAutoCasting === !0 && (Ct(e.type, o, t, i), o.isConstructorOnly !== !0 && e.getterType?.text === e.type.text && (e.getterType = void 0)), o.isConstructorOnly === !0 && (s.constructorOnlySetters ??= {}, s.constructorOnlySetters[e.name] = e.type, e.type = e.getterType ?? e.type, e.getterType = void 0, e.readonly = !0);
2113
+ o.hasAutoCasting === !0 && (Mt(e.type, o, t, i), o.isConstructorOnly !== !0 && e.getterType?.text === e.type.text && (e.getterType = void 0)), o.isConstructorOnly === !0 && (s.constructorOnlySetters ??= {}, s.constructorOnlySetters[e.name] = e.type, e.type = e.getterType ?? e.type, e.getterType = void 0, e.readonly = !0);
2097
2114
  }
2098
- function $t(e, t, i) {
2115
+ function Ft(e, t, i) {
2099
2116
  if (!(i.watchFiles === void 0 || t.reExports === void 0))
2100
2117
  for (let o = 0; o < t.reExports.length; ++o) {
2101
2118
  const s = t.reExports[o];
@@ -2105,10 +2122,10 @@ function $t(e, t, i) {
2105
2122
  n !== void 0 && (i.watchFiles.get(e.sourcePath).dependencies.add(n), i.watchFiles.get(n).dependents.set(e.sourcePath, !0));
2106
2123
  }
2107
2124
  }
2108
- function Ft(e, t) {
2109
- e.sort(tt), At(e, t), t.isComponentProject && Oe(e, t);
2110
- }
2111
2125
  function At(e, t) {
2126
+ e.sort(et), wt(e, t), t.isComponentProject && Le(e, t);
2127
+ }
2128
+ function wt(e, t) {
2112
2129
  for (let i = 0; i < e.length; ++i) {
2113
2130
  const o = e[i];
2114
2131
  if (!h(o).isStale)
@@ -2123,7 +2140,7 @@ function At(e, t) {
2123
2140
  file: h(o).file,
2124
2141
  node: void 0
2125
2142
  }
2126
- ), "members" in n && n.kind !== "interface" && (Ge(o, n, t), n.events?.sort(it));
2143
+ ), "members" in n && n.kind !== "interface" && (we(o, n, t), n.events?.sort(tt));
2127
2144
  }
2128
2145
  }
2129
2146
  for (let i = 0; i < e.length; ++i) {
@@ -2140,72 +2157,72 @@ function At(e, t) {
2140
2157
  }
2141
2158
  continue;
2142
2159
  }
2143
- t.apiModule = o, t.inheritedModuleName = void 0, o.deprecated = Q(o.deprecated, t), o.description = R(o.description, t), V(o.docsTags, t);
2160
+ t.apiModule = o, t.inheritedModuleName = void 0, o.deprecated = Q(o.deprecated, t), o.description = G(o.description, t), V(o.docsTags, t);
2144
2161
  for (let a = 0; a < o.declarations.length; ++a) {
2145
2162
  const r = o.declarations[a];
2146
- if (r.deprecated = Q(r.deprecated, t), r.description = R(r.description, t), V(r.docsTags, t), r.kind === "function") {
2163
+ if (r.deprecated = Q(r.deprecated, t), r.description = G(r.description, t), V(r.docsTags, t), r.kind === "function") {
2147
2164
  if (r.parameters !== void 0)
2148
2165
  for (let l = 0; l < r.parameters.length; ++l) {
2149
2166
  const c = r.parameters[l];
2150
- c.description = R(c.description, t), V(c.docsTags, t);
2167
+ c.description = G(c.description, t), V(c.docsTags, t);
2151
2168
  }
2152
- r.return !== void 0 && (r.return.description = R(r.return.description, t));
2169
+ r.return !== void 0 && (r.return.description = G(r.return.description, t));
2153
2170
  }
2154
2171
  const n = r;
2155
2172
  if (n.members !== void 0) {
2156
2173
  for (let c = 0; c < n.members.length; ++c) {
2157
2174
  const d = n.members[c], m = d.inheritedFrom, f = m !== void 0;
2158
- if (t.inheritedModuleName = m?.module, d.deprecated = Q(d.deprecated, t), d.description = R(d.description, t), V(d.docsTags, t), !f && d.kind !== "field") {
2175
+ if (t.inheritedModuleName = m?.module, d.deprecated = Q(d.deprecated, t), d.description = G(d.description, t), V(d.docsTags, t), !f && d.kind !== "field") {
2159
2176
  if (d.parameters !== void 0)
2160
2177
  for (let g = 0; g < d.parameters.length; ++g) {
2161
2178
  const u = d.parameters[g];
2162
- u.description = R(u.description, t), V(u.docsTags, t);
2179
+ u.description = G(u.description, t), V(u.docsTags, t);
2163
2180
  }
2164
2181
  const p = d;
2165
- p.return !== void 0 && (p.return.description = R(p.return.description, t));
2182
+ p.return !== void 0 && (p.return.description = G(p.return.description, t));
2166
2183
  }
2167
2184
  t.inheritedModuleName = void 0;
2168
2185
  }
2169
- r.kind !== "interface" && n.members.sort(ot);
2186
+ r.kind !== "interface" && n.members.sort(it);
2170
2187
  const l = r;
2171
2188
  if (l.events !== void 0) {
2172
2189
  for (let c = 0; c < l.events.length; ++c) {
2173
2190
  const d = l.events[c];
2174
- t.inheritedModuleName = d.inheritedFrom?.module, d.deprecated = Q(d.deprecated, t), d.description = R(d.description, t), V(d.docsTags, t);
2191
+ t.inheritedModuleName = d.inheritedFrom?.module, d.deprecated = Q(d.deprecated, t), d.description = G(d.description, t), V(d.docsTags, t);
2175
2192
  }
2176
2193
  t.inheritedModuleName = void 0;
2177
2194
  }
2178
2195
  if (t.config.context.isLuminaMinimalExtraction || kt(n), l.slots !== void 0)
2179
2196
  for (let c = 0; c < l.slots.length; ++c) {
2180
2197
  const d = l.slots[c];
2181
- d.description = R(d.description, t);
2198
+ d.description = G(d.description, t);
2182
2199
  }
2183
2200
  if (l.cssProperties !== void 0)
2184
2201
  for (let c = 0; c < l.cssProperties.length; ++c) {
2185
2202
  const d = l.cssProperties[c];
2186
- d.description = R(d.description, t);
2203
+ d.description = G(d.description, t);
2187
2204
  }
2188
2205
  if (l.cssParts !== void 0)
2189
2206
  for (let c = 0; c < l.cssParts.length; ++c) {
2190
2207
  const d = l.cssParts[c];
2191
- d.description = R(d.description, t);
2208
+ d.description = G(d.description, t);
2192
2209
  }
2193
2210
  if (l.cssStates !== void 0)
2194
2211
  for (let c = 0; c < l.cssStates.length; ++c) {
2195
2212
  const d = l.cssStates[c];
2196
- d.description = R(d.description, t);
2213
+ d.description = G(d.description, t);
2197
2214
  }
2198
2215
  if (l.demos !== void 0)
2199
2216
  for (let c = 0; c < l.demos.length; ++c) {
2200
2217
  const d = l.demos[c];
2201
- d.description = R(d.description, t);
2218
+ d.description = G(d.description, t);
2202
2219
  }
2203
2220
  } else r === s.constructorPropertiesInterface && (o.declarations.splice(a, 1), a -= 1);
2204
2221
  }
2205
- s.constructorPropertiesInterface !== void 0 && Pt(s, t), vt(o, s, t), $t(o, s, t);
2222
+ s.constructorPropertiesInterface !== void 0 && It(s, t), vt(o, s, t), Ft(o, s, t);
2206
2223
  }
2207
2224
  }
2208
- function wt(e) {
2225
+ function Rt(e) {
2209
2226
  const t = [Gt];
2210
2227
  for (let i = 0; i < e.length; ++i) {
2211
2228
  const o = e[i];
@@ -2214,7 +2231,7 @@ function wt(e) {
2214
2231
  `
2215
2232
  );
2216
2233
  }
2217
- return t.push(Rt), t.join("");
2234
+ return t.push(Dt), t.join("");
2218
2235
  }
2219
2236
  const Gt = `declare global {
2220
2237
  const $arcgis: ArcgisGlobal;
@@ -2236,8 +2253,8 @@ interface ArcgisImport {
2236
2253
  }
2237
2254
 
2238
2255
  export interface ArcgisImportModules {
2239
- `, Rt = `}
2240
- `, Dt = async function() {
2256
+ `, Dt = `}
2257
+ `, Lt = async function() {
2241
2258
  if (this.isRunInProgress)
2242
2259
  throw Error(
2243
2260
  "The ApiExtractor.run() is already in progress, or previous run crashed with unrecoverable error. Await the previous run first or create a new ApiExtractor"
@@ -2262,26 +2279,26 @@ export interface ArcgisImportModules {
2262
2279
  }
2263
2280
  Re(this, n);
2264
2281
  }
2265
- const o = _(), s = await Be(this);
2266
- Ft(s, this);
2282
+ const o = _(), s = await Oe(this);
2283
+ At(s, this);
2267
2284
  const a = this.wrapApiModules(s);
2268
2285
  e.context.logger.info(
2269
2286
  `${H}Extracted ${s.length} @public files in ${x("green", `${o()}s`)}`
2270
2287
  );
2271
2288
  const r = { apiJson: a, dtsFiles: void 0 };
2272
- if (e.afterApiJsonCreate !== Ee && e.afterApiJsonCreate(r), this.produceDts) {
2289
+ if (e.afterApiJsonCreate !== ke && e.afterApiJsonCreate(r), this.produceDts) {
2273
2290
  const n = _(), l = this.dtsFiles;
2274
2291
  if (this.dtsFiles = /* @__PURE__ */ new Map(), this.isJsApi) {
2275
2292
  const c = gt(s, this), d = `${e.context.dtsEmitPath}interfaces.d.ts`;
2276
2293
  this.dtsFiles.set(d, c);
2277
- const m = wt(s), f = `${e.context.dtsEmitPath}arcgisGlobal.d.ts`;
2294
+ const m = Rt(s), f = `${e.context.dtsEmitPath}arcgisGlobal.d.ts`;
2278
2295
  this.dtsFiles.set(f, m);
2279
- } else this.isComponentProject && We(s, this);
2296
+ } else this.isComponentProject && Be(s, this);
2280
2297
  for (let c = 0; c < s.length; ++c) {
2281
2298
  const d = s[c], m = h(d);
2282
2299
  let f = `${e.context.dtsEmitPath + m.dtsPath}.d.ts`, p;
2283
2300
  if (m.isStale) {
2284
- if (p = Ue(d, this), e.types.declarationTextTransformers.length > 0) {
2301
+ if (p = We(d, this), e.types.declarationTextTransformers.length > 0) {
2285
2302
  let v = { filePath: f, content: p };
2286
2303
  for (let C = 0; C < e.types.declarationTextTransformers.length; ++C) {
2287
2304
  const y = e.types.declarationTextTransformers[C];
@@ -2304,27 +2321,27 @@ export interface ArcgisImportModules {
2304
2321
  for (const [c, d] of this.dtsFiles)
2305
2322
  l.get(c) !== d && this.changedDtsFiles.set(c, d);
2306
2323
  if (t) {
2307
- await i, await ae(e.context.dtsEmitPath, { recursive: !0 }), await Lt(e.context.dtsEmitPath, !0, this.changedDtsFiles ?? this.dtsFiles);
2308
- const c = N.join(N.relative(process.cwd(), e.context.dtsEmitPath), "/");
2324
+ await i, await ae(e.context.dtsEmitPath, { recursive: !0 }), await Nt(e.context.dtsEmitPath, !0, this.changedDtsFiles ?? this.dtsFiles);
2325
+ const c = O.join(O.relative(process.cwd(), e.context.dtsEmitPath), "/");
2309
2326
  e.context.logger.info(
2310
2327
  `${H}Wrote ${c}**/*${x("blue", ".d.ts")} in ${x("green", `${n()}s`)}`
2311
2328
  );
2312
2329
  }
2313
2330
  }
2314
2331
  if (e.context.apiJsonEmitPath !== "") {
2315
- const n = N.resolve(e.context.cwd, e.context.apiJsonEmitPath), l = N.join(N.relative(process.cwd(), N.dirname(n)), "/");
2316
- await ae(N.dirname(n), { recursive: !0 }), await Pe(
2332
+ const n = O.resolve(e.context.cwd, e.context.apiJsonEmitPath), l = O.join(O.relative(process.cwd(), O.dirname(n)), "/");
2333
+ await ae(O.dirname(n), { recursive: !0 }), await Pe(
2317
2334
  n,
2318
2335
  e.context.environment === "production" ? JSON.stringify(a) : JSON.stringify(a, null, 2)
2319
2336
  ), e.context.logger.info(
2320
- `${H}Wrote ${l}${x("yellow", N.basename(n))}`
2337
+ `${H}Wrote ${l}${x("yellow", O.basename(n))}`
2321
2338
  );
2322
2339
  }
2323
2340
  return this.typeVerifier?.verifyTypes(s), this.errorCount > 0 && e.context.logger.error(
2324
2341
  `${H}${x("red", `Found ${this.errorCount} ${this.errorCount === 1 ? "error" : "errors"}`)}`
2325
2342
  ), this.silencedBrokenLinkCount > 0 && e.context.logger.info(`${H}Silenced ${this.silencedBrokenLinkCount} broken link errors.`), this.isRunInProgress = !1, this.produceDts && (r.dtsFiles = this.dtsFiles), r;
2326
2343
  };
2327
- async function Lt(e, t, i) {
2344
+ async function Nt(e, t, i) {
2328
2345
  const o = /* @__PURE__ */ new Set(), s = Array.from(i.entries());
2329
2346
  for (let l = 0; l < s.length; ++l) {
2330
2347
  const [c, d] = s[l];
@@ -2389,7 +2406,7 @@ const Ot = async function() {
2389
2406
  }, n = (u, v, C) => {
2390
2407
  if (v === void 0) {
2391
2408
  const y = e.context.cwd + u, b = ct(y, "utf8");
2392
- v = Je(y, b);
2409
+ v = He(y, b);
2393
2410
  }
2394
2411
  this.watchFiles.set(u, {
2395
2412
  file: v,
@@ -2425,7 +2442,7 @@ const Ot = async function() {
2425
2442
  if (I === void 0)
2426
2443
  P !== void 0 && (M.module = M.previousModule, a(M, P.sourcePath));
2427
2444
  else {
2428
- P === void 0 ? (c || C.push(I), M.previousModule = I) : I !== P && (Ve(I, P) ? M.module = P : (v.push({ old: P, new: I }), M.previousModule = I));
2445
+ P === void 0 ? (c || C.push(I), M.previousModule = I) : I !== P && (Je(I, P) ? M.module = P : (v.push({ old: P, new: I }), M.previousModule = I));
2429
2446
  const L = h(I);
2430
2447
  L.isStale && (L.isStale = !1);
2431
2448
  }
@@ -2453,10 +2470,10 @@ const Ot = async function() {
2453
2470
  if (e.types.typeCheckedExtraction || e.types.fullTypeCheck) {
2454
2471
  const u = e.types.fullTypeCheck ? E.createSemanticDiagnosticsBuilderProgram : E.createAbstractBuilder;
2455
2472
  let v;
2456
- const C = (k, F, T, ...w) => (v = T, u(
2473
+ const C = (S, F, T, ...w) => (v = T, u(
2457
2474
  // If not doing full type check, don't scout test files
2458
2475
  // If non-tests import tests, they will be included implicitly anyway
2459
- e.types.fullTypeCheck ? k : k?.filter(($) => !He($)),
2476
+ e.types.fullTypeCheck ? S : S?.filter(($) => !ze($)),
2460
2477
  F,
2461
2478
  T,
2462
2479
  ...w
@@ -2472,14 +2489,14 @@ const Ot = async function() {
2472
2489
  void 0
2473
2490
  ), b = y.setTimeout;
2474
2491
  let M;
2475
- y.setTimeout = b === void 0 ? void 0 : (k, F, ...T) => {
2492
+ y.setTimeout = b === void 0 ? void 0 : (S, F, ...T) => {
2476
2493
  if (!(T[0] === "timerToUpdateProgram"))
2477
- return b(k, F, ...T);
2478
- const G = M !== void 0 ? Promise.resolve() : d === void 0 ? Promise.resolve(m()) : d.promise.finally(m);
2494
+ return b(S, F, ...T);
2495
+ const R = M !== void 0 ? Promise.resolve() : d === void 0 ? Promise.resolve(m()) : d.promise.finally(m);
2479
2496
  return M = b(
2480
2497
  (...J) => {
2481
- M = void 0, G.finally(() => {
2482
- this.program = void 0, k(...J), this.program === void 0 && f(void 0);
2498
+ M = void 0, R.finally(() => {
2499
+ this.program = void 0, S(...J), this.program === void 0 && f(void 0);
2483
2500
  });
2484
2501
  },
2485
2502
  e.watch.debounceTime,
@@ -2487,11 +2504,11 @@ const Ot = async function() {
2487
2504
  ), M;
2488
2505
  };
2489
2506
  const I = y.onWatchStatusChange, P = 6031, L = 6032;
2490
- y.onWatchStatusChange = (k, ...F) => {
2491
- k.code === L ? e.watch.clearScreen && E.sys.clearScreen?.() : k.code !== P && I?.(k, ...F);
2492
- }, y.afterProgramCreate = (k) => {
2493
- this.builderProgram = k;
2494
- const F = k.getProgram();
2507
+ y.onWatchStatusChange = (S, ...F) => {
2508
+ S.code === L ? e.watch.clearScreen && E.sys.clearScreen?.() : S.code !== P && I?.(S, ...F);
2509
+ }, y.afterProgramCreate = (S) => {
2510
+ this.builderProgram = S;
2511
+ const F = S.getProgram();
2495
2512
  this.program = F;
2496
2513
  const T = F.getSourceFiles();
2497
2514
  e.types.typeScriptInstanceCreated(F, v);
@@ -2499,14 +2516,14 @@ const Ot = async function() {
2499
2516
  $.wasRemoved = !0;
2500
2517
  let w = !1;
2501
2518
  for (let $ = 0; $ < T.length; ++$) {
2502
- const G = T[$];
2503
- if (!pe(G.fileName, this))
2519
+ const R = T[$];
2520
+ if (!ue(R.fileName, this))
2504
2521
  continue;
2505
- const z = G.fileName.slice(e.context.cwd.length), J = this.watchFiles.get(z);
2506
- J === void 0 ? (n(z, G, void 0), w = !0) : J.file !== G ? (s(J, z, G), w = !0) : J.wasRemoved = !1;
2522
+ const z = R.fileName.slice(e.context.cwd.length), J = this.watchFiles.get(z);
2523
+ J === void 0 ? (n(z, R, void 0), w = !0) : J.file !== R ? (s(J, z, R), w = !0) : J.wasRemoved = !1;
2507
2524
  }
2508
- for (const [$, G] of this.watchFiles)
2509
- G.wasRemoved && (a(G, $), w = !0);
2525
+ for (const [$, R] of this.watchFiles)
2526
+ R.wasRemoved && (a(R, $), w = !0);
2510
2527
  w ? p() : (Re(this, _()), f(void 0));
2511
2528
  }, t = E.createWatchProgram(y);
2512
2529
  } else {
@@ -2523,8 +2540,8 @@ const Ot = async function() {
2523
2540
  }, e.watch.debounceTime), C = (y, b) => {
2524
2541
  const M = e.context.cwd + y, I = !b, P = this.watchFiles.get(y), L = P !== void 0;
2525
2542
  if (I || P === void 0) {
2526
- const k = u(M);
2527
- if (k === !1) {
2543
+ const S = u(M);
2544
+ if (S === !1) {
2528
2545
  let T, w = !1;
2529
2546
  try {
2530
2547
  T = at(M, { recursive: !0 });
@@ -2533,14 +2550,14 @@ const Ot = async function() {
2533
2550
  if ($.isDirectory())
2534
2551
  continue;
2535
2552
  const z = `${$.parentPath}/${$.name}`.slice(e.context.cwd.length);
2536
- je(z) && (w = C(z, !1) || w);
2553
+ Ue(z) && (w = C(z, !1) || w);
2537
2554
  }
2538
2555
  } finally {
2539
2556
  T?.closeSync();
2540
2557
  }
2541
2558
  return w;
2542
2559
  }
2543
- const F = k === !0;
2560
+ const F = S === !0;
2544
2561
  if (L) {
2545
2562
  if (F)
2546
2563
  return s(P, y, void 0), !0;
@@ -2554,8 +2571,8 @@ const Ot = async function() {
2554
2571
  {
2555
2572
  let T = !1;
2556
2573
  const w = `${y}/`;
2557
- for (const [$, G] of this.watchFiles)
2558
- $.startsWith(w) && (a(G, $), T = !0);
2574
+ for (const [$, R] of this.watchFiles)
2575
+ $.startsWith(w) && (a(R, $), T = !0);
2559
2576
  return T;
2560
2577
  }
2561
2578
  }
@@ -2563,11 +2580,11 @@ const Ot = async function() {
2563
2580
  return s(P, y, void 0), !0;
2564
2581
  };
2565
2582
  t = lt(this.basePath, { recursive: !0 }, (y, b) => {
2566
- const M = m(), I = b === null ? void 0 : Ze(b), P = y === "change";
2583
+ const M = m(), I = b === null ? void 0 : qe(b), P = y === "change";
2567
2584
  if (I !== void 0 && // If changed, check if it is an included file
2568
2585
  // For a rename, we don't know if it is directory or a file - only check
2569
2586
  // if directory is included, and the file will be checked later.
2570
- (P ? pe(this.basePath + I, this) : ze(this.basePath + I, this))) {
2587
+ (P ? ue(this.basePath + I, this) : je(this.basePath + I, this))) {
2571
2588
  const L = e.context.basePath + I, F = (i.get(L) ?? !0) && P;
2572
2589
  i.set(L, F);
2573
2590
  }
@@ -2581,14 +2598,14 @@ const Ot = async function() {
2581
2598
  t.close(), i.clear(), await d?.promise, this.watchFiles = void 0;
2582
2599
  }
2583
2600
  };
2584
- }, Nt = ".verify-typings.ts";
2585
- class Bt {
2586
- constructor(t, i = N.join(process.cwd(), "dist")) {
2587
- this.extractor = t, this.virtualCwdPath = N.join(i, "/");
2601
+ }, Bt = ".verify-typings.ts";
2602
+ class Wt {
2603
+ constructor(t, i = O.join(process.cwd(), "dist")) {
2604
+ this.extractor = t, this.virtualCwdPath = O.join(i, "/");
2588
2605
  }
2589
2606
  verifyTypes(t) {
2590
2607
  const i = _(), o = /* @__PURE__ */ Object.create(null);
2591
- o[this.virtualCwdPath + Nt] = this.getVerificationFileContents(t);
2608
+ o[this.virtualCwdPath + Bt] = this.getVerificationFileContents(t);
2592
2609
  const s = this.extractor.config.context.dtsEmitPath === "" ? this.virtualCwdPath : "";
2593
2610
  for (const [f, p] of this.extractor.dtsFiles)
2594
2611
  o[s + f] = p;
@@ -2658,18 +2675,18 @@ class Bt {
2658
2675
  return i;
2659
2676
  }
2660
2677
  }
2661
- class ei {
2678
+ class ii {
2662
2679
  /**
2663
2680
  * @public
2664
2681
  * @param rawConfig Optional configuration for the extractor.
2665
2682
  */
2666
2683
  constructor(t = {}) {
2667
- this.componentStories = /* @__PURE__ */ Object.create(null), this.dtsFiles = /* @__PURE__ */ new Map(), this.changedDtsFiles = void 0, this.isRunInProgress = !1, this.watchFiles = void 0, this.program = void 0, this.builderProgram = void 0, this.componentPathMapping = void 0, this.componentCssFileDocs = void 0, this.vanillaComponentTypes = void 0, this.isInLuminaMinimalExtraction = !1, this.errorCount = 0, this.silencedBrokenLinkCount = 0, this.loggedBooleanWarning = !1, this.moduleMap = void 0, this.privateMixinModuleNames = /* @__PURE__ */ new Set(), this.implicitPublicModules = void 0, this.file = void 0, this.apiModule = void 0, this.componentTagName = void 0, this.pairedSetter = void 0, this.statementJsDocs = [], this.jsDoc = void 0, this.apiObject = void 0, this.moduleContext = void 0, this.localDeclarations = /* @__PURE__ */ new Set(), this.exportDefaultName = void 0, this.objectLikeTypeParameters = void 0, this.functionLikeTypeParameters = void 0, this.apiClassLikeName = void 0, this.mixinName = void 0, this.mixinMixins = void 0, this.moduleHasAccessorLikeClass = !1, this.moduleHasClass = !1, this.inheritedModuleName = void 0, this.run = Dt.bind(this), this.watch = Ot.bind(this), this.emitError = De.bind(this);
2668
- const i = Xe(t);
2684
+ this.componentStories = /* @__PURE__ */ Object.create(null), this.dtsFiles = /* @__PURE__ */ new Map(), this.changedDtsFiles = void 0, this.isRunInProgress = !1, this.watchFiles = void 0, this.program = void 0, this.builderProgram = void 0, this.componentPathMapping = void 0, this.componentCssFileDocs = void 0, this.vanillaComponentTypes = void 0, this.isInLuminaMinimalExtraction = !1, this.errorCount = 0, this.silencedBrokenLinkCount = 0, this.loggedBooleanWarning = !1, this.moduleMap = void 0, this.privateMixinModuleNames = /* @__PURE__ */ new Set(), this.implicitPublicModules = void 0, this.file = void 0, this.apiModule = void 0, this.componentTagName = void 0, this.pairedSetter = void 0, this.statementJsDocs = [], this.jsDoc = void 0, this.apiObject = void 0, this.moduleContext = void 0, this.localDeclarations = /* @__PURE__ */ new Set(), this.exportDefaultName = void 0, this.objectLikeTypeParameters = void 0, this.functionLikeTypeParameters = void 0, this.apiClassLikeName = void 0, this.mixinName = void 0, this.mixinMixins = void 0, this.moduleHasAccessorLikeClass = !1, this.moduleHasClass = !1, this.inheritedModuleName = void 0, this.run = Lt.bind(this), this.watch = Ot.bind(this), this.emitError = Ge.bind(this);
2685
+ const i = Ve(t);
2669
2686
  this.config = i, this.produceDts = i.types.forceProduceDts || i.context.dtsEmitPath !== "" || i.verify.typeCheckTypes, this.basePath = `${i.context.cwd}${i.context.basePath}`, this.normalizedApiReferencePrefix = `https://${this.config.documentation.host}${this.config.documentation.basePath}`, this.runtimeDependencyNames = /* @__PURE__ */ new Set([
2670
2687
  ...Object.keys(i.context.packageJson.dependencies ?? {}),
2671
2688
  ...Object.keys(i.context.packageJson.peerDependencies ?? {})
2672
- ]), this.resolveJsDocLink = i.context.isLuminaMinimalExtraction ? Ee : qe.bind(void 0, this), this.isComponentProject = "@arcgis/lumina" in (i.context.packageJson.dependencies ?? {}), this.isJsApi = i.context.packageJson.name === "arcgis-js-api", this.typeVerifier = i.verify.typeCheckTypes ? new Bt(this, i.context.dtsEmitPath || void 0) : void 0, this.localPrivateDeclarations = i.strict ? void 0 : /* @__PURE__ */ new Map();
2689
+ ]), this.resolveJsDocLink = i.context.isLuminaMinimalExtraction ? ke : Ye.bind(void 0, this), this.isComponentProject = "@arcgis/lumina" in (i.context.packageJson.dependencies ?? {}), this.isJsApi = i.context.packageJson.name === "arcgis-js-api", this.typeVerifier = i.verify.typeCheckTypes ? new Wt(this, i.context.dtsEmitPath || void 0) : void 0, this.localPrivateDeclarations = i.strict ? void 0 : /* @__PURE__ */ new Map();
2673
2690
  }
2674
2691
  /**
2675
2692
  * Given an array of ApiModules, add top-level api.json metadata and return
@@ -2682,8 +2699,8 @@ class ei {
2682
2699
  compiler: {
2683
2700
  // Preserve previous compiler.name for component projects as that is what
2684
2701
  // pre 5.0 Lumina versions expect.
2685
- name: this.isComponentProject ? "@arcgis/lumina-compiler" : me.name,
2686
- version: me.version,
2702
+ name: this.isComponentProject ? "@arcgis/lumina-compiler" : pe.name,
2703
+ version: pe.version,
2687
2704
  typescriptVersion: E.version
2688
2705
  },
2689
2706
  // https://github.com/webcomponents/custom-elements-manifest?tab=readme-ov-file#schema-versioning
@@ -2696,6 +2713,6 @@ class ei {
2696
2713
  }
2697
2714
  }
2698
2715
  export {
2699
- ei as A,
2700
- Lt as w
2716
+ ii as A,
2717
+ Nt as w
2701
2718
  };