@arcgis/api-extractor 5.2.0-next.6 → 5.2.0-next.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3707 +0,0 @@
1
- import { path as $e, existsAsync as Zt, getCwd as Ri, retrievePackageJson as dt, toPosixPathSeparators as Li } from "@arcgis/components-build-utils";
2
- import { b as Ii, p as Ai, l as ki } from "./typeScript-CzxI8NsH.js";
3
- import { getDefaultBasePath as ei, buildViewUrl as Gi, getViewUrl as Ve } from "./extractor/processing/links.js";
4
- import o from "typescript";
5
- import "fs/promises";
6
- import { a as me, b as ti, c as Et, g as ne, p as j, f as tt, h as ii, d as Oe, e as Fi, i as Oi, j as ni, k as Ni } from "./privateContext-CB7P40up.js";
7
- import { maybeEscapePropertyName as Rt, printTypeAlias as Lt, printInterface as wi, printFunction as Ui, printVariable as Vi, printClass as Wi, printMethod as _i, printProperty as ye, printGetterSetter as Bi, printSignature as Ki } from "./utils/partPrinter.js";
8
- import { styleText as ie } from "node:util";
9
- import { readFile as It, opendir as At, rm as Hi } from "node:fs/promises";
10
- import { pathIsComponentEntrypoint as $i, findDeclaredComponent as zi } from "./extractor/webComponent/findComponents.js";
11
- import { renameComponentFolder as We, addComponentPathMapping as ji } from "./extractor/webComponent/pathMapping.js";
12
- import { getBasename as Z, getPackageNameFromExternalSpecifier as pt, extractInitializer as ze, extractBooleanInitializer as Y, findDecorator as xe, getMemberName as Re } from "./utils/astHelpers.js";
13
- import { readFileSync as Ji, existsSync as fe } from "node:fs";
14
- import { uncapitalize as qi, camelToKebab as Qi, kebabToPascal as Xi } from "@arcgis/toolkit/string";
15
- import { globalPackageIdentifier as ce, mergeApiNodes as Yi, isApiMethodAsync as Zi } from "./utils/apiHelpers.js";
16
- import { identity as Se } from "@arcgis/toolkit/function";
17
- import { pathToFileURL as en } from "node:url";
18
- import tn from "path";
19
- import { getWidenedLiteralType as nn, unsafeUndocumentedTs as on, unsafeGetUndocumentedPrinter as an } from "./utils/internalTypeScriptApis.js";
20
- const kt = "developers.arcgis.com", Gt = "next.gha.afd.arcgis.com";
21
- function fa(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 ? Ri() : $e.resolve(t?.cwd)}/`, l = t?.packageJson ?? dt(r);
25
- let s = t?.basePath ?? "src/";
26
- s.endsWith("/") || (s += "/");
27
- const c = "customElements" in l && "@arcgis/lumina" in (l.dependencies ?? {}), p = n?.typeCheckedExtraction ?? c, d = n?.fullTypeCheck ?? !1, m = n?.typeScriptConfig ?? (p || d ? Ii(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
- `${Ai.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
- ...m.config,
42
- options: {
43
- ...m.config.options,
44
- ...n?.compilerOptions
45
- }
46
- },
47
- configPath: m.configPath
48
- }, u = t?.dtsEmitPath === void 0 || t?.dtsEmitPath === "" ? "" : `${$e.resolve(r, t.dtsEmitPath)}/`, g = u !== "", C = t?.environment ?? "production", v = C === "development", P = t?.emptyDtsEmitPath ?? (!v && g), h = i?.omitInternal ?? !1, R = n?.forceProduceDts ?? !1;
49
- if (h && (g || R))
50
- throw Error(
51
- "omitInternal must be false if emitting .d.ts files in order to produce functional types for internal APIs."
52
- );
53
- return {
54
- isResolvedConfig: !0,
55
- context: {
56
- dtsEmitPath: u,
57
- emptyDtsEmitPath: P,
58
- apiJsonEmitPath: t?.apiJsonEmitPath ?? "",
59
- environment: C,
60
- cwd: r,
61
- basePath: s,
62
- packageJson: l,
63
- logger: t?.logger ?? {
64
- // We namespace manually
65
- // eslint-disable-next-line webgis/consistent-logging
66
- info: console.log,
67
- // eslint-disable-next-line webgis/consistent-logging
68
- error: console.error
69
- },
70
- excludedDirectories: t?.excludedDirectories ?? /* @__PURE__ */ new Set(),
71
- isLuminaMinimalExtraction: t?.isLuminaMinimalExtraction ?? !1,
72
- includeLuminaPrivateComponents: t?.includeLuminaPrivateComponents ?? !1,
73
- supportApplyMixinsSyntax: t?.supportApplyMixinsSyntax ?? !1
74
- },
75
- types: {
76
- typeCheckedExtraction: p,
77
- fullTypeCheck: d,
78
- afterDiagnostic: n?.afterDiagnostic ?? Se,
79
- typeScriptInstanceCreated: n?.typeScriptInstanceCreated ?? Se,
80
- typeScriptConfigPath: m.configPath,
81
- typeScriptConfig: f,
82
- compilerOptions: f.config.options,
83
- declarationTextTransformers: n?.declarationTextTransformers ?? [],
84
- typeReplacements: n?.typeReplacements ?? {},
85
- forceProduceDts: R
86
- },
87
- documentation: {
88
- copyDocDefinitions: i?.copyDocDefinitions ?? {},
89
- noInheritMembers: i?.noInheritMembers ?? {},
90
- omitInternal: h,
91
- publicStoryUrlPrefix: i?.publicStoryUrlPrefix ?? !1,
92
- getComponentDocsUrl: i?.getComponentDocsUrl ?? !1,
93
- getComponentDemoUrl: i?.getComponentDemoUrl ?? !1,
94
- host: i?.host ?? (v ? Gt : kt),
95
- alternativeHost: i?.alternativeHost ?? (v ? kt : Gt),
96
- basePath: i?.basePath ?? ei(l.name.split("/").at(-1))
97
- },
98
- verify: {
99
- typeCheckTypes: e.verify?.typeCheckTypes ?? !1,
100
- filterTypeCheckDiagnostic: e.verify?.filterTypeCheckDiagnostic ?? (() => !0),
101
- detectBrokenLinks: e.verify?.detectBrokenLinks ?? !0
102
- },
103
- watch: {
104
- onUpdate: e.watch?.onUpdate ?? Se,
105
- // Many reads can happen in a short time (on folder moves, or if prettier re-runs)
106
- // Shorter than TypeScript's default of 250ms as we are blocked until this
107
- // timeout is complete. Short timeout for unchecked extraction as it is fast,
108
- // so doesn't need long debounce.
109
- debounceTime: e.watch?.debounceTime ?? (p || d ? 50 : 20),
110
- clearScreen: e.watch?.clearScreen ?? !1,
111
- skipWritingUnchanged: P ? !1 : e.watch?.skipWritingUnchanged ?? !0
112
- },
113
- strict: e.strict ?? !c,
114
- afterApiJsonCreate: e.afterApiJsonCreate ?? Se
115
- };
116
- }
117
- async function ya(e, t) {
118
- const n = t !== void 0, i = e ?? process.cwd(), a = $e.resolve(i, t ?? "api-extractor.config.ts"), r = await Zt(a);
119
- if (n && !r)
120
- throw Error(`The provided config file at ${a} does not exist.`);
121
- if (!r)
122
- return e === void 0 ? {} : { context: { cwd: e } };
123
- const l = (await import(en(a).href)).config;
124
- return {
125
- ...l,
126
- context: {
127
- ...l.context,
128
- cwd: l.context?.cwd ?? $e.dirname(a)
129
- }
130
- };
131
- }
132
- function va(e, t) {
133
- const n = e.context, i = t.context, a = e.types, r = t.types, l = e.documentation, s = t.documentation, c = e.verify, p = t.verify, d = e.watch, m = t.watch;
134
- return {
135
- isResolvedConfig: e.isResolvedConfig || t.isResolvedConfig || void 0,
136
- context: {
137
- dtsEmitPath: i?.dtsEmitPath ?? n?.dtsEmitPath,
138
- emptyDtsEmitPath: i?.emptyDtsEmitPath ?? n?.emptyDtsEmitPath,
139
- apiJsonEmitPath: i?.apiJsonEmitPath ?? n?.apiJsonEmitPath,
140
- environment: i?.environment ?? n?.environment,
141
- cwd: i?.cwd ?? n?.cwd,
142
- basePath: i?.basePath ?? n?.basePath,
143
- packageJson: i?.packageJson ?? n?.packageJson,
144
- logger: i?.logger ?? n?.logger,
145
- excludedDirectories: i?.excludedDirectories ?? n?.excludedDirectories,
146
- isLuminaMinimalExtraction: i?.isLuminaMinimalExtraction ?? n?.isLuminaMinimalExtraction,
147
- includeLuminaPrivateComponents: i?.includeLuminaPrivateComponents ?? n?.includeLuminaPrivateComponents,
148
- supportApplyMixinsSyntax: i?.supportApplyMixinsSyntax ?? n?.supportApplyMixinsSyntax ?? !1
149
- },
150
- types: {
151
- typeCheckedExtraction: r?.typeCheckedExtraction ?? a?.typeCheckedExtraction,
152
- fullTypeCheck: r?.fullTypeCheck ?? a?.fullTypeCheck,
153
- afterDiagnostic: Ne(r?.afterDiagnostic, a?.afterDiagnostic),
154
- typeScriptInstanceCreated: Ne(
155
- t?.types?.typeScriptInstanceCreated,
156
- e?.types?.typeScriptInstanceCreated
157
- ),
158
- typeScriptConfigPath: r?.typeScriptConfigPath ?? a?.typeScriptConfigPath,
159
- typeScriptConfig: r?.typeScriptConfig ?? a?.typeScriptConfig,
160
- compilerOptions: r?.compilerOptions ?? a?.compilerOptions,
161
- declarationTextTransformers: r?.declarationTextTransformers !== void 0 && a?.declarationTextTransformers !== void 0 ? [...a.declarationTextTransformers, ...r.declarationTextTransformers] : r?.declarationTextTransformers ?? a?.declarationTextTransformers,
162
- typeReplacements: r?.typeReplacements ?? a?.typeReplacements,
163
- forceProduceDts: r?.forceProduceDts ?? a?.forceProduceDts
164
- },
165
- documentation: {
166
- copyDocDefinitions: s?.copyDocDefinitions ?? l?.copyDocDefinitions,
167
- noInheritMembers: s?.noInheritMembers ?? l?.noInheritMembers,
168
- omitInternal: s?.omitInternal ?? l?.omitInternal,
169
- publicStoryUrlPrefix: s?.publicStoryUrlPrefix ?? l?.publicStoryUrlPrefix,
170
- getComponentDocsUrl: s?.getComponentDocsUrl ?? l?.getComponentDocsUrl,
171
- getComponentDemoUrl: s?.getComponentDemoUrl ?? l?.getComponentDemoUrl,
172
- host: s?.host ?? l?.host,
173
- alternativeHost: s?.alternativeHost ?? l?.alternativeHost,
174
- basePath: s?.basePath ?? l?.basePath
175
- },
176
- verify: {
177
- typeCheckTypes: p?.typeCheckTypes ?? c?.typeCheckTypes,
178
- filterTypeCheckDiagnostic: p?.filterTypeCheckDiagnostic ?? c?.filterTypeCheckDiagnostic,
179
- detectBrokenLinks: p?.detectBrokenLinks ?? c?.detectBrokenLinks
180
- },
181
- watch: {
182
- onUpdate: Ne(m?.onUpdate, d?.onUpdate),
183
- debounceTime: m?.debounceTime ?? d?.debounceTime,
184
- clearScreen: m?.clearScreen ?? d?.clearScreen,
185
- skipWritingUnchanged: m?.skipWritingUnchanged ?? d?.skipWritingUnchanged
186
- },
187
- strict: t.strict ?? e.strict,
188
- afterApiJsonCreate: Ne(t.afterApiJsonCreate, e.afterApiJsonCreate)
189
- };
190
- }
191
- function Ne(e, t) {
192
- const n = t === Se ? void 0 : t, i = e === Se ? void 0 : e;
193
- return n !== void 0 && i !== void 0 ? ((...a) => (n(...a), i(...a))) : i ?? n;
194
- }
195
- function he(e) {
196
- const t = [], n = e, i = e;
197
- if (e.deprecated && t.push({
198
- name: "deprecated",
199
- text: e.deprecated === !0 ? void 0 : e.deprecated
200
- }), n.default && t.push({
201
- name: "default",
202
- text: n.default
203
- }), i.return !== void 0) {
204
- const l = i.parameters;
205
- if (l !== void 0)
206
- for (let s = 0; s < l.length; ++s) {
207
- const c = l[s];
208
- t.push({
209
- name: "param",
210
- // Add hyphen as required by TSDoc
211
- text: `${c.name}${c.description ? ` - ${c.description}` : ""}`
212
- });
213
- }
214
- i.return.description && t.push({
215
- name: "returns",
216
- text: i.return.description
217
- });
218
- }
219
- const a = e;
220
- if (a.customElement === !0) {
221
- if (a.cssProperties !== void 0)
222
- for (const l of a.cssProperties)
223
- t.push({
224
- name: "cssproperty",
225
- text: we(l)
226
- });
227
- if (a.cssParts !== void 0)
228
- for (const l of a.cssParts)
229
- t.push({
230
- name: "csspart",
231
- text: we(l)
232
- });
233
- if (a.cssStates !== void 0)
234
- for (const l of a.cssStates)
235
- t.push({
236
- name: "cssstate",
237
- text: we(l)
238
- });
239
- if (a.slots !== void 0)
240
- for (const l of a.slots)
241
- t.push({
242
- name: "slot",
243
- text: we(l)
244
- });
245
- }
246
- e.docsTags !== void 0 && t.push(...e.docsTags);
247
- const r = e.description ?? "";
248
- if (!(t.length === 0 && r.length === 0))
249
- return {
250
- description: r,
251
- docsTags: t
252
- };
253
- }
254
- function we(e) {
255
- 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}` : "";
256
- return `${i}${r}`;
257
- }
258
- function rn(e) {
259
- const t = e.description ?? "", n = t.length === 0, i = e.docsTags, a = (
260
- // Has 2+ tags, or multi-line description, or single tag and single line description
261
- i.length + (n ? 0 : t.includes(`
262
- `) ? 2 : 1) > 1 || // Has a single tag, but that tag is multi-line
263
- i[0]?.text?.includes(`
264
- `) === !0
265
- );
266
- let r = "*";
267
- n ? a || (r += " ") : (a ? (r += `
268
- * `, r += Ft(t)) : r += ` ${t.replaceAll(" @", " \\@")}`, i.length > 0 && (r += `
269
- *`));
270
- for (let l = 0; l < i.length; ++l) {
271
- const s = i[l], c = `@${s.name}`, p = s.text ?? "";
272
- r += `${a ? `
273
- * ` : ""}${c}`, p.includes(`
274
- `) ? (s.name === "returns" || s.name === "param" ? r += " " : r += `
275
- * `, r += Ft(p)) : p.length > 0 && (r += ` ${p.replaceAll(" @", " \\@")}`);
276
- }
277
- return r += a ? `
278
- ` : " ", r;
279
- }
280
- const at = 10, sn = 32, ln = 64;
281
- function Ft(e) {
282
- let t = "";
283
- const n = e.length;
284
- let i = 0;
285
- for (let a = 0; a < n; ++a) {
286
- const r = e.charCodeAt(a);
287
- if (r === at)
288
- t += e.slice(i, a), e.charCodeAt(a + 1) === at ? t += `
289
- *` : t += `
290
- * `, i = a + 1;
291
- else if (r === ln) {
292
- const l = a === 0 ? 0 : e.charCodeAt(a - 1);
293
- (a === 0 || l === sn || l === at) && (t += e.slice(i, a), t += "\\@", i = a + 1);
294
- }
295
- }
296
- return i < n && (t += e.slice(i)), t;
297
- }
298
- function oe(e, t, n) {
299
- return oi(e, t, n) ?? void 0;
300
- }
301
- function je(e, t, n, i) {
302
- const a = oi(e, t, n);
303
- return a === void 0 ? i : a ?? void 0;
304
- }
305
- function oi(e, t, n) {
306
- const i = o.getLeadingCommentRanges(n.file.text, e.pos);
307
- if (i === void 0)
308
- return;
309
- let a;
310
- for (const l of i) {
311
- const s = n.file.text.slice(l.pos, l.end);
312
- s.startsWith("/**") && (a !== void 0 && n.config.strict && n.emitError(
313
- `Found multiple JSDoc comments for the same node. This is not allowed.
314
- If one of these was meant to be a file-level comment, read the documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation
315
- If this is meant to be a function overload, read the documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#function-overloads`,
316
- {
317
- file: n.file,
318
- node: e
319
- }
320
- ), a = s);
321
- }
322
- if (a === void 0)
323
- return;
324
- const r = n.config.documentation.omitInternal;
325
- return cn(a, t, r, n);
326
- }
327
- function cn(e, t, n, i) {
328
- if (t && !e.includes("* @public") && (n || !e.includes("* @internal")))
329
- return null;
330
- const a = e.length - 2;
331
- let r = 3, l = "";
332
- const s = [];
333
- let c, p, d = !1;
334
- for (; r < a; ) {
335
- let m = e.indexOf(`
336
- `, r);
337
- m === -1 && (m = a);
338
- let f = e.slice(r, m).trim();
339
- if (r = m + 1, f === "*" ? f = "" : f.startsWith("*") && (f[1] === " " ? f = f.slice(2) : i.config.strict ? i.emitError(
340
- `For consistency, include a space character after '*' in JSDoc. Did not find it in "${e}"`,
341
- {
342
- file: i.file,
343
- node: void 0
344
- }
345
- ) : f = f.slice(1)), f.startsWith("@")) {
346
- c !== void 0 && !d && s.push(
347
- U[c] ?? {
348
- name: c,
349
- text: p.trim().replaceAll("\\@", "@") || void 0
350
- }
351
- );
352
- const u = f.indexOf(" "), g = u === -1 ? f.slice(1) : f.slice(1, u);
353
- if (g === "internal") {
354
- if (n)
355
- return null;
356
- t = !1;
357
- } else g === "public" ? (t = !1, d = !0) : d = g === "privateRemarks";
358
- const C = u === -1 ? "" : f.slice(u + 1);
359
- c = g, p = C;
360
- } else c !== void 0 ? p = `${p}
361
- ${f}` : l += `${f}
362
- `;
363
- }
364
- return t ? null : (c !== void 0 && !d && s.push(
365
- U[c] ?? {
366
- name: c,
367
- text: p.trim().replaceAll("\\@", "@") || void 0
368
- }
369
- ), {
370
- description: l.trim().replaceAll("\\@", "@") || void 0,
371
- docsTags: s
372
- });
373
- }
374
- function dn(e, t) {
375
- for (let n = 0; n < t.docsTags.length; ++n) {
376
- const i = t.docsTags[n], { name: a, text: r } = i;
377
- a === "deprecated" ? e.deprecated = r || !0 : (e.docsTags ??= [], e.docsTags.push(i));
378
- }
379
- e.description = t.description;
380
- }
381
- function ai(e, t) {
382
- for (let n = 0; n < t.docsTags.length; ++n) {
383
- const i = t.docsTags[n], { name: a, text: r } = i;
384
- if (a === "deprecated")
385
- e.deprecated = r || !0;
386
- else if (i === U.private)
387
- e.privacy = "private";
388
- else if (a === "csspart")
389
- e.cssParts ??= [], e.cssParts.push(rt(r));
390
- else if (a === "cssstate")
391
- e.cssStates ??= [], e.cssStates.push(rt(r));
392
- else if (a === "slot")
393
- e.slots ??= [], e.slots.push(rt(r));
394
- else if (a === "esriCompatibilityName") {
395
- const l = me(e);
396
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
397
- } else a === "readonly" || (e.docsTags ??= [], e.docsTags.push(i));
398
- }
399
- e.description = t.description;
400
- }
401
- function pn(e, t) {
402
- const n = e, i = [];
403
- for (let a = 0; a < t.docsTags.length; ++a) {
404
- const r = t.docsTags[a], { name: l, text: s } = r;
405
- if (l === "deprecated")
406
- e.deprecated = s || !0;
407
- else if (r === U.private)
408
- e.privacy = "private";
409
- else if (l === "param")
410
- i.push(r);
411
- else if (l === "returns")
412
- n.return.description = r.text;
413
- else if (l === "esriCompatibilityName") {
414
- const c = Et(e);
415
- c.esriCompatibilityNames ??= [], c.esriCompatibilityNames.push(s ?? "");
416
- } else
417
- e.docsTags ??= [], e.docsTags.push(r);
418
- }
419
- return e.description = t.description, i;
420
- }
421
- function mn(e, t) {
422
- for (let n = 0; n < t.docsTags.length; ++n) {
423
- const i = t.docsTags[n], { name: a, text: r } = i;
424
- a === "deprecated" ? e.deprecated = r || !0 : a === "default" ? e.default = r : i === U.readonly ? e.readonly = !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
425
- }
426
- e.description = t.description;
427
- }
428
- function un(e, t) {
429
- for (let n = 0; n < t.docsTags.length; ++n) {
430
- const i = t.docsTags[n], { name: a, text: r } = i;
431
- if (a === "deprecated")
432
- e.deprecated = r || !0;
433
- else if (a === "default")
434
- e.default = r;
435
- else if (a !== "readonly") if (a === "esriCompatibilityName") {
436
- const l = ti(e);
437
- l.esriCompatibilityNames ??= [], l.esriCompatibilityNames.push(r ?? "");
438
- } else
439
- e.docsTags ??= [], e.docsTags.push(i);
440
- }
441
- e.description = t.description;
442
- }
443
- function fn(e, t) {
444
- for (let n = 0; n < t.docsTags.length; ++n) {
445
- const i = t.docsTags[n], { name: a, text: r } = i;
446
- a === "deprecated" ? e.deprecated = r || !0 : i === U.private ? e.privacy = "private" : (e.docsTags ??= [], e.docsTags.push(i));
447
- }
448
- e.description = t.description;
449
- }
450
- function rt(e) {
451
- if (e === void 0)
452
- return {
453
- name: "",
454
- deprecated: void 0,
455
- summary: void 0,
456
- description: void 0,
457
- syntax: void 0,
458
- default: void 0
459
- };
460
- const t = e.indexOf(" - ");
461
- if (t === -1)
462
- return e.startsWith("- ") ? {
463
- name: "",
464
- deprecated: void 0,
465
- summary: void 0,
466
- description: e.slice(2),
467
- syntax: void 0,
468
- default: void 0
469
- } : {
470
- name: e,
471
- deprecated: void 0,
472
- summary: void 0,
473
- description: void 0,
474
- syntax: void 0,
475
- default: void 0
476
- };
477
- let n, i = e.slice(0, t);
478
- if (i.startsWith("[") && i.endsWith("]")) {
479
- const r = i.slice(1, -1), l = r.indexOf("=");
480
- i = r.slice(0, l), n = r.slice(l + 1);
481
- }
482
- const a = e.slice(t + 3);
483
- return {
484
- name: i,
485
- deprecated: void 0,
486
- summary: void 0,
487
- description: a,
488
- syntax: void 0,
489
- default: n
490
- };
491
- }
492
- const U = {
493
- // Create a null prototype object to avoid collisions with Object.prototype when doing lookups
494
- // eslint-disable-next-line @typescript-eslint/naming-convention
495
- __proto__: null,
496
- internal: { name: "internal", text: void 0 },
497
- private: { name: "private", text: void 0 },
498
- copyDoc: { name: "copyDoc", text: void 0 },
499
- beta: { name: "beta", text: void 0 },
500
- experimental: { name: "experimental", text: void 0 },
501
- readonly: { name: "readonly", text: void 0 },
502
- required: { name: "required", text: void 0 }
503
- }, Le = {
504
- description: void 0,
505
- docsTags: []
506
- }, Pe = {
507
- description: void 0,
508
- docsTags: [U.private]
509
- };
510
- function yn(e, t, n) {
511
- switch (t.path) {
512
- case "layers/FeatureLayer": {
513
- const i = "export default class FeatureLayer extends FeatureLayerSuperclass {", a = e.indexOf(i);
514
- if (a === -1)
515
- return n.emitError(
516
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${i}".`,
517
- { file: ne(t).file, node: void 0 }
518
- ), e;
519
- const r = 'get type(): "feature";', l = e.indexOf(r);
520
- if (l === -1)
521
- return n.emitError(
522
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include "${r}".`,
523
- { file: ne(t).file, node: void 0 }
524
- ), e;
525
- const s = l + r.length, c = e.lastIndexOf("/**", l);
526
- if (c === -1)
527
- return n.emitError(
528
- `Hardcoded behavior error: Expected .d.ts for FeatureLayer to include JSDoc for "${r}".`,
529
- { file: ne(t).file, node: void 0 }
530
- ), e;
531
- const p = `export default class FeatureLayer extends __FeatureLayerSansType {
532
- ${e.slice(c, s)}
533
- }
534
- export abstract class __FeatureLayerSansType extends FeatureLayerSuperclass {`;
535
- return e.slice(0, a) + p + e.slice(a + i.length, c) + e.slice(s);
536
- }
537
- case "layers/OrientedImageryLayer":
538
- case "layers/AnnotationLayer":
539
- case "layers/DimensionFeatureLayer": {
540
- const i = `import type { __FeatureLayerSansType } from "./FeatureLayer.js";
541
- `, a = `extends FeatureLayer {
542
- `, r = e.indexOf(a);
543
- return r === -1 ? (n.emitError(
544
- `Hardcoded behavior error: Expected .d.ts for ${t.path} to include "${a}".`,
545
- { file: ne(t).file, node: void 0 }
546
- ), e) : i + e.slice(0, r) + `extends __FeatureLayerSansType {
547
- ` + e.slice(r + a.length);
548
- }
549
- case "widgets/support/widget":
550
- return e + `
551
-
552
- export namespace tsx {
553
- namespace JSX {
554
- interface IntrinsicElements {
555
- [elementName: string]: any;
556
- }
557
-
558
- interface Element {
559
- }
560
- }
561
- }`;
562
- default:
563
- return e;
564
- }
565
- }
566
- function ga(e, t) {
567
- let n = `/// <reference types="../index.d.ts" />
568
- `, i = `
569
-
570
- `, a = "", r = "", l = "", s = "", c = "", p = "", d = "", m = "", f = "", u = "", g = "", C = "";
571
- for (let S = 0; S < e.length; ++S) {
572
- const x = e[S];
573
- for (let A = 0; A < x.declarations.length; ++A) {
574
- const V = x.declarations[A];
575
- if (V.customElement !== !0)
576
- continue;
577
- const W = V;
578
- if (W.privacy !== void 0 || me(W).hasExplicitAbstract === !0)
579
- continue;
580
- const { name: G, tagName: O, pascalCaseName: F, events: B } = W;
581
- i += `import type { ${G} } from "./${x.path}/customElement.js";
582
- `, n += `import type { ${G} } from "../${x.path}/customElement.js";
583
- `;
584
- const [ue, Ge] = vn(W.name, W.members);
585
- let te = "", q = "";
586
- if (B !== void 0) {
587
- for (let pe = 0; pe < B.length; ++pe) {
588
- const Fe = B[pe], xt = `EventHandler<${G}["${Fe.name}"]>`;
589
- te += ` ${Rt(`on${Fe.name}`)}?: ${xt};
590
- `, q += ` ${Rt(`on${Fe.name[0].toUpperCase()}${Fe.name.slice(1)}`)}?: ${xt};
591
- `;
592
- }
593
- a += `export interface ${F}CustomEvent<T> extends CustomEvent<T> {
594
- detail: T;
595
- target: ${G};
596
- currentTarget: ${G};
597
- }
598
- `, r += ` type HTML${F}ElementEventMap = ${G}["@eventTypes"];
599
- `;
600
- }
601
- r += ` type HTML${F}Element = ${G};
602
-
603
- `, l += ` "${O}": ${G};
604
- `, s += `interface Lumina${F} extends ${ue}h.JSX.HTMLAttributes<${G}> {
605
- ${te}}
606
-
607
- `, c += ` "${O}": Lumina${F};
608
- `, p += `interface Preact${F} extends ${ue}HTMLAttributes<${G}> {
609
- ${te}}
610
-
611
- `, d += ` "${O}": Preact${F};
612
- `, m += `interface React${F} extends ${ue}HTMLProps<${G}> {
613
- ${te}}
614
-
615
- `, f += ` "${O}": React${F};
616
- `, u += `interface Stencil${F} extends ${ue}StencilJsx.HTMLAttributes<${G}> {
617
- ${q}}
618
-
619
- `, g += ` "${O}": Stencil${F};
620
- `, Ge !== "" && (C += Ge);
621
- }
622
- }
623
- if (r === "") {
624
- t.vanillaComponentTypes = "";
625
- return;
626
- }
627
- const v = "@arcgis/lumina";
628
- t.vanillaComponentTypes = `${i}
629
- export { ToEvents, TargetedEvent } from "${v}";
630
-
631
- ${a}
632
-
633
- declare global {
634
- interface HTMLElementTagNameMap {
635
- ${l}
636
- }
637
-
638
- ${r}
639
- }`;
640
- const P = `import "./index.js";
641
- export declare const defineCustomElements: import("${v}").DefineCustomElements;`, h = `${t.config.context.dtsEmitPath}loader.d.ts`;
642
- t.dtsFiles.set(h, P);
643
- const R = `${n}import type { h, EventHandler } from "${v}";
644
-
645
- ${C}${s}declare module "@arcgis/lumina" {
646
- export namespace h.JSX {
647
- interface IntrinsicElements {
648
- ${c} }
649
- }
650
- }`, I = ` interface IntrinsicElements {
651
- ${d} }`, y = `${n}import { HTMLAttributes } from "preact";
652
- import type { EventHandler } from "${v}";
653
-
654
- ${C}${p}declare module 'preact' {
655
- namespace createElement.JSX {
656
- ${I}
657
- }
658
- namespace h.JSX {
659
- ${I}
660
- }
661
- }`, k = `
662
- namespace JSX {
663
- interface IntrinsicElements {
664
- ${f} }
665
- }
666
- `, M = `${n}import type { HTMLProps } from 'react';
667
- import type { EventHandler } from "${v}";
668
-
669
- ${C}${m}declare module "react" {${k}}
670
- declare module "react/jsx-runtime" {${k}}
671
- declare module "react/jsx-dev-runtime" {${k}}`, L = `${n}import { JSXBase as StencilJsx } from "@stencil/core/internal";
672
- import type { EventHandler } from "${v}";
673
-
674
- ${C}${u}interface ExposedElements {
675
- ${g}}
676
-
677
- export namespace JSX {
678
- export interface IntrinsicElements extends ExposedElements {}
679
- }
680
-
681
- declare module "@stencil/core/internal/stencil-public-runtime" {
682
- export namespace h.JSX {
683
- interface IntrinsicElements extends ExposedElements {}
684
- }
685
- }`, D = `/** @deprecated import from stencil.d.ts instead */
686
- export * from "./stencil.js";`, T = `${t.config.context.dtsEmitPath}types/`, _ = `${T}lumina.d.ts`, N = `${T}preact.d.ts`, J = `${T}react.d.ts`, K = `${T}stencil.d.ts`, E = `${T}components.d.ts`;
687
- t.dtsFiles.set(_, R), t.dtsFiles.set(N, y), t.dtsFiles.set(J, M), t.dtsFiles.set(K, L), t.dtsFiles.set(E, D);
688
- }
689
- function vn(e, t) {
690
- const n = [], i = [];
691
- let a = !1;
692
- if (t !== void 0)
693
- for (let s = 0; s < t.length; ++s) {
694
- const c = t[s];
695
- if (c.kind !== "field" || c.readonly !== void 0 || c.privacy !== void 0)
696
- continue;
697
- if (c.getterType !== void 0) {
698
- a = !0;
699
- continue;
700
- }
701
- c.docsTags?.includes(U.required) === !0 ? n.push(`"${c.name}"`) : i.push(`"${c.name}"`);
702
- }
703
- let r = n.length > 0 ? `Required<Pick<${e}, ${n.join(" | ")}>>` : "";
704
- i.length > 0 && (r.length > 0 && (r += ", "), r += `Partial<Pick<${e}, ${i.join(" | ")}>>`), a && (r.length > 0 && (r += ", "), r += `${e}SetterTypes`);
705
- const l = a ? `type ${e}SetterTypes = ${e}["${ri}"];
706
- ` : "";
707
- return [r.length === 0 ? "" : `${r}, `, l];
708
- }
709
- function Sa(e, t) {
710
- const n = t.moduleMap.get("index");
711
- if (n === void 0)
712
- e.unshift(gn);
713
- else {
714
- const i = ne(n);
715
- i.index.named.getAssetPath === void 0 && n.declarations.push(si), i.index.named.setAssetPath === void 0 && n.declarations.push(li);
716
- }
717
- }
718
- const ri = "@setterTypes", si = {
719
- [j]: tt(),
720
- kind: "function",
721
- name: "getAssetPath",
722
- static: void 0,
723
- deprecated: void 0,
724
- summary: void 0,
725
- description: "Get a resolved path from where an asset can be loaded.",
726
- docsTags: void 0,
727
- typeParameters: void 0,
728
- parameters: [
729
- {
730
- name: "suffix",
731
- deprecated: void 0,
732
- summary: void 0,
733
- description: "The relative path for the asset.",
734
- docsTags: void 0,
735
- optional: void 0,
736
- rest: void 0,
737
- type: {
738
- text: "string",
739
- references: void 0,
740
- values: void 0,
741
- source: void 0
742
- },
743
- default: void 0
744
- }
745
- ],
746
- return: {
747
- summary: void 0,
748
- description: void 0,
749
- type: {
750
- text: "string",
751
- references: void 0,
752
- values: void 0,
753
- source: void 0
754
- }
755
- },
756
- inheritedFrom: void 0,
757
- signature: void 0,
758
- privacy: void 0,
759
- source: void 0
760
- }, li = {
761
- [j]: tt(),
762
- kind: "function",
763
- name: "setAssetPath",
764
- static: void 0,
765
- deprecated: void 0,
766
- summary: void 0,
767
- description: `Used to manually set the base path where package assets (like localization
768
- and icons) can be found.
769
-
770
- By default, the package assets are loaded from
771
- \`https://js.arcgis.com/<version>/<simplified-package-name>/\`. We are hosting
772
- our assets on a CDN (Content Delivery Network) to ensure fast and reliable
773
- access. It is CORS-enabled, so you can load the assets from any domain. This
774
- is the recommended way to load the assets and avoid bundling them with your
775
- application.
776
-
777
- However, if you need to host the assets locally, you can copy them manually
778
- as part of your build process and use \`setAssetPath\` to customize where the
779
- browser will load the assets from.`,
780
- docsTags: void 0,
781
- typeParameters: void 0,
782
- parameters: [
783
- {
784
- name: "path",
785
- deprecated: void 0,
786
- summary: void 0,
787
- description: "Relative or absolute path to the assets folder.",
788
- docsTags: void 0,
789
- optional: void 0,
790
- rest: void 0,
791
- type: {
792
- text: "URL | string",
793
- references: [
794
- {
795
- name: "URL",
796
- module: void 0,
797
- package: ce,
798
- viewUrl: "https://developer.mozilla.org/docs/Web/API/URL",
799
- start: 0,
800
- end: 3
801
- }
802
- ],
803
- values: void 0,
804
- source: void 0
805
- },
806
- default: void 0
807
- }
808
- ],
809
- return: {
810
- summary: void 0,
811
- description: void 0,
812
- type: {
813
- text: "void",
814
- references: void 0,
815
- values: void 0,
816
- source: void 0
817
- }
818
- },
819
- inheritedFrom: void 0,
820
- signature: void 0,
821
- privacy: void 0,
822
- source: void 0
823
- }, ci = ii(void 0, "index", {}, { class: void 0, default: void 0, named: {} });
824
- ci.importsText = "";
825
- const gn = {
826
- [j]: ci,
827
- kind: "javascript-module",
828
- path: "index",
829
- sourcePath: "src/index.ts",
830
- deprecated: void 0,
831
- description: void 0,
832
- docsTags: void 0,
833
- summary: void 0,
834
- declarations: [si, li],
835
- exports: void 0
836
- };
837
- function Ta(e, t) {
838
- const n = he(e), i = Ee(n), a = ne(e);
839
- if (a.index.class?.privacy !== void 0)
840
- return e.declarations.length > 1 && t.emitError(
841
- `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(", ")}`,
842
- { file: a.file, node: void 0 }
843
- ), "";
844
- let r = `${i}${a.importsText}`;
845
- if (r !== "" && (r += `
846
- `), a.reExports !== void 0) {
847
- for (let s = 0; s < a.reExports.length; ++s) {
848
- const c = a.reExports[s];
849
- let p = "";
850
- if (c.specifiers[0].exportName === "*") {
851
- const d = c.specifiers[0];
852
- p = (c.isTypeOnly ? "type *" : "*") + (d.aliasName ? ` as ${d.aliasName}` : "");
853
- } else {
854
- for (let d = 0; d < c.specifiers.length; ++d) {
855
- const m = c.specifiers[d];
856
- p += (d === 0 ? "{" : ",") + (c.isTypeOnly ? " type " : " ") + m.exportName + (m.aliasName ? ` as ${m.aliasName}` : "");
857
- }
858
- p += " }";
859
- }
860
- r += `export ${p} from "${c.specifier}";
861
- `;
862
- }
863
- r += `
864
- `;
865
- }
866
- if (a.namespaces !== void 0)
867
- for (let s = 0; s < a.namespaces.length; ++s)
868
- r += `${a.namespaces[s]}
869
-
870
- `;
871
- const l = e.declarations;
872
- a.constructorPropertiesInterface !== void 0 && (r += `${Ot(a.constructorPropertiesInterface)}
873
-
874
- `);
875
- for (let s = 0; s < l.length; ++s) {
876
- const c = l[s];
877
- r += Ot(c), s < l.length - 1 && (r += `
878
-
879
- `);
880
- }
881
- return t.isJsApi ? yn(r, e, t) : (t.isComponentProject && (e.exports?.[0].kind === "custom-element-definition" ? r = `/// <reference path="../../index.d.ts" />
882
- ${r}` : e.path === "index" && (r += t.vanillaComponentTypes)), r);
883
- }
884
- function Ee(e) {
885
- return e === void 0 ? "" : `/*${rn(e)}*/
886
- `;
887
- }
888
- function Ot(e) {
889
- let t = he(e), n = "";
890
- if (e.kind === "class" || e.kind === "mixin")
891
- n = Nt(e);
892
- else if (e.kind === "interface") {
893
- const a = me(e);
894
- if (e.supertypes === void 0 && e.type === void 0 && e.members?.length === 1 && (e.members[0].kind === "call-signature" || e.members[0].kind === "constructor")) {
895
- const l = e.members[0];
896
- let s = di(l, !0);
897
- const c = he(l)?.docsTags;
898
- c !== void 0 && (t = {
899
- description: t?.description,
900
- docsTags: [...c, ...t?.docsTags ?? []]
901
- });
902
- const p = s.indexOf("): ");
903
- s = `${s.slice(0, p)}) => ${s.slice(p + 3, -1)}`, n = Lt(e.name, e.typeParameters, void 0, s);
904
- } else if (a.isMixinBaseClass === !0)
905
- n = Nt(e);
906
- else if (a.emitAsTypeAlias === !0) {
907
- let l = e.type?.text;
908
- const s = mt(e);
909
- s !== "" ? l = l === void 0 ? `{${s}}` : `${l} & {${s}}` : l === void 0 && e.supertypes === void 0 && (l = "{}"), n = Lt(e.name, e.typeParameters, e.supertypes, l);
910
- } else {
911
- const l = mt(e);
912
- n = wi(
913
- a.isDefaultExported === !0,
914
- e.name,
915
- e.typeParameters,
916
- e.supertypes,
917
- l
918
- );
919
- }
920
- } else if (e.kind === "function") {
921
- const a = Et(e);
922
- n = Ui(
923
- a.isDefaultExported === !0,
924
- e.name,
925
- e.typeParameters,
926
- e.parameters,
927
- e.return.type.text
928
- );
929
- } else if (e.kind === "variable") {
930
- const a = ti(e);
931
- n += Vi(a.isDefaultExported === !0, e.name, e.type.text);
932
- }
933
- return `${Ee(t)}${n}`;
934
- }
935
- function Nt(e) {
936
- const t = me(e), n = t.isDefaultExported === !0, i = mt(e), a = e, r = e;
937
- let l, s = a.mixins ?? r.supertypes;
938
- s === void 0 ? a.superclass !== void 0 && (l = Oe(a.superclass)) : a.superclass === void 0 && s.length === 1 ? (l = Oe(s[0]), s = void 0) : l = `${e.name}Superclass`;
939
- let c = Wi(
940
- t.hasExplicitAbstract !== void 0,
941
- n,
942
- e.name,
943
- e.typeParameters,
944
- l,
945
- i
946
- );
947
- if (s !== void 0) {
948
- c += `
949
- declare const ${l}:`, a.superclass !== void 0 && (c += ` typeof ${Oe(a.superclass)}`);
950
- for (let p = 0; p < s.length; ++p) {
951
- const d = s[p];
952
- c += ` & typeof ${Oe(d)}`;
953
- }
954
- }
955
- return c;
956
- }
957
- function mt(e) {
958
- const t = e.members;
959
- let n = "";
960
- const i = me(e);
961
- if (e.kind === "mixin" && (n += `constructor(...args: any[]);
962
- `), i.eventTypesProperty !== void 0) {
963
- let l = Tn;
964
- if (i.eventTypesProperty.description !== void 0 || i.eventTypesProperty.docsTags !== void 0) {
965
- const c = he(i.eventTypesProperty);
966
- l = Ee(c);
967
- }
968
- const s = wt(i.eventTypesProperty);
969
- n += `${l}${s}
970
- `;
971
- }
972
- const a = e, r = e.customElement === !0;
973
- if (t !== void 0) {
974
- let l = "";
975
- for (let s = 0; s < t.length; ++s) {
976
- const c = t[s];
977
- if (c.inheritedFrom !== void 0 || c.privacy === "private")
978
- continue;
979
- const d = he(c);
980
- n += Ee(d), c.kind === "field" ? (r && c.getterType !== void 0 && (l += ` ${ye(!1, !1, !1, !1, !1, c.docsTags?.includes(U.required) !== !0, c.name, c.type.text)}
981
- `), n += wt(c)) : n += di(c, !1), n += `
982
- `;
983
- }
984
- l !== "" && (n += `${ye(!1, !1, !1, !1, !1, !1, ri, `{
985
- ${l}}`)}
986
- `);
987
- }
988
- if (r && a.events !== void 0) {
989
- let l = e.name;
990
- if (e.typeParameters !== void 0) {
991
- l += "<";
992
- for (let c = 0; c < e.typeParameters.length; ++c)
993
- l += e.typeParameters[c].name, c < e.typeParameters.length - 1 && (l += ", ");
994
- l += ">";
995
- }
996
- let s = "";
997
- for (let c = 0; c < a.events.length; ++c) {
998
- const p = a.events[c];
999
- if (p.inheritedFrom === void 0) {
1000
- const d = he(p);
1001
- n += `${Ee(d)}${ye(!1, !1, !1, !0, !1, !1, p.name, `import("${Sn}").TargetedEvent<this, ${p.type.text}>`)}
1002
- `;
1003
- }
1004
- s += ` ${ye(!1, !1, !1, !1, !1, !1, p.name, `${l}["${p.name}"]["detail"]`)}
1005
- `;
1006
- }
1007
- n += `${ye(!1, !1, !1, !0, !1, !1, "@eventTypes", `{
1008
- ${s}}`)}
1009
- `;
1010
- }
1011
- return n === "" ? "" : `
1012
- ${n.replaceAll(`
1013
- `, `
1014
- `).slice(0, -2)}`;
1015
- }
1016
- const Sn = "@arcgis/lumina";
1017
- function wt(e) {
1018
- let t = "";
1019
- const n = Fi(e), i = n.isAccessor === !0, a = e.readonly === !0;
1020
- if (e.getterType !== void 0 || i && a)
1021
- t += Bi(
1022
- e.privacy !== void 0,
1023
- n.isAbstract === !0,
1024
- e.static === !0,
1025
- e.name,
1026
- e.getterType?.text ?? e.type.text,
1027
- a ? void 0 : e.type.text
1028
- );
1029
- else {
1030
- const r = n.dtsTypeOverride ?? e.type.text, l = i ? !1 : r.endsWith(" | undefined"), s = l ? r.slice(0, -12) : r;
1031
- t += ye(
1032
- e.privacy !== void 0,
1033
- n.isAbstract === !0,
1034
- e.static === !0,
1035
- a,
1036
- i,
1037
- l,
1038
- e.name,
1039
- s
1040
- );
1041
- }
1042
- return t;
1043
- }
1044
- function di(e, t) {
1045
- const n = Et(e);
1046
- return _i(
1047
- e.privacy !== void 0,
1048
- n.isAbstract === !0,
1049
- e.static === !0,
1050
- n.hasQuestionToken === !0,
1051
- e.kind === "constructor" ? t ? "new" : "constructor" : e.kind === "call-signature" ? "" : e.name,
1052
- e.typeParameters,
1053
- e.parameters,
1054
- e.return?.type.text
1055
- );
1056
- }
1057
- const Tn = Ee({
1058
- description: void 0,
1059
- docsTags: [
1060
- {
1061
- name: "deprecated",
1062
- text: `Do not directly reference this property.
1063
- Use EventNames and EventTypes helpers from @arcgis/core/Evented`
1064
- }
1065
- ]
1066
- });
1067
- function ha() {
1068
- const e = Date.now();
1069
- return () => (Date.now() - e) / hn;
1070
- }
1071
- const hn = 1e3;
1072
- function En(e) {
1073
- const t = e.indexOf("/");
1074
- return t === -1 ? e : e.slice(0, t);
1075
- }
1076
- function Ut(e, t, n) {
1077
- if (!n.isComponentProject || n.config.context.isLuminaMinimalExtraction || n.config.documentation.publicStoryUrlPrefix === !1)
1078
- return;
1079
- const i = e.match(Cn)?.[1];
1080
- if (i === void 0) {
1081
- n.emitError(
1082
- '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',
1083
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1084
- );
1085
- return;
1086
- }
1087
- const a = [];
1088
- for (const l of e.matchAll(Pn)) {
1089
- const s = l[1], c = xn(s), p = e.indexOf("{", l.index), d = e.indexOf("}", p), m = e.slice(0, l.index).trimEnd();
1090
- let f = "";
1091
- if (m.endsWith("*/")) {
1092
- const C = m.lastIndexOf("/**");
1093
- f = m.slice(C + 3, -2).trim().replaceAll(Mn, "");
1094
- }
1095
- const u = e.slice(p, d).match(bn)?.[1] || c, g = Dn(c);
1096
- a.push({
1097
- description: `${u}${f ? `
1098
- ${f}` : ""}`,
1099
- url: `${n.config.documentation.publicStoryUrlPrefix}?path=/story/${i}--${g}&singleStory=true`,
1100
- source: void 0
1101
- });
1102
- }
1103
- if (a.length === 0) {
1104
- n.emitError(
1105
- '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',
1106
- { file: void 0, node: void 0, scope: t.slice(n.basePath.length) }
1107
- );
1108
- return;
1109
- }
1110
- const r = n.componentStories[i];
1111
- r === void 0 ? n.componentStories[i] = a : r.push(...a);
1112
- }
1113
- const Cn = /component: ["']([^"']+)["']/u, Pn = /export const (\w+)/gu, bn = /name: ["']([^"']+)["']/u, Mn = /^\s*\*\s?/gmu, Dn = (e) => e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]/giu, "-").replace(/-+/gu, "-").replace(/^-+/u, "").replace(/-+$/u, ""), xn = (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();
1114
- function ut(e, t) {
1115
- let i = t.startsWith("./") ? t.slice(2) : t, a = e;
1116
- for (; ; ) {
1117
- const r = a.lastIndexOf("/");
1118
- if (a = r === -1 ? "" : a.slice(0, r), i.startsWith("../"))
1119
- i = i.slice(3);
1120
- else
1121
- return a === "" ? i : `${a}/${i}`;
1122
- }
1123
- }
1124
- function ve(e, t) {
1125
- let n = 0;
1126
- for (; ; ) {
1127
- const a = e.indexOf("/", n) + 1;
1128
- if (a === 0)
1129
- break;
1130
- const r = e.slice(n, a), l = t.slice(n, a);
1131
- if (r !== l)
1132
- break;
1133
- n = a;
1134
- }
1135
- let i = "";
1136
- for (let a = n; a < e.length && (a = e.indexOf("/", a), a !== -1); ++a)
1137
- i += "../";
1138
- return i.length === 0 && (i = "./"), `${i}${t.slice(n)}`;
1139
- }
1140
- function Vt(e, t, n = 0) {
1141
- for (; n < e.length; ++n) {
1142
- const i = e[n];
1143
- i.start += t, i.end += t;
1144
- }
1145
- return e;
1146
- }
1147
- function Wt(e, t) {
1148
- if (e === t)
1149
- return !0;
1150
- if (typeof e != "object" || typeof t != "object" || e === null || t === null)
1151
- return !1;
1152
- if (Array.isArray(e)) {
1153
- if (!Array.isArray(t) || e.length !== t.length)
1154
- return !1;
1155
- for (let a = 0; a < e.length; ++a)
1156
- if (!Wt(e[a], t[a]))
1157
- return !1;
1158
- return !0;
1159
- }
1160
- const n = Object.keys(e), i = Object.keys(t);
1161
- if (n.length !== i.length)
1162
- return !1;
1163
- for (let a = 0; a < n.length; ++a) {
1164
- const r = n[a];
1165
- if (!Wt(e[r], t[r]))
1166
- return !1;
1167
- }
1168
- return !0;
1169
- }
1170
- function Rn(e, t) {
1171
- if (t.config.context.isLuminaMinimalExtraction || t.componentTagName === void 0)
1172
- return;
1173
- const n = e.moduleSpecifier.text, i = /\.(?:css|s[ac]ss|less|styl(?:us)?|postcss|pcss|sss)(\\?|$)/u;
1174
- if (!(n.startsWith(".") && i.test(n)))
1175
- return;
1176
- const r = n.split("?", 1)[0], l = tn.join(t.file.fileName, "..", r), s = Ji(l, "utf-8"), c = Ln(s);
1177
- c !== void 0 && (t.componentCssFileDocs = c);
1178
- }
1179
- function Ln(e) {
1180
- const t = [];
1181
- for (const n of e.matchAll(In)) {
1182
- const i = n.groups.name, a = n.groups.description.replaceAll(An, " ").trim();
1183
- t.push({
1184
- name: i,
1185
- deprecated: void 0,
1186
- summary: void 0,
1187
- description: a.endsWith("*") ? a.slice(0, -1).trim() : a,
1188
- syntax: void 0,
1189
- default: void 0
1190
- });
1191
- }
1192
- return t.length === 0 ? void 0 : t;
1193
- }
1194
- const In = /@prop\s+(?<name>--[\w-]+)\s*:(?<description>[^@/]+)/gu, An = /\n\s+\*? ?/gu;
1195
- function pi(e, t) {
1196
- if (e === void 0)
1197
- return !1;
1198
- for (let n = 0; n < e.length; ++n)
1199
- if (e[n].kind === t)
1200
- return !0;
1201
- return !1;
1202
- }
1203
- function it(e) {
1204
- if (e.modifiers === void 0)
1205
- return 0;
1206
- for (let t = 0; t < e.modifiers.length; ++t)
1207
- if (e.modifiers[t].kind === o.SyntaxKind.ExportKeyword)
1208
- return e.modifiers[t + 1]?.kind === o.SyntaxKind.DefaultKeyword ? 2 : 1;
1209
- return 0;
1210
- }
1211
- function mi(e, t) {
1212
- return e.endsWith("Properties") && t.apiClassLikeName === e.slice(0, -10);
1213
- }
1214
- const kn = /* @__PURE__ */ JSON.parse('{"AacBitstreamFormat":[],"AacEncoderConfig":[],"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":[],"AllAcceptedCredentialsOptions":[],"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":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/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":["AudioParam"],"AudioParamMap":["AudioParamMap"],"AudioProcessingEvent":["AudioProcessingEvent"],"AudioProcessingEventInit":[],"AudioSampleFormat":[],"AudioScheduledSourceNode":["AudioScheduledSourceNode"],"AudioScheduledSourceNodeEventMap":[],"AudioTimestamp":[],"AudioWorklet":["AudioWorklet"],"AudioWorkletNode":["AudioWorkletNode"],"AudioWorkletNodeEventMap":[],"AudioWorkletNodeOptions":[],"AuthenticationExtensionsClientInputs":[],"AuthenticationExtensionsClientInputsJSON":[],"AuthenticationExtensionsClientOutputs":[],"AuthenticationExtensionsClientOutputsJSON":[],"AuthenticationExtensionsLargeBlobInputs":[],"AuthenticationExtensionsLargeBlobInputsJSON":[],"AuthenticationExtensionsLargeBlobOutputs":[],"AuthenticationExtensionsLargeBlobOutputsJSON":[],"AuthenticationExtensionsPRFInputs":[],"AuthenticationExtensionsPRFInputsJSON":[],"AuthenticationExtensionsPRFOutputs":[],"AuthenticationExtensionsPRFOutputsJSON":[],"AuthenticationExtensionsPRFValues":[],"AuthenticationExtensionsPRFValuesJSON":[],"AuthenticationResponseJSON":[],"AuthenticatorAssertionResponse":["AuthenticatorAssertionResponse"],"AuthenticatorAssertionResponseJSON":[],"AuthenticatorAttachment":[],"AuthenticatorAttestationResponse":["AuthenticatorAttestationResponse"],"AuthenticatorAttestationResponseJSON":[],"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":["BaseAudioContext"],"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":["Cache"],"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":["arc"],"CanvasPathDrawingStyles":["lineCap"],"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":[],"CommandEvent":["CommandEvent"],"CommandEventInit":[],"Comment":["Comment"],"CompositeOperation":[],"CompositeOperationOrAuto":[],"CompositionEvent":["CompositionEvent"],"CompositionEventInit":[],"CompressionFormat":[],"CompressionStream":["CompressionStream"],"ComputedEffectTiming":[],"ComputedKeyframe":[],"ConcatArray":[],"confirm":["Window/confirm"],"console":[],"Console":["console"],"ConstantSourceNode":["ConstantSourceNode"],"ConstantSourceOptions":[],"ConstrainBoolean":[],"ConstrainBooleanOrDOMString":[],"ConstrainBooleanOrDOMStringParameters":[],"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":["CookieStoreManager"],"COSEAlgorithmIdentifier":[],"CountQueuingStrategy":["CountQueuingStrategy"],"createImageBitmap":["Window/createImageBitmap"],"Credential":["Credential"],"CredentialCreationOptions":[],"CredentialMediationRequirement":[],"CredentialPropertiesOutput":[],"CredentialRequestOptions":[],"CredentialsContainer":["CredentialsContainer"],"crossOriginIsolated":[],"crypto":[],"Crypto":["Crypto"],"CryptoKey":["CryptoKey"],"CryptoKeyPair":[],"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"],"CSSPageDescriptors":["CSSPageDescriptors"],"CSSPageRule":["CSSPageRule"],"CSSPerspective":["CSSPerspective"],"CSSPerspectiveValue":[],"CSSPositionTryDescriptors":["CSSPositionTryDescriptors"],"CSSPositionTryRule":["CSSPositionTryRule"],"CSSPropertyRule":["CSSPropertyRule"],"CSSRotate":["CSSRotate"],"CSSRule":["CSSRule"],"CSSRuleList":["CSSRuleList"],"CSSScale":["CSSScale"],"CSSScopeRule":["CSSScopeRule"],"CSSSkew":["CSSSkew"],"CSSSkewX":["CSSSkewX"],"CSSSkewY":["CSSSkewY"],"CSSStartingStyleRule":["CSSStartingStyleRule"],"CSSStyleDeclaration":[],"CSSStyleDeclarationBase":["CSSStyleDeclaration"],"CSSStyleProperties":["CSSStyleProperties"],"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":["CSSViewTransitionRule"],"CurrentUserDetailsOptions":[],"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":[],"DigitalCredential":[],"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":[],"GPU":["GPU"],"GPUAdapter":["GPUAdapter"],"GPUAdapterInfo":["GPUAdapterInfo"],"GPUAddressMode":[],"GPUAutoLayoutMode":[],"GPUBindGroup":["GPUBindGroup"],"GPUBindGroupDescriptor":[],"GPUBindGroupEntry":[],"GPUBindGroupLayout":["GPUBindGroupLayout"],"GPUBindGroupLayoutDescriptor":[],"GPUBindGroupLayoutEntry":[],"GPUBindingCommandsMixin":["setBindGroup"],"GPUBindingResource":[],"GPUBlendComponent":[],"GPUBlendFactor":[],"GPUBlendOperation":[],"GPUBlendState":[],"GPUBuffer":["GPUBuffer"],"GPUBufferBinding":[],"GPUBufferBindingLayout":[],"GPUBufferBindingType":[],"GPUBufferDescriptor":[],"GPUBufferDynamicOffset":[],"GPUBufferMapState":[],"GPUBufferUsageFlags":[],"GPUCanvasAlphaMode":[],"GPUCanvasConfiguration":[],"GPUCanvasContext":["GPUCanvasContext"],"GPUCanvasToneMapping":[],"GPUCanvasToneMappingMode":[],"GPUColor":[],"GPUColorDict":[],"GPUColorTargetState":[],"GPUColorWriteFlags":[],"GPUCommandBuffer":["GPUCommandBuffer"],"GPUCommandBufferDescriptor":[],"GPUCommandEncoder":["GPUCommandEncoder"],"GPUCommandEncoderDescriptor":[],"GPUCompareFunction":[],"GPUCompilationInfo":["GPUCompilationInfo"],"GPUCompilationMessage":["GPUCompilationMessage"],"GPUCompilationMessageType":[],"GPUComputePassDescriptor":[],"GPUComputePassEncoder":["GPUComputePassEncoder"],"GPUComputePassTimestampWrites":[],"GPUComputePipeline":["GPUComputePipeline"],"GPUComputePipelineDescriptor":[],"GPUCopyExternalImageDestInfo":[],"GPUCopyExternalImageSource":[],"GPUCopyExternalImageSourceInfo":[],"GPUCullMode":[],"GPUDebugCommandsMixin":["insertDebugMarker"],"GPUDepthBias":[],"GPUDepthStencilState":[],"GPUDevice":["GPUDevice"],"GPUDeviceDescriptor":[],"GPUDeviceEventMap":[],"GPUDeviceLostInfo":["GPUDeviceLostInfo"],"GPUDeviceLostReason":[],"GPUError":["GPUError"],"GPUErrorFilter":[],"GPUExtent3D":[],"GPUExtent3DDict":[],"GPUExternalTexture":["GPUExternalTexture"],"GPUExternalTextureBindingLayout":[],"GPUExternalTextureDescriptor":[],"GPUFeatureName":[],"GPUFilterMode":[],"GPUFlagsConstant":[],"GPUFragmentState":[],"GPUFrontFace":[],"GPUIndex32":[],"GPUIndexFormat":[],"GPUIntegerCoordinate":[],"GPUIntegerCoordinateOut":[],"GPUInternalError":["GPUInternalError"],"GPULoadOp":[],"GPUMapModeFlags":[],"GPUMipmapFilterMode":[],"GPUMultisampleState":[],"GPUObjectBase":["label"],"GPUObjectDescriptorBase":[],"GPUOrigin2D":[],"GPUOrigin2DDict":[],"GPUOrigin3D":[],"GPUOrigin3DDict":[],"GPUOutOfMemoryError":["GPUOutOfMemoryError"],"GPUPipelineBase":["getBindGroupLayout"],"GPUPipelineConstantValue":[],"GPUPipelineDescriptorBase":[],"GPUPipelineError":["GPUPipelineError"],"GPUPipelineErrorInit":[],"GPUPipelineErrorReason":[],"GPUPipelineLayout":["GPUPipelineLayout"],"GPUPipelineLayoutDescriptor":[],"GPUPowerPreference":[],"GPUPrimitiveState":[],"GPUPrimitiveTopology":[],"GPUProgrammableStage":[],"GPUQuerySet":["GPUQuerySet"],"GPUQuerySetDescriptor":[],"GPUQueryType":[],"GPUQueue":["GPUQueue"],"GPUQueueDescriptor":[],"GPURenderBundle":["GPURenderBundle"],"GPURenderBundleDescriptor":[],"GPURenderBundleEncoder":["GPURenderBundleEncoder"],"GPURenderBundleEncoderDescriptor":[],"GPURenderCommandsMixin":["draw"],"GPURenderPassColorAttachment":[],"GPURenderPassDepthStencilAttachment":[],"GPURenderPassDescriptor":[],"GPURenderPassEncoder":["GPURenderPassEncoder"],"GPURenderPassLayout":[],"GPURenderPassTimestampWrites":[],"GPURenderPipeline":["GPURenderPipeline"],"GPURenderPipelineDescriptor":[],"GPURequestAdapterOptions":[],"GPUSampleMask":[],"GPUSampler":["GPUSampler"],"GPUSamplerBindingLayout":[],"GPUSamplerBindingType":[],"GPUSamplerDescriptor":[],"GPUShaderModule":["GPUShaderModule"],"GPUShaderModuleDescriptor":[],"GPUShaderStageFlags":[],"GPUSignedOffset32":[],"GPUSize32":[],"GPUSize32Out":[],"GPUSize64":[],"GPUSize64Out":[],"GPUStencilFaceState":[],"GPUStencilOperation":[],"GPUStencilValue":[],"GPUStorageTextureAccess":[],"GPUStorageTextureBindingLayout":[],"GPUStoreOp":[],"GPUSupportedFeatures":["GPUSupportedFeatures"],"GPUSupportedLimits":["GPUSupportedLimits"],"GPUTexelCopyBufferInfo":[],"GPUTexelCopyBufferLayout":[],"GPUTexelCopyTextureInfo":[],"GPUTexture":["GPUTexture"],"GPUTextureAspect":[],"GPUTextureBindingLayout":[],"GPUTextureDescriptor":[],"GPUTextureDimension":[],"GPUTextureFormat":[],"GPUTextureSampleType":[],"GPUTextureUsageFlags":[],"GPUTextureView":["GPUTextureView"],"GPUTextureViewDescriptor":[],"GPUTextureViewDimension":[],"GPUUncapturedErrorEvent":["GPUUncapturedErrorEvent"],"GPUUncapturedErrorEventInit":[],"GPUValidationError":["GPUValidationError"],"GPUVertexAttribute":[],"GPUVertexBufferLayout":[],"GPUVertexFormat":[],"GPUVertexState":[],"GPUVertexStepMode":[],"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":["IDBDatabase"],"IDBDatabaseEventMap":[],"IDBDatabaseInfo":[],"IDBFactory":["IDBFactory"],"IDBIndex":["IDBIndex"],"IDBIndexParameters":[],"IDBKeyRange":["IDBKeyRange"],"IDBObjectStore":["IDBObjectStore"],"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":[],"ImageDataPixelFormat":[],"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":[],"DurationFormat":[],"DurationFormatDisplayOption":[],"DurationFormatLocaleMatcher":[],"DurationFormatOptions":[],"DurationFormatPart":[],"DurationFormatStyle":[],"DurationFormatUnit":[],"DurationFormatUnitSingular":[],"FormattableTemporalObject":[],"getCanonicalLocales":[],"LDMLPluralRule":[],"ListFormat":[],"ListFormatLocaleMatcher":[],"ListFormatOptions":[],"ListFormatStyle":[],"ListFormatType":[],"Locale":["getCalendars"],"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":[],"NumberFormatRangePartTypeRegistry":[],"NumberFormatRangePartTypes":[],"NumberRangeFormatPart":[],"PluralRules":[],"PluralRulesConstructor":[],"PluralRulesOptions":[],"PluralRuleType":[],"RelativeTimeFormat":[],"RelativeTimeFormatLocaleMatcher":[],"RelativeTimeFormatNumeric":[],"RelativeTimeFormatOptions":[],"RelativeTimeFormatPart":[],"RelativeTimeFormatStyle":[],"RelativeTimeFormatUnit":[],"RelativeTimeFormatUnitSingular":[],"ResolvedCollatorOptions":[],"ResolvedDateTimeFormatOptions":[],"ResolvedDisplayNamesOptions":[],"ResolvedDurationFormatOptions":[],"ResolvedListFormatOptions":[],"ResolvedNumberFormatOptions":[],"ResolvedNumberFormatOptionsUseGrouping":[],"ResolvedPluralRulesOptions":[],"ResolvedRelativeTimeFormatOptions":[],"ResolvedSegmenterOptions":[],"SegmentData":[],"Segmenter":[],"SegmenterOptions":[],"SegmentIterator":[],"Segments":[],"StringNumericLiteral":[],"supportedValuesOf":[],"TextInfo":["https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo#return_value"],"UnicodeBCP47LocaleIdentifier":[],"WeekInfo":["https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo#return_value"]}],"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":["MIDIOutput"],"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":[],"NavigateEvent":["NavigateEvent"],"NavigateEventInit":[],"navigation":[],"Navigation":["Navigation"],"NavigationActivation":["NavigationActivation"],"NavigationCurrentEntryChangeEvent":["NavigationCurrentEntryChangeEvent"],"NavigationCurrentEntryChangeEventInit":[],"NavigationDestination":["NavigationDestination"],"NavigationEventMap":[],"NavigationFocusReset":[],"NavigationHistoryBehavior":[],"NavigationHistoryEntry":["NavigationHistoryEntry"],"NavigationHistoryEntryEventMap":[],"NavigationInterceptHandler":[],"NavigationInterceptOptions":[],"NavigationNavigateOptions":[],"NavigationOptions":[],"NavigationPrecommitController":["NavigationPrecommitController"],"NavigationPrecommitHandler":[],"NavigationPreloadManager":["NavigationPreloadManager"],"NavigationPreloadState":[],"NavigationReloadOptions":[],"NavigationResult":[],"NavigationScrollBehavior":[],"NavigationTimingType":[],"NavigationTransition":["NavigationTransition"],"NavigationType":[],"NavigationUpdateCurrentEntryOptions":[],"navigator":[],"Navigator":["Navigator"],"NavigatorAutomationInformation":["webdriver"],"NavigatorBadge":["clearAppBadge"],"NavigatorConcurrentHardware":["hardwareConcurrency"],"NavigatorContentUtils":["registerProtocolHandler"],"NavigatorCookies":["cookieEnabled"],"NavigatorGPU":["gpu"],"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":[],"oncommand":[],"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":[],"OrientationLockType":[],"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":[],"PaintTimingMixin":[],"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":[],"PopoverTargetAttributes":["popoverTargetAction"],"PopStateEvent":["PopStateEvent"],"PopStateEventInit":[],"PositionAlignSetting":[],"PositionCallback":[],"PositionErrorCallback":[],"PositionOptions":[],"postMessage":["DedicatedWorkerGlobalScope/postMessage"],"PredefinedColorSpace":[],"PremultiplyAlpha":[],"PresentationStyle":[],"print":["Window/print"],"ProcessingInstruction":["ProcessingInstruction"],"ProgressEvent":["ProgressEvent"],"ProgressEventInit":[],"Promise":["https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise"],"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":[],"PublicKeyCredentialParameters":[],"PublicKeyCredentialRequestOptions":[],"PublicKeyCredentialRequestOptionsJSON":[],"PublicKeyCredentialRpEntity":[],"PublicKeyCredentialType":[],"PublicKeyCredentialUserEntity":[],"PublicKeyCredentialUserEntityJSON":[],"PushEncryptionKeyName":[],"PushEvent":["PushEvent"],"PushEventInit":[],"PushManager":["PushManager"],"PushManagerAttribute":["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"],"ReadableStreamBYOBReaderReadOptions":[],"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":[],"RegistrationResponseJSON":[],"releaseEvents":["Window/releaseEvents"],"RemotePlayback":["RemotePlayback"],"RemotePlaybackAvailabilityCallback":[],"RemotePlaybackEventMap":[],"RemotePlaybackState":[],"removeEventListener":[],"RenderingContext":[],"Report":[],"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":[],"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"],"RTCRtpReceiverTransform":[],"RTCRtpScriptTransform":["RTCRtpScriptTransform"],"RTCRtpScriptTransformer":["RTCRtpScriptTransformer"],"RTCRtpSender":["RTCRtpSender"],"RTCRtpSenderTransform":[],"RTCRtpSendParameters":[],"RTCRtpStreamStats":[],"RTCRtpSynchronizationSource":[],"RTCRtpTransceiver":["RTCRtpTransceiver"],"RTCRtpTransceiverDirection":[],"RTCRtpTransceiverInit":[],"RTCSctpTransport":["RTCSctpTransport"],"RTCSctpTransportEventMap":[],"RTCSctpTransportState":[],"RTCSdpType":[],"RTCSentRtpStreamStats":[],"RTCSessionDescription":["RTCSessionDescription"],"RTCSessionDescriptionCallback":[],"RTCSessionDescriptionInit":[],"RTCSetParameterOptions":[],"RTCSignalingState":[],"RTCStats":[],"RTCStatsIceCandidatePairState":[],"RTCStatsReport":["RTCStatsReport"],"RTCStatsType":[],"RTCTrackEvent":["RTCTrackEvent"],"RTCTrackEventInit":[],"RTCTransformEvent":["RTCTransformEvent"],"RTCTransportStats":[],"SafeArray":[],"Sanitizer":["allowAttribute"],"SanitizerAttribute":[],"SanitizerAttributeNamespace":[],"SanitizerConfig":[],"SanitizerElement":[],"SanitizerElementNamespace":[],"SanitizerElementNamespaceWithAttributes":[],"SanitizerElementWithAttributes":[],"SanitizerPresets":[],"scheduler":[],"Scheduler":["Scheduler"],"SchedulerPostTaskCallback":[],"SchedulerPostTaskOptions":[],"screen":[],"Screen":["Screen"],"screenLeft":[],"ScreenOrientation":["ScreenOrientation"],"ScreenOrientationEventMap":[],"screenTop":[],"screenX":[],"screenY":[],"ScriptProcessorNode":["ScriptProcessorNode"],"ScriptProcessorNodeEventMap":[],"scroll":["Window/scroll"],"ScrollAxis":[],"scrollbars":[],"ScrollBehavior":[],"scrollBy":["Window/scrollBy"],"ScrollIntoViewOptions":[],"ScrollLogicalPosition":[],"ScrollOptions":[],"ScrollRestoration":[],"ScrollSetting":[],"ScrollTimeline":["ScrollTimeline"],"ScrollTimelineOptions":[],"scrollTo":["Window/scrollTo"],"ScrollToOptions":[],"scrollX":[],"scrollY":[],"SecurityPolicyViolationEvent":["SecurityPolicyViolationEvent"],"SecurityPolicyViolationEventDisposition":[],"SecurityPolicyViolationEventInit":[],"Selection":["Selection"],"SelectionDirection":[],"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":[],"ShowPopoverOptions":[],"SlotAssignmentMode":[],"Slottable":["assignedSlot"],"SourceBuffer":["SourceBuffer"],"SourceBufferEventMap":[],"SourceBufferList":["SourceBufferList"],"SourceBufferListEventMap":[],"SpeechRecognitionAlternative":["SpeechRecognitionAlternative"],"SpeechRecognitionErrorCode":[],"SpeechRecognitionErrorEvent":["SpeechRecognitionErrorEvent"],"SpeechRecognitionErrorEventInit":[],"SpeechRecognitionEvent":["SpeechRecognitionEvent"],"SpeechRecognitionEventInit":[],"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":[],"StylePropertyMap":["StylePropertyMap"],"StylePropertyMapReadOnly":["StylePropertyMapReadOnly"],"StylePropertyMapReadOnlyIterator":[],"StyleSheet":["StyleSheet"],"StyleSheetList":["StyleSheetList"],"SubmitEvent":["SubmitEvent"],"SubmitEventInit":[],"SubtleCrypto":["SubtleCrypto"],"SuppressedError":[],"SuppressedErrorConstructor":[],"SvcOutputMetadata":[],"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":[],"TaskController":["TaskController"],"TaskControllerInit":[],"TaskPriority":[],"TaskPriorityChangeEvent":["TaskPriorityChangeEvent"],"TaskPriorityChangeEventInit":[],"TaskSignal":["TaskSignal"],"TaskSignalAnyInit":[],"TaskSignalEventMap":[],"TemplateStringsArray":[],"Temporal":[null,{"CalendarLike":[],"DateLikeObject":[],"DateTimeLikeObject":[],"DateUnit":[],"DisambiguationOptions":[],"Duration":[],"DurationConstructor":[],"DurationLike":[],"DurationLikeObject":[],"DurationRelativeToOptions":[],"DurationRoundingOptions":[],"DurationToStringOptions":[],"DurationTotalOptions":[],"Instant":[],"InstantConstructor":[],"InstantLike":[],"InstantToStringOptions":[],"Now":[null,{"instant":[],"plainDateISO":[],"plainDateTimeISO":[],"plainTimeISO":[],"timeZoneId":[],"zonedDateTimeISO":[]}],"OverflowOptions":[],"PartialTemporalLike":[],"PlainDate":[],"PlainDateConstructor":[],"PlainDateLike":[],"PlainDateTime":[],"PlainDateTimeConstructor":[],"PlainDateTimeLike":[],"PlainDateTimeToStringOptions":[],"PlainDateToStringOptions":[],"PlainDateToZonedDateTimeOptions":[],"PlainMonthDay":[],"PlainMonthDayConstructor":[],"PlainMonthDayLike":[],"PlainMonthDayToPlainDateOptions":[],"PlainTime":[],"PlainTimeConstructor":[],"PlainTimeLike":[],"PlainTimeToStringOptions":[],"PlainYearMonth":[],"PlainYearMonthConstructor":[],"PlainYearMonthLike":[],"PlainYearMonthToPlainDateOptions":[],"PluralizeUnit":[],"RoundingOptions":[],"RoundingOptionsWithLargestUnit":[],"TimeLikeObject":[],"TimeUnit":[],"TimeZoneLike":[],"ToStringRoundingOptions":[],"ToStringRoundingOptionsWithFractionalSeconds":[],"TransitionOptions":[],"YearMonthLikeObject":[],"ZonedDateTime":[],"ZonedDateTimeConstructor":[],"ZonedDateTimeFromOptions":[],"ZonedDateTimeLike":[],"ZonedDateTimeLikeObject":[],"ZonedDateTimeToStringOptions":[]}],"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"],"TimelineRangeOffset":[],"TimeRanges":["TimeRanges"],"TimerHandler":[],"ToggleEvent":["ToggleEvent"],"ToggleEventInit":[],"TogglePopoverOptions":[],"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":[],"UnknownCredentialOptions":[],"Uppercase":["https://www.typescriptlang.org/docs/handbook/utility-types.html#intrinsic-string-manipulation-types"],"URIError":[],"URIErrorConstructor":[],"URL":["URL"],"URLPattern":["URLPattern"],"URLPatternComponentResult":[],"URLPatternInit":[],"URLPatternInput":[],"URLPatternOptions":[],"URLPatternResult":[],"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":[],"ViewTimeline":["ViewTimeline"],"ViewTimelineOptions":[],"ViewTransition":["ViewTransition"],"ViewTransitionTypeSet":["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,{"AddressType":[],"AddressValue":[],"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"],"Exception":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Exception"],"ExceptionOptions":[],"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"],"JSTag":[],"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":[],"Tag":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/Tag"],"TagType":[],"validate":["https://developer.mozilla.org/docs/WebAssembly/Reference/JavaScript_interface/validate_static"],"ValueType":[],"ValueTypeMap":[],"WebAssemblyCompileOptions":[],"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":["WEBGL_draw_buffers"],"WEBGL_lose_context":["WEBGL_lose_context"],"WEBGL_multi_draw":["WEBGL_multi_draw"],"WebGL2RenderingContext":["WebGL2RenderingContext"],"WebGL2RenderingContextBase":["beginQuery"],"WebGL2RenderingContextOverloads":["bufferData"],"WebGLActiveInfo":["WebGLActiveInfo"],"WebGLBuffer":["WebGLBuffer"],"WebGLContextAttributes":[],"WebGLContextEvent":["WebGLContextEvent"],"WebGLContextEventInit":[],"WebGLFramebuffer":["WebGLFramebuffer"],"WebGLPowerPreference":[],"WebGLProgram":["WebGLProgram"],"WebGLQuery":["WebGLQuery"],"WebGLRenderbuffer":["WebGLRenderbuffer"],"WebGLRenderingContext":["WebGLRenderingContext"],"WebGLRenderingContextBase":["drawingBufferColorSpace"],"WebGLRenderingContextOverloads":["bufferData"],"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":[],"WGSLLanguageFeatures":["WGSLLanguageFeatures"],"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"]}'), Gn = {
1215
- globals: kn
1216
- }, ft = Object.freeze(
1217
- Object.assign(/* @__PURE__ */ Object.create(null), Gn.globals)
1218
- ), yt = "https://developer.mozilla.org/docs/Web/API/";
1219
- function ui(e, t, n = "*", i) {
1220
- if (e === "@arcgis/core")
1221
- return Fn(t, n, i);
1222
- }
1223
- function Fn(e, t, n) {
1224
- if (!(e === void 0 || e === "interfaces.d.ts")) {
1225
- const i = `https://${n.config.documentation.host}${On}${Z(e)}/`;
1226
- return Gi(i, t === "default" || t === "*" ? void 0 : t, void 0);
1227
- }
1228
- }
1229
- const On = ei("core");
1230
- function Je(e, t, n, i) {
1231
- i.implicitPublicModules ??= /* @__PURE__ */ Object.create(null);
1232
- const a = i.implicitPublicModules[e];
1233
- a === void 0 ? i.implicitPublicModules[e] = {
1234
- actualModulePath: void 0,
1235
- // moduleResolution:Node16 may use .js extension to refer to non-JS files
1236
- sourcePath: t.endsWith(".js") ? t.slice(0, -3) : t,
1237
- pendingNames: n === "*" ? void 0 : /* @__PURE__ */ new Set([n]),
1238
- extractedNames: /* @__PURE__ */ new Set()
1239
- } : a.pendingNames !== void 0 && n !== "*" ? a.pendingNames.add(n) : a.pendingNames = void 0;
1240
- }
1241
- function Nn(e, t) {
1242
- const n = it(e);
1243
- if (t.pendingNames === void 0)
1244
- return n > 0;
1245
- if (n === 2 && t.pendingNames.has("default"))
1246
- return !0;
1247
- const a = (e.name ?? e.declarationList?.declarations[0].name).escapedText;
1248
- return t.pendingNames.has(a);
1249
- }
1250
- function qe(e, t, n, i, a) {
1251
- const r = n.program.getTypeChecker(), l = e.flags & o.SymbolFlags.Alias ? r.getAliasedSymbol(e) : e, s = Bn(l), c = t.escapedText, p = s ?? c, d = l?.declarations?.[0];
1252
- if (d === void 0)
1253
- return n.emitError(`Unable to resolve the declaration file name for the type ${p}`, {
1254
- file: n.file,
1255
- node: void 0
1256
- }), {
1257
- name: p,
1258
- module: void 0,
1259
- package: ce,
1260
- viewUrl: void 0,
1261
- start: i,
1262
- end: a
1263
- };
1264
- const m = d.getSourceFile(), { packageName: f, modulePath: u } = Un(m.fileName, n, p);
1265
- if (f === "@arcgis/core" && u === "interfaces.js")
1266
- return n.moduleContext.importsMap.__esri = {
1267
- type: "*",
1268
- modulePath: void 0,
1269
- specifier: `${f}/${u}`,
1270
- replacementName: void 0,
1271
- actualName: void 0,
1272
- wasUsed: !0
1273
- }, {
1274
- name: "__esri",
1275
- module: u,
1276
- package: f,
1277
- viewUrl: void 0,
1278
- start: i,
1279
- end: a
1280
- };
1281
- if (f === "typescript" && u?.startsWith("lib/") === !0) {
1282
- let v = ft[p], P, h = p;
1283
- if (v === void 0) {
1284
- for (let R = d.parent; R !== void 0; R = R.parent)
1285
- if (o.isModuleDeclaration(R) && o.isIdentifier(R.name)) {
1286
- P = R.name.escapedText, v = ft[P]?.[1]?.[p], h = `${P}.${p}`, Me(t, h);
1287
- break;
1288
- }
1289
- }
1290
- return {
1291
- name: h,
1292
- module: void 0,
1293
- package: ce,
1294
- viewUrl: v?.[0]?.startsWith("https") === !1 ? `${yt}${v[0]}` : v?.[0] ?? void 0,
1295
- start: i,
1296
- end: i + h.length
1297
- };
1298
- }
1299
- let g = p;
1300
- 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") {
1301
- if (s.endsWith("Element")) {
1302
- const v = o.isInterfaceDeclaration(d) ? d.heritageClauses?.[0]?.types[0]?.expression : o.isTypeAliasDeclaration(d) && o.isTypeReferenceNode(d.type) ? d.type.typeName : void 0;
1303
- if (v !== void 0 && o.isIdentifier(v)) {
1304
- const P = r.getSymbolAtLocation(v);
1305
- if (P !== void 0) {
1306
- const h = r.getAliasedSymbol(P);
1307
- return qe(
1308
- h,
1309
- t,
1310
- n,
1311
- i,
1312
- i + h.escapedName.length
1313
- );
1314
- }
1315
- }
1316
- } else if (
1317
- // Only supporting the syntax after
1318
- // https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/10794
1319
- // As this interface is not likely to be used directly.
1320
- 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"
1321
- ) {
1322
- const v = r.getSymbolAtLocation(d.type.objectType.typeName);
1323
- if (v !== void 0) {
1324
- const P = r.getAliasedSymbol(v), h = qe(
1325
- P,
1326
- t,
1327
- n,
1328
- i,
1329
- i + P.escapedName.length
1330
- );
1331
- return Me(t, c), Me(t, `${h.name}["@eventTypes"]`), h;
1332
- }
1333
- }
1334
- }
1335
- if (f !== void 0 || u !== void 0) {
1336
- const v = s ?? ((u ?? f).split("/").pop()?.replaceAll(wn, "") || "type");
1337
- for (let P = 1; ; P += 1) {
1338
- const h = P === 1 ? v : `${v}${P}`;
1339
- let R = n.functionLikeTypeParameters?.has(h) === !0 || n.objectLikeTypeParameters?.has(h) === !0 || n.localDeclarations.has(h);
1340
- if (R)
1341
- continue;
1342
- const I = n.moduleContext.importsMap[h], y = I !== void 0 && (f === void 0 ? I.modulePath === u : I.specifier === f + (u === void 0 ? "" : `/${u}`));
1343
- if (y ? I.wasUsed = !0 : R = n.moduleContext.importsMap[h] !== void 0, R)
1344
- continue;
1345
- const k = h !== c;
1346
- k && (Me(t, h), a = i + h.length);
1347
- const M = Kn(l), L = M === "named";
1348
- L || (g = M), f === void 0 && !n.config.strict && Je(
1349
- u,
1350
- m.fileName.slice(n.basePath.length),
1351
- g,
1352
- n
1353
- ), y || (n.moduleContext.importsMap[h] = {
1354
- type: M,
1355
- modulePath: f === void 0 ? u : void 0,
1356
- specifier: f === void 0 ? ve(ne(n.apiModule).dtsPath, u) : f + (u === void 0 ? "" : `/${u}`),
1357
- replacementName: void 0,
1358
- actualName: L && k ? s : void 0,
1359
- wasUsed: !0
1360
- });
1361
- break;
1362
- }
1363
- } else if (n.localPrivateDeclarations?.has(c) === !0)
1364
- n.localPrivateDeclarations.set(
1365
- c,
1366
- Math.abs(n.localPrivateDeclarations.get(c))
1367
- );
1368
- else {
1369
- if (d.kind === o.SyntaxKind.TypeParameter)
1370
- return {
1371
- name: c,
1372
- module: void 0,
1373
- package: void 0,
1374
- viewUrl: void 0,
1375
- start: i,
1376
- end: a
1377
- };
1378
- n.localDeclarations.has(c) || n.emitError(
1379
- `@public declaration referenced non-public ${ie("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.`,
1380
- {
1381
- file: n.file,
1382
- node: void 0
1383
- }
1384
- );
1385
- }
1386
- const C = g === "default" || g === "*" ? void 0 : s;
1387
- return f ? {
1388
- name: g,
1389
- module: u || void 0,
1390
- package: f,
1391
- viewUrl: ui(f, u ?? "", C, n),
1392
- start: i,
1393
- end: a
1394
- } : {
1395
- name: g,
1396
- module: u,
1397
- package: void 0,
1398
- viewUrl: Ve(u ?? n.apiModule.path, C, void 0, n),
1399
- start: i,
1400
- end: a
1401
- };
1402
- }
1403
- const wn = /[^a-zA-Z0-9$_]/gu;
1404
- function Un(e, t, n) {
1405
- const i = e.lastIndexOf(st);
1406
- if (i !== -1) {
1407
- const s = e.slice(i + st.length), c = fi(s), p = e.slice(
1408
- 0,
1409
- i + st.length + c.packageName.length
1410
- ), d = dt(p);
1411
- return _t(c), c.modulePath = Bt(c.modulePath, d, t, n), c;
1412
- }
1413
- const r = e.indexOf(Vn);
1414
- if (r !== -1) {
1415
- const s = e.slice(0, r), c = dt(s), p = c.name, d = e.slice(r + 1), m = Bt(d, c, t, n), f = { packageName: p, modulePath: m };
1416
- return _t(f), f;
1417
- }
1418
- if (e.startsWith(t.basePath)) {
1419
- const s = e.slice(t.basePath.length), c = We(Z(s), t);
1420
- return c === t.apiModule.path ? {
1421
- packageName: void 0,
1422
- modulePath: void 0
1423
- } : {
1424
- packageName: void 0,
1425
- modulePath: c
1426
- };
1427
- } else
1428
- return t.emitError(
1429
- `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)`,
1430
- {
1431
- file: t.file,
1432
- node: void 0
1433
- }
1434
- ), {
1435
- packageName: ce,
1436
- modulePath: void 0
1437
- };
1438
- }
1439
- const st = "/node_modules/", Vn = "/dist/";
1440
- function fi(e) {
1441
- const t = pt(e), n = e.length === t.length ? void 0 : e.slice(t.length + 1);
1442
- return { packageName: t, modulePath: n };
1443
- }
1444
- function _t(e) {
1445
- e.packageName?.startsWith("@types/") === !0 && (e.packageName = e.packageName.slice(7));
1446
- }
1447
- function Bt(e, t, n, i) {
1448
- const a = Z(e);
1449
- if (t.exports === void 0)
1450
- return `${a}.js`;
1451
- const r = `./${a}`, l = "@arcgis/lumina" in (t.dependencies ?? {}) && r.endsWith("/customElement") ? `${r.slice(0, -13)}index` : r;
1452
- let s = vt(t.exports, ".", l);
1453
- if (s === void 0 && (s = Wn[t.name]?.(a)), s !== void 0)
1454
- return s === "." ? void 0 : s.slice(2);
1455
- const c = n.moduleContext.importsMap[i];
1456
- if (c !== void 0 && c.modulePath === void 0) {
1457
- const p = fi(c.specifier);
1458
- if (p.packageName === t.name)
1459
- return p.modulePath;
1460
- }
1461
- return n.emitError(
1462
- `Need explicit type annotation for where the ${ie("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.`,
1463
- { file: n.file, node: void 0 }
1464
- ), e;
1465
- }
1466
- const Wn = {
1467
- // REFACTOR: dissolve barrel files (match @arcgis/core). then this won't be needed
1468
- "@arcgis/lumina"(e) {
1469
- return e.startsWith("dist/globalTypes/") || e.startsWith("dist/typings/") ? "./globalTypes" : e.startsWith("dist/controllers/accessor/") ? "./controllers/accessor" : e.startsWith("dist/controllers/") ? "./controllers" : e.startsWith("dist/jsx/") || !e.slice(5).includes("/") ? "." : void 0;
1470
- }
1471
- };
1472
- function vt(e, t, n) {
1473
- if (typeof e == "string")
1474
- return _n(t, e, n);
1475
- if (Array.isArray(e))
1476
- for (let i = 0; i < e.length; ++i) {
1477
- const a = vt(e[i], t, n);
1478
- if (a !== void 0)
1479
- return a;
1480
- }
1481
- if (typeof e == "object" && e !== null)
1482
- for (const [i, a] of Object.entries(e)) {
1483
- const l = i.startsWith(".") ? i : t, s = vt(a, l, n);
1484
- if (s !== void 0)
1485
- return s;
1486
- }
1487
- }
1488
- function _n(e, t, n) {
1489
- const i = Z(t);
1490
- if (i === n)
1491
- return e;
1492
- const a = i.indexOf("*");
1493
- if (a === -1)
1494
- return;
1495
- const r = i.slice(0, a);
1496
- if (!n.startsWith(r))
1497
- return;
1498
- const l = i.slice(a + 1), s = n.slice(r.length), c = t.slice(i.length);
1499
- if (l === "") {
1500
- const m = Z(e), f = e.slice(m.length), u = m === e && c === "" ? ".js" : f;
1501
- return m.slice(0, -1) + s + u;
1502
- }
1503
- if (!s.endsWith(l))
1504
- return;
1505
- const p = s.slice(0, -l.length), d = e.indexOf("*");
1506
- if (d !== -1)
1507
- return e.slice(0, d) + p + e.slice(d + 1);
1508
- }
1509
- function Bn(e) {
1510
- const t = e.getDeclarations()?.[0];
1511
- 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)))
1512
- return t.name.escapedText;
1513
- const n = e.escapedName;
1514
- return n === "default" || n.startsWith("__") ? void 0 : n;
1515
- }
1516
- function Kn(e) {
1517
- return e.flags & o.SymbolFlags.ValueModule ? "*" : Hn(e) ? "default" : "named";
1518
- }
1519
- function Hn(e) {
1520
- const t = e.escapedName;
1521
- if (t === "default" || // CommonJS "export ="
1522
- t === "export=")
1523
- return !0;
1524
- const n = e.getDeclarations();
1525
- if (n !== void 0)
1526
- for (let i = 0; i < n.length; ++i) {
1527
- const a = n[i];
1528
- if (o.canHaveModifiers(a) && o.getModifiers(a)?.some((r) => r.kind === o.SyntaxKind.DefaultKeyword))
1529
- return !0;
1530
- }
1531
- return !1;
1532
- }
1533
- function Ct(e, t, n, i) {
1534
- const a = { file: n, node: e };
1535
- return e.getText(n).includes("* @public") && i.emitError(
1536
- "@public is not permitted in nested types. See options in documentation: https://webgis.esri.com/references/api-extractor/advanced-patterns#describing-nested-object-types and https://webgis.esri.com/references/api-extractor/api-node-kinds#variables",
1537
- a
1538
- ), H(e, t, a, i);
1539
- }
1540
- const w = {
1541
- false: 0,
1542
- /**
1543
- * True for literal types. False for object types
1544
- */
1545
- shallow: 2,
1546
- true: 1
1547
- };
1548
- function H(e, t, n, i) {
1549
- if (e.kind === o.SyntaxKind.TrueKeyword || e.kind === o.SyntaxKind.FalseKeyword)
1550
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BooleanKeyword) : o.factory.createLiteralTypeNode(e);
1551
- if (e.kind === o.SyntaxKind.NullKeyword)
1552
- return o.factory.createLiteralTypeNode(e);
1553
- if (e.kind === o.SyntaxKind.UndefinedKeyword || o.isVoidExpression(e))
1554
- return o.factory.createKeywordTypeNode(o.SyntaxKind.UndefinedKeyword);
1555
- if (o.isStringLiteral(e) || o.isNoSubstitutionTemplateLiteral(e))
1556
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword) : o.factory.createLiteralTypeNode(e);
1557
- if (o.isTemplateExpression(e))
1558
- return Te(n, t, i) ?? o.factory.createKeywordTypeNode(o.SyntaxKind.StringKeyword);
1559
- if (o.isNumericLiteral(e))
1560
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword) : o.factory.createLiteralTypeNode(e);
1561
- if (o.isBigIntLiteral(e))
1562
- return t === w.false ? o.factory.createKeywordTypeNode(o.SyntaxKind.BigIntKeyword) : o.factory.createLiteralTypeNode(e);
1563
- if (o.isAsExpression(e) || o.isTypeAssertionExpression(e))
1564
- return o.isTypeReferenceNode(e.type) && o.isIdentifier(e.type.typeName) && e.type.typeName.escapedText === "const" ? H(e.expression, w.true, n, i) : e.type;
1565
- if (o.isSatisfiesExpression(e))
1566
- return t === w.false ? e.type : H(e.expression, t, n, i);
1567
- if (o.isRegularExpressionLiteral(e))
1568
- return o.factory.createTypeReferenceNode(o.factory.createIdentifier("RegExp"));
1569
- if (o.isArrayLiteralExpression(e)) {
1570
- if (i.isInLuminaMinimalExtraction)
1571
- return Ue;
1572
- const a = t === w.shallow ? w.false : t, r = new Array(e.elements.length);
1573
- for (let l = 0; l < r.length; ++l) {
1574
- const s = e.elements[l];
1575
- r[l] = H(s, a, { ...n, node: s }, i);
1576
- }
1577
- return a ? o.factory.createTypeOperatorNode(o.SyntaxKind.ReadonlyKeyword, o.factory.createTupleTypeNode(r)) : o.factory.createArrayTypeNode(
1578
- r.length === 1 ? r[0] : o.factory.createUnionTypeNode(r)
1579
- );
1580
- }
1581
- if (o.isObjectLiteralExpression(e)) {
1582
- if (i.isInLuminaMinimalExtraction)
1583
- return Ue;
1584
- const a = t === w.shallow ? w.false : t, r = new Array(e.properties.length);
1585
- for (let l = 0; l < r.length; ++l) {
1586
- const s = e.properties[l];
1587
- r[l] = $n(s, a, { ...n, node: s }, i);
1588
- }
1589
- return o.factory.createTypeLiteralNode(r);
1590
- }
1591
- if (o.isPrefixUnaryExpression(e)) {
1592
- if (e.operator !== o.SyntaxKind.MinusToken)
1593
- return be(n, Q, t, i);
1594
- if (t === w.false)
1595
- return o.factory.createKeywordTypeNode(o.SyntaxKind.NumberKeyword);
1596
- {
1597
- const a = H(e.operand, t, n, i);
1598
- return o.isLiteralTypeNode(a) ? o.factory.createLiteralTypeNode(
1599
- o.factory.createPrefixUnaryExpression(o.SyntaxKind.MinusToken, a.literal)
1600
- ) : be(n, Q, t, i);
1601
- }
1602
- }
1603
- if (o.isParenthesizedExpression(e))
1604
- return H(e.expression, t, n, i);
1605
- if (o.isNewExpression(e)) {
1606
- if (i.isInLuminaMinimalExtraction)
1607
- return Ue;
1608
- if (o.isIdentifier(e.expression)) {
1609
- const r = e.expression.escapedText;
1610
- let l = e.typeArguments, s = !1;
1611
- if ((r === "Set" || r === "WeakSet") && l === void 0)
1612
- if (e.arguments?.[0] !== void 0) {
1613
- const c = H(
1614
- e.arguments[0],
1615
- t,
1616
- { ...n, node: e.arguments[0] },
1617
- i
1618
- );
1619
- c.kind === o.SyntaxKind.ArrayType && (l = [c.elementType]);
1620
- } else
1621
- s = !0;
1622
- else
1623
- s ||= (r === "Map" || r === "WeakMap") && l?.length !== 2;
1624
- if (!s)
1625
- return o.factory.createTypeReferenceNode(e.expression, l);
1626
- }
1627
- const a = H(e.expression, t, n, i);
1628
- if (o.isTypeReferenceNode(a))
1629
- return a;
1630
- }
1631
- if (o.isConditionalExpression(e))
1632
- return o.factory.createUnionTypeNode([
1633
- H(e.whenTrue, t, { ...n, node: e.whenTrue }, i),
1634
- H(e.whenFalse, t, { ...n, node: e.whenFalse }, i)
1635
- ]);
1636
- if (o.isIdentifier(e))
1637
- return Te(n, t, i) ?? o.factory.createTypeQueryNode(e);
1638
- if (o.isPropertyAccessExpression(e) && o.isIdentifier(e.name)) {
1639
- const a = Te(n, t, i);
1640
- if (a !== void 0)
1641
- return a;
1642
- const r = H(e.expression, t, n, i);
1643
- return o.isTypeQueryNode(r) ? o.factory.createTypeQueryNode(o.factory.createQualifiedName(r.exprName, e.name)) : r === gt ? gt : be(n, Q, t, i);
1644
- }
1645
- if (o.isCallExpression(e)) {
1646
- const a = e.expression, r = e.arguments.at(0);
1647
- 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))
1648
- return o.factory.createTypeReferenceNode(a.expression, [
1649
- o.factory.createTypeReferenceNode(r)
1650
- ]);
1651
- const l = Te(n, t, i);
1652
- if (l !== void 0)
1653
- return l;
1654
- const s = H(a, t, n, i);
1655
- return o.isTypeQueryNode(s) ? o.factory.createTypeReferenceNode(o.factory.createIdentifier("ReturnType"), [
1656
- o.factory.createTypeQueryNode(s.exprName, e.typeArguments)
1657
- ]) : be(n, Q, t, i);
1658
- }
1659
- if (o.isArrowFunction(e)) {
1660
- if (i.isInLuminaMinimalExtraction)
1661
- return Ue;
1662
- const a = t === w.shallow ? w.false : t;
1663
- return o.factory.createFunctionTypeNode(
1664
- e.typeParameters,
1665
- St(e.parameters, a, n, i),
1666
- e.type ?? (o.isBlock(e.body) ? Qe(e, i) ?? X(n, Q, i) : H(e.body, a, n, i))
1667
- );
1668
- }
1669
- return be(n, Q, t, i);
1670
- }
1671
- function $n(e, t, n, i) {
1672
- const a = t === w.false ? void 0 : Xn;
1673
- return o.isPropertyAssignment(e) ? o.factory.createPropertySignature(
1674
- a,
1675
- e.name,
1676
- void 0,
1677
- H(e.initializer, t, { ...n, node: e.initializer }, i)
1678
- ) : o.isShorthandPropertyAssignment(e) ? o.factory.createPropertySignature(
1679
- a,
1680
- e.name,
1681
- void 0,
1682
- Te(n, t, i) ?? o.factory.createTypeQueryNode(o.factory.createIdentifier(e.name.escapedText))
1683
- ) : o.isSpreadAssignment(e) ? o.factory.createPropertySignature(
1684
- a,
1685
- "_spread",
1686
- void 0,
1687
- X(n, Q, i)
1688
- ) : o.isMethodDeclaration(e) ? o.factory.createPropertySignature(
1689
- a,
1690
- e.name,
1691
- void 0,
1692
- o.factory.createFunctionTypeNode(
1693
- e.typeParameters,
1694
- St(e.parameters, t, n, i),
1695
- e.type ?? Qe(e, i) ?? X(n, Q, i)
1696
- )
1697
- ) : o.isGetAccessorDeclaration(e) ? o.factory.createGetAccessorDeclaration(
1698
- void 0,
1699
- e.name,
1700
- // Should always be empty
1701
- e.parameters,
1702
- e.type ?? Qe(e, i) ?? X(n, Q, i),
1703
- void 0
1704
- ) : o.factory.createSetAccessorDeclaration(
1705
- void 0,
1706
- e.name,
1707
- St(e.parameters, t, n, i),
1708
- void 0
1709
- );
1710
- }
1711
- function be(e, t, n, i) {
1712
- return Te(e, n, i) ?? X(e, t, i);
1713
- }
1714
- function Te(e, t, n) {
1715
- const i = n.program?.getTypeChecker?.();
1716
- if (i !== void 0 && e.node !== void 0) {
1717
- let a;
1718
- const r = t === w.false;
1719
- if (r && e.node.kind === o.SyntaxKind.Identifier) {
1720
- const s = i.getSymbolAtLocation(e.node);
1721
- a = s === void 0 ? void 0 : i.getTypeOfSymbol(s);
1722
- }
1723
- a ??= i.getTypeAtLocation(e.node);
1724
- const l = r ? nn(i, a) : a;
1725
- return nt(i, l);
1726
- }
1727
- }
1728
- function nt(e, t) {
1729
- const n = t.flags & o.TypeFlags.Union ? t.types.every(Kt) : Kt(t);
1730
- return e.typeToTypeNode(
1731
- t,
1732
- void 0,
1733
- Jn & (n ? ~o.TypeFormatFlags.MultilineObjectLiterals : -1)
1734
- );
1735
- }
1736
- const zn = o.TypeFormatFlags.NoTruncation | o.TypeFormatFlags.WriteArrayAsGenericType | o.TypeFormatFlags.SuppressAnyReturnType | o.TypeFormatFlags.MultilineObjectLiterals, jn = zn & o.TypeFormatFlags.NodeBuilderFlagsMask, Jn = jn | o.NodeBuilderFlags.IgnoreErrors | o.NodeBuilderFlags.NoTruncation, Kt = (e) => e.flags & o.TypeFlags.Object ? e.getProperties().length === 1 : !!(e.flags & o.TypeFlags.PossiblyFalsy);
1737
- function Qe(e, t) {
1738
- const n = t.program?.getTypeChecker?.();
1739
- if (n === void 0)
1740
- return;
1741
- const i = n.getSignatureFromDeclaration(e);
1742
- if (i === void 0)
1743
- return;
1744
- const a = n.getReturnTypeOfSignature(i);
1745
- return nt(n, a);
1746
- }
1747
- function qn(e, t) {
1748
- const n = t.program?.getTypeChecker?.();
1749
- if (n === void 0)
1750
- return;
1751
- const i = n.getTypeAtLocation(e);
1752
- return nt(n, i);
1753
- }
1754
- function X(e, t, n) {
1755
- return n.isInLuminaMinimalExtraction || n.emitError(t, e), gt;
1756
- }
1757
- const Q = "Failed to infer the type of the expression. Please provide an explicit type annotation or simplify the expression.", gt = o.factory.createKeywordTypeNode(o.SyntaxKind.AnyKeyword), Ue = o.factory.createKeywordTypeNode(o.SyntaxKind.UnknownKeyword), _e = o.factory.createKeywordTypeNode(o.SyntaxKind.VoidKeyword), Qn = o.factory.createToken(o.SyntaxKind.ReadonlyKeyword), Xn = [Qn];
1758
- function St(e, t, n, i) {
1759
- const a = new Array(e.length);
1760
- for (let r = 0; r < a.length; ++r) {
1761
- const l = e[r];
1762
- a[r] = l.initializer === void 0 && o.isIdentifier(l.name) ? l : o.factory.createParameterDeclaration(
1763
- void 0,
1764
- l.dotDotDotToken,
1765
- o.isIdentifier(l.name) ? l.name : o.factory.createIdentifier(`parameter${r}`),
1766
- l.questionToken,
1767
- l.type ?? (l.initializer === void 0 ? X({ ...n, node: l }, Q, i) : H(
1768
- l.initializer,
1769
- t,
1770
- {
1771
- ...n,
1772
- node: l.initializer
1773
- },
1774
- i
1775
- ))
1776
- );
1777
- }
1778
- return a;
1779
- }
1780
- function Yn(e, t) {
1781
- const n = t.program?.getTypeChecker?.();
1782
- if (n === void 0 || !Zn(e.exprName, t))
1783
- return;
1784
- const i = n.getTypeAtLocation(e.exprName);
1785
- return nt(n, i);
1786
- }
1787
- function Zn(e, t) {
1788
- return e.kind === o.SyntaxKind.QualifiedName ? eo(e.left) : t.moduleContext.importsMap[e.escapedText]?.specifier.endsWith(".json") === !0;
1789
- }
1790
- function eo(e) {
1791
- for (; e !== void 0; )
1792
- if (e.kind === o.SyntaxKind.QualifiedName)
1793
- e = e.left;
1794
- else if (e.kind === o.SyntaxKind.Identifier)
1795
- return e.escapedText === "this";
1796
- return !1;
1797
- }
1798
- function z(e, t) {
1799
- if (b = t, Be.clear(), $ = [], Xe.clear(), e.pos !== -1 && e.getText(b.file).includes("* @public") && b.emitError(
1800
- "@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/references/api-extractor/advanced-patterns#describing-nested-object-types",
1801
- { file: b.file, node: e }
1802
- ), e.kind === o.SyntaxKind.Identifier || e.kind === o.SyntaxKind.QualifiedName)
1803
- Ke(e);
1804
- else if (o.isFunctionTypeNode(e) || o.isConstructorTypeNode(e)) {
1805
- const i = e.typeParameters;
1806
- if (i !== void 0)
1807
- for (let a = 0; a < i.length; ++a) {
1808
- const r = i[a];
1809
- Xe.add(r.name.escapedText);
1810
- }
1811
- }
1812
- return to.writeNode(o.EmitHint.Unspecified, e, void 0, Be), {
1813
- text: Be.getText(),
1814
- references: $.length > 0 ? $ : void 0,
1815
- values: void 0,
1816
- source: void 0
1817
- };
1818
- }
1819
- let b;
1820
- const ge = (e, t, n) => {
1821
- switch (t.kind) {
1822
- case o.SyntaxKind.TypeReference:
1823
- const i = t, a = i.typeName;
1824
- switch (a.escapedText) {
1825
- case "nil":
1826
- return ge(e, io, n);
1827
- // Used in public typings in 88 files
1828
- // REFACTOR: consider refactoring out Const usages in public API to
1829
- // reduce divergence
1830
- case "Const":
1831
- // In public types, Lumina's "component" and "el" have the same type
1832
- // eslint-disable-next-line no-fallthrough
1833
- case "ToElement":
1834
- return ge(e, i.typeArguments[0], n);
1835
- /**
1836
- * @see https://webgis.esri.com/references/api-extractor/advanced-patterns#publicprivate-type-divergence
1837
- */
1838
- case "PublicApiNarrowType":
1839
- case "PublicApiRelaxType":
1840
- return ge(e, i.typeArguments[1], n);
1841
- }
1842
- Ke(a);
1843
- break;
1844
- case o.SyntaxKind.TypeQuery:
1845
- const l = Yn(t, b);
1846
- if (l !== void 0)
1847
- return ge(e, l, n);
1848
- Ke(t.exprName, no);
1849
- break;
1850
- case o.SyntaxKind.PropertyAccessExpression:
1851
- Ke(t);
1852
- break;
1853
- case o.SyntaxKind.InferType:
1854
- case o.SyntaxKind.MappedType:
1855
- const c = t.typeParameter;
1856
- Xe.add(c.name.escapedText);
1857
- break;
1858
- case o.SyntaxKind.TypeLiteral:
1859
- const p = t;
1860
- p.members.length === 1 && ("emitNode" in p && (p.emitNode ??= {}), o.setEmitFlags(p, o.EmitFlags.SingleLine));
1861
- break;
1862
- case o.SyntaxKind.IndexedAccessType:
1863
- const d = t;
1864
- if (
1865
- // In public types, Lumina's "component" and "el" have the same type
1866
- // Thus print ArcgisHome["el"] as just ArcgisHome
1867
- b.isComponentProject && d.indexType.kind === o.SyntaxKind.LiteralType && d.indexType.literal.text === "el"
1868
- )
1869
- return ge(e, d.objectType, n);
1870
- break;
1871
- case o.SyntaxKind.ImportType:
1872
- b.emitError(
1873
- `\`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." : ""}`,
1874
- { file: b.file, node: t }
1875
- );
1876
- break;
1877
- }
1878
- n(e, t), Ye !== void 0 && (yi(), Ye = void 0);
1879
- }, to = an(
1880
- {},
1881
- {
1882
- onEmitNode: ge
1883
- }
1884
- ), io = o.factory.createIdentifier("null | undefined"), Be = on.createTextWriter(`
1885
- `), no = 7, Xe = /* @__PURE__ */ new Set();
1886
- let $;
1887
- function Ke(e, t = 0) {
1888
- const n = [];
1889
- let i = e;
1890
- for (; i !== void 0; )
1891
- if (i.kind === o.SyntaxKind.Identifier) {
1892
- n.push(i);
1893
- break;
1894
- } else if (i.kind === o.SyntaxKind.QualifiedName)
1895
- n.push(i.right), i = i.left;
1896
- else if (i.kind === o.SyntaxKind.PropertyAccessExpression) {
1897
- const g = i.name;
1898
- n.push(g), i = i.expression;
1899
- }
1900
- const a = n.at(-1), r = a.escapedText, l = Be.getTextPos() + t;
1901
- let s = l + r.length;
1902
- const c = a;
1903
- if (c.pos === -1 && c.symbol !== void 0) {
1904
- $.push(
1905
- qe(c.symbol, c, b, l, s)
1906
- );
1907
- return;
1908
- }
1909
- if (b.functionLikeTypeParameters?.has(r) === !0) {
1910
- $.push({
1911
- name: r,
1912
- module: void 0,
1913
- package: void 0,
1914
- viewUrl: void 0,
1915
- start: l,
1916
- end: s
1917
- });
1918
- return;
1919
- }
1920
- if (b.objectLikeTypeParameters?.has(r) === !0) {
1921
- $.push({
1922
- name: r,
1923
- module: void 0,
1924
- package: void 0,
1925
- viewUrl: void 0,
1926
- start: l,
1927
- end: s
1928
- });
1929
- return;
1930
- }
1931
- if (b.localDeclarations.has(r)) {
1932
- $.push({
1933
- name: r,
1934
- module: void 0,
1935
- package: void 0,
1936
- viewUrl: Ve(
1937
- b.apiModule.path,
1938
- r === b.exportDefaultName ? void 0 : r,
1939
- void 0,
1940
- b
1941
- ),
1942
- start: l,
1943
- end: s
1944
- });
1945
- return;
1946
- }
1947
- if (b.localPrivateDeclarations?.has(r) === !0) {
1948
- b.localPrivateDeclarations.set(r, Math.abs(b.localPrivateDeclarations.get(r))), $.push({
1949
- name: r,
1950
- module: void 0,
1951
- package: void 0,
1952
- viewUrl: Ve(
1953
- b.apiModule.path,
1954
- r === b.exportDefaultName ? void 0 : r,
1955
- void 0,
1956
- b
1957
- ),
1958
- start: l,
1959
- end: s
1960
- });
1961
- return;
1962
- }
1963
- const d = b.moduleContext.importsMap[r];
1964
- if (d !== void 0) {
1965
- d.wasUsed = !0;
1966
- const g = d.type === "named";
1967
- d.replacementName !== void 0 && (Me(a, d.replacementName), s = l + d.replacementName.length), d.replacementName !== void 0 && (b.functionLikeTypeParameters?.has(d.replacementName) === !0 || b.objectLikeTypeParameters?.has(d.replacementName) === !0) && b.emitError(
1968
- `Can't do a type replacement of ${ie("green", r)} to ${ie("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.`,
1969
- { file: b.file, node: e }
1970
- );
1971
- const C = g ? d.actualName ?? d.replacementName ?? r : void 0;
1972
- if (d.modulePath === void 0) {
1973
- if (b.config.strict) {
1974
- const h = pt(d.specifier);
1975
- b.runtimeDependencyNames.has(h) || b.emitError(
1976
- h === "esri" ? `Found unexpected absolute path import of ${ie("red", C ?? d.type)} from ${ie("red", d.specifier)}. Did you mean to use a relative import instead?` : `Type ${ie("red", C ?? d.type)} imported from ${ie("red", h)} cannot be referenced in public types as this dependency is not declared as a "dependency" in the package.json`,
1977
- { file: b.file, node: e }
1978
- );
1979
- }
1980
- } else b.config.strict || Je(
1981
- d.modulePath,
1982
- ut(
1983
- b.apiModule.sourcePath.slice(b.config.context.basePath.length),
1984
- d.specifier
1985
- ),
1986
- g ? C : d.type,
1987
- b
1988
- );
1989
- let v, P = d.modulePath;
1990
- P === void 0 && (v = pt(d.specifier), P = d.specifier.length === v.length ? void 0 : d.specifier.slice(v.length + 1)), $.push({
1991
- name: C ?? d.type,
1992
- module: P,
1993
- package: v,
1994
- viewUrl: d.modulePath === void 0 ? ui(v, P, g ? r : d.type, b) : Ve(d.modulePath, C, void 0, b),
1995
- start: l,
1996
- end: s
1997
- });
1998
- return;
1999
- }
2000
- const m = ft[r];
2001
- if (m !== void 0) {
2002
- $.push({
2003
- name: r,
2004
- module: void 0,
2005
- package: ce,
2006
- viewUrl: m[0]?.startsWith("https") === !1 ? `${yt}${m[0]}` : m[0] ?? void 0,
2007
- start: l,
2008
- end: s
2009
- });
2010
- let g = m;
2011
- if (g.length > 1) {
2012
- let C = n.length - 2, v = s + 1;
2013
- for (; g[1] !== void 0 && C >= 0; ) {
2014
- const P = n[C--];
2015
- if (g = g[1][P.escapedText], g === void 0)
2016
- b.emitError("Failed to resolve the definition of the type reference", {
2017
- file: b.file,
2018
- node: e
2019
- });
2020
- else {
2021
- const h = v + P.escapedText.length;
2022
- $.push({
2023
- name: P.escapedText,
2024
- module: void 0,
2025
- package: ce,
2026
- viewUrl: g[0]?.startsWith("https") === !1 ? `${yt}${g[0]}` : g[0] ?? void 0,
2027
- start: v,
2028
- end: h
2029
- }), v = h + 1;
2030
- }
2031
- }
2032
- }
2033
- return;
2034
- }
2035
- if (Xe.has(r))
2036
- return;
2037
- const u = b.program?.getTypeChecker?.()?.getSymbolAtLocation(a);
2038
- if (u !== void 0) {
2039
- $.push(qe(u, a, b, l, s));
2040
- return;
2041
- }
2042
- b.emitError(
2043
- "Failed to resolve the definition of the type reference. Ensure it has @public or refactor out its usage from the public API type",
2044
- { file: b.file, node: e }
2045
- );
2046
- }
2047
- function Me(e, t) {
2048
- const n = e.escapedText;
2049
- Ye = e, Tt = t, yi(), Tt = n;
2050
- }
2051
- let Ye, Tt;
2052
- function yi() {
2053
- Ye.escapedText = Tt;
2054
- }
2055
- function ot(e, t, n) {
2056
- if (e === void 0 || n.isInLuminaMinimalExtraction) {
2057
- t ? n.objectLikeTypeParameters = void 0 : n.functionLikeTypeParameters = void 0;
2058
- return;
2059
- }
2060
- const i = new Array(e.length), a = t ? oo : ao;
2061
- a.clear();
2062
- for (let r = 0; r < e.length; ++r) {
2063
- const l = e[r], s = l.name.escapedText;
2064
- a.add(s);
2065
- const c = {
2066
- name: s,
2067
- constraint: void 0,
2068
- default: void 0,
2069
- const: void 0,
2070
- in: void 0,
2071
- out: void 0
2072
- };
2073
- if (l.modifiers !== void 0)
2074
- for (let p = 0; p < l.modifiers.length; ++p) {
2075
- const d = l.modifiers[p];
2076
- d.kind === o.SyntaxKind.ConstKeyword ? c.const = !0 : d.kind === o.SyntaxKind.InKeyword ? c.in = !0 : d.kind === o.SyntaxKind.OutKeyword && (c.out = !0);
2077
- }
2078
- i[r] = c;
2079
- }
2080
- t ? n.objectLikeTypeParameters = a : n.functionLikeTypeParameters = a;
2081
- for (let r = 0; r < e.length; ++r) {
2082
- const l = e[r], s = l.constraint, c = l.default;
2083
- s !== void 0 && (i[r].constraint = z(s, n)), c !== void 0 && (i[r].default = z(c, n));
2084
- }
2085
- return i;
2086
- }
2087
- const oo = /* @__PURE__ */ new Set(), ao = /* @__PURE__ */ new Set();
2088
- function Ce(e, t, n) {
2089
- if (!o.isIdentifier(e) && !o.isQualifiedName(e) && !o.isPropertyAccessExpression(e))
2090
- return n.emitError(
2091
- "Expected the type nodes in the extends clause to be Identifier, QualifiedName or PropertyAccessExpression.",
2092
- { file: n.file, node: e }
2093
- ), {
2094
- [j]: "Record<never, Error>",
2095
- name: "error",
2096
- module: void 0,
2097
- package: void 0,
2098
- viewUrl: void 0,
2099
- typeArguments: void 0
2100
- };
2101
- const i = z(e, n), a = i.references?.[0] ?? {
2102
- module: void 0,
2103
- package: void 0,
2104
- viewUrl: void 0
2105
- };
2106
- let r, l;
2107
- if (r = i.text, t !== void 0) {
2108
- l = new Array(t.length), r += "<";
2109
- for (let s = 0; s < t.length; ++s) {
2110
- const c = t[s], p = z(c, n);
2111
- l[s] = p, r += p.text, s < t.length - 1 && (r += ", ");
2112
- }
2113
- r += ">";
2114
- }
2115
- return {
2116
- /**
2117
- * If referenced type is imported as default, the `name` will be `default`,
2118
- * which is not a name suitable for .d.ts emit. So we preserve the original
2119
- * type string in a temporary field.
2120
- */
2121
- [j]: r,
2122
- name: i.references?.length === 1 ? i.references[0].name : i.text,
2123
- module: a.module,
2124
- package: a.package,
2125
- viewUrl: a.viewUrl,
2126
- typeArguments: l
2127
- };
2128
- }
2129
- function Pt(e) {
2130
- return o.isTypeReferenceNode(e) && (e.typeName.escapedText === "PublicApiNarrowType" || e.typeName.escapedText === "PublicApiRelaxType") ? e.typeArguments[1] : e;
2131
- }
2132
- function ro(e) {
2133
- return e.expression.escapedText === "PublicApiNarrowType" || e.expression.escapedText === "PublicApiRelaxType" ? e.typeArguments[1] : e;
2134
- }
2135
- const vi = { text: "unknown", references: void 0, values: void 0, source: void 0 }, so = {
2136
- text: "Promise<unknown>",
2137
- references: void 0,
2138
- values: void 0,
2139
- source: void 0
2140
- }, lo = {
2141
- text: "Record<string, unknown> | undefined",
2142
- references: [
2143
- {
2144
- name: "Record",
2145
- module: void 0,
2146
- package: ce,
2147
- viewUrl: "https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type",
2148
- start: 0,
2149
- end: 6
2150
- }
2151
- ],
2152
- values: void 0,
2153
- source: void 0
2154
- };
2155
- function co(e, t) {
2156
- if (t.isInLuminaMinimalExtraction)
2157
- return;
2158
- const n = qi(e.name), i = {
2159
- [j]: po,
2160
- kind: "method",
2161
- name: "componentOnReady",
2162
- static: void 0,
2163
- deprecated: void 0,
2164
- summary: void 0,
2165
- description: "Creates a promise that resolves once the component is fully loaded.",
2166
- docsTags: [
2167
- {
2168
- name: "example",
2169
- text: `\`\`\`js
2170
- const ${n} = document.createElement("${e.tagName}");
2171
- document.body.append(${n});
2172
- await ${n}.componentOnReady();
2173
- console.log("${e.tagName} is ready to go!");
2174
- \`\`\``
2175
- }
2176
- ],
2177
- typeParameters: void 0,
2178
- parameters: void 0,
2179
- return: mo,
2180
- // Must include .inheritedFrom for this member so that it is excluded from
2181
- // .d.ts printing (TypeScript inherits it from PublicLitElement) and from
2182
- // the docs search index.
2183
- inheritedFrom: uo,
2184
- signature: "(): Promise<this>",
2185
- privacy: void 0,
2186
- source: void 0
2187
- };
2188
- e.members.push(i);
2189
- 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;
2190
- typeof s == "string" && a.push({
2191
- description: "Docs",
2192
- url: s,
2193
- source: void 0
2194
- }), typeof c == "string" && a.push({
2195
- description: "Demo",
2196
- url: c,
2197
- source: void 0
2198
- });
2199
- const p = t.componentStories[e.tagName];
2200
- if (typeof p == "object" && a.push(...p), t.componentCssFileDocs !== void 0) {
2201
- e.cssProperties ??= [];
2202
- const d = new Set(e.cssProperties.map((m) => m.name));
2203
- e.cssProperties = [
2204
- ...e.cssProperties,
2205
- ...t.componentCssFileDocs.filter((m) => !d.has(m.name))
2206
- ], t.componentCssFileDocs = void 0;
2207
- }
2208
- a.length > 0 && (e.demos = a);
2209
- }
2210
- const po = tt(), mo = {
2211
- summary: void 0,
2212
- description: void 0,
2213
- type: {
2214
- text: "Promise<this>",
2215
- references: [
2216
- {
2217
- name: "Promise",
2218
- module: "lib/lib.es5.d.ts",
2219
- package: "typescript",
2220
- viewUrl: void 0,
2221
- start: 0,
2222
- end: 7
2223
- }
2224
- ],
2225
- values: void 0,
2226
- source: void 0
2227
- }
2228
- }, uo = {
2229
- name: "this",
2230
- module: void 0,
2231
- package: void 0,
2232
- viewUrl: void 0
2233
- }, fo = de, yo = de, vo = de, go = de, So = de, To = de, ho = de, gi = de;
2234
- function de(e, t, n, i, a) {
2235
- if (i.docsTags === void 0 || n === void 0)
2236
- return;
2237
- const r = i.docsTags.indexOf(U.copyDoc);
2238
- if (r === -1)
2239
- return;
2240
- const l = i.name;
2241
- let s = n?.[l];
2242
- s === void 0 && e.emitError(
2243
- "@copyDoc tag was used, but failed to find copyDoc definition for it. Documentation: https://webgis.esri.com/references/api-extractor/tags-reference#copydoc)",
2244
- {
2245
- file: e.file,
2246
- node: t
2247
- }
2248
- ), !(typeof s == "function" && (s = s(i, a, e.apiModule), s === void 0)) && Yi(s, i, r);
2249
- }
2250
- function bt(e, t, n) {
2251
- n.apiModule.exports.push({
2252
- kind: e.customElement === !0 ? "custom-element-definition" : e.kind === "interface" || e.kind === "mixin" ? "ts" : "js",
2253
- name: t ? "default" : e.tagName ?? e.name,
2254
- deprecated: void 0,
2255
- declaration: {
2256
- name: e.name,
2257
- module: void 0,
2258
- package: void 0,
2259
- viewUrl: void 0
2260
- }
2261
- });
2262
- }
2263
- const Eo = ke, lt = ke, Co = ke, Ht = ke, $t = ke;
2264
- function ke(e, t, n, i) {
2265
- if (t === void 0) {
2266
- i.emitError("Computed function/method names are not yet supported.", {
2267
- file: i.file,
2268
- node: e
2269
- });
2270
- return;
2271
- }
2272
- const a = n ?? e, r = n !== void 0 && !o.isVariableStatement(n), l = o.isMethodDeclaration(e), s = o.isMethodSignature(e), c = l || s || r, p = n !== void 0 && o.isVariableStatement(n), m = o.isFunctionDeclaration(e) || p, f = !r && !p && o.isFunctionTypeNode(e) || o.isCallSignatureDeclaration(e), u = o.isConstructorDeclaration(e), g = u || o.isConstructSignatureDeclaration(e) || o.isConstructorTypeNode(e), C = i.isInLuminaMinimalExtraction || i.jsDoc === Pe, v = tt();
2273
- let P, h, R = !1, I = !1;
2274
- if (!m && a.modifiers !== void 0)
2275
- for (let E = 0; E < a.modifiers.length; ++E)
2276
- switch (a.modifiers[E].kind) {
2277
- case o.SyntaxKind.StaticKeyword:
2278
- P = !0;
2279
- break;
2280
- case o.SyntaxKind.ProtectedKeyword:
2281
- h = "protected";
2282
- break;
2283
- case o.SyntaxKind.AbstractKeyword:
2284
- R = !0;
2285
- break;
2286
- case o.SyntaxKind.AsyncKeyword:
2287
- I = !0;
2288
- break;
2289
- }
2290
- const y = {
2291
- [j]: v,
2292
- kind: c ? "method" : m ? "function" : f ? "call-signature" : g ? "constructor" : void 0,
2293
- name: g || f ? void 0 : t,
2294
- static: P,
2295
- deprecated: void 0,
2296
- summary: void 0,
2297
- description: void 0,
2298
- docsTags: void 0,
2299
- typeParameters: ot(e.typeParameters, !1, i),
2300
- parameters: [],
2301
- return: u ? void 0 : {
2302
- summary: void 0,
2303
- description: void 0,
2304
- type: C ? I ? so : vi : z(
2305
- e.type ?? Qe(e, i) ?? X(
2306
- { file: i.file, node: e },
2307
- "@public function must have a return type annotation",
2308
- i
2309
- ),
2310
- i
2311
- )
2312
- },
2313
- inheritedFrom: void 0,
2314
- signature: void 0,
2315
- privacy: h,
2316
- source: void 0
2317
- }, k = y, M = pn(y, i.jsDoc), L = C ? [] : e.parameters;
2318
- let D = M.length, T = !1, _ = 0;
2319
- for (let E = 0; E < L.length; ++E) {
2320
- const S = L[E], A = o.isIdentifier(S.name) ? S.name.escapedText : void 0;
2321
- if (A === "this") {
2322
- _ -= 1;
2323
- continue;
2324
- }
2325
- const W = u && A !== void 0 && S.modifiers !== void 0 && S.modifiers.length > 0 ? oe(S, !0, i) : void 0;
2326
- if (W !== void 0) {
2327
- _ -= 1, D += 1, i.jsDoc = W;
2328
- const q = Ti(S, A, !1, i);
2329
- if (q === void 0)
2330
- continue;
2331
- i.apiObject.members.push(q);
2332
- const pe = {
2333
- name: A,
2334
- deprecated: void 0,
2335
- summary: void 0,
2336
- description: q.description,
2337
- docsTags: void 0,
2338
- optional: void 0,
2339
- rest: S.dotDotDotToken ? !0 : void 0,
2340
- type: q.type,
2341
- default: q.default
2342
- };
2343
- pe.optional = zt(S, pe), y.parameters.push(pe);
2344
- continue;
2345
- }
2346
- let G = M[E + _]?.text, O, F;
2347
- if (!i.config.strict && (G === void 0 || A === void 0) && (G = A ?? `parameter${E}`), G === void 0) {
2348
- i.emitError(
2349
- `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/references/api-extractor/tags-reference#param)${g ? " and https://webgis.esri.com/references/api-extractor/api-node-kinds#constructor" : ""}`,
2350
- { file: i.file, node: S }
2351
- ), T = !0;
2352
- break;
2353
- }
2354
- const B = G.indexOf(" ");
2355
- if (O = B === -1 ? G : G.slice(0, B), F = B === -1 ? "" : G.slice(B + 1).trim(), (F.startsWith("- ") || F.startsWith(`-
2356
- `)) && (F = F.slice(2).trim()), A !== void 0 && A !== O && `_${O}` !== A) {
2357
- const q = O.startsWith("[") || O.endsWith("]");
2358
- if (i.config.strict) {
2359
- i.emitError(
2360
- `The '${A}' TypeScript parameter name does not match the @param tag at position ${E}, '${O}'${q ? ". If you meant to mark the parameter as optional, use TypeScript's `?` syntax or `=` default value syntax instead of JSDoc [square brackets]" : ""}`,
2361
- {
2362
- file: i.file,
2363
- node: S
2364
- }
2365
- ), T = !0;
2366
- break;
2367
- } else
2368
- O = A.startsWith("_") ? A.slice(1) : A;
2369
- }
2370
- const ue = S.type ?? (S.initializer === void 0 ? X(
2371
- { file: i.file, node: S },
2372
- `Public parameter ${O} must have a type annotation or a default value`,
2373
- i
2374
- ) : Ct(S.initializer, w.false, i.file, i)), Ge = z(ue, i), te = {
2375
- name: O,
2376
- deprecated: void 0,
2377
- summary: void 0,
2378
- description: F || void 0,
2379
- docsTags: void 0,
2380
- optional: void 0,
2381
- rest: S.dotDotDotToken ? !0 : void 0,
2382
- type: Ge,
2383
- default: ze(S.initializer, void 0, i.file)
2384
- };
2385
- te.optional = zt(S, te), y.parameters.push(te);
2386
- }
2387
- if (i.config.strict && !T && D !== y.parameters.length && i.emitError(
2388
- `Expected @param tags to match the number of parameters on a public function. Found ${M.length} @param tags for ${y.parameters.length} TypeScript parameters. Documentation: https://webgis.esri.com/references/api-extractor/tags-reference#param)${g ? " and https://webgis.esri.com/references/api-extractor/api-node-kinds#constructor" : ""}`,
2389
- { file: i.file, node: e }
2390
- ), y.parameters.length === 0)
2391
- y.parameters = void 0;
2392
- else {
2393
- let E = !0;
2394
- for (let S = y.parameters.length - 1; S >= 0; S--) {
2395
- const x = y.parameters[S];
2396
- E &&= x.optional === !0 || x.rest === !0 || x.default !== void 0, !E && x.optional && (x.optional = void 0, x.type.text.endsWith(" | undefined") || (x.type.text += " | undefined"));
2397
- }
2398
- }
2399
- l && i.componentTagName !== void 0 && (k.signature = Ki(k), I && !Zi(k) && i.emitError("Public method marked as async must have a Promise<SomeType> return type annotation.", {
2400
- file: i.file,
2401
- node: e
2402
- })), i.functionLikeTypeParameters = void 0;
2403
- const N = m ? it(a) : 0, J = m && i.exportDefaultName === t, K = N === 2 || J;
2404
- return m && (K ? bt(y, !0, i) : N === 0 && i.config.strict && i.emitError("Expected @public function to be exported using named or default export.", {
2405
- file: i.file,
2406
- node: e
2407
- })), i.produceDts && (c || g || f ? (R && (v.isAbstract = !0), v.hasQuestionToken = a.questionToken !== void 0 ? !0 : void 0) : v.isDefaultExported = K || void 0), c ? yo(
2408
- i,
2409
- n ?? e,
2410
- i.config.documentation.copyDocDefinitions.methods,
2411
- y,
2412
- i.apiObject
2413
- ) : m && go(
2414
- i,
2415
- n ?? e,
2416
- i.config.documentation.copyDocDefinitions.functions,
2417
- y,
2418
- i.apiModule
2419
- ), y;
2420
- }
2421
- const zt = (e, t) => (
2422
- // Keep ? as is
2423
- e.questionToken !== void 0 || // If had default value internally, but not publicly, add ?
2424
- e.initializer !== void 0 && t.default === void 0 ? !0 : void 0
2425
- );
2426
- function Po(e, t, n) {
2427
- return ht(), De(e, t), Mt && t !== void 0 && n !== void 0 && (ht(), Dt(t.getTypeAtLocation(n))), Si();
2428
- }
2429
- function bo(e) {
2430
- return ht(), Dt(e), Si();
2431
- }
2432
- let Ie = !1, ae = !1, re = !1, Ae = !1, se = !1, Mt = !1;
2433
- const le = [], ee = [];
2434
- function ht() {
2435
- Ie = !1, ae = !1, re = !1, Ae = !1, se = !1, Mt = !1, le.length = 0, ee.length = 0;
2436
- }
2437
- function Si() {
2438
- if (!re && !Ae && !se && !Ie)
2439
- return;
2440
- const e = [];
2441
- if (le.length > 0)
2442
- for (let t = 0; t < le.length; ++t)
2443
- e.push({ type: "string", value: le[t] });
2444
- else re && e.push(Mo);
2445
- if (ee.length > 0)
2446
- for (let t = 0; t < ee.length; ++t)
2447
- e.push({ type: "number", value: ee[t] });
2448
- else se && e.push(Do);
2449
- return Ae && e.push(xo), Ie ? e.push(Ro) : ae && e.push(Lo), e;
2450
- }
2451
- const Mo = { type: "string", value: void 0 }, Do = { type: "number", value: void 0 }, xo = { type: "boolean", value: void 0 }, Ro = { type: "any", value: void 0 }, Lo = { type: "object", value: void 0 };
2452
- function De(e, t) {
2453
- switch (e.kind) {
2454
- case o.SyntaxKind.BooleanKeyword:
2455
- case o.SyntaxKind.TrueKeyword:
2456
- case o.SyntaxKind.FalseKeyword:
2457
- Ae = !0;
2458
- return;
2459
- case o.SyntaxKind.NumberKeyword:
2460
- se = !0;
2461
- return;
2462
- case o.SyntaxKind.StringKeyword:
2463
- case o.SyntaxKind.TemplateLiteralType:
2464
- re = !0;
2465
- return;
2466
- case o.SyntaxKind.AnyKeyword:
2467
- Ie = !0;
2468
- return;
2469
- case o.SyntaxKind.LiteralType:
2470
- De(e.literal, t);
2471
- return;
2472
- case o.SyntaxKind.StringLiteral:
2473
- case o.SyntaxKind.NoSubstitutionTemplateLiteral:
2474
- re = !0, le.push(e.text);
2475
- return;
2476
- case o.SyntaxKind.NumericLiteral:
2477
- se = !0, ee.push(e.text);
2478
- return;
2479
- case o.SyntaxKind.PrefixUnaryExpression:
2480
- const n = e.operand;
2481
- n.kind === o.SyntaxKind.NumericLiteral ? (ee.push(`-${n.text}`), se = !0) : ae = !0;
2482
- return;
2483
- case o.SyntaxKind.VoidKeyword:
2484
- case o.SyntaxKind.UndefinedKeyword:
2485
- case o.SyntaxKind.NullKeyword:
2486
- return;
2487
- case o.SyntaxKind.UnionType:
2488
- const i = e.types, a = Math.min(i.length, Ze);
2489
- for (let l = 0; l < a; ++l)
2490
- De(i[l], t);
2491
- i.length > Ze && (le.length = 0, ee.length = 0);
2492
- return;
2493
- case o.SyntaxKind.ParenthesizedType:
2494
- De(e.type, t);
2495
- return;
2496
- case o.SyntaxKind.TypeQuery:
2497
- case o.SyntaxKind.IndexedAccessType:
2498
- case o.SyntaxKind.ImportType:
2499
- case o.SyntaxKind.TypeReference:
2500
- t === void 0 ? ae = !0 : Dt(
2501
- t.getTypeFromTypeNode(
2502
- e
2503
- )
2504
- );
2505
- return;
2506
- case o.SyntaxKind.TypeOperator:
2507
- const r = e;
2508
- r.operator === o.SyntaxKind.KeyOfKeyword ? re = !0 : r.operator === o.SyntaxKind.ReadonlyKeyword ? De(r.type, t) : ae = !0;
2509
- return;
2510
- /*case ts.SyntaxKind.UnknownKeyword:
2511
- case ts.SyntaxKind.FunctionType:
2512
- case ts.SyntaxKind.ConstructorType:
2513
- case ts.SyntaxKind.ThisKeyword:
2514
- case ts.SyntaxKind.ConditionalType:
2515
- case ts.SyntaxKind.ArrayType:
2516
- case ts.SyntaxKind.TupleType:
2517
- case ts.SyntaxKind.IntersectionType:
2518
- case ts.SyntaxKind.ObjectKeyword:
2519
- case ts.SyntaxKind.SymbolKeyword:*/
2520
- default:
2521
- ae = !0;
2522
- return;
2523
- }
2524
- }
2525
- const Ze = 40;
2526
- function Dt(e) {
2527
- if (e.isUnion()) {
2528
- const t = Math.min(e.types.length, Ze);
2529
- for (let n = 0; n < t; ++n)
2530
- jt(e.types[n]);
2531
- e.types.length > Ze && (le.length = 0, ee.length = 0);
2532
- } else
2533
- jt(e);
2534
- }
2535
- function jt(e) {
2536
- const t = e.flags;
2537
- let n = !1;
2538
- if (t & o.TypeFlags.StringLiteral ? (n = !0, re = !0, le.push(e.value)) : t & o.TypeFlags.StringLike && (n = !0, re = !0), t & o.TypeFlags.NumberLiteral ? (n = !0, se = !0, ee.push(e.value.toString())) : t & o.TypeFlags.NumberLike && (n = !0, se = !0), t & o.TypeFlags.BooleanLike && (n = !0, Ae = !0), t & o.TypeFlags.Any) {
2539
- if (e.intrinsicName === "error") {
2540
- ae = !0, Mt = !0;
2541
- return;
2542
- }
2543
- Ie = !0, n = !0;
2544
- }
2545
- t & Io || n || (ae = !0);
2546
- }
2547
- const Io = o.TypeFlags.Null | o.TypeFlags.VoidLike, Ea = (e) => e.map(Ao).join(" | "), Ao = (e) => e.type === "string" && e.value !== void 0 ? `"${e.value}"` : e.value ?? e.type;
2548
- function ko(e, t, n) {
2549
- let i;
2550
- const a = e.initializer;
2551
- let r;
2552
- if (e.questionToken !== void 0)
2553
- return;
2554
- if (e.type !== void 0)
2555
- o.isTypeReferenceNode(e.type) && e.type.typeName.escapedText === "EventEmitter" && (i = e.type.typeArguments?.[0] ?? _e);
2556
- else if (a !== void 0 && o.isCallExpression(a)) {
2557
- const s = a.expression;
2558
- if (o.isIdentifier(s)) {
2559
- const c = s.escapedText;
2560
- c === He ? (i = a.typeArguments?.[0] ?? _e, r = a.arguments[0]) : c === "reEmitEvent" ? i = a.typeArguments?.[0] ?? _e : c.startsWith("use") && (i = Jt(e, n));
2561
- } else if (o.isCallExpression(s) && o.isIdentifier(s.expression)) {
2562
- const c = s.expression.escapedText;
2563
- if (c === "usePropertyChange") {
2564
- const p = [];
2565
- for (let d = 0; d < a.arguments.length; ++d) {
2566
- const m = a.arguments[d];
2567
- o.isStringLiteral(m) && p.push(o.factory.createLiteralTypeNode(m));
2568
- }
2569
- if (p.length === 0)
2570
- return;
2571
- i = o.factory.createTypeLiteralNode([
2572
- o.factory.createPropertySignature(
2573
- void 0,
2574
- "name",
2575
- void 0,
2576
- p.length === 1 ? p[0] : o.factory.createUnionTypeNode(p)
2577
- )
2578
- ]);
2579
- } else c.startsWith("use") && (i = Jt(e, n));
2580
- }
2581
- }
2582
- if (i === void 0)
2583
- return;
2584
- const l = {
2585
- name: t,
2586
- deprecated: void 0,
2587
- summary: void 0,
2588
- description: void 0,
2589
- docsTags: void 0,
2590
- type: z(i, n),
2591
- inheritedFrom: void 0,
2592
- privacy: void 0,
2593
- bubbles: void 0,
2594
- cancelable: void 0,
2595
- composed: void 0
2596
- };
2597
- return fn(l, n.jsDoc), r !== void 0 && Go(e, r, l, n), vo(
2598
- n,
2599
- e,
2600
- n.config.documentation.copyDocDefinitions.events,
2601
- l,
2602
- n.apiObject
2603
- ), l;
2604
- }
2605
- const He = "createEvent";
2606
- function Go(e, t, n, i) {
2607
- if (t !== void 0) {
2608
- if (!o.isObjectLiteralExpression(t)) {
2609
- i.emitError(`Expected object literal expression as first argument of ${He}().`, {
2610
- file: i.file,
2611
- node: e
2612
- });
2613
- return;
2614
- }
2615
- if (t.properties.some(o.isSpreadAssignment)) {
2616
- i.emitError(
2617
- `Unexpected spread syntax in ${He}() argument. ${He}() arguments must be statically parsable at compile time`,
2618
- {
2619
- file: i.file,
2620
- node: e
2621
- }
2622
- );
2623
- return;
2624
- }
2625
- for (const a of t.properties)
2626
- !o.isPropertyAssignment(a) || !o.isIdentifier(a.name) || (a.name.text === "cancelable" && !Y(a.initializer, i) && (n.cancelable = !1), a.name.text === "bubbles" && !Y(a.initializer, i) && (n.bubbles = !1), a.name.text === "composed" && !Y(a.initializer, i) && (n.composed = !1));
2627
- }
2628
- }
2629
- function Jt(e, t) {
2630
- const n = t.program?.getTypeChecker?.();
2631
- if (n === void 0)
2632
- return;
2633
- const i = n.getTypeAtLocation(e);
2634
- if (!((i.aliasSymbol ?? i.symbol)?.name === "EventEmitter"))
2635
- return;
2636
- const r = n.getTypeArguments(i);
2637
- if (r.length === 0)
2638
- return _e;
2639
- const l = r[0];
2640
- return n.typeToTypeNode(l, e, o.NodeBuilderFlags.NoTruncation);
2641
- }
2642
- function Ti(e, t, n, i) {
2643
- if (t === void 0) {
2644
- i.emitError("Computed property names are not yet supported", { file: i.file, node: e });
2645
- return;
2646
- }
2647
- const a = e, r = xe(a.modifiers, "property") ?? (i.pairedSetter === void 0 ? void 0 : xe(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), p = o.isGetAccessor(e), d = Oi(), m = i.isInLuminaMinimalExtraction || i.jsDoc === Pe;
2648
- let f = !1, u = !1, g, C = !1, v, P, h;
2649
- if (c && e.modifiers !== void 0)
2650
- for (let E = 0; E < e.modifiers.length; ++E)
2651
- switch (e.modifiers[E].kind) {
2652
- case o.SyntaxKind.ReadonlyKeyword:
2653
- f = !0;
2654
- continue;
2655
- case o.SyntaxKind.AccessorKeyword:
2656
- u = !0;
2657
- continue;
2658
- case o.SyntaxKind.ProtectedKeyword:
2659
- g = "protected";
2660
- continue;
2661
- case o.SyntaxKind.StaticKeyword:
2662
- v = !0;
2663
- continue;
2664
- case o.SyntaxKind.AbstractKeyword:
2665
- C = !0;
2666
- continue;
2667
- }
2668
- n ||= f || p && i.pairedSetter === void 0;
2669
- const R = i.apiObject.customElement === !0;
2670
- let I = !1;
2671
- if (i.moduleHasAccessorLikeClass)
2672
- if (s !== void 0) {
2673
- for (let E = 0; E < s.length; ++E) {
2674
- const S = s[E];
2675
- if (!o.isPropertyAssignment(S)) {
2676
- I ||= o.isSpreadAssignment(S);
2677
- continue;
2678
- }
2679
- const x = S.name.escapedText;
2680
- x === "readOnly" && Y(S.initializer, i) ? n = !0 : x === "constructOnly" && Y(S.initializer, i) ? d.isConstructorOnly = !0 : x === "type" ? d.hasAutoCasting = !0 : x === "types" && Fo(
2681
- d,
2682
- S.initializer?.kind === o.SyntaxKind.ObjectLiteralExpression ? S.initializer : void 0
2683
- );
2684
- }
2685
- I && d.hasAutoCasting === void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2686
- } else l !== void 0 && (d.hasAutoCasting = !0, d.autoCastingRequiresType = !0);
2687
- else if (R) {
2688
- const E = i.apiObject;
2689
- if (r === void 0) {
2690
- if (m)
2691
- return;
2692
- {
2693
- const S = c && !v ? ko(e, t, i) : void 0;
2694
- if (S !== void 0) {
2695
- E.events ??= [], E.events.push(S);
2696
- return;
2697
- } else !i.config.strict && hi(e) ? (g = "protected", P = !1, i.jsDoc = {
2698
- ...i.jsDoc,
2699
- docsTags: [...i.jsDoc.docsTags, U.internal]
2700
- }) : r === void 0 && i.emitError(
2701
- "Public properties on a Lumina component must have a @property() decorator for lazy-loading compatibility.",
2702
- {
2703
- file: i.file,
2704
- node: e
2705
- }
2706
- );
2707
- }
2708
- } else if (s !== void 0)
2709
- for (let S = 0; S < s.length; ++S) {
2710
- const x = s[S];
2711
- if (!(!o.isPropertyAssignment(x) || !o.isIdentifier(x.name)))
2712
- switch (x.name.escapedText) {
2713
- case "attribute":
2714
- o.isStringLiteral(x.initializer) ? P = x.initializer.text : P = Y(x.initializer, i);
2715
- continue;
2716
- case "reflect":
2717
- Y(x.initializer, i) && (P ??= !0, h = !0);
2718
- continue;
2719
- case "readOnly":
2720
- Y(x.initializer, i) && (n = !0);
2721
- continue;
2722
- case "type":
2723
- case "converter":
2724
- P ??= !0;
2725
- continue;
2726
- }
2727
- }
2728
- }
2729
- const y = i.pairedSetter ?? (o.isSetAccessor(e) ? e : void 0), k = n ? void 0 : y;
2730
- u ||= r !== void 0 || p || y !== void 0, d.isAccessor = u || void 0;
2731
- const M = k?.parameters[0].type, L = a.type;
2732
- let D = M ?? L;
2733
- if (D === void 0) {
2734
- const E = k?.parameters[0].initializer ?? e.initializer;
2735
- if (c && E !== void 0 && o.isArrowFunction(E)) {
2736
- if (n)
2737
- return $t(E, t, e, i);
2738
- qt(e, i);
2739
- }
2740
- D = E === void 0 ? qn(e, i) ?? X(
2741
- { file: i.file, node: e },
2742
- "Public property must have a type annotation or a default value",
2743
- i
2744
- ) : Ct(E, n ? w.shallow : w.false, i.file, i);
2745
- } else if (D = Pt(D), c && o.isFunctionTypeNode(D)) {
2746
- if (n)
2747
- return $t(D, t, e, i);
2748
- qt(e, i);
2749
- }
2750
- const T = {
2751
- [j]: d,
2752
- kind: "field",
2753
- name: t,
2754
- static: v,
2755
- deprecated: void 0,
2756
- summary: void 0,
2757
- description: void 0,
2758
- docsTags: void 0,
2759
- // In minimal extraction, we care only for type.values (set below)
2760
- type: m ? { ...vi } : z(D, i),
2761
- getterType: void 0,
2762
- default: void 0,
2763
- readonly: n || void 0,
2764
- inheritedFrom: void 0,
2765
- privacy: g,
2766
- source: void 0,
2767
- attribute: !R || P === !1 ? void 0 : typeof P == "string" ? P : Qi(t),
2768
- reflects: h,
2769
- docsOnlyReadonly: void 0
2770
- };
2771
- mn(T, i.jsDoc);
2772
- const _ = T.default;
2773
- R && t === "messageOverrides" && (d.dtsTypeOverride = T.type.text, T.type = lo);
2774
- const N = R && r !== void 0;
2775
- if (N) {
2776
- !n && T.readonly === !0 && (T.docsOnlyReadonly = !0);
2777
- const E = i.program?.getTypeChecker?.();
2778
- T.type.values = E !== 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) ? bo(E.getTypeAtLocation(y?.parameters[0] ?? e)) : Po(D, E, y?.parameters[0] ?? e), (P === void 0 && T.type.values === void 0 && !i.config.context.isLuminaMinimalExtraction || T.readonly && !T.reflects) && (T.attribute = void 0);
2779
- const S = E !== void 0 && o.isPropertyDeclaration(e) && // BUG: should not check node.type here? but do check in property.getterType below
2780
- 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);
2781
- if (("initializer" in e && e.initializer !== void 0 && (!T.default || !T.description) || S) && !m) {
2782
- const x = e.initializer, A = E?.getSymbolAtLocation(x), V = A !== void 0 && ((A.flags ?? 0) & o.SymbolFlags.Alias) !== 0 ? E?.getAliasedSymbol(A) : A;
2783
- let W, G;
2784
- const O = V?.getDeclarations();
2785
- if (O !== void 0)
2786
- for (let F = 0; F < O.length; ++F) {
2787
- const B = O[F];
2788
- W ??= o.isGetAccessor(B) ? B : void 0, G ??= o.isSetAccessor(B) ? B : void 0, "initializer" in B && (T.default = ze(
2789
- B.initializer,
2790
- T.default,
2791
- B.getSourceFile()
2792
- ));
2793
- }
2794
- S && W?.type !== void 0 && G !== void 0 && W.type.getText() !== G.parameters[0]?.type?.getText() && (T.getterType = {
2795
- text: z(W.type, i).text,
2796
- references: void 0,
2797
- values: void 0,
2798
- source: void 0
2799
- });
2800
- }
2801
- }
2802
- if (L !== void 0 && M !== void 0 && !m && // Quick perf check: type is definitely the same if raw type string matches.
2803
- // More reliable check follows in processing/index.ts, where printed normalized
2804
- // type string is compared.
2805
- L.getText(i.file) !== M.getText(i.file) ? T.getterType = z(L, i) : T.readonly === !0 && T.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) && (T.readonly === !0 && d.isConstructorOnly !== !0 ? d.hasAutoCasting = void 0 : T.getterType ??= {
2806
- ...T.type,
2807
- references: T.type.references === void 0 ? void 0 : [...T.type.references]
2808
- }), n && D.kind === o.SyntaxKind.LiteralType || (T.default = ze(
2809
- e.initializer,
2810
- T.default,
2811
- i.file
2812
- )), N) {
2813
- const E = _ === void 0 && T.default === "true";
2814
- T.type.values?.length === 1 && T.type.values[0].type === "boolean" && (T.default === void 0 ? T.default = "false" : E && T.deprecated === void 0 && (i.loggedBooleanWarning || i.config.context.logger.error(
2815
- `${ki}Boolean properties should default to "false". Found default value "true" in ${i.apiObject.name}.${T.name}. See https://webgis.esri.com/references/lumina/properties#boolean-properties`
2816
- ), i.loggedBooleanWarning = !0));
2817
- }
2818
- return fo(
2819
- i,
2820
- e,
2821
- i.config.documentation.copyDocDefinitions?.properties,
2822
- T,
2823
- i.apiObject
2824
- ), i.produceDts && C && (d.isAbstract = !0), c && e.questionToken !== void 0 && (T.type.text.endsWith(" | undefined") || (T.type.text = // Don't need to wrap non-accessors in |undefined as we replace |undefined
2825
- // with ? during printing
2826
- u && (D.kind === o.SyntaxKind.FunctionType || D.kind === o.SyntaxKind.ConstructorType || D.kind === o.SyntaxKind.ConditionalType || D.kind === o.SyntaxKind.InferType) ? `(${T.type.text}) | undefined` : `${T.type.text} | undefined`), T.getterType !== void 0 && !T.getterType.text.endsWith(" | undefined") && (T.getterType.text += " | undefined")), T;
2827
- }
2828
- function qt(e, t) {
2829
- if (!t.config.strict)
2830
- return;
2831
- const n = t.jsDoc.docsTags;
2832
- for (let i = 0; i < n.length; ++i) {
2833
- const a = n[i].name;
2834
- if (a === "param" || a === "returns") {
2835
- t.emitError(
2836
- "@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.",
2837
- {
2838
- file: t.file,
2839
- node: e
2840
- }
2841
- );
2842
- return;
2843
- }
2844
- }
2845
- }
2846
- function Fo(e, t) {
2847
- if (e.hasAutoCasting = !0, e.autoCastingRequiresType = !0, t !== void 0)
2848
- for (let n = 0; n < t.properties.length; ++n) {
2849
- const i = t.properties[n];
2850
- if (o.isPropertyAssignment(i) && i.name.escapedText === "defaultKeyValue" && o.isStringLiteral(i.initializer)) {
2851
- e.autoCastingDefaultType = i.initializer.text;
2852
- return;
2853
- }
2854
- }
2855
- }
2856
- const hi = (e) => o.isPropertyDeclaration(e) && e.initializer !== void 0 && o.isCallExpression(e.initializer) && o.isIdentifier(e.initializer.expression) && e.initializer.expression.escapedText === "useT9n";
2857
- function et(e, t) {
2858
- const n = o.isClassDeclaration(e);
2859
- let i = e.name.escapedText;
2860
- const a = n ? t.componentTagName : void 0, r = !n && mi(i, t);
2861
- 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;
2862
- if (t.config.context.supportApplyMixinsSyntax && !n && l?.types.length === 1 && o.isExpressionWithTypeArguments(l.types[0]) && l.types[0].expression.escapedText === "MixinInstances" && l.types[0].typeArguments?.length === 1) {
2863
- No(i, l.types[0].typeArguments[0], t);
2864
- return;
2865
- }
2866
- 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";
2867
- s && (l = void 0, i = t.mixinName);
2868
- const c = ni(), p = {
2869
- [j]: c,
2870
- kind: n ? "class" : "interface",
2871
- name: i,
2872
- customElement: a === void 0 ? void 0 : !0,
2873
- tagName: a,
2874
- privacy: void 0,
2875
- pascalCaseName: a === void 0 ? void 0 : (
2876
- /**
2877
- * We use the tag name rather than the class name to generate the
2878
- * type name because the class name may not start with the library
2879
- * prefix (Arcgis), where as tag name always does. This also matches
2880
- * Stencil's behavior.
2881
- */
2882
- Xi(a)
2883
- ),
2884
- deprecated: void 0,
2885
- summary: void 0,
2886
- description: void 0,
2887
- docsTags: void 0,
2888
- demos: void 0,
2889
- typeParameters: s ? void 0 : ot(e.typeParameters, !0, t),
2890
- superclass: void 0,
2891
- supertypes: void 0,
2892
- mixins: void 0,
2893
- encapsulation: void 0,
2894
- formAssociated: void 0,
2895
- members: [],
2896
- attributes: void 0,
2897
- events: void 0,
2898
- slots: void 0,
2899
- cssParts: void 0,
2900
- cssProperties: void 0,
2901
- cssStates: void 0,
2902
- type: void 0,
2903
- source: void 0,
2904
- // REFACTOR: remove this deprecated property
2905
- importPath: a === void 0 ? void 0 : t.apiModule.path
2906
- }, d = p, m = d, f = d;
2907
- ai(p, t.jsDoc);
2908
- const u = r ? (
2909
- // Members will be added during post-processing
2910
- !1
2911
- ) : Ei(d, e.members, i, t);
2912
- s && (t.mixinMixins !== void 0 && (m.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 && m.superclass === void 0 && t.emitError(
2913
- "Lumina web component must extend LitElement class. Found a class that does not extend any class.",
2914
- {
2915
- file: t.file,
2916
- node: e
2917
- }
2918
- ) : Oo(l, n, p, e, t), a !== void 0 && co(m, t), d.members.length === 0 && (a === void 0 && (d.members = void 0), r && (t.moduleContext.constructorPropertiesInterface = f));
2919
- const g = t.exportDefaultName === i, C = it(e), v = g || C === 2;
2920
- return (v || a !== void 0) && bt(d, v, t), n ? (a === void 0 ? To(
2921
- t,
2922
- e,
2923
- t.config.documentation.copyDocDefinitions.classes,
2924
- m,
2925
- t.apiModule
2926
- ) : ho(
2927
- t,
2928
- e,
2929
- t.config.documentation.copyDocDefinitions.customElements,
2930
- m,
2931
- t.apiModule
2932
- ), t.moduleHasClass && t.config.strict && t.emitError(
2933
- "A module may only export at most one public class/mixin/custom element. Documentation: https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation",
2934
- { file: t.file, node: e }
2935
- ), t.moduleHasClass = !0) : gi(
2936
- t,
2937
- e,
2938
- t.config.documentation.copyDocDefinitions.interfaces,
2939
- f,
2940
- t.apiModule
2941
- ), t.produceDts && (c.isDefaultExported = v || void 0, n && (!s && (!g && C === 0) && t.config.strict && t.emitError("Expected @public class to be exported using named or default export.", {
2942
- file: t.file,
2943
- node: e
2944
- }), pi(e.modifiers, o.SyntaxKind.AbstractKeyword) ? c.hasExplicitAbstract = !0 : !u && (t.config.strict || a !== void 0) && (c.hasExplicitAbstract = !1))), t.objectLikeTypeParameters = void 0, d;
2945
- }
2946
- function Oo(e, t, n, i, a) {
2947
- for (let r = 0; r < e.types.length; ++r) {
2948
- const l = e.types[r];
2949
- if (t) {
2950
- let s = l.typeArguments, c = l.expression;
2951
- if (o.isCallExpression(c)) {
2952
- do {
2953
- const d = c.expression;
2954
- if (o.isPropertyAccessExpression(d) && o.isIdentifier(d.expression) && o.isIdentifier(d.name) && d.expression.escapedText === "Collection" && d.name.escapedText === "ofType") {
2955
- const m = c.arguments[0];
2956
- if (!o.isIdentifier(m)) {
2957
- a.emitError("Expected the argument to Collection.ofType to be an identifier.", {
2958
- file: a.file,
2959
- node: m
2960
- });
2961
- break;
2962
- }
2963
- s = [o.factory.createTypeReferenceNode(m)], c = d.expression;
2964
- } else {
2965
- n.mixins ??= [];
2966
- const m = c.expression;
2967
- n.mixins.unshift(
2968
- Ce(m, c.typeArguments, a)
2969
- ), c = c.arguments[0];
2970
- }
2971
- } while (o.isCallExpression(c));
2972
- if (o.isClassExpression(c)) {
2973
- (c.members.length !== 0 || c.heritageClauses !== void 0) && a.emitError(
2974
- "The only supported inline class expression is an empty class. Extract into a separate named class",
2975
- { file: a.file, node: c }
2976
- );
2977
- break;
2978
- } else o.isExpressionWithTypeArguments(c) && (s = c.typeArguments, c = c.expression);
2979
- }
2980
- const p = Ce(
2981
- c,
2982
- a.isInLuminaMinimalExtraction ? void 0 : s,
2983
- a
2984
- );
2985
- if (p.name === "LitElement") {
2986
- p.name = "HTMLElement", p.package = ce, p.viewUrl = "https://developer.mozilla.org/docs/Web/API/HTMLElement";
2987
- const d = a.moduleContext.importsMap.LitElement;
2988
- d === void 0 ? a.emitError("Expected LitElement import to be defined", { file: a.file, node: i }) : d.actualName = "PublicLitElement";
2989
- }
2990
- n.superclass = p;
2991
- break;
2992
- } else {
2993
- const s = ro(l);
2994
- let c = s, p;
2995
- if (o.isExpressionWithTypeArguments(s))
2996
- c = s.expression, p = s.typeArguments;
2997
- else if (o.isTypeReferenceNode(s) && (c = s.typeName, p = s.typeArguments, c.escapedText === "Record" && p?.length === 2 && p[0].kind === o.SyntaxKind.NeverKeyword && p[1].kind === o.SyntaxKind.NeverKeyword))
2998
- continue;
2999
- n.supertypes ??= [], n.supertypes.push(
3000
- Ce(c, p, a)
3001
- );
3002
- }
3003
- }
3004
- }
3005
- function Ei(e, t, n, i) {
3006
- i.apiObject = e;
3007
- const a = e.customElement === !0, r = e.members, l = t.length;
3008
- let s, c = t[0], p, d = Re(c?.name), m = !1;
3009
- for (let f = 0; f < l; ++f) {
3010
- if (s = c, c = t[f + 1], p = d, d = Re(c?.name), i.pairedSetter !== void 0) {
3011
- i.pairedSetter = void 0;
3012
- continue;
3013
- }
3014
- if (p === void 0 && s.name?.kind === o.SyntaxKind.PrivateIdentifier)
3015
- continue;
3016
- c !== void 0 && p === d && (o.isGetAccessor(c) ? (i.pairedSetter = s, s = c) : o.isSetAccessor(c) && (i.pairedSetter = c));
3017
- let u = oe(s, !0, i) ?? (i.pairedSetter === void 0 ? void 0 : oe(i.pairedSetter, !0, i));
3018
- if (u === void 0 && !i.config.strict && (a ? p !== void 0 && Qt(s, i.pairedSetter, !0) : !pi(s.modifiers, o.SyntaxKind.PrivateKeyword))) {
3019
- const C = i.pairedSetter === void 0 ? je(s, !1, i, Le) : oe(s, !1, i) ?? je(i.pairedSetter, !1, i, Le);
3020
- C?.docsTags.includes(U.private) === !0 ? a && i.config.context.includeLuminaPrivateComponents ? u = Pe : u = void 0 : u = C;
3021
- } else u === void 0 && a && i.config.context.includeLuminaPrivateComponents && Qt(s, i.pairedSetter, !1) && (u = Pe);
3022
- if (u === void 0) {
3023
- 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"), s.name.escapedText === "formAssociated" && s.initializer !== void 0 && Y(s.initializer, i) && (i.apiObject.formAssociated = !0));
3024
- continue;
3025
- }
3026
- i.jsDoc = u;
3027
- let g;
3028
- o.isPropertyDeclaration(s) || o.isPropertyAssignment(s) || o.isGetAccessorDeclaration(s) || o.isSetAccessorDeclaration(s) || o.isPropertySignature(s) ? g = Ti(s, p, !1, i) : o.isMethodDeclaration(s) || o.isMethodSignature(s) ? g = lt(s, p, void 0, i) : o.isConstructorDeclaration(s) || o.isConstructSignatureDeclaration(s) ? (m = !0, g = lt(s, n, void 0, i)) : o.isCallSignatureDeclaration(s) ? g = lt(s, n, void 0, i) : o.isIndexSignatureDeclaration(s) && e.kind === "interface" ? (ct.members.splice(
3029
- 0,
3030
- ct.members.length,
3031
- s
3032
- ), Ci(e, ct, i), me(e).emitAsTypeAlias = !0) : i.emitError(`@public used on unsupported member kind: ${o.SyntaxKind[s.kind]}`, {
3033
- file: i.file,
3034
- node: s
3035
- }), g !== void 0 && r.push(g);
3036
- }
3037
- return i.apiObject = void 0, m;
3038
- }
3039
- const ct = o.factory.createTypeLiteralNode(void 0);
3040
- function Qt(e, t, n) {
3041
- if (e.kind === o.SyntaxKind.PropertyDeclaration || e.kind === o.SyntaxKind.GetAccessor || e.kind === o.SyntaxKind.SetAccessor) {
3042
- const i = e;
3043
- if ((xe(i.modifiers, "property") ?? (t === void 0 ? void 0 : xe(t.modifiers, "property"))) !== void 0)
3044
- return !0;
3045
- if (!n)
3046
- return !1;
3047
- if (hi(e))
3048
- return !0;
3049
- if (i.modifiers !== void 0)
3050
- for (let r = 0; r < (i.modifiers?.length ?? 0); ++r) {
3051
- const l = i.modifiers[r];
3052
- if (l.kind === o.SyntaxKind.PrivateKeyword || l.kind === o.SyntaxKind.ProtectedKeyword || l.kind === o.SyntaxKind.StaticKeyword)
3053
- return !1;
3054
- }
3055
- 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;
3056
- } else return e.kind === o.SyntaxKind.MethodDeclaration ? xe(e.modifiers, "method") !== void 0 : !1;
3057
- }
3058
- function Ci(e, t, n) {
3059
- const i = z(t, n);
3060
- if (e.type === void 0)
3061
- e.type = i;
3062
- else {
3063
- const a = `${e.type.text} &
3064
- `, r = a.length;
3065
- e.type = {
3066
- text: `${a}${i.text}`,
3067
- references: i.references === void 0 ? e.type.references : e.type.references === void 0 ? Vt(i.references, r) : [...e.type.references, ...Vt(i.references, r)],
3068
- values: void 0,
3069
- source: void 0
3070
- };
3071
- }
3072
- }
3073
- function No(e, t, n) {
3074
- if (!o.isTypeQueryNode(t)) {
3075
- n.emitError("Expected a TypeQueryNode for applyMixins syntax", { file: n.file, node: t });
3076
- return;
3077
- }
3078
- if (!o.isIdentifier(t.exprName)) {
3079
- n.emitError("Expected an Identifier for the expression name in applyMixins syntax", {
3080
- file: n.file,
3081
- node: t
3082
- });
3083
- return;
3084
- }
3085
- const i = t.exprName.escapedText;
3086
- let a;
3087
- for (let s = n.file.statements.length - 1; s >= 0; --s) {
3088
- const c = n.file.statements[s];
3089
- if (!o.isVariableStatement(c))
3090
- continue;
3091
- const p = c.declarationList.declarations[0];
3092
- if (o.isIdentifier(p.name) && p.name?.escapedText === i) {
3093
- a = p;
3094
- break;
3095
- }
3096
- }
3097
- if (a === void 0) {
3098
- n.emitError(`Could not find variable declaration for ${i} in applyMixins syntax`, {
3099
- file: n.file,
3100
- node: t
3101
- });
3102
- return;
3103
- }
3104
- if (a.initializer === void 0 || !o.isAsExpression(a.initializer) || !o.isArrayLiteralExpression(a.initializer.expression)) {
3105
- n.emitError(
3106
- `Expected an 'as' expression with an array literal for the initializer of ${i} in applyMixins syntax`,
3107
- {
3108
- file: n.file,
3109
- node: a
3110
- }
3111
- );
3112
- return;
3113
- }
3114
- const r = n.apiModule.declarations.at(-1);
3115
- if (r?.kind !== "class" || r.name !== e) {
3116
- n.emitError(
3117
- `Expected the ${e} class to be defined right before the ${e} interface`,
3118
- {
3119
- file: n.file,
3120
- node: t
3121
- }
3122
- );
3123
- return;
3124
- }
3125
- const l = a.initializer.expression.elements;
3126
- r.mixins ??= [];
3127
- for (let s = 0; s < l.length; ++s) {
3128
- const c = l[s];
3129
- if (!o.isIdentifier(c)) {
3130
- n.emitError(`Expected an Identifier in the mixins array for ${i} in applyMixins syntax`, {
3131
- file: n.file,
3132
- node: c
3133
- });
3134
- return;
3135
- }
3136
- r.mixins.unshift(Ce(c, void 0, n));
3137
- }
3138
- }
3139
- function wo(e, t) {
3140
- const n = e.type, i = e.name.escapedText, a = mi(i, t), r = ni(), l = {
3141
- [j]: r,
3142
- kind: "interface",
3143
- name: i,
3144
- customElement: void 0,
3145
- tagName: void 0,
3146
- privacy: void 0,
3147
- pascalCaseName: void 0,
3148
- deprecated: void 0,
3149
- summary: void 0,
3150
- description: void 0,
3151
- docsTags: void 0,
3152
- demos: void 0,
3153
- typeParameters: ot(e.typeParameters, !0, t),
3154
- superclass: void 0,
3155
- supertypes: void 0,
3156
- mixins: void 0,
3157
- encapsulation: void 0,
3158
- formAssociated: void 0,
3159
- members: [],
3160
- attributes: void 0,
3161
- events: void 0,
3162
- slots: void 0,
3163
- cssParts: void 0,
3164
- cssProperties: void 0,
3165
- cssStates: void 0,
3166
- type: void 0,
3167
- source: void 0,
3168
- importPath: void 0
3169
- }, s = l;
3170
- if (ai(l, t.jsDoc), a)
3171
- t.moduleContext.constructorPropertiesInterface = s;
3172
- else {
3173
- r.emitAsTypeAlias = !0;
3174
- const c = o.isIntersectionTypeNode(n) ? n.types : [n];
3175
- for (let p = 0; p < c.length; ++p) {
3176
- const d = Pt(c[p]);
3177
- if (o.isTypeLiteralNode(d))
3178
- Ei(s, d.members, i, t);
3179
- else if (o.isTypeReferenceNode(d))
3180
- s.supertypes ??= [], s.supertypes.push(Ce(d.typeName, d.typeArguments, t));
3181
- else if (o.isFunctionTypeNode(d) || o.isConstructorTypeNode(d)) {
3182
- if (t.jsDoc = Le, s.docsTags !== void 0) {
3183
- t.jsDoc = { ...Le, docsTags: [] };
3184
- for (let m = 0; m < s.docsTags.length; ++m) {
3185
- const f = s.docsTags[m];
3186
- (f.name === "param" || f.name === "returns") && (t.jsDoc.docsTags.push(f), s.docsTags.splice(m, 1), m -= 1);
3187
- }
3188
- s.docsTags.length === 0 && (s.docsTags = void 0);
3189
- }
3190
- s.members.push(Co(d, i, void 0, t));
3191
- } else
3192
- Ci(s, d, t);
3193
- }
3194
- }
3195
- return t.objectLikeTypeParameters = void 0, gi(
3196
- t,
3197
- e,
3198
- t.config.documentation.copyDocDefinitions.interfaces,
3199
- s,
3200
- t.apiModule
3201
- ), s.members.length === 0 && (s.members = void 0), s;
3202
- }
3203
- function Uo(e, t, n) {
3204
- const i = e.initializer, a = i.body;
3205
- let r, l;
3206
- for (let d = 0; d < a.statements.length; ++d) {
3207
- const m = a.statements[d];
3208
- if (o.isVariableStatement(m)) {
3209
- const f = m.declarationList.declarations[0];
3210
- if (!o.isIdentifier(f.name) || f.name?.escapedText !== "TypedBase")
3211
- continue;
3212
- let u = f.initializer.expression.expression;
3213
- for (; o.isCallExpression(u); ) {
3214
- const g = u.expression;
3215
- r ??= [], r.push(Ce(g, u.typeArguments, n)), u = u.arguments[0];
3216
- }
3217
- } else o.isClassDeclaration(m) && (l = m);
3218
- }
3219
- if (l === void 0) {
3220
- n.emitError(`Failed to find class declaration inside the mixin ${t}`, {
3221
- file: n.file,
3222
- node: e
3223
- });
3224
- return;
3225
- }
3226
- ot(
3227
- // Skip the TBase type parameter - non-public implementation detail
3228
- i.typeParameters.length === 1 ? void 0 : i.typeParameters.slice(1),
3229
- !0,
3230
- n
3231
- ) !== void 0 && n.emitError(
3232
- "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/sdk/contributing/core/core/mixins#limitations-of-mixins",
3233
- {
3234
- file: n.file,
3235
- node: e
3236
- }
3237
- ), n.mixinName = t, n.mixinMixins = r;
3238
- const p = et(l, n);
3239
- return p.kind = "mixin", p;
3240
- }
3241
- function Vo(e, t, n) {
3242
- const i = n.moduleHasClass;
3243
- n.moduleHasClass = !1;
3244
- const a = o.factory.createClassDeclaration(
3245
- [o.factory.createModifier(o.SyntaxKind.ExportKeyword)],
3246
- t,
3247
- void 0,
3248
- [
3249
- o.factory.createHeritageClause(o.SyntaxKind.ExtendsKeyword, [
3250
- o.factory.createExpressionWithTypeArguments(e, void 0)
3251
- ])
3252
- ],
3253
- []
3254
- ), r = et(a, n), l = r, s = me(l);
3255
- return l.kind = "interface", l.supertypes = r.mixins, r.mixins = void 0, r.superclass !== void 0 && (l.supertypes ??= [], l.supertypes.unshift(r.superclass), r.superclass = void 0), n.moduleHasClass = i, s.isMixinBaseClass = !0, l;
3256
- }
3257
- function Wo(e, t) {
3258
- const n = e.declarationList.declarations;
3259
- n.length !== 1 && t.emitError("Public variable statements must have only a single variable declarations. Found multiple.", {
3260
- file: t.file,
3261
- node: e
3262
- });
3263
- const i = n[0], a = i.name;
3264
- if (!o.isIdentifier(a)) {
3265
- t.config.strict && t.emitError("Expected public variable names to be an identifier.", {
3266
- file: t.file,
3267
- node: e
3268
- });
3269
- return;
3270
- }
3271
- const r = a.escapedText, l = t.exportDefaultName === r;
3272
- if (it(e) === 0 && !l && t.config.strict && t.emitError("Expected @public variable to be exported as named or default export.", {
3273
- file: t.file,
3274
- node: e
3275
- }), t.mixinName !== void 0 && i.initializer !== void 0 && o.isCallExpression(i.initializer) && o.isIdentifier(i.initializer.expression) && i.initializer.expression.escapedText === t.mixinName)
3276
- return Vo(i.initializer, r, t);
3277
- let c = i.type;
3278
- const p = (e.declarationList.flags & o.NodeFlags.Const) !== 0;
3279
- if (c === void 0) {
3280
- const u = i.initializer;
3281
- if (u !== void 0 && o.isArrowFunction(u) && p)
3282
- return u.typeParameters?.at(0)?.name?.escapedText === "TBase" ? Uo(i, r, t) : Ht(u, r, e, t);
3283
- u === void 0 ? c = X(
3284
- { file: t.file, node: i },
3285
- "Public variable must have a type annotation or a default value",
3286
- t
3287
- ) : c = Ct(u, p ? w.shallow : w.false, t.file, t);
3288
- } else if (c = Pt(c), o.isFunctionTypeNode(c))
3289
- return Ht(c, r, e, t);
3290
- const d = Ni(), m = {
3291
- [j]: d,
3292
- kind: "variable",
3293
- name: r,
3294
- deprecated: void 0,
3295
- summary: void 0,
3296
- description: void 0,
3297
- docsTags: void 0,
3298
- source: void 0,
3299
- type: z(c, t),
3300
- default: void 0
3301
- };
3302
- return un(m, t.jsDoc), p && c.kind === o.SyntaxKind.LiteralType || (m.default = ze(i.initializer, m.default, t.file)), So(
3303
- t,
3304
- e,
3305
- t.config.documentation.copyDocDefinitions.variables,
3306
- m,
3307
- t.apiModule
3308
- ), l && (bt(m, !0, t), t.produceDts && (d.isDefaultExported = !0)), m;
3309
- }
3310
- function Pi(e, t, n) {
3311
- const i = n.statementJsDocs[t];
3312
- if (i !== void 0) {
3313
- if (n.jsDoc = i, o.isClassDeclaration(e))
3314
- return et(e, n);
3315
- if (o.isFunctionDeclaration(e))
3316
- return Eo(e, e.name.escapedText, void 0, n);
3317
- if (o.isInterfaceDeclaration(e))
3318
- return et(e, n);
3319
- if (o.isTypeAliasDeclaration(e))
3320
- return wo(e, n);
3321
- if (o.isVariableStatement(e))
3322
- return Wo(e, n);
3323
- }
3324
- }
3325
- function _o(e, t) {
3326
- const n = t.apiModule.declarations, i = e.statements;
3327
- for (let a = 0; a < i.length; ++a) {
3328
- const r = i[a], l = Pi(r, a, t);
3329
- l !== void 0 && n.push(l);
3330
- }
3331
- }
3332
- function Bo(e, t) {
3333
- const n = e.fileName.slice(t.config.context.cwd.length), i = t.watchFiles?.get(n);
3334
- if (i !== void 0) {
3335
- if (i.module !== void 0)
3336
- return i.module;
3337
- if (i.isEmptyModule)
3338
- return;
3339
- }
3340
- const a = n.slice(t.config.context.basePath.length), r = Z(a), l = We(r, t, !0), s = t.componentTagName === void 0 ? l : `${l}/customElement`;
3341
- t.mixinName = void 0, t.moduleHasClass = !1, t.apiClassLikeName = void 0, t.isInLuminaMinimalExtraction = t.config.context.isLuminaMinimalExtraction;
3342
- const c = /* @__PURE__ */ Object.create(null), p = t.localDeclarations;
3343
- p.clear();
3344
- const d = t.localPrivateDeclarations;
3345
- d?.clear(), t.exportDefaultName = void 0;
3346
- let m;
3347
- const f = {
3348
- class: void 0,
3349
- default: void 0,
3350
- named: /* @__PURE__ */ Object.create(null)
3351
- }, u = ii(e, s, c, f);
3352
- t.moduleContext = u;
3353
- const g = t.implicitPublicModules?.[l];
3354
- let C = !1;
3355
- const v = t.isJsApi && l.startsWith("applications/");
3356
- t.statementJsDocs.length = 0;
3357
- for (let I = 0; I < e.statements.length; ++I) {
3358
- const y = e.statements[I], k = y.kind === o.SyntaxKind.ClassDeclaration || y.kind === o.SyntaxKind.FunctionDeclaration || y.kind === o.SyntaxKind.InterfaceDeclaration || y.kind === o.SyntaxKind.TypeAliasDeclaration || y.kind === o.SyntaxKind.VariableStatement;
3359
- let M;
3360
- if (
3361
- // Only look at web components in Lumina's dev server
3362
- t.isInLuminaMinimalExtraction
3363
- )
3364
- M = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 ? Le : void 0;
3365
- else if (k) {
3366
- if (M = oe(y, !0, t), M === void 0 && !t.config.strict) {
3367
- const L = je(y, !1, t, {
3368
- description: void 0,
3369
- docsTags: []
3370
- }), D = y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0;
3371
- L?.docsTags.includes(U.private) === !0 ? D && t.config.context.includeLuminaPrivateComponents ? (M = Pe, t.isInLuminaMinimalExtraction = !0) : M = void 0 : L !== void 0 && (D || g !== void 0 && Nn(y, g)) && (M = L);
3372
- } else M === void 0 && t.componentTagName !== void 0 && t.config.context.includeLuminaPrivateComponents && y.kind === o.SyntaxKind.ClassDeclaration && (M = Pe, t.isInLuminaMinimalExtraction = !0);
3373
- M !== void 0 && !t.config.strict && y.kind === o.SyntaxKind.ClassDeclaration && t.componentTagName !== void 0 && y.heritageClauses !== void 0 && y.modifiers !== void 0 && M.docsTags.includes(U.internal) && (C = !0);
3374
- }
3375
- if (t.statementJsDocs[I] = M, k || I === 0 && (m = oe(e, !0, t)), M !== void 0)
3376
- v && M.docsTags.push(U.internal), p.add(
3377
- (y.name ?? y.declarationList?.declarations[0].name).escapedText
3378
- ), y.kind === o.SyntaxKind.ClassDeclaration ? t.apiClassLikeName = y.name?.escapedText : y.kind === o.SyntaxKind.VariableStatement && y.declarationList.declarations[0].initializer?.kind === o.SyntaxKind.ArrowFunction && (t.apiClassLikeName = y.declarationList.declarations[0].name.escapedText);
3379
- else if (o.isImportDeclaration(y)) {
3380
- const L = y.importClause;
3381
- if (L === void 0)
3382
- continue;
3383
- const D = y.moduleSpecifier.text, T = !D.startsWith("."), _ = T ? D : Z(D), N = T ? void 0 : We(ut(r, _), t), J = N === void 0 ? void 0 : t.config.types.typeReplacements[N];
3384
- if (Rn(y, t), L.name !== void 0) {
3385
- const E = L.name.escapedText, S = J?.[E], x = S?.[1], A = S === void 0 ? !T && D.endsWith(".json") ? D : _ : ve(s, S[0]), V = S?.[0] ?? N;
3386
- c[E] = {
3387
- type: S?.[2] ?? "default",
3388
- modulePath: V,
3389
- specifier: A,
3390
- replacementName: x,
3391
- actualName: void 0,
3392
- wasUsed: !1
3393
- };
3394
- }
3395
- const K = L.namedBindings;
3396
- if (K === void 0)
3397
- continue;
3398
- if (K.kind === o.SyntaxKind.NamespaceImport) {
3399
- const E = K.name.escapedText, S = J?.[E], x = S?.[1], A = S === void 0 ? _ : ve(s, S[0]), V = S?.[0] ?? N;
3400
- c[E] = {
3401
- type: "*",
3402
- modulePath: V,
3403
- specifier: A,
3404
- replacementName: x,
3405
- actualName: void 0,
3406
- wasUsed: !1
3407
- };
3408
- } else
3409
- for (let E = 0; E < K.elements.length; ++E) {
3410
- const S = K.elements[E], x = S.propertyName === void 0 ? void 0 : S.propertyName.escapedText ?? S.propertyName.text, A = S.name.escapedText, V = J?.[x ?? A], W = V?.[1], G = V === void 0 ? _ : ve(s, V[0]), O = V?.[0] ?? N;
3411
- c[A] = {
3412
- type: V?.[2] ?? "named",
3413
- modulePath: O,
3414
- specifier: G,
3415
- replacementName: W,
3416
- actualName: V === void 0 ? x : void 0,
3417
- wasUsed: !1
3418
- };
3419
- }
3420
- } else if (o.isExportAssignment(y)) {
3421
- if (o.isIdentifier(y.expression)) {
3422
- const L = y.expression.escapedText;
3423
- t.exportDefaultName = L, !p.has(L) && d?.has(L) === !0 && g?.pendingNames?.has("default") === !0 && d.set(L, Math.abs(d.get(L)));
3424
- }
3425
- } else if (o.isExportDeclaration(y) && y.moduleSpecifier !== void 0 && !t.isInLuminaMinimalExtraction) {
3426
- if (oe(y, !0, t) !== void 0) {
3427
- const D = y.moduleSpecifier.text, T = !D.startsWith("."), _ = T ? D : ut(r, Z(D)), N = T ? void 0 : We(_, t), J = T ? D : ve(s, N);
3428
- u.reExports ??= [];
3429
- const K = [];
3430
- if (y.exportClause?.kind === o.SyntaxKind.NamedExports) {
3431
- const E = y.exportClause.elements;
3432
- for (let S = 0; S < E.length; ++S) {
3433
- const x = E[S], A = Re(x.name), V = x.propertyName === void 0 ? void 0 : Re(x.propertyName), W = V ?? A, G = V === void 0 ? void 0 : A;
3434
- K.push({
3435
- exportName: W,
3436
- aliasName: G,
3437
- isTypeOnly: y.isTypeOnly
3438
- }), !t.config.strict && N !== void 0 && Je(N, _, W, t);
3439
- }
3440
- } else
3441
- K.push({
3442
- exportName: "*",
3443
- aliasName: y.exportClause === void 0 ? void 0 : Re(y.exportClause.name),
3444
- isTypeOnly: !1
3445
- }), !t.config.strict && N !== void 0 && Je(N, _, "*", t);
3446
- u.reExports.push({
3447
- modulePath: N,
3448
- specifier: J,
3449
- isTypeOnly: y.isTypeOnly,
3450
- specifiers: K
3451
- });
3452
- }
3453
- } else o.isModuleDeclaration(y) ? oe(y, !0, t) !== void 0 && (u.namespaces ??= [], u.namespaces.push(y.getFullText(e))) : d !== void 0 && k && d.set(
3454
- (y.name ?? y.declarationList?.declarations[0].name).escapedText,
3455
- -I
3456
- );
3457
- }
3458
- const P = t.config.types.typeReplacements[l];
3459
- if (P !== void 0) {
3460
- const I = Object.keys(P);
3461
- for (let y = 0; y < I.length; ++y) {
3462
- const k = I[y], M = P[k];
3463
- c[k] = {
3464
- type: M[2],
3465
- modulePath: M[0],
3466
- specifier: ve(s, M[0]),
3467
- replacementName: M[1],
3468
- actualName: void 0,
3469
- wasUsed: !1
3470
- };
3471
- }
3472
- }
3473
- t.moduleHasAccessorLikeClass = c.subclass?.specifier.includes("accessorSupport") ?? !1;
3474
- const h = {
3475
- [j]: u,
3476
- kind: "javascript-module",
3477
- path: l,
3478
- sourcePath: n,
3479
- deprecated: void 0,
3480
- description: void 0,
3481
- docsTags: void 0,
3482
- summary: void 0,
3483
- declarations: [],
3484
- exports: []
3485
- };
3486
- if (t.apiModule = h, _o(e, t), d !== void 0) {
3487
- let I = !1;
3488
- do {
3489
- I = !1;
3490
- for (const [y, k] of d)
3491
- if (k > 0 || Object.is(k, 0)) {
3492
- d.delete(y), p.add(y), I = !0;
3493
- const M = e.statements[k], L = je(M, !1, t, {
3494
- description: void 0,
3495
- docsTags: []
3496
- });
3497
- if (L === void 0)
3498
- continue;
3499
- if (L.docsTags.includes(U.private))
3500
- t.emitError(
3501
- `Declaration "${y}" is marked @private but is used by public API in the same file. Either refactor our its reference or remove the @private tag.`,
3502
- {
3503
- file: e,
3504
- node: M
3505
- }
3506
- );
3507
- else {
3508
- C && !L.docsTags.includes(U.internal) && L.docsTags.push(U.internal), t.statementJsDocs[k] = L;
3509
- const T = Pi(M, k, t);
3510
- T !== void 0 && h.declarations.push(T);
3511
- }
3512
- }
3513
- } while (I);
3514
- }
3515
- if (h.declarations.length === 0 && u.reExports === void 0 && u.namespaces === void 0) {
3516
- i !== void 0 && (i.isEmptyModule = !0);
3517
- return;
3518
- }
3519
- t.moduleMap.set(l, h), t.watchFiles !== void 0 && (i === void 0 ? t.watchFiles.set(h.sourcePath, {
3520
- file: u.file,
3521
- module: h,
3522
- previousModule: void 0,
3523
- isEmptyModule: !1,
3524
- dependencies: /* @__PURE__ */ new Set(),
3525
- dependents: /* @__PURE__ */ new Map(),
3526
- docLinks: [],
3527
- hasDirtyLinks: !1,
3528
- wasRemoved: !1
3529
- }) : i.module = h);
3530
- const R = t.componentTagName === void 0 ? h.exports[0]?.declaration.name : void 0;
3531
- h.exports.length === 0 && (h.exports = void 0);
3532
- for (let I = 0; I < h.declarations.length; ++I) {
3533
- const y = h.declarations[I];
3534
- (y.kind === "class" || y.kind === "mixin") && (f.class = y), R === y.name && (f.default = y), f.named[y.name] = y;
3535
- }
3536
- return m !== void 0 && (t.moduleHasClass ? t.emitError(
3537
- "A module that exports a class must have JSDoc attached to the class, rather than module-top JSDoc. See https://webgis.esri.com/references/api-extractor/api-node-kinds#module-level-documentation",
3538
- {
3539
- file: e,
3540
- start: 0,
3541
- length: e.statements[0]?.getStart(e) ?? 1,
3542
- node: void 0
3543
- }
3544
- ) : (v && m.docsTags.push(U.internal), dn(h, m))), h;
3545
- }
3546
- async function Ca(e) {
3547
- const t = [], n = e.basePath, i = e.config.context.excludedDirectories, a = `${e.basePath}components/`, r = [], l = !e.config.strict || e.config.context.includeLuminaPrivateComponents;
3548
- e.componentPathMapping = /* @__PURE__ */ Object.create(null);
3549
- const s = e.isComponentProject ? (m) => $i(m, a) : () => !1, c = e.isComponentProject ? p : d;
3550
- if (e.program === void 0)
3551
- await xi(n, i, async (m) => {
3552
- if (bi(m))
3553
- return;
3554
- const f = await It(m);
3555
- if (m.includes(".stories.")) {
3556
- const C = f.toString("utf8");
3557
- Ut(C, m, e);
3558
- return;
3559
- }
3560
- const u = s(m);
3561
- if (u && l || // Exclude files before paying .toString() cost
3562
- f.includes(zo) && (f.includes(jo) || f.includes(Jo))) {
3563
- const C = f.toString("utf8"), v = Yt(m, C);
3564
- c(v, u);
3565
- }
3566
- });
3567
- else {
3568
- const m = e.program.getSourceFiles();
3569
- for (let f = 0; f < m.length; ++f) {
3570
- const u = m[f], g = u.fileName;
3571
- if (!Ko(g, e))
3572
- continue;
3573
- if (g.includes(".stories.")) {
3574
- Ut(u.text, g, e);
3575
- continue;
3576
- }
3577
- const C = s(g);
3578
- (C && l || u.text.includes(Mi) || u.text.includes(Di)) && c(u, C);
3579
- }
3580
- }
3581
- function p(m, f) {
3582
- r.push(m);
3583
- const u = f ? zi(m.text)?.[0] : void 0;
3584
- if (u !== void 0) {
3585
- const g = m.fileName.slice(e.basePath.length);
3586
- ji(u, e, g);
3587
- }
3588
- }
3589
- function d(m) {
3590
- e.file = m;
3591
- const f = Bo(m, e);
3592
- f !== void 0 && t.push(f);
3593
- }
3594
- for (let m = 0; m < r.length; ++m)
3595
- d(r[m]);
3596
- if (e.implicitPublicModules !== void 0) {
3597
- let m = !1;
3598
- do {
3599
- m = !1;
3600
- for (const f in e.implicitPublicModules) {
3601
- const u = e.implicitPublicModules[f], g = u.actualModulePath ?? f, C = e.moduleMap.get(g);
3602
- if (u.extractedNames === void 0)
3603
- continue;
3604
- if (u.pendingNames !== void 0) {
3605
- const R = e.watchFiles?.get(e.config.context.basePath + u.sourcePath);
3606
- let y = !(R !== void 0 && R.module === void 0 && !R.isEmptyModule);
3607
- const k = C === void 0 ? void 0 : ne(C).index;
3608
- for (const M of u.pendingNames)
3609
- if (!u.extractedNames.has(M) && (k === void 0 || (M === "default" ? k.default === void 0 : k.named[M] === void 0))) {
3610
- y = !1;
3611
- break;
3612
- }
3613
- if (y)
3614
- continue;
3615
- }
3616
- if (C !== void 0) {
3617
- t.splice(t.indexOf(C), 1);
3618
- const R = e.watchFiles?.get(C.sourcePath);
3619
- R !== void 0 && (R.module = void 0);
3620
- }
3621
- m = !0, u.extractedNames = u.pendingNames === void 0 ? void 0 : new Set(u.pendingNames);
3622
- let v = e.basePath + u.sourcePath, P = !1, h = e.program?.getSourceFile(v) ?? e.program?.getSourceFile(`${v}.ts`) ?? e.program?.getSourceFile(`${v}.tsx`) ?? e.program?.getSourceFile(`${v}.d.ts`);
3623
- if (h === void 0 && (h = e.program?.getSourceFile(`${v}/index.ts`) ?? e.program?.getSourceFile(`${v}/index.tsx`) ?? e.program?.getSourceFile(`${v}/index.d.ts`), h !== void 0 && (P = !0)), e.program === void 0 && (Z(v) === v && (v = fe(`${v}.ts`) ? `${v}.ts` : fe(`${v}.tsx`) ? `${v}.tsx` : fe(`${v}.d.ts`) ? `${v}.d.ts` : void 0, v === void 0 && (v = fe(`${v}/index.ts`) ? `${v}/index.ts` : fe(`${v}/index.tsx`) ? `${v}/index.tsx` : fe(`${v}/index.d.ts`) ? `${v}/index.d.ts` : void 0, v !== void 0 && (P = !0))), v !== void 0 && (h = Yt(v, await It(v, "utf8")))), h !== void 0) {
3624
- const R = h.fileName.slice(e.basePath.length);
3625
- R !== u.sourcePath && (u.sourcePath = R), P && (u.actualModulePath = `${g}/index`), d(h);
3626
- }
3627
- }
3628
- } while (m);
3629
- }
3630
- return t;
3631
- }
3632
- const Ko = (e, t) => Ho(e) && $o(e, t), Ho = (e) => (e.endsWith(".ts") || e.endsWith(".tsx")) && !bi(e), bi = (e) => e.includes("__test") || e.includes(".e2e.") || e.includes(".spec.") || e.includes(".test."), $o = (e, t) => e.startsWith(t.basePath) && !t.config.context.excludedDirectories.has(
3633
- En(e.slice(t.basePath.length))
3634
- ) && !e.includes("node_modules"), Xt = 32, zo = 64, Mi = "@public", jo = Buffer.from(Mi), Di = "@internal", Jo = Buffer.from(Di);
3635
- async function Pa(e) {
3636
- await Zt(e) && await xi(e, /* @__PURE__ */ new Set(), Hi);
3637
- }
3638
- async function xi(e, t, n) {
3639
- const i = [], a = [];
3640
- for await (const d of await At(e)) {
3641
- const m = `${e}${d.name}`;
3642
- d.isDirectory() && !t.has(d.name) ? a.push(m) : (d.name.endsWith(".ts") || d.name.endsWith(".tsx")) && i.push(m);
3643
- }
3644
- const r = i.length === 0 ? [] : [i], l = Promise.withResolvers();
3645
- function s(d) {
3646
- l.reject(d), r.length = 0;
3647
- }
3648
- let c = Xt;
3649
- for (let d = 0; d < Xt; ++d)
3650
- p().catch(s);
3651
- async function p() {
3652
- for (; ; )
3653
- if (r.length === 0 && a.length > 0) {
3654
- const d = a.shift(), m = [];
3655
- for await (const f of await At(d, { recursive: !0 }))
3656
- f.isFile() && (f.name.endsWith(".ts") || f.name.endsWith(".tsx")) && m.push(`${Li(f.parentPath)}/${f.name}`);
3657
- if (m.length === 0)
3658
- continue;
3659
- r.push(m);
3660
- } else if (r.length > 0) {
3661
- const d = r[0], m = d.shift();
3662
- d.length === 0 && r.shift(), await n(m);
3663
- } else {
3664
- c -= 1, c === 0 && l.resolve();
3665
- return;
3666
- }
3667
- }
3668
- return await l.promise;
3669
- }
3670
- function Yt(e, t) {
3671
- return o.createSourceFile(
3672
- e,
3673
- t,
3674
- {
3675
- languageVersion: o.ScriptTarget.Latest,
3676
- impliedNodeFormat: o.ModuleKind.ESNext,
3677
- // TypeScript parses too much around @param, @property and @deprecated tags
3678
- // It also parses out inline tags. We have to put them back together
3679
- // (overhead and complexity). Plus, it is a bit too tolerant - we want
3680
- // to disallow some ambiguous behavior to improve consistency.
3681
- // So, we disable JSDoc parsing and do it ourselves.
3682
- jsDocParsingMode: o.JSDocParsingMode.ParseNone
3683
- },
3684
- !1,
3685
- e.endsWith("ts") ? o.ScriptKind.TS : o.ScriptKind.TSX
3686
- );
3687
- }
3688
- export {
3689
- ve as a,
3690
- Sa as b,
3691
- Pa as c,
3692
- Ta as d,
3693
- Ca as e,
3694
- ha as f,
3695
- Ho as g,
3696
- $o as h,
3697
- Ko as i,
3698
- bi as j,
3699
- Yt as k,
3700
- ya as l,
3701
- va as m,
3702
- Wt as n,
3703
- Vt as o,
3704
- ga as p,
3705
- fa as r,
3706
- Ea as t
3707
- };