@arcgis/api-extractor 5.0.0-next.136 → 5.0.0-next.138

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.
Files changed (63) hide show
  1. package/dist/ApiExtractor-DXDxS3Cb.js +2644 -0
  2. package/dist/apiJson.d.ts +706 -760
  3. package/dist/cli.js +26 -2
  4. package/dist/compilerHints.d.ts +62 -0
  5. package/dist/diff/diffApiJson.d.ts +6 -3
  6. package/dist/diff/diffApiJson.js +142 -0
  7. package/dist/diff/fetchApiJsonFromNpm.d.ts +5 -2
  8. package/dist/diff/fetchApiJsonFromNpm.js +9 -0
  9. package/dist/diff/types.d.ts +70 -56
  10. package/dist/diffTypes/index.d.ts +20 -23
  11. package/dist/diffTypes/index.js +4 -2
  12. package/dist/extractor/ApiExtractor.d.ts +72 -137
  13. package/dist/extractor/ApiExtractor.js +9 -0
  14. package/dist/extractor/config.d.ts +425 -39
  15. package/dist/extractor/config.js +17 -0
  16. package/dist/extractor/extractors/copyDoc.d.ts +25 -0
  17. package/dist/extractor/privateContext.d.ts +19 -0
  18. package/dist/extractor/privateContext.js +84 -0
  19. package/dist/extractor/processing/links.d.ts +12 -0
  20. package/dist/extractor/processing/links.js +177 -0
  21. package/dist/extractor/types.d.ts +40 -0
  22. package/dist/extractor/webComponent/findComponents.d.ts +19 -0
  23. package/dist/extractor/webComponent/findComponents.js +36 -0
  24. package/dist/extractor/webComponent/pathMapping.d.ts +11 -0
  25. package/dist/extractor/webComponent/pathMapping.js +44 -0
  26. package/dist/index.d.ts +164 -12
  27. package/dist/index.js +3 -841
  28. package/dist/typeScript-9f8GK91w.js +64 -0
  29. package/dist/uiUtils/index.d.ts +10 -19
  30. package/dist/uiUtils/index.js +3 -55
  31. package/dist/utils/apiHelpers.d.ts +28 -61
  32. package/dist/utils/apiHelpers.js +80 -0
  33. package/dist/utils/astHelpers.d.ts +22 -21
  34. package/dist/utils/astHelpers.js +67 -0
  35. package/dist/utils/hydrateApiType.d.ts +26 -0
  36. package/dist/utils/hydrateApiType.js +62 -0
  37. package/dist/utils/inferEntrypoints.d.ts +17 -0
  38. package/dist/utils/inferEntrypoints.js +26 -0
  39. package/dist/utils/internalTypeScriptApis.d.ts +92 -0
  40. package/dist/utils/internalTypeScriptApis.js +58 -0
  41. package/dist/utils/partPrinter.d.ts +25 -19
  42. package/dist/utils/partPrinter.js +82 -0
  43. package/dist/vite/plugin.d.ts +53 -0
  44. package/dist/vite/plugin.js +107 -0
  45. package/dist/vite/typeScript.d.ts +16 -0
  46. package/dist/vite/typeScript.js +6 -0
  47. package/dist/worker-DuJtWFW5.js +3599 -0
  48. package/package.json +40 -9
  49. package/dist/cli.d.ts +0 -2
  50. package/dist/config/typeReferences/docLinkAdditions.d.ts +0 -51
  51. package/dist/config/typeReferences/globals.d.ts +0 -11
  52. package/dist/config/typeReferences/stringDocLinkAdditions.d.ts +0 -17
  53. package/dist/config/typeReferences/typeScriptGlobals.json.d.ts +0 -3
  54. package/dist/diff/index.d.ts +0 -3
  55. package/dist/diff/index.js +0 -149
  56. package/dist/ensureCemCompatibility.d.ts +0 -1
  57. package/dist/internalTypeScriptApis.d.ts +0 -31
  58. package/dist/types.d.ts +0 -22
  59. package/dist/utils/error.d.ts +0 -17
  60. package/dist/utils/jsDocHelpers.d.ts +0 -2
  61. package/dist/utils/jsDocParser.d.ts +0 -46
  62. package/dist/utils/jsDocPrinter.d.ts +0 -13
  63. package/dist/utils/print.d.ts +0 -6
@@ -0,0 +1,3599 @@
1
+ import { path as $e, existsAsync as qt, getCwd as Ci, retrievePackageJson as lt, toPosixPathSeparators as bi } from "@arcgis/components-build-utils";
2
+ import { b as Mi, p as Pi, l as xi } from "./typeScript-9f8GK91w.js";
3
+ import ne from "chalk";
4
+ import { globalPackageIdentifier as De, mergeApiNodes as Ri, isApiMethodAsync as Di } from "./utils/apiHelpers.js";
5
+ import { uncapitalize as Li, camelToKebab as Ii, kebabToPascal as Ai } from "@arcgis/toolkit/string";
6
+ import o from "typescript";
7
+ import "fs/promises";
8
+ import { getObjectLikeContext as te, getFunctionLikeContext as Tt, getVariableContext as Xt, getModuleContext as ae, createFunctionLikeContext as Ze, createModuleContext as Qt, privateContextSymbol as Y, getPropertyContext as ki, createPropertyContext as Fi, createObjectLikeContext as Yt, createVariableContext as wi } from "./extractor/privateContext.js";
9
+ import { maybeEscapePropertyName as xt, printTypeAlias as Rt, printInterface as Ni, printFunction as Oi, printVariable as Gi, printClass as Vi, printMethod as _i, printProperty as fe, printGetterSetter as Wi, printSignature as Ki } from "./utils/partPrinter.js";
10
+ import { readFile as Dt, opendir as Lt, rm as Hi } from "node:fs/promises";
11
+ import { pathIsComponentEntrypoint as $i, findDeclaredComponent as Bi } from "./extractor/webComponent/findComponents.js";
12
+ import { renameComponentFolder as Ge, addComponentPathMapping as Ui } from "./extractor/webComponent/pathMapping.js";
13
+ import { getBasename as Z, getPackageNameFromExternalSpecifier as ct, extractInitializer as Be, extractBooleanInitializer as oe, findDecorator as Pe, getMemberName as xe } from "./utils/astHelpers.js";
14
+ import { readFileSync as zi, existsSync as ue } from "node:fs";
15
+ import "util";
16
+ import { identity as ge } from "@arcgis/toolkit/function";
17
+ import { pathToFileURL as ji } from "node:url";
18
+ import Ji from "path";
19
+ import { getWidenedLiteralType as qi, unsafeUndocumentedTs as Xi, unsafeGetUndocumentedPrinter as Qi } from "./utils/internalTypeScriptApis.js";
20
+ import { getViewUrl as Ve } from "./extractor/processing/links.js";
21
+ function ra(e) {
22
+ if (e.isResolvedConfig === !0)
23
+ return e;
24
+ const t = e.context, n = e.types, i = e.documentation, r = `${t?.cwd === void 0 ? Ci() : $e.resolve(t?.cwd)}/`, l = t?.packageJson ?? lt(r);
25
+ let s = t?.basePath ?? "src/";
26
+ s.endsWith("/") || (s += "/");
27
+ const c = "customElements" in l && "@arcgis/lumina" in (l.dependencies ?? {}), m = n?.typeCheckedExtraction ?? c, d = n?.fullTypeCheck ?? !1, p = n?.typeScriptConfig ?? (m || d ? Mi(r, n?.typeScriptConfigPath, !0) : {
28
+ configPath: "",
29
+ config: {
30
+ options: {},
31
+ fileNames: [],
32
+ errors: []
33
+ }
34
+ });
35
+ if (n?.typeScriptConfig?.config.fileNames.length === 0)
36
+ throw Error(
37
+ `${Pi.name}: Provided types.typeScriptConfig has no included files. If you used loadTypeScriptConfig, make sure to set resolveIncludedFiles to true.`
38
+ );
39
+ const f = {
40
+ config: {
41
+ ...p.config,
42
+ options: {
43
+ ...p.config.options,
44
+ ...n?.compilerOptions
45
+ }
46
+ },
47
+ configPath: p.configPath
48
+ }, u = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${$e.resolve(r, t.dtsEmitPath)}/`, g = t?.emptyDtsEmitPath ?? (t?.environment === "production" && u !== "");
49
+ return {
50
+ isResolvedConfig: !0,
51
+ context: {
52
+ dtsEmitPath: u,
53
+ emptyDtsEmitPath: g,
54
+ apiJsonEmitPath: t?.apiJsonEmitPath ?? "",
55
+ environment: t?.environment ?? "production",
56
+ cwd: r,
57
+ basePath: s,
58
+ packageJson: l,
59
+ logger: t?.logger ?? {
60
+ // We namespace manually
61
+ // eslint-disable-next-line webgis/consistent-logging
62
+ info: console.log,
63
+ // eslint-disable-next-line webgis/consistent-logging
64
+ error: console.error
65
+ },
66
+ excludedDirectories: t?.excludedDirectories ?? /* @__PURE__ */ new Set(),
67
+ isLuminaMinimalExtraction: t?.isLuminaMinimalExtraction ?? !1,
68
+ includeLuminaPrivateComponents: t?.includeLuminaPrivateComponents ?? !1
69
+ },
70
+ types: {
71
+ typeCheckedExtraction: m,
72
+ fullTypeCheck: d,
73
+ afterDiagnostic: n?.afterDiagnostic ?? ge,
74
+ typeScriptInstanceCreated: n?.typeScriptInstanceCreated ?? ge,
75
+ typeScriptConfigPath: p.configPath,
76
+ typeScriptConfig: f,
77
+ compilerOptions: f.config.options,
78
+ declarationTextTransformers: n?.declarationTextTransformers ?? [],
79
+ typeReplacements: n?.typeReplacements ?? {},
80
+ forceProduceDts: n?.forceProduceDts ?? !1
81
+ },
82
+ documentation: {
83
+ copyDocDefinitions: i?.copyDocDefinitions ?? {},
84
+ noInheritMembers: i?.noInheritMembers ?? {},
85
+ publicStoryUrlPrefix: i?.publicStoryUrlPrefix ?? !1,
86
+ getComponentDocsUrl: i?.getComponentDocsUrl ?? !1,
87
+ getComponentDemoUrl: i?.getComponentDemoUrl ?? !1
88
+ },
89
+ verify: {
90
+ typeCheckTypes: e.verify?.typeCheckTypes ?? !1,
91
+ filterTypeCheckDiagnostic: e.verify?.filterTypeCheckDiagnostic ?? (() => !0),
92
+ detectBrokenLinks: e.verify?.detectBrokenLinks ?? !0
93
+ },
94
+ watch: {
95
+ onUpdate: e.watch?.onUpdate ?? ge,
96
+ // Many reads can happen in a short time (on folder moves, or if prettier re-runs)
97
+ // Shorter than TypeScript's default of 250ms as we are blocked until this
98
+ // timeout is complete. Short timeout for unchecked extraction as it is fast,
99
+ // so doesn't need long debounce.
100
+ debounceTime: e.watch?.debounceTime ?? (m || d ? 50 : 20),
101
+ clearScreen: e.watch?.clearScreen ?? !1,
102
+ skipWritingUnchanged: g ? !1 : e.watch?.skipWritingUnchanged ?? !0
103
+ },
104
+ strict: e.strict ?? !c,
105
+ afterApiJsonCreate: e.afterApiJsonCreate ?? ge
106
+ };
107
+ }
108
+ async function sa(e = process.cwd(), t) {
109
+ const n = t !== void 0, i = $e.resolve(e, t ?? "api-extractor.config.ts"), a = await qt(i);
110
+ if (n && !a)
111
+ throw Error(`The provided config file at ${i} does not exist.`);
112
+ if (!a)
113
+ return {};
114
+ const r = (await import(ji(i).href)).config;
115
+ return {
116
+ ...r,
117
+ context: {
118
+ ...r.context,
119
+ cwd: r.context?.cwd ?? $e.dirname(i)
120
+ }
121
+ };
122
+ }
123
+ function la(e, t) {
124
+ const n = e.context, i = t.context, a = e.types, r = t.types, l = e.documentation, s = t.documentation, c = e.verify, m = t.verify, d = e.watch, p = t.watch;
125
+ return {
126
+ isResolvedConfig: e.isResolvedConfig || t.isResolvedConfig || void 0,
127
+ context: {
128
+ dtsEmitPath: i?.dtsEmitPath ?? n?.dtsEmitPath,
129
+ emptyDtsEmitPath: i?.emptyDtsEmitPath ?? n?.emptyDtsEmitPath,
130
+ apiJsonEmitPath: i?.apiJsonEmitPath ?? n?.apiJsonEmitPath,
131
+ environment: i?.environment ?? n?.environment,
132
+ cwd: i?.cwd ?? n?.cwd,
133
+ basePath: i?.basePath ?? n?.basePath,
134
+ packageJson: i?.packageJson ?? n?.packageJson,
135
+ logger: i?.logger ?? n?.logger,
136
+ excludedDirectories: i?.excludedDirectories ?? n?.excludedDirectories,
137
+ isLuminaMinimalExtraction: i?.isLuminaMinimalExtraction ?? n?.isLuminaMinimalExtraction,
138
+ includeLuminaPrivateComponents: i?.includeLuminaPrivateComponents ?? n?.includeLuminaPrivateComponents
139
+ },
140
+ types: {
141
+ typeCheckedExtraction: r?.typeCheckedExtraction ?? a?.typeCheckedExtraction,
142
+ fullTypeCheck: r?.fullTypeCheck ?? a?.fullTypeCheck,
143
+ afterDiagnostic: we(r?.afterDiagnostic, a?.afterDiagnostic),
144
+ typeScriptInstanceCreated: we(
145
+ t?.types?.typeScriptInstanceCreated,
146
+ e?.types?.typeScriptInstanceCreated
147
+ ),
148
+ typeScriptConfigPath: r?.typeScriptConfigPath ?? a?.typeScriptConfigPath,
149
+ typeScriptConfig: r?.typeScriptConfig ?? a?.typeScriptConfig,
150
+ compilerOptions: r?.compilerOptions ?? a?.compilerOptions,
151
+ declarationTextTransformers: r?.declarationTextTransformers !== void 0 && a?.declarationTextTransformers !== void 0 ? [...a.declarationTextTransformers, ...r.declarationTextTransformers] : r?.declarationTextTransformers ?? a?.declarationTextTransformers,
152
+ typeReplacements: r?.typeReplacements ?? a?.typeReplacements,
153
+ forceProduceDts: r?.forceProduceDts ?? a?.forceProduceDts
154
+ },
155
+ documentation: {
156
+ copyDocDefinitions: s?.copyDocDefinitions ?? l?.copyDocDefinitions,
157
+ noInheritMembers: s?.noInheritMembers ?? l?.noInheritMembers,
158
+ publicStoryUrlPrefix: s?.publicStoryUrlPrefix ?? l?.publicStoryUrlPrefix,
159
+ getComponentDocsUrl: s?.getComponentDocsUrl ?? l?.getComponentDocsUrl,
160
+ getComponentDemoUrl: s?.getComponentDemoUrl ?? l?.getComponentDemoUrl
161
+ },
162
+ verify: {
163
+ typeCheckTypes: m?.typeCheckTypes ?? c?.typeCheckTypes,
164
+ filterTypeCheckDiagnostic: m?.filterTypeCheckDiagnostic ?? c?.filterTypeCheckDiagnostic,
165
+ detectBrokenLinks: m?.detectBrokenLinks ?? c?.detectBrokenLinks
166
+ },
167
+ watch: {
168
+ onUpdate: we(p?.onUpdate, d?.onUpdate),
169
+ debounceTime: p?.debounceTime ?? d?.debounceTime,
170
+ clearScreen: p?.clearScreen ?? d?.clearScreen,
171
+ skipWritingUnchanged: p?.skipWritingUnchanged ?? d?.skipWritingUnchanged
172
+ },
173
+ strict: t.strict ?? e.strict,
174
+ afterApiJsonCreate: we(t.afterApiJsonCreate, e.afterApiJsonCreate)
175
+ };
176
+ }
177
+ function we(e, t) {
178
+ const n = t === ge ? void 0 : t, i = e === ge ? void 0 : e;
179
+ return n !== void 0 && i !== void 0 ? ((...a) => (n(...a), i(...a))) : i ?? n;
180
+ }
181
+ function Te(e) {
182
+ const t = [], n = e, i = e;
183
+ if (e.deprecated && t.push({
184
+ name: "deprecated",
185
+ text: e.deprecated === !0 ? void 0 : e.deprecated
186
+ }), n.default && t.push({
187
+ name: "default",
188
+ text: n.default
189
+ }), i.return !== void 0) {
190
+ const l = i.parameters;
191
+ if (l !== void 0)
192
+ for (let s = 0; s < l.length; ++s) {
193
+ const c = l[s];
194
+ t.push({
195
+ name: "param",
196
+ // Add hyphen as required by TSDoc
197
+ text: `${c.name}${c.description ? ` - ${c.description}` : ""}`
198
+ });
199
+ }
200
+ i.return.description && t.push({
201
+ name: "returns",
202
+ text: i.return.description
203
+ });
204
+ }
205
+ const a = e;
206
+ if (a.customElement === !0) {
207
+ if (a.cssProperties !== void 0)
208
+ for (const l of a.cssProperties)
209
+ t.push({
210
+ name: "cssproperty",
211
+ text: Ne(l)
212
+ });
213
+ if (a.cssParts !== void 0)
214
+ for (const l of a.cssParts)
215
+ t.push({
216
+ name: "csspart",
217
+ text: Ne(l)
218
+ });
219
+ if (a.cssStates !== void 0)
220
+ for (const l of a.cssStates)
221
+ t.push({
222
+ name: "cssstate",
223
+ text: Ne(l)
224
+ });
225
+ if (a.slots !== void 0)
226
+ for (const l of a.slots)
227
+ t.push({
228
+ name: "slot",
229
+ text: Ne(l)
230
+ });
231
+ }
232
+ e.docsTags !== void 0 && t.push(...e.docsTags);
233
+ const r = e.description ?? "";
234
+ if (!(t.length === 0 && r.length === 0))
235
+ return {
236
+ description: r,
237
+ docsTags: t
238
+ };
239
+ }
240
+ function Ne(e) {
241
+ const t = e, n = e.name + (t.default !== void 0 ? `=${t.default}` : ""), i = n.length > 0 ? `[${n}]` : "", a = e.description ?? "", r = a.length > 0 ? ` - ${a}` : "";
242
+ return `${i}${r}`;
243
+ }
244
+ function Yi(e) {
245
+ const t = e.description ?? "", n = t.length === 0, i = e.docsTags, a = (
246
+ // Has 2+ tags, or multi-line description, or single tag and single line description
247
+ i.length + (n ? 0 : t.includes(`
248
+ `) ? 2 : 1) > 1 || // Has a single tag, but that tag is multi-line
249
+ i[0]?.text?.includes(`
250
+ `) === !0
251
+ );
252
+ let r = "*";
253
+ n ? a || (r += " ") : (a ? (r += `
254
+ * `, r += It(t)) : r += ` ${t.replaceAll(" @", " \\@")}`, i.length > 0 && (r += `
255
+ *`));
256
+ for (let l = 0; l < i.length; ++l) {
257
+ const s = i[l], c = `@${s.name}`, m = s.text ?? "";
258
+ r += `${a ? `
259
+ * ` : ""}${c}`, m.includes(`
260
+ `) ? (s.name === "returns" || s.name === "param" ? r += " " : r += `
261
+ * `, r += It(m)) : m.length > 0 && (r += ` ${m.replaceAll(" @", " \\@")}`);
262
+ }
263
+ return r += a ? `
264
+ ` : " ", r;
265
+ }
266
+ const nt = 10, Zi = 32, en = 64;
267
+ function It(e) {
268
+ let t = "";
269
+ const n = e.length;
270
+ let i = 0;
271
+ for (let a = 0; a < n; ++a) {
272
+ const r = e.charCodeAt(a);
273
+ if (r === nt)
274
+ t += e.slice(i, a), e.charCodeAt(a + 1) === nt ? t += `
275
+ *` : t += `
276
+ * `, i = a + 1;
277
+ else if (r === en) {
278
+ const l = a === 0 ? 0 : e.charCodeAt(a - 1);
279
+ (a === 0 || l === Zi || l === nt) && (t += e.slice(i, a), t += "\\@", i = a + 1);
280
+ }
281
+ }
282
+ return i < n && (t += e.slice(i)), t;
283
+ }
284
+ function j(e, t, n) {
285
+ const i = o.getLeadingCommentRanges(n.file.text, e.pos);
286
+ if (i === void 0)
287
+ return;
288
+ let a;
289
+ for (const r of i) {
290
+ const l = n.file.text.slice(r.pos, r.end);
291
+ l.startsWith("/**") && (a !== void 0 && n.config.strict && n.emitError(
292
+ `Found multiple JSDoc comments for the same node. This is not allowed.
293
+ If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/webgis/core/core/documenting-api#module-level-documentation
294
+ If this is meant to be a function overload, read the documentation: https://webgis.esri.com/webgis/core/core/documenting-api#function-overloads`,
295
+ {
296
+ file: n.file,
297
+ node: e
298
+ }
299
+ ), a = l);
300
+ }
301
+ if (a !== void 0 && !(t && !a.includes("* @public") && !a.includes("* @internal")))
302
+ return tn(a, t, n);
303
+ }
304
+ function tn(e, t, n) {
305
+ const i = e.length - 2;
306
+ let a = 3, r = "";
307
+ const l = [];
308
+ let s, c, m = !t, d = !t, p = !1;
309
+ for (; a < i; ) {
310
+ let f = e.indexOf(`
311
+ `, a);
312
+ f === -1 && (f = i);
313
+ let u = e.slice(a, f).trim();
314
+ if (a = f + 1, u === "*" ? u = "" : u.startsWith("*") && (u[1] === " " ? u = u.slice(2) : n.config.strict ? n.emitError(
315
+ `For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
316
+ {
317
+ file: n.file,
318
+ node: void 0
319
+ }
320
+ ) : u = u.slice(1)), u.startsWith("@")) {
321
+ s !== void 0 && !p && l.push(
322
+ W[s] ?? {
323
+ name: s,
324
+ text: c.trim().replaceAll("\\@", "@") || void 0
325
+ }
326
+ );
327
+ const g = u.indexOf(" "), C = g === -1 ? u.slice(1) : u.slice(1, g), y = t && C === "public";
328
+ m ||= y, d ||= t && C === "internal", p = y || C === "privateRemarks";
329
+ const h = g === -1 ? "" : u.slice(g + 1);
330
+ s = C, c = h;
331
+ } else s !== void 0 ? c = `${c}
332
+ ${u}` : r += `${u}
333
+ `;
334
+ }
335
+ if (!(!m && !d))
336
+ return s !== void 0 && !p && l.push(
337
+ W[s] ?? {
338
+ name: s,
339
+ text: c.trim().replaceAll("\\@", "@") || void 0
340
+ }
341
+ ), {
342
+ description: r.trim().replaceAll("\\@", "@") || void 0,
343
+ docsTags: l
344
+ };
345
+ }
346
+ function nn(e, t) {
347
+ for (let n = 0; n < t.docsTags.length; ++n) {
348
+ const i = t.docsTags[n], { name: a, text: r } = i;
349
+ a === "deprecated" ? e.deprecated = r || !0 : (e.docsTags ??= [], e.docsTags.push(i));
350
+ }
351
+ e.description = t.description;
352
+ }
353
+ function Zt(e, t) {
354
+ for (let n = 0; n < t.docsTags.length; ++n) {
355
+ const i = t.docsTags[n], { name: a, text: r } = i;
356
+ if (a === "deprecated")
357
+ e.deprecated = r || !0;
358
+ else if (i === W.private)
359
+ e.privacy = "private";
360
+ else if (a === "csspart")
361
+ e.cssParts ??= [], e.cssParts.push(ot(r));
362
+ else if (a === "cssstate")
363
+ e.cssStates ??= [], e.cssStates.push(ot(r));
364
+ else if (a === "slot")
365
+ e.slots ??= [], e.slots.push(ot(r));
366
+ else if (a === "esriCompatibilityName") {
367
+ const l = te(e);
368
+ l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
369
+ } else a === "readonly" || (e.docsTags ??= [], e.docsTags.push(i));
370
+ }
371
+ e.description = t.description;
372
+ }
373
+ function on(e, t) {
374
+ const n = e, i = [];
375
+ for (let a = 0; a < t.docsTags.length; ++a) {
376
+ const r = t.docsTags[a], { name: l, text: s } = r;
377
+ if (l === "deprecated")
378
+ e.deprecated = s || !0;
379
+ else if (r === W.private)
380
+ e.privacy = "private";
381
+ else if (l === "param")
382
+ i.push(r);
383
+ else if (l === "returns")
384
+ n.return.description = r.text;
385
+ else if (l === "esriCompatibilityName") {
386
+ const c = Tt(e);
387
+ c.esriCompatibilityNames ??= [], c.esriCompatibilityNames.push(s ?? "");
388
+ } else
389
+ e.docsTags ??= [], e.docsTags.push(r);
390
+ }
391
+ return e.description = t.description, i;
392
+ }
393
+ function an(e, t) {
394
+ for (let n = 0; n < t.docsTags.length; ++n) {
395
+ const i = t.docsTags[n], { name: a, text: r } = i;
396
+ a === "deprecated" ? e.deprecated = r || !0 : a === "default" ? e.default = r : i === W.readonly ? e.readonly = !0 : i === W.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
397
+ }
398
+ e.description = t.description;
399
+ }
400
+ function rn(e, t) {
401
+ for (let n = 0; n < t.docsTags.length; ++n) {
402
+ const i = t.docsTags[n], { name: a, text: r } = i;
403
+ if (a === "deprecated")
404
+ e.deprecated = r || !0;
405
+ else if (a === "default")
406
+ e.default = r;
407
+ else if (a !== "readonly") if (a === "esriCompatibilityName") {
408
+ const l = Xt(e);
409
+ l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
410
+ } else
411
+ e.docsTags ??= [], e.docsTags.push(i);
412
+ }
413
+ e.description = t.description;
414
+ }
415
+ function sn(e, t) {
416
+ for (let n = 0; n < t.docsTags.length; ++n) {
417
+ const i = t.docsTags[n], { name: a, text: r } = i;
418
+ a === "deprecated" ? e.deprecated = r || !0 : i === W.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
419
+ }
420
+ e.description = t.description;
421
+ }
422
+ function ot(e) {
423
+ if (e === void 0)
424
+ return {
425
+ name: "",
426
+ deprecated: void 0,
427
+ summary: void 0,
428
+ description: void 0,
429
+ syntax: void 0,
430
+ default: void 0
431
+ };
432
+ const t = e.indexOf(" - ");
433
+ if (t === -1)
434
+ return e.startsWith("- ") ? {
435
+ name: "",
436
+ deprecated: void 0,
437
+ summary: void 0,
438
+ description: e.slice(2),
439
+ syntax: void 0,
440
+ default: void 0
441
+ } : {
442
+ name: e,
443
+ deprecated: void 0,
444
+ summary: void 0,
445
+ description: void 0,
446
+ syntax: void 0,
447
+ default: void 0
448
+ };
449
+ let n, i = e.slice(0, t);
450
+ if (i.startsWith("[") && i.endsWith("]")) {
451
+ const r = i.slice(1, -1), l = r.indexOf("=");
452
+ i = r.slice(0, l), n = r.slice(l + 1);
453
+ }
454
+ const a = e.slice(t + 3);
455
+ return {
456
+ name: i,
457
+ deprecated: void 0,
458
+ summary: void 0,
459
+ description: a,
460
+ syntax: void 0,
461
+ default: n
462
+ };
463
+ }
464
+ const W = {
465
+ // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
466
+ // eslint-disable-next-line @typescript-eslint/naming-convention
467
+ __proto__: null,
468
+ internal: { name: "internal", text: void 0 },
469
+ private: { name: "private", text: void 0 },
470
+ copyDoc: { name: "copyDoc", text: void 0 },
471
+ beta: { name: "beta", text: void 0 },
472
+ experimental: { name: "experimental", text: void 0 },
473
+ readonly: { name: "readonly", text: void 0 },
474
+ required: { name: "required", text: void 0 }
475
+ }, Ue = {
476
+ description: void 0,
477
+ docsTags: []
478
+ }, Ee = {
479
+ description: void 0,
480
+ docsTags: [W.private]
481
+ };
482
+ function ln(e, t, n) {
483
+ switch (t.path) {
484
+ case "layers/FeatureLayer": {
485
+ const i = "export default class FeatureLayer extends FeatureLayerSuperclass {", a = e.indexOf(i);
486
+ if (a === -1)
487
+ return n.emitError(
488
+ `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${i}".`,
489
+ { file: ae(t).file, node: void 0 }
490
+ ), e;
491
+ const r = 'get type(): "feature";', l = e.indexOf(r);
492
+ if (l === -1)
493
+ return n.emitError(
494
+ `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${r}".`,
495
+ { file: ae(t).file, node: void 0 }
496
+ ), e;
497
+ const s = l + r.length, c = e.lastIndexOf("/**", l);
498
+ if (c === -1)
499
+ return n.emitError(
500
+ `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include JSDoc for "${r}".`,
501
+ { file: ae(t).file, node: void 0 }
502
+ ), e;
503
+ const m = `export default class FeatureLayer extends __FeatureLayerSansType {
504
+ ${e.slice(c, s)}
505
+ }
506
+ export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {`;
507
+ return e.slice(0, a) + m + e.slice(a + i.length, c) + e.slice(s);
508
+ }
509
+ case "layers/CSVLayer":
510
+ case "layers/OrientedImageryLayer": {
511
+ const i = `import type { __FeatureLayerSansType } from "./FeatureLayer.js";
512
+ `, a = `extends FeatureLayer {
513
+ `, r = e.indexOf(a);
514
+ return r === -1 ? (n.emitError(
515
+ `Hardcoded behavior error: Expected .d.ts for ${t.path} to include "${a}".`,
516
+ { file: ae(t).file, node: void 0 }
517
+ ), e) : i + e.slice(0, r) + `extends __FeatureLayerSansType {
518
+ ` + e.slice(r + a.length);
519
+ }
520
+ case "widgets/support/widget":
521
+ return e + `
522
+
523
+ export namespace tsx {
524
+ namespace JSX {
525
+ interface IntrinsicElements {
526
+ [elementName: string]: any;
527
+ }
528
+
529
+ interface Element {
530
+ }
531
+ }
532
+ }`;
533
+ default:
534
+ return e;
535
+ }
536
+ }
537
+ function ca(e, t) {
538
+ let n = `/// <reference types="../index.d.ts" />
539
+ `, i = `
540
+
541
+ `, a = "", r = "", l = "", s = "", c = "", m = "", d = "", p = "", f = "", u = "", g = "", C = "";
542
+ for (let E = 0; E < e.length; ++E) {
543
+ const L = e[E];
544
+ for (let A = 0; A < L.declarations.length; ++A) {
545
+ const J = L.declarations[A];
546
+ if (J.customElement !== !0)
547
+ continue;
548
+ const _ = J;
549
+ if (_.privacy !== void 0 || te(_).hasExplicitAbstract === !0)
550
+ continue;
551
+ const { name: F, tagName: G, pascalCaseName: w, events: K } = _;
552
+ i += `import type { ${F} } from "./${L.path}/customElement.js";
553
+ `, n += `import type { ${F} } from "../${L.path}/customElement.js";
554
+ `;
555
+ const [me, ke] = cn(_.name, _.members);
556
+ let ie = "", q = "";
557
+ if (K !== void 0) {
558
+ for (let pe = 0; pe < K.length; ++pe) {
559
+ const Fe = K[pe], Pt = `EventHandler<${F}["${Fe.name}"]>`;
560
+ ie += ` ${xt(`on${Fe.name}`)}?: ${Pt};
561
+ `, q += ` ${xt(`on${Fe.name[0].toUpperCase()}${Fe.name.slice(1)}`)}?: ${Pt};
562
+ `;
563
+ }
564
+ a += `export interface ${w}CustomEvent<T> extends CustomEvent<T> {
565
+ detail: T;
566
+ target: ${F};
567
+ currentTarget: ${F};
568
+ }
569
+ `, r += ` type HTML${w}ElementEventMap = ${F}["@eventTypes"];
570
+ `;
571
+ }
572
+ r += ` type HTML${w}Element = ${F};
573
+
574
+ `, l += ` "${G}": ${F};
575
+ `, s += `interface Lumina${w} extends ${me}h.JSX.HTMLAttributes<${F}> {
576
+ ${ie}}
577
+
578
+ `, c += ` "${G}": Lumina${w};
579
+ `, m += `interface Preact${w} extends ${me}HTMLAttributes<${F}> {
580
+ ${ie}}
581
+
582
+ `, d += ` "${G}": Preact${w};
583
+ `, p += `interface React${w} extends ${me}HTMLProps<${F}> {
584
+ ${ie}}
585
+
586
+ `, f += ` "${G}": React${w};
587
+ `, u += `interface Stencil${w} extends ${me}StencilJsx.HTMLAttributes<${F}> {
588
+ ${q}}
589
+
590
+ `, g += ` "${G}": Stencil${w};
591
+ `, ke !== "" && (C += ke);
592
+ }
593
+ }
594
+ if (r === "") {
595
+ t.vanillaComponentTypes = "";
596
+ return;
597
+ }
598
+ const y = "@arcgis/lumina";
599
+ t.vanillaComponentTypes = `${i}
600
+ export { ToEvents, TargetedEvent } from "${y}";
601
+
602
+ ${a}
603
+
604
+ declare global {
605
+ interface HTMLElementTagNameMap {
606
+ ${l}
607
+ }
608
+
609
+ ${r}
610
+ }`;
611
+ const h = `import "./index.js";
612
+ export declare const defineCustomElements: import("${y}").DefineCustomElements;`, M = `${t.config.context.dtsEmitPath}loader.d.ts`;
613
+ t.dtsFiles.set(M, h);
614
+ const b = `${n}import type { h, EventHandler } from "${y}";
615
+
616
+ ${C}${s}declare module "@arcgis/lumina" {
617
+ export namespace h.JSX {
618
+ interface IntrinsicElements {
619
+ ${c} }
620
+ }
621
+ }`, v = ` interface IntrinsicElements {
622
+ ${d} }`, x = `${n}import { HTMLAttributes } from "preact";
623
+ import type { EventHandler } from "${y}";
624
+
625
+ ${C}${m}declare module 'preact' {
626
+ namespace createElement.JSX {
627
+ ${v}
628
+ }
629
+ namespace h.JSX {
630
+ ${v}
631
+ }
632
+ }`, R = `
633
+ namespace JSX {
634
+ interface IntrinsicElements {
635
+ ${f} }
636
+ }
637
+ `, I = `${n}import type { HTMLProps } from 'react';
638
+ import type { EventHandler } from "${y}";
639
+
640
+ ${C}${p}declare module "react" {${R}}
641
+ declare module "react/jsx-runtime" {${R}}
642
+ declare module "react/jsx-dev-runtime" {${R}}`, k = `${n}import { JSXBase as StencilJsx } from "@stencil/core/internal";
643
+ import type { EventHandler } from "${y}";
644
+
645
+ ${C}${u}interface ExposedElements {
646
+ ${g}}
647
+
648
+ export namespace JSX {
649
+ export interface IntrinsicElements extends ExposedElements {}
650
+ }
651
+
652
+ declare module "@stencil/core/internal/stencil-public-runtime" {
653
+ export namespace h.JSX {
654
+ interface IntrinsicElements extends ExposedElements {}
655
+ }
656
+ }`, D = `/** @deprecated import from stencil.d.ts instead */
657
+ export * from "./stencil.js";`, S = `${t.config.context.dtsEmitPath}types/`, N = `${S}lumina.d.ts`, B = `${S}preact.d.ts`, $ = `${S}react.d.ts`, V = `${S}stencil.d.ts`, T = `${S}components.d.ts`;
658
+ t.dtsFiles.set(N, b), t.dtsFiles.set(B, x), t.dtsFiles.set($, I), t.dtsFiles.set(V, k), t.dtsFiles.set(T, D);
659
+ }
660
+ function cn(e, t) {
661
+ const n = [], i = [];
662
+ let a = !1;
663
+ if (t !== void 0)
664
+ for (let s = 0; s < t.length; ++s) {
665
+ const c = t[s];
666
+ if (c.kind !== "field" || c.readonly !== void 0 || c.privacy !== void 0)
667
+ continue;
668
+ if (c.getterType !== void 0) {
669
+ a = !0;
670
+ continue;
671
+ }
672
+ c.docsTags?.includes(W.required) === !0 ? n.push(`"${c.name}"`) : i.push(`"${c.name}"`);
673
+ }
674
+ let r = n.length > 0 ? `Required<Pick<${e}, ${n.join(" | ")}>>` : "";
675
+ i.length > 0 && (r.length > 0 && (r += ", "), r += `Partial<Pick<${e}, ${i.join(" | ")}>>`), a && (r.length > 0 && (r += ", "), r += `${e}SetterTypes`);
676
+ const l = a ? `type ${e}SetterTypes = ${e}["${ei}"];
677
+ ` : "";
678
+ return [r.length === 0 ? "" : `${r}, `, l];
679
+ }
680
+ function da(e, t) {
681
+ const n = t.moduleMap.get("index");
682
+ if (n === void 0)
683
+ e.unshift(dn);
684
+ else {
685
+ const i = ae(n);
686
+ i.index.named.getAssetPath === void 0 && n.declarations.push(ti), i.index.named.setAssetPath === void 0 && n.declarations.push(ii);
687
+ }
688
+ }
689
+ const ei = "@setterTypes", ti = {
690
+ [Y]: Ze(),
691
+ kind: "function",
692
+ name: "getAssetPath",
693
+ static: void 0,
694
+ deprecated: void 0,
695
+ summary: void 0,
696
+ description: "Get a resolved path from where an asset can be loaded.",
697
+ docsTags: void 0,
698
+ typeParameters: void 0,
699
+ parameters: [
700
+ {
701
+ name: "suffix",
702
+ deprecated: void 0,
703
+ summary: void 0,
704
+ description: "The relative path for the asset.",
705
+ docsTags: void 0,
706
+ optional: void 0,
707
+ rest: void 0,
708
+ type: {
709
+ text: "string",
710
+ references: void 0,
711
+ values: void 0,
712
+ source: void 0
713
+ },
714
+ default: void 0
715
+ }
716
+ ],
717
+ return: {
718
+ summary: void 0,
719
+ description: void 0,
720
+ type: {
721
+ text: "string",
722
+ references: void 0,
723
+ values: void 0,
724
+ source: void 0
725
+ }
726
+ },
727
+ inheritedFrom: void 0,
728
+ signature: void 0,
729
+ privacy: void 0,
730
+ source: void 0
731
+ }, ii = {
732
+ [Y]: Ze(),
733
+ kind: "function",
734
+ name: "setAssetPath",
735
+ static: void 0,
736
+ deprecated: void 0,
737
+ summary: void 0,
738
+ description: `Used to manually set the base path where package assets (like localization
739
+ and icons) can be found.
740
+
741
+ By default, the package assets are loaded from
742
+ \`https://js.arcgis.com/<version>/<simplified-package-name>/\`. We are hosting
743
+ our assets on a CDN (Content Delivery Network) to ensure fast and reliable
744
+ access. It is CORS-enabled, so you can load the assets from any domain. This
745
+ is the recommended way to load the assets and avoid bundling them with your
746
+ application.
747
+
748
+ However, if you need to host the assets locally, you can copy them manually
749
+ as part of your build process and use \`setAssetPath\` to customize where the
750
+ browser will load the assets from.`,
751
+ docsTags: void 0,
752
+ typeParameters: void 0,
753
+ parameters: [
754
+ {
755
+ name: "path",
756
+ deprecated: void 0,
757
+ summary: void 0,
758
+ description: "Relative or absolute path to the assets folder.",
759
+ docsTags: void 0,
760
+ optional: void 0,
761
+ rest: void 0,
762
+ type: {
763
+ text: "URL | string",
764
+ references: [
765
+ {
766
+ name: "URL",
767
+ module: void 0,
768
+ package: "global:",
769
+ viewUrl: "https://developer.mozilla.org/docs/Web/API/URL",
770
+ start: 0,
771
+ end: 3
772
+ }
773
+ ],
774
+ values: void 0,
775
+ source: void 0
776
+ },
777
+ default: void 0
778
+ }
779
+ ],
780
+ return: {
781
+ summary: void 0,
782
+ description: void 0,
783
+ type: {
784
+ text: "void",
785
+ references: void 0,
786
+ values: void 0,
787
+ source: void 0
788
+ }
789
+ },
790
+ inheritedFrom: void 0,
791
+ signature: void 0,
792
+ privacy: void 0,
793
+ source: void 0
794
+ }, ni = Qt(void 0, "index", {}, { class: void 0, default: void 0, named: {} });
795
+ ni.importsText = "";
796
+ const dn = {
797
+ [Y]: ni,
798
+ kind: "javascript-module",
799
+ path: "index",
800
+ sourcePath: "src/index.ts",
801
+ deprecated: void 0,
802
+ description: void 0,
803
+ docsTags: void 0,
804
+ summary: void 0,
805
+ declarations: [ti, ii],
806
+ exports: void 0
807
+ };
808
+ function pa(e, t) {
809
+ const n = Te(e), i = he(n), a = ae(e);
810
+ if (a.index.class?.privacy !== void 0)
811
+ return e.declarations.length > 1 && t.emitError(
812
+ `Did not expect to find any public declarations in a module that declares a private web component. Found: ${e.declarations.filter((s) => s !== a.index.class).map((s) => s.name).join(", ")}`,
813
+ { file: a.file, node: void 0 }
814
+ ), "";
815
+ let r = `${i}${a.importsText}`;
816
+ if (r !== "" && (r += `
817
+ `), a.reExports !== void 0) {
818
+ for (let s = 0; s < a.reExports.length; ++s) {
819
+ const c = a.reExports[s];
820
+ let m = "";
821
+ if (c.specifiers[0].exportName === "*") {
822
+ const d = c.specifiers[0];
823
+ m = (c.isTypeOnly ? "type *" : "*") + (d.aliasName ? ` as ${d.aliasName}` : "");
824
+ } else {
825
+ for (let d = 0; d < c.specifiers.length; ++d) {
826
+ const p = c.specifiers[d];
827
+ m += (d === 0 ? "{" : ",") + (c.isTypeOnly ? " type " : " ") + p.exportName + (p.aliasName ? ` as ${p.aliasName}` : "");
828
+ }
829
+ m += " }";
830
+ }
831
+ r += `export ${m} from "${c.specifier}";
832
+ `;
833
+ }
834
+ r += `
835
+ `;
836
+ }
837
+ if (a.namespaces !== void 0)
838
+ for (let s = 0; s < a.namespaces.length; ++s)
839
+ r += `${a.namespaces[s]}
840
+
841
+ `;
842
+ const l = e.declarations;
843
+ a.constructorPropertiesInterface !== void 0 && (r += `${At(a.constructorPropertiesInterface)}
844
+
845
+ `);
846
+ for (let s = 0; s < l.length; ++s) {
847
+ const c = l[s];
848
+ r += At(c), s < l.length - 1 && (r += `
849
+
850
+ `);
851
+ }
852
+ return t.isJsApi ? ln(r, e, t) : (t.isComponentProject && (e.exports?.[0].kind === "custom-element-definition" ? r = `/// <reference path="../../index.d.ts" />
853
+ ${r}` : e.path === "index" && (r += t.vanillaComponentTypes)), r);
854
+ }
855
+ function he(e) {
856
+ return e === void 0 ? "" : `/*${Yi(e)}*/
857
+ `;
858
+ }
859
+ function At(e) {
860
+ let t = Te(e), n = "";
861
+ if (e.kind === "class" || e.kind === "mixin")
862
+ n = kt(e);
863
+ else if (e.kind === "interface") {
864
+ const a = te(e);
865
+ if (e.supertypes === void 0 && e.type === void 0 && e.members?.length === 1 && (e.members[0].kind === "call-signature" || e.members[0].kind === "constructor")) {
866
+ const l = e.members[0];
867
+ let s = oi(l, !0);
868
+ const c = Te(l)?.docsTags;
869
+ c !== void 0 && (t = {
870
+ description: t?.description,
871
+ docsTags: [...c, ...t?.docsTags ?? []]
872
+ });
873
+ const m = s.indexOf("): ");
874
+ s = `${s.slice(0, m)}) => ${s.slice(m + 3, -1)}`, n = Rt(e.name, e.typeParameters, void 0, s);
875
+ } else if (a.isMixinBaseClass === !0)
876
+ n = kt(e);
877
+ else if (a.emitAsTypeAlias === !0) {
878
+ let l = e.type?.text;
879
+ const s = dt(e);
880
+ s !== "" ? l = l === void 0 ? `{${s}}` : `${l} & {${s}}` : l === void 0 && a.superTypesText === void 0 && (l = "{}"), n = Rt(
881
+ e.name,
882
+ e.typeParameters,
883
+ a.superTypesText,
884
+ l
885
+ );
886
+ } else {
887
+ const l = dt(e);
888
+ n = Ni(
889
+ a.isDefaultExported === !0,
890
+ e.name,
891
+ e.typeParameters,
892
+ a.superTypesText,
893
+ l
894
+ );
895
+ }
896
+ } else if (e.kind === "function") {
897
+ const a = Tt(e);
898
+ n = Oi(
899
+ a.isDefaultExported === !0,
900
+ e.name,
901
+ e.typeParameters,
902
+ e.parameters,
903
+ e.return.type.text
904
+ );
905
+ } else if (e.kind === "variable") {
906
+ const a = Xt(e);
907
+ n += Gi(a.isDefaultExported === !0, e.name, e.type.text);
908
+ }
909
+ return `${he(t)}${n}`;
910
+ }
911
+ function kt(e) {
912
+ const t = te(e), n = t.isDefaultExported === !0, i = dt(e), a = e, r = e;
913
+ let l, s = a.mixins ?? r.supertypes;
914
+ if (s === void 0)
915
+ t.superClassText !== void 0 && (l = t.superClassText);
916
+ else if (t.superClassText === void 0 && s.length === 1) {
917
+ const m = s[0];
918
+ l = m.printableText, m.printableText = void 0, s = void 0;
919
+ } else
920
+ l = `${e.name}Superclass`;
921
+ let c = Vi(
922
+ t.hasExplicitAbstract !== void 0,
923
+ n,
924
+ e.name,
925
+ e.typeParameters,
926
+ l,
927
+ i
928
+ );
929
+ if (s !== void 0) {
930
+ c += `
931
+ declare const ${l}:`, t.superClassText !== void 0 && (c += ` typeof ${t.superClassText}`);
932
+ for (let m = 0; m < s.length; ++m) {
933
+ const d = s[m];
934
+ c += ` & typeof ${d.printableText}`, d.printableText = void 0;
935
+ }
936
+ }
937
+ return c;
938
+ }
939
+ function dt(e) {
940
+ const t = e.members;
941
+ let n = "";
942
+ const i = te(e);
943
+ if (e.kind === "mixin" && (n += `constructor(...args: any[]);
944
+ `), i.eventTypesProperty !== void 0) {
945
+ let l = mn;
946
+ if (i.eventTypesProperty.description !== void 0 || i.eventTypesProperty.docsTags !== void 0) {
947
+ const c = Te(i.eventTypesProperty);
948
+ l = he(c);
949
+ }
950
+ const s = Ft(i.eventTypesProperty);
951
+ n += `${l}${s}
952
+ `;
953
+ }
954
+ const a = e, r = e.customElement === !0;
955
+ if (t !== void 0) {
956
+ let l = "";
957
+ for (let s = 0; s < t.length; ++s) {
958
+ const c = t[s];
959
+ if (c.inheritedFrom !== void 0 || c.privacy === "private")
960
+ continue;
961
+ const d = Te(c);
962
+ n += he(d), c.kind === "field" ? (r && c.getterType !== void 0 && (l += ` ${fe(!1, !1, !1, !1, !1, c.docsTags?.includes(W.required) !== !0, c.name, c.type.text)}
963
+ `), n += Ft(c)) : n += oi(c, !1), n += `
964
+ `;
965
+ }
966
+ l !== "" && (n += `${fe(!1, !1, !1, !1, !1, !1, ei, `{
967
+ ${l}}`)}
968
+ `);
969
+ }
970
+ if (r && a.events !== void 0) {
971
+ let l = e.name;
972
+ if (e.typeParameters !== void 0) {
973
+ l += "<";
974
+ for (let c = 0; c < e.typeParameters.length; ++c)
975
+ l += e.typeParameters[c].name, c < e.typeParameters.length - 1 && (l += ", ");
976
+ l += ">";
977
+ }
978
+ let s = "";
979
+ for (let c = 0; c < a.events.length; ++c) {
980
+ const m = a.events[c];
981
+ if (m.inheritedFrom === void 0) {
982
+ const d = Te(m);
983
+ n += `${he(d)}${fe(!1, !1, !1, !0, !1, !1, m.name, `import("${pn}").TargetedEvent<this, ${m.type.text}>`)}
984
+ `;
985
+ }
986
+ s += ` ${fe(!1, !1, !1, !1, !1, !1, m.name, `${l}["${m.name}"]["detail"]`)}
987
+ `;
988
+ }
989
+ n += `${fe(!1, !1, !1, !0, !1, !1, "@eventTypes", `{
990
+ ${s}}`)}
991
+ `;
992
+ }
993
+ return n === "" ? "" : `
994
+ ${n.replaceAll(`
995
+ `, `
996
+ `).slice(0, -2)}`;
997
+ }
998
+ const pn = "@arcgis/lumina";
999
+ function Ft(e) {
1000
+ let t = "";
1001
+ const n = ki(e), i = n.isAccessor === !0, a = e.readonly === !0;
1002
+ if (e.getterType !== void 0 || i && a)
1003
+ t += Wi(
1004
+ e.privacy !== void 0,
1005
+ n.isAbstract === !0,
1006
+ e.static === !0,
1007
+ e.name,
1008
+ e.getterType?.text ?? e.type.text,
1009
+ a ? void 0 : e.type.text
1010
+ );
1011
+ else {
1012
+ const r = n.dtsTypeOverride ?? e.type.text, l = i ? !1 : r.endsWith(" | undefined"), s = l ? r.slice(0, -12) : r;
1013
+ t += fe(
1014
+ e.privacy !== void 0,
1015
+ n.isAbstract === !0,
1016
+ e.static === !0,
1017
+ a,
1018
+ i,
1019
+ l,
1020
+ e.name,
1021
+ s
1022
+ );
1023
+ }
1024
+ return t;
1025
+ }
1026
+ function oi(e, t) {
1027
+ const n = Tt(e);
1028
+ return _i(
1029
+ e.privacy !== void 0,
1030
+ n.isAbstract === !0,
1031
+ e.static === !0,
1032
+ n.hasQuestionToken === !0,
1033
+ e.kind === "constructor" ? t ? "new" : "constructor" : e.kind === "call-signature" ? "" : e.name,
1034
+ e.typeParameters,
1035
+ e.parameters,
1036
+ e.return?.type.text
1037
+ );
1038
+ }
1039
+ const mn = he({
1040
+ description: void 0,
1041
+ docsTags: [
1042
+ {
1043
+ name: "deprecated",
1044
+ text: `Do not directly reference this property.
1045
+ Use EventNames and EventTypes helpers from @arcgis/core/Evented`
1046
+ }
1047
+ ]
1048
+ });
1049
+ function ma() {
1050
+ const e = Date.now();
1051
+ return () => (Date.now() - e) / un;
1052
+ }
1053
+ const un = 1e3;
1054
+ function fn(e) {
1055
+ const t = e.indexOf("/");
1056
+ return t === -1 ? e : e.slice(0, t);
1057
+ }
1058
+ function wt(e, t, n) {
1059
+ if (!n.isComponentProject || n.config.context.isLuminaMinimalExtraction || n.config.documentation.publicStoryUrlPrefix === !1)
1060
+ return;
1061
+ const i = e.match(yn)?.[1];
1062
+ if (i === void 0) {
1063
+ n.emitError(
1064
+ 'Failed to find component tag name. Make sure the "component" property is present in the story meta. Documentation: https://webgis.esri.com/references/support-packages/storybook',
1065
+ { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1066
+ );
1067
+ return;
1068
+ }
1069
+ const a = [];
1070
+ for (const l of e.matchAll(vn)) {
1071
+ const s = l[1], c = hn(s), m = e.indexOf("{", l.index), d = e.indexOf("}", m), p = e.slice(0, l.index).trimEnd();
1072
+ let f = "";
1073
+ if (p.endsWith("*/")) {
1074
+ const C = p.lastIndexOf("/**");
1075
+ f = p.slice(C + 3, -2).trim().replaceAll(Sn, "");
1076
+ }
1077
+ const u = e.slice(m, d).match(gn)?.[1] || c, g = Tn(c);
1078
+ a.push({
1079
+ description: `${u}${f ? `
1080
+ ${f}` : ""}`,
1081
+ url: `${n.config.documentation.publicStoryUrlPrefix}?path=/story/${i}--${g}&singleStory=true`,
1082
+ source: void 0
1083
+ });
1084
+ }
1085
+ if (a.length === 0) {
1086
+ n.emitError(
1087
+ 'Failed to find any stories. Make sure stories are defined using expected format and have a "name" property. Documentation: https://webgis.esri.com/references/support-packages/storybook',
1088
+ { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1089
+ );
1090
+ return;
1091
+ }
1092
+ const r = n.componentStories[i];
1093
+ r === void 0 ? n.componentStories[i] = a : r.push(...a);
1094
+ }
1095
+ const yn = /component: ["']([^"']+)["']/u, vn = /export const (\w+)/gu, gn = /name: ["']([^"']+)["']/u, Sn = /^\s*\*\s?/gmu, Tn = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), hn = (e) => e.replace(/_/gu, " ").replace(/-/gu, " ").replace(/\./gu, " ").replace(/([^\n])([A-Z])([a-z])/gu, (t, n, i, a) => `${n} ${i}${a}`).replace(/([a-z])([A-Z])/gu, (t, n, i) => `${n} ${i}`).replace(/([a-z])([0-9])/giu, (t, n, i) => `${n} ${i}`).replace(/([0-9])([a-z])/giu, (t, n, i) => `${n} ${i}`).replace(/(\s|^)(\w)/gu, (t, n, i) => `${n}${i.toUpperCase()}`).replace(/ +/gu, " ").trim();
1096
+ function pt(e, t) {
1097
+ let i = t.startsWith("./") ? t.slice(2) : t, a = e;
1098
+ for (; ; ) {
1099
+ const r = a.lastIndexOf("/");
1100
+ if (a = r === -1 ? "" : a.slice(0, r), i.startsWith("../"))
1101
+ i = i.slice(3);
1102
+ else
1103
+ return a === "" ? i : `${a}/${i}`;
1104
+ }
1105
+ }
1106
+ function ye(e, t) {
1107
+ let n = 0;
1108
+ for (; ; ) {
1109
+ const a = e.indexOf("/", n) + 1;
1110
+ if (a === 0)
1111
+ break;
1112
+ const r = e.slice(n, a), l = t.slice(n, a);
1113
+ if (r !== l)
1114
+ break;
1115
+ n = a;
1116
+ }
1117
+ let i = "";
1118
+ for (let a = n; a < e.length && (a = e.indexOf("/", a), a !== -1); ++a)
1119
+ i += "../";
1120
+ return i.length === 0 && (i = "./"), `${i}${t.slice(n)}`;
1121
+ }
1122
+ function Nt(e, t, n = 0) {
1123
+ for (; n < e.length; ++n) {
1124
+ const i = e[n];
1125
+ i.start += t, i.end += t;
1126
+ }
1127
+ return e;
1128
+ }
1129
+ function Ot(e, t) {
1130
+ if (e === t)
1131
+ return !0;
1132
+ if (typeof e != "object" || typeof t != "object" || e === null || t === null)
1133
+ return !1;
1134
+ if (Array.isArray(e)) {
1135
+ if (!Array.isArray(t) || e.length !== t.length)
1136
+ return !1;
1137
+ for (let a = 0; a < e.length; ++a)
1138
+ if (!Ot(e[a], t[a]))
1139
+ return !1;
1140
+ return !0;
1141
+ }
1142
+ const n = Object.keys(e), i = Object.keys(t);
1143
+ if (n.length !== i.length)
1144
+ return !1;
1145
+ for (let a = 0; a < n.length; ++a) {
1146
+ const r = n[a];
1147
+ if (!Ot(e[r], t[r]))
1148
+ return !1;
1149
+ }
1150
+ return !0;
1151
+ }
1152
+ function En(e, t) {
1153
+ if (t.config.context.isLuminaMinimalExtraction || t.componentTagName === void 0)
1154
+ return;
1155
+ const n = e.moduleSpecifier.text, i = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u;
1156
+ if (!(n.startsWith(".") && i.test(n)))
1157
+ return;
1158
+ const r = n.split("?", 1)[0], l = Ji.join(t.file.fileName, "..", r), s = zi(l, "utf-8"), c = Cn(s);
1159
+ c !== void 0 && (t.componentCssFileDocs = c);
1160
+ }
1161
+ function Cn(e) {
1162
+ const t = [];
1163
+ for (const n of e.matchAll(bn)) {
1164
+ const i = n.groups.name, a = n.groups.description.replaceAll(Mn, " ").trim();
1165
+ t.push({
1166
+ name: i,
1167
+ deprecated: void 0,
1168
+ summary: void 0,
1169
+ description: a.endsWith("*") ? a.slice(0, -1).trim() : a,
1170
+ syntax: void 0,
1171
+ default: void 0
1172
+ });
1173
+ }
1174
+ return t.length === 0 ? void 0 : t;
1175
+ }
1176
+ const bn = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, Mn = /\n\s+\*? ?/gu;
1177
+ function ai(e, t) {
1178
+ if (e === void 0)
1179
+ return !1;
1180
+ for (let n = 0; n < e.length; ++n)
1181
+ if (e[n].kind === t)
1182
+ return !0;
1183
+ return !1;
1184
+ }
1185
+ function et(e) {
1186
+ if (e.modifiers === void 0)
1187
+ return 0;
1188
+ for (let t = 0; t < e.modifiers.length; ++t)
1189
+ if (e.modifiers[t].kind === o.SyntaxKind.ExportKeyword)
1190
+ return e.modifiers[t + 1]?.kind === o.SyntaxKind.DefaultKeyword ? 2 : 1;
1191
+ return 0;
1192
+ }
1193
+ function ri(e, t) {
1194
+ return e.endsWith("Properties") && t.apiClassLikeName === e.slice(0, -10);
1195
+ }
1196
+ const Pn = /* @__PURE__ */ JSON.parse('{"AbortController":["AbortController"],"AbortSignal":["AbortSignal"],"AbortSignalEventMap":[],"AbstractRange":["AbstractRange"],"AbstractWorker":["error_event"],"AbstractWorkerEventMap":[],"ActiveXObject":[],"addEventListener":[],"AddEventListenerOptions":[],"AddressErrors":[],"AesCbcParams":[],"AesCtrParams":[],"AesDerivedKeyParams":[],"AesGcmParams":[],"AesKeyAlgorithm":[],"AesKeyGenParams":[],"AggregateError":[],"AggregateErrorConstructor":[],"alert":["Window/alert"],"Algorithm":[],"AlgorithmIdentifier":[],"AlignSetting":[],"AllowSharedBufferSource":[],"AlphaOption":[],"AnalyserNode":["AnalyserNode"],"AnalyserOptions":[],"ANGLE_instanced_arrays":["ANGLE_instanced_arrays"],"Animatable":["animate"],"Animation":["Animation"],"AnimationEffect":["AnimationEffect"],"AnimationEvent":["AnimationEvent"],"AnimationEventInit":[],"AnimationEventMap":[],"AnimationFrameProvider":["cancelAnimationFrame"],"AnimationPlaybackEvent":["AnimationPlaybackEvent"],"AnimationPlaybackEventInit":[],"AnimationPlayState":[],"AnimationReplaceState":[],"AnimationTimeline":["AnimationTimeline"],"AppendMode":[],"ARIAMixin":["ariaActiveDescendantElement"],"Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array"],"ArrayBuffer":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"],"ArrayBufferConstructor":[],"ArrayBufferLike":[],"ArrayBufferTypes":[],"ArrayBufferView":[],"ArrayConstructor":[],"ArrayIterator":[],"ArrayLike":[],"AssignedNodesOptions":[],"AsyncDisposable":[],"AsyncDisposableStack":[],"AsyncDisposableStackConstructor":[],"AsyncGenerator":[],"AsyncGeneratorFunction":[],"AsyncGeneratorFunctionConstructor":[],"AsyncIterable":[],"AsyncIterableIterator":[],"AsyncIterator":[],"AsyncIteratorObject":[],"atob":["Window/atob"],"Atomics":[],"AttestationConveyancePreference":[],"Attr":["Attr"],"Audio":[],"AudioBuffer":["AudioBuffer"],"AudioBufferOptions":[],"AudioBufferSourceNode":["AudioBufferSourceNode"],"AudioBufferSourceOptions":[],"AudioConfiguration":[],"AudioContext":["AudioContext"],"AudioContextLatencyCategory":[],"AudioContextOptions":[],"AudioContextState":[],"AudioData":["AudioData"],"AudioDataCopyToOptions":[],"AudioDataInit":[],"AudioDataOutputCallback":[],"AudioDecoder":["AudioDecoder"],"AudioDecoderConfig":[],"AudioDecoderEventMap":[],"AudioDecoderInit":[],"AudioDecoderSupport":[],"AudioDestinationNode":["AudioDestinationNode"],"AudioEncoder":["AudioEncoder"],"AudioEncoderConfig":[],"AudioEncoderEventMap":[],"AudioEncoderInit":[],"AudioEncoderSupport":[],"AudioListener":["AudioListener"],"AudioNode":["AudioNode"],"AudioNodeOptions":[],"AudioParam":["setValueCurveAtTime"],"AudioParamMap":["AudioParamMap"],"AudioProcessingEvent":["AudioProcessingEvent"],"AudioProcessingEventInit":[],"AudioSampleFormat":[],"AudioScheduledSourceNode":["AudioScheduledSourceNode"],"AudioScheduledSourceNodeEventMap":[],"AudioTimestamp":[],"AudioWorklet":["AudioWorklet"],"AudioWorkletNode":["AudioWorkletNode"],"AudioWorkletNodeEventMap":[],"AudioWorkletNodeOptions":[],"AuthenticationExtensionsClientInputs":[],"AuthenticationExtensionsClientInputsJSON":[],"AuthenticationExtensionsClientOutputs":[],"AuthenticationExtensionsLargeBlobInputs":[],"AuthenticationExtensionsLargeBlobInputsJSON":[],"AuthenticationExtensionsLargeBlobOutputs":[],"AuthenticationExtensionsPRFInputs":[],"AuthenticationExtensionsPRFInputsJSON":[],"AuthenticationExtensionsPRFOutputs":[],"AuthenticationExtensionsPRFValues":[],"AuthenticationExtensionsPRFValuesJSON":[],"AuthenticatorAssertionResponse":["AuthenticatorAssertionResponse"],"AuthenticatorAttachment":[],"AuthenticatorAttestationResponse":["AuthenticatorAttestationResponse"],"AuthenticatorResponse":["AuthenticatorResponse"],"AuthenticatorSelectionCriteria":[],"AuthenticatorTransport":[],"AutoFill":[],"AutoFillAddressKind":[],"AutoFillBase":[],"AutoFillContactField":[],"AutoFillContactKind":[],"AutoFillCredentialField":[],"AutoFillField":[],"AutoFillNormalField":[],"AutoFillSection":[],"AutoKeyword":[],"AutomationRate":[],"AvcBitstreamFormat":[],"AvcEncoderConfig":[],"Awaited":["https://www.typescriptlang.org/docs/handbook/utility-types.html#awaitedtype"],"BarProp":["BarProp"],"Base64URLString":[],"BaseAudioContext":["createIIRFilter"],"BaseAudioContextEventMap":[],"BeforeUnloadEvent":["BeforeUnloadEvent"],"BigInt":[],"BigInt64Array":[],"BigInt64ArrayConstructor":[],"BigIntConstructor":[],"BigInteger":[],"BigIntToLocaleStringOptions":[],"BigUint64Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint64Array"],"BigUint64ArrayConstructor":[],"BinaryType":[],"BiquadFilterNode":["BiquadFilterNode"],"BiquadFilterOptions":[],"BiquadFilterType":[],"BitrateMode":[],"Blob":["Blob"],"BlobCallback":[],"BlobEvent":["BlobEvent"],"BlobEventInit":[],"BlobPart":[],"BlobPropertyBag":[],"blur":["Window/blur"],"Body":["body"],"BodyInit":[],"Boolean":[],"BooleanConstructor":[],"BroadcastChannel":["BroadcastChannel"],"BroadcastChannelEventMap":[],"btoa":["Window/btoa"],"BufferSource":[],"BuiltinIteratorReturn":[],"ByteLengthQueuingStrategy":["ByteLengthQueuingStrategy"],"Cache":["addAll"],"CacheQueryOptions":[],"caches":[],"CacheStorage":["CacheStorage"],"CallableFunction":[],"cancelAnimationFrame":["DedicatedWorkerGlobalScope/cancelAnimationFrame"],"cancelIdleCallback":["Window/cancelIdleCallback"],"CanPlayTypeResult":[],"CanvasCaptureMediaStreamTrack":["CanvasCaptureMediaStreamTrack"],"CanvasCompositing":["globalAlpha"],"CanvasDirection":[],"CanvasDrawImage":["drawImage"],"CanvasDrawPath":["beginPath"],"CanvasFillRule":[],"CanvasFillStrokeStyles":["fillStyle"],"CanvasFilters":["filter"],"CanvasFontKerning":[],"CanvasFontStretch":[],"CanvasFontVariantCaps":[],"CanvasGradient":["CanvasGradient"],"CanvasImageData":["createImageData"],"CanvasImageSmoothing":["imageSmoothingEnabled"],"CanvasImageSource":[],"CanvasLineCap":[],"CanvasLineJoin":[],"CanvasPath":["roundRect"],"CanvasPathDrawingStyles":["setLineDash"],"CanvasPattern":["CanvasPattern"],"CanvasRect":["clearRect"],"CanvasRenderingContext2D":["CanvasRenderingContext2D"],"CanvasRenderingContext2DSettings":[],"CanvasSettings":["getContextAttributes"],"CanvasShadowStyles":["shadowBlur"],"CanvasState":["isContextLost"],"CanvasText":["fillText"],"CanvasTextAlign":[],"CanvasTextBaseline":[],"CanvasTextDrawingStyles":["direction"],"CanvasTextRendering":[],"CanvasTransform":["getTransform"],"CanvasUserInterface":["drawFocusIfNeeded"],"Capitalize":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"captureEvents":["Window/captureEvents"],"CaretPosition":["CaretPosition"],"CaretPositionFromPointOptions":[],"CDATASection":["CDATASection"],"ChannelCountMode":[],"ChannelInterpretation":[],"ChannelMergerNode":["ChannelMergerNode"],"ChannelMergerOptions":[],"ChannelSplitterNode":["ChannelSplitterNode"],"ChannelSplitterOptions":[],"CharacterData":["CharacterData"],"CheckVisibilityOptions":[],"ChildNode":["after"],"ClassAccessorDecoratorContext":[],"ClassAccessorDecoratorResult":[],"ClassAccessorDecoratorTarget":[],"ClassDecorator":[],"ClassDecoratorContext":[],"ClassFieldDecoratorContext":[],"ClassGetterDecoratorContext":[],"ClassMemberDecoratorContext":[],"ClassMethodDecoratorContext":[],"ClassSetterDecoratorContext":[],"clearInterval":["Window/clearInterval"],"clearTimeout":["Window/clearTimeout"],"Client":["Client"],"clientInformation":[],"ClientQueryOptions":[],"ClientRect":[],"Clients":["Clients"],"ClientTypes":[],"Clipboard":["Clipboard"],"ClipboardEvent":["ClipboardEvent"],"ClipboardEventInit":[],"ClipboardItem":["ClipboardItem"],"ClipboardItemData":[],"ClipboardItemOptions":[],"ClipboardItems":[],"close":["DedicatedWorkerGlobalScope/close"],"closed":[],"CloseEvent":["CloseEvent"],"CloseEventInit":[],"CodecState":[],"ColorGamut":[],"ColorSpaceConversion":[],"Comment":["Comment"],"CompositeOperation":[],"CompositeOperationOrAuto":[],"CompositionEvent":["CompositionEvent"],"CompositionEventInit":[],"CompressionFormat":[],"CompressionStream":["CompressionStream"],"ComputedEffectTiming":[],"ComputedKeyframe":[],"ConcatArray":[],"confirm":["Window/confirm"],"console":[],"Console":["console"],"ConstantSourceNode":["ConstantSourceNode"],"ConstantSourceOptions":[],"ConstrainBoolean":[],"ConstrainBooleanParameters":[],"ConstrainDOMString":[],"ConstrainDOMStringParameters":[],"ConstrainDouble":[],"ConstrainDoubleRange":[],"ConstrainULong":[],"ConstrainULongRange":[],"ConstructorParameters":["https://www.typescriptlang.org/docs/handbook/utility-types.html#constructorparameterstype"],"ContentVisibilityAutoStateChangeEvent":["ContentVisibilityAutoStateChangeEvent"],"ContentVisibilityAutoStateChangeEventInit":[],"ConvolverNode":["ConvolverNode"],"ConvolverOptions":[],"CookieChangeEvent":["CookieChangeEvent"],"CookieChangeEventInit":[],"CookieInit":[],"CookieList":[],"CookieListItem":[],"CookieSameSite":[],"cookieStore":[],"CookieStore":["CookieStore"],"CookieStoreDeleteOptions":[],"CookieStoreEventMap":[],"CookieStoreGetOptions":[],"CookieStoreManager":["subscribe"],"COSEAlgorithmIdentifier":[],"CountQueuingStrategy":["CountQueuingStrategy"],"createImageBitmap":["Window/createImageBitmap"],"Credential":["Credential"],"CredentialCreationOptions":[],"CredentialMediationRequirement":[],"CredentialPropertiesOutput":[],"CredentialRequestOptions":[],"CredentialsContainer":["CredentialsContainer"],"crossOriginIsolated":[],"crypto":[],"Crypto":["Crypto"],"CryptoKey":["CryptoKey"],"CryptoKeyPair":[],"CSPViolationReportBody":["CSPViolationReportBody"],"CSS":[null,{"cap":[],"ch":["CSS/factory_functions_static"],"cm":["CSS/factory_functions_static"],"cqb":["CSS/factory_functions_static"],"cqh":["CSS/factory_functions_static"],"cqi":["CSS/factory_functions_static"],"cqmax":["CSS/factory_functions_static"],"cqmin":["CSS/factory_functions_static"],"cqw":["CSS/factory_functions_static"],"deg":["CSS/factory_functions_static"],"dpcm":["CSS/factory_functions_static"],"dpi":["CSS/factory_functions_static"],"dppx":["CSS/factory_functions_static"],"dvb":["CSS/factory_functions_static"],"dvh":["CSS/factory_functions_static"],"dvi":["CSS/factory_functions_static"],"dvmax":["CSS/factory_functions_static"],"dvmin":["CSS/factory_functions_static"],"dvw":["CSS/factory_functions_static"],"em":["CSS/factory_functions_static"],"escape":["CSS/escape_static"],"ex":["CSS/factory_functions_static"],"fr":["CSS/factory_functions_static"],"grad":["CSS/factory_functions_static"],"highlights":[],"Hz":["CSS/factory_functions_static"],"ic":[],"kHz":["CSS/factory_functions_static"],"lh":[],"lvb":["CSS/factory_functions_static"],"lvh":["CSS/factory_functions_static"],"lvi":["CSS/factory_functions_static"],"lvmax":["CSS/factory_functions_static"],"lvmin":["CSS/factory_functions_static"],"lvw":["CSS/factory_functions_static"],"mm":["CSS/factory_functions_static"],"ms":["CSS/factory_functions_static"],"number":["CSS/factory_functions_static"],"pc":["CSS/factory_functions_static"],"percent":["CSS/factory_functions_static"],"pt":["CSS/factory_functions_static"],"px":["CSS/factory_functions_static"],"Q":["CSS/factory_functions_static"],"rad":["CSS/factory_functions_static"],"rcap":[],"rch":[],"registerProperty":["CSS/registerProperty_static"],"rem":["CSS/factory_functions_static"],"rex":[],"ric":[],"rlh":[],"s":["CSS/factory_functions_static"],"supports":["CSS/supports_static"],"svb":["CSS/factory_functions_static"],"svh":["CSS/factory_functions_static"],"svi":["CSS/factory_functions_static"],"svmax":["CSS/factory_functions_static"],"svmin":["CSS/factory_functions_static"],"svw":["CSS/factory_functions_static"],"turn":["CSS/factory_functions_static"],"vb":["CSS/factory_functions_static"],"vh":["CSS/factory_functions_static"],"vi":["CSS/factory_functions_static"],"vmax":["CSS/factory_functions_static"],"vmin":["CSS/factory_functions_static"],"vw":["CSS/factory_functions_static"]}],"CSSAnimation":["CSSAnimation"],"CSSConditionRule":["CSSConditionRule"],"CSSContainerRule":["CSSContainerRule"],"CSSCounterStyleRule":["CSSCounterStyleRule"],"CSSFontFaceRule":["CSSFontFaceRule"],"CSSFontFeatureValuesRule":["CSSFontFeatureValuesRule"],"CSSFontPaletteValuesRule":["CSSFontPaletteValuesRule"],"CSSGroupingRule":["CSSGroupingRule"],"CSSImageValue":["CSSImageValue"],"CSSImportRule":["CSSImportRule"],"CSSKeyframeRule":["CSSKeyframeRule"],"CSSKeyframesRule":["CSSKeyframesRule"],"CSSKeywordish":[],"CSSKeywordValue":["CSSKeywordValue"],"CSSLayerBlockRule":["CSSLayerBlockRule"],"CSSLayerStatementRule":["CSSLayerStatementRule"],"CSSMathClamp":[],"CSSMathInvert":["CSSMathInvert"],"CSSMathMax":["CSSMathMax"],"CSSMathMin":["CSSMathMin"],"CSSMathNegate":["CSSMathNegate"],"CSSMathOperator":[],"CSSMathProduct":["CSSMathProduct"],"CSSMathSum":["CSSMathSum"],"CSSMathValue":["CSSMathValue"],"CSSMatrixComponent":["CSSMatrixComponent"],"CSSMatrixComponentOptions":[],"CSSMediaRule":["CSSMediaRule"],"CSSNamespaceRule":["CSSNamespaceRule"],"CSSNestedDeclarations":["CSSNestedDeclarations"],"CSSNumberish":[],"CSSNumericArray":["CSSNumericArray"],"CSSNumericBaseType":[],"CSSNumericType":[],"CSSNumericValue":["CSSNumericValue"],"CSSPageRule":["CSSPageRule"],"CSSPerspective":["CSSPerspective"],"CSSPerspectiveValue":[],"CSSPropertyRule":["CSSPropertyRule"],"CSSRotate":["CSSRotate"],"CSSRule":["CSSRule"],"CSSRuleList":["CSSRuleList"],"CSSScale":["CSSScale"],"CSSScopeRule":["CSSScopeRule"],"CSSSkew":["CSSSkew"],"CSSSkewX":["CSSSkewX"],"CSSSkewY":["CSSSkewY"],"CSSStartingStyleRule":["CSSStartingStyleRule"],"CSSStyleDeclaration":["CSSStyleDeclaration"],"CSSStyleRule":["CSSStyleRule"],"CSSStyleSheet":["CSSStyleSheet"],"CSSStyleSheetInit":[],"CSSStyleValue":["CSSStyleValue"],"CSSSupportsRule":["CSSSupportsRule"],"CSSTransformComponent":["CSSTransformComponent"],"CSSTransformValue":["CSSTransformValue"],"CSSTransition":["CSSTransition"],"CSSTranslate":["CSSTranslate"],"CSSUnitValue":["CSSUnitValue"],"CSSUnparsedSegment":[],"CSSUnparsedValue":["CSSUnparsedValue"],"CSSVariableReferenceValue":["CSSVariableReferenceValue"],"CSSViewTransitionRule":[],"CustomElementConstructor":[],"CustomElementRegistry":["CustomElementRegistry"],"customElements":[],"CustomEvent":["CustomEvent"],"CustomEventInit":[],"CustomStateSet":["CustomStateSet"],"DataTransfer":["DataTransfer"],"DataTransferItem":["DataTransferItem"],"DataTransferItemList":["DataTransferItemList"],"DataView":[],"DataViewConstructor":[],"Date":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date"],"DateConstructor":[],"DecodeErrorCallback":[],"DecodeSuccessCallback":[],"decodeURI":[],"decodeURIComponent":[],"DecompressionStream":["DecompressionStream"],"DecoratorContext":[],"DecoratorMetadata":[],"DecoratorMetadataObject":[],"DedicatedWorkerGlobalScope":["DedicatedWorkerGlobalScope"],"DedicatedWorkerGlobalScopeEventMap":[],"DelayNode":["DelayNode"],"DelayOptions":[],"DeviceMotionEvent":["DeviceMotionEvent"],"DeviceMotionEventAcceleration":["DeviceMotionEventAcceleration"],"DeviceMotionEventAccelerationInit":[],"DeviceMotionEventInit":[],"DeviceMotionEventRotationRate":["DeviceMotionEventRotationRate"],"DeviceMotionEventRotationRateInit":[],"DeviceOrientationEvent":["DeviceOrientationEvent"],"DeviceOrientationEventInit":[],"devicePixelRatio":[],"DirectionSetting":[],"dispatchEvent":["EventTarget/dispatchEvent"],"DisplayCaptureSurfaceType":[],"DisplayMediaStreamOptions":[],"Disposable":[],"DisposableStack":[],"DisposableStackConstructor":[],"DistanceModelType":[],"document":[],"Document":["Document"],"DocumentEventMap":[],"DocumentFragment":["DocumentFragment"],"DocumentOrShadowRoot":["activeElement"],"DocumentReadyState":[],"DocumentTimeline":["DocumentTimeline"],"DocumentTimelineOptions":[],"DocumentType":["DocumentType"],"DocumentVisibilityState":[],"DOMException":["DOMException"],"DOMHighResTimeStamp":[],"DOMImplementation":["DOMImplementation"],"DOMMatrix":["DOMMatrix"],"DOMMatrix2DInit":[],"DOMMatrixInit":[],"DOMMatrixReadOnly":["DOMMatrixReadOnly"],"DOMParser":["DOMParser"],"DOMParserSupportedType":[],"DOMPoint":["DOMPoint"],"DOMPointInit":[],"DOMPointReadOnly":["DOMPointReadOnly"],"DOMQuad":["DOMQuad"],"DOMQuadInit":[],"DOMRect":["DOMRect"],"DOMRectInit":[],"DOMRectList":["DOMRectList"],"DOMRectReadOnly":["DOMRectReadOnly"],"DOMStringList":["DOMStringList"],"DOMStringMap":["DOMStringMap"],"DOMTokenList":["DOMTokenList"],"DoubleRange":[],"DragEvent":["DragEvent"],"DragEventInit":[],"DynamicsCompressorNode":["DynamicsCompressorNode"],"DynamicsCompressorOptions":[],"EcdhKeyDeriveParams":[],"EcdsaParams":[],"EcKeyAlgorithm":[],"EcKeyGenParams":[],"EcKeyImportParams":[],"EffectTiming":[],"Element":["Element"],"ElementContentEditable":["contentEditable"],"ElementCreationOptions":[],"ElementCSSInlineStyle":["attributeStyleMap"],"ElementDefinitionOptions":[],"ElementEventMap":[],"ElementInternals":["ElementInternals"],"ElementTagNameMap":[],"EncodedAudioChunk":["EncodedAudioChunk"],"EncodedAudioChunkInit":[],"EncodedAudioChunkMetadata":[],"EncodedAudioChunkOutputCallback":[],"EncodedAudioChunkType":[],"EncodedVideoChunk":["EncodedVideoChunk"],"EncodedVideoChunkInit":[],"EncodedVideoChunkMetadata":[],"EncodedVideoChunkOutputCallback":[],"EncodedVideoChunkType":[],"encodeURI":[],"encodeURIComponent":[],"EndingType":[],"EndOfStreamError":[],"Enumerator":[],"EnumeratorConstructor":[],"EpochTimeStamp":[],"Error":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error"],"ErrorCallback":[],"ErrorConstructor":[],"ErrorEvent":["ErrorEvent"],"ErrorEventInit":[],"ErrorOptions":[],"escape":[],"eval":[],"EvalError":[],"EvalErrorConstructor":[],"event":[],"Event":["Event"],"EventCounts":["EventCounts"],"EventInit":[],"EventListener":[],"EventListenerObject":[],"EventListenerOptions":[],"EventListenerOrEventListenerObject":[],"EventModifierInit":[],"EventSource":["EventSource"],"EventSourceEventMap":[],"EventSourceInit":[],"EventTarget":["EventTarget"],"Exclude":["https://www.typescriptlang.org/docs/handbook/utility-types.html#excludeuniontype-excludedmembers"],"EXT_blend_minmax":["EXT_blend_minmax"],"EXT_color_buffer_float":["EXT_color_buffer_float"],"EXT_color_buffer_half_float":["EXT_color_buffer_half_float"],"EXT_float_blend":["EXT_float_blend"],"EXT_frag_depth":["EXT_frag_depth"],"EXT_shader_texture_lod":["EXT_shader_texture_lod"],"EXT_sRGB":["EXT_sRGB"],"EXT_texture_compression_bptc":["EXT_texture_compression_bptc"],"EXT_texture_compression_rgtc":["EXT_texture_compression_rgtc"],"EXT_texture_filter_anisotropic":["EXT_texture_filter_anisotropic"],"EXT_texture_norm16":["EXT_texture_norm16"],"ExtendableCookieChangeEvent":["ExtendableCookieChangeEvent"],"ExtendableCookieChangeEventInit":[],"ExtendableEvent":["ExtendableEvent"],"ExtendableEventInit":[],"ExtendableMessageEvent":["ExtendableMessageEvent"],"ExtendableMessageEventInit":[],"external":[],"External":[],"Extract":["https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union"],"fetch":["Window/fetch"],"FetchEvent":["FetchEvent"],"FetchEventInit":[],"File":["File"],"FileCallback":[],"FileList":["FileList"],"FilePropertyBag":[],"FileReader":["FileReader"],"FileReaderEventMap":[],"FileReaderSync":["FileReaderSync"],"FileSystem":["FileSystem"],"FileSystemCreateWritableOptions":[],"FileSystemDirectoryEntry":["FileSystemDirectoryEntry"],"FileSystemDirectoryHandle":["FileSystemDirectoryHandle"],"FileSystemDirectoryHandleAsyncIterator":[],"FileSystemDirectoryReader":["FileSystemDirectoryReader"],"FileSystemEntriesCallback":[],"FileSystemEntry":["FileSystemEntry"],"FileSystemEntryCallback":[],"FileSystemFileEntry":["FileSystemFileEntry"],"FileSystemFileHandle":["FileSystemFileHandle"],"FileSystemFlags":[],"FileSystemGetDirectoryOptions":[],"FileSystemGetFileOptions":[],"FileSystemHandle":["FileSystemHandle"],"FileSystemHandleKind":[],"FileSystemReadWriteOptions":[],"FileSystemRemoveOptions":[],"FileSystemSyncAccessHandle":["FileSystemSyncAccessHandle"],"FileSystemWritableFileStream":["FileSystemWritableFileStream"],"FileSystemWriteChunkType":[],"FillLightMode":[],"FillMode":[],"FinalizationRegistry":[],"FinalizationRegistryConstructor":[],"FlatArray":[],"Float16Array":[],"Float16ArrayConstructor":[],"Float32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float32Array"],"Float32ArrayConstructor":[],"Float32List":[],"Float64Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Float64Array"],"Float64ArrayConstructor":[],"focus":["Window/focus"],"FocusEvent":["FocusEvent"],"FocusEventInit":[],"FocusOptions":[],"FontDisplay":[],"FontFace":["FontFace"],"FontFaceDescriptors":[],"FontFaceLoadStatus":[],"FontFaceSet":["FontFaceSet"],"FontFaceSetEventMap":[],"FontFaceSetLoadEvent":["FontFaceSetLoadEvent"],"FontFaceSetLoadEventInit":[],"FontFaceSetLoadStatus":[],"FontFaceSource":["fonts"],"fonts":[],"FormData":["FormData"],"FormDataEntryValue":[],"FormDataEvent":["FormDataEvent"],"FormDataEventInit":[],"FormDataIterator":[],"FragmentDirective":["FragmentDirective"],"frameElement":[],"FrameRequestCallback":[],"frames":[],"FrameType":[],"FullscreenNavigationUI":[],"FullscreenOptions":[],"Function":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Function"],"FunctionConstructor":[],"FunctionStringCallback":[],"GainNode":["GainNode"],"GainOptions":[],"Gamepad":["Gamepad"],"GamepadButton":["GamepadButton"],"GamepadEffectParameters":[],"GamepadEvent":["GamepadEvent"],"GamepadEventInit":[],"GamepadHapticActuator":["GamepadHapticActuator"],"GamepadHapticEffectType":[],"GamepadHapticsResult":[],"GamepadMappingType":[],"Generator":[],"GeneratorFunction":[],"GeneratorFunctionConstructor":[],"GenericTransformStream":["readable"],"Geolocation":["Geolocation"],"GeolocationCoordinates":["GeolocationCoordinates"],"GeolocationPosition":["GeolocationPosition"],"GeolocationPositionError":["GeolocationPositionError"],"GetAnimationsOptions":[],"GetComposedRangesOptions":[],"getComputedStyle":["Window/getComputedStyle"],"GetHTMLOptions":[],"GetNotificationOptions":[],"GetRootNodeOptions":[],"getSelection":["Window/getSelection"],"GLbitfield":[],"GLboolean":[],"GLclampf":[],"GLenum":[],"GLfloat":[],"GLint":[],"GLint64":[],"GLintptr":[],"global":[],"GlobalCompositeOperation":[],"GlobalEventHandlers":["abort_event"],"GlobalEventHandlersEventMap":[],"GLsizei":[],"GLsizeiptr":[],"GLuint":[],"GLuint64":[],"GPUError":["GPUError"],"HardwareAcceleration":[],"HashAlgorithmIdentifier":[],"HashChangeEvent":["HashChangeEvent"],"HashChangeEventInit":[],"HdrMetadataType":[],"Headers":["Headers"],"HeadersInit":[],"HeadersIterator":[],"Highlight":["Highlight"],"HighlightRegistry":["HighlightRegistry"],"HighlightType":[],"history":[],"History":["History"],"HkdfParams":[],"HmacImportParams":[],"HmacKeyAlgorithm":[],"HmacKeyGenParams":[],"HTMLAllCollection":["HTMLAllCollection"],"HTMLAnchorElement":["HTMLAnchorElement"],"HTMLAreaElement":["HTMLAreaElement"],"HTMLAudioElement":["HTMLAudioElement"],"HTMLBaseElement":["HTMLBaseElement"],"HTMLBodyElement":["HTMLBodyElement"],"HTMLBodyElementEventMap":[],"HTMLBRElement":["HTMLBRElement"],"HTMLButtonElement":["HTMLButtonElement"],"HTMLCanvasElement":["HTMLCanvasElement"],"HTMLCollection":["namedItem"],"HTMLCollectionBase":["HTMLCollection"],"HTMLCollectionOf":[],"HTMLDataElement":["HTMLDataElement"],"HTMLDataListElement":["HTMLDataListElement"],"HTMLDetailsElement":["HTMLDetailsElement"],"HTMLDialogElement":["HTMLDialogElement"],"HTMLDirectoryElement":[],"HTMLDivElement":["HTMLDivElement"],"HTMLDListElement":["HTMLDListElement"],"HTMLDocument":[],"HTMLElement":["HTMLElement"],"HTMLElementDeprecatedTagNameMap":[],"HTMLElementEventMap":[],"HTMLElementTagNameMap":[],"HTMLEmbedElement":["HTMLEmbedElement"],"HTMLFieldSetElement":["HTMLFieldSetElement"],"HTMLFontElement":["HTMLFontElement"],"HTMLFormControlsCollection":["HTMLFormControlsCollection"],"HTMLFormElement":["HTMLFormElement"],"HTMLFrameElement":[],"HTMLFrameSetElement":["HTMLFrameSetElement"],"HTMLFrameSetElementEventMap":[],"HTMLHeadElement":["HTMLHeadElement"],"HTMLHeadingElement":["HTMLHeadingElement"],"HTMLHRElement":["HTMLHRElement"],"HTMLHtmlElement":["HTMLHtmlElement"],"HTMLHyperlinkElementUtils":["hash"],"HTMLIFrameElement":["HTMLIFrameElement"],"HTMLImageElement":["HTMLImageElement"],"HTMLInputElement":["HTMLInputElement"],"HTMLLabelElement":["HTMLLabelElement"],"HTMLLegendElement":["HTMLLegendElement"],"HTMLLIElement":["HTMLLIElement"],"HTMLLinkElement":["HTMLLinkElement"],"HTMLMapElement":["HTMLMapElement"],"HTMLMarqueeElement":["HTMLMarqueeElement"],"HTMLMediaElement":["HTMLMediaElement"],"HTMLMediaElementEventMap":[],"HTMLMenuElement":["HTMLMenuElement"],"HTMLMetaElement":["HTMLMetaElement"],"HTMLMeterElement":["HTMLMeterElement"],"HTMLModElement":["HTMLModElement"],"HTMLObjectElement":["HTMLObjectElement"],"HTMLOListElement":["HTMLOListElement"],"HTMLOptGroupElement":["HTMLOptGroupElement"],"HTMLOptionElement":["HTMLOptionElement"],"HTMLOptionsCollection":["HTMLOptionsCollection"],"HTMLOrSVGElement":["autofocus"],"HTMLOrSVGImageElement":[],"HTMLOrSVGScriptElement":[],"HTMLOutputElement":["HTMLOutputElement"],"HTMLParagraphElement":["HTMLParagraphElement"],"HTMLParamElement":["HTMLParamElement"],"HTMLPictureElement":["HTMLPictureElement"],"HTMLPreElement":["HTMLPreElement"],"HTMLProgressElement":["HTMLProgressElement"],"HTMLQuoteElement":["HTMLQuoteElement"],"HTMLScriptElement":["HTMLScriptElement"],"HTMLSelectElement":["HTMLSelectElement"],"HTMLSlotElement":["HTMLSlotElement"],"HTMLSourceElement":["HTMLSourceElement"],"HTMLSpanElement":["HTMLSpanElement"],"HTMLStyleElement":["HTMLStyleElement"],"HTMLTableCaptionElement":["HTMLTableCaptionElement"],"HTMLTableCellElement":["HTMLTableCellElement"],"HTMLTableColElement":["HTMLTableColElement"],"HTMLTableDataCellElement":[],"HTMLTableElement":["HTMLTableElement"],"HTMLTableHeaderCellElement":[],"HTMLTableRowElement":["HTMLTableRowElement"],"HTMLTableSectionElement":["HTMLTableSectionElement"],"HTMLTemplateElement":["HTMLTemplateElement"],"HTMLTextAreaElement":["HTMLTextAreaElement"],"HTMLTimeElement":["HTMLTimeElement"],"HTMLTitleElement":["HTMLTitleElement"],"HTMLTrackElement":["HTMLTrackElement"],"HTMLUListElement":["HTMLUListElement"],"HTMLUnknownElement":["HTMLUnknownElement"],"HTMLVideoElement":["HTMLVideoElement"],"HTMLVideoElementEventMap":[],"IArguments":[],"IDBCursor":["IDBCursor"],"IDBCursorDirection":[],"IDBCursorWithValue":["IDBCursorWithValue"],"IDBDatabase":["transaction"],"IDBDatabaseEventMap":[],"IDBDatabaseInfo":[],"IDBFactory":["IDBFactory"],"IDBIndex":["IDBIndex"],"IDBIndexParameters":[],"IDBKeyRange":["IDBKeyRange"],"IDBObjectStore":["createIndex"],"IDBObjectStoreParameters":[],"IDBOpenDBRequest":["IDBOpenDBRequest"],"IDBOpenDBRequestEventMap":[],"IDBRequest":["IDBRequest"],"IDBRequestEventMap":[],"IDBRequestReadyState":[],"IDBTransaction":["IDBTransaction"],"IDBTransactionDurability":[],"IDBTransactionEventMap":[],"IDBTransactionMode":[],"IDBTransactionOptions":[],"IDBValidKey":[],"IDBVersionChangeEvent":["IDBVersionChangeEvent"],"IDBVersionChangeEventInit":[],"IdleDeadline":["IdleDeadline"],"IdleRequestCallback":[],"IdleRequestOptions":[],"IIRFilterNode":["IIRFilterNode"],"IIRFilterOptions":[],"Image":[],"ImageBitmap":["ImageBitmap"],"ImageBitmapOptions":[],"ImageBitmapRenderingContext":["ImageBitmapRenderingContext"],"ImageBitmapRenderingContextSettings":[],"ImageBitmapSource":[],"ImageBufferSource":[],"ImageCapture":["ImageCapture"],"ImageData":["ImageData"],"ImageDataArray":[],"ImageDataSettings":[],"ImageDecodeOptions":[],"ImageDecoder":["ImageDecoder"],"ImageDecodeResult":[],"ImageDecoderInit":[],"ImageEncodeOptions":[],"ImageOrientation":[],"ImageSmoothingQuality":[],"ImageTrack":["ImageTrack"],"ImageTrackList":["ImageTrackList"],"ImportAssertions":[],"ImportAttributes":[],"ImportCallOptions":[],"ImportMeta":[],"ImportNodeOptions":[],"importScripts":["WorkerGlobalScope/importScripts"],"indexedDB":[],"Infinity":[],"innerHeight":[],"innerWidth":[],"InputDeviceInfo":["InputDeviceInfo"],"InputEvent":["InputEvent"],"InputEventInit":[],"InsertPosition":[],"InstanceType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype"],"Int16Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int16Array"],"Int16ArrayConstructor":[],"Int32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int32Array"],"Int32ArrayConstructor":[],"Int32List":[],"Int8Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Int8Array"],"Int8ArrayConstructor":[],"IntersectionObserver":["IntersectionObserver"],"IntersectionObserverCallback":[],"IntersectionObserverEntry":["IntersectionObserverEntry"],"IntersectionObserverInit":[],"Intl":[null,{"Collator":[],"CollatorConstructor":[],"CollatorOptions":[],"DateTimeFormat":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat"],"DateTimeFormatConstructor":[],"DateTimeFormatOptions":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat"],"DateTimeFormatPart":[],"DateTimeFormatPartTypes":[],"DateTimeFormatPartTypesRegistry":[],"DateTimeRangeFormatPart":[],"DisplayNames":[],"DisplayNamesFallback":[],"DisplayNamesLanguageDisplay":[],"DisplayNamesOptions":[],"DisplayNamesType":[],"getCanonicalLocales":[],"LDMLPluralRule":[],"ListFormat":[],"ListFormatLocaleMatcher":[],"ListFormatOptions":[],"ListFormatStyle":[],"ListFormatType":[],"Locale":[],"LocaleCollationCaseFirst":[],"LocaleHourCycleKey":[],"LocaleOptions":[],"LocalesArgument":[],"NumberFormat":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat"],"NumberFormatConstructor":[],"NumberFormatOptions":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat"],"NumberFormatOptionsCurrencyDisplay":[],"NumberFormatOptionsCurrencyDisplayRegistry":[],"NumberFormatOptionsSignDisplay":[],"NumberFormatOptionsSignDisplayRegistry":[],"NumberFormatOptionsStyle":[],"NumberFormatOptionsStyleRegistry":[],"NumberFormatOptionsUseGrouping":[],"NumberFormatOptionsUseGroupingRegistry":[],"NumberFormatPart":[],"NumberFormatPartTypeRegistry":[],"NumberFormatPartTypes":[],"NumberRangeFormatPart":[],"PluralRules":[],"PluralRulesConstructor":[],"PluralRulesOptions":[],"PluralRuleType":[],"RelativeTimeFormat":[],"RelativeTimeFormatLocaleMatcher":[],"RelativeTimeFormatNumeric":[],"RelativeTimeFormatOptions":[],"RelativeTimeFormatPart":[],"RelativeTimeFormatStyle":[],"RelativeTimeFormatUnit":[],"RelativeTimeFormatUnitSingular":[],"ResolvedCollatorOptions":[],"ResolvedDateTimeFormatOptions":[],"ResolvedDisplayNamesOptions":[],"ResolvedListFormatOptions":[],"ResolvedNumberFormatOptions":[],"ResolvedNumberFormatOptionsUseGrouping":[],"ResolvedPluralRulesOptions":[],"ResolvedRelativeTimeFormatOptions":[],"ResolvedSegmenterOptions":[],"SegmentData":[],"Segmenter":[],"SegmenterOptions":[],"SegmentIterator":[],"Segments":[],"StringNumericLiteral":[],"supportedValuesOf":[],"UnicodeBCP47LocaleIdentifier":[]}],"isFinite":[],"isNaN":[],"isSecureContext":[],"Iterable":[],"IterableIterator":[],"IterationCompositeOperation":[],"Iterator":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Iterator"],"IteratorConstructor":[],"IteratorObject":[],"IteratorObjectConstructor":[],"IteratorResult":[],"IteratorReturnResult":[],"IteratorYieldResult":[],"ITextWriter":[],"JSON":[],"JsonWebKey":[],"KeyAlgorithm":[],"KeyboardEvent":["KeyboardEvent"],"KeyboardEventInit":[],"KeyFormat":[],"Keyframe":[],"KeyframeAnimationOptions":[],"KeyframeEffect":["KeyframeEffect"],"KeyframeEffectOptions":[],"KeySystemTrackConfiguration":[],"KeyType":[],"KeyUsage":[],"KHR_parallel_shader_compile":["KHR_parallel_shader_compile"],"LargestContentfulPaint":["LargestContentfulPaint"],"LatencyMode":[],"length":[],"LineAlignSetting":[],"LineAndPositionSetting":[],"LinkStyle":["sheet"],"localStorage":[],"location":[],"Location":["Location"],"locationbar":[],"Lock":["Lock"],"LockGrantedCallback":[],"LockInfo":[],"LockManager":["LockManager"],"LockManagerSnapshot":[],"LockMode":[],"LockOptions":[],"LoginStatus":[],"Lowercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"Map":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map"],"MapConstructor":[],"MapIterator":[],"matchMedia":["Window/matchMedia"],"Math":[],"MathMLElement":["MathMLElement"],"MathMLElementEventMap":[],"MathMLElementTagNameMap":[],"MediaCapabilities":["MediaCapabilities"],"MediaCapabilitiesDecodingInfo":[],"MediaCapabilitiesEncodingInfo":[],"MediaCapabilitiesInfo":[],"MediaCapabilitiesKeySystemConfiguration":[],"MediaConfiguration":[],"MediaDecodingConfiguration":[],"MediaDecodingType":[],"MediaDeviceInfo":["MediaDeviceInfo"],"MediaDeviceKind":[],"MediaDevices":["MediaDevices"],"MediaDevicesEventMap":[],"MediaElementAudioSourceNode":["MediaElementAudioSourceNode"],"MediaElementAudioSourceOptions":[],"MediaEncodingConfiguration":[],"MediaEncodingType":[],"MediaEncryptedEvent":["MediaEncryptedEvent"],"MediaEncryptedEventInit":[],"MediaError":["MediaError"],"MediaImage":[],"MediaKeyMessageEvent":["MediaKeyMessageEvent"],"MediaKeyMessageEventInit":[],"MediaKeyMessageType":[],"MediaKeys":["MediaKeys"],"MediaKeySession":["MediaKeySession"],"MediaKeySessionClosedReason":[],"MediaKeySessionEventMap":[],"MediaKeySessionType":[],"MediaKeysPolicy":[],"MediaKeysRequirement":[],"MediaKeyStatus":[],"MediaKeyStatusMap":["MediaKeyStatusMap"],"MediaKeyStatusMapIterator":[],"MediaKeySystemAccess":["MediaKeySystemAccess"],"MediaKeySystemConfiguration":[],"MediaKeySystemMediaCapability":[],"MediaList":["MediaList"],"MediaMetadata":["MediaMetadata"],"MediaMetadataInit":[],"MediaPositionState":[],"MediaProvider":[],"MediaQueryList":["MediaQueryList"],"MediaQueryListEvent":["MediaQueryListEvent"],"MediaQueryListEventInit":[],"MediaQueryListEventMap":[],"MediaRecorder":["MediaRecorder"],"MediaRecorderEventMap":[],"MediaRecorderOptions":[],"MediaSession":["MediaSession"],"MediaSessionAction":[],"MediaSessionActionDetails":[],"MediaSessionActionHandler":[],"MediaSessionPlaybackState":[],"MediaSettingsRange":[],"MediaSource":["MediaSource"],"MediaSourceEventMap":[],"MediaSourceHandle":["MediaSourceHandle"],"MediaStream":["MediaStream"],"MediaStreamAudioDestinationNode":["MediaStreamAudioDestinationNode"],"MediaStreamAudioSourceNode":["MediaStreamAudioSourceNode"],"MediaStreamAudioSourceOptions":[],"MediaStreamConstraints":[],"MediaStreamEventMap":[],"MediaStreamTrack":["MediaStreamTrack"],"MediaStreamTrackEvent":["MediaStreamTrackEvent"],"MediaStreamTrackEventInit":[],"MediaStreamTrackEventMap":[],"MediaStreamTrackProcessor":["MediaStreamTrackProcessor"],"MediaStreamTrackProcessorInit":[],"MediaStreamTrackState":[],"MediaTrackCapabilities":[],"MediaTrackConstraints":[],"MediaTrackConstraintSet":[],"MediaTrackSettings":[],"MediaTrackSupportedConstraints":[],"menubar":[],"MessageChannel":["MessageChannel"],"MessageEvent":["MessageEvent"],"MessageEventInit":[],"MessageEventSource":[],"MessageEventTarget":["message_event"],"MessageEventTargetEventMap":[],"MessagePort":["MessagePort"],"MessagePortEventMap":[],"MethodDecorator":[],"MIDIAccess":["MIDIAccess"],"MIDIAccessEventMap":[],"MIDIConnectionEvent":["MIDIConnectionEvent"],"MIDIConnectionEventInit":[],"MIDIInput":["MIDIInput"],"MIDIInputEventMap":[],"MIDIInputMap":["MIDIInputMap"],"MIDIMessageEvent":["MIDIMessageEvent"],"MIDIMessageEventInit":[],"MIDIOptions":[],"MIDIOutput":["send"],"MIDIOutputMap":["MIDIOutputMap"],"MIDIPort":["MIDIPort"],"MIDIPortConnectionState":[],"MIDIPortDeviceState":[],"MIDIPortEventMap":[],"MIDIPortType":[],"MimeType":["MimeType"],"MimeTypeArray":["MimeTypeArray"],"MouseEvent":["MouseEvent"],"MouseEventInit":[],"moveBy":["Window/moveBy"],"moveTo":["Window/moveTo"],"MultiCacheQueryOptions":[],"MutationCallback":[],"MutationObserver":["MutationObserver"],"MutationObserverInit":[],"MutationRecord":["MutationRecord"],"MutationRecordType":[],"name":[],"NamedCurve":[],"NamedNodeMap":["NamedNodeMap"],"NaN":[],"NavigationActivation":["NavigationActivation"],"NavigationHistoryEntry":["NavigationHistoryEntry"],"NavigationHistoryEntryEventMap":[],"NavigationPreloadManager":["NavigationPreloadManager"],"NavigationPreloadState":[],"NavigationTimingType":[],"NavigationType":[],"navigator":[],"Navigator":["requestMediaKeySystemAccess"],"NavigatorAutomationInformation":["webdriver"],"NavigatorBadge":["clearAppBadge"],"NavigatorConcurrentHardware":["hardwareConcurrency"],"NavigatorContentUtils":["registerProtocolHandler"],"NavigatorCookies":["cookieEnabled"],"NavigatorID":["appCodeName"],"NavigatorLanguage":["language"],"NavigatorLocks":["locks"],"NavigatorLogin":["NavigatorLogin"],"NavigatorOnLine":["onLine"],"NavigatorPlugins":["mimeTypes"],"NavigatorStorage":["storage"],"NewableFunction":[],"Node":["Node"],"NodeFilter":[],"NodeIterator":["NodeIterator"],"NodeList":["NodeList"],"NodeListOf":[],"NoInfer":["https://www.typescriptlang.org/docs/handbook/utility-types.html#noinfertype"],"NonDocumentTypeChildNode":["nextElementSibling"],"NonElementParentNode":["getElementById"],"NonNullable":["https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union"],"Notification":["Notification"],"NotificationDirection":[],"NotificationEvent":["NotificationEvent"],"NotificationEventInit":[],"NotificationEventMap":[],"NotificationOptions":[],"NotificationPermission":[],"NotificationPermissionCallback":[],"Number":[],"NumberConstructor":[],"Object":[],"ObjectConstructor":[],"OES_draw_buffers_indexed":["OES_draw_buffers_indexed"],"OES_element_index_uint":["OES_element_index_uint"],"OES_fbo_render_mipmap":["OES_fbo_render_mipmap"],"OES_standard_derivatives":["OES_standard_derivatives"],"OES_texture_float":["OES_texture_float"],"OES_texture_float_linear":["OES_texture_float_linear"],"OES_texture_half_float":["OES_texture_half_float"],"OES_texture_half_float_linear":["OES_texture_half_float_linear"],"OES_vertex_array_object":["OES_vertex_array_object"],"OfflineAudioCompletionEvent":["OfflineAudioCompletionEvent"],"OfflineAudioCompletionEventInit":[],"OfflineAudioContext":["OfflineAudioContext"],"OfflineAudioContextEventMap":[],"OfflineAudioContextOptions":[],"OffscreenCanvas":["OffscreenCanvas"],"OffscreenCanvasEventMap":[],"OffscreenCanvasRenderingContext2D":["OffscreenCanvasRenderingContext2D"],"OffscreenRenderingContext":[],"OffscreenRenderingContextId":[],"Omit":["https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys"],"OmitThisParameter":["https://www.typescriptlang.org/docs/handbook/utility-types.html#omitthisparametertype"],"onabort":[],"onafterprint":[],"onanimationcancel":[],"onanimationend":[],"onanimationiteration":[],"onanimationstart":[],"onauxclick":[],"onbeforeinput":[],"onbeforematch":[],"onbeforeprint":[],"onbeforetoggle":[],"onbeforeunload":[],"OnBeforeUnloadEventHandler":[],"OnBeforeUnloadEventHandlerNonNull":[],"onblur":[],"oncancel":[],"oncanplay":[],"oncanplaythrough":[],"onchange":[],"onclick":[],"onclose":[],"oncontextlost":[],"oncontextmenu":[],"oncontextrestored":[],"oncopy":[],"oncuechange":[],"oncut":[],"ondblclick":[],"ondevicemotion":[],"ondeviceorientation":[],"ondeviceorientationabsolute":[],"ondrag":[],"ondragend":[],"ondragenter":[],"ondragleave":[],"ondragover":[],"ondragstart":[],"ondrop":[],"ondurationchange":[],"onemptied":[],"onended":[],"onerror":[],"OnErrorEventHandler":[],"OnErrorEventHandlerNonNull":[],"onfocus":[],"onformdata":[],"ongamepadconnected":[],"ongamepaddisconnected":[],"ongotpointercapture":[],"onhashchange":[],"oninput":[],"oninvalid":[],"onkeydown":[],"onkeypress":[],"onkeyup":[],"onlanguagechange":[],"onload":[],"onloadeddata":[],"onloadedmetadata":[],"onloadstart":[],"onlostpointercapture":[],"onmessage":[],"onmessageerror":[],"onmousedown":[],"onmouseenter":[],"onmouseleave":[],"onmousemove":[],"onmouseout":[],"onmouseover":[],"onmouseup":[],"onoffline":[],"ononline":[],"onorientationchange":[],"onpagehide":[],"onpagereveal":[],"onpageshow":[],"onpageswap":[],"onpaste":[],"onpause":[],"onplay":[],"onplaying":[],"onpointercancel":[],"onpointerdown":[],"onpointerenter":[],"onpointerleave":[],"onpointermove":[],"onpointerout":[],"onpointerover":[],"onpointerrawupdate":[],"onpointerup":[],"onpopstate":[],"onprogress":[],"onratechange":[],"onrejectionhandled":[],"onreset":[],"onresize":[],"onrtctransform":[],"onscroll":[],"onscrollend":[],"onsecuritypolicyviolation":[],"onseeked":[],"onseeking":[],"onselect":[],"onselectionchange":[],"onselectstart":[],"onslotchange":[],"onstalled":[],"onstorage":[],"onsubmit":[],"onsuspend":[],"ontimeupdate":[],"ontoggle":[],"ontouchcancel":[],"ontouchend":[],"ontouchmove":[],"ontouchstart":[],"ontransitioncancel":[],"ontransitionend":[],"ontransitionrun":[],"ontransitionstart":[],"onunhandledrejection":[],"onunload":[],"onvolumechange":[],"onwaiting":[],"onwebkitanimationend":[],"onwebkitanimationiteration":[],"onwebkitanimationstart":[],"onwebkittransitionend":[],"onwheel":[],"open":["Window/open"],"opener":[],"Option":[],"OptionalEffectTiming":[],"OptionalPostfixToken":[],"OptionalPrefixToken":[],"OpusBitstreamFormat":[],"OpusEncoderConfig":[],"orientation":[],"OrientationType":[],"origin":[],"originAgentCluster":[],"OscillatorNode":["OscillatorNode"],"OscillatorOptions":[],"OscillatorType":[],"outerHeight":[],"outerWidth":[],"OverconstrainedError":["OverconstrainedError"],"OverSampleType":[],"OVR_multiview2":["OVR_multiview2"],"PageRevealEvent":["PageRevealEvent"],"PageRevealEventInit":[],"PageSwapEvent":["PageSwapEvent"],"PageSwapEventInit":[],"PageTransitionEvent":["PageTransitionEvent"],"PageTransitionEventInit":[],"pageXOffset":[],"pageYOffset":[],"PannerNode":["PannerNode"],"PannerOptions":[],"PanningModelType":[],"ParameterDecorator":[],"Parameters":["https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype"],"parent":[],"ParentNode":["childElementCount"],"parseFloat":[],"parseInt":[],"Partial":["https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype"],"Path2D":["Path2D"],"PayerErrors":[],"PaymentAddress":["ContactAddress"],"PaymentComplete":[],"PaymentCurrencyAmount":[],"PaymentDetailsBase":[],"PaymentDetailsInit":[],"PaymentDetailsModifier":[],"PaymentDetailsUpdate":[],"PaymentItem":[],"PaymentMethodChangeEvent":["PaymentMethodChangeEvent"],"PaymentMethodChangeEventInit":[],"PaymentMethodData":[],"PaymentOptions":[],"PaymentRequest":["PaymentRequest"],"PaymentRequestEventMap":[],"PaymentRequestUpdateEvent":["PaymentRequestUpdateEvent"],"PaymentRequestUpdateEventInit":[],"PaymentResponse":["PaymentResponse"],"PaymentResponseEventMap":[],"PaymentShippingOption":[],"PaymentShippingType":[],"PaymentValidationErrors":[],"Pbkdf2Params":[],"performance":[],"Performance":["Performance"],"PerformanceEntry":["PerformanceEntry"],"PerformanceEntryList":[],"PerformanceEventMap":[],"PerformanceEventTiming":["PerformanceEventTiming"],"PerformanceMark":["PerformanceMark"],"PerformanceMarkOptions":[],"PerformanceMeasure":["PerformanceMeasure"],"PerformanceMeasureOptions":[],"PerformanceNavigation":["PerformanceNavigation"],"PerformanceNavigationTiming":["PerformanceNavigationTiming"],"PerformanceObserver":["PerformanceObserver"],"PerformanceObserverCallback":[],"PerformanceObserverEntryList":["PerformanceObserverEntryList"],"PerformanceObserverInit":[],"PerformancePaintTiming":["PerformancePaintTiming"],"PerformanceResourceTiming":["PerformanceResourceTiming"],"PerformanceServerTiming":["PerformanceServerTiming"],"PerformanceTiming":["PerformanceTiming"],"PeriodicWave":["PeriodicWave"],"PeriodicWaveConstraints":[],"PeriodicWaveOptions":[],"PermissionDescriptor":[],"PermissionName":[],"Permissions":["Permissions"],"PermissionState":[],"PermissionStatus":["PermissionStatus"],"PermissionStatusEventMap":[],"personalbar":[],"PhotoCapabilities":[],"PhotoSettings":[],"Pick":["https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys"],"PictureInPictureEvent":["PictureInPictureEvent"],"PictureInPictureEventInit":[],"PictureInPictureWindow":["PictureInPictureWindow"],"PictureInPictureWindowEventMap":[],"PlaneLayout":[],"PlaybackDirection":[],"Plugin":["Plugin"],"PluginArray":["PluginArray"],"PointerEvent":["PointerEvent"],"PointerEventInit":[],"PointerLockOptions":[],"PopoverInvokerElement":["popoverTargetAction"],"PopStateEvent":["PopStateEvent"],"PopStateEventInit":[],"PositionAlignSetting":[],"PositionCallback":[],"PositionErrorCallback":[],"PositionOptions":[],"postMessage":["DedicatedWorkerGlobalScope/postMessage"],"PredefinedColorSpace":[],"PremultiplyAlpha":[],"PresentationStyle":[],"print":["Window/print"],"ProcessingInstruction":["ProcessingInstruction"],"ProgressEvent":["ProgressEvent"],"ProgressEventInit":[],"Promise":["https://next.gha.afd.arcgis.com/javascript/latest/programming-patterns/"],"PromiseConstructor":[],"PromiseConstructorLike":[],"PromiseFulfilledResult":[],"PromiseLike":[],"PromiseRejectedResult":[],"PromiseRejectionEvent":["PromiseRejectionEvent"],"PromiseRejectionEventInit":[],"PromiseSettledResult":[],"PromiseWithResolvers":[],"prompt":["Window/prompt"],"PropertyDecorator":[],"PropertyDefinition":[],"PropertyDescriptor":[],"PropertyDescriptorMap":[],"PropertyIndexedKeyframes":[],"PropertyKey":[],"Proxy":[],"ProxyConstructor":[],"ProxyHandler":[],"PublicKeyCredential":["PublicKeyCredential"],"PublicKeyCredentialClientCapabilities":[],"PublicKeyCredentialCreationOptions":[],"PublicKeyCredentialCreationOptionsJSON":[],"PublicKeyCredentialDescriptor":[],"PublicKeyCredentialDescriptorJSON":[],"PublicKeyCredentialEntity":[],"PublicKeyCredentialJSON":[],"PublicKeyCredentialParameters":[],"PublicKeyCredentialRequestOptions":[],"PublicKeyCredentialRequestOptionsJSON":[],"PublicKeyCredentialRpEntity":[],"PublicKeyCredentialType":[],"PublicKeyCredentialUserEntity":[],"PublicKeyCredentialUserEntityJSON":[],"PushEncryptionKeyName":[],"PushEvent":["PushEvent"],"PushEventInit":[],"PushManager":["PushManager"],"PushMessageData":["PushMessageData"],"PushMessageDataInit":[],"PushSubscription":["PushSubscription"],"PushSubscriptionChangeEvent":[],"PushSubscriptionChangeEventInit":[],"PushSubscriptionJSON":[],"PushSubscriptionOptions":["PushSubscriptionOptions"],"PushSubscriptionOptionsInit":[],"queueMicrotask":["Window/queueMicrotask"],"QueuingStrategy":[],"QueuingStrategyInit":[],"QueuingStrategySize":[],"RadioNodeList":["RadioNodeList"],"Range":["Range"],"RangeError":[],"RangeErrorConstructor":[],"ReadableByteStreamController":["ReadableByteStreamController"],"ReadableStream":["ReadableStream"],"ReadableStreamAsyncIterator":[],"ReadableStreamBYOBReader":["ReadableStreamBYOBReader"],"ReadableStreamBYOBRequest":["ReadableStreamBYOBRequest"],"ReadableStreamController":[],"ReadableStreamDefaultController":["ReadableStreamDefaultController"],"ReadableStreamDefaultReader":["ReadableStreamDefaultReader"],"ReadableStreamGenericReader":["closed"],"ReadableStreamGetReaderOptions":[],"ReadableStreamIteratorOptions":[],"ReadableStreamReadDoneResult":[],"ReadableStreamReader":[],"ReadableStreamReaderMode":[],"ReadableStreamReadResult":[],"ReadableStreamReadValueResult":[],"ReadableStreamType":[],"ReadableWritablePair":[],"Readonly":["https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype"],"ReadonlyArray":[],"ReadonlyMap":[],"ReadonlySet":[],"ReadonlySetLike":[],"ReadyState":[],"Record":["https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"],"RecordingState":[],"RedEyeReduction":[],"ReferenceError":[],"ReferenceErrorConstructor":[],"ReferrerPolicy":[],"Reflect":[null,{"apply":[],"construct":[],"defineProperty":[],"deleteProperty":[],"get":[],"getOwnPropertyDescriptor":[],"getPrototypeOf":[],"has":[],"isExtensible":[],"ownKeys":[],"preventExtensions":[],"set":[],"setPrototypeOf":[]}],"RegExp":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RegExp"],"RegExpConstructor":[],"RegExpExecArray":[],"RegExpIndicesArray":[],"RegExpMatchArray":[],"RegExpStringIterator":[],"RegistrationOptions":[],"releaseEvents":["Window/releaseEvents"],"RemotePlayback":["RemotePlayback"],"RemotePlaybackAvailabilityCallback":[],"RemotePlaybackEventMap":[],"RemotePlaybackState":[],"removeEventListener":[],"RenderingContext":[],"Report":["Report"],"ReportBody":["ReportBody"],"reportError":["Window/reportError"],"ReportingObserver":["ReportingObserver"],"ReportingObserverCallback":[],"ReportingObserverOptions":[],"ReportList":[],"Request":["Request"],"requestAnimationFrame":["DedicatedWorkerGlobalScope/requestAnimationFrame"],"RequestCache":[],"RequestCredentials":[],"RequestDestination":[],"requestIdleCallback":["Window/requestIdleCallback"],"RequestInfo":[],"RequestInit":[],"RequestMode":[],"RequestPriority":[],"RequestRedirect":[],"Required":["https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredtype"],"ResidentKeyRequirement":[],"resizeBy":["Window/resizeBy"],"ResizeObserver":["ResizeObserver"],"ResizeObserverBoxOptions":[],"ResizeObserverCallback":[],"ResizeObserverEntry":["ResizeObserverEntry"],"ResizeObserverOptions":[],"ResizeObserverSize":["ResizeObserverSize"],"ResizeQuality":[],"resizeTo":["Window/resizeTo"],"Response":["Response"],"ResponseInit":[],"ResponseType":[],"ReturnType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype"],"RsaHashedImportParams":[],"RsaHashedKeyAlgorithm":[],"RsaHashedKeyGenParams":[],"RsaKeyAlgorithm":[],"RsaKeyGenParams":[],"RsaOaepParams":[],"RsaOtherPrimesInfo":[],"RsaPssParams":[],"RTCAnswerOptions":[],"RTCBundlePolicy":[],"RTCCertificate":["RTCCertificate"],"RTCCertificateExpiration":[],"RTCConfiguration":[],"RTCDataChannel":["RTCDataChannel"],"RTCDataChannelEvent":["RTCDataChannelEvent"],"RTCDataChannelEventInit":[],"RTCDataChannelEventMap":[],"RTCDataChannelInit":[],"RTCDataChannelState":[],"RTCDegradationPreference":[],"RTCDtlsFingerprint":[],"RTCDtlsRole":[],"RTCDtlsTransport":["RTCDtlsTransport"],"RTCDtlsTransportEventMap":[],"RTCDtlsTransportState":[],"RTCDTMFSender":["RTCDTMFSender"],"RTCDTMFSenderEventMap":[],"RTCDTMFToneChangeEvent":["RTCDTMFToneChangeEvent"],"RTCDTMFToneChangeEventInit":[],"RTCEncodedAudioFrame":["RTCEncodedAudioFrame"],"RTCEncodedAudioFrameMetadata":[],"RTCEncodedFrameMetadata":[],"RTCEncodedVideoFrame":["RTCEncodedVideoFrame"],"RTCEncodedVideoFrameMetadata":[],"RTCEncodedVideoFrameType":[],"RTCError":["RTCError"],"RTCErrorDetailType":[],"RTCErrorEvent":["RTCErrorEvent"],"RTCErrorEventInit":[],"RTCErrorInit":[],"RTCIceCandidate":["RTCIceCandidate"],"RTCIceCandidateInit":[],"RTCIceCandidatePair":[],"RTCIceCandidatePairStats":[],"RTCIceCandidateType":[],"RTCIceComponent":[],"RTCIceConnectionState":[],"RTCIceGathererState":[],"RTCIceGatheringState":[],"RTCIceProtocol":[],"RTCIceRole":[],"RTCIceServer":[],"RTCIceTcpCandidateType":[],"RTCIceTransport":["RTCIceTransport"],"RTCIceTransportEventMap":[],"RTCIceTransportPolicy":[],"RTCIceTransportState":[],"RTCInboundRtpStreamStats":[],"RTCLocalIceCandidateInit":[],"RTCLocalSessionDescriptionInit":[],"RTCOfferAnswerOptions":[],"RTCOfferOptions":[],"RTCOutboundRtpStreamStats":[],"RTCPeerConnection":["RTCPeerConnection"],"RTCPeerConnectionErrorCallback":[],"RTCPeerConnectionEventMap":[],"RTCPeerConnectionIceErrorEvent":["RTCPeerConnectionIceErrorEvent"],"RTCPeerConnectionIceErrorEventInit":[],"RTCPeerConnectionIceEvent":["RTCPeerConnectionIceEvent"],"RTCPeerConnectionIceEventInit":[],"RTCPeerConnectionState":[],"RTCPriorityType":[],"RTCQualityLimitationReason":[],"RTCReceivedRtpStreamStats":[],"RTCRtcpMuxPolicy":[],"RTCRtcpParameters":[],"RTCRtpCapabilities":[],"RTCRtpCodec":[],"RTCRtpCodecParameters":[],"RTCRtpCodingParameters":[],"RTCRtpContributingSource":[],"RTCRtpEncodingParameters":[],"RTCRtpHeaderExtensionCapability":[],"RTCRtpHeaderExtensionParameters":[],"RTCRtpParameters":[],"RTCRtpReceiveParameters":[],"RTCRtpReceiver":["RTCRtpReceiver"],"RTCRtpScriptTransform":["RTCRtpScriptTransform"],"RTCRtpScriptTransformer":["RTCRtpScriptTransformer"],"RTCRtpSender":["RTCRtpSender"],"RTCRtpSendParameters":[],"RTCRtpStreamStats":[],"RTCRtpSynchronizationSource":[],"RTCRtpTransceiver":["setCodecPreferences"],"RTCRtpTransceiverDirection":[],"RTCRtpTransceiverInit":[],"RTCRtpTransform":[],"RTCSctpTransport":["RTCSctpTransport"],"RTCSctpTransportEventMap":[],"RTCSctpTransportState":[],"RTCSdpType":[],"RTCSentRtpStreamStats":[],"RTCSessionDescription":["RTCSessionDescription"],"RTCSessionDescriptionCallback":[],"RTCSessionDescriptionInit":[],"RTCSetParameterOptions":[],"RTCSignalingState":[],"RTCStats":[],"RTCStatsIceCandidatePairState":[],"RTCStatsReport":["RTCStatsReport"],"RTCStatsType":[],"RTCTrackEvent":["RTCTrackEvent"],"RTCTrackEventInit":[],"RTCTransformEvent":["RTCTransformEvent"],"RTCTransportStats":[],"SafeArray":[],"screen":[],"Screen":["Screen"],"screenLeft":[],"ScreenOrientation":["ScreenOrientation"],"ScreenOrientationEventMap":[],"screenTop":[],"screenX":[],"screenY":[],"ScriptProcessorNode":["ScriptProcessorNode"],"ScriptProcessorNodeEventMap":[],"scroll":["Window/scroll"],"scrollbars":[],"ScrollBehavior":[],"scrollBy":["Window/scrollBy"],"ScrollIntoViewOptions":[],"ScrollLogicalPosition":[],"ScrollOptions":[],"ScrollRestoration":[],"ScrollSetting":[],"scrollTo":["Window/scrollTo"],"ScrollToOptions":[],"scrollX":[],"scrollY":[],"SecurityPolicyViolationEvent":["SecurityPolicyViolationEvent"],"SecurityPolicyViolationEventDisposition":[],"SecurityPolicyViolationEventInit":[],"Selection":["Selection"],"SelectionMode":[],"self":[],"ServiceWorker":["ServiceWorker"],"ServiceWorkerContainer":["ServiceWorkerContainer"],"ServiceWorkerContainerEventMap":[],"ServiceWorkerEventMap":[],"ServiceWorkerGlobalScope":["ServiceWorkerGlobalScope"],"ServiceWorkerGlobalScopeEventMap":[],"ServiceWorkerRegistration":["ServiceWorkerRegistration"],"ServiceWorkerRegistrationEventMap":[],"ServiceWorkerState":[],"ServiceWorkerUpdateViaCache":[],"sessionStorage":[],"Set":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Set"],"SetConstructor":[],"setInterval":["Window/setInterval"],"SetIterator":[],"setTimeout":["Window/setTimeout"],"ShadowRoot":["ShadowRoot"],"ShadowRootEventMap":[],"ShadowRootInit":[],"ShadowRootMode":[],"SharedArrayBuffer":[],"SharedArrayBufferConstructor":[],"ShareData":[],"SharedWorker":["SharedWorker"],"SharedWorkerGlobalScope":["SharedWorkerGlobalScope"],"SharedWorkerGlobalScopeEventMap":[],"SlotAssignmentMode":[],"Slottable":["assignedSlot"],"SourceBuffer":["SourceBuffer"],"SourceBufferEventMap":[],"SourceBufferList":["SourceBufferList"],"SourceBufferListEventMap":[],"SpeechRecognitionAlternative":["SpeechRecognitionAlternative"],"SpeechRecognitionResult":["SpeechRecognitionResult"],"SpeechRecognitionResultList":["SpeechRecognitionResultList"],"speechSynthesis":[],"SpeechSynthesis":["SpeechSynthesis"],"SpeechSynthesisErrorCode":[],"SpeechSynthesisErrorEvent":["SpeechSynthesisErrorEvent"],"SpeechSynthesisErrorEventInit":[],"SpeechSynthesisEvent":["SpeechSynthesisEvent"],"SpeechSynthesisEventInit":[],"SpeechSynthesisEventMap":[],"SpeechSynthesisUtterance":["SpeechSynthesisUtterance"],"SpeechSynthesisUtteranceEventMap":[],"SpeechSynthesisVoice":["SpeechSynthesisVoice"],"StartViewTransitionOptions":[],"StaticRange":["StaticRange"],"StaticRangeInit":[],"status":[],"statusbar":[],"StereoPannerNode":["StereoPannerNode"],"StereoPannerOptions":[],"stop":["Window/stop"],"Storage":["Storage"],"StorageEstimate":[],"StorageEvent":["StorageEvent"],"StorageEventInit":[],"StorageManager":["StorageManager"],"StreamPipeOptions":[],"String":[],"StringConstructor":[],"StringIterator":[],"structuredClone":["Window/structuredClone"],"StructuredSerializeOptions":[],"StyleMedia":[],"StylePropertyMap":["StylePropertyMap"],"StylePropertyMapReadOnly":["StylePropertyMapReadOnly"],"StylePropertyMapReadOnlyIterator":[],"StyleSheet":["StyleSheet"],"StyleSheetList":["StyleSheetList"],"SubmitEvent":["SubmitEvent"],"SubmitEventInit":[],"SubtleCrypto":["deriveKey"],"SuppressedError":[],"SuppressedErrorConstructor":[],"SVGAElement":["SVGAElement"],"SVGAngle":["SVGAngle"],"SVGAnimatedAngle":["SVGAnimatedAngle"],"SVGAnimatedBoolean":["SVGAnimatedBoolean"],"SVGAnimatedEnumeration":["SVGAnimatedEnumeration"],"SVGAnimatedInteger":["SVGAnimatedInteger"],"SVGAnimatedLength":["SVGAnimatedLength"],"SVGAnimatedLengthList":["SVGAnimatedLengthList"],"SVGAnimatedNumber":["SVGAnimatedNumber"],"SVGAnimatedNumberList":["SVGAnimatedNumberList"],"SVGAnimatedPoints":["animatedPoints"],"SVGAnimatedPreserveAspectRatio":["SVGAnimatedPreserveAspectRatio"],"SVGAnimatedRect":["SVGAnimatedRect"],"SVGAnimatedString":["SVGAnimatedString"],"SVGAnimatedTransformList":["SVGAnimatedTransformList"],"SVGAnimateElement":["SVGAnimateElement"],"SVGAnimateMotionElement":["SVGAnimateMotionElement"],"SVGAnimateTransformElement":["SVGAnimateTransformElement"],"SVGAnimationElement":["SVGAnimationElement"],"SVGBoundingBoxOptions":[],"SVGCircleElement":["SVGCircleElement"],"SVGClipPathElement":["SVGClipPathElement"],"SVGComponentTransferFunctionElement":["SVGComponentTransferFunctionElement"],"SVGDefsElement":["SVGDefsElement"],"SVGDescElement":["SVGDescElement"],"SVGElement":["SVGElement"],"SVGElementEventMap":[],"SVGElementTagNameMap":[],"SVGEllipseElement":["SVGEllipseElement"],"SVGFEBlendElement":["SVGFEBlendElement"],"SVGFEColorMatrixElement":["SVGFEColorMatrixElement"],"SVGFEComponentTransferElement":["SVGFEComponentTransferElement"],"SVGFECompositeElement":["SVGFECompositeElement"],"SVGFEConvolveMatrixElement":["SVGFEConvolveMatrixElement"],"SVGFEDiffuseLightingElement":["SVGFEDiffuseLightingElement"],"SVGFEDisplacementMapElement":["SVGFEDisplacementMapElement"],"SVGFEDistantLightElement":["SVGFEDistantLightElement"],"SVGFEDropShadowElement":["SVGFEDropShadowElement"],"SVGFEFloodElement":["SVGFEFloodElement"],"SVGFEFuncAElement":["SVGFEFuncAElement"],"SVGFEFuncBElement":["SVGFEFuncBElement"],"SVGFEFuncGElement":["SVGFEFuncGElement"],"SVGFEFuncRElement":["SVGFEFuncRElement"],"SVGFEGaussianBlurElement":["SVGFEGaussianBlurElement"],"SVGFEImageElement":["SVGFEImageElement"],"SVGFEMergeElement":["SVGFEMergeElement"],"SVGFEMergeNodeElement":["SVGFEMergeNodeElement"],"SVGFEMorphologyElement":["SVGFEMorphologyElement"],"SVGFEOffsetElement":["SVGFEOffsetElement"],"SVGFEPointLightElement":["SVGFEPointLightElement"],"SVGFESpecularLightingElement":["SVGFESpecularLightingElement"],"SVGFESpotLightElement":["SVGFESpotLightElement"],"SVGFETileElement":["SVGFETileElement"],"SVGFETurbulenceElement":["SVGFETurbulenceElement"],"SVGFilterElement":["SVGFilterElement"],"SVGFilterPrimitiveStandardAttributes":["height"],"SVGFitToViewBox":["preserveAspectRatio"],"SVGForeignObjectElement":["SVGForeignObjectElement"],"SVGGElement":["SVGGElement"],"SVGGeometryElement":["SVGGeometryElement"],"SVGGradientElement":["SVGGradientElement"],"SVGGraphicsElement":["SVGGraphicsElement"],"SVGImageElement":["SVGImageElement"],"SVGLength":["SVGLength"],"SVGLengthList":["SVGLengthList"],"SVGLinearGradientElement":["SVGLinearGradientElement"],"SVGLineElement":["SVGLineElement"],"SVGMarkerElement":["SVGMarkerElement"],"SVGMaskElement":["SVGMaskElement"],"SVGMatrix":[],"SVGMetadataElement":["SVGMetadataElement"],"SVGMPathElement":["SVGMPathElement"],"SVGNumber":["SVGNumber"],"SVGNumberList":["SVGNumberList"],"SVGPathElement":["SVGPathElement"],"SVGPatternElement":["SVGPatternElement"],"SVGPoint":[],"SVGPointList":["SVGPointList"],"SVGPolygonElement":["SVGPolygonElement"],"SVGPolylineElement":["SVGPolylineElement"],"SVGPreserveAspectRatio":["SVGPreserveAspectRatio"],"SVGRadialGradientElement":["SVGRadialGradientElement"],"SVGRect":[],"SVGRectElement":["SVGRectElement"],"SVGScriptElement":["SVGScriptElement"],"SVGSetElement":["SVGSetElement"],"SVGStopElement":["SVGStopElement"],"SVGStringList":["SVGStringList"],"SVGStyleElement":["SVGStyleElement"],"SVGSVGElement":["SVGSVGElement"],"SVGSVGElementEventMap":[],"SVGSwitchElement":["SVGSwitchElement"],"SVGSymbolElement":["SVGSymbolElement"],"SVGTests":["requiredExtensions"],"SVGTextContentElement":["SVGTextContentElement"],"SVGTextElement":["SVGTextElement"],"SVGTextPathElement":["SVGTextPathElement"],"SVGTextPositioningElement":["SVGTextPositioningElement"],"SVGTitleElement":["SVGTitleElement"],"SVGTransform":["SVGTransform"],"SVGTransformList":["SVGTransformList"],"SVGTSpanElement":["SVGTSpanElement"],"SVGUnitTypes":["SVGUnitTypes"],"SVGURIReference":["href"],"SVGUseElement":["SVGUseElement"],"SVGViewElement":["SVGViewElement"],"Symbol":[],"SymbolConstructor":[],"SyntaxError":[],"SyntaxErrorConstructor":[],"TemplateStringsArray":[],"TexImageSource":[],"Text":["Text"],"TextDecodeOptions":[],"TextDecoder":["TextDecoder"],"TextDecoderCommon":["encoding"],"TextDecoderOptions":[],"TextDecoderStream":["TextDecoderStream"],"TextEncoder":["TextEncoder"],"TextEncoderCommon":["encoding"],"TextEncoderEncodeIntoResult":[],"TextEncoderStream":["TextEncoderStream"],"TextEvent":["TextEvent"],"TextMetrics":["TextMetrics"],"TextStreamBase":[],"TextStreamReader":[],"TextStreamWriter":[],"TextTrack":["TextTrack"],"TextTrackCue":["TextTrackCue"],"TextTrackCueEventMap":[],"TextTrackCueList":["TextTrackCueList"],"TextTrackEventMap":[],"TextTrackKind":[],"TextTrackList":["TextTrackList"],"TextTrackListEventMap":[],"TextTrackMode":[],"ThisParameterType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#thisparametertypetype"],"ThisType":["https://www.typescriptlang.org/docs/handbook/utility-types.html#thistypetype"],"TimeRanges":["TimeRanges"],"TimerHandler":[],"ToggleEvent":["ToggleEvent"],"ToggleEventInit":[],"toolbar":[],"top":[],"Touch":["Touch"],"TouchEvent":["TouchEvent"],"TouchEventInit":[],"TouchInit":[],"TouchList":["TouchList"],"TouchType":[],"TrackEvent":["TrackEvent"],"TrackEventInit":[],"Transferable":[],"TransferFunction":[],"Transformer":[],"TransformerFlushCallback":[],"TransformerStartCallback":[],"TransformerTransformCallback":[],"TransformStream":["TransformStream"],"TransformStreamDefaultController":["TransformStreamDefaultController"],"TransitionEvent":["TransitionEvent"],"TransitionEventInit":[],"TreeWalker":["TreeWalker"],"TypedPropertyDescriptor":[],"TypeError":[],"TypeErrorConstructor":[],"UIEvent":["UIEvent"],"UIEventInit":[],"Uint16Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array"],"Uint16ArrayConstructor":[],"Uint32Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array"],"Uint32ArrayConstructor":[],"Uint32List":[],"Uint8Array":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array"],"Uint8ArrayConstructor":[],"Uint8ClampedArray":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray"],"Uint8ClampedArrayConstructor":[],"ULongRange":[],"Uncapitalize":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"UnderlyingByteSource":[],"UnderlyingDefaultSource":[],"UnderlyingSink":[],"UnderlyingSinkAbortCallback":[],"UnderlyingSinkCloseCallback":[],"UnderlyingSinkStartCallback":[],"UnderlyingSinkWriteCallback":[],"UnderlyingSource":[],"UnderlyingSourceCancelCallback":[],"UnderlyingSourcePullCallback":[],"UnderlyingSourceStartCallback":[],"unescape":[],"Uppercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"URIError":[],"URIErrorConstructor":[],"URL":["URL"],"URLSearchParams":["URLSearchParams"],"URLSearchParamsIterator":[],"UserActivation":["UserActivation"],"UserVerificationRequirement":[],"ValidityState":["ValidityState"],"ValidityStateFlags":[],"VarDate":[],"VBArray":[],"VBArrayConstructor":[],"VibratePattern":[],"VideoColorPrimaries":[],"VideoColorSpace":["VideoColorSpace"],"VideoColorSpaceInit":[],"VideoConfiguration":[],"VideoDecoder":["VideoDecoder"],"VideoDecoderConfig":[],"VideoDecoderEventMap":[],"VideoDecoderInit":[],"VideoDecoderSupport":[],"VideoEncoder":["VideoEncoder"],"VideoEncoderBitrateMode":[],"VideoEncoderConfig":[],"VideoEncoderEncodeOptions":[],"VideoEncoderEncodeOptionsForAvc":[],"VideoEncoderEventMap":[],"VideoEncoderInit":[],"VideoEncoderSupport":[],"VideoFacingModeEnum":[],"VideoFrame":["VideoFrame"],"VideoFrameBufferInit":[],"VideoFrameCallbackMetadata":[],"VideoFrameCopyToOptions":[],"VideoFrameInit":[],"VideoFrameOutputCallback":[],"VideoFrameRequestCallback":[],"VideoMatrixCoefficients":[],"VideoPixelFormat":[],"VideoPlaybackQuality":["VideoPlaybackQuality"],"VideoTransferCharacteristics":[],"ViewTransition":["ViewTransition"],"ViewTransitionTypeSet":[],"ViewTransitionUpdateCallback":[],"visualViewport":[],"VisualViewport":["VisualViewport"],"VisualViewportEventMap":[],"VoidFunction":[],"VTTCue":["VTTCue"],"VTTRegion":["VTTRegion"],"WakeLock":["WakeLock"],"WakeLockSentinel":["WakeLockSentinel"],"WakeLockSentinelEventMap":[],"WakeLockType":[],"WaveShaperNode":["WaveShaperNode"],"WaveShaperOptions":[],"WeakKey":[],"WeakKeyTypes":[],"WeakMap":[],"WeakMapConstructor":[],"WeakRef":[],"WeakRefConstructor":[],"WeakSet":[],"WeakSetConstructor":[],"WebAssembly":[null,{"compile":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compile_static"],"CompileError":[],"compileStreaming":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/compileStreaming_static"],"Exports":[],"ExportValue":[],"Global":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Global"],"GlobalDescriptor":[],"ImportExportKind":[],"Imports":[],"ImportValue":[],"Instance":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Instance"],"instantiate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiate_static"],"instantiateStreaming":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/instantiateStreaming_static"],"LinkError":[],"Memory":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Memory"],"MemoryDescriptor":[],"Module":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Module"],"ModuleExportDescriptor":[],"ModuleImportDescriptor":[],"ModuleImports":[],"RuntimeError":[],"Table":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Table"],"TableDescriptor":[],"TableKind":[],"validate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static"],"ValueType":[],"ValueTypeMap":[],"WebAssemblyInstantiatedSource":[]}],"WebCodecsErrorCallback":[],"WEBGL_color_buffer_float":["WEBGL_color_buffer_float"],"WEBGL_compressed_texture_astc":["WEBGL_compressed_texture_astc"],"WEBGL_compressed_texture_etc":["WEBGL_compressed_texture_etc"],"WEBGL_compressed_texture_etc1":["WEBGL_compressed_texture_etc1"],"WEBGL_compressed_texture_pvrtc":["WEBGL_compressed_texture_pvrtc"],"WEBGL_compressed_texture_s3tc":["WEBGL_compressed_texture_s3tc"],"WEBGL_compressed_texture_s3tc_srgb":["WEBGL_compressed_texture_s3tc_srgb"],"WEBGL_debug_renderer_info":["WEBGL_debug_renderer_info"],"WEBGL_debug_shaders":["WEBGL_debug_shaders"],"WEBGL_depth_texture":["WEBGL_depth_texture"],"WEBGL_draw_buffers":["drawBuffersWEBGL"],"WEBGL_lose_context":["WEBGL_lose_context"],"WEBGL_multi_draw":["multiDrawArraysInstancedWEBGL"],"WebGL2RenderingContext":["WebGL2RenderingContext"],"WebGL2RenderingContextBase":["clearBuffer"],"WebGL2RenderingContextOverloads":["uniform"],"WebGLActiveInfo":["WebGLActiveInfo"],"WebGLBuffer":["WebGLBuffer"],"WebGLContextAttributes":[],"WebGLContextEvent":["WebGLContextEvent"],"WebGLContextEventInit":[],"WebGLFramebuffer":["WebGLFramebuffer"],"WebGLPowerPreference":[],"WebGLProgram":["WebGLProgram"],"WebGLQuery":["WebGLQuery"],"WebGLRenderbuffer":["WebGLRenderbuffer"],"WebGLRenderingContext":["WebGLRenderingContext"],"WebGLRenderingContextBase":["vertexAttrib"],"WebGLRenderingContextOverloads":["uniform"],"WebGLSampler":["WebGLSampler"],"WebGLShader":["WebGLShader"],"WebGLShaderPrecisionFormat":["WebGLShaderPrecisionFormat"],"WebGLSync":["WebGLSync"],"WebGLTexture":["WebGLTexture"],"WebGLTransformFeedback":["WebGLTransformFeedback"],"WebGLUniformLocation":["WebGLUniformLocation"],"WebGLVertexArrayObject":["WebGLVertexArrayObject"],"WebGLVertexArrayObjectOES":["WebGLVertexArrayObject"],"WebKitCSSMatrix":[],"webkitURL":[],"WebSocket":["WebSocket"],"WebSocketEventMap":[],"WebTransport":["WebTransport"],"WebTransportBidirectionalStream":["WebTransportBidirectionalStream"],"WebTransportCloseInfo":[],"WebTransportCongestionControl":[],"WebTransportDatagramDuplexStream":["WebTransportDatagramDuplexStream"],"WebTransportError":["WebTransportError"],"WebTransportErrorOptions":[],"WebTransportErrorSource":[],"WebTransportHash":[],"WebTransportOptions":[],"WebTransportSendOptions":[],"WebTransportSendStreamOptions":[],"WheelEvent":["WheelEvent"],"WheelEventInit":[],"window":[],"Window":["Window"],"WindowClient":["WindowClient"],"WindowEventHandlers":["afterprint_event"],"WindowEventHandlersEventMap":[],"WindowEventMap":[],"WindowLocalStorage":["localStorage"],"WindowOrWorkerGlobalScope":["caches"],"WindowPostMessageOptions":[],"WindowProxy":[],"WindowSessionStorage":["sessionStorage"],"Worker":["Worker"],"WorkerEventMap":[],"WorkerGlobalScope":["WorkerGlobalScope"],"WorkerGlobalScopeEventMap":[],"WorkerLocation":["WorkerLocation"],"WorkerNavigator":["WorkerNavigator"],"WorkerOptions":[],"WorkerType":[],"Worklet":["Worklet"],"WorkletOptions":[],"WritableStream":["WritableStream"],"WritableStreamDefaultController":["WritableStreamDefaultController"],"WritableStreamDefaultWriter":["WritableStreamDefaultWriter"],"WriteCommandType":[],"WriteParams":[],"WScript":[],"WSH":[],"XMLDocument":["XMLDocument"],"XMLHttpRequest":["XMLHttpRequest"],"XMLHttpRequestBodyInit":[],"XMLHttpRequestEventMap":[],"XMLHttpRequestEventTarget":["XMLHttpRequestEventTarget"],"XMLHttpRequestEventTargetEventMap":[],"XMLHttpRequestResponseType":[],"XMLHttpRequestUpload":["XMLHttpRequestUpload"],"XMLSerializer":["XMLSerializer"],"XPathEvaluator":["XPathEvaluator"],"XPathEvaluatorBase":["createExpression"],"XPathExpression":["XPathExpression"],"XPathNSResolver":[],"XPathResult":["XPathResult"],"XSLTProcessor":["XSLTProcessor"]}'), xn = {
1197
+ globals: Pn
1198
+ }, mt = Object.freeze(
1199
+ Object.assign(/* @__PURE__ */ Object.create(null), xn.globals)
1200
+ ), ut = "https://developer.mozilla.org/docs/Web/API/";
1201
+ function si(e, t, n = "*") {
1202
+ if (e === "@arcgis/core")
1203
+ return Rn(t, n);
1204
+ }
1205
+ function Rn(e, t) {
1206
+ if (!(e === void 0 || e === "interfaces.d.ts")) {
1207
+ const n = `${Dn}${Z(e).replaceAll("/", "-")}.html`;
1208
+ return t === "default" || t === "*" ? n : `${n}#${encodeURIComponent(t)}`;
1209
+ }
1210
+ }
1211
+ const Dn = "https://developers.arcgis.com/javascript/latest/api-reference/esri-";
1212
+ function ze(e, t, n, i) {
1213
+ i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
1214
+ const a = i.implicitPublicModules[e];
1215
+ a === void 0 ? i.implicitPublicModules[e] = {
1216
+ actualModulePath: void 0,
1217
+ // moduleResolution:Node16 may use .js extension to refer to non-JS files
1218
+ sourcePath: t.endsWith(".js") ? t.slice(0, -3) : t,
1219
+ pendingNames: n === "*" ? void 0 : /* @__PURE__ */ new Set([n]),
1220
+ extractedNames: /* @__PURE__ */ new Set()
1221
+ } : a.pendingNames !== void 0 && n !== "*" ? a.pendingNames.add(n) : a.pendingNames = void 0;
1222
+ }
1223
+ function Ln(e, t) {
1224
+ const n = et(e);
1225
+ if (t.pendingNames === void 0)
1226
+ return n > 0;
1227
+ if (n === 2 && t.pendingNames.has("default"))
1228
+ return !0;
1229
+ const a = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
1230
+ return t.pendingNames.has(a);
1231
+ }
1232
+ function je(e, t, n, i, a) {
1233
+ const r = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? r.getAliasedSymbol(e) : e, s = Nn(l), c = t.escapedText, m = s ?? c, d = l?.declarations?.[0];
1234
+ if (d === void 0)
1235
+ return n.emitError(`Unable to resolve the declaration file name for the type ${m}`, {
1236
+ file: n.file,
1237
+ node: void 0
1238
+ }), {
1239
+ name: m,
1240
+ module: void 0,
1241
+ package: De,
1242
+ viewUrl: void 0,
1243
+ start: i,
1244
+ end: a
1245
+ };
1246
+ const p = d.getSourceFile(), { packageName: f, modulePath: u } = An(p.fileName, n, m);
1247
+ if (f === "@arcgis/core" && u === "interfaces.js")
1248
+ return n.moduleContext.importsMap.__esri = {
1249
+ type: "*",
1250
+ modulePath: void 0,
1251
+ specifier: `${f}/${u}`,
1252
+ replacementName: void 0,
1253
+ actualName: void 0,
1254
+ wasUsed: !0
1255
+ }, {
1256
+ name: "__esri",
1257
+ module: u,
1258
+ package: f,
1259
+ viewUrl: void 0,
1260
+ start: i,
1261
+ end: a
1262
+ };
1263
+ if (f === "typescript" && u?.startsWith("lib/") === !0) {
1264
+ let y = mt[m], h, M = m;
1265
+ if (y === void 0) {
1266
+ for (let b = d.parent; b !== void 0; b = b.parent)
1267
+ if (o.isModuleDeclaration(b) && o.isIdentifier(b.name)) {
1268
+ h = b.name.escapedText, y = mt[h]?.[1]?.[m], M = `${h}.${m}`, be(t, M);
1269
+ break;
1270
+ }
1271
+ }
1272
+ return {
1273
+ name: M,
1274
+ module: void 0,
1275
+ package: De,
1276
+ viewUrl: y?.[0]?.startsWith("https") === !1 ? `${ut}${y[0]}` : y?.[0] ?? void 0,
1277
+ start: i,
1278
+ end: i + M.length
1279
+ };
1280
+ }
1281
+ let g = m;
1282
+ if (f !== void 0 && u === void 0 && s?.startsWith("HTML") === !0 && d.parent.kind === o.SyntaxKind.ModuleBlock && d.parent.parent.kind === o.SyntaxKind.ModuleDeclaration && d.parent.parent.name.escapedText === "global") {
1283
+ if (s.endsWith("Element")) {
1284
+ const y = o.isInterfaceDeclaration(d) ? d.heritageClauses?.[0]?.types[0]?.expression : o.isTypeAliasDeclaration(d) && o.isTypeReferenceNode(d.type) ? d.type.typeName : void 0;
1285
+ if (y !== void 0 && o.isIdentifier(y)) {
1286
+ const h = r.getSymbolAtLocation(y);
1287
+ if (h !== void 0) {
1288
+ const M = r.getAliasedSymbol(h);
1289
+ return je(
1290
+ M,
1291
+ t,
1292
+ n,
1293
+ i,
1294
+ i + M.escapedName.length
1295
+ );
1296
+ }
1297
+ }
1298
+ } else if (
1299
+ // Only supporting the syntax after
1300
+ // https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/10794
1301
+ // As this interface is not likely to be used directly.
1302
+ s.endsWith("ElementEventMap") && o.isTypeAliasDeclaration(d) && o.isIndexedAccessTypeNode(d.type) && o.isTypeReferenceNode(d.type.objectType) && o.isIdentifier(d.type.objectType.typeName) && o.isLiteralTypeNode(d.type.indexType) && o.isStringLiteral(d.type.indexType.literal) && d.type.indexType.literal.text === "@eventTypes"
1303
+ ) {
1304
+ const y = r.getSymbolAtLocation(d.type.objectType.typeName);
1305
+ if (y !== void 0) {
1306
+ const h = r.getAliasedSymbol(y), M = je(
1307
+ h,
1308
+ t,
1309
+ n,
1310
+ i,
1311
+ i + h.escapedName.length
1312
+ );
1313
+ return be(t, c), be(t, `${M.name}["@eventTypes"]`), M;
1314
+ }
1315
+ }
1316
+ }
1317
+ if (f !== void 0 || u !== void 0) {
1318
+ const y = s ?? ((u ?? f).split("/").pop()?.replaceAll(In, "") || "type");
1319
+ for (let h = 1; ; h += 1) {
1320
+ const M = h === 1 ? y : `${y}${h}`;
1321
+ let b = n.functionLikeTypeParameters?.has(M) === !0 || n.objectLikeTypeParameters?.has(M) === !0 || n.localDeclarations.has(M);
1322
+ if (b)
1323
+ continue;
1324
+ const v = n.moduleContext.importsMap[M], x = v !== void 0 && (f === void 0 ? v.modulePath === u : v.specifier === f + (u === void 0 ? "" : `/${u}`));
1325
+ if (x ? v.wasUsed = !0 : b = n.moduleContext.importsMap[M] !== void 0, b)
1326
+ continue;
1327
+ const R = M !== c;
1328
+ R && (be(t, M), a = i + M.length);
1329
+ const I = On(l), k = I === "named";
1330
+ k || (g = I), f === void 0 && !n.config.strict && ze(
1331
+ u,
1332
+ p.fileName.slice(n.basePath.length),
1333
+ g,
1334
+ n
1335
+ ), x || (n.moduleContext.importsMap[M] = {
1336
+ type: I,
1337
+ modulePath: f === void 0 ? u : void 0,
1338
+ specifier: f === void 0 ? ye(ae(n.apiModule).dtsPath, u) : f + (u === void 0 ? "" : `/${u}`),
1339
+ replacementName: void 0,
1340
+ actualName: k && R ? s : void 0,
1341
+ wasUsed: !0
1342
+ });
1343
+ break;
1344
+ }
1345
+ } else if (n.localPrivateDeclarations?.has(c) === !0)
1346
+ n.localPrivateDeclarations.set(
1347
+ c,
1348
+ Math.abs(n.localPrivateDeclarations.get(c))
1349
+ );
1350
+ else {
1351
+ if (d.kind === o.SyntaxKind.TypeParameter)
1352
+ return {
1353
+ name: c,
1354
+ module: void 0,
1355
+ package: void 0,
1356
+ viewUrl: void 0,
1357
+ start: i,
1358
+ end: a
1359
+ };
1360
+ n.localDeclarations.has(c) || n.emitError(
1361
+ `@public declaration referenced non-public ${ne.red(c)}. Either mark it @public or refactor out the reference. Note that Enums are not supported in public docs per https://devtopia.esri.com/WebGIS/arcgis-js-api/discussions/73576.`,
1362
+ {
1363
+ file: n.file,
1364
+ node: void 0
1365
+ }
1366
+ );
1367
+ }
1368
+ const C = g === "default" || g === "*" ? void 0 : s;
1369
+ return f ? {
1370
+ name: g,
1371
+ module: u || void 0,
1372
+ package: f,
1373
+ viewUrl: si(f, u ?? "", C),
1374
+ start: i,
1375
+ end: a
1376
+ } : {
1377
+ name: g,
1378
+ module: u,
1379
+ package: void 0,
1380
+ viewUrl: Ve(u ?? n.apiModule.path, C, void 0, n),
1381
+ start: i,
1382
+ end: a
1383
+ };
1384
+ }
1385
+ const In = /[^a-zA-Z0-9$_]/gu;
1386
+ function An(e, t, n) {
1387
+ const i = e.lastIndexOf(at);
1388
+ if (i !== -1) {
1389
+ const s = e.slice(i + at.length), c = li(s), m = e.slice(
1390
+ 0,
1391
+ i + at.length + c.packageName.length
1392
+ ), d = lt(m);
1393
+ return Gt(c), c.modulePath = Vt(c.modulePath, d, t, n), c;
1394
+ }
1395
+ const r = e.indexOf(kn);
1396
+ if (r !== -1) {
1397
+ const s = e.slice(0, r), c = lt(s), m = c.name, d = e.slice(r + 1), p = Vt(d, c, t, n), f = { packageName: m, modulePath: p };
1398
+ return Gt(f), f;
1399
+ }
1400
+ if (e.startsWith(t.basePath)) {
1401
+ const s = e.slice(t.basePath.length), c = Ge(Z(s), t);
1402
+ return c === t.apiModule.path ? {
1403
+ packageName: void 0,
1404
+ modulePath: void 0
1405
+ } : {
1406
+ packageName: void 0,
1407
+ modulePath: c
1408
+ };
1409
+ } else
1410
+ return t.emitError(
1411
+ `Unable to determine if the referenced type ${n} from ${e} is a local type, or external library usage (it is outside of ${t.basePath}, yet not in node_modules)`,
1412
+ {
1413
+ file: t.file,
1414
+ node: void 0
1415
+ }
1416
+ ), {
1417
+ packageName: De,
1418
+ modulePath: void 0
1419
+ };
1420
+ }
1421
+ const at = "/node_modules/", kn = "/dist/";
1422
+ function li(e) {
1423
+ const t = ct(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1424
+ return { packageName: t, modulePath: n };
1425
+ }
1426
+ function Gt(e) {
1427
+ e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
1428
+ }
1429
+ function Vt(e, t, n, i) {
1430
+ const a = Z(e);
1431
+ if (t.exports === void 0)
1432
+ return `${a}.js`;
1433
+ const r = `./${a}`, l = "@arcgis/lumina" in (t.dependencies ?? {}) && r.endsWith("/customElement") ? `${r.slice(0, -13)}index` : r;
1434
+ let s = ft(t.exports, ".", l);
1435
+ if (s === void 0 && (s = Fn[t.name]?.(a)), s !== void 0)
1436
+ return s === "." ? void 0 : s.slice(2);
1437
+ const c = n.moduleContext.importsMap[i];
1438
+ if (c !== void 0 && c.modulePath === void 0) {
1439
+ const m = li(c.specifier);
1440
+ if (m.packageName === t.name)
1441
+ return m.modulePath;
1442
+ }
1443
+ return n.emitError(
1444
+ `Need explicit type annotation for where the ${ne.red(i)} from ${t.name}/${e} is being used implicitly. Reason: Unable to find an "exports" compatible import path to insert the import of this type in the emitted .d.ts.`,
1445
+ { file: n.file, node: void 0 }
1446
+ ), e;
1447
+ }
1448
+ const Fn = {
1449
+ // REFACTOR: dissolve barrel files (match @arcgis/core). then this won't be needed
1450
+ "@arcgis/lumina"(e) {
1451
+ return e.startsWith("dist/typings/") ? "./typings" : e.startsWith("dist/controllers/accessor/") ? "./controllers/accessor" : e.startsWith("dist/controllers/") ? "./controllers" : e.startsWith("dist/jsx/") || !e.slice(5).includes("/") ? "." : void 0;
1452
+ }
1453
+ };
1454
+ function ft(e, t, n) {
1455
+ if (typeof e == "string")
1456
+ return wn(t, e, n);
1457
+ if (Array.isArray(e))
1458
+ for (let i = 0; i < e.length; ++i) {
1459
+ const a = ft(e[i], t, n);
1460
+ if (a !== void 0)
1461
+ return a;
1462
+ }
1463
+ if (typeof e == "object" && e !== null)
1464
+ for (const [i, a] of Object.entries(e)) {
1465
+ const l = i.startsWith(".") ? i : t, s = ft(a, l, n);
1466
+ if (s !== void 0)
1467
+ return s;
1468
+ }
1469
+ }
1470
+ function wn(e, t, n) {
1471
+ const i = Z(t);
1472
+ if (i === n)
1473
+ return e;
1474
+ const a = i.indexOf("*");
1475
+ if (a === -1)
1476
+ return;
1477
+ const r = i.slice(0, a);
1478
+ if (!n.startsWith(r))
1479
+ return;
1480
+ const l = i.slice(a + 1), s = n.slice(r.length), c = t.slice(i.length);
1481
+ if (l === "") {
1482
+ const p = Z(e), f = e.slice(p.length), u = p === e && c === "" ? ".js" : f;
1483
+ return p.slice(0, -1) + s + u;
1484
+ }
1485
+ if (!s.endsWith(l))
1486
+ return;
1487
+ const m = s.slice(0, -l.length), d = e.indexOf("*");
1488
+ if (d !== -1)
1489
+ return e.slice(0, d) + m + e.slice(d + 1);
1490
+ }
1491
+ function Nn(e) {
1492
+ const t = e.getDeclarations()?.[0];
1493
+ if (t !== void 0 && ((o.isClassDeclaration(t) || o.isFunctionDeclaration(t) || o.isInterfaceDeclaration(t) || o.isTypeAliasDeclaration(t) || o.isEnumDeclaration(t)) && t.name !== void 0 && o.isIdentifier(t.name) || o.isVariableDeclaration(t) && o.isIdentifier(t.name) || o.isBindingElement(t) && o.isIdentifier(t.name)))
1494
+ return t.name.escapedText;
1495
+ const n = e.escapedName;
1496
+ return n === "default" || n.startsWith("__") ? void 0 : n;
1497
+ }
1498
+ function On(e) {
1499
+ return e.flags & o.SymbolFlags.ValueModule ? "*" : Gn(e) ? "default" : "named";
1500
+ }
1501
+ function Gn(e) {
1502
+ const t = e.escapedName;
1503
+ if (t === "default" || // CommonJS "export ="
1504
+ t === "export=")
1505
+ return !0;
1506
+ const n = e.getDeclarations();
1507
+ if (n !== void 0)
1508
+ for (let i = 0; i < n.length; ++i) {
1509
+ const a = n[i];
1510
+ if (o.canHaveModifiers(a) && o.getModifiers(a)?.some((r) => r.kind === o.SyntaxKind.DefaultKeyword))
1511
+ return !0;
1512
+ }
1513
+ return !1;
1514
+ }
1515
+ function ht(e, t, n, i) {
1516
+ const a = { file: n, node: e };
1517
+ return e.getText(n).includes("* @public") && i.emitError(
1518
+ "@public is not permitted in nested types. See options in documentation: https://webgis.esri.com/webgis/core/core/documenting-api#describing-nested-object-types and https://webgis.esri.com/webgis/core/core/documenting-api#variables",
1519
+ a
1520
+ ), H(e, t, a, i);
1521
+ }
1522
+ const O = {
1523
+ false: 0,
1524
+ /**
1525
+ * True for literal types. False for object types
1526
+ */
1527
+ shallow: 2,
1528
+ true: 1
1529
+ };
1530
+ function H(e, t, n, i) {
1531
+ if (e.kind === o.SyntaxKind.TrueKeyword || e.kind === o.SyntaxKind.FalseKeyword)
1532
+ return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BooleanKeyword) : o.factory.createLiteralTypeNode(e);
1533
+ if (e.kind === o.SyntaxKind.NullKeyword)
1534
+ return o.factory.createLiteralTypeNode(e);
1535
+ if (e.kind === o.SyntaxKind.UndefinedKeyword || o.isVoidExpression(e))
1536
+ return o.factory.createKeywordTypeNode(o.SyntaxKind.UndefinedKeyword);
1537
+ if (o.isStringLiteral(e) || o.isNoSubstitutionTemplateLiteral(e))
1538
+ return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword) : o.factory.createLiteralTypeNode(e);
1539
+ if (o.isTemplateExpression(e))
1540
+ return Se(n, t, i) ?? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword);
1541
+ if (o.isNumericLiteral(e))
1542
+ return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword) : o.factory.createLiteralTypeNode(e);
1543
+ if (o.isBigIntLiteral(e))
1544
+ return t === O.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BigIntKeyword) : o.factory.createLiteralTypeNode(e);
1545
+ if (o.isAsExpression(e) || o.isTypeAssertionExpression(e))
1546
+ return o.isTypeReferenceNode(e.type) && o.isIdentifier(e.type.typeName) && e.type.typeName.escapedText === "const" ? H(e.expression, O.true, n, i) : e.type;
1547
+ if (o.isSatisfiesExpression(e))
1548
+ return t === O.false ? e.type : H(e.expression, t, n, i);
1549
+ if (o.isRegularExpressionLiteral(e))
1550
+ return o.factory.createTypeReferenceNode(o.factory.createIdentifier("RegExp"));
1551
+ if (o.isArrayLiteralExpression(e)) {
1552
+ if (i.isInLuminaMinimalExtraction)
1553
+ return Oe;
1554
+ const a = t === O.shallow ? O.false : t, r = new Array(e.elements.length);
1555
+ for (let l = 0; l < r.length; ++l) {
1556
+ const s = e.elements[l];
1557
+ r[l] = H(s, a, { ...n, node: s }, i);
1558
+ }
1559
+ return a ? o.factory.createTypeOperatorNode(o.SyntaxKind.ReadonlyKeyword, o.factory.createTupleTypeNode(r)) : o.factory.createArrayTypeNode(
1560
+ r.length === 1 ? r[0] : o.factory.createUnionTypeNode(r)
1561
+ );
1562
+ }
1563
+ if (o.isObjectLiteralExpression(e)) {
1564
+ if (i.isInLuminaMinimalExtraction)
1565
+ return Oe;
1566
+ const a = t === O.shallow ? O.false : t, r = new Array(e.properties.length);
1567
+ for (let l = 0; l < r.length; ++l) {
1568
+ const s = e.properties[l];
1569
+ r[l] = Vn(s, a, { ...n, node: s }, i);
1570
+ }
1571
+ return o.factory.createTypeLiteralNode(r);
1572
+ }
1573
+ if (o.isPrefixUnaryExpression(e)) {
1574
+ if (e.operator !== o.SyntaxKind.MinusToken)
1575
+ return Ce(n, X, t, i);
1576
+ if (t === O.false)
1577
+ return o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword);
1578
+ {
1579
+ const a = H(e.operand, t, n, i);
1580
+ return o.isLiteralTypeNode(a) ? o.factory.createLiteralTypeNode(
1581
+ o.factory.createPrefixUnaryExpression(o.SyntaxKind.MinusToken, a.literal)
1582
+ ) : Ce(n, X, t, i);
1583
+ }
1584
+ }
1585
+ if (o.isParenthesizedExpression(e))
1586
+ return H(e.expression, t, n, i);
1587
+ if (o.isNewExpression(e)) {
1588
+ if (i.isInLuminaMinimalExtraction)
1589
+ return Oe;
1590
+ if (o.isIdentifier(e.expression)) {
1591
+ const r = e.expression.escapedText;
1592
+ let l = e.typeArguments, s = !1;
1593
+ if ((r === "Set" || r === "WeakSet") && l === void 0)
1594
+ if (e.arguments?.[0] !== void 0) {
1595
+ const c = H(
1596
+ e.arguments[0],
1597
+ t,
1598
+ { ...n, node: e.arguments[0] },
1599
+ i
1600
+ );
1601
+ c.kind === o.SyntaxKind.ArrayType && (l = [c.elementType]);
1602
+ } else
1603
+ s = !0;
1604
+ else
1605
+ s ||= (r === "Map" || r === "WeakMap") && l?.length !== 2;
1606
+ if (!s)
1607
+ return o.factory.createTypeReferenceNode(e.expression, l);
1608
+ }
1609
+ const a = H(e.expression, t, n, i);
1610
+ if (o.isTypeReferenceNode(a))
1611
+ return a;
1612
+ }
1613
+ if (o.isConditionalExpression(e))
1614
+ return o.factory.createUnionTypeNode([
1615
+ H(e.whenTrue, t, { ...n, node: e.whenTrue }, i),
1616
+ H(e.whenFalse, t, { ...n, node: e.whenFalse }, i)
1617
+ ]);
1618
+ if (o.isIdentifier(e))
1619
+ return Se(n, t, i) ?? o.factory.createTypeQueryNode(e);
1620
+ if (o.isPropertyAccessExpression(e) && o.isIdentifier(e.name)) {
1621
+ const a = Se(n, t, i);
1622
+ if (a !== void 0)
1623
+ return a;
1624
+ const r = H(e.expression, t, n, i);
1625
+ return o.isTypeQueryNode(r) ? o.factory.createTypeQueryNode(o.factory.createQualifiedName(r.exprName, e.name)) : r === yt ? yt : Ce(n, X, t, i);
1626
+ }
1627
+ if (o.isCallExpression(e)) {
1628
+ const a = e.expression, r = e.arguments.at(0);
1629
+ if (o.isPropertyAccessExpression(a) && o.isIdentifier(a.expression) && o.isIdentifier(a.name) && a.expression.escapedText === "Collection" && a.name.escapedText === "ofType" && r !== void 0 && o.isIdentifier(r))
1630
+ return o.factory.createTypeReferenceNode(a.expression, [
1631
+ o.factory.createTypeReferenceNode(r)
1632
+ ]);
1633
+ const l = Se(n, t, i);
1634
+ if (l !== void 0)
1635
+ return l;
1636
+ const s = H(a, t, n, i);
1637
+ return o.isTypeQueryNode(s) ? o.factory.createTypeReferenceNode(o.factory.createIdentifier("ReturnType"), [
1638
+ o.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1639
+ ]) : Ce(n, X, t, i);
1640
+ }
1641
+ if (o.isArrowFunction(e)) {
1642
+ if (i.isInLuminaMinimalExtraction)
1643
+ return Oe;
1644
+ const a = t === O.shallow ? O.false : t;
1645
+ return o.factory.createFunctionTypeNode(
1646
+ e.typeParameters,
1647
+ vt(e.parameters, a, n, i),
1648
+ e.type ?? (o.isBlock(e.body) ? Je(e, i) ?? Q(n, X, i) : H(e.body, a, n, i))
1649
+ );
1650
+ }
1651
+ return Ce(n, X, t, i);
1652
+ }
1653
+ function Vn(e, t, n, i) {
1654
+ const a = t === O.false ? void 0 : Bn;
1655
+ return o.isPropertyAssignment(e) ? o.factory.createPropertySignature(
1656
+ a,
1657
+ e.name,
1658
+ void 0,
1659
+ H(e.initializer, t, { ...n, node: e.initializer }, i)
1660
+ ) : o.isShorthandPropertyAssignment(e) ? o.factory.createPropertySignature(
1661
+ a,
1662
+ e.name,
1663
+ void 0,
1664
+ Se(n, t, i) ?? o.factory.createTypeQueryNode(o.factory.createIdentifier(e.name.escapedText))
1665
+ ) : o.isSpreadAssignment(e) ? o.factory.createPropertySignature(
1666
+ a,
1667
+ "_spread",
1668
+ void 0,
1669
+ Q(n, X, i)
1670
+ ) : o.isMethodDeclaration(e) ? o.factory.createPropertySignature(
1671
+ a,
1672
+ e.name,
1673
+ void 0,
1674
+ o.factory.createFunctionTypeNode(
1675
+ e.typeParameters,
1676
+ vt(e.parameters, t, n, i),
1677
+ e.type ?? Je(e, i) ?? Q(n, X, i)
1678
+ )
1679
+ ) : o.isGetAccessorDeclaration(e) ? o.factory.createGetAccessorDeclaration(
1680
+ void 0,
1681
+ e.name,
1682
+ // Should always be empty
1683
+ e.parameters,
1684
+ e.type ?? Je(e, i) ?? Q(n, X, i),
1685
+ void 0
1686
+ ) : o.factory.createSetAccessorDeclaration(
1687
+ void 0,
1688
+ e.name,
1689
+ vt(e.parameters, t, n, i),
1690
+ void 0
1691
+ );
1692
+ }
1693
+ function Ce(e, t, n, i) {
1694
+ return Se(e, n, i) ?? Q(e, t, i);
1695
+ }
1696
+ function Se(e, t, n) {
1697
+ const i = n.program?.getTypeChecker?.();
1698
+ if (i !== void 0 && e.node !== void 0) {
1699
+ let a;
1700
+ const r = t === O.false;
1701
+ if (r && e.node.kind === o.SyntaxKind.Identifier) {
1702
+ const s = i.getSymbolAtLocation(e.node);
1703
+ a = s === void 0 ? void 0 : i.getTypeOfSymbol(s);
1704
+ }
1705
+ a ??= i.getTypeAtLocation(e.node);
1706
+ const l = r ? qi(i, a) : a;
1707
+ return tt(i, l);
1708
+ }
1709
+ }
1710
+ function tt(e, t) {
1711
+ const n = t.flags & o.TypeFlags.Union ? t.types.every(_t) : _t(t);
1712
+ return e.typeToTypeNode(
1713
+ t,
1714
+ void 0,
1715
+ Kn & (n ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1716
+ );
1717
+ }
1718
+ const _n = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, Wn = _n & o.TypeFormatFlags.NodeBuilderFlagsMask, Kn = Wn | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation, _t = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1719
+ function Je(e, t) {
1720
+ const n = t.program?.getTypeChecker?.();
1721
+ if (n === void 0)
1722
+ return;
1723
+ const i = n.getSignatureFromDeclaration(e);
1724
+ if (i === void 0)
1725
+ return;
1726
+ const a = n.getReturnTypeOfSignature(i);
1727
+ return tt(n, a);
1728
+ }
1729
+ function Hn(e, t) {
1730
+ const n = t.program?.getTypeChecker?.();
1731
+ if (n === void 0)
1732
+ return;
1733
+ const i = n.getTypeAtLocation(e);
1734
+ return tt(n, i);
1735
+ }
1736
+ function Q(e, t, n) {
1737
+ return n.isInLuminaMinimalExtraction || n.emitError(t, e), yt;
1738
+ }
1739
+ const X = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", yt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), Oe = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), _e = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), $n = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), Bn = [$n];
1740
+ function vt(e, t, n, i) {
1741
+ const a = new Array(e.length);
1742
+ for (let r = 0; r < a.length; ++r) {
1743
+ const l = e[r];
1744
+ a[r] = l.initializer === void 0 && o.isIdentifier(l.name) ? l : o.factory.createParameterDeclaration(
1745
+ void 0,
1746
+ l.dotDotDotToken,
1747
+ o.isIdentifier(l.name) ? l.name : o.factory.createIdentifier(`parameter${r}`),
1748
+ l.questionToken,
1749
+ l.type ?? (l.initializer === void 0 ? Q({ ...n, node: l }, X, i) : H(
1750
+ l.initializer,
1751
+ t,
1752
+ {
1753
+ ...n,
1754
+ node: l.initializer
1755
+ },
1756
+ i
1757
+ ))
1758
+ );
1759
+ }
1760
+ return a;
1761
+ }
1762
+ function Un(e, t) {
1763
+ const n = t.program?.getTypeChecker?.();
1764
+ if (n === void 0 || !zn(e.exprName, t))
1765
+ return;
1766
+ const i = n.getTypeAtLocation(e.exprName);
1767
+ return tt(n, i);
1768
+ }
1769
+ function zn(e, t) {
1770
+ return e.kind === o.SyntaxKind.QualifiedName ? jn(e.left) : t.moduleContext.importsMap[e.escapedText]?.specifier.endsWith(".json") === !0;
1771
+ }
1772
+ function jn(e) {
1773
+ for (; e !== void 0; )
1774
+ if (e.kind === o.SyntaxKind.QualifiedName)
1775
+ e = e.left;
1776
+ else if (e.kind === o.SyntaxKind.Identifier)
1777
+ return e.escapedText === "this";
1778
+ return !1;
1779
+ }
1780
+ function z(e, t) {
1781
+ if (P = t, We.clear(), U = [], qe.clear(), e.pos !== -1 && e.getText(P.file).includes("* @public") && P.emitError(
1782
+ "@public JSDoc tag may only appear in interfaces, top-level of type alias, or top-level intersection inside a type-alias. @public JSDoc tag inside inline object literal types or deeper aliases is not supported as such are tricky to represent in the docs UI. Refactor out the type into a separate top-level interface/type-alias. Documentation: https://webgis.esri.com/webgis/core/core/documenting-api#describing-nested-object-types",
1783
+ { file: P.file, node: e }
1784
+ ), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
1785
+ Ke(e);
1786
+ else if (o.isFunctionTypeNode(e) || o.isConstructorTypeNode(e)) {
1787
+ const i = e.typeParameters;
1788
+ if (i !== void 0)
1789
+ for (let a = 0; a < i.length; ++a) {
1790
+ const r = i[a];
1791
+ qe.add(r.name.escapedText);
1792
+ }
1793
+ }
1794
+ return Jn.writeNode(o.EmitHint.Unspecified, e, void 0, We), {
1795
+ text: We.getText(),
1796
+ references: U.length > 0 ? U : void 0,
1797
+ values: void 0,
1798
+ source: void 0
1799
+ };
1800
+ }
1801
+ let P;
1802
+ const ve = (e, t, n) => {
1803
+ switch (t.kind) {
1804
+ case o.SyntaxKind.TypeReference:
1805
+ const i = t, a = i.typeName;
1806
+ switch (a.escapedText) {
1807
+ case "nil":
1808
+ return ve(e, qn, n);
1809
+ // Used in public typings in 88 files
1810
+ // REFACTOR: consider refactoring out Const usages in public API to
1811
+ // reduce divergence
1812
+ case "Const":
1813
+ // In public types, Lumina's "component" and "el" have the same type
1814
+ // eslint-disable-next-line no-fallthrough
1815
+ case "ToElement":
1816
+ return ve(e, i.typeArguments[0], n);
1817
+ /**
1818
+ * @see https://webgis.esri.com/webgis/core/core/documenting-api#publicprivate-type-divergence
1819
+ */
1820
+ case "PublicApiNarrowType":
1821
+ case "PublicApiRelaxType":
1822
+ return ve(e, i.typeArguments[1], n);
1823
+ }
1824
+ Ke(a);
1825
+ break;
1826
+ case o.SyntaxKind.TypeQuery:
1827
+ const l = Un(t, P);
1828
+ if (l !== void 0)
1829
+ return ve(e, l, n);
1830
+ Ke(t.exprName, Xn);
1831
+ break;
1832
+ case o.SyntaxKind.PropertyAccessExpression:
1833
+ Ke(t);
1834
+ break;
1835
+ case o.SyntaxKind.InferType:
1836
+ case o.SyntaxKind.MappedType:
1837
+ const c = t.typeParameter;
1838
+ qe.add(c.name.escapedText);
1839
+ break;
1840
+ case o.SyntaxKind.TypeLiteral:
1841
+ const m = t;
1842
+ m.members.length === 1 && !P.isJsApi && ("emitNode" in m && (m.emitNode ??= {}), o.setEmitFlags(m, o.EmitFlags.SingleLine));
1843
+ break;
1844
+ case o.SyntaxKind.IndexedAccessType:
1845
+ const d = t;
1846
+ if (
1847
+ // In public types, Lumina's "component" and "el" have the same type
1848
+ // Thus print ArcgisHome["el"] as just ArcgisHome
1849
+ P.isComponentProject && d.indexType.kind === o.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1850
+ )
1851
+ return ve(e, d.objectType, n);
1852
+ break;
1853
+ case o.SyntaxKind.ImportType:
1854
+ P.emitError(
1855
+ `\`import()\` syntax inside types is not supported - refactor to import the type at the top of the file${t.pos === -1 ? ". The import() syntax might also be inserted by TypeScript if you are referencing a type that is not otherwise accessible - refactor such cases by adding explicit type annotation." : ""}`,
1856
+ { file: P.file, node: t }
1857
+ );
1858
+ break;
1859
+ }
1860
+ n(e, t), Xe !== void 0 && (ci(), Xe = void 0);
1861
+ }, Jn = Qi(
1862
+ {},
1863
+ {
1864
+ onEmitNode: ve
1865
+ }
1866
+ ), qn = o.factory.createIdentifier("null | undefined"), We = Xi.createTextWriter(`
1867
+ `), Xn = 7, qe = /* @__PURE__ */ new Set();
1868
+ let U;
1869
+ function Ke(e, t = 0) {
1870
+ const n = [];
1871
+ let i = e;
1872
+ for (; i !== void 0; )
1873
+ if (i.kind === o.SyntaxKind.Identifier) {
1874
+ n.push(i);
1875
+ break;
1876
+ } else if (i.kind === o.SyntaxKind.QualifiedName)
1877
+ n.push(i.right), i = i.left;
1878
+ else if (i.kind === o.SyntaxKind.PropertyAccessExpression) {
1879
+ const g = i.name;
1880
+ n.push(g), i = i.expression;
1881
+ }
1882
+ const a = n.at(-1), r = a.escapedText, l = We.getTextPos() + t;
1883
+ let s = l + r.length;
1884
+ const c = a;
1885
+ if (c.pos === -1 && c.symbol !== void 0) {
1886
+ U.push(
1887
+ je(c.symbol, c, P, l, s)
1888
+ );
1889
+ return;
1890
+ }
1891
+ if (P.functionLikeTypeParameters?.has(r) === !0) {
1892
+ U.push({
1893
+ name: r,
1894
+ module: void 0,
1895
+ package: void 0,
1896
+ viewUrl: void 0,
1897
+ start: l,
1898
+ end: s
1899
+ });
1900
+ return;
1901
+ }
1902
+ if (P.objectLikeTypeParameters?.has(r) === !0) {
1903
+ U.push({
1904
+ name: r,
1905
+ module: void 0,
1906
+ package: void 0,
1907
+ viewUrl: void 0,
1908
+ start: l,
1909
+ end: s
1910
+ });
1911
+ return;
1912
+ }
1913
+ if (P.localDeclarations.has(r)) {
1914
+ U.push({
1915
+ name: r,
1916
+ module: void 0,
1917
+ package: void 0,
1918
+ viewUrl: Ve(
1919
+ P.apiModule.path,
1920
+ r === P.exportDefaultName ? void 0 : r,
1921
+ void 0,
1922
+ P
1923
+ ),
1924
+ start: l,
1925
+ end: s
1926
+ });
1927
+ return;
1928
+ }
1929
+ if (P.localPrivateDeclarations?.has(r) === !0) {
1930
+ P.localPrivateDeclarations.set(r, Math.abs(P.localPrivateDeclarations.get(r))), U.push({
1931
+ name: r,
1932
+ module: void 0,
1933
+ package: void 0,
1934
+ viewUrl: Ve(
1935
+ P.apiModule.path,
1936
+ r === P.exportDefaultName ? void 0 : r,
1937
+ void 0,
1938
+ P
1939
+ ),
1940
+ start: l,
1941
+ end: s
1942
+ });
1943
+ return;
1944
+ }
1945
+ const d = P.moduleContext.importsMap[r];
1946
+ if (d !== void 0) {
1947
+ d.wasUsed = !0;
1948
+ const g = d.type === "named";
1949
+ d.replacementName !== void 0 && (be(a, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (P.functionLikeTypeParameters?.has(d.replacementName) === !0 || P.objectLikeTypeParameters?.has(d.replacementName) === !0) && P.emitError(
1950
+ `Can't do a type replacement of ${ne.green(r)} to ${ne.red(d.replacementName)} as the latter name conflicts with a type parameter name in the current scope. Rename the type parameter or refactor out the type replacement.`,
1951
+ { file: P.file, node: e }
1952
+ );
1953
+ const C = g ? d.actualName ?? d.replacementName ?? r : void 0;
1954
+ if (d.modulePath === void 0) {
1955
+ if (P.config.strict) {
1956
+ const M = ct(d.specifier);
1957
+ P.runtimeDependencyNames.has(M) || P.emitError(
1958
+ M === "esri" ? `Found unexpected absolute path import of ${ne.red(C ?? d.type)} from ${ne.red(d.specifier)}. Did you mean to use a relative import instead?` : `Type ${ne.red(C ?? d.type)} imported from ${ne.red(M)} cannot be referenced in public types as this dependency is not declared as a "dependency" in the package.json`,
1959
+ { file: P.file, node: e }
1960
+ );
1961
+ }
1962
+ } else P.config.strict || ze(
1963
+ d.modulePath,
1964
+ pt(
1965
+ P.apiModule.sourcePath.slice(P.config.context.basePath.length),
1966
+ d.specifier
1967
+ ),
1968
+ g ? C : d.type,
1969
+ P
1970
+ );
1971
+ let y, h = d.modulePath;
1972
+ h === void 0 && (y = ct(d.specifier), h = d.specifier.length === y.length ? void 0 : d.specifier.slice(y.length + 1)), U.push({
1973
+ name: C ?? d.type,
1974
+ module: h,
1975
+ package: y,
1976
+ viewUrl: d.modulePath === void 0 ? si(y, h, g ? r : d.type) : Ve(d.modulePath, C, void 0, P),
1977
+ start: l,
1978
+ end: s
1979
+ });
1980
+ return;
1981
+ }
1982
+ const p = mt[r];
1983
+ if (p !== void 0) {
1984
+ U.push({
1985
+ name: r,
1986
+ module: void 0,
1987
+ package: De,
1988
+ viewUrl: p[0]?.startsWith("https") === !1 ? `${ut}${p[0]}` : p[0] ?? void 0,
1989
+ start: l,
1990
+ end: s
1991
+ });
1992
+ let g = p;
1993
+ if (g.length > 1) {
1994
+ let C = n.length - 2, y = s + 1;
1995
+ for (; g[1] !== void 0 && C >= 0; ) {
1996
+ const h = n[C--];
1997
+ if (g = g[1][h.escapedText], g === void 0)
1998
+ P.emitError("Failed to resolve the definition of the type reference", {
1999
+ file: P.file,
2000
+ node: e
2001
+ });
2002
+ else {
2003
+ const M = y + h.escapedText.length;
2004
+ U.push({
2005
+ name: h.escapedText,
2006
+ module: void 0,
2007
+ package: De,
2008
+ viewUrl: g[0]?.startsWith("https") === !1 ? `${ut}${g[0]}` : g[0] ?? void 0,
2009
+ start: y,
2010
+ end: M
2011
+ }), y = M + 1;
2012
+ }
2013
+ }
2014
+ }
2015
+ return;
2016
+ }
2017
+ if (qe.has(r))
2018
+ return;
2019
+ const u = P.program?.getTypeChecker?.()?.getSymbolAtLocation(a);
2020
+ if (u !== void 0) {
2021
+ U.push(je(u, a, P, l, s));
2022
+ return;
2023
+ }
2024
+ P.emitError(
2025
+ "Failed to resolve the definition of the type reference. Ensure it has @public or refactor out its usage from the public API type",
2026
+ { file: P.file, node: e }
2027
+ );
2028
+ }
2029
+ function be(e, t) {
2030
+ const n = e.escapedText;
2031
+ Xe = e, gt = t, ci(), gt = n;
2032
+ }
2033
+ let Xe, gt;
2034
+ function ci() {
2035
+ Xe.escapedText = gt;
2036
+ }
2037
+ function it(e, t, n) {
2038
+ if (e === void 0 || n.isInLuminaMinimalExtraction) {
2039
+ t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
2040
+ return;
2041
+ }
2042
+ const i = new Array(e.length), a = t ? Qn : Yn;
2043
+ a.clear();
2044
+ for (let r = 0; r < e.length; ++r) {
2045
+ const l = e[r], s = l.name.escapedText;
2046
+ a.add(s);
2047
+ const c = {
2048
+ name: s,
2049
+ constraint: void 0,
2050
+ default: void 0,
2051
+ const: void 0,
2052
+ in: void 0,
2053
+ out: void 0
2054
+ };
2055
+ if (l.modifiers !== void 0)
2056
+ for (let m = 0; m < l.modifiers.length; ++m) {
2057
+ const d = l.modifiers[m];
2058
+ d.kind === o.SyntaxKind.ConstKeyword ? c.const = !0 : d.kind === o.SyntaxKind.InKeyword ? c.in = !0 : d.kind === o.SyntaxKind.OutKeyword && (c.out = !0);
2059
+ }
2060
+ i[r] = c;
2061
+ }
2062
+ t ? n.objectLikeTypeParameters = a : n.functionLikeTypeParameters = a;
2063
+ for (let r = 0; r < e.length; ++r) {
2064
+ const l = e[r], s = l.constraint, c = l.default;
2065
+ s !== void 0 && (i[r].constraint = z(s, n)), c !== void 0 && (i[r].default = z(c, n));
2066
+ }
2067
+ return i;
2068
+ }
2069
+ const Qn = /* @__PURE__ */ new Set(), Yn = /* @__PURE__ */ new Set();
2070
+ function Re(e, t, n) {
2071
+ if (!o.isIdentifier(e) && !o.isQualifiedName(e) && !o.isPropertyAccessExpression(e))
2072
+ return n.emitError(
2073
+ "Expected the type nodes in the extends clause to be Identifier, QualifiedName or PropertyAccessExpression.",
2074
+ { file: n.file, node: e }
2075
+ ), {
2076
+ name: "error",
2077
+ module: void 0,
2078
+ package: void 0,
2079
+ viewUrl: void 0,
2080
+ typeArguments: void 0,
2081
+ printableText: n.produceDts ? "Record<never, Error>" : void 0
2082
+ };
2083
+ const i = z(e, n), a = i.references?.[0] ?? {
2084
+ module: void 0,
2085
+ package: void 0,
2086
+ viewUrl: void 0
2087
+ };
2088
+ let r, l;
2089
+ if (r = i.text, t !== void 0) {
2090
+ l = new Array(t.length), r += "<";
2091
+ for (let c = 0; c < t.length; ++c) {
2092
+ const m = t[c], d = z(m, n);
2093
+ l[c] = d, r += d.text, c < t.length - 1 && (r += ", ");
2094
+ }
2095
+ r += ">";
2096
+ }
2097
+ return {
2098
+ name: i.references?.length === 1 ? i.references[0].name : i.text,
2099
+ module: a.module,
2100
+ package: a.package,
2101
+ viewUrl: a.viewUrl,
2102
+ typeArguments: l,
2103
+ /**
2104
+ * If referenced type is imported as default, the `name` will be `default`,
2105
+ * which is not a name suitable for .d.ts emit. So we preserve the original
2106
+ * type string in a temporary field.
2107
+ */
2108
+ printableText: r
2109
+ };
2110
+ }
2111
+ function Et(e) {
2112
+ return o.isTypeReferenceNode(e) && (e.typeName.escapedText === "PublicApiNarrowType" || e.typeName.escapedText === "PublicApiRelaxType") ? e.typeArguments[1] : e;
2113
+ }
2114
+ function Zn(e) {
2115
+ return e.expression.escapedText === "PublicApiNarrowType" || e.expression.escapedText === "PublicApiRelaxType" ? e.typeArguments[1] : e;
2116
+ }
2117
+ const di = { text: "unknown", references: void 0, values: void 0, source: void 0 }, eo = {
2118
+ text: "Promise<unknown>",
2119
+ references: void 0,
2120
+ values: void 0,
2121
+ source: void 0
2122
+ }, to = {
2123
+ text: "Record<string, unknown> | undefined",
2124
+ references: [
2125
+ {
2126
+ name: "Record",
2127
+ module: void 0,
2128
+ package: "global:",
2129
+ viewUrl: "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
2130
+ start: 0,
2131
+ end: 6
2132
+ }
2133
+ ],
2134
+ values: void 0,
2135
+ source: void 0
2136
+ };
2137
+ function io(e, t) {
2138
+ if (t.isInLuminaMinimalExtraction)
2139
+ return;
2140
+ const n = Li(e.name), i = {
2141
+ [Y]: no,
2142
+ kind: "method",
2143
+ name: "componentOnReady",
2144
+ static: void 0,
2145
+ deprecated: void 0,
2146
+ summary: void 0,
2147
+ description: "Create a promise that resolves once component is fully loaded.",
2148
+ docsTags: [
2149
+ {
2150
+ name: "example",
2151
+ text: `\`\`\`js
2152
+ const ${n} = document.querySelector("${e.tagName}");
2153
+ document.body.append(${n});
2154
+ await ${n}.componentOnReady();
2155
+ console.log("${e.tagName} is ready to go!");
2156
+ \`\`\``
2157
+ }
2158
+ ],
2159
+ typeParameters: void 0,
2160
+ parameters: void 0,
2161
+ return: oo,
2162
+ inheritedFrom: e.superclass,
2163
+ signature: "(): Promise<this>",
2164
+ privacy: void 0,
2165
+ source: void 0
2166
+ };
2167
+ e.members.push(i);
2168
+ const a = [], r = t.config.documentation.getComponentDocsUrl, l = t.config.documentation.getComponentDemoUrl, s = typeof r == "function" ? r(e.tagName, e.name) : void 0, c = typeof l == "function" ? l(e.tagName, e.name) : void 0;
2169
+ typeof s == "string" && a.push({
2170
+ description: "Docs",
2171
+ url: s,
2172
+ source: void 0
2173
+ }), typeof c == "string" && a.push({
2174
+ description: "Demo",
2175
+ url: c,
2176
+ source: void 0
2177
+ });
2178
+ const m = t.componentStories[e.tagName];
2179
+ if (typeof m == "object" && a.push(...m), t.componentCssFileDocs !== void 0) {
2180
+ e.cssProperties ??= [];
2181
+ const d = new Set(e.cssProperties.map((p) => p.name));
2182
+ e.cssProperties = [
2183
+ ...e.cssProperties,
2184
+ ...t.componentCssFileDocs.filter((p) => !d.has(p.name))
2185
+ ], t.componentCssFileDocs = void 0;
2186
+ }
2187
+ a.length > 0 && (e.demos = a);
2188
+ }
2189
+ const no = Ze(), oo = {
2190
+ summary: void 0,
2191
+ description: void 0,
2192
+ type: {
2193
+ text: "Promise<this>",
2194
+ references: [
2195
+ {
2196
+ name: "Promise",
2197
+ module: "lib/lib.es5.d.ts",
2198
+ package: "typescript",
2199
+ viewUrl: void 0,
2200
+ start: 0,
2201
+ end: 7
2202
+ }
2203
+ ],
2204
+ values: void 0,
2205
+ source: void 0
2206
+ }
2207
+ }, ao = de, ro = de, so = de, lo = de, co = de, po = de, mo = de, pi = de;
2208
+ function de(e, t, n, i, a) {
2209
+ if (i.docsTags === void 0 || n === void 0)
2210
+ return;
2211
+ const r = i.docsTags.indexOf(W.copyDoc);
2212
+ if (r === -1)
2213
+ return;
2214
+ const l = i.name;
2215
+ let s = n?.[l];
2216
+ s === void 0 && e.emitError(
2217
+ "@copyDoc tag was used, but failed to find copyDoc definition for it. Documentation: https://webgis.esri.com/webgis/core/core/documenting-api#copydoc",
2218
+ {
2219
+ file: e.file,
2220
+ node: t
2221
+ }
2222
+ ), !(typeof s == "function" && (s = s(i, a, e.apiModule), s === void 0)) && Ri(s, i, r);
2223
+ }
2224
+ function Ct(e, t, n) {
2225
+ n.apiModule.exports.push({
2226
+ kind: e.customElement === !0 ? "custom-element-definition" : e.kind === "interface" || e.kind === "mixin" ? "ts" : "js",
2227
+ name: t ? "default" : e.tagName ?? e.name,
2228
+ deprecated: void 0,
2229
+ declaration: {
2230
+ name: e.name,
2231
+ module: void 0,
2232
+ package: void 0,
2233
+ viewUrl: void 0
2234
+ }
2235
+ });
2236
+ }
2237
+ const uo = Ae, rt = Ae, fo = Ae, Wt = Ae, Kt = Ae;
2238
+ function Ae(e, t, n, i) {
2239
+ if (t === void 0) {
2240
+ i.emitError("Computed function/method names are not yet supported.", {
2241
+ file: i.file,
2242
+ node: e
2243
+ });
2244
+ return;
2245
+ }
2246
+ const a = n ?? e, r = n !== void 0 && !o.isVariableStatement(n), l = o.isMethodDeclaration(e), s = o.isMethodSignature(e), c = l || s || r, m = n !== void 0 && o.isVariableStatement(n), p = o.isFunctionDeclaration(e) || m, f = !r && !m && o.isFunctionTypeNode(e) || o.isCallSignatureDeclaration(e), u = o.isConstructorDeclaration(e), g = u || o.isConstructSignatureDeclaration(e) || o.isConstructorTypeNode(e), C = i.isInLuminaMinimalExtraction || i.jsDoc === Ee, y = Ze();
2247
+ let h, M, b = !1, v = !1;
2248
+ if (!p && a.modifiers !== void 0)
2249
+ for (let T = 0; T < a.modifiers.length; ++T)
2250
+ switch (a.modifiers[T].kind) {
2251
+ case o.SyntaxKind.StaticKeyword:
2252
+ h = !0;
2253
+ break;
2254
+ case o.SyntaxKind.ProtectedKeyword:
2255
+ M = "protected";
2256
+ break;
2257
+ case o.SyntaxKind.AbstractKeyword:
2258
+ b = !0;
2259
+ break;
2260
+ case o.SyntaxKind.AsyncKeyword:
2261
+ v = !0;
2262
+ break;
2263
+ }
2264
+ const x = {
2265
+ [Y]: y,
2266
+ kind: c ? "method" : p ? "function" : f ? "call-signature" : g ? "constructor" : void 0,
2267
+ name: g || f ? void 0 : t,
2268
+ static: h,
2269
+ deprecated: void 0,
2270
+ summary: void 0,
2271
+ description: void 0,
2272
+ docsTags: void 0,
2273
+ typeParameters: it(e.typeParameters, !1, i),
2274
+ parameters: [],
2275
+ return: u ? void 0 : {
2276
+ summary: void 0,
2277
+ description: void 0,
2278
+ type: C ? v ? eo : di : z(
2279
+ e.type ?? Je(e, i) ?? Q(
2280
+ { file: i.file, node: e },
2281
+ "@public function must have a return type annotation",
2282
+ i
2283
+ ),
2284
+ i
2285
+ )
2286
+ },
2287
+ inheritedFrom: void 0,
2288
+ signature: void 0,
2289
+ privacy: M,
2290
+ source: void 0
2291
+ }, R = x, I = on(x, i.jsDoc), k = C ? [] : e.parameters;
2292
+ let D = I.length, S = !1, N = 0;
2293
+ for (let T = 0; T < k.length; ++T) {
2294
+ const E = k[T], A = o.isIdentifier(E.name) ? E.name.escapedText : void 0;
2295
+ if (A === "this") {
2296
+ N -= 1;
2297
+ continue;
2298
+ }
2299
+ const _ = u && A !== void 0 && E.modifiers !== void 0 && E.modifiers.length > 0 ? j(E, !0, i) : void 0;
2300
+ if (_ !== void 0) {
2301
+ N -= 1, D += 1, i.jsDoc = _;
2302
+ const q = ui(E, A, !1, i);
2303
+ if (q === void 0)
2304
+ continue;
2305
+ i.apiObject.members.push(q);
2306
+ const pe = {
2307
+ name: A,
2308
+ deprecated: void 0,
2309
+ summary: void 0,
2310
+ description: q.description,
2311
+ docsTags: void 0,
2312
+ optional: void 0,
2313
+ rest: E.dotDotDotToken ? !0 : void 0,
2314
+ type: q.type,
2315
+ default: q.default
2316
+ };
2317
+ pe.optional = Ht(E, pe), x.parameters.push(pe);
2318
+ continue;
2319
+ }
2320
+ let F = I[T + N]?.text, G, w;
2321
+ if (!i.config.strict && (F === void 0 || A === void 0) && (F = A ?? `parameter${T}`), F === void 0) {
2322
+ i.emitError(
2323
+ `Expected @param tag for every parameter on a public function. If you need to include a non-public parameter on a public function, see https://webgis.esri.com/webgis/core/core/documenting-api#param${g ? " and https://webgis.esri.com/webgis/core/core/documenting-api#constructor" : ""}`,
2324
+ { file: i.file, node: E }
2325
+ ), S = !0;
2326
+ break;
2327
+ }
2328
+ const K = F.indexOf(" ");
2329
+ if (G = K === -1 ? F : F.slice(0, K), w = K === -1 ? "" : F.slice(K + 1).trim(), (w.startsWith("- ") || w.startsWith(`-
2330
+ `)) && (w = w.slice(2).trim()), A !== void 0 && A !== G && `_${G}` !== A) {
2331
+ const q = G.startsWith("[") || G.endsWith("]");
2332
+ if (i.config.strict) {
2333
+ i.emitError(
2334
+ `The '${A}' TypeScript parameter name does not match the @param tag at position ${T}, '${G}'${q ? ". If you meant to mark the parameter as optional, use TypeScript's `?` syntax or `=` default value syntax instead of JSDoc [square brackets]" : ""}`,
2335
+ {
2336
+ file: i.file,
2337
+ node: E
2338
+ }
2339
+ ), S = !0;
2340
+ break;
2341
+ } else
2342
+ G = A.startsWith("_") ? A.slice(1) : A;
2343
+ }
2344
+ const me = E.type ?? (E.initializer === void 0 ? Q(
2345
+ { file: i.file, node: E },
2346
+ `Public parameter ${G} must have a type annotation or a default value`,
2347
+ i
2348
+ ) : ht(E.initializer, O.false, i.file, i)), ke = z(me, i), ie = {
2349
+ name: G,
2350
+ deprecated: void 0,
2351
+ summary: void 0,
2352
+ description: w || void 0,
2353
+ docsTags: void 0,
2354
+ optional: void 0,
2355
+ rest: E.dotDotDotToken ? !0 : void 0,
2356
+ type: ke,
2357
+ default: Be(E.initializer, void 0, i.file, i.isJsApi)
2358
+ };
2359
+ ie.optional = Ht(E, ie), x.parameters.push(ie);
2360
+ }
2361
+ if (i.config.strict && !S && D !== x.parameters.length && i.emitError(
2362
+ `Expected @param tags to match the number of parameters on a public function. Found ${I.length} @param tags for ${x.parameters.length} TypeScript parameters. Documentation: https://webgis.esri.com/webgis/core/core/documenting-api#param${g ? " and https://webgis.esri.com/webgis/core/core/documenting-api#constructor" : ""}`,
2363
+ { file: i.file, node: e }
2364
+ ), x.parameters.length === 0)
2365
+ x.parameters = void 0;
2366
+ else {
2367
+ let T = !0;
2368
+ for (let E = x.parameters.length - 1; E >= 0; E--) {
2369
+ const L = x.parameters[E];
2370
+ T &&= L.optional === !0 || L.rest === !0, !T && L.optional && (L.optional = void 0, L.type.text += " | undefined");
2371
+ }
2372
+ }
2373
+ l && i.componentTagName !== void 0 && (R.signature = Ki(R), v && !Di(R) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
2374
+ file: i.file,
2375
+ node: e
2376
+ })), i.functionLikeTypeParameters = void 0;
2377
+ const B = p ? et(a) : 0, $ = p && i.exportDefaultName === t, V = B === 2 || $;
2378
+ return p && (V ? Ct(x, !0, i) : B === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2379
+ file: i.file,
2380
+ node: e
2381
+ })), i.produceDts && (c || g || f ? (b && (y.isAbstract = !0), y.hasQuestionToken = a.questionToken !== void 0 ? !0 : void 0) : y.isDefaultExported = V || void 0), c ? ro(
2382
+ i,
2383
+ n ?? e,
2384
+ i.config.documentation.copyDocDefinitions.methods,
2385
+ x,
2386
+ i.apiObject
2387
+ ) : p && lo(
2388
+ i,
2389
+ n ?? e,
2390
+ i.config.documentation.copyDocDefinitions.functions,
2391
+ x,
2392
+ i.apiModule
2393
+ ), x;
2394
+ }
2395
+ const Ht = (e, t) => (
2396
+ // Keep ? as is
2397
+ e.questionToken !== void 0 || // If had default value internally, but not publicly, add ?
2398
+ e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2399
+ );
2400
+ function yo(e, t, n) {
2401
+ return St(), Me(e, t), bt && t !== void 0 && n !== void 0 && (St(), Mt(t.getTypeAtLocation(n))), mi();
2402
+ }
2403
+ function vo(e) {
2404
+ return St(), Mt(e), mi();
2405
+ }
2406
+ let Le = !1, re = !1, se = !1, Ie = !1, le = !1, bt = !1;
2407
+ const ce = [], ee = [];
2408
+ function St() {
2409
+ Le = !1, re = !1, se = !1, Ie = !1, le = !1, bt = !1, ce.length = 0, ee.length = 0;
2410
+ }
2411
+ function mi() {
2412
+ if (!se && !Ie && !le && !Le)
2413
+ return;
2414
+ const e = [];
2415
+ if (ce.length > 0)
2416
+ for (let t = 0; t < ce.length; ++t)
2417
+ e.push({ type: "string", value: ce[t] });
2418
+ else se && e.push(go);
2419
+ if (ee.length > 0)
2420
+ for (let t = 0; t < ee.length; ++t)
2421
+ e.push({ type: "number", value: ee[t] });
2422
+ else le && e.push(So);
2423
+ return Ie && e.push(To), Le ? e.push(ho) : re && e.push(Eo), e;
2424
+ }
2425
+ const go = { type: "string", value: void 0 }, So = { type: "number", value: void 0 }, To = { type: "boolean", value: void 0 }, ho = { type: "any", value: void 0 }, Eo = { type: "object", value: void 0 };
2426
+ function Me(e, t) {
2427
+ switch (e.kind) {
2428
+ case o.SyntaxKind.BooleanKeyword:
2429
+ case o.SyntaxKind.TrueKeyword:
2430
+ case o.SyntaxKind.FalseKeyword:
2431
+ Ie = !0;
2432
+ return;
2433
+ case o.SyntaxKind.NumberKeyword:
2434
+ le = !0;
2435
+ return;
2436
+ case o.SyntaxKind.StringKeyword:
2437
+ case o.SyntaxKind.TemplateLiteralType:
2438
+ se = !0;
2439
+ return;
2440
+ case o.SyntaxKind.AnyKeyword:
2441
+ Le = !0;
2442
+ return;
2443
+ case o.SyntaxKind.LiteralType:
2444
+ Me(e.literal, t);
2445
+ return;
2446
+ case o.SyntaxKind.StringLiteral:
2447
+ case o.SyntaxKind.NoSubstitutionTemplateLiteral:
2448
+ se = !0, ce.push(e.text);
2449
+ return;
2450
+ case o.SyntaxKind.NumericLiteral:
2451
+ le = !0, ee.push(e.text);
2452
+ return;
2453
+ case o.SyntaxKind.PrefixUnaryExpression:
2454
+ const n = e.operand;
2455
+ n.kind === o.SyntaxKind.NumericLiteral ? (ee.push(`-${n.text}`), le = !0) : re = !0;
2456
+ return;
2457
+ case o.SyntaxKind.VoidKeyword:
2458
+ case o.SyntaxKind.UndefinedKeyword:
2459
+ case o.SyntaxKind.NullKeyword:
2460
+ return;
2461
+ case o.SyntaxKind.UnionType:
2462
+ const i = e.types, a = Math.min(i.length, Qe);
2463
+ for (let l = 0; l < a; ++l)
2464
+ Me(i[l], t);
2465
+ i.length > Qe && (ce.length = 0, ee.length = 0);
2466
+ return;
2467
+ case o.SyntaxKind.ParenthesizedType:
2468
+ Me(e.type, t);
2469
+ return;
2470
+ case o.SyntaxKind.TypeQuery:
2471
+ case o.SyntaxKind.IndexedAccessType:
2472
+ case o.SyntaxKind.ImportType:
2473
+ case o.SyntaxKind.TypeReference:
2474
+ t === void 0 ? re = !0 : Mt(
2475
+ t.getTypeFromTypeNode(
2476
+ e
2477
+ )
2478
+ );
2479
+ return;
2480
+ case o.SyntaxKind.TypeOperator:
2481
+ const r = e;
2482
+ r.operator === o.SyntaxKind.KeyOfKeyword ? se = !0 : r.operator === o.SyntaxKind.ReadonlyKeyword ? Me(r.type, t) : re = !0;
2483
+ return;
2484
+ /*case ts.SyntaxKind.UnknownKeyword:
2485
+ case ts.SyntaxKind.FunctionType:
2486
+ case ts.SyntaxKind.ConstructorType:
2487
+ case ts.SyntaxKind.ThisKeyword:
2488
+ case ts.SyntaxKind.ConditionalType:
2489
+ case ts.SyntaxKind.ArrayType:
2490
+ case ts.SyntaxKind.TupleType:
2491
+ case ts.SyntaxKind.IntersectionType:
2492
+ case ts.SyntaxKind.ObjectKeyword:
2493
+ case ts.SyntaxKind.SymbolKeyword:*/
2494
+ default:
2495
+ re = !0;
2496
+ return;
2497
+ }
2498
+ }
2499
+ const Qe = 40;
2500
+ function Mt(e) {
2501
+ if (e.isUnion()) {
2502
+ const t = Math.min(e.types.length, Qe);
2503
+ for (let n = 0; n < t; ++n)
2504
+ $t(e.types[n]);
2505
+ e.types.length > Qe && (ce.length = 0, ee.length = 0);
2506
+ } else
2507
+ $t(e);
2508
+ }
2509
+ function $t(e) {
2510
+ const t = e.flags;
2511
+ let n = !1;
2512
+ if (t & o.TypeFlags.StringLiteral ? (n = !0, se = !0, ce.push(e.value)) : t & o.TypeFlags.StringLike && (n = !0, se = !0), t & o.TypeFlags.NumberLiteral ? (n = !0, le = !0, ee.push(e.value.toString())) : t & o.TypeFlags.NumberLike && (n = !0, le = !0), t & o.TypeFlags.BooleanLike && (n = !0, Ie = !0), t & o.TypeFlags.Any) {
2513
+ if (e.intrinsicName === "error") {
2514
+ re = !0, bt = !0;
2515
+ return;
2516
+ }
2517
+ Le = !0, n = !0;
2518
+ }
2519
+ t & Co || n || (re = !0);
2520
+ }
2521
+ const Co = o.TypeFlags.Null | o.TypeFlags.VoidLike, ua = (e) => e.map(bo).join(" | "), bo = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2522
+ function Mo(e, t, n) {
2523
+ let i;
2524
+ const a = e.initializer;
2525
+ let r;
2526
+ if (e.questionToken !== void 0)
2527
+ return;
2528
+ if (e.type !== void 0)
2529
+ o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? _e);
2530
+ else if (a !== void 0 && o.isCallExpression(a)) {
2531
+ const s = a.expression;
2532
+ if (o.isIdentifier(s)) {
2533
+ const c = s.escapedText;
2534
+ c === He ? (i = a.typeArguments?.[0] ?? _e, r = a.arguments[0]) : c === "reEmitEvent" ? i = a.typeArguments?.[0] ?? _e : c.startsWith("use") && (i = Bt(e, n));
2535
+ } else if (o.isCallExpression(s) && o.isIdentifier(s.expression)) {
2536
+ const c = s.expression.escapedText;
2537
+ if (c === "usePropertyChange") {
2538
+ const m = [];
2539
+ for (let d = 0; d < a.arguments.length; ++d) {
2540
+ const p = a.arguments[d];
2541
+ o.isStringLiteral(p) && m.push(o.factory.createLiteralTypeNode(p));
2542
+ }
2543
+ if (m.length === 0)
2544
+ return;
2545
+ i = o.factory.createTypeLiteralNode([
2546
+ o.factory.createPropertySignature(
2547
+ void 0,
2548
+ "name",
2549
+ void 0,
2550
+ m.length === 1 ? m[0] : o.factory.createUnionTypeNode(m)
2551
+ )
2552
+ ]);
2553
+ } else c.startsWith("use") && (i = Bt(e, n));
2554
+ }
2555
+ }
2556
+ if (i === void 0)
2557
+ return;
2558
+ const l = {
2559
+ name: t,
2560
+ deprecated: void 0,
2561
+ summary: void 0,
2562
+ description: void 0,
2563
+ docsTags: void 0,
2564
+ type: z(i, n),
2565
+ inheritedFrom: void 0,
2566
+ privacy: void 0,
2567
+ bubbles: void 0,
2568
+ cancelable: void 0,
2569
+ composed: void 0
2570
+ };
2571
+ return sn(l, n.jsDoc), r !== void 0 && Po(e, r, l, n), so(
2572
+ n,
2573
+ e,
2574
+ n.config.documentation.copyDocDefinitions.events,
2575
+ l,
2576
+ n.apiObject
2577
+ ), l;
2578
+ }
2579
+ const He = "createEvent";
2580
+ function Po(e, t, n, i) {
2581
+ if (t !== void 0) {
2582
+ if (!o.isObjectLiteralExpression(t)) {
2583
+ i.emitError(`Expected object literal expression as first argument of ${He}().`, {
2584
+ file: i.file,
2585
+ node: e
2586
+ });
2587
+ return;
2588
+ }
2589
+ if (t.properties.some(o.isSpreadAssignment)) {
2590
+ i.emitError(
2591
+ `Unexpected spread syntax in ${He}() argument. ${He}() arguments must be statically parsable at compile time`,
2592
+ {
2593
+ file: i.file,
2594
+ node: e
2595
+ }
2596
+ );
2597
+ return;
2598
+ }
2599
+ for (const a of t.properties)
2600
+ !o.isPropertyAssignment(a) || !o.isIdentifier(a.name) || (a.name.text === "cancelable" && !oe(a.initializer, i) && (n.cancelable = !1), a.name.text === "bubbles" && !oe(a.initializer, i) && (n.bubbles = !1), a.name.text === "composed" && !oe(a.initializer, i) && (n.composed = !1));
2601
+ }
2602
+ }
2603
+ function Bt(e, t) {
2604
+ const n = t.program?.getTypeChecker?.();
2605
+ if (n === void 0)
2606
+ return;
2607
+ const i = n.getTypeAtLocation(e);
2608
+ if (!((i.aliasSymbol ?? i.symbol)?.name === "EventEmitter"))
2609
+ return;
2610
+ const r = n.getTypeArguments(i);
2611
+ if (r.length === 0)
2612
+ return _e;
2613
+ const l = r[0];
2614
+ return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
2615
+ }
2616
+ function ui(e, t, n, i) {
2617
+ if (t === void 0) {
2618
+ i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2619
+ return;
2620
+ }
2621
+ const a = e, r = Pe(a.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : Pe(i.pairedSetter.modifiers, "property")), l = r?.arguments[0], s = l !== void 0 && o.isObjectLiteralExpression(l) ? l.properties : void 0, c = o.isPropertyDeclaration(e) || o.isPropertySignature(e), m = o.isGetAccessor(e), d = Fi(), p = i.isInLuminaMinimalExtraction || i.jsDoc === Ee;
2622
+ let f = !1, u = !1, g, C = !1, y, h, M;
2623
+ if (c && e.modifiers !== void 0)
2624
+ for (let T = 0; T < e.modifiers.length; ++T)
2625
+ switch (e.modifiers[T].kind) {
2626
+ case o.SyntaxKind.ReadonlyKeyword:
2627
+ f = !0;
2628
+ continue;
2629
+ case o.SyntaxKind.AccessorKeyword:
2630
+ u = !0;
2631
+ continue;
2632
+ case o.SyntaxKind.ProtectedKeyword:
2633
+ g = "protected";
2634
+ continue;
2635
+ case o.SyntaxKind.StaticKeyword:
2636
+ y = !0;
2637
+ continue;
2638
+ case o.SyntaxKind.AbstractKeyword:
2639
+ C = !0;
2640
+ continue;
2641
+ }
2642
+ n ||= f || m && i.pairedSetter === void 0;
2643
+ const b = i.apiObject.customElement === !0;
2644
+ let v = !1;
2645
+ if (i.moduleHasAccessorLikeClass)
2646
+ if (s !== void 0) {
2647
+ for (let T = 0; T < s.length; ++T) {
2648
+ const E = s[T];
2649
+ if (!o.isPropertyAssignment(E)) {
2650
+ v ||= o.isSpreadAssignment(E);
2651
+ continue;
2652
+ }
2653
+ const L = E.name.escapedText;
2654
+ L === "readOnly" && oe(E.initializer, i) ? n = !0 : L === "constructOnly" && oe(E.initializer, i) ? d.isConstructorOnly = !0 : L === "type" ? d.hasAutoCasting = !0 : L === "types" && xo(
2655
+ d,
2656
+ E.initializer?.kind === o.SyntaxKind.ObjectLiteralExpression ? E.initializer : void 0
2657
+ );
2658
+ }
2659
+ v && d.hasAutoCasting === void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2660
+ } else l !== void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2661
+ else if (b) {
2662
+ const T = i.apiObject;
2663
+ if (r === void 0) {
2664
+ if (p)
2665
+ return;
2666
+ {
2667
+ const E = c && !y ? Mo(e, t, i) : void 0;
2668
+ if (E !== void 0) {
2669
+ T.events ??= [], T.events.push(E);
2670
+ return;
2671
+ } else !i.config.strict && fi(e) ? (g = "protected", h = !1, i.jsDoc = {
2672
+ ...i.jsDoc,
2673
+ docsTags: [...i.jsDoc.docsTags, W.internal]
2674
+ }) : r === void 0 && i.emitError(
2675
+ "Public properties on a Lumina component must have a @property() decorator for lazy-loading compatibility.",
2676
+ {
2677
+ file: i.file,
2678
+ node: e
2679
+ }
2680
+ );
2681
+ }
2682
+ } else if (s !== void 0)
2683
+ for (let E = 0; E < s.length; ++E) {
2684
+ const L = s[E];
2685
+ if (!(!o.isPropertyAssignment(L) || !o.isIdentifier(L.name)))
2686
+ switch (L.name.escapedText) {
2687
+ case "attribute":
2688
+ o.isStringLiteral(L.initializer) ? h = L.initializer.text : h = oe(L.initializer, i);
2689
+ continue;
2690
+ case "reflect":
2691
+ oe(L.initializer, i) && (h ??= !0, M = !0);
2692
+ continue;
2693
+ case "readOnly":
2694
+ oe(L.initializer, i) && (n = !0);
2695
+ continue;
2696
+ case "type":
2697
+ case "converter":
2698
+ h ??= !0;
2699
+ continue;
2700
+ }
2701
+ }
2702
+ }
2703
+ const x = i.pairedSetter ?? (o.isSetAccessor(e) ? e : void 0), R = n ? void 0 : x;
2704
+ u ||= r !== void 0 || m || x !== void 0, d.isAccessor = u || void 0;
2705
+ const I = R?.parameters[0].type, k = a.type;
2706
+ let D = I ?? k;
2707
+ if (D === void 0) {
2708
+ const T = R?.parameters[0].initializer ?? e.initializer;
2709
+ if (c && T !== void 0 && o.isArrowFunction(T)) {
2710
+ if (n)
2711
+ return Kt(T, t, e, i);
2712
+ Ut(e, i);
2713
+ }
2714
+ D = T === void 0 ? Hn(e, i) ?? Q(
2715
+ { file: i.file, node: e },
2716
+ "Public property must have a type annotation or a default value",
2717
+ i
2718
+ ) : ht(T, n ? O.shallow : O.false, i.file, i);
2719
+ } else if (D = Et(D), c && o.isFunctionTypeNode(D)) {
2720
+ if (n)
2721
+ return Kt(D, t, e, i);
2722
+ Ut(e, i);
2723
+ }
2724
+ const S = {
2725
+ [Y]: d,
2726
+ kind: "field",
2727
+ name: t,
2728
+ static: y,
2729
+ deprecated: void 0,
2730
+ summary: void 0,
2731
+ description: void 0,
2732
+ docsTags: void 0,
2733
+ // In minimal extraction, we care only for type.values (set below)
2734
+ type: p ? { ...di } : z(D, i),
2735
+ getterType: void 0,
2736
+ default: void 0,
2737
+ readonly: n || void 0,
2738
+ inheritedFrom: void 0,
2739
+ privacy: g,
2740
+ source: void 0,
2741
+ attribute: !b || h === !1 ? void 0 : typeof h == "string" ? h : Ii(t),
2742
+ reflects: M,
2743
+ docsOnlyReadonly: void 0
2744
+ };
2745
+ an(S, i.jsDoc);
2746
+ const N = S.default;
2747
+ b && t === "messageOverrides" && (d.dtsTypeOverride = S.type.text, S.type = to);
2748
+ const B = b && r !== void 0;
2749
+ if (B) {
2750
+ !n && S.readonly === !0 && (S.docsOnlyReadonly = !0);
2751
+ const T = i.program?.getTypeChecker?.();
2752
+ S.type.values = T !== void 0 && D.pos === -1 && (D.kind === o.SyntaxKind.TypeQuery || D.kind === o.SyntaxKind.IndexedAccessType || D.kind === o.SyntaxKind.ImportType || D.kind === o.SyntaxKind.TypeReference) ? vo(T.getTypeAtLocation(x?.parameters[0] ?? e)) : yo(D, T, x?.parameters[0] ?? e), (h === void 0 && S.type.values === void 0 && !i.config.context.isLuminaMinimalExtraction || S.readonly && !S.reflects) && (S.attribute = void 0);
2753
+ const E = T !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
2754
+ e.type !== void 0 && e.initializer !== void 0 && o.isPropertyAccessExpression(e.initializer) && o.isPropertyAccessExpression(e.initializer.expression) && e.initializer.expression.expression.kind === o.SyntaxKind.ThisKeyword && o.isIdentifier(e.initializer.expression.name) && o.isIdentifier(e.initializer.name);
2755
+ if (("initializer" in e && e.initializer !== void 0 && (!S.default || !S.description) || E) && !p) {
2756
+ const L = e.initializer, A = T?.getSymbolAtLocation(L), J = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? T?.getAliasedSymbol(A) : A;
2757
+ let _, F;
2758
+ const G = J?.getDeclarations();
2759
+ if (G !== void 0)
2760
+ for (let w = 0; w < G.length; ++w) {
2761
+ const K = G[w];
2762
+ _ ??= o.isGetAccessor(K) ? K : void 0, F ??= o.isSetAccessor(K) ? K : void 0, "initializer" in K && (S.default = Be(
2763
+ K.initializer,
2764
+ S.default,
2765
+ K.getSourceFile(),
2766
+ i.isJsApi
2767
+ ));
2768
+ }
2769
+ E && _?.type !== void 0 && F !== void 0 && _.type.getText() !== F.parameters[0]?.type?.getText() && (S.getterType = {
2770
+ text: z(_.type, i).text,
2771
+ references: void 0,
2772
+ values: void 0,
2773
+ source: void 0
2774
+ });
2775
+ }
2776
+ }
2777
+ if (k !== void 0 && I !== void 0 && !p && // Quick perf check: type is definitely the same if raw type string matches.
2778
+ // More reliable check follows in processing/index.ts, where printed normalized
2779
+ // type string is compared.
2780
+ k.getText(i.file) !== I.getText(i.file) ? S.getterType = z(k, i) : S.readonly === !0 && S.name === "type" && D.kind === o.SyntaxKind.LiteralType && D.literal.kind === o.SyntaxKind.StringLiteral && (i.moduleContext.typeName = D.literal.text), (d.hasAutoCasting === !0 || d.isConstructorOnly === !0) && (S.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : S.getterType ??= {
2781
+ ...S.type,
2782
+ references: S.type.references === void 0 ? void 0 : [...S.type.references]
2783
+ }), (!(n && D.kind === o.SyntaxKind.LiteralType) || i.isJsApi) && (S.default = Be(
2784
+ e.initializer,
2785
+ S.default,
2786
+ i.file,
2787
+ i.isJsApi
2788
+ )), B) {
2789
+ const T = N === void 0 && S.default === "true";
2790
+ S.type.values?.length === 1 && S.type.values[0].type === "boolean" && (S.default === void 0 ? S.default = "false" : T && S.deprecated === void 0 && (i.loggedBooleanWarning || i.config.context.logger.error(
2791
+ `${xi}Boolean properties should default to "false". Found default value "true" in ${i.apiObject.name}.${S.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
2792
+ ), i.loggedBooleanWarning = !0));
2793
+ }
2794
+ return ao(
2795
+ i,
2796
+ e,
2797
+ i.config.documentation.copyDocDefinitions?.properties,
2798
+ S,
2799
+ i.apiObject
2800
+ ), i.produceDts && C && (d.isAbstract = !0), c && e.questionToken !== void 0 && (S.type.text.endsWith(" | undefined") || (S.type.text = // Don't need to wrap non-accessors in |undefined as we replace |undefined
2801
+ // with ? during printing
2802
+ u && (D.kind === o.SyntaxKind.FunctionType || D.kind === o.SyntaxKind.ConstructorType || D.kind === o.SyntaxKind.ConditionalType || D.kind === o.SyntaxKind.InferType) ? `(${S.type.text}) | undefined` : `${S.type.text} | undefined`), S.getterType !== void 0 && !S.getterType.text.endsWith(" | undefined") && (S.getterType.text += " | undefined")), S;
2803
+ }
2804
+ function Ut(e, t) {
2805
+ if (!t.config.strict)
2806
+ return;
2807
+ const n = t.jsDoc.docsTags;
2808
+ for (let i = 0; i < n.length; ++i) {
2809
+ const a = n[i].name;
2810
+ if (a === "param" || a === "returns") {
2811
+ t.emitError(
2812
+ "@param and @returns tags are only allowed on method-like properties. If this property is intended to be documented as a method, please add the 'readonly' modifier.",
2813
+ {
2814
+ file: t.file,
2815
+ node: e
2816
+ }
2817
+ );
2818
+ return;
2819
+ }
2820
+ }
2821
+ }
2822
+ function xo(e, t) {
2823
+ if (e.hasAutoCasting = !0, e.autoCastingRequiresType = !0, t !== void 0)
2824
+ for (let n = 0; n < t.properties.length; ++n) {
2825
+ const i = t.properties[n];
2826
+ if (o.isPropertyAssignment(i) && i.name.escapedText === "defaultKeyValue" && o.isStringLiteral(i.initializer)) {
2827
+ e.autoCastingDefaultType = i.initializer.text;
2828
+ return;
2829
+ }
2830
+ }
2831
+ }
2832
+ const fi = (e) => o.isPropertyDeclaration(e) && e.initializer !== void 0 && o.isCallExpression(e.initializer) && o.isIdentifier(e.initializer.expression) && e.initializer.expression.escapedText === "useT9n";
2833
+ function Ye(e, t) {
2834
+ const n = o.isClassDeclaration(e);
2835
+ let i = e.name.escapedText;
2836
+ const a = n ? t.componentTagName : void 0, r = !n && ri(i, t);
2837
+ let l = e.heritageClauses === void 0 || r ? void 0 : e.heritageClauses[0]?.token === o.SyntaxKind.ExtendsKeyword ? e.heritageClauses[0] : e.heritageClauses[1]?.token === o.SyntaxKind.ExtendsKeyword ? e.heritageClauses[1] : void 0;
2838
+ const s = n && t.mixinName !== void 0 && l !== void 0 && o.isExpressionWithTypeArguments(l.types[0]) && o.isIdentifier(l.types[0].expression) && l.types[0].expression.escapedText === "TypedBase";
2839
+ s && (l = void 0, i = t.mixinName);
2840
+ const c = Yt(), m = {
2841
+ [Y]: c,
2842
+ kind: n ? "class" : "interface",
2843
+ name: i,
2844
+ customElement: a === void 0 ? void 0 : !0,
2845
+ tagName: a,
2846
+ privacy: void 0,
2847
+ pascalCaseName: a === void 0 ? void 0 : (
2848
+ /**
2849
+ * We use the tag name rather than the class name to generate the
2850
+ * type name because the class name may not start with the library
2851
+ * prefix (Arcgis), where as tag name always does. This also matches
2852
+ * Stencil's behavior.
2853
+ */
2854
+ Ai(a)
2855
+ ),
2856
+ deprecated: void 0,
2857
+ summary: void 0,
2858
+ description: void 0,
2859
+ docsTags: void 0,
2860
+ demos: void 0,
2861
+ typeParameters: s ? void 0 : it(e.typeParameters, !0, t),
2862
+ superclass: void 0,
2863
+ supertypes: void 0,
2864
+ mixins: void 0,
2865
+ encapsulation: void 0,
2866
+ members: [],
2867
+ attributes: void 0,
2868
+ events: void 0,
2869
+ slots: void 0,
2870
+ cssParts: void 0,
2871
+ cssProperties: void 0,
2872
+ cssStates: void 0,
2873
+ type: void 0,
2874
+ source: void 0,
2875
+ // REFACTOR: remove this deprecated property
2876
+ importPath: a === void 0 ? void 0 : t.apiModule.path
2877
+ }, d = m, p = d, f = d;
2878
+ Zt(m, t.jsDoc);
2879
+ const u = r ? (
2880
+ // Members will be added during post-processing
2881
+ !1
2882
+ ) : yi(d, e.members, i, t);
2883
+ s && (t.mixinMixins !== void 0 && (p.mixins = t.mixinMixins), u && t.emitError("Mixin class is not expected to have a @public constructor", { file: t.file, node: e })), l === void 0 ? a !== void 0 && p.superclass === void 0 && t.emitError(
2884
+ "Lumina web component must extend LitElement class. Found a class that does not extend any class.",
2885
+ {
2886
+ file: t.file,
2887
+ node: e
2888
+ }
2889
+ ) : Ro(l, n, m, e, t), a !== void 0 && io(p, t), d.members.length === 0 && (a === void 0 && (d.members = void 0), r && (t.moduleContext.constructorPropertiesInterface = f));
2890
+ const g = t.exportDefaultName === i, C = et(e), y = g || C === 2;
2891
+ return (y || a !== void 0) && Ct(d, y, t), n ? (a === void 0 ? po(
2892
+ t,
2893
+ e,
2894
+ t.config.documentation.copyDocDefinitions.classes,
2895
+ p,
2896
+ t.apiModule
2897
+ ) : mo(
2898
+ t,
2899
+ e,
2900
+ t.config.documentation.copyDocDefinitions.customElements,
2901
+ p,
2902
+ t.apiModule
2903
+ ), t.moduleHasClass && t.config.strict && t.emitError(
2904
+ "A module may only export at most one public class/mixin/custom element. Documentation: https://webgis.esri.com/webgis/core/core/documenting-api#class",
2905
+ { file: t.file, node: e }
2906
+ ), t.moduleHasClass = !0) : pi(
2907
+ t,
2908
+ e,
2909
+ t.config.documentation.copyDocDefinitions.interfaces,
2910
+ f,
2911
+ t.apiModule
2912
+ ), t.produceDts && (c.isDefaultExported = y || void 0, n && (!s && (!g && C === 0) && t.config.strict && t.emitError("Expected @public class to be exported using named or default export.", {
2913
+ file: t.file,
2914
+ node: e
2915
+ }), ai(e.modifiers, o.SyntaxKind.AbstractKeyword) ? c.hasExplicitAbstract = !0 : !u && (t.config.strict || a !== void 0) && (c.hasExplicitAbstract = !1))), t.objectLikeTypeParameters = void 0, d;
2916
+ }
2917
+ function Ro(e, t, n, i, a) {
2918
+ for (let r = 0; r < e.types.length; ++r) {
2919
+ const l = e.types[r];
2920
+ if (t) {
2921
+ let s = l.typeArguments, c = l.expression;
2922
+ if (o.isCallExpression(c)) {
2923
+ do {
2924
+ const p = c.expression;
2925
+ if (o.isPropertyAccessExpression(p) && o.isIdentifier(p.expression) && o.isIdentifier(p.name) && p.expression.escapedText === "Collection" && p.name.escapedText === "ofType") {
2926
+ const f = c.arguments[0];
2927
+ if (!o.isIdentifier(f)) {
2928
+ a.emitError("Expected the argument to Collection.ofType to be an identifier.", {
2929
+ file: a.file,
2930
+ node: f
2931
+ });
2932
+ break;
2933
+ }
2934
+ s = [o.factory.createTypeReferenceNode(f)], c = p.expression;
2935
+ } else {
2936
+ n.mixins ??= [];
2937
+ const f = c.expression;
2938
+ n.mixins.unshift(
2939
+ Re(f, c.typeArguments, a)
2940
+ ), c = c.arguments[0];
2941
+ }
2942
+ } while (o.isCallExpression(c));
2943
+ if (o.isClassExpression(c)) {
2944
+ (c.members.length !== 0 || c.heritageClauses !== void 0) && a.emitError(
2945
+ "The only supported inline class expression is an empty class. Extract into a separate named class",
2946
+ { file: a.file, node: c }
2947
+ );
2948
+ break;
2949
+ } else o.isExpressionWithTypeArguments(c) && (s = c.typeArguments, c = c.expression);
2950
+ }
2951
+ const m = Re(c, s, a);
2952
+ if (m.name === "LitElement") {
2953
+ m.name = "PublicLitElement", m.module = "PublicLitElement", m.package = "@arcgis/lumina";
2954
+ const p = a.moduleContext.importsMap.LitElement;
2955
+ p === void 0 ? a.emitError("Expected LitElement import to be defined", { file: a.file, node: i }) : (p.specifier = "@arcgis/lumina/PublicLitElement", p.actualName = "PublicLitElement");
2956
+ }
2957
+ const d = te(n);
2958
+ d.superClassText = m.printableText, m.printableText = void 0, n.superclass = m;
2959
+ break;
2960
+ } else {
2961
+ const s = Zn(l);
2962
+ let c = s, m;
2963
+ if (o.isExpressionWithTypeArguments(s))
2964
+ c = s.expression, m = s.typeArguments;
2965
+ else if (o.isTypeReferenceNode(s) && (c = s.typeName, m = s.typeArguments, c.escapedText === "Record" && m?.length === 2 && m[0].kind === o.SyntaxKind.NeverKeyword && m[1].kind === o.SyntaxKind.NeverKeyword))
2966
+ continue;
2967
+ const d = Re(c, m, a), p = te(n);
2968
+ p.superTypesText ??= [], p.superTypesText.push(d.printableText), d.printableText = void 0, n.supertypes ??= [], n.supertypes.push(d);
2969
+ }
2970
+ }
2971
+ }
2972
+ function yi(e, t, n, i) {
2973
+ i.apiObject = e;
2974
+ const a = e.customElement === !0, r = e.members, l = t.length;
2975
+ let s, c = t[0], m, d = xe(c?.name), p = !1;
2976
+ for (let f = 0; f < l; ++f) {
2977
+ if (s = c, c = t[f + 1], m = d, d = xe(c?.name), i.pairedSetter !== void 0) {
2978
+ i.pairedSetter = void 0;
2979
+ continue;
2980
+ }
2981
+ if (m === void 0 && s.name?.kind === o.SyntaxKind.PrivateIdentifier)
2982
+ continue;
2983
+ c !== void 0 && m === d && (o.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : o.isSetAccessor(c) && (i.pairedSetter = c));
2984
+ let u = j(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : j(i.pairedSetter, !0, i));
2985
+ if (u === void 0 && !i.config.strict && (a ? m !== void 0 && zt(s, i.pairedSetter, !0) : !ai(s.modifiers, o.SyntaxKind.PrivateKeyword))) {
2986
+ const C = j(s, !1, i) ?? (i.pairedSetter === void 0 ? void 0 : j(i.pairedSetter, !1, i)) ?? Ue;
2987
+ C.docsTags.includes(W.private) ? a && i.config.context.includeLuminaPrivateComponents ? u = Ee : u = void 0 : u = C;
2988
+ } else u === void 0 && a && i.config.context.includeLuminaPrivateComponents && zt(s, i.pairedSetter, !1) && (u = Ee);
2989
+ if (u === void 0) {
2990
+ a && o.isPropertyDeclaration(s) && o.isIdentifier(s.name) && s.name.escapedText === "shadowRootOptions" && s.initializer !== void 0 && o.isIdentifier(s.initializer) && s.initializer.escapedText === "noShadowRoot" && (i.apiObject.encapsulation = "none");
2991
+ continue;
2992
+ }
2993
+ i.jsDoc = u;
2994
+ let g;
2995
+ o.isPropertyDeclaration(s) || o.isPropertyAssignment(s) || o.isGetAccessorDeclaration(s) || o.isSetAccessorDeclaration(s) || o.isPropertySignature(s) ? g = ui(s, m, !1, i) : o.isMethodDeclaration(s) || o.isMethodSignature(s) ? g = rt(s, m, void 0, i) : o.isConstructorDeclaration(s) || o.isConstructSignatureDeclaration(s) ? (p = !0, g = rt(s, n, void 0, i)) : o.isCallSignatureDeclaration(s) ? g = rt(s, n, void 0, i) : o.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (st.members.splice(
2996
+ 0,
2997
+ st.members.length,
2998
+ s
2999
+ ), vi(e, st, i), te(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${o.SyntaxKind[s.kind]}`, {
3000
+ file: i.file,
3001
+ node: s
3002
+ }), g !== void 0 && r.push(g);
3003
+ }
3004
+ return i.apiObject = void 0, p;
3005
+ }
3006
+ const st = o.factory.createTypeLiteralNode(void 0);
3007
+ function zt(e, t, n) {
3008
+ if (e.kind === o.SyntaxKind.PropertyDeclaration || e.kind === o.SyntaxKind.GetAccessor || e.kind === o.SyntaxKind.SetAccessor) {
3009
+ const i = e;
3010
+ if ((Pe(i.modifiers, "property") ?? (t === void 0 ? void 0 : Pe(t.modifiers, "property"))) !== void 0)
3011
+ return !0;
3012
+ if (!n)
3013
+ return !1;
3014
+ if (fi(e))
3015
+ return !0;
3016
+ if (i.modifiers !== void 0)
3017
+ for (let r = 0; r < (i.modifiers?.length ?? 0); ++r) {
3018
+ const l = i.modifiers[r];
3019
+ if (l.kind === o.SyntaxKind.PrivateKeyword || l.kind === o.SyntaxKind.ProtectedKeyword || l.kind === o.SyntaxKind.StaticKeyword)
3020
+ return !1;
3021
+ }
3022
+ return e.kind === o.SyntaxKind.PropertyDeclaration && i.initializer !== void 0 && o.isCallExpression(i.initializer) ? o.isIdentifier(i.initializer.expression) && (i.initializer.expression.escapedText === "createEvent" || i.initializer.expression.escapedText === "useCloseEvent" || i.initializer.expression.escapedText === "useArcgisLoadError" || i.initializer.expression.escapedText === "useArcgisViewReadyError" || i.initializer.expression.escapedText === "reEmitEvent") || o.isCallExpression(i.initializer.expression) && o.isIdentifier(i.initializer.expression.expression) && i.initializer.expression.expression.escapedText === "usePropertyChange" : !1;
3023
+ } else return e.kind === o.SyntaxKind.MethodDeclaration ? Pe(e.modifiers, "method") !== void 0 : !1;
3024
+ }
3025
+ function vi(e, t, n) {
3026
+ const i = z(t, n);
3027
+ if (e.type === void 0)
3028
+ e.type = i;
3029
+ else {
3030
+ const a = `${e.type.text} &
3031
+ `, r = a.length;
3032
+ e.type = {
3033
+ text: `${a}${i.text}`,
3034
+ references: i.references === void 0 ? e.type.references : e.type.references === void 0 ? Nt(i.references, r) : [...e.type.references, ...Nt(i.references, r)],
3035
+ values: void 0,
3036
+ source: void 0
3037
+ };
3038
+ }
3039
+ }
3040
+ function Do(e, t) {
3041
+ const n = e.type, i = e.name.escapedText, a = ri(i, t), r = Yt(), l = {
3042
+ [Y]: r,
3043
+ kind: "interface",
3044
+ name: i,
3045
+ customElement: void 0,
3046
+ tagName: void 0,
3047
+ privacy: void 0,
3048
+ pascalCaseName: void 0,
3049
+ deprecated: void 0,
3050
+ summary: void 0,
3051
+ description: void 0,
3052
+ docsTags: void 0,
3053
+ demos: void 0,
3054
+ typeParameters: it(e.typeParameters, !0, t),
3055
+ superclass: void 0,
3056
+ supertypes: void 0,
3057
+ mixins: void 0,
3058
+ encapsulation: void 0,
3059
+ members: [],
3060
+ attributes: void 0,
3061
+ events: void 0,
3062
+ slots: void 0,
3063
+ cssParts: void 0,
3064
+ cssProperties: void 0,
3065
+ cssStates: void 0,
3066
+ type: void 0,
3067
+ source: void 0,
3068
+ importPath: void 0
3069
+ }, s = l;
3070
+ Zt(l, t.jsDoc);
3071
+ let c;
3072
+ if (a)
3073
+ t.moduleContext.constructorPropertiesInterface = s;
3074
+ else {
3075
+ r.emitAsTypeAlias = !0;
3076
+ const m = o.isIntersectionTypeNode(n) ? n.types : [n];
3077
+ for (let d = 0; d < m.length; ++d) {
3078
+ const p = Et(m[d]);
3079
+ if (o.isTypeLiteralNode(p))
3080
+ yi(s, p.members, i, t);
3081
+ else if (o.isTypeReferenceNode(p)) {
3082
+ s.supertypes ??= [];
3083
+ const f = Re(p.typeName, p.typeArguments, t);
3084
+ c ??= [], c.push(f.printableText), f.printableText = void 0, s.supertypes.push(f);
3085
+ } else if (o.isFunctionTypeNode(p) || o.isConstructorTypeNode(p)) {
3086
+ if (t.jsDoc = Ue, s.docsTags !== void 0) {
3087
+ t.jsDoc = { ...Ue, docsTags: [] };
3088
+ for (let f = 0; f < s.docsTags.length; ++f) {
3089
+ const u = s.docsTags[f];
3090
+ (u.name === "param" || u.name === "returns") && (t.jsDoc.docsTags.push(u), s.docsTags.splice(f, 1), f -= 1);
3091
+ }
3092
+ s.docsTags.length === 0 && (s.docsTags = void 0);
3093
+ }
3094
+ s.members.push(fo(p, i, void 0, t));
3095
+ } else
3096
+ vi(s, p, t);
3097
+ }
3098
+ }
3099
+ return t.objectLikeTypeParameters = void 0, pi(
3100
+ t,
3101
+ e,
3102
+ t.config.documentation.copyDocDefinitions.interfaces,
3103
+ s,
3104
+ t.apiModule
3105
+ ), t.produceDts && c !== void 0 && (r.superTypesText = c), s.members.length === 0 && (s.members = void 0), s;
3106
+ }
3107
+ function Lo(e, t, n) {
3108
+ const i = e.initializer, a = i.body;
3109
+ let r, l;
3110
+ for (let d = 0; d < a.statements.length; ++d) {
3111
+ const p = a.statements[d];
3112
+ if (o.isVariableStatement(p)) {
3113
+ const f = p.declarationList.declarations[0];
3114
+ if (!o.isIdentifier(f.name) || f.name?.escapedText !== "TypedBase")
3115
+ continue;
3116
+ let u = f.initializer.expression.expression;
3117
+ for (; o.isCallExpression(u); ) {
3118
+ const g = u.expression;
3119
+ r ??= [], r.push(Re(g, u.typeArguments, n)), u = u.arguments[0];
3120
+ }
3121
+ } else o.isClassDeclaration(p) && (l = p);
3122
+ }
3123
+ if (l === void 0) {
3124
+ n.emitError(`Failed to find class declaration inside the mixin ${t}`, {
3125
+ file: n.file,
3126
+ node: e
3127
+ });
3128
+ return;
3129
+ }
3130
+ it(
3131
+ // Skip the TBase type parameter - non-public implementation detail
3132
+ i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3133
+ !0,
3134
+ n
3135
+ ) !== void 0 && n.emitError(
3136
+ "Type parameters are not yet supported in public mixins (the first TBase type parameter is a special case). See workaround in https://webgis.esri.com/webgis/core/core/mixins#limitations-of-mixins",
3137
+ {
3138
+ file: n.file,
3139
+ node: e
3140
+ }
3141
+ ), n.mixinName = t, n.mixinMixins = r;
3142
+ const m = Ye(l, n);
3143
+ return m.kind = "mixin", m;
3144
+ }
3145
+ function Io(e, t, n) {
3146
+ const i = n.moduleHasClass;
3147
+ n.moduleHasClass = !1;
3148
+ const a = o.factory.createClassDeclaration(
3149
+ [o.factory.createModifier(o.SyntaxKind.ExportKeyword)],
3150
+ t,
3151
+ void 0,
3152
+ [
3153
+ o.factory.createHeritageClause(o.SyntaxKind.ExtendsKeyword, [
3154
+ o.factory.createExpressionWithTypeArguments(e, void 0)
3155
+ ])
3156
+ ],
3157
+ []
3158
+ ), r = Ye(a, n), l = r, s = te(l);
3159
+ return l.kind = "interface", l.supertypes = r.mixins, r.mixins = void 0, r.superclass !== void 0 && (r.superclass.printableText = s.superClassText, l.supertypes ??= [], l.supertypes.unshift(r.superclass), s.superClassText = void 0, r.superclass = void 0), n.moduleHasClass = i, s.isMixinBaseClass = !0, l;
3160
+ }
3161
+ function Ao(e, t) {
3162
+ const n = e.declarationList.declarations;
3163
+ n.length !== 1 && t.emitError("Public variable statements must have only a single variable declarations. Found multiple.", {
3164
+ file: t.file,
3165
+ node: e
3166
+ });
3167
+ const i = n[0], a = i.name;
3168
+ if (!o.isIdentifier(a)) {
3169
+ t.config.strict && t.emitError("Expected public variable names to be an identifier.", {
3170
+ file: t.file,
3171
+ node: e
3172
+ });
3173
+ return;
3174
+ }
3175
+ const r = a.escapedText, l = t.exportDefaultName === r;
3176
+ if (et(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3177
+ file: t.file,
3178
+ node: e
3179
+ }), t.mixinName !== void 0 && i.initializer !== void 0 && o.isCallExpression(i.initializer) && o.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
3180
+ return Io(i.initializer, r, t);
3181
+ let c = i.type;
3182
+ const m = (e.declarationList.flags & o.NodeFlags.Const) !== 0;
3183
+ if (c === void 0) {
3184
+ const u = i.initializer;
3185
+ if (u !== void 0 && o.isArrowFunction(u) && m)
3186
+ return u.typeParameters?.at(0)?.name?.escapedText === "TBase" ? Lo(i, r, t) : Wt(u, r, e, t);
3187
+ u === void 0 ? c = Q(
3188
+ { file: t.file, node: i },
3189
+ "Public variable must have a type annotation or a default value",
3190
+ t
3191
+ ) : c = ht(u, m ? O.shallow : O.false, t.file, t);
3192
+ } else if (c = Et(c), o.isFunctionTypeNode(c))
3193
+ return Wt(c, r, e, t);
3194
+ const d = wi(), p = {
3195
+ [Y]: d,
3196
+ kind: "variable",
3197
+ name: r,
3198
+ deprecated: void 0,
3199
+ summary: void 0,
3200
+ description: void 0,
3201
+ docsTags: void 0,
3202
+ source: void 0,
3203
+ type: z(c, t),
3204
+ default: void 0
3205
+ };
3206
+ return rn(p, t.jsDoc), (!(m && c.kind === o.SyntaxKind.LiteralType) || t.isJsApi) && (p.default = Be(i.initializer, p.default, t.file, t.isJsApi)), co(
3207
+ t,
3208
+ e,
3209
+ t.config.documentation.copyDocDefinitions.variables,
3210
+ p,
3211
+ t.apiModule
3212
+ ), l && (Ct(p, !0, t), t.produceDts && (d.isDefaultExported = !0)), p;
3213
+ }
3214
+ function gi(e, t, n) {
3215
+ const i = n.statementJsDocs[t];
3216
+ if (i !== void 0) {
3217
+ if (n.jsDoc = i, o.isClassDeclaration(e))
3218
+ return Ye(e, n);
3219
+ if (o.isFunctionDeclaration(e))
3220
+ return uo(e, e.name.escapedText, void 0, n);
3221
+ if (o.isInterfaceDeclaration(e))
3222
+ return Ye(e, n);
3223
+ if (o.isTypeAliasDeclaration(e))
3224
+ return Do(e, n);
3225
+ if (o.isVariableStatement(e))
3226
+ return Ao(e, n);
3227
+ }
3228
+ }
3229
+ function ko(e, t) {
3230
+ const n = t.apiModule.declarations, i = e.statements;
3231
+ for (let a = 0; a < i.length; ++a) {
3232
+ const r = i[a], l = gi(r, a, t);
3233
+ l !== void 0 && n.push(l);
3234
+ }
3235
+ }
3236
+ function Fo(e, t) {
3237
+ const n = e.fileName.slice(t.config.context.cwd.length), i = t.watchFiles?.get(n);
3238
+ if (i !== void 0) {
3239
+ if (i.module !== void 0)
3240
+ return i.module;
3241
+ if (i.isEmptyModule)
3242
+ return;
3243
+ }
3244
+ const a = n.slice(t.config.context.basePath.length), r = Z(a), l = Ge(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3245
+ t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3246
+ const c = /* @__PURE__ */ Object.create(null), m = t.localDeclarations;
3247
+ m.clear();
3248
+ const d = t.localPrivateDeclarations;
3249
+ d?.clear(), t.exportDefaultName = void 0;
3250
+ let p;
3251
+ const f = {
3252
+ class: void 0,
3253
+ default: void 0,
3254
+ named: /* @__PURE__ */ Object.create(null)
3255
+ }, u = Qt(e, s, c, f);
3256
+ t.moduleContext = u;
3257
+ const g = t.implicitPublicModules?.[l], C = t.isJsApi && l.startsWith("applications/");
3258
+ t.statementJsDocs.length = 0;
3259
+ for (let b = 0; b < e.statements.length; ++b) {
3260
+ const v = e.statements[b], x = v.kind === o.SyntaxKind.ClassDeclaration || v.kind === o.SyntaxKind.FunctionDeclaration || v.kind === o.SyntaxKind.InterfaceDeclaration || v.kind === o.SyntaxKind.TypeAliasDeclaration || v.kind === o.SyntaxKind.VariableStatement;
3261
+ let R;
3262
+ if (
3263
+ // Only look at web components in Lumina's dev server
3264
+ t.isInLuminaMinimalExtraction
3265
+ )
3266
+ R = v.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && v.heritageClauses !== void 0 && v.modifiers !== void 0 ? Ue : void 0;
3267
+ else if (x)
3268
+ if (R = j(v, !0, t), R === void 0 && !t.config.strict) {
3269
+ const I = j(v, !1, t) ?? { description: void 0, docsTags: [] }, k = v.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && v.heritageClauses !== void 0 && v.modifiers !== void 0;
3270
+ I.docsTags.includes(W.private) ? k && t.config.context.includeLuminaPrivateComponents ? (R = Ee, t.isInLuminaMinimalExtraction = !0) : R = void 0 : (k || g !== void 0 && Ln(v, g)) && (R = I);
3271
+ } else R === void 0 && t.componentTagName !== void 0 && t.config.context.includeLuminaPrivateComponents && v.kind === o.SyntaxKind.ClassDeclaration && (R = Ee, t.isInLuminaMinimalExtraction = !0);
3272
+ if (t.statementJsDocs[b] = R, x || b === 0 && (p = j(e, !0, t)), R !== void 0)
3273
+ C && R.docsTags.push(W.internal), m.add(
3274
+ (v.name ?? v.declarationList?.declarations[0].name).escapedText
3275
+ ), v.kind === o.SyntaxKind.ClassDeclaration ? t.apiClassLikeName = v.name?.escapedText : v.kind === o.SyntaxKind.VariableStatement && v.declarationList.declarations[0].initializer?.kind === o.SyntaxKind.ArrowFunction && (t.apiClassLikeName = v.declarationList.declarations[0].name.escapedText);
3276
+ else if (o.isImportDeclaration(v)) {
3277
+ const I = v.importClause;
3278
+ if (I === void 0)
3279
+ continue;
3280
+ const k = v.moduleSpecifier.text, D = !k.startsWith("."), S = D ? k : Z(k), N = D ? void 0 : Ge(pt(r, S), t), B = N === void 0 ? void 0 : t.config.types.typeReplacements[N];
3281
+ if (En(v, t), I.name !== void 0) {
3282
+ const V = I.name.escapedText, T = B?.[V], E = T?.[1], L = T === void 0 ? !D && k.endsWith(".json") ? k : S : ye(s, T[0]), A = T?.[0] ?? N;
3283
+ c[V] = {
3284
+ type: T?.[2] ?? "default",
3285
+ modulePath: A,
3286
+ specifier: L,
3287
+ replacementName: E,
3288
+ actualName: void 0,
3289
+ wasUsed: !1
3290
+ };
3291
+ }
3292
+ const $ = I.namedBindings;
3293
+ if ($ === void 0)
3294
+ continue;
3295
+ if ($.kind === o.SyntaxKind.NamespaceImport) {
3296
+ const V = $.name.escapedText, T = B?.[V], E = T?.[1], L = T === void 0 ? S : ye(s, T[0]), A = T?.[0] ?? N;
3297
+ c[V] = {
3298
+ type: "*",
3299
+ modulePath: A,
3300
+ specifier: L,
3301
+ replacementName: E,
3302
+ actualName: void 0,
3303
+ wasUsed: !1
3304
+ };
3305
+ } else
3306
+ for (let V = 0; V < $.elements.length; ++V) {
3307
+ const T = $.elements[V], E = T.propertyName === void 0 ? void 0 : T.propertyName.escapedText ?? T.propertyName.text, L = T.name.escapedText, A = B?.[E ?? L], J = A?.[1], _ = A === void 0 ? S : ye(s, A[0]), F = A?.[0] ?? N;
3308
+ c[L] = {
3309
+ type: A?.[2] ?? "named",
3310
+ modulePath: F,
3311
+ specifier: _,
3312
+ replacementName: J,
3313
+ actualName: A === void 0 ? E : void 0,
3314
+ wasUsed: !1
3315
+ };
3316
+ }
3317
+ } else if (o.isExportAssignment(v)) {
3318
+ if (o.isIdentifier(v.expression)) {
3319
+ const I = v.expression.escapedText;
3320
+ t.exportDefaultName = I, !m.has(I) && d?.has(I) === !0 && g?.pendingNames?.has("default") === !0 && d.set(I, Math.abs(d.get(I)));
3321
+ }
3322
+ } else if (o.isExportDeclaration(v) && v.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3323
+ if (j(v, !0, t) !== void 0) {
3324
+ const k = v.moduleSpecifier.text, D = !k.startsWith("."), S = D ? k : pt(r, Z(k)), N = D ? void 0 : Ge(S, t), B = D ? k : ye(s, N);
3325
+ u.reExports ??= [];
3326
+ const $ = [];
3327
+ if (v.exportClause?.kind === o.SyntaxKind.NamedExports) {
3328
+ const V = v.exportClause.elements;
3329
+ for (let T = 0; T < V.length; ++T) {
3330
+ const E = V[T], L = xe(E.name), A = E.propertyName === void 0 ? void 0 : xe(E.propertyName), J = A ?? L, _ = A === void 0 ? void 0 : L;
3331
+ $.push({
3332
+ exportName: J,
3333
+ aliasName: _,
3334
+ isTypeOnly: v.isTypeOnly
3335
+ }), !t.config.strict && N !== void 0 && ze(N, S, J, t);
3336
+ }
3337
+ } else
3338
+ $.push({
3339
+ exportName: "*",
3340
+ aliasName: v.exportClause === void 0 ? void 0 : xe(v.exportClause.name),
3341
+ isTypeOnly: !1
3342
+ }), !t.config.strict && N !== void 0 && ze(N, S, "*", t);
3343
+ u.reExports.push({
3344
+ modulePath: N,
3345
+ specifier: B,
3346
+ isTypeOnly: v.isTypeOnly,
3347
+ specifiers: $
3348
+ });
3349
+ }
3350
+ } else o.isModuleDeclaration(v) ? j(v, !0, t) !== void 0 && (u.namespaces ??= [], u.namespaces.push(v.getFullText(e))) : d !== void 0 && x && d.set(
3351
+ (v.name ?? v.declarationList?.declarations[0].name).escapedText,
3352
+ -b
3353
+ );
3354
+ }
3355
+ const y = t.config.types.typeReplacements[l];
3356
+ if (y !== void 0) {
3357
+ const b = Object.keys(y);
3358
+ for (let v = 0; v < b.length; ++v) {
3359
+ const x = b[v], R = y[x];
3360
+ c[x] = {
3361
+ type: R[2],
3362
+ modulePath: R[0],
3363
+ specifier: ye(s, R[0]),
3364
+ replacementName: R[1],
3365
+ actualName: void 0,
3366
+ wasUsed: !1
3367
+ };
3368
+ }
3369
+ }
3370
+ t.moduleHasAccessorLikeClass = c.subclass?.specifier.includes("accessorSupport") ?? !1;
3371
+ const h = {
3372
+ [Y]: u,
3373
+ kind: "javascript-module",
3374
+ path: l,
3375
+ sourcePath: n,
3376
+ deprecated: void 0,
3377
+ description: void 0,
3378
+ docsTags: void 0,
3379
+ summary: void 0,
3380
+ declarations: [],
3381
+ exports: []
3382
+ };
3383
+ if (t.apiModule = h, ko(e, t), d !== void 0) {
3384
+ let b = !1;
3385
+ do {
3386
+ b = !1;
3387
+ for (const [v, x] of d)
3388
+ if (x > 0 || Object.is(x, 0)) {
3389
+ d.delete(v), m.add(v), b = !0;
3390
+ const R = e.statements[x], I = j(R, !1, t) ?? { description: void 0, docsTags: [] };
3391
+ if (I.docsTags.includes(W.private))
3392
+ t.emitError(
3393
+ `Declaration "${v}" is marked @private but is used by public API in the same file. Either refactor our its reference or remove the @private tag.`,
3394
+ {
3395
+ file: e,
3396
+ node: R
3397
+ }
3398
+ );
3399
+ else {
3400
+ t.statementJsDocs[x] = I;
3401
+ const D = gi(R, x, t);
3402
+ D !== void 0 && h.declarations.push(D);
3403
+ }
3404
+ }
3405
+ } while (b);
3406
+ }
3407
+ if (h.declarations.length === 0 && u.reExports === void 0 && u.namespaces === void 0) {
3408
+ i !== void 0 && (i.isEmptyModule = !0);
3409
+ return;
3410
+ }
3411
+ t.moduleMap.set(l, h), t.watchFiles !== void 0 && (i === void 0 ? t.watchFiles.set(h.sourcePath, {
3412
+ file: u.file,
3413
+ module: h,
3414
+ previousModule: void 0,
3415
+ isEmptyModule: !1,
3416
+ dependencies: /* @__PURE__ */ new Set(),
3417
+ dependents: /* @__PURE__ */ new Map(),
3418
+ docLinks: [],
3419
+ hasDirtyLinks: !1,
3420
+ wasRemoved: !1
3421
+ }) : i.module = h);
3422
+ const M = t.componentTagName === void 0 ? h.exports[0]?.declaration.name : void 0;
3423
+ h.exports.length === 0 && (h.exports = void 0);
3424
+ for (let b = 0; b < h.declarations.length; ++b) {
3425
+ const v = h.declarations[b];
3426
+ (v.kind === "class" || v.kind === "mixin") && (f.class = v), M === v.name && (f.default = v), f.named[v.name] = v;
3427
+ }
3428
+ return p !== void 0 && (t.moduleHasClass ? t.emitError(
3429
+ "A module that exports a class must have JSDoc attached to the class, rather than module-top JSDoc. See https://webgis.esri.com/webgis/core/core/documenting-api#module-documentation",
3430
+ {
3431
+ file: e,
3432
+ start: 0,
3433
+ length: e.statements[0]?.getStart(e) ?? 1,
3434
+ node: void 0
3435
+ }
3436
+ ) : (C && p.docsTags.push(W.internal), nn(h, p))), h;
3437
+ }
3438
+ async function fa(e) {
3439
+ const t = [], n = e.basePath, i = e.config.context.excludedDirectories, a = `${e.basePath}components/`, r = [], l = !e.config.strict || e.config.context.includeLuminaPrivateComponents;
3440
+ e.componentPathMapping = /* @__PURE__ */ Object.create(null);
3441
+ const s = e.isComponentProject ? (p) => $i(p, a) : () => !1, c = e.isComponentProject ? m : d;
3442
+ if (e.program === void 0)
3443
+ await Ei(n, i, async (p) => {
3444
+ if (Si(p))
3445
+ return;
3446
+ const f = await Dt(p);
3447
+ if (p.includes(".stories.")) {
3448
+ const C = f.toString("utf8");
3449
+ wt(C, p, e);
3450
+ return;
3451
+ }
3452
+ const u = s(p);
3453
+ if (u && l || // Exclude files before paying .toString() cost
3454
+ f.includes(Go) && (f.includes(Vo) || f.includes(_o))) {
3455
+ const C = f.toString("utf8"), y = Jt(p, C);
3456
+ c(y, u);
3457
+ }
3458
+ });
3459
+ else {
3460
+ const p = e.program.getSourceFiles();
3461
+ for (let f = 0; f < p.length; ++f) {
3462
+ const u = p[f], g = u.fileName;
3463
+ if (!wo(g, e))
3464
+ continue;
3465
+ if (g.includes(".stories.")) {
3466
+ wt(u.text, g, e);
3467
+ continue;
3468
+ }
3469
+ const C = s(g);
3470
+ (C && l || u.text.includes(Ti) || u.text.includes(hi)) && c(u, C);
3471
+ }
3472
+ }
3473
+ function m(p, f) {
3474
+ r.push(p);
3475
+ const u = f ? Bi(p.text)?.[0] : void 0;
3476
+ if (u !== void 0) {
3477
+ const g = p.fileName.slice(e.basePath.length);
3478
+ Ui(u, e, g);
3479
+ }
3480
+ }
3481
+ function d(p) {
3482
+ e.file = p;
3483
+ const f = Fo(p, e);
3484
+ f !== void 0 && t.push(f);
3485
+ }
3486
+ for (let p = 0; p < r.length; ++p)
3487
+ d(r[p]);
3488
+ if (e.implicitPublicModules !== void 0) {
3489
+ let p = !1;
3490
+ do {
3491
+ p = !1;
3492
+ for (const f in e.implicitPublicModules) {
3493
+ const u = e.implicitPublicModules[f], g = u.actualModulePath ?? f, C = e.moduleMap.get(g);
3494
+ if (u.extractedNames === void 0)
3495
+ continue;
3496
+ if (u.pendingNames !== void 0) {
3497
+ const b = e.watchFiles?.get(e.config.context.basePath + u.sourcePath);
3498
+ let x = !(b !== void 0 && b.module === void 0 && !b.isEmptyModule);
3499
+ const R = C === void 0 ? void 0 : ae(C).index;
3500
+ for (const I of u.pendingNames)
3501
+ if (!u.extractedNames.has(I) && (R === void 0 || (I === "default" ? R.default === void 0 : R.named[I] === void 0))) {
3502
+ x = !1;
3503
+ break;
3504
+ }
3505
+ if (x)
3506
+ continue;
3507
+ }
3508
+ if (C !== void 0) {
3509
+ t.splice(t.indexOf(C), 1);
3510
+ const b = e.watchFiles?.get(C.sourcePath);
3511
+ b !== void 0 && (b.module = void 0);
3512
+ }
3513
+ p = !0, u.extractedNames = u.pendingNames === void 0 ? void 0 : new Set(u.pendingNames);
3514
+ let y = e.basePath + u.sourcePath, h = !1, M = e.program?.getSourceFile(y) ?? e.program?.getSourceFile(`${y}.ts`) ?? e.program?.getSourceFile(`${y}.tsx`) ?? e.program?.getSourceFile(`${y}.d.ts`);
3515
+ if (M === void 0 && (M = e.program?.getSourceFile(`${y}/index.ts`) ?? e.program?.getSourceFile(`${y}/index.tsx`) ?? e.program?.getSourceFile(`${y}/index.d.ts`), M !== void 0 && (h = !0)), e.program === void 0 && (Z(y) === y && (y = ue(`${y}.ts`) ? `${y}.ts` : ue(`${y}.tsx`) ? `${y}.tsx` : ue(`${y}.d.ts`) ? `${y}.d.ts` : void 0, y === void 0 && (y = ue(`${y}/index.ts`) ? `${y}/index.ts` : ue(`${y}/index.tsx`) ? `${y}/index.tsx` : ue(`${y}/index.d.ts`) ? `${y}/index.d.ts` : void 0, y !== void 0 && (h = !0))), y !== void 0 && (M = Jt(y, await Dt(y, "utf8")))), M !== void 0) {
3516
+ const b = M.fileName.slice(e.basePath.length);
3517
+ b !== u.sourcePath && (u.sourcePath = b), h && (u.actualModulePath = `${g}/index`), d(M);
3518
+ }
3519
+ }
3520
+ } while (p);
3521
+ }
3522
+ return t;
3523
+ }
3524
+ const wo = (e, t) => No(e) && Oo(e, t), No = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !Si(e), Si = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), Oo = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
3525
+ fn(e.slice(t.basePath.length))
3526
+ ) && !e.includes("node_modules"), jt = 32, Go = 64, Ti = "@public", Vo = Buffer.from(Ti), hi = "@internal", _o = Buffer.from(hi);
3527
+ async function ya(e) {
3528
+ await qt(e) && await Ei(e, /* @__PURE__ */ new Set(), Hi);
3529
+ }
3530
+ async function Ei(e, t, n) {
3531
+ const i = [], a = [];
3532
+ for await (const d of await Lt(e)) {
3533
+ const p = `${e}${d.name}`;
3534
+ d.isDirectory() && !t.has(d.name) ? a.push(p) : (d.name.endsWith(".ts") || d.name.endsWith(".tsx")) && i.push(p);
3535
+ }
3536
+ const r = i.length === 0 ? [] : [i], l = Promise.withResolvers();
3537
+ function s(d) {
3538
+ l.reject(d), r.length = 0;
3539
+ }
3540
+ let c = jt;
3541
+ for (let d = 0; d < jt; ++d)
3542
+ m().catch(s);
3543
+ async function m() {
3544
+ for (; ; )
3545
+ if (r.length === 0 && a.length > 0) {
3546
+ const d = a.shift(), p = [];
3547
+ for await (const f of await Lt(d, { recursive: !0 }))
3548
+ f.isFile() && (f.name.endsWith(".ts") || f.name.endsWith(".tsx")) && p.push(`${bi(f.parentPath)}/${f.name}`);
3549
+ if (p.length === 0)
3550
+ continue;
3551
+ r.push(p);
3552
+ } else if (r.length > 0) {
3553
+ const d = r[0], p = d.shift();
3554
+ d.length === 0 && r.shift(), await n(p);
3555
+ } else {
3556
+ c -= 1, c === 0 && l.resolve();
3557
+ return;
3558
+ }
3559
+ }
3560
+ return await l.promise;
3561
+ }
3562
+ function Jt(e, t) {
3563
+ return o.createSourceFile(
3564
+ e,
3565
+ t,
3566
+ {
3567
+ languageVersion: o.ScriptTarget.Latest,
3568
+ impliedNodeFormat: o.ModuleKind.ESNext,
3569
+ // TypeScript parses too much around @param, @property and @deprecated tags
3570
+ // It also parses out inline tags. We have to put them back together
3571
+ // (overhead and complexity). Plus, it is a bit too tolerant - we want
3572
+ // to disallow some ambiguous behavior to improve consistency.
3573
+ // So, we disable JSDoc parsing and do it ourselves.
3574
+ jsDocParsingMode: o.JSDocParsingMode.ParseNone
3575
+ },
3576
+ !1,
3577
+ e.endsWith("ts") ? o.ScriptKind.TS : o.ScriptKind.TSX
3578
+ );
3579
+ }
3580
+ export {
3581
+ ye as a,
3582
+ da as b,
3583
+ ya as c,
3584
+ ma as d,
3585
+ fa as e,
3586
+ pa as f,
3587
+ No as g,
3588
+ Oo as h,
3589
+ wo as i,
3590
+ Si as j,
3591
+ Jt as k,
3592
+ sa as l,
3593
+ la as m,
3594
+ Ot as n,
3595
+ Nt as o,
3596
+ ca as p,
3597
+ ra as r,
3598
+ ua as t
3599
+ };