@vgai/cli 0.5.14 → 0.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1518 -720
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -13492,13 +13492,13 @@ function _stringbool(Classes, _params) {
13492
13492
  return codec2;
13493
13493
  }
13494
13494
  // @__NO_SIDE_EFFECTS__
13495
- function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
13495
+ function _stringFormat(Class2, format2, fnOrRegex, _params = {}) {
13496
13496
  const params = normalizeParams(_params);
13497
13497
  const def = {
13498
13498
  ...normalizeParams(_params),
13499
13499
  check: "string_format",
13500
13500
  type: "string",
13501
- format,
13501
+ format: format2,
13502
13502
  fn: typeof fnOrRegex === "function" ? fnOrRegex : (val) => fnOrRegex.test(val),
13503
13503
  ...params
13504
13504
  };
@@ -13934,16 +13934,16 @@ var init_json_schema_processors = __esm({
13934
13934
  stringProcessor = (schema, ctx, _json, _params) => {
13935
13935
  const json2 = _json;
13936
13936
  json2.type = "string";
13937
- const { minimum, maximum, format, patterns, contentEncoding } = schema._zod.bag;
13937
+ const { minimum, maximum, format: format2, patterns, contentEncoding } = schema._zod.bag;
13938
13938
  if (typeof minimum === "number")
13939
13939
  json2.minLength = minimum;
13940
13940
  if (typeof maximum === "number")
13941
13941
  json2.maxLength = maximum;
13942
- if (format) {
13943
- json2.format = formatMap[format] ?? format;
13942
+ if (format2) {
13943
+ json2.format = formatMap[format2] ?? format2;
13944
13944
  if (json2.format === "")
13945
13945
  delete json2.format;
13946
- if (format === "time") {
13946
+ if (format2 === "time") {
13947
13947
  delete json2.format;
13948
13948
  }
13949
13949
  }
@@ -13965,8 +13965,8 @@ var init_json_schema_processors = __esm({
13965
13965
  };
13966
13966
  numberProcessor = (schema, ctx, _json, _params) => {
13967
13967
  const json2 = _json;
13968
- const { minimum, maximum, format, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
13969
- if (typeof format === "string" && format.includes("int"))
13968
+ const { minimum, maximum, format: format2, multipleOf, exclusiveMaximum, exclusiveMinimum } = schema._zod.bag;
13969
+ if (typeof format2 === "string" && format2.includes("int"))
13970
13970
  json2.type = "integer";
13971
13971
  else
13972
13972
  json2.type = "number";
@@ -15231,8 +15231,8 @@ function e1642(params) {
15231
15231
  function jwt(params) {
15232
15232
  return _jwt(ZodJWT, params);
15233
15233
  }
15234
- function stringFormat(format, fnOrRegex, _params = {}) {
15235
- return _stringFormat(ZodCustomStringFormat, format, fnOrRegex, _params);
15234
+ function stringFormat(format2, fnOrRegex, _params = {}) {
15235
+ return _stringFormat(ZodCustomStringFormat, format2, fnOrRegex, _params);
15236
15236
  }
15237
15237
  function hostname2(_params) {
15238
15238
  return _stringFormat(ZodCustomStringFormat, "hostname", regexes_exports.hostname, _params);
@@ -15242,11 +15242,11 @@ function hex2(_params) {
15242
15242
  }
15243
15243
  function hash(alg, params) {
15244
15244
  const enc = params?.enc ?? "hex";
15245
- const format = `${alg}_${enc}`;
15246
- const regex2 = regexes_exports[format];
15245
+ const format2 = `${alg}_${enc}`;
15246
+ const regex2 = regexes_exports[format2];
15247
15247
  if (!regex2)
15248
- throw new Error(`Unrecognized hash format: ${format}`);
15249
- return _stringFormat(ZodCustomStringFormat, format, regex2, params);
15248
+ throw new Error(`Unrecognized hash format: ${format2}`);
15249
+ return _stringFormat(ZodCustomStringFormat, format2, regex2, params);
15250
15250
  }
15251
15251
  function number2(params) {
15252
15252
  return _number(ZodNumber, params);
@@ -16390,52 +16390,52 @@ function convertBaseSchema(schema, ctx) {
16390
16390
  case "string": {
16391
16391
  let stringSchema = z.string();
16392
16392
  if (schema.format) {
16393
- const format = schema.format;
16394
- if (format === "email") {
16393
+ const format2 = schema.format;
16394
+ if (format2 === "email") {
16395
16395
  stringSchema = stringSchema.check(z.email());
16396
- } else if (format === "uri" || format === "uri-reference") {
16396
+ } else if (format2 === "uri" || format2 === "uri-reference") {
16397
16397
  stringSchema = stringSchema.check(z.url());
16398
- } else if (format === "uuid" || format === "guid") {
16398
+ } else if (format2 === "uuid" || format2 === "guid") {
16399
16399
  stringSchema = stringSchema.check(z.uuid());
16400
- } else if (format === "date-time") {
16400
+ } else if (format2 === "date-time") {
16401
16401
  stringSchema = stringSchema.check(z.iso.datetime());
16402
- } else if (format === "date") {
16402
+ } else if (format2 === "date") {
16403
16403
  stringSchema = stringSchema.check(z.iso.date());
16404
- } else if (format === "time") {
16404
+ } else if (format2 === "time") {
16405
16405
  stringSchema = stringSchema.check(z.iso.time());
16406
- } else if (format === "duration") {
16406
+ } else if (format2 === "duration") {
16407
16407
  stringSchema = stringSchema.check(z.iso.duration());
16408
- } else if (format === "ipv4") {
16408
+ } else if (format2 === "ipv4") {
16409
16409
  stringSchema = stringSchema.check(z.ipv4());
16410
- } else if (format === "ipv6") {
16410
+ } else if (format2 === "ipv6") {
16411
16411
  stringSchema = stringSchema.check(z.ipv6());
16412
- } else if (format === "mac") {
16412
+ } else if (format2 === "mac") {
16413
16413
  stringSchema = stringSchema.check(z.mac());
16414
- } else if (format === "cidr") {
16414
+ } else if (format2 === "cidr") {
16415
16415
  stringSchema = stringSchema.check(z.cidrv4());
16416
- } else if (format === "cidr-v6") {
16416
+ } else if (format2 === "cidr-v6") {
16417
16417
  stringSchema = stringSchema.check(z.cidrv6());
16418
- } else if (format === "base64") {
16418
+ } else if (format2 === "base64") {
16419
16419
  stringSchema = stringSchema.check(z.base64());
16420
- } else if (format === "base64url") {
16420
+ } else if (format2 === "base64url") {
16421
16421
  stringSchema = stringSchema.check(z.base64url());
16422
- } else if (format === "e164") {
16422
+ } else if (format2 === "e164") {
16423
16423
  stringSchema = stringSchema.check(z.e164());
16424
- } else if (format === "jwt") {
16424
+ } else if (format2 === "jwt") {
16425
16425
  stringSchema = stringSchema.check(z.jwt());
16426
- } else if (format === "emoji") {
16426
+ } else if (format2 === "emoji") {
16427
16427
  stringSchema = stringSchema.check(z.emoji());
16428
- } else if (format === "nanoid") {
16428
+ } else if (format2 === "nanoid") {
16429
16429
  stringSchema = stringSchema.check(z.nanoid());
16430
- } else if (format === "cuid") {
16430
+ } else if (format2 === "cuid") {
16431
16431
  stringSchema = stringSchema.check(z.cuid());
16432
- } else if (format === "cuid2") {
16432
+ } else if (format2 === "cuid2") {
16433
16433
  stringSchema = stringSchema.check(z.cuid2());
16434
- } else if (format === "ulid") {
16434
+ } else if (format2 === "ulid") {
16435
16435
  stringSchema = stringSchema.check(z.ulid());
16436
- } else if (format === "xid") {
16436
+ } else if (format2 === "xid") {
16437
16437
  stringSchema = stringSchema.check(z.xid());
16438
- } else if (format === "ksuid") {
16438
+ } else if (format2 === "ksuid") {
16439
16439
  stringSchema = stringSchema.check(z.ksuid());
16440
16440
  }
16441
16441
  }
@@ -18308,15 +18308,15 @@ function requireResolution(width, height) {
18308
18308
  );
18309
18309
  }
18310
18310
  }
18311
- function requireValidBackgroundFormat(background, format) {
18312
- if (background === "transparent" && format === "mp4") {
18311
+ function requireValidBackgroundFormat(background, format2) {
18312
+ if (background === "transparent" && format2 === "mp4") {
18313
18313
  throw new RenderCinematicRequestError(
18314
18314
  "--background transparent is incompatible with --format mp4 (H.264 has no alpha channel). Use --format webm or --format png for alpha output."
18315
18315
  );
18316
18316
  }
18317
18317
  }
18318
- function requireValidAudioFormat(audio, format) {
18319
- if (audio === "on" && format === "png") {
18318
+ function requireValidAudioFormat(audio, format2) {
18319
+ if (audio === "on" && format2 === "png") {
18320
18320
  throw new RenderCinematicRequestError(
18321
18321
  "--audio on is incompatible with --format png (a PNG sequence has no container to mux audio into). Use --format mp4 or --format webm for an audio-bearing render."
18322
18322
  );
@@ -18348,7 +18348,7 @@ function resolveSimulateFields(req) {
18348
18348
  return { simulate, simulateSubsteps, simulateWarmupSubsteps, simulateFixedDt };
18349
18349
  }
18350
18350
  function resolveRenderCinematicRequest(req) {
18351
- const format = req.format ?? "mp4";
18351
+ const format2 = req.format ?? "mp4";
18352
18352
  const fps = requirePositive(req.fps ?? 30, "--fps");
18353
18353
  const start = req.start ?? 0;
18354
18354
  if (!Number.isFinite(start) || start < 0) {
@@ -18360,14 +18360,14 @@ function resolveRenderCinematicRequest(req) {
18360
18360
  requireResolution(width, height);
18361
18361
  const dpr = requirePositive(req.dpr ?? 1, "--dpr");
18362
18362
  const background = req.background ?? "opaque";
18363
- requireValidBackgroundFormat(background, format);
18363
+ requireValidBackgroundFormat(background, format2);
18364
18364
  const audio = req.audio ?? "auto";
18365
- requireValidAudioFormat(audio, format);
18365
+ requireValidAudioFormat(audio, format2);
18366
18366
  const { simulate, simulateSubsteps, simulateWarmupSubsteps, simulateFixedDt } = resolveSimulateFields(req);
18367
18367
  return {
18368
18368
  entry: req.entry,
18369
18369
  out: req.out,
18370
- format,
18370
+ format: format2,
18371
18371
  fps,
18372
18372
  start,
18373
18373
  end,
@@ -18382,7 +18382,7 @@ function resolveRenderCinematicRequest(req) {
18382
18382
  keepFrames: req.keepFrames ?? false,
18383
18383
  // I7 fold-in #9b: this DEFAULT_PORT fallback is only actually used when
18384
18384
  // `resolveEffectivePort` (below) doesn't override it — i.e. `entry` is
18385
- // an already-serving http(s) URL (no dev server is ever spawned, so no
18385
+ // an already-serving http(s) URL (no preview server is ever spawned, so no
18386
18386
  // port collision is possible). Every Vite-config `entry` gets a REAL
18387
18387
  // free port at launch time instead — see `resolveEffectivePort`.
18388
18388
  port: req.port ?? DEFAULT_PORT,
@@ -18404,7 +18404,7 @@ async function waitForHttpOk(url3, timeoutMs, signal) {
18404
18404
  let lastErr;
18405
18405
  while (Date.now() < deadline) {
18406
18406
  if (signal?.aborted) {
18407
- throw new Error("Render cancelled while waiting for the dev server to become ready.");
18407
+ throw new Error("Render cancelled while waiting for the preview server to become ready.");
18408
18408
  }
18409
18409
  try {
18410
18410
  const res = await fetch(url3);
@@ -18415,10 +18415,41 @@ async function waitForHttpOk(url3, timeoutMs, signal) {
18415
18415
  await new Promise((r) => setTimeout(r, 200));
18416
18416
  }
18417
18417
  throw new Error(
18418
- `Dev server at ${url3} did not become ready within ${timeoutMs}ms` + (lastErr instanceof Error ? ` (last error: ${lastErr.message})` : "")
18418
+ `Preview server at ${url3} did not become ready within ${timeoutMs}ms` + (lastErr instanceof Error ? ` (last error: ${lastErr.message})` : "")
18419
18419
  );
18420
18420
  }
18421
- async function launchEntryServer(entry, port, engineRoot, onProgress, signal, options) {
18421
+ async function buildExportedEntry(configPath, cwd2, outDir, signal) {
18422
+ const child = spawn("npx", ["vite", "build", "--config", configPath, "--outDir", outDir], {
18423
+ cwd: cwd2,
18424
+ stdio: ["ignore", "pipe", "pipe"],
18425
+ detached: true
18426
+ });
18427
+ let output = "";
18428
+ child.stdout?.on("data", (data) => {
18429
+ output += String(data);
18430
+ });
18431
+ child.stderr?.on("data", (data) => {
18432
+ output += String(data);
18433
+ });
18434
+ const abort = () => void stopServerProcess(child);
18435
+ signal?.addEventListener("abort", abort, { once: true });
18436
+ try {
18437
+ const code = await new Promise((resolve22, reject) => {
18438
+ child.once("error", reject);
18439
+ child.once("close", (exitCode) => resolve22(exitCode ?? 1));
18440
+ });
18441
+ if (signal?.aborted) throw new Error("Render cancelled while building the exported game.");
18442
+ if (code !== 0) {
18443
+ throw new Error(`Vite production build failed (exit ${code}).
18444
+ Output:
18445
+ ${output}`);
18446
+ }
18447
+ return output;
18448
+ } finally {
18449
+ signal?.removeEventListener("abort", abort);
18450
+ }
18451
+ }
18452
+ async function launchEntryServer(entry, port, _engineRoot, onProgress, signal, options) {
18422
18453
  if (/^https?:\/\//.test(entry)) {
18423
18454
  return { baseUrl: entry.replace(/\/$/, ""), stop: async () => {
18424
18455
  } };
@@ -18431,18 +18462,30 @@ async function launchEntryServer(entry, port, engineRoot, onProgress, signal, op
18431
18462
  }
18432
18463
  const baseUrl3 = `http://127.0.0.1:${port}`;
18433
18464
  onProgress?.({ phase: "server-launch", url: baseUrl3 });
18465
+ const projectDir = dirname5(configPath);
18466
+ const exportDir = await mkdtemp(join5(tmpdir(), "vgai-render-export-"));
18467
+ let buildOutput;
18468
+ try {
18469
+ buildOutput = await buildExportedEntry(configPath, projectDir, exportDir, signal);
18470
+ } catch (error48) {
18471
+ await rm(exportDir, { recursive: true, force: true });
18472
+ throw error48;
18473
+ }
18434
18474
  const child = spawn(
18435
18475
  "npx",
18436
18476
  [
18437
18477
  "vite",
18478
+ "preview",
18438
18479
  "--config",
18439
18480
  configPath,
18481
+ "--outDir",
18482
+ exportDir,
18440
18483
  "--port",
18441
18484
  String(port),
18442
18485
  "--strictPort",
18443
18486
  ...options?.extraViteArgs ?? []
18444
18487
  ],
18445
- { cwd: engineRoot, stdio: ["ignore", "pipe", "pipe"], detached: true }
18488
+ { cwd: projectDir, stdio: ["ignore", "pipe", "pipe"], detached: true }
18446
18489
  );
18447
18490
  let serverOutput = "";
18448
18491
  child.stdout?.on("data", (d) => {
@@ -18459,12 +18502,18 @@ async function launchEntryServer(entry, port, engineRoot, onProgress, signal, op
18459
18502
  await waitForHttpOk(`${baseUrl3}/`, 3e4, signal);
18460
18503
  } catch (err2) {
18461
18504
  await stopServerProcess(child);
18462
- throw new Error(`${err2.message}
18463
- Vite dev server output:
18464
- ${serverOutput}`);
18505
+ await rm(exportDir, { recursive: true, force: true });
18506
+ throw new Error(
18507
+ `${err2.message}
18508
+ Vite build output:
18509
+ ${buildOutput}
18510
+ Vite preview output:
18511
+ ${serverOutput}`
18512
+ );
18465
18513
  }
18466
18514
  if (exited) {
18467
- throw new Error(`Vite dev server exited before becoming ready.
18515
+ await rm(exportDir, { recursive: true, force: true });
18516
+ throw new Error(`Vite preview exited before becoming ready.
18468
18517
  Output:
18469
18518
  ${serverOutput}`);
18470
18519
  }
@@ -18472,8 +18521,8 @@ ${serverOutput}`);
18472
18521
  return {
18473
18522
  baseUrl: baseUrl3,
18474
18523
  async stop() {
18475
- if (exited) return;
18476
- await stopServerProcess(child);
18524
+ if (!exited) await stopServerProcess(child);
18525
+ await rm(exportDir, { recursive: true, force: true });
18477
18526
  }
18478
18527
  };
18479
18528
  }
@@ -18696,9 +18745,9 @@ function verifyAudioOutput(audioStream, outAbs, resolved) {
18696
18745
  );
18697
18746
  }
18698
18747
  }
18699
- function buildEncodeArgs(format, pattern, outAbs, resolved) {
18748
+ function buildEncodeArgs(format2, pattern, outAbs, resolved) {
18700
18749
  const common = ["-y", "-loglevel", "error", "-framerate", String(resolved.fps), "-i", pattern];
18701
- if (format === "mp4") {
18750
+ if (format2 === "mp4") {
18702
18751
  return {
18703
18752
  args: [
18704
18753
  ...common,
@@ -18715,7 +18764,7 @@ function buildEncodeArgs(format, pattern, outAbs, resolved) {
18715
18764
  codec: { video: "libx264", container: "mp4" }
18716
18765
  };
18717
18766
  }
18718
- if (format === "webm") {
18767
+ if (format2 === "webm") {
18719
18768
  return {
18720
18769
  args: [
18721
18770
  ...common,
@@ -18736,9 +18785,9 @@ function buildEncodeArgs(format, pattern, outAbs, resolved) {
18736
18785
  }
18737
18786
  return void 0;
18738
18787
  }
18739
- function buildMuxArgs(format, videoOnlyPath, wavPath, outAbs) {
18788
+ function buildMuxArgs(format2, videoOnlyPath, wavPath, outAbs) {
18740
18789
  const common = ["-y", "-loglevel", "error", "-i", videoOnlyPath, "-i", wavPath, "-c:v", "copy"];
18741
- if (format === "mp4") {
18790
+ if (format2 === "mp4") {
18742
18791
  return {
18743
18792
  args: [...common, "-c:a", "aac", "-b:a", "192k", "-movflags", "+faststart", outAbs],
18744
18793
  codec: "aac"
@@ -19031,7 +19080,7 @@ async function renderCinematic(request, options = {}) {
19031
19080
  const { outAbs, framesDir } = prepared;
19032
19081
  if (signal?.aborted) {
19033
19082
  const err2 = new RenderCinematicCancelledError(
19034
- "Render cancelled before the dev server launched.",
19083
+ "Render cancelled before the preview server launched.",
19035
19084
  keepFramesOverride(signal)
19036
19085
  );
19037
19086
  await cleanupAfterFailure(err2, resolved, outAbs, framesDir, signal);
@@ -31804,7 +31853,7 @@ var require_fast_uri = __commonJS({
31804
31853
  normalizeString(uri, options);
31805
31854
  } else if (typeof uri === "object") {
31806
31855
  uri = /** @type {T} */
31807
- parse3(serialize(uri, options), options);
31856
+ parse5(serialize(uri, options), options);
31808
31857
  }
31809
31858
  return uri;
31810
31859
  }
@@ -31822,8 +31871,8 @@ var require_fast_uri = __commonJS({
31822
31871
  function resolveComponent(base, relative12, options, skipNormalization) {
31823
31872
  const target = {};
31824
31873
  if (!skipNormalization) {
31825
- base = parse3(serialize(base, options), options);
31826
- relative12 = parse3(serialize(relative12, options), options);
31874
+ base = parse5(serialize(base, options), options);
31875
+ relative12 = parse5(serialize(relative12, options), options);
31827
31876
  }
31828
31877
  options = options || {};
31829
31878
  if (!options.tolerant && relative12.scheme) {
@@ -32067,7 +32116,7 @@ var require_fast_uri = __commonJS({
32067
32116
  }
32068
32117
  return { parsed, malformedAuthorityOrPort };
32069
32118
  }
32070
- function parse3(uri, opts) {
32119
+ function parse5(uri, opts) {
32071
32120
  return parseWithStatus(uri, opts).parsed;
32072
32121
  }
32073
32122
  function normalizeString(uri, opts) {
@@ -32096,7 +32145,7 @@ var require_fast_uri = __commonJS({
32096
32145
  resolveComponent,
32097
32146
  equal,
32098
32147
  serialize,
32099
- parse: parse3
32148
+ parse: parse5
32100
32149
  };
32101
32150
  module.exports = fastUri;
32102
32151
  module.exports.default = fastUri;
@@ -32498,10 +32547,10 @@ var require_core = __commonJS({
32498
32547
  return this;
32499
32548
  }
32500
32549
  // Add format
32501
- addFormat(name, format) {
32502
- if (typeof format == "string")
32503
- format = new RegExp(format);
32504
- this.formats[name] = format;
32550
+ addFormat(name, format2) {
32551
+ if (typeof format2 == "string")
32552
+ format2 = new RegExp(format2);
32553
+ this.formats[name] = format2;
32505
32554
  return this;
32506
32555
  }
32507
32556
  errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
@@ -32619,9 +32668,9 @@ var require_core = __commonJS({
32619
32668
  }
32620
32669
  function addInitialFormats() {
32621
32670
  for (const name in this.opts.formats) {
32622
- const format = this.opts.formats[name];
32623
- if (format)
32624
- this.addFormat(name, format);
32671
+ const format2 = this.opts.formats[name];
32672
+ if (format2)
32673
+ this.addFormat(name, format2);
32625
32674
  }
32626
32675
  }
32627
32676
  function addInitialKeywords(defs) {
@@ -34304,18 +34353,18 @@ var require_format = __commonJS({
34304
34353
  });
34305
34354
  const fDef = gen.const("fDef", (0, codegen_1._)`${fmts}[${schemaCode}]`);
34306
34355
  const fType = gen.let("fType");
34307
- const format = gen.let("format");
34308
- gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format, fDef));
34356
+ const format2 = gen.let("format");
34357
+ gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format2, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format2, fDef));
34309
34358
  cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));
34310
34359
  function unknownFmt() {
34311
34360
  if (opts.strictSchema === false)
34312
34361
  return codegen_1.nil;
34313
- return (0, codegen_1._)`${schemaCode} && !${format}`;
34362
+ return (0, codegen_1._)`${schemaCode} && !${format2}`;
34314
34363
  }
34315
34364
  function invalidFmt() {
34316
- const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` : (0, codegen_1._)`${format}(${data})`;
34317
- const validData = (0, codegen_1._)`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`;
34318
- return (0, codegen_1._)`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;
34365
+ const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format2}(${data}) : ${format2}(${data}))` : (0, codegen_1._)`${format2}(${data})`;
34366
+ const validData = (0, codegen_1._)`(typeof ${format2} == "function" ? ${callFormat} : ${format2}.test(${data}))`;
34367
+ return (0, codegen_1._)`${format2} && ${format2} !== true && ${fType} === ${ruleType} && !${validData}`;
34319
34368
  }
34320
34369
  }
34321
34370
  function validateFormat() {
@@ -34326,7 +34375,7 @@ var require_format = __commonJS({
34326
34375
  }
34327
34376
  if (formatDef === true)
34328
34377
  return;
34329
- const [fmtType, format, fmtRef] = getFormat(formatDef);
34378
+ const [fmtType, format2, fmtRef] = getFormat(formatDef);
34330
34379
  if (fmtType === ruleType)
34331
34380
  cxt.pass(validCondition());
34332
34381
  function unknownFormat() {
@@ -34353,7 +34402,7 @@ var require_format = __commonJS({
34353
34402
  throw new Error("async format in sync schema");
34354
34403
  return (0, codegen_1._)`await ${fmtRef}(${data})`;
34355
34404
  }
34356
- return typeof format == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
34405
+ return typeof format2 == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
34357
34406
  }
34358
34407
  }
34359
34408
  }
@@ -34368,8 +34417,8 @@ var require_format2 = __commonJS({
34368
34417
  "use strict";
34369
34418
  Object.defineProperty(exports, "__esModule", { value: true });
34370
34419
  var format_1 = require_format();
34371
- var format = [format_1.default];
34372
- exports.default = format;
34420
+ var format2 = [format_1.default];
34421
+ exports.default = format2;
34373
34422
  }
34374
34423
  });
34375
34424
 
@@ -38396,10 +38445,10 @@ var require_core3 = __commonJS({
38396
38445
  return this;
38397
38446
  }
38398
38447
  // Add format
38399
- addFormat(name, format) {
38400
- if (typeof format == "string")
38401
- format = new RegExp(format);
38402
- this.formats[name] = format;
38448
+ addFormat(name, format2) {
38449
+ if (typeof format2 == "string")
38450
+ format2 = new RegExp(format2);
38451
+ this.formats[name] = format2;
38403
38452
  return this;
38404
38453
  }
38405
38454
  errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
@@ -38517,9 +38566,9 @@ var require_core3 = __commonJS({
38517
38566
  }
38518
38567
  function addInitialFormats() {
38519
38568
  for (const name in this.opts.formats) {
38520
- const format = this.opts.formats[name];
38521
- if (format)
38522
- this.addFormat(name, format);
38569
+ const format2 = this.opts.formats[name];
38570
+ if (format2)
38571
+ this.addFormat(name, format2);
38523
38572
  }
38524
38573
  }
38525
38574
  function addInitialKeywords(defs) {
@@ -40202,18 +40251,18 @@ var require_format3 = __commonJS({
40202
40251
  });
40203
40252
  const fDef = gen.const("fDef", (0, codegen_1._)`${fmts}[${schemaCode}]`);
40204
40253
  const fType = gen.let("fType");
40205
- const format = gen.let("format");
40206
- gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format, fDef));
40254
+ const format2 = gen.let("format");
40255
+ gen.if((0, codegen_1._)`typeof ${fDef} == "object" && !(${fDef} instanceof RegExp)`, () => gen.assign(fType, (0, codegen_1._)`${fDef}.type || "string"`).assign(format2, (0, codegen_1._)`${fDef}.validate`), () => gen.assign(fType, (0, codegen_1._)`"string"`).assign(format2, fDef));
40207
40256
  cxt.fail$data((0, codegen_1.or)(unknownFmt(), invalidFmt()));
40208
40257
  function unknownFmt() {
40209
40258
  if (opts.strictSchema === false)
40210
40259
  return codegen_1.nil;
40211
- return (0, codegen_1._)`${schemaCode} && !${format}`;
40260
+ return (0, codegen_1._)`${schemaCode} && !${format2}`;
40212
40261
  }
40213
40262
  function invalidFmt() {
40214
- const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format}(${data}) : ${format}(${data}))` : (0, codegen_1._)`${format}(${data})`;
40215
- const validData = (0, codegen_1._)`(typeof ${format} == "function" ? ${callFormat} : ${format}.test(${data}))`;
40216
- return (0, codegen_1._)`${format} && ${format} !== true && ${fType} === ${ruleType} && !${validData}`;
40263
+ const callFormat = schemaEnv.$async ? (0, codegen_1._)`(${fDef}.async ? await ${format2}(${data}) : ${format2}(${data}))` : (0, codegen_1._)`${format2}(${data})`;
40264
+ const validData = (0, codegen_1._)`(typeof ${format2} == "function" ? ${callFormat} : ${format2}.test(${data}))`;
40265
+ return (0, codegen_1._)`${format2} && ${format2} !== true && ${fType} === ${ruleType} && !${validData}`;
40217
40266
  }
40218
40267
  }
40219
40268
  function validateFormat() {
@@ -40224,7 +40273,7 @@ var require_format3 = __commonJS({
40224
40273
  }
40225
40274
  if (formatDef === true)
40226
40275
  return;
40227
- const [fmtType, format, fmtRef] = getFormat(formatDef);
40276
+ const [fmtType, format2, fmtRef] = getFormat(formatDef);
40228
40277
  if (fmtType === ruleType)
40229
40278
  cxt.pass(validCondition());
40230
40279
  function unknownFormat() {
@@ -40251,7 +40300,7 @@ var require_format3 = __commonJS({
40251
40300
  throw new Error("async format in sync schema");
40252
40301
  return (0, codegen_1._)`await ${fmtRef}(${data})`;
40253
40302
  }
40254
- return typeof format == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
40303
+ return typeof format2 == "function" ? (0, codegen_1._)`${fmtRef}(${data})` : (0, codegen_1._)`${fmtRef}.test(${data})`;
40255
40304
  }
40256
40305
  }
40257
40306
  }
@@ -40266,8 +40315,8 @@ var require_format4 = __commonJS({
40266
40315
  "use strict";
40267
40316
  Object.defineProperty(exports, "__esModule", { value: true });
40268
40317
  var format_1 = require_format3();
40269
- var format = [format_1.default];
40270
- exports.default = format;
40318
+ var format2 = [format_1.default];
40319
+ exports.default = format2;
40271
40320
  }
40272
40321
  });
40273
40322
 
@@ -40706,17 +40755,17 @@ var require_limit = __commonJS({
40706
40755
  cxt.fail$data((0, codegen_1.or)((0, codegen_1._)`typeof ${fmt} != "object"`, (0, codegen_1._)`${fmt} instanceof RegExp`, (0, codegen_1._)`typeof ${fmt}.compare != "function"`, compareCode(fmt)));
40707
40756
  }
40708
40757
  function validateFormat() {
40709
- const format = fCxt.schema;
40710
- const fmtDef = self.formats[format];
40758
+ const format2 = fCxt.schema;
40759
+ const fmtDef = self.formats[format2];
40711
40760
  if (!fmtDef || fmtDef === true)
40712
40761
  return;
40713
40762
  if (typeof fmtDef != "object" || fmtDef instanceof RegExp || typeof fmtDef.compare != "function") {
40714
- throw new Error(`"${keyword}": format "${format}" does not define "compare" function`);
40763
+ throw new Error(`"${keyword}": format "${format2}" does not define "compare" function`);
40715
40764
  }
40716
40765
  const fmt = gen.scopeValue("formats", {
40717
- key: format,
40766
+ key: format2,
40718
40767
  ref: fmtDef,
40719
- code: opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(format)}` : void 0
40768
+ code: opts.code.formats ? (0, codegen_1._)`${opts.code.formats}${(0, codegen_1.getProperty)(format2)}` : void 0
40720
40769
  });
40721
40770
  cxt.fail$data(compareCode(fmt));
40722
40771
  }
@@ -41866,7 +41915,7 @@ var init_schema = __esm({
41866
41915
  "Optional short preview video/loop reference, PROJECT-relative (canonical path: learn/preview.mp4; generated per FT-11)"
41867
41916
  ),
41868
41917
  lesson: external_exports.string().optional().describe(
41869
- "Optional Learn-site lesson URL that teaches this project 1:1 (e.g. https://vgai-learn.pages.dev/quick-starts/joints/)"
41918
+ "Optional Learn-site lesson URL that teaches this project 1:1 (e.g. https://vgai-learn.pages.dev/manual/physics/joints/)"
41870
41919
  )
41871
41920
  }).strict().describe(
41872
41921
  "Learner-facing metadata (FT-5) \u2014 powers the example gallery, New Project wizard, and Learn-site catalog. Registries are generated from this block; there is no parallel hand-edited catalog."
@@ -45527,154 +45576,6 @@ var init_dist = __esm({
45527
45576
  }
45528
45577
  });
45529
45578
 
45530
- // ../../node_modules/jsonc-parser/lib/umd/main.js
45531
- var require_main = __commonJS({
45532
- "../../node_modules/jsonc-parser/lib/umd/main.js"(exports, module) {
45533
- (function(factory) {
45534
- if (typeof module === "object" && typeof module.exports === "object") {
45535
- var v = factory(__require, exports);
45536
- if (v !== void 0) module.exports = v;
45537
- } else if (typeof define === "function" && define.amd) {
45538
- define(["require", "exports", "./impl/format", "./impl/edit", "./impl/scanner", "./impl/parser"], factory);
45539
- }
45540
- })(function(require3, exports2) {
45541
- "use strict";
45542
- Object.defineProperty(exports2, "__esModule", { value: true });
45543
- exports2.applyEdits = exports2.modify = exports2.format = exports2.printParseErrorCode = exports2.ParseErrorCode = exports2.stripComments = exports2.visit = exports2.getNodeValue = exports2.getNodePath = exports2.findNodeAtOffset = exports2.findNodeAtLocation = exports2.parseTree = exports2.parse = exports2.getLocation = exports2.SyntaxKind = exports2.ScanError = exports2.createScanner = void 0;
45544
- const formatter = require3("./impl/format");
45545
- const edit = require3("./impl/edit");
45546
- const scanner = require3("./impl/scanner");
45547
- const parser = require3("./impl/parser");
45548
- exports2.createScanner = scanner.createScanner;
45549
- var ScanError;
45550
- (function(ScanError2) {
45551
- ScanError2[ScanError2["None"] = 0] = "None";
45552
- ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
45553
- ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
45554
- ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
45555
- ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
45556
- ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
45557
- ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
45558
- })(ScanError || (exports2.ScanError = ScanError = {}));
45559
- var SyntaxKind;
45560
- (function(SyntaxKind2) {
45561
- SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
45562
- SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
45563
- SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
45564
- SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
45565
- SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
45566
- SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
45567
- SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
45568
- SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
45569
- SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
45570
- SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
45571
- SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
45572
- SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
45573
- SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
45574
- SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
45575
- SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
45576
- SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
45577
- SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
45578
- })(SyntaxKind || (exports2.SyntaxKind = SyntaxKind = {}));
45579
- exports2.getLocation = parser.getLocation;
45580
- exports2.parse = parser.parse;
45581
- exports2.parseTree = parser.parseTree;
45582
- exports2.findNodeAtLocation = parser.findNodeAtLocation;
45583
- exports2.findNodeAtOffset = parser.findNodeAtOffset;
45584
- exports2.getNodePath = parser.getNodePath;
45585
- exports2.getNodeValue = parser.getNodeValue;
45586
- exports2.visit = parser.visit;
45587
- exports2.stripComments = parser.stripComments;
45588
- var ParseErrorCode;
45589
- (function(ParseErrorCode2) {
45590
- ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
45591
- ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
45592
- ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
45593
- ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
45594
- ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
45595
- ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
45596
- ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
45597
- ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
45598
- ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
45599
- ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
45600
- ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
45601
- ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
45602
- ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
45603
- ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
45604
- ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
45605
- ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
45606
- })(ParseErrorCode || (exports2.ParseErrorCode = ParseErrorCode = {}));
45607
- function printParseErrorCode2(code) {
45608
- switch (code) {
45609
- case 1:
45610
- return "InvalidSymbol";
45611
- case 2:
45612
- return "InvalidNumberFormat";
45613
- case 3:
45614
- return "PropertyNameExpected";
45615
- case 4:
45616
- return "ValueExpected";
45617
- case 5:
45618
- return "ColonExpected";
45619
- case 6:
45620
- return "CommaExpected";
45621
- case 7:
45622
- return "CloseBraceExpected";
45623
- case 8:
45624
- return "CloseBracketExpected";
45625
- case 9:
45626
- return "EndOfFileExpected";
45627
- case 10:
45628
- return "InvalidCommentToken";
45629
- case 11:
45630
- return "UnexpectedEndOfComment";
45631
- case 12:
45632
- return "UnexpectedEndOfString";
45633
- case 13:
45634
- return "UnexpectedEndOfNumber";
45635
- case 14:
45636
- return "InvalidUnicode";
45637
- case 15:
45638
- return "InvalidEscapeCharacter";
45639
- case 16:
45640
- return "InvalidCharacter";
45641
- }
45642
- return "<unknown ParseErrorCode>";
45643
- }
45644
- exports2.printParseErrorCode = printParseErrorCode2;
45645
- function format(documentText, range, options) {
45646
- return formatter.format(documentText, range, options);
45647
- }
45648
- exports2.format = format;
45649
- function modify(text, path, value, options) {
45650
- return edit.setProperty(text, path, value, options);
45651
- }
45652
- exports2.modify = modify;
45653
- function applyEdits(text, edits) {
45654
- let sortedEdits = edits.slice(0).sort((a, b) => {
45655
- const diff2 = a.offset - b.offset;
45656
- if (diff2 === 0) {
45657
- return a.length - b.length;
45658
- }
45659
- return diff2;
45660
- });
45661
- let lastModifiedOffset = text.length;
45662
- for (let i = sortedEdits.length - 1; i >= 0; i--) {
45663
- let e = sortedEdits[i];
45664
- if (e.offset + e.length <= lastModifiedOffset) {
45665
- text = edit.applyEdit(text, e);
45666
- } else {
45667
- throw new Error("Overlapping edit");
45668
- }
45669
- lastModifiedOffset = e.offset;
45670
- }
45671
- return text;
45672
- }
45673
- exports2.applyEdits = applyEdits;
45674
- });
45675
- }
45676
- });
45677
-
45678
45579
  // ../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/react/cjs/react.production.js
45679
45580
  var require_react_production = __commonJS({
45680
45581
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/react/cjs/react.production.js"(exports) {
@@ -71933,7 +71834,7 @@ var require_extension = __commonJS({
71933
71834
  if (dest[name] === void 0) dest[name] = [elem];
71934
71835
  else dest[name].push(elem);
71935
71836
  }
71936
- function parse3(header) {
71837
+ function parse5(header) {
71937
71838
  const offers = /* @__PURE__ */ Object.create(null);
71938
71839
  let params = /* @__PURE__ */ Object.create(null);
71939
71840
  let mustUnescape = false;
@@ -72058,7 +71959,7 @@ var require_extension = __commonJS({
72058
71959
  }
72059
71960
  return offers;
72060
71961
  }
72061
- function format(extensions) {
71962
+ function format2(extensions) {
72062
71963
  return Object.keys(extensions).map((extension3) => {
72063
71964
  let configurations = extensions[extension3];
72064
71965
  if (!Array.isArray(configurations)) configurations = [configurations];
@@ -72073,7 +71974,7 @@ var require_extension = __commonJS({
72073
71974
  }).join(", ");
72074
71975
  }).join(", ");
72075
71976
  }
72076
- module.exports = { format, parse: parse3 };
71977
+ module.exports = { format: format2, parse: parse5 };
72077
71978
  }
72078
71979
  });
72079
71980
 
@@ -72107,7 +72008,7 @@ var require_websocket = __commonJS({
72107
72008
  var {
72108
72009
  EventTarget: { addEventListener, removeEventListener }
72109
72010
  } = require_event_target();
72110
- var { format, parse: parse3 } = require_extension();
72011
+ var { format: format2, parse: parse5 } = require_extension();
72111
72012
  var { toBuffer } = require_buffer_util();
72112
72013
  var kAborted = Symbol("kAborted");
72113
72014
  var protocolVersions = [8, 13];
@@ -72647,7 +72548,7 @@ var require_websocket = __commonJS({
72647
72548
  isServer: false,
72648
72549
  maxPayload: opts.maxPayload
72649
72550
  });
72650
- opts.headers["Sec-WebSocket-Extensions"] = format({
72551
+ opts.headers["Sec-WebSocket-Extensions"] = format2({
72651
72552
  [PerMessageDeflate2.extensionName]: perMessageDeflate.offer()
72652
72553
  });
72653
72554
  }
@@ -72784,7 +72685,7 @@ var require_websocket = __commonJS({
72784
72685
  }
72785
72686
  let extensions;
72786
72687
  try {
72787
- extensions = parse3(secWebSocketExtensions);
72688
+ extensions = parse5(secWebSocketExtensions);
72788
72689
  } catch (err2) {
72789
72690
  const message = "Invalid Sec-WebSocket-Extensions header";
72790
72691
  abortHandshake(websocket, socket, message);
@@ -73076,7 +72977,7 @@ var require_subprotocol = __commonJS({
73076
72977
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/ws/lib/subprotocol.js"(exports, module) {
73077
72978
  "use strict";
73078
72979
  var { tokenChars } = require_validation3();
73079
- function parse3(header) {
72980
+ function parse5(header) {
73080
72981
  const protocols = /* @__PURE__ */ new Set();
73081
72982
  let start = -1;
73082
72983
  let end = -1;
@@ -73112,7 +73013,7 @@ var require_subprotocol = __commonJS({
73112
73013
  protocols.add(protocol);
73113
73014
  return protocols;
73114
73015
  }
73115
- module.exports = { parse: parse3 };
73016
+ module.exports = { parse: parse5 };
73116
73017
  }
73117
73018
  });
73118
73019
 
@@ -74844,7 +74745,7 @@ var require_parse = __commonJS({
74844
74745
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/parse.js"(exports, module) {
74845
74746
  "use strict";
74846
74747
  var SemVer = require_semver();
74847
- var parse3 = (version2, options, throwErrors = false) => {
74748
+ var parse5 = (version2, options, throwErrors = false) => {
74848
74749
  if (version2 instanceof SemVer) {
74849
74750
  return version2;
74850
74751
  }
@@ -74857,7 +74758,7 @@ var require_parse = __commonJS({
74857
74758
  throw er;
74858
74759
  }
74859
74760
  };
74860
- module.exports = parse3;
74761
+ module.exports = parse5;
74861
74762
  }
74862
74763
  });
74863
74764
 
@@ -74865,9 +74766,9 @@ var require_parse = __commonJS({
74865
74766
  var require_valid = __commonJS({
74866
74767
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/valid.js"(exports, module) {
74867
74768
  "use strict";
74868
- var parse3 = require_parse();
74769
+ var parse5 = require_parse();
74869
74770
  var valid = (version2, options) => {
74870
- const v = parse3(version2, options);
74771
+ const v = parse5(version2, options);
74871
74772
  return v ? v.version : null;
74872
74773
  };
74873
74774
  module.exports = valid;
@@ -74878,9 +74779,9 @@ var require_valid = __commonJS({
74878
74779
  var require_clean = __commonJS({
74879
74780
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/clean.js"(exports, module) {
74880
74781
  "use strict";
74881
- var parse3 = require_parse();
74782
+ var parse5 = require_parse();
74882
74783
  var clean = (version2, options) => {
74883
- const s = parse3(version2.trim().replace(/^[=v]+/, ""), options);
74784
+ const s = parse5(version2.trim().replace(/^[=v]+/, ""), options);
74884
74785
  return s ? s.version : null;
74885
74786
  };
74886
74787
  module.exports = clean;
@@ -74915,10 +74816,10 @@ var require_inc = __commonJS({
74915
74816
  var require_diff = __commonJS({
74916
74817
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/diff.js"(exports, module) {
74917
74818
  "use strict";
74918
- var parse3 = require_parse();
74819
+ var parse5 = require_parse();
74919
74820
  var diff2 = (version1, version2) => {
74920
- const v1 = parse3(version1, null, true);
74921
- const v2 = parse3(version2, null, true);
74821
+ const v1 = parse5(version1, null, true);
74822
+ const v2 = parse5(version2, null, true);
74922
74823
  const comparison = v1.compare(v2);
74923
74824
  if (comparison === 0) {
74924
74825
  return null;
@@ -74989,9 +74890,9 @@ var require_patch = __commonJS({
74989
74890
  var require_prerelease = __commonJS({
74990
74891
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/prerelease.js"(exports, module) {
74991
74892
  "use strict";
74992
- var parse3 = require_parse();
74893
+ var parse5 = require_parse();
74993
74894
  var prerelease = (version2, options) => {
74994
- const parsed = parse3(version2, options);
74895
+ const parsed = parse5(version2, options);
74995
74896
  return parsed && parsed.prerelease.length ? parsed.prerelease : null;
74996
74897
  };
74997
74898
  module.exports = prerelease;
@@ -75177,7 +75078,7 @@ var require_coerce = __commonJS({
75177
75078
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/coerce.js"(exports, module) {
75178
75079
  "use strict";
75179
75080
  var SemVer = require_semver();
75180
- var parse3 = require_parse();
75081
+ var parse5 = require_parse();
75181
75082
  var { safeRe: re, t } = require_re();
75182
75083
  var coerce = (version2, options) => {
75183
75084
  if (version2 instanceof SemVer) {
@@ -75212,7 +75113,7 @@ var require_coerce = __commonJS({
75212
75113
  const patch = match[4] || "0";
75213
75114
  const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "";
75214
75115
  const build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
75215
- return parse3(`${major}.${minor}.${patch}${prerelease}${build}`, options);
75116
+ return parse5(`${major}.${minor}.${patch}${prerelease}${build}`, options);
75216
75117
  };
75217
75118
  module.exports = coerce;
75218
75119
  }
@@ -75222,7 +75123,7 @@ var require_coerce = __commonJS({
75222
75123
  var require_truncate = __commonJS({
75223
75124
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/node_modules/semver/functions/truncate.js"(exports, module) {
75224
75125
  "use strict";
75225
- var parse3 = require_parse();
75126
+ var parse5 = require_parse();
75226
75127
  var constants2 = require_constants3();
75227
75128
  var SemVer = require_semver();
75228
75129
  var truncate = (version2, truncation, options) => {
@@ -75234,7 +75135,7 @@ var require_truncate = __commonJS({
75234
75135
  };
75235
75136
  var cloneInputVersion = (version2, options) => {
75236
75137
  const versionStringToParse = version2 instanceof SemVer ? version2.version : version2;
75237
- return parse3(versionStringToParse, options);
75138
+ return parse5(versionStringToParse, options);
75238
75139
  };
75239
75140
  var doTruncation = (version2, truncation) => {
75240
75141
  if (isPrerelease(truncation)) {
@@ -76278,7 +76179,7 @@ var require_semver2 = __commonJS({
76278
76179
  var constants2 = require_constants3();
76279
76180
  var SemVer = require_semver();
76280
76181
  var identifiers = require_identifiers();
76281
- var parse3 = require_parse();
76182
+ var parse5 = require_parse();
76282
76183
  var valid = require_valid();
76283
76184
  var clean = require_clean();
76284
76185
  var inc = require_inc();
@@ -76317,7 +76218,7 @@ var require_semver2 = __commonJS({
76317
76218
  var simplifyRange = require_simplify();
76318
76219
  var subset = require_subset();
76319
76220
  module.exports = {
76320
- parse: parse3,
76221
+ parse: parse5,
76321
76222
  valid,
76322
76223
  clean,
76323
76224
  inc,
@@ -77423,7 +77324,7 @@ var require_ms = __commonJS({
77423
77324
  options = options || {};
77424
77325
  var type = typeof val;
77425
77326
  if (type === "string" && val.length > 0) {
77426
- return parse3(val);
77327
+ return parse5(val);
77427
77328
  } else if (type === "number" && isFinite(val)) {
77428
77329
  return options.long ? fmtLong(val) : fmtShort(val);
77429
77330
  }
@@ -77431,7 +77332,7 @@ var require_ms = __commonJS({
77431
77332
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
77432
77333
  );
77433
77334
  };
77434
- function parse3(str) {
77335
+ function parse5(str) {
77435
77336
  str = String(str);
77436
77337
  if (str.length > 100) {
77437
77338
  return;
@@ -77574,12 +77475,12 @@ var require_common = __commonJS({
77574
77475
  args2.unshift("%O");
77575
77476
  }
77576
77477
  let index = 0;
77577
- args2[0] = args2[0].replace(/%([a-zA-Z%])/g, (match, format) => {
77478
+ args2[0] = args2[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
77578
77479
  if (match === "%%") {
77579
77480
  return "%";
77580
77481
  }
77581
77482
  index++;
77582
- const formatter = createDebug.formatters[format];
77483
+ const formatter = createDebug.formatters[format2];
77583
77484
  if (typeof formatter === "function") {
77584
77485
  const val = args2[index];
77585
77486
  match = formatter.call(self, val);
@@ -82685,7 +82586,7 @@ var require_typescript = __commonJS({
82685
82586
  BuilderProgramKind: () => BuilderProgramKind,
82686
82587
  BuilderState: () => BuilderState,
82687
82588
  CallHierarchy: () => ts_CallHierarchy_exports,
82688
- CharacterCodes: () => CharacterCodes,
82589
+ CharacterCodes: () => CharacterCodes2,
82689
82590
  CheckFlags: () => CheckFlags,
82690
82591
  CheckMode: () => CheckMode,
82691
82592
  ClassificationType: () => ClassificationType,
@@ -82812,7 +82713,7 @@ var require_typescript = __commonJS({
82812
82713
  SymbolDisplayPartKind: () => SymbolDisplayPartKind,
82813
82714
  SymbolFlags: () => SymbolFlags,
82814
82715
  SymbolFormatFlags: () => SymbolFormatFlags,
82815
- SyntaxKind: () => SyntaxKind,
82716
+ SyntaxKind: () => SyntaxKind2,
82816
82717
  Ternary: () => Ternary,
82817
82718
  ThrottledCancellationToken: () => ThrottledCancellationToken,
82818
82719
  TokenClass: () => TokenClass,
@@ -83082,7 +82983,7 @@ var require_typescript = __commonJS({
83082
82983
  createRedirectedBuilderProgram: () => createRedirectedBuilderProgram,
83083
82984
  createResolutionCache: () => createResolutionCache,
83084
82985
  createRuntimeTypeSerializer: () => createRuntimeTypeSerializer,
83085
- createScanner: () => createScanner,
82986
+ createScanner: () => createScanner2,
83086
82987
  createSemanticDiagnosticsBuilderProgram: () => createSemanticDiagnosticsBuilderProgram,
83087
82988
  createSet: () => createSet,
83088
82989
  createSolutionBuilder: () => createSolutionBuilder,
@@ -84165,7 +84066,7 @@ var require_typescript = __commonJS({
84165
84066
  isLateVisibilityPaintedStatement: () => isLateVisibilityPaintedStatement,
84166
84067
  isLeftHandSideExpression: () => isLeftHandSideExpression,
84167
84068
  isLet: () => isLet,
84168
- isLineBreak: () => isLineBreak,
84069
+ isLineBreak: () => isLineBreak2,
84169
84070
  isLiteralComputedPropertyDeclarationName: () => isLiteralComputedPropertyDeclarationName,
84170
84071
  isLiteralExpression: () => isLiteralExpression,
84171
84072
  isLiteralExpressionOfObject: () => isLiteralExpressionOfObject,
@@ -86699,7 +86600,7 @@ Node ${formatSyntaxKind(node.kind)} was unexpected.`,
86699
86600
  function formatSyntaxKind(kind) {
86700
86601
  return formatEnum(
86701
86602
  kind,
86702
- SyntaxKind,
86603
+ SyntaxKind2,
86703
86604
  /*isFlags*/
86704
86605
  false
86705
86606
  );
@@ -88011,7 +87912,7 @@ ${lanes.join("\n")}
88011
87912
  mark("endTracing");
88012
87913
  measure("Tracing", "beginTracing", "endTracing");
88013
87914
  }
88014
- function getLocation(node) {
87915
+ function getLocation2(node) {
88015
87916
  const file2 = getSourceFileOfNode(node);
88016
87917
  return !file2 ? void 0 : {
88017
87918
  path: file2.path,
@@ -88059,7 +87960,7 @@ ${lanes.join("\n")}
88059
87960
  referenceProperties = {
88060
87961
  instantiatedType: (_d = referenceType.target) == null ? void 0 : _d.id,
88061
87962
  typeArguments: (_e = referenceType.resolvedTypeArguments) == null ? void 0 : _e.map((t) => t.id),
88062
- referenceLocation: getLocation(referenceType.node)
87963
+ referenceLocation: getLocation2(referenceType.node)
88063
87964
  };
88064
87965
  }
88065
87966
  let conditionalProperties = {};
@@ -88122,8 +88023,8 @@ ${lanes.join("\n")}
88122
88023
  ...substitutionProperties,
88123
88024
  ...reverseMappedProperties,
88124
88025
  ...evolvingArrayProperties,
88125
- destructuringPattern: getLocation(type.pattern),
88126
- firstDeclaration: getLocation((_s = symbol2 == null ? void 0 : symbol2.declarations) == null ? void 0 : _s[0]),
88026
+ destructuringPattern: getLocation2(type.pattern),
88027
+ firstDeclaration: getLocation2((_s = symbol2 == null ? void 0 : symbol2.declarations) == null ? void 0 : _s[0]),
88127
88028
  flags: Debug.formatTypeFlags(type.flags).split("|"),
88128
88029
  display
88129
88030
  };
@@ -88147,7 +88048,7 @@ ${lanes.join("\n")}
88147
88048
  })(tracingEnabled || (tracingEnabled = {}));
88148
88049
  var startTracing = tracingEnabled.startTracing;
88149
88050
  var dumpTracingLegend = tracingEnabled.dumpLegend;
88150
- var SyntaxKind = /* @__PURE__ */ ((SyntaxKind5) => {
88051
+ var SyntaxKind2 = /* @__PURE__ */ ((SyntaxKind5) => {
88151
88052
  SyntaxKind5[SyntaxKind5["Unknown"] = 0] = "Unknown";
88152
88053
  SyntaxKind5[SyntaxKind5["EndOfFileToken"] = 1] = "EndOfFileToken";
88153
88054
  SyntaxKind5[SyntaxKind5["SingleLineCommentTrivia"] = 2] = "SingleLineCommentTrivia";
@@ -88653,7 +88554,7 @@ ${lanes.join("\n")}
88653
88554
  /* LastKeyword */
88654
88555
  ] = "LastContextualKeyword";
88655
88556
  return SyntaxKind5;
88656
- })(SyntaxKind || {});
88557
+ })(SyntaxKind2 || {});
88657
88558
  var NodeFlags = /* @__PURE__ */ ((NodeFlags3) => {
88658
88559
  NodeFlags3[NodeFlags3["None"] = 0] = "None";
88659
88560
  NodeFlags3[NodeFlags3["Let"] = 1] = "Let";
@@ -89587,135 +89488,135 @@ ${lanes.join("\n")}
89587
89488
  WatchDirectoryFlags3[WatchDirectoryFlags3["Recursive"] = 1] = "Recursive";
89588
89489
  return WatchDirectoryFlags3;
89589
89490
  })(WatchDirectoryFlags || {});
89590
- var CharacterCodes = /* @__PURE__ */ ((CharacterCodes2) => {
89591
- CharacterCodes2[CharacterCodes2["EOF"] = -1] = "EOF";
89592
- CharacterCodes2[CharacterCodes2["nullCharacter"] = 0] = "nullCharacter";
89593
- CharacterCodes2[CharacterCodes2["maxAsciiCharacter"] = 127] = "maxAsciiCharacter";
89594
- CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
89595
- CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
89596
- CharacterCodes2[CharacterCodes2["lineSeparator"] = 8232] = "lineSeparator";
89597
- CharacterCodes2[CharacterCodes2["paragraphSeparator"] = 8233] = "paragraphSeparator";
89598
- CharacterCodes2[CharacterCodes2["nextLine"] = 133] = "nextLine";
89599
- CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
89600
- CharacterCodes2[CharacterCodes2["nonBreakingSpace"] = 160] = "nonBreakingSpace";
89601
- CharacterCodes2[CharacterCodes2["enQuad"] = 8192] = "enQuad";
89602
- CharacterCodes2[CharacterCodes2["emQuad"] = 8193] = "emQuad";
89603
- CharacterCodes2[CharacterCodes2["enSpace"] = 8194] = "enSpace";
89604
- CharacterCodes2[CharacterCodes2["emSpace"] = 8195] = "emSpace";
89605
- CharacterCodes2[CharacterCodes2["threePerEmSpace"] = 8196] = "threePerEmSpace";
89606
- CharacterCodes2[CharacterCodes2["fourPerEmSpace"] = 8197] = "fourPerEmSpace";
89607
- CharacterCodes2[CharacterCodes2["sixPerEmSpace"] = 8198] = "sixPerEmSpace";
89608
- CharacterCodes2[CharacterCodes2["figureSpace"] = 8199] = "figureSpace";
89609
- CharacterCodes2[CharacterCodes2["punctuationSpace"] = 8200] = "punctuationSpace";
89610
- CharacterCodes2[CharacterCodes2["thinSpace"] = 8201] = "thinSpace";
89611
- CharacterCodes2[CharacterCodes2["hairSpace"] = 8202] = "hairSpace";
89612
- CharacterCodes2[CharacterCodes2["zeroWidthSpace"] = 8203] = "zeroWidthSpace";
89613
- CharacterCodes2[CharacterCodes2["narrowNoBreakSpace"] = 8239] = "narrowNoBreakSpace";
89614
- CharacterCodes2[CharacterCodes2["ideographicSpace"] = 12288] = "ideographicSpace";
89615
- CharacterCodes2[CharacterCodes2["mathematicalSpace"] = 8287] = "mathematicalSpace";
89616
- CharacterCodes2[CharacterCodes2["ogham"] = 5760] = "ogham";
89617
- CharacterCodes2[CharacterCodes2["replacementCharacter"] = 65533] = "replacementCharacter";
89618
- CharacterCodes2[CharacterCodes2["_"] = 95] = "_";
89619
- CharacterCodes2[CharacterCodes2["$"] = 36] = "$";
89620
- CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
89621
- CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
89622
- CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
89623
- CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
89624
- CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
89625
- CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
89626
- CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
89627
- CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
89628
- CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
89629
- CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
89630
- CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
89631
- CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
89632
- CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
89633
- CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
89634
- CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
89635
- CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
89636
- CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
89637
- CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
89638
- CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
89639
- CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
89640
- CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
89641
- CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
89642
- CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
89643
- CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
89644
- CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
89645
- CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
89646
- CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
89647
- CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
89648
- CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
89649
- CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
89650
- CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
89651
- CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
89652
- CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
89653
- CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
89654
- CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
89655
- CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
89656
- CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
89657
- CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
89658
- CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
89659
- CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
89660
- CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
89661
- CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
89662
- CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
89663
- CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
89664
- CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
89665
- CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
89666
- CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
89667
- CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
89668
- CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
89669
- CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
89670
- CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
89671
- CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
89672
- CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
89673
- CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
89674
- CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
89675
- CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
89676
- CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
89677
- CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
89678
- CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
89679
- CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
89680
- CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
89681
- CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
89682
- CharacterCodes2[CharacterCodes2["ampersand"] = 38] = "ampersand";
89683
- CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
89684
- CharacterCodes2[CharacterCodes2["at"] = 64] = "at";
89685
- CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
89686
- CharacterCodes2[CharacterCodes2["backtick"] = 96] = "backtick";
89687
- CharacterCodes2[CharacterCodes2["bar"] = 124] = "bar";
89688
- CharacterCodes2[CharacterCodes2["caret"] = 94] = "caret";
89689
- CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
89690
- CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
89691
- CharacterCodes2[CharacterCodes2["closeParen"] = 41] = "closeParen";
89692
- CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
89693
- CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
89694
- CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
89695
- CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
89696
- CharacterCodes2[CharacterCodes2["equals"] = 61] = "equals";
89697
- CharacterCodes2[CharacterCodes2["exclamation"] = 33] = "exclamation";
89698
- CharacterCodes2[CharacterCodes2["greaterThan"] = 62] = "greaterThan";
89699
- CharacterCodes2[CharacterCodes2["hash"] = 35] = "hash";
89700
- CharacterCodes2[CharacterCodes2["lessThan"] = 60] = "lessThan";
89701
- CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
89702
- CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
89703
- CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
89704
- CharacterCodes2[CharacterCodes2["openParen"] = 40] = "openParen";
89705
- CharacterCodes2[CharacterCodes2["percent"] = 37] = "percent";
89706
- CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
89707
- CharacterCodes2[CharacterCodes2["question"] = 63] = "question";
89708
- CharacterCodes2[CharacterCodes2["semicolon"] = 59] = "semicolon";
89709
- CharacterCodes2[CharacterCodes2["singleQuote"] = 39] = "singleQuote";
89710
- CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
89711
- CharacterCodes2[CharacterCodes2["tilde"] = 126] = "tilde";
89712
- CharacterCodes2[CharacterCodes2["backspace"] = 8] = "backspace";
89713
- CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
89714
- CharacterCodes2[CharacterCodes2["byteOrderMark"] = 65279] = "byteOrderMark";
89715
- CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
89716
- CharacterCodes2[CharacterCodes2["verticalTab"] = 11] = "verticalTab";
89717
- return CharacterCodes2;
89718
- })(CharacterCodes || {});
89491
+ var CharacterCodes2 = /* @__PURE__ */ ((CharacterCodes22) => {
89492
+ CharacterCodes22[CharacterCodes22["EOF"] = -1] = "EOF";
89493
+ CharacterCodes22[CharacterCodes22["nullCharacter"] = 0] = "nullCharacter";
89494
+ CharacterCodes22[CharacterCodes22["maxAsciiCharacter"] = 127] = "maxAsciiCharacter";
89495
+ CharacterCodes22[CharacterCodes22["lineFeed"] = 10] = "lineFeed";
89496
+ CharacterCodes22[CharacterCodes22["carriageReturn"] = 13] = "carriageReturn";
89497
+ CharacterCodes22[CharacterCodes22["lineSeparator"] = 8232] = "lineSeparator";
89498
+ CharacterCodes22[CharacterCodes22["paragraphSeparator"] = 8233] = "paragraphSeparator";
89499
+ CharacterCodes22[CharacterCodes22["nextLine"] = 133] = "nextLine";
89500
+ CharacterCodes22[CharacterCodes22["space"] = 32] = "space";
89501
+ CharacterCodes22[CharacterCodes22["nonBreakingSpace"] = 160] = "nonBreakingSpace";
89502
+ CharacterCodes22[CharacterCodes22["enQuad"] = 8192] = "enQuad";
89503
+ CharacterCodes22[CharacterCodes22["emQuad"] = 8193] = "emQuad";
89504
+ CharacterCodes22[CharacterCodes22["enSpace"] = 8194] = "enSpace";
89505
+ CharacterCodes22[CharacterCodes22["emSpace"] = 8195] = "emSpace";
89506
+ CharacterCodes22[CharacterCodes22["threePerEmSpace"] = 8196] = "threePerEmSpace";
89507
+ CharacterCodes22[CharacterCodes22["fourPerEmSpace"] = 8197] = "fourPerEmSpace";
89508
+ CharacterCodes22[CharacterCodes22["sixPerEmSpace"] = 8198] = "sixPerEmSpace";
89509
+ CharacterCodes22[CharacterCodes22["figureSpace"] = 8199] = "figureSpace";
89510
+ CharacterCodes22[CharacterCodes22["punctuationSpace"] = 8200] = "punctuationSpace";
89511
+ CharacterCodes22[CharacterCodes22["thinSpace"] = 8201] = "thinSpace";
89512
+ CharacterCodes22[CharacterCodes22["hairSpace"] = 8202] = "hairSpace";
89513
+ CharacterCodes22[CharacterCodes22["zeroWidthSpace"] = 8203] = "zeroWidthSpace";
89514
+ CharacterCodes22[CharacterCodes22["narrowNoBreakSpace"] = 8239] = "narrowNoBreakSpace";
89515
+ CharacterCodes22[CharacterCodes22["ideographicSpace"] = 12288] = "ideographicSpace";
89516
+ CharacterCodes22[CharacterCodes22["mathematicalSpace"] = 8287] = "mathematicalSpace";
89517
+ CharacterCodes22[CharacterCodes22["ogham"] = 5760] = "ogham";
89518
+ CharacterCodes22[CharacterCodes22["replacementCharacter"] = 65533] = "replacementCharacter";
89519
+ CharacterCodes22[CharacterCodes22["_"] = 95] = "_";
89520
+ CharacterCodes22[CharacterCodes22["$"] = 36] = "$";
89521
+ CharacterCodes22[CharacterCodes22["_0"] = 48] = "_0";
89522
+ CharacterCodes22[CharacterCodes22["_1"] = 49] = "_1";
89523
+ CharacterCodes22[CharacterCodes22["_2"] = 50] = "_2";
89524
+ CharacterCodes22[CharacterCodes22["_3"] = 51] = "_3";
89525
+ CharacterCodes22[CharacterCodes22["_4"] = 52] = "_4";
89526
+ CharacterCodes22[CharacterCodes22["_5"] = 53] = "_5";
89527
+ CharacterCodes22[CharacterCodes22["_6"] = 54] = "_6";
89528
+ CharacterCodes22[CharacterCodes22["_7"] = 55] = "_7";
89529
+ CharacterCodes22[CharacterCodes22["_8"] = 56] = "_8";
89530
+ CharacterCodes22[CharacterCodes22["_9"] = 57] = "_9";
89531
+ CharacterCodes22[CharacterCodes22["a"] = 97] = "a";
89532
+ CharacterCodes22[CharacterCodes22["b"] = 98] = "b";
89533
+ CharacterCodes22[CharacterCodes22["c"] = 99] = "c";
89534
+ CharacterCodes22[CharacterCodes22["d"] = 100] = "d";
89535
+ CharacterCodes22[CharacterCodes22["e"] = 101] = "e";
89536
+ CharacterCodes22[CharacterCodes22["f"] = 102] = "f";
89537
+ CharacterCodes22[CharacterCodes22["g"] = 103] = "g";
89538
+ CharacterCodes22[CharacterCodes22["h"] = 104] = "h";
89539
+ CharacterCodes22[CharacterCodes22["i"] = 105] = "i";
89540
+ CharacterCodes22[CharacterCodes22["j"] = 106] = "j";
89541
+ CharacterCodes22[CharacterCodes22["k"] = 107] = "k";
89542
+ CharacterCodes22[CharacterCodes22["l"] = 108] = "l";
89543
+ CharacterCodes22[CharacterCodes22["m"] = 109] = "m";
89544
+ CharacterCodes22[CharacterCodes22["n"] = 110] = "n";
89545
+ CharacterCodes22[CharacterCodes22["o"] = 111] = "o";
89546
+ CharacterCodes22[CharacterCodes22["p"] = 112] = "p";
89547
+ CharacterCodes22[CharacterCodes22["q"] = 113] = "q";
89548
+ CharacterCodes22[CharacterCodes22["r"] = 114] = "r";
89549
+ CharacterCodes22[CharacterCodes22["s"] = 115] = "s";
89550
+ CharacterCodes22[CharacterCodes22["t"] = 116] = "t";
89551
+ CharacterCodes22[CharacterCodes22["u"] = 117] = "u";
89552
+ CharacterCodes22[CharacterCodes22["v"] = 118] = "v";
89553
+ CharacterCodes22[CharacterCodes22["w"] = 119] = "w";
89554
+ CharacterCodes22[CharacterCodes22["x"] = 120] = "x";
89555
+ CharacterCodes22[CharacterCodes22["y"] = 121] = "y";
89556
+ CharacterCodes22[CharacterCodes22["z"] = 122] = "z";
89557
+ CharacterCodes22[CharacterCodes22["A"] = 65] = "A";
89558
+ CharacterCodes22[CharacterCodes22["B"] = 66] = "B";
89559
+ CharacterCodes22[CharacterCodes22["C"] = 67] = "C";
89560
+ CharacterCodes22[CharacterCodes22["D"] = 68] = "D";
89561
+ CharacterCodes22[CharacterCodes22["E"] = 69] = "E";
89562
+ CharacterCodes22[CharacterCodes22["F"] = 70] = "F";
89563
+ CharacterCodes22[CharacterCodes22["G"] = 71] = "G";
89564
+ CharacterCodes22[CharacterCodes22["H"] = 72] = "H";
89565
+ CharacterCodes22[CharacterCodes22["I"] = 73] = "I";
89566
+ CharacterCodes22[CharacterCodes22["J"] = 74] = "J";
89567
+ CharacterCodes22[CharacterCodes22["K"] = 75] = "K";
89568
+ CharacterCodes22[CharacterCodes22["L"] = 76] = "L";
89569
+ CharacterCodes22[CharacterCodes22["M"] = 77] = "M";
89570
+ CharacterCodes22[CharacterCodes22["N"] = 78] = "N";
89571
+ CharacterCodes22[CharacterCodes22["O"] = 79] = "O";
89572
+ CharacterCodes22[CharacterCodes22["P"] = 80] = "P";
89573
+ CharacterCodes22[CharacterCodes22["Q"] = 81] = "Q";
89574
+ CharacterCodes22[CharacterCodes22["R"] = 82] = "R";
89575
+ CharacterCodes22[CharacterCodes22["S"] = 83] = "S";
89576
+ CharacterCodes22[CharacterCodes22["T"] = 84] = "T";
89577
+ CharacterCodes22[CharacterCodes22["U"] = 85] = "U";
89578
+ CharacterCodes22[CharacterCodes22["V"] = 86] = "V";
89579
+ CharacterCodes22[CharacterCodes22["W"] = 87] = "W";
89580
+ CharacterCodes22[CharacterCodes22["X"] = 88] = "X";
89581
+ CharacterCodes22[CharacterCodes22["Y"] = 89] = "Y";
89582
+ CharacterCodes22[CharacterCodes22["Z"] = 90] = "Z";
89583
+ CharacterCodes22[CharacterCodes22["ampersand"] = 38] = "ampersand";
89584
+ CharacterCodes22[CharacterCodes22["asterisk"] = 42] = "asterisk";
89585
+ CharacterCodes22[CharacterCodes22["at"] = 64] = "at";
89586
+ CharacterCodes22[CharacterCodes22["backslash"] = 92] = "backslash";
89587
+ CharacterCodes22[CharacterCodes22["backtick"] = 96] = "backtick";
89588
+ CharacterCodes22[CharacterCodes22["bar"] = 124] = "bar";
89589
+ CharacterCodes22[CharacterCodes22["caret"] = 94] = "caret";
89590
+ CharacterCodes22[CharacterCodes22["closeBrace"] = 125] = "closeBrace";
89591
+ CharacterCodes22[CharacterCodes22["closeBracket"] = 93] = "closeBracket";
89592
+ CharacterCodes22[CharacterCodes22["closeParen"] = 41] = "closeParen";
89593
+ CharacterCodes22[CharacterCodes22["colon"] = 58] = "colon";
89594
+ CharacterCodes22[CharacterCodes22["comma"] = 44] = "comma";
89595
+ CharacterCodes22[CharacterCodes22["dot"] = 46] = "dot";
89596
+ CharacterCodes22[CharacterCodes22["doubleQuote"] = 34] = "doubleQuote";
89597
+ CharacterCodes22[CharacterCodes22["equals"] = 61] = "equals";
89598
+ CharacterCodes22[CharacterCodes22["exclamation"] = 33] = "exclamation";
89599
+ CharacterCodes22[CharacterCodes22["greaterThan"] = 62] = "greaterThan";
89600
+ CharacterCodes22[CharacterCodes22["hash"] = 35] = "hash";
89601
+ CharacterCodes22[CharacterCodes22["lessThan"] = 60] = "lessThan";
89602
+ CharacterCodes22[CharacterCodes22["minus"] = 45] = "minus";
89603
+ CharacterCodes22[CharacterCodes22["openBrace"] = 123] = "openBrace";
89604
+ CharacterCodes22[CharacterCodes22["openBracket"] = 91] = "openBracket";
89605
+ CharacterCodes22[CharacterCodes22["openParen"] = 40] = "openParen";
89606
+ CharacterCodes22[CharacterCodes22["percent"] = 37] = "percent";
89607
+ CharacterCodes22[CharacterCodes22["plus"] = 43] = "plus";
89608
+ CharacterCodes22[CharacterCodes22["question"] = 63] = "question";
89609
+ CharacterCodes22[CharacterCodes22["semicolon"] = 59] = "semicolon";
89610
+ CharacterCodes22[CharacterCodes22["singleQuote"] = 39] = "singleQuote";
89611
+ CharacterCodes22[CharacterCodes22["slash"] = 47] = "slash";
89612
+ CharacterCodes22[CharacterCodes22["tilde"] = 126] = "tilde";
89613
+ CharacterCodes22[CharacterCodes22["backspace"] = 8] = "backspace";
89614
+ CharacterCodes22[CharacterCodes22["formFeed"] = 12] = "formFeed";
89615
+ CharacterCodes22[CharacterCodes22["byteOrderMark"] = 65279] = "byteOrderMark";
89616
+ CharacterCodes22[CharacterCodes22["tab"] = 9] = "tab";
89617
+ CharacterCodes22[CharacterCodes22["verticalTab"] = 11] = "verticalTab";
89618
+ return CharacterCodes22;
89619
+ })(CharacterCodes2 || {});
89719
89620
  var Extension = /* @__PURE__ */ ((Extension2) => {
89720
89621
  Extension2["Ts"] = ".ts";
89721
89622
  Extension2["Tsx"] = ".tsx";
@@ -94636,7 +94537,7 @@ ${lanes.join("\n")}
94636
94537
  lineStart = pos;
94637
94538
  break;
94638
94539
  default:
94639
- if (ch > 127 && isLineBreak(ch)) {
94540
+ if (ch > 127 && isLineBreak2(ch)) {
94640
94541
  result.push(lineStart);
94641
94542
  lineStart = pos;
94642
94543
  }
@@ -94700,25 +94601,25 @@ ${lanes.join("\n")}
94700
94601
  return computeLineAndCharacterOfPosition(getLineStarts(sourceFile), position);
94701
94602
  }
94702
94603
  function isWhiteSpaceLike(ch) {
94703
- return isWhiteSpaceSingleLine(ch) || isLineBreak(ch);
94604
+ return isWhiteSpaceSingleLine(ch) || isLineBreak2(ch);
94704
94605
  }
94705
94606
  function isWhiteSpaceSingleLine(ch) {
94706
94607
  return ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 133 || ch === 5760 || ch >= 8192 && ch <= 8203 || ch === 8239 || ch === 8287 || ch === 12288 || ch === 65279;
94707
94608
  }
94708
- function isLineBreak(ch) {
94609
+ function isLineBreak2(ch) {
94709
94610
  return ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
94710
94611
  }
94711
- function isDigit(ch) {
94612
+ function isDigit2(ch) {
94712
94613
  return ch >= 48 && ch <= 57;
94713
94614
  }
94714
94615
  function isHexDigit(ch) {
94715
- return isDigit(ch) || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
94616
+ return isDigit2(ch) || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
94716
94617
  }
94717
94618
  function isASCIILetter(ch) {
94718
94619
  return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122;
94719
94620
  }
94720
94621
  function isWordCharacter(ch) {
94721
- return isASCIILetter(ch) || isDigit(ch) || ch === 95;
94622
+ return isASCIILetter(ch) || isDigit2(ch) || ch === 95;
94722
94623
  }
94723
94624
  function isOctalDigit(ch) {
94724
94625
  return ch >= 48 && ch <= 55;
@@ -94779,7 +94680,7 @@ ${lanes.join("\n")}
94779
94680
  if (text.charCodeAt(pos + 1) === 47) {
94780
94681
  pos += 2;
94781
94682
  while (pos < text.length) {
94782
- if (isLineBreak(text.charCodeAt(pos))) {
94683
+ if (isLineBreak2(text.charCodeAt(pos))) {
94783
94684
  break;
94784
94685
  }
94785
94686
  pos++;
@@ -94837,7 +94738,7 @@ ${lanes.join("\n")}
94837
94738
  var mergeConflictMarkerLength = "<<<<<<<".length;
94838
94739
  function isConflictMarkerTrivia(text, pos) {
94839
94740
  Debug.assert(pos >= 0);
94840
- if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) {
94741
+ if (pos === 0 || isLineBreak2(text.charCodeAt(pos - 1))) {
94841
94742
  const ch = text.charCodeAt(pos);
94842
94743
  if (pos + mergeConflictMarkerLength < text.length) {
94843
94744
  for (let i = 0; i < mergeConflictMarkerLength; i++) {
@@ -94857,7 +94758,7 @@ ${lanes.join("\n")}
94857
94758
  const ch = text.charCodeAt(pos);
94858
94759
  const len = text.length;
94859
94760
  if (ch === 60 || ch === 62) {
94860
- while (pos < len && !isLineBreak(text.charCodeAt(pos))) {
94761
+ while (pos < len && !isLineBreak2(text.charCodeAt(pos))) {
94861
94762
  pos++;
94862
94763
  }
94863
94764
  } else {
@@ -94934,7 +94835,7 @@ ${lanes.join("\n")}
94934
94835
  pos += 2;
94935
94836
  if (nextChar === 47) {
94936
94837
  while (pos < text.length) {
94937
- if (isLineBreak(text.charCodeAt(pos))) {
94838
+ if (isLineBreak2(text.charCodeAt(pos))) {
94938
94839
  hasTrailingNewLine = true;
94939
94840
  break;
94940
94841
  }
@@ -94967,7 +94868,7 @@ ${lanes.join("\n")}
94967
94868
  break scan;
94968
94869
  default:
94969
94870
  if (ch > 127 && isWhiteSpaceLike(ch)) {
94970
- if (hasPendingCommentRange && isLineBreak(ch)) {
94871
+ if (hasPendingCommentRange && isLineBreak2(ch)) {
94971
94872
  pendingHasTrailingNewLine = true;
94972
94873
  }
94973
94874
  pos++;
@@ -95082,7 +94983,7 @@ ${lanes.join("\n")}
95082
94983
  }
95083
94984
  return true;
95084
94985
  }
95085
- function createScanner(languageVersion, skipTrivia2, languageVariant = 0, textInitial, onError, start, length2) {
94986
+ function createScanner2(languageVersion, skipTrivia2, languageVariant = 0, textInitial, onError, start, length2) {
95086
94987
  var text = textInitial;
95087
94988
  var pos;
95088
94989
  var end;
@@ -95203,7 +95104,7 @@ ${lanes.join("\n")}
95203
95104
  start2 = pos;
95204
95105
  continue;
95205
95106
  }
95206
- if (isDigit(ch)) {
95107
+ if (isDigit2(ch)) {
95207
95108
  allowSeparator = true;
95208
95109
  isPreviousTokenSeparator = false;
95209
95110
  pos++;
@@ -95312,7 +95213,7 @@ ${lanes.join("\n")}
95312
95213
  function scanDigits() {
95313
95214
  const start2 = pos;
95314
95215
  let isOctal = true;
95315
- while (isDigit(charCodeChecked(pos))) {
95216
+ while (isDigit2(charCodeChecked(pos))) {
95316
95217
  if (!isOctalDigit(charCodeUnchecked(pos))) {
95317
95218
  isOctal = false;
95318
95219
  }
@@ -95474,7 +95375,7 @@ ${lanes.join("\n")}
95474
95375
  pos++;
95475
95376
  switch (ch) {
95476
95377
  case 48:
95477
- if (pos >= end || !isDigit(charCodeUnchecked(pos))) {
95378
+ if (pos >= end || !isDigit2(charCodeUnchecked(pos))) {
95478
95379
  return "\0";
95479
95380
  }
95480
95381
  // '\01', '\011'
@@ -95739,7 +95640,7 @@ ${lanes.join("\n")}
95739
95640
  continue;
95740
95641
  }
95741
95642
  separatorAllowed = true;
95742
- if (!isDigit(ch) || ch - 48 >= base) {
95643
+ if (!isDigit2(ch) || ch - 48 >= base) {
95743
95644
  break;
95744
95645
  }
95745
95646
  value += text[pos];
@@ -95910,7 +95811,7 @@ ${lanes.join("\n")}
95910
95811
  pos++;
95911
95812
  return token = 41;
95912
95813
  case 46:
95913
- if (isDigit(charCodeUnchecked(pos + 1))) {
95814
+ if (isDigit2(charCodeUnchecked(pos + 1))) {
95914
95815
  scanNumber();
95915
95816
  return token = 9;
95916
95817
  }
@@ -95923,7 +95824,7 @@ ${lanes.join("\n")}
95923
95824
  if (charCodeUnchecked(pos + 1) === 47) {
95924
95825
  pos += 2;
95925
95826
  while (pos < end) {
95926
- if (isLineBreak(charCodeUnchecked(pos))) {
95827
+ if (isLineBreak2(charCodeUnchecked(pos))) {
95927
95828
  break;
95928
95829
  }
95929
95830
  pos++;
@@ -95953,7 +95854,7 @@ ${lanes.join("\n")}
95953
95854
  break;
95954
95855
  }
95955
95856
  pos++;
95956
- if (isLineBreak(ch2)) {
95857
+ if (isLineBreak2(ch2)) {
95957
95858
  lastLineStart = pos;
95958
95859
  tokenFlags |= 1;
95959
95860
  }
@@ -96093,7 +95994,7 @@ ${lanes.join("\n")}
96093
95994
  pos++;
96094
95995
  return token = 32;
96095
95996
  case 63:
96096
- if (charCodeUnchecked(pos + 1) === 46 && !isDigit(charCodeUnchecked(pos + 2))) {
95997
+ if (charCodeUnchecked(pos + 1) === 46 && !isDigit2(charCodeUnchecked(pos + 2))) {
96097
95998
  return pos += 2, token = 29;
96098
95999
  }
96099
96000
  if (charCodeUnchecked(pos + 1) === 63) {
@@ -96212,7 +96113,7 @@ ${lanes.join("\n")}
96212
96113
  } else if (isWhiteSpaceSingleLine(ch)) {
96213
96114
  pos += charSize(ch);
96214
96115
  continue;
96215
- } else if (isLineBreak(ch)) {
96116
+ } else if (isLineBreak2(ch)) {
96216
96117
  tokenFlags |= 1;
96217
96118
  pos += charSize(ch);
96218
96119
  continue;
@@ -96303,7 +96204,7 @@ ${lanes.join("\n")}
96303
96204
  let inCharacterClass = false;
96304
96205
  while (true) {
96305
96206
  const ch = charCodeChecked(pos);
96306
- if (ch === -1 || isLineBreak(ch)) {
96207
+ if (ch === -1 || isLineBreak2(ch)) {
96307
96208
  tokenFlags |= 4;
96308
96209
  break;
96309
96210
  }
@@ -97411,9 +97312,9 @@ ${lanes.join("\n")}
97411
97312
  if (char === 125) {
97412
97313
  error210(Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1);
97413
97314
  }
97414
- if (isLineBreak(char) && firstNonWhitespace === 0) {
97315
+ if (isLineBreak2(char) && firstNonWhitespace === 0) {
97415
97316
  firstNonWhitespace = -1;
97416
- } else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) {
97317
+ } else if (!allowMultilineJsxText && isLineBreak2(char) && firstNonWhitespace > 0) {
97417
97318
  break;
97418
97319
  } else if (!isWhiteSpaceLike(char)) {
97419
97320
  firstNonWhitespace = pos;
@@ -97466,7 +97367,7 @@ ${lanes.join("\n")}
97466
97367
  if (pos >= end) {
97467
97368
  return token = 1;
97468
97369
  }
97469
- for (let ch = charCodeUnchecked(pos); pos < end && (!isLineBreak(ch) && ch !== 96); ch = codePointUnchecked(++pos)) {
97370
+ for (let ch = charCodeUnchecked(pos); pos < end && (!isLineBreak2(ch) && ch !== 96); ch = codePointUnchecked(++pos)) {
97470
97371
  if (!inBackticks) {
97471
97372
  if (ch === 123) {
97472
97373
  break;
@@ -99579,8 +99480,8 @@ ${lanes.join("\n")}
99579
99480
  } else {
99580
99481
  const start = lineStarts[lineIndex];
99581
99482
  let pos = lineStarts[lineIndex + 1] - 1;
99582
- Debug.assert(isLineBreak(sourceText.charCodeAt(pos)));
99583
- while (start <= pos && isLineBreak(sourceText.charCodeAt(pos))) {
99483
+ Debug.assert(isLineBreak2(sourceText.charCodeAt(pos)));
99484
+ while (start <= pos && isLineBreak2(sourceText.charCodeAt(pos))) {
99584
99485
  pos--;
99585
99486
  }
99586
99487
  return pos;
@@ -100712,7 +100613,7 @@ ${lanes.join("\n")}
100712
100613
  };
100713
100614
  }
100714
100615
  function getSpanOfTokenAtPosition(sourceFile, pos) {
100715
- const scanner2 = createScanner(
100616
+ const scanner2 = createScanner2(
100716
100617
  sourceFile.languageVersion,
100717
100618
  /*skipTrivia*/
100718
100619
  true,
@@ -100727,7 +100628,7 @@ ${lanes.join("\n")}
100727
100628
  return createTextSpanFromBounds(start, scanner2.getTokenEnd());
100728
100629
  }
100729
100630
  function scanTokenAtPosition(sourceFile, pos) {
100730
- const scanner2 = createScanner(
100631
+ const scanner2 = createScanner2(
100731
100632
  sourceFile.languageVersion,
100732
100633
  /*skipTrivia*/
100733
100634
  true,
@@ -100811,7 +100712,7 @@ ${lanes.join("\n")}
100811
100712
  case 177: {
100812
100713
  const constructorDeclaration = node;
100813
100714
  const start = skipTrivia(sourceFile.text, constructorDeclaration.pos);
100814
- const scanner2 = createScanner(
100715
+ const scanner2 = createScanner2(
100815
100716
  sourceFile.languageVersion,
100816
100717
  /*skipTrivia*/
100817
100718
  true,
@@ -106213,7 +106114,7 @@ ${lanes.join("\n")}
106213
106114
  }
106214
106115
  function isValidBigIntString(s, roundTripOnly) {
106215
106116
  if (s === "") return false;
106216
- const scanner2 = createScanner(
106117
+ const scanner2 = createScanner2(
106217
106118
  99,
106218
106119
  /*skipTrivia*/
106219
106120
  false
@@ -113256,7 +113157,7 @@ ${lanes.join("\n")}
113256
113157
  var invalidValueSentinel = {};
113257
113158
  function getCookedText(kind, rawText) {
113258
113159
  if (!rawTextScanner) {
113259
- rawTextScanner = createScanner(
113160
+ rawTextScanner = createScanner2(
113260
113161
  99,
113261
113162
  /*skipTrivia*/
113262
113163
  false,
@@ -117758,7 +117659,7 @@ ${lanes.join("\n")}
117758
117659
  const {
117759
117660
  languageVersion,
117760
117661
  setExternalModuleIndicator: overrideSetExternalModuleIndicator,
117761
- impliedNodeFormat: format,
117662
+ impliedNodeFormat: format2,
117762
117663
  jsDocParsingMode
117763
117664
  } = typeof languageVersionOrOptions === "object" ? languageVersionOrOptions : { languageVersion: languageVersionOrOptions };
117764
117665
  if (languageVersion === 100) {
@@ -117774,8 +117675,8 @@ ${lanes.join("\n")}
117774
117675
  jsDocParsingMode
117775
117676
  );
117776
117677
  } else {
117777
- const setIndicator = format === void 0 ? overrideSetExternalModuleIndicator : (file2) => {
117778
- file2.impliedNodeFormat = format;
117678
+ const setIndicator = format2 === void 0 ? overrideSetExternalModuleIndicator : (file2) => {
117679
+ file2.impliedNodeFormat = format2;
117779
117680
  return (overrideSetExternalModuleIndicator || setExternalModuleIndicator)(file2);
117780
117681
  };
117781
117682
  result = Parser.parseSourceFile(
@@ -117821,7 +117722,7 @@ ${lanes.join("\n")}
117821
117722
  }
117822
117723
  var Parser;
117823
117724
  ((Parser2) => {
117824
- var scanner2 = createScanner(
117725
+ var scanner2 = createScanner2(
117825
117726
  99,
117826
117727
  /*skipTrivia*/
117827
117728
  true
@@ -125973,7 +125874,7 @@ ${lanes.join("\n")}
125973
125874
  function findNearestNodeStartingBeforeOrAtPosition(sourceFile, position) {
125974
125875
  let bestResult = sourceFile;
125975
125876
  let lastNodeEntirelyBeforePosition;
125976
- forEachChild(sourceFile, visit);
125877
+ forEachChild(sourceFile, visit2);
125977
125878
  if (lastNodeEntirelyBeforePosition) {
125978
125879
  const lastChildOfLastEntireNodeBeforePosition = getLastDescendant(lastNodeEntirelyBeforePosition);
125979
125880
  if (lastChildOfLastEntireNodeBeforePosition.pos > bestResult.pos) {
@@ -125991,7 +125892,7 @@ ${lanes.join("\n")}
125991
125892
  }
125992
125893
  }
125993
125894
  }
125994
- function visit(child) {
125895
+ function visit2(child) {
125995
125896
  if (nodeIsMissing(child)) {
125996
125897
  return;
125997
125898
  }
@@ -126000,7 +125901,7 @@ ${lanes.join("\n")}
126000
125901
  bestResult = child;
126001
125902
  }
126002
125903
  if (position < child.end) {
126003
- forEachChild(child, visit);
125904
+ forEachChild(child, visit2);
126004
125905
  return true;
126005
125906
  } else {
126006
125907
  Debug.assert(child.end <= position);
@@ -140923,7 +140824,7 @@ ${lanes.join("\n")}
140923
140824
  let typeOnlyExportStarMap;
140924
140825
  const nonTypeOnlyNames = /* @__PURE__ */ new Set();
140925
140826
  moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);
140926
- const exports2 = visit(moduleSymbol) || emptySymbols;
140827
+ const exports2 = visit2(moduleSymbol) || emptySymbols;
140927
140828
  if (typeOnlyExportStarMap) {
140928
140829
  nonTypeOnlyNames.forEach((name) => typeOnlyExportStarMap.delete(name));
140929
140830
  }
@@ -140931,7 +140832,7 @@ ${lanes.join("\n")}
140931
140832
  exports: exports2,
140932
140833
  typeOnlyExportStarMap
140933
140834
  };
140934
- function visit(symbol2, exportStar, isTypeOnly) {
140835
+ function visit2(symbol2, exportStar, isTypeOnly) {
140935
140836
  if (!isTypeOnly && (symbol2 == null ? void 0 : symbol2.exports)) {
140936
140837
  symbol2.exports.forEach((_, name) => nonTypeOnlyNames.add(name));
140937
140838
  }
@@ -140949,7 +140850,7 @@ ${lanes.join("\n")}
140949
140850
  if (exportStars.declarations) {
140950
140851
  for (const node of exportStars.declarations) {
140951
140852
  const resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);
140952
- const exportedSymbols = visit(resolvedModule, node, isTypeOnly || node.isTypeOnly);
140853
+ const exportedSymbols = visit2(resolvedModule, node, isTypeOnly || node.isTypeOnly);
140953
140854
  extendExportSymbols(
140954
140855
  nestedSymbols,
140955
140856
  exportedSymbols,
@@ -166510,7 +166411,7 @@ ${lanes.join("\n")}
166510
166411
  const sourceFile = getSourceFileOfNode(node);
166511
166412
  if (!hasParseDiagnostics(sourceFile) && !node.isUnterminated) {
166512
166413
  let lastError;
166513
- scanner2 ?? (scanner2 = createScanner(
166414
+ scanner2 ?? (scanner2 = createScanner2(
166514
166415
  99,
166515
166416
  /*skipTrivia*/
166516
166417
  true
@@ -169894,7 +169795,7 @@ ${lanes.join("\n")}
169894
169795
  let relatedInformation;
169895
169796
  if (node.arguments.length === 1) {
169896
169797
  const text = getSourceFileOfNode(node).text;
169897
- if (isLineBreak(text.charCodeAt(skipTrivia(
169798
+ if (isLineBreak2(text.charCodeAt(skipTrivia(
169898
169799
  text,
169899
169800
  node.expression.end,
169900
169801
  /*stopAfterLineBreak*/
@@ -177173,14 +177074,14 @@ ${lanes.join("\n")}
177173
177074
  }
177174
177075
  function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) {
177175
177076
  while (isBinaryExpression(node) && node.operatorToken.kind === 56) {
177176
- const isUsed = forEachChild(node.right, function visit(child) {
177077
+ const isUsed = forEachChild(node.right, function visit2(child) {
177177
177078
  if (isIdentifier(child)) {
177178
177079
  const symbol2 = getSymbolAtLocation(child);
177179
177080
  if (symbol2 && symbol2 === testedSymbol) {
177180
177081
  return true;
177181
177082
  }
177182
177083
  }
177183
- return forEachChild(child, visit);
177084
+ return forEachChild(child, visit2);
177184
177085
  });
177185
177086
  if (isUsed) {
177186
177087
  return true;
@@ -178358,8 +178259,8 @@ ${lanes.join("\n")}
178358
178259
  }
178359
178260
  }
178360
178261
  function checkTypeParametersNotReferenced(root, typeParameters, index) {
178361
- visit(root);
178362
- function visit(node) {
178262
+ visit2(root);
178263
+ function visit2(node) {
178363
178264
  if (node.kind === 184) {
178364
178265
  const type = getTypeFromTypeReference(node);
178365
178266
  if (type.flags & 262144) {
@@ -178370,7 +178271,7 @@ ${lanes.join("\n")}
178370
178271
  }
178371
178272
  }
178372
178273
  }
178373
- forEachChild(node, visit);
178274
+ forEachChild(node, visit2);
178374
178275
  }
178375
178276
  }
178376
178277
  function checkTypeParameterListsIdentical(symbol2) {
@@ -199184,7 +199085,7 @@ ${lanes.join("\n")}
199184
199085
  let lastNonWhitespace = -1;
199185
199086
  for (let i = 0; i < text.length; i++) {
199186
199087
  const c = text.charCodeAt(i);
199187
- if (isLineBreak(c)) {
199088
+ if (isLineBreak2(c)) {
199188
199089
  if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) {
199189
199090
  acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace + 1));
199190
199091
  }
@@ -202073,14 +201974,14 @@ ${lanes.join("\n")}
202073
201974
  if (!state.hoistedLocalVariables) {
202074
201975
  state.hoistedLocalVariables = [];
202075
201976
  }
202076
- visit(node.name);
202077
- function visit(node2) {
201977
+ visit2(node.name);
201978
+ function visit2(node2) {
202078
201979
  if (node2.kind === 80) {
202079
201980
  state.hoistedLocalVariables.push(node2);
202080
201981
  } else {
202081
201982
  for (const element of node2.elements) {
202082
201983
  if (!isOmittedExpression(element)) {
202083
- visit(element.name);
201984
+ visit2(element.name);
202084
201985
  }
202085
201986
  }
202086
201987
  }
@@ -203727,13 +203628,13 @@ ${lanes.join("\n")}
203727
203628
  }
203728
203629
  function visitCommaExpression(node) {
203729
203630
  let pendingExpressions = [];
203730
- visit(node.left);
203731
- visit(node.right);
203631
+ visit2(node.left);
203632
+ visit2(node.right);
203732
203633
  return factory2.inlineExpressions(pendingExpressions);
203733
- function visit(node2) {
203634
+ function visit2(node2) {
203734
203635
  if (isBinaryExpression(node2) && node2.operatorToken.kind === 28) {
203735
- visit(node2.left);
203736
- visit(node2.right);
203636
+ visit2(node2.left);
203637
+ visit2(node2.right);
203737
203638
  } else {
203738
203639
  if (containsYield(node2) && pendingExpressions.length > 0) {
203739
203640
  emitWorker(1, [factory2.createExpressionStatement(factory2.inlineExpressions(pendingExpressions))]);
@@ -205542,7 +205443,7 @@ ${lanes.join("\n")}
205542
205443
  return updated;
205543
205444
  }
205544
205445
  function transformAMDModule(node) {
205545
- const define2 = factory2.createIdentifier("define");
205446
+ const define = factory2.createIdentifier("define");
205546
205447
  const moduleName = tryGetModuleNameFromFile(factory2, node, host, compilerOptions);
205547
205448
  const jsonSourceFile = isJsonSourceFile(node) && node;
205548
205449
  const { aliasedModuleNames, unaliasedModuleNames, importAliasNames } = collectAsynchronousDependencies(
@@ -205556,7 +205457,7 @@ ${lanes.join("\n")}
205556
205457
  factory2.createNodeArray([
205557
205458
  factory2.createExpressionStatement(
205558
205459
  factory2.createCallExpression(
205559
- define2,
205460
+ define,
205560
205461
  /*typeArguments*/
205561
205462
  void 0,
205562
205463
  [
@@ -212745,8 +212646,8 @@ ${lanes.join("\n")}
212745
212646
  writeNode(hint, node, sourceFile, beginPrint());
212746
212647
  return endPrint();
212747
212648
  }
212748
- function printList(format, nodes, sourceFile) {
212749
- writeList(format, nodes, sourceFile, beginPrint());
212649
+ function printList(format2, nodes, sourceFile) {
212650
+ writeList(format2, nodes, sourceFile, beginPrint());
212750
212651
  return endPrint();
212751
212652
  }
212752
212653
  function printBundle(bundle) {
@@ -212778,7 +212679,7 @@ ${lanes.join("\n")}
212778
212679
  reset2();
212779
212680
  writer = previousWriter;
212780
212681
  }
212781
- function writeList(format, nodes, sourceFile, output) {
212682
+ function writeList(format2, nodes, sourceFile, output) {
212782
212683
  const previousWriter = writer;
212783
212684
  setWriter(
212784
212685
  output,
@@ -212792,7 +212693,7 @@ ${lanes.join("\n")}
212792
212693
  /*parentNode*/
212793
212694
  void 0,
212794
212695
  nodes,
212795
- format
212696
+ format2
212796
212697
  );
212797
212698
  reset2();
212798
212699
  writer = previousWriter;
@@ -214380,8 +214281,8 @@ ${lanes.join("\n")}
214380
214281
  /*contextNode*/
214381
214282
  node
214382
214283
  );
214383
- const format = forceSingleLine || getEmitFlags(node) & 1 ? 768 : 129;
214384
- emitList(node, node.statements, format);
214284
+ const format2 = forceSingleLine || getEmitFlags(node) & 1 ? 768 : 129;
214285
+ emitList(node, node.statements, format2);
214385
214286
  emitTokenWithComment(
214386
214287
  20,
214387
214288
  node.statements.end,
@@ -214389,7 +214290,7 @@ ${lanes.join("\n")}
214389
214290
  /*contextNode*/
214390
214291
  node,
214391
214292
  /*indentLeading*/
214392
- !!(format & 1)
214293
+ !!(format2 & 1)
214393
214294
  );
214394
214295
  }
214395
214296
  function emitVariableStatement(node) {
@@ -215358,15 +215259,15 @@ ${lanes.join("\n")}
215358
215259
  function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) {
215359
215260
  const emitAsSingleStatement = statements.length === 1 && // treat synthesized nodes as located on the same line for emit purposes
215360
215261
  (!currentSourceFile || nodeIsSynthesized(parentNode) || nodeIsSynthesized(statements[0]) || rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile));
215361
- let format = 163969;
215262
+ let format2 = 163969;
215362
215263
  if (emitAsSingleStatement) {
215363
215264
  writeToken(59, colonPos, writePunctuation, parentNode);
215364
215265
  writeSpace();
215365
- format &= ~(1 | 128);
215266
+ format2 &= ~(1 | 128);
215366
215267
  } else {
215367
215268
  emitTokenWithComment(59, colonPos, writePunctuation, parentNode);
215368
215269
  }
215369
- emitList(parentNode, statements, format);
215270
+ emitList(parentNode, statements, format2);
215370
215271
  }
215371
215272
  function emitHeritageClause(node) {
215372
215273
  writeSpace();
@@ -215926,8 +215827,8 @@ ${lanes.join("\n")}
215926
215827
  /* IndexSignatureParameters */
215927
215828
  );
215928
215829
  }
215929
- function writeDelimiter(format) {
215930
- switch (format & 60) {
215830
+ function writeDelimiter(format2) {
215831
+ switch (format2 & 60) {
215931
215832
  case 0:
215932
215833
  break;
215933
215834
  case 16:
@@ -215948,33 +215849,33 @@ ${lanes.join("\n")}
215948
215849
  break;
215949
215850
  }
215950
215851
  }
215951
- function emitList(parentNode, children, format, parenthesizerRule, start, count) {
215852
+ function emitList(parentNode, children, format2, parenthesizerRule, start, count) {
215952
215853
  emitNodeList(
215953
215854
  emit,
215954
215855
  parentNode,
215955
215856
  children,
215956
- format | (parentNode && getEmitFlags(parentNode) & 2 ? 65536 : 0),
215857
+ format2 | (parentNode && getEmitFlags(parentNode) & 2 ? 65536 : 0),
215957
215858
  parenthesizerRule,
215958
215859
  start,
215959
215860
  count
215960
215861
  );
215961
215862
  }
215962
- function emitExpressionList(parentNode, children, format, parenthesizerRule, start, count) {
215963
- emitNodeList(emitExpression, parentNode, children, format, parenthesizerRule, start, count);
215863
+ function emitExpressionList(parentNode, children, format2, parenthesizerRule, start, count) {
215864
+ emitNodeList(emitExpression, parentNode, children, format2, parenthesizerRule, start, count);
215964
215865
  }
215965
- function emitNodeList(emit2, parentNode, children, format, parenthesizerRule, start = 0, count = children ? children.length - start : 0) {
215866
+ function emitNodeList(emit2, parentNode, children, format2, parenthesizerRule, start = 0, count = children ? children.length - start : 0) {
215966
215867
  const isUndefined = children === void 0;
215967
- if (isUndefined && format & 16384) {
215868
+ if (isUndefined && format2 & 16384) {
215968
215869
  return;
215969
215870
  }
215970
215871
  const isEmpty = children === void 0 || start >= children.length || count === 0;
215971
- if (isEmpty && format & 32768) {
215872
+ if (isEmpty && format2 & 32768) {
215972
215873
  onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children);
215973
215874
  onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children);
215974
215875
  return;
215975
215876
  }
215976
- if (format & 15360) {
215977
- writePunctuation(getOpeningBracket(format));
215877
+ if (format2 & 15360) {
215878
+ writePunctuation(getOpeningBracket(format2));
215978
215879
  if (isEmpty && children) {
215979
215880
  emitTrailingCommentsOfPosition(
215980
215881
  children.pos,
@@ -215985,33 +215886,33 @@ ${lanes.join("\n")}
215985
215886
  }
215986
215887
  onBeforeEmitNodeArray == null ? void 0 : onBeforeEmitNodeArray(children);
215987
215888
  if (isEmpty) {
215988
- if (format & 1 && !(preserveSourceNewlines && (!parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile)))) {
215889
+ if (format2 & 1 && !(preserveSourceNewlines && (!parentNode || currentSourceFile && rangeIsOnSingleLine(parentNode, currentSourceFile)))) {
215989
215890
  writeLine();
215990
- } else if (format & 256 && !(format & 524288)) {
215891
+ } else if (format2 & 256 && !(format2 & 524288)) {
215991
215892
  writeSpace();
215992
215893
  }
215993
215894
  } else {
215994
- emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, children.hasTrailingComma, children);
215895
+ emitNodeListItems(emit2, parentNode, children, format2, parenthesizerRule, start, count, children.hasTrailingComma, children);
215995
215896
  }
215996
215897
  onAfterEmitNodeArray == null ? void 0 : onAfterEmitNodeArray(children);
215997
- if (format & 15360) {
215898
+ if (format2 & 15360) {
215998
215899
  if (isEmpty && children) {
215999
215900
  emitLeadingCommentsOfPosition(children.end);
216000
215901
  }
216001
- writePunctuation(getClosingBracket(format));
215902
+ writePunctuation(getClosingBracket(format2));
216002
215903
  }
216003
215904
  }
216004
- function emitNodeListItems(emit2, parentNode, children, format, parenthesizerRule, start, count, hasTrailingComma, childrenTextRange) {
216005
- const mayEmitInterveningComments = (format & 262144) === 0;
215905
+ function emitNodeListItems(emit2, parentNode, children, format2, parenthesizerRule, start, count, hasTrailingComma, childrenTextRange) {
215906
+ const mayEmitInterveningComments = (format2 & 262144) === 0;
216006
215907
  let shouldEmitInterveningComments = mayEmitInterveningComments;
216007
- const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start], format);
215908
+ const leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children[start], format2);
216008
215909
  if (leadingLineTerminatorCount) {
216009
215910
  writeLine(leadingLineTerminatorCount);
216010
215911
  shouldEmitInterveningComments = false;
216011
- } else if (format & 256) {
215912
+ } else if (format2 & 256) {
216012
215913
  writeSpace();
216013
215914
  }
216014
- if (format & 128) {
215915
+ if (format2 & 128) {
216015
215916
  increaseIndent();
216016
215917
  }
216017
215918
  const emitListItem = getEmitListItem(emit2, parenthesizerRule);
@@ -216019,36 +215920,36 @@ ${lanes.join("\n")}
216019
215920
  let shouldDecreaseIndentAfterEmit = false;
216020
215921
  for (let i = 0; i < count; i++) {
216021
215922
  const child = children[start + i];
216022
- if (format & 32) {
215923
+ if (format2 & 32) {
216023
215924
  writeLine();
216024
- writeDelimiter(format);
215925
+ writeDelimiter(format2);
216025
215926
  } else if (previousSibling) {
216026
- if (format & 60 && previousSibling.end !== (parentNode ? parentNode.end : -1)) {
215927
+ if (format2 & 60 && previousSibling.end !== (parentNode ? parentNode.end : -1)) {
216027
215928
  const previousSiblingEmitFlags = getEmitFlags(previousSibling);
216028
215929
  if (!(previousSiblingEmitFlags & 2048)) {
216029
215930
  emitLeadingCommentsOfPosition(previousSibling.end);
216030
215931
  }
216031
215932
  }
216032
- writeDelimiter(format);
216033
- const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format);
215933
+ writeDelimiter(format2);
215934
+ const separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format2);
216034
215935
  if (separatingLineTerminatorCount > 0) {
216035
- if ((format & (3 | 128)) === 0) {
215936
+ if ((format2 & (3 | 128)) === 0) {
216036
215937
  increaseIndent();
216037
215938
  shouldDecreaseIndentAfterEmit = true;
216038
215939
  }
216039
- if (shouldEmitInterveningComments && format & 60 && !positionIsSynthesized(child.pos)) {
215940
+ if (shouldEmitInterveningComments && format2 & 60 && !positionIsSynthesized(child.pos)) {
216040
215941
  const commentRange = getCommentRange(child);
216041
215942
  emitTrailingCommentsOfPosition(
216042
215943
  commentRange.pos,
216043
215944
  /*prefixSpace*/
216044
- !!(format & 512),
215945
+ !!(format2 & 512),
216045
215946
  /*forceNoNewline*/
216046
215947
  true
216047
215948
  );
216048
215949
  }
216049
215950
  writeLine(separatingLineTerminatorCount);
216050
215951
  shouldEmitInterveningComments = false;
216051
- } else if (previousSibling && format & 512) {
215952
+ } else if (previousSibling && format2 & 512) {
216052
215953
  writeSpace();
216053
215954
  }
216054
215955
  }
@@ -216068,7 +215969,7 @@ ${lanes.join("\n")}
216068
215969
  }
216069
215970
  const emitFlags = previousSibling ? getEmitFlags(previousSibling) : 0;
216070
215971
  const skipTrailingComments = commentsDisabled || !!(emitFlags & 2048);
216071
- const emitTrailingComma = hasTrailingComma && format & 64 && format & 16;
215972
+ const emitTrailingComma = hasTrailingComma && format2 & 64 && format2 & 16;
216072
215973
  if (emitTrailingComma) {
216073
215974
  if (previousSibling && !skipTrailingComments) {
216074
215975
  emitTokenWithComment(28, previousSibling.end, writePunctuation, previousSibling);
@@ -216076,16 +215977,16 @@ ${lanes.join("\n")}
216076
215977
  writePunctuation(",");
216077
215978
  }
216078
215979
  }
216079
- if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && format & 60 && !skipTrailingComments) {
215980
+ if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && format2 & 60 && !skipTrailingComments) {
216080
215981
  emitLeadingCommentsOfPosition(emitTrailingComma && (childrenTextRange == null ? void 0 : childrenTextRange.end) ? childrenTextRange.end : previousSibling.end);
216081
215982
  }
216082
- if (format & 128) {
215983
+ if (format2 & 128) {
216083
215984
  decreaseIndent();
216084
215985
  }
216085
- const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format, childrenTextRange);
215986
+ const closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children[start + count - 1], format2, childrenTextRange);
216086
215987
  if (closingLineTerminatorCount) {
216087
215988
  writeLine(closingLineTerminatorCount);
216088
- } else if (format & (2097152 | 256)) {
215989
+ } else if (format2 & (2097152 | 256)) {
216089
215990
  writeSpace();
216090
215991
  }
216091
215992
  }
@@ -216201,9 +216102,9 @@ ${lanes.join("\n")}
216201
216102
  decreaseIndent();
216202
216103
  }
216203
216104
  }
216204
- function getLeadingLineTerminatorCount(parentNode, firstChild, format) {
216205
- if (format & 2 || preserveSourceNewlines) {
216206
- if (format & 65536) {
216105
+ function getLeadingLineTerminatorCount(parentNode, firstChild, format2) {
216106
+ if (format2 & 2 || preserveSourceNewlines) {
216107
+ if (format2 & 65536) {
216207
216108
  return 1;
216208
216109
  }
216209
216110
  if (firstChild === void 0) {
@@ -216228,14 +216129,14 @@ ${lanes.join("\n")}
216228
216129
  }
216229
216130
  return rangeStartPositionsAreOnSameLine(parentNode, firstChild, currentSourceFile) ? 0 : 1;
216230
216131
  }
216231
- if (synthesizedNodeStartsOnNewLine(firstChild, format)) {
216132
+ if (synthesizedNodeStartsOnNewLine(firstChild, format2)) {
216232
216133
  return 1;
216233
216134
  }
216234
216135
  }
216235
- return format & 1 ? 1 : 0;
216136
+ return format2 & 1 ? 1 : 0;
216236
216137
  }
216237
- function getSeparatingLineTerminatorCount(previousNode, nextNode, format) {
216238
- if (format & 2 || preserveSourceNewlines) {
216138
+ function getSeparatingLineTerminatorCount(previousNode, nextNode, format2) {
216139
+ if (format2 & 2 || preserveSourceNewlines) {
216239
216140
  if (previousNode === void 0 || nextNode === void 0) {
216240
216141
  return 0;
216241
216142
  }
@@ -216254,18 +216155,18 @@ ${lanes.join("\n")}
216254
216155
  } else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {
216255
216156
  return rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;
216256
216157
  }
216257
- return format & 65536 ? 1 : 0;
216258
- } else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(nextNode, format)) {
216158
+ return format2 & 65536 ? 1 : 0;
216159
+ } else if (synthesizedNodeStartsOnNewLine(previousNode, format2) || synthesizedNodeStartsOnNewLine(nextNode, format2)) {
216259
216160
  return 1;
216260
216161
  }
216261
216162
  } else if (getStartsOnNewLine(nextNode)) {
216262
216163
  return 1;
216263
216164
  }
216264
- return format & 1 ? 1 : 0;
216165
+ return format2 & 1 ? 1 : 0;
216265
216166
  }
216266
- function getClosingLineTerminatorCount(parentNode, lastChild, format, childrenTextRange) {
216267
- if (format & 2 || preserveSourceNewlines) {
216268
- if (format & 65536) {
216167
+ function getClosingLineTerminatorCount(parentNode, lastChild, format2, childrenTextRange) {
216168
+ if (format2 & 2 || preserveSourceNewlines) {
216169
+ if (format2 & 65536) {
216269
216170
  return 1;
216270
216171
  }
216271
216172
  if (lastChild === void 0) {
@@ -216285,11 +216186,11 @@ ${lanes.join("\n")}
216285
216186
  }
216286
216187
  return rangeEndPositionsAreOnSameLine(parentNode, lastChild, currentSourceFile) ? 0 : 1;
216287
216188
  }
216288
- if (synthesizedNodeStartsOnNewLine(lastChild, format)) {
216189
+ if (synthesizedNodeStartsOnNewLine(lastChild, format2)) {
216289
216190
  return 1;
216290
216191
  }
216291
216192
  }
216292
- if (format & 1 && !(format & 131072)) {
216193
+ if (format2 & 1 && !(format2 & 131072)) {
216293
216194
  return 1;
216294
216195
  }
216295
216196
  return 0;
@@ -216336,15 +216237,15 @@ ${lanes.join("\n")}
216336
216237
  writeLine(trailingNewlines);
216337
216238
  }
216338
216239
  }
216339
- function synthesizedNodeStartsOnNewLine(node, format) {
216240
+ function synthesizedNodeStartsOnNewLine(node, format2) {
216340
216241
  if (nodeIsSynthesized(node)) {
216341
216242
  const startsOnNewLine = getStartsOnNewLine(node);
216342
216243
  if (startsOnNewLine === void 0) {
216343
- return (format & 65536) !== 0;
216244
+ return (format2 & 65536) !== 0;
216344
216245
  }
216345
216246
  return startsOnNewLine;
216346
216247
  }
216347
- return (format & 65536) !== 0;
216248
+ return (format2 & 65536) !== 0;
216348
216249
  }
216349
216250
  function getLinesBetweenNodes(parent2, node1, node2) {
216350
216251
  if (getEmitFlags(parent2) & 262144) {
@@ -217342,15 +217243,15 @@ ${lanes.join("\n")}
217342
217243
  ] = ["[", "]"];
217343
217244
  return brackets2;
217344
217245
  }
217345
- function getOpeningBracket(format) {
217246
+ function getOpeningBracket(format2) {
217346
217247
  return brackets[
217347
- format & 15360
217248
+ format2 & 15360
217348
217249
  /* BracketsMask */
217349
217250
  ][0];
217350
217251
  }
217351
- function getClosingBracket(format) {
217252
+ function getClosingBracket(format2) {
217352
217253
  return brackets[
217353
- format & 15360
217254
+ format2 & 15360
217354
217255
  /* BracketsMask */
217355
217256
  ][1];
217356
217257
  }
@@ -225708,7 +225609,7 @@ ${lanes.join("\n")}
225708
225609
  case 13:
225709
225610
  break;
225710
225611
  default:
225711
- if (ch < 127 || !isLineBreak(ch)) {
225612
+ if (ch < 127 || !isLineBreak2(ch)) {
225712
225613
  lineStart = pos;
225713
225614
  continue;
225714
225615
  }
@@ -226853,10 +226754,10 @@ ${lanes.join("\n")}
226853
226754
  let buildOrder;
226854
226755
  let circularDiagnostics;
226855
226756
  for (const root of roots) {
226856
- visit(root);
226757
+ visit2(root);
226857
226758
  }
226858
226759
  return circularDiagnostics ? { buildOrder: buildOrder || emptyArray, circularDiagnostics } : buildOrder || emptyArray;
226859
- function visit(configFileName, inCircularContext) {
226760
+ function visit2(configFileName, inCircularContext) {
226860
226761
  const projPath = toResolvedConfigFilePath(state, configFileName);
226861
226762
  if (permanentMarks.has(projPath)) return;
226862
226763
  if (temporaryMarks.has(projPath)) {
@@ -226876,7 +226777,7 @@ ${lanes.join("\n")}
226876
226777
  if (parsed && parsed.projectReferences) {
226877
226778
  for (const ref of parsed.projectReferences) {
226878
226779
  const resolvedRefPath = resolveProjectName(state, ref.path);
226879
- visit(resolvedRefPath, inCircularContext || ref.circular);
226780
+ visit2(resolvedRefPath, inCircularContext || ref.circular);
226880
226781
  }
226881
226782
  }
226882
226783
  circularityReportStack.pop();
@@ -231467,7 +231368,7 @@ ${lanes.join("\n")}
231467
231368
  ClassificationType2[ClassificationType2["bigintLiteral"] = 25] = "bigintLiteral";
231468
231369
  return ClassificationType2;
231469
231370
  })(ClassificationType || {});
231470
- var scanner = createScanner(
231371
+ var scanner = createScanner2(
231471
231372
  99,
231472
231373
  /*skipTrivia*/
231473
231374
  true
@@ -233779,7 +233680,7 @@ ${lanes.join("\n")}
233779
233680
  let withSemicolon = 0;
233780
233681
  let withoutSemicolon = 0;
233781
233682
  const nStatementsToObserve = 5;
233782
- forEachChild(sourceFile, function visit(node) {
233683
+ forEachChild(sourceFile, function visit2(node) {
233783
233684
  if (syntaxRequiresTrailingSemicolonOrASI(node.kind)) {
233784
233685
  const lastToken = node.getLastToken(sourceFile);
233785
233686
  if ((lastToken == null ? void 0 : lastToken.kind) === 27) {
@@ -233802,7 +233703,7 @@ ${lanes.join("\n")}
233802
233703
  if (withSemicolon + withoutSemicolon >= nStatementsToObserve) {
233803
233704
  return true;
233804
233705
  }
233805
- return forEachChild(node, visit);
233706
+ return forEachChild(node, visit2);
233806
233707
  });
233807
233708
  if (withSemicolon === 0 && withoutSemicolon <= 1) {
233808
233709
  return true;
@@ -234824,7 +234725,7 @@ ${lanes.join("\n")}
234824
234725
  }
234825
234726
  }
234826
234727
  function createClassifier() {
234827
- const scanner2 = createScanner(
234728
+ const scanner2 = createScanner2(
234828
234729
  99,
234829
234730
  /*skipTrivia*/
234830
234731
  false
@@ -235333,14 +235234,14 @@ ${lanes.join("\n")}
235333
235234
  function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) {
235334
235235
  const spanStart = span.start;
235335
235236
  const spanLength = span.length;
235336
- const triviaScanner = createScanner(
235237
+ const triviaScanner = createScanner2(
235337
235238
  99,
235338
235239
  /*skipTrivia*/
235339
235240
  false,
235340
235241
  sourceFile.languageVariant,
235341
235242
  sourceFile.text
235342
235243
  );
235343
- const mergeConflictScanner = createScanner(
235244
+ const mergeConflictScanner = createScanner2(
235344
235245
  99,
235345
235246
  /*skipTrivia*/
235346
235247
  false,
@@ -235636,7 +235537,7 @@ ${lanes.join("\n")}
235636
235537
  function classifyDisabledMergeCode(text, start, end) {
235637
235538
  let i;
235638
235539
  for (i = start; i < end; i++) {
235639
- if (isLineBreak(text.charCodeAt(i))) {
235540
+ if (isLineBreak2(text.charCodeAt(i))) {
235640
235541
  break;
235641
235542
  }
235642
235543
  }
@@ -236914,11 +236815,11 @@ ${lanes.join("\n")}
236914
236815
  }
236915
236816
  return String.fromCharCode(ch).toLowerCase().charCodeAt(0);
236916
236817
  }
236917
- function isDigit2(ch) {
236818
+ function isDigit22(ch) {
236918
236819
  return ch >= 48 && ch <= 57;
236919
236820
  }
236920
236821
  function isWordChar(ch) {
236921
- return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit2(ch) || ch === 95 || ch === 36;
236822
+ return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit22(ch) || ch === 95 || ch === 36;
236922
236823
  }
236923
236824
  function breakPatternIntoTextChunks(pattern) {
236924
236825
  const result = [];
@@ -236970,8 +236871,8 @@ ${lanes.join("\n")}
236970
236871
  const result = [];
236971
236872
  let wordStart = 0;
236972
236873
  for (let i = 1; i < identifier.length; i++) {
236973
- const lastIsDigit = isDigit2(identifier.charCodeAt(i - 1));
236974
- const currentIsDigit = isDigit2(identifier.charCodeAt(i));
236874
+ const lastIsDigit = isDigit22(identifier.charCodeAt(i - 1));
236875
+ const currentIsDigit = isDigit22(identifier.charCodeAt(i));
236975
236876
  const hasTransitionFromLowerToUpper = transitionFromLowerToUpper(identifier, word, i);
236976
236877
  const hasTransitionFromUpperToLower = word && transitionFromUpperToLower(identifier, i, wordStart);
236977
236878
  if (charIsPunctuation(identifier.charCodeAt(i - 1)) || charIsPunctuation(identifier.charCodeAt(i)) || lastIsDigit !== currentIsDigit || hasTransitionFromLowerToUpper || hasTransitionFromUpperToLower) {
@@ -242679,7 +242580,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
242679
242580
  let errors2;
242680
242581
  let permittedJumps = 4;
242681
242582
  let seenLabels;
242682
- visit(nodeToCheck);
242583
+ visit2(nodeToCheck);
242683
242584
  if (rangeFacts & 8) {
242684
242585
  const container = getThisContainer(
242685
242586
  nodeToCheck,
@@ -242693,7 +242594,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
242693
242594
  }
242694
242595
  }
242695
242596
  return errors2;
242696
- function visit(node2) {
242597
+ function visit2(node2) {
242697
242598
  if (errors2) {
242698
242599
  return true;
242699
242600
  }
@@ -242789,7 +242690,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
242789
242690
  case 257: {
242790
242691
  const label = node2.label;
242791
242692
  (seenLabels || (seenLabels = [])).push(label.escapedText);
242792
- forEachChild(node2, visit);
242693
+ forEachChild(node2, visit2);
242793
242694
  seenLabels.pop();
242794
242695
  break;
242795
242696
  }
@@ -242821,7 +242722,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
242821
242722
  }
242822
242723
  break;
242823
242724
  default:
242824
- forEachChild(node2, visit);
242725
+ forEachChild(node2, visit2);
242825
242726
  break;
242826
242727
  }
242827
242728
  permittedJumps = savedPermittedJumps;
@@ -244264,7 +244165,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
244264
244165
  function collectTokens(program, sourceFile, span, collector, cancellationToken) {
244265
244166
  const typeChecker = program.getTypeChecker();
244266
244167
  let inJSXElement = false;
244267
- function visit(node) {
244168
+ function visit2(node) {
244268
244169
  switch (node.kind) {
244269
244170
  case 268:
244270
244171
  case 264:
@@ -244332,10 +244233,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
244332
244233
  }
244333
244234
  }
244334
244235
  }
244335
- forEachChild(node, visit);
244236
+ forEachChild(node, visit2);
244336
244237
  inJSXElement = prevInJSXElement;
244337
244238
  }
244338
- visit(sourceFile);
244239
+ visit2(sourceFile);
244339
244240
  }
244340
244241
  function classifySymbol2(symbol2, meaning) {
244341
244242
  const flags = symbol2.getFlags();
@@ -245077,7 +244978,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245077
244978
  }
245078
244979
  computeNamedDeclarations() {
245079
244980
  const result = createMultiMap();
245080
- this.forEachChild(visit);
244981
+ this.forEachChild(visit2);
245081
244982
  return result;
245082
244983
  function addDeclaration(declaration) {
245083
244984
  const name = getDeclarationName(declaration);
@@ -245096,7 +244997,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245096
244997
  const name = getNonAssignedNameOfDeclaration(declaration);
245097
244998
  return name && (isComputedPropertyName(name) && isPropertyAccessExpression(name.expression) ? name.expression.name.text : isPropertyName(name) ? getNameFromPropertyName(name) : void 0);
245098
244999
  }
245099
- function visit(node) {
245000
+ function visit2(node) {
245100
245001
  switch (node.kind) {
245101
245002
  case 263:
245102
245003
  case 219:
@@ -245115,7 +245016,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245115
245016
  declarations.push(functionDeclaration);
245116
245017
  }
245117
245018
  }
245118
- forEachChild(node, visit);
245019
+ forEachChild(node, visit2);
245119
245020
  break;
245120
245021
  case 264:
245121
245022
  case 232:
@@ -245132,7 +245033,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245132
245033
  case 179:
245133
245034
  case 188:
245134
245035
  addDeclaration(node);
245135
- forEachChild(node, visit);
245036
+ forEachChild(node, visit2);
245136
245037
  break;
245137
245038
  case 170:
245138
245039
  if (!hasSyntacticModifier(
@@ -245147,11 +245048,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245147
245048
  case 209: {
245148
245049
  const decl = node;
245149
245050
  if (isBindingPattern(decl.name)) {
245150
- forEachChild(decl.name, visit);
245051
+ forEachChild(decl.name, visit2);
245151
245052
  break;
245152
245053
  }
245153
245054
  if (decl.initializer) {
245154
- visit(decl.initializer);
245055
+ visit2(decl.initializer);
245155
245056
  }
245156
245057
  }
245157
245058
  // falls through
@@ -245164,9 +245065,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245164
245065
  const exportDeclaration = node;
245165
245066
  if (exportDeclaration.exportClause) {
245166
245067
  if (isNamedExports(exportDeclaration.exportClause)) {
245167
- forEach(exportDeclaration.exportClause.elements, visit);
245068
+ forEach(exportDeclaration.exportClause.elements, visit2);
245168
245069
  } else {
245169
- visit(exportDeclaration.exportClause.name);
245070
+ visit2(exportDeclaration.exportClause.name);
245170
245071
  }
245171
245072
  }
245172
245073
  break;
@@ -245180,7 +245081,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245180
245081
  if (importClause.namedBindings.kind === 275) {
245181
245082
  addDeclaration(importClause.namedBindings);
245182
245083
  } else {
245183
- forEach(importClause.namedBindings.elements, visit);
245084
+ forEach(importClause.namedBindings.elements, visit2);
245184
245085
  }
245185
245086
  }
245186
245087
  }
@@ -245191,7 +245092,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
245191
245092
  }
245192
245093
  // falls through
245193
245094
  default:
245194
- forEachChild(node, visit);
245095
+ forEachChild(node, visit2);
245195
245096
  }
245196
245097
  }
245197
245098
  }
@@ -246150,18 +246051,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
246150
246051
  function getNavigationTree2(fileName) {
246151
246052
  return getNavigationTree(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken);
246152
246053
  }
246153
- function getSemanticClassifications3(fileName, span, format) {
246054
+ function getSemanticClassifications3(fileName, span, format2) {
246154
246055
  synchronizeHostData();
246155
- const responseFormat = format || "original";
246056
+ const responseFormat = format2 || "original";
246156
246057
  if (responseFormat === "2020") {
246157
246058
  return getSemanticClassifications2(program, cancellationToken, getValidSourceFile(fileName), span);
246158
246059
  } else {
246159
246060
  return getSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span);
246160
246061
  }
246161
246062
  }
246162
- function getEncodedSemanticClassifications3(fileName, span, format) {
246063
+ function getEncodedSemanticClassifications3(fileName, span, format2) {
246163
246064
  synchronizeHostData();
246164
- const responseFormat = format || "original";
246065
+ const responseFormat = format2 || "original";
246165
246066
  if (responseFormat === "original") {
246166
246067
  return getEncodedSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span);
246167
246068
  } else {
@@ -249261,7 +249162,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
249261
249162
  const pos = skipTrivia(sourceFile.text, moveRangePastModifiers(functionToConvert).pos);
249262
249163
  changes.insertModifierAt(sourceFile, pos, 134, { suffix: " " });
249263
249164
  for (const returnStatement of returnStatements) {
249264
- forEachChild(returnStatement, function visit(node) {
249165
+ forEachChild(returnStatement, function visit2(node) {
249265
249166
  if (isCallExpression(node)) {
249266
249167
  const newNodes = transformExpression(
249267
249168
  node,
@@ -249275,7 +249176,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
249275
249176
  }
249276
249177
  changes.replaceNodeWithNodes(sourceFile, returnStatement, newNodes);
249277
249178
  } else if (!isFunctionLike(node)) {
249278
- forEachChild(node, visit);
249179
+ forEachChild(node, visit2);
249279
249180
  if (hasFailed()) {
249280
249181
  return true;
249281
249182
  }
@@ -249298,17 +249199,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
249298
249199
  return /* @__PURE__ */ new Set();
249299
249200
  }
249300
249201
  const setOfExpressionsToReturn = /* @__PURE__ */ new Set();
249301
- forEachChild(func.body, function visit(node) {
249202
+ forEachChild(func.body, function visit2(node) {
249302
249203
  if (isPromiseReturningCallExpression(node, checker, "then")) {
249303
249204
  setOfExpressionsToReturn.add(getNodeId(node));
249304
- forEach(node.arguments, visit);
249205
+ forEach(node.arguments, visit2);
249305
249206
  } else if (isPromiseReturningCallExpression(node, checker, "catch") || isPromiseReturningCallExpression(node, checker, "finally")) {
249306
249207
  setOfExpressionsToReturn.add(getNodeId(node));
249307
- forEachChild(node, visit);
249208
+ forEachChild(node, visit2);
249308
249209
  } else if (isPromiseTypedExpression(node, checker)) {
249309
249210
  setOfExpressionsToReturn.add(getNodeId(node));
249310
249211
  } else {
249311
- forEachChild(node, visit);
249212
+ forEachChild(node, visit2);
249312
249213
  }
249313
249214
  });
249314
249215
  return setOfExpressionsToReturn;
@@ -249346,9 +249247,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
249346
249247
  function renameCollidingVarNames(nodeToRename, checker, synthNamesMap) {
249347
249248
  const identsToRenameMap = /* @__PURE__ */ new Map();
249348
249249
  const collidingSymbolMap = createMultiMap();
249349
- forEachChild(nodeToRename, function visit(node) {
249250
+ forEachChild(nodeToRename, function visit2(node) {
249350
249251
  if (!isIdentifier(node)) {
249351
- forEachChild(node, visit);
249252
+ forEachChild(node, visit2);
249352
249253
  return;
249353
249254
  }
249354
249255
  const symbol2 = checker.getSymbolAtLocation(node);
@@ -249851,7 +249752,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
249851
249752
  }
249852
249753
  function transformReturnStatementWithFixablePromiseHandler(transformer, innerRetStmt, hasContinuation, continuationArgName) {
249853
249754
  let innerCbBody = [];
249854
- forEachChild(innerRetStmt, function visit(node) {
249755
+ forEachChild(innerRetStmt, function visit2(node) {
249855
249756
  if (isCallExpression(node)) {
249856
249757
  const temp = transformExpression(node, node, transformer, hasContinuation, continuationArgName);
249857
249758
  innerCbBody = innerCbBody.concat(temp);
@@ -249859,7 +249760,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
249859
249760
  return;
249860
249761
  }
249861
249762
  } else if (!isFunctionLike(node)) {
249862
- forEachChild(node, visit);
249763
+ forEachChild(node, visit2);
249863
249764
  }
249864
249765
  });
249865
249766
  return innerCbBody;
@@ -258726,17 +258627,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
258726
258627
  }
258727
258628
  function tryGetAutoImportableReferenceFromTypeNode(importTypeNode, scriptTarget) {
258728
258629
  let symbols;
258729
- const typeNode = visitNode(importTypeNode, visit, isTypeNode);
258630
+ const typeNode = visitNode(importTypeNode, visit2, isTypeNode);
258730
258631
  if (symbols && typeNode) {
258731
258632
  return { typeNode, symbols };
258732
258633
  }
258733
- function visit(node) {
258634
+ function visit2(node) {
258734
258635
  if (isLiteralImportTypeNode(node) && node.qualifier) {
258735
258636
  const firstIdentifier = getFirstIdentifier(node.qualifier);
258736
258637
  if (!firstIdentifier.symbol) {
258737
258638
  return visitEachChild(
258738
258639
  node,
258739
- visit,
258640
+ visit2,
258740
258641
  /*context*/
258741
258642
  void 0
258742
258643
  );
@@ -258744,12 +258645,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
258744
258645
  const name = getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);
258745
258646
  const qualifier = name !== firstIdentifier.text ? replaceFirstIdentifierOfEntityName(node.qualifier, factory.createIdentifier(name)) : node.qualifier;
258746
258647
  symbols = append(symbols, firstIdentifier.symbol);
258747
- const typeArguments = visitNodes2(node.typeArguments, visit, isTypeNode);
258648
+ const typeArguments = visitNodes2(node.typeArguments, visit2, isTypeNode);
258748
258649
  return factory.createTypeReferenceNode(qualifier, typeArguments);
258749
258650
  }
258750
258651
  return visitEachChild(
258751
258652
  node,
258752
- visit,
258653
+ visit2,
258753
258654
  /*context*/
258754
258655
  void 0
258755
258656
  );
@@ -261095,17 +260996,17 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
261095
260996
  completionNodes[completionNodes.length - 1] = factory.replaceDecoratorsAndModifiers(lastNode, presentDecorators.concat(getModifiers(lastNode) || []));
261096
260997
  }
261097
260998
  }
261098
- const format = 1 | 131072;
260999
+ const format2 = 1 | 131072;
261099
261000
  if (formatContext) {
261100
261001
  insertText = printer.printAndFormatSnippetList(
261101
- format,
261002
+ format2,
261102
261003
  factory.createNodeArray(completionNodes),
261103
261004
  sourceFile,
261104
261005
  formatContext
261105
261006
  );
261106
261007
  } else {
261107
261008
  insertText = printer.printSnippetList(
261108
- format,
261009
+ format2,
261109
261010
  factory.createNodeArray(completionNodes),
261110
261011
  sourceFile
261111
261012
  );
@@ -261339,20 +261240,20 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
261339
261240
  write();
261340
261241
  }
261341
261242
  }
261342
- function printSnippetList(format, list, sourceFile) {
261343
- const unescaped = printUnescapedSnippetList(format, list, sourceFile);
261243
+ function printSnippetList(format2, list, sourceFile) {
261244
+ const unescaped = printUnescapedSnippetList(format2, list, sourceFile);
261344
261245
  return escapes ? ts_textChanges_exports.applyChanges(unescaped, escapes) : unescaped;
261345
261246
  }
261346
- function printUnescapedSnippetList(format, list, sourceFile) {
261247
+ function printUnescapedSnippetList(format2, list, sourceFile) {
261347
261248
  escapes = void 0;
261348
261249
  writer.clear();
261349
- printer.writeList(format, list, sourceFile, writer);
261250
+ printer.writeList(format2, list, sourceFile, writer);
261350
261251
  return writer.getText();
261351
261252
  }
261352
- function printAndFormatSnippetList(format, list, sourceFile, formatContext) {
261253
+ function printAndFormatSnippetList(format2, list, sourceFile, formatContext) {
261353
261254
  const syntheticFile = {
261354
261255
  text: printUnescapedSnippetList(
261355
- format,
261256
+ format2,
261356
261257
  list,
261357
261258
  sourceFile
261358
261259
  ),
@@ -269537,7 +269438,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
269537
269438
  return ts_textChanges_exports.ChangeTracker.with(
269538
269439
  { host, formatContext, preferences },
269539
269440
  (changeTracker) => {
269540
- const parsed = contents.map((c) => parse3(sourceFile, c));
269441
+ const parsed = contents.map((c) => parse5(sourceFile, c));
269541
269442
  const flattenedLocations = focusLocations && flatten(focusLocations);
269542
269443
  for (const nodes of parsed) {
269543
269444
  placeNodeGroup(
@@ -269550,7 +269451,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
269550
269451
  }
269551
269452
  );
269552
269453
  }
269553
- function parse3(sourceFile, content) {
269454
+ function parse5(sourceFile, content) {
269554
269455
  const nodeKinds = [
269555
269456
  {
269556
269457
  parse: () => createSourceFile(
@@ -269854,7 +269755,7 @@ ${content}
269854
269755
  };
269855
269756
  }
269856
269757
  function groupByNewlineContiguous(sourceFile, decls) {
269857
- const scanner2 = createScanner(
269758
+ const scanner2 = createScanner2(
269858
269759
  sourceFile.languageVersion,
269859
269760
  /*skipTrivia*/
269860
269761
  false,
@@ -272884,7 +272785,7 @@ ${content}
272884
272785
  /*stopAfterLineBreak*/
272885
272786
  true
272886
272787
  );
272887
- return newEnd !== end && (trailingTriviaOption === 2 || isLineBreak(sourceFile.text.charCodeAt(newEnd - 1))) ? newEnd : end;
272788
+ return newEnd !== end && (trailingTriviaOption === 2 || isLineBreak2(sourceFile.text.charCodeAt(newEnd - 1))) ? newEnd : end;
272888
272789
  }
272889
272790
  function isSeparator(node, candidate) {
272890
272791
  return !!candidate && !!node.parent && (candidate.kind === 28 || candidate.kind === 27 && node.parent.kind === 211);
@@ -273016,7 +272917,7 @@ ${content}
273016
272917
  const pos = getInsertionPositionAtSourceFileTop(sourceFile);
273017
272918
  const options = {
273018
272919
  prefix: pos === 0 ? void 0 : this.newLineCharacter,
273019
- suffix: (isLineBreak(sourceFile.text.charCodeAt(pos)) ? "" : this.newLineCharacter) + (blankLineBetween ? this.newLineCharacter : "")
272920
+ suffix: (isLineBreak2(sourceFile.text.charCodeAt(pos)) ? "" : this.newLineCharacter) + (blankLineBetween ? this.newLineCharacter : "")
273020
272921
  };
273021
272922
  if (isArray(insert)) {
273022
272923
  this.insertNodesAt(sourceFile, pos, insert, options);
@@ -273189,7 +273090,7 @@ ${content}
273189
273090
  insertNodeAtEndOfScope(sourceFile, scope, newNode) {
273190
273091
  const pos = getAdjustedStartPosition(sourceFile, scope.getLastToken(), {});
273191
273092
  this.insertNodeAt(sourceFile, pos, newNode, {
273192
- prefix: isLineBreak(sourceFile.text.charCodeAt(scope.getLastToken().pos)) ? this.newLineCharacter : this.newLineCharacter + this.newLineCharacter,
273093
+ prefix: isLineBreak2(sourceFile.text.charCodeAt(scope.getLastToken().pos)) ? this.newLineCharacter : this.newLineCharacter + this.newLineCharacter,
273193
273094
  suffix: this.newLineCharacter
273194
273095
  });
273195
273096
  }
@@ -273404,7 +273305,7 @@ ${options.prefix}` : "\n" : options.prefix
273404
273305
  /*stopAtComments*/
273405
273306
  false
273406
273307
  );
273407
- while (insertPos !== end && isLineBreak(sourceFile.text.charCodeAt(insertPos - 1))) {
273308
+ while (insertPos !== end && isLineBreak2(sourceFile.text.charCodeAt(insertPos - 1))) {
273408
273309
  insertPos--;
273409
273310
  }
273410
273311
  this.replaceRange(sourceFile, createRange(insertPos), newNode, { indentation, prefix: this.newLineCharacter });
@@ -273547,9 +273448,9 @@ ${options.prefix}` : "\n" : options.prefix
273547
273448
  true
273548
273449
  );
273549
273450
  if (positionsAreOnSameLine(prevToken.getStart(sourceFile), token.getStart(sourceFile), sourceFile)) {
273550
- return isLineBreak(sourceFile.text.charCodeAt(pos - 1)) ? pos - 1 : pos;
273451
+ return isLineBreak2(sourceFile.text.charCodeAt(pos - 1)) ? pos - 1 : pos;
273551
273452
  }
273552
- if (isLineBreak(sourceFile.text.charCodeAt(pos))) {
273453
+ if (isLineBreak2(sourceFile.text.charCodeAt(pos))) {
273553
273454
  return pos;
273554
273455
  }
273555
273456
  }
@@ -273618,8 +273519,8 @@ ${options.prefix}` : "\n" : options.prefix
273618
273519
  return change.text;
273619
273520
  }
273620
273521
  const { options = {}, range: { pos } } = change;
273621
- const format = (n) => getFormattedTextOfNode(n, targetSourceFile, sourceFile, pos, options, newLineCharacter, formatContext, validate2);
273622
- const text = change.kind === 2 ? change.nodes.map((n) => removeSuffix(format(n), newLineCharacter)).join(((_a3 = change.options) == null ? void 0 : _a3.joiner) || newLineCharacter) : format(change.node);
273522
+ const format2 = (n) => getFormattedTextOfNode(n, targetSourceFile, sourceFile, pos, options, newLineCharacter, formatContext, validate2);
273523
+ const text = change.kind === 2 ? change.nodes.map((n) => removeSuffix(format2(n), newLineCharacter)).join(((_a3 = change.options) == null ? void 0 : _a3.joiner) || newLineCharacter) : format2(change.node);
273623
273524
  const noIndent = options.indentation !== void 0 || getLineStartPositionForPosition(pos, targetSourceFile) === pos ? text : text.replace(/^\s+/, "");
273624
273525
  return (options.prefix || "") + noIndent + (!options.suffix || endsWith(noIndent, options.suffix) ? "" : options.suffix);
273625
273526
  }
@@ -273949,7 +273850,7 @@ ${options.prefix}` : "\n" : options.prefix
273949
273850
  function advancePastLineBreak() {
273950
273851
  if (position < text.length) {
273951
273852
  const charCode = text.charCodeAt(position);
273952
- if (isLineBreak(charCode)) {
273853
+ if (isLineBreak2(charCode)) {
273953
273854
  position++;
273954
273855
  if (position < text.length && charCode === 13 && text.charCodeAt(position) === 10) {
273955
273856
  position++;
@@ -274227,14 +274128,14 @@ ${options.prefix}` : "\n" : options.prefix
274227
274128
  return false;
274228
274129
  }
274229
274130
  };
274230
- var standardScanner = createScanner(
274131
+ var standardScanner = createScanner2(
274231
274132
  99,
274232
274133
  /*skipTrivia*/
274233
274134
  false,
274234
274135
  0
274235
274136
  /* Standard */
274236
274137
  );
274237
- var jsxScanner = createScanner(
274138
+ var jsxScanner = createScanner2(
274238
274139
  99,
274239
274140
  /*skipTrivia*/
274240
274141
  false,
@@ -276453,7 +276354,7 @@ ${options.prefix}` : "\n" : options.prefix
276453
276354
  while (isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(endOfFormatSpan))) {
276454
276355
  endOfFormatSpan--;
276455
276356
  }
276456
- if (isLineBreak(sourceFile.text.charCodeAt(endOfFormatSpan))) {
276357
+ if (isLineBreak2(sourceFile.text.charCodeAt(endOfFormatSpan))) {
276457
276358
  endOfFormatSpan--;
276458
276359
  }
276459
276360
  const span = {
@@ -278188,7 +278089,7 @@ ${options.prefix}` : "\n" : options.prefix
278188
278089
  BuilderProgramKind: () => BuilderProgramKind,
278189
278090
  BuilderState: () => BuilderState,
278190
278091
  CallHierarchy: () => ts_CallHierarchy_exports,
278191
- CharacterCodes: () => CharacterCodes,
278092
+ CharacterCodes: () => CharacterCodes2,
278192
278093
  CheckFlags: () => CheckFlags,
278193
278094
  CheckMode: () => CheckMode,
278194
278095
  ClassificationType: () => ClassificationType,
@@ -278315,7 +278216,7 @@ ${options.prefix}` : "\n" : options.prefix
278315
278216
  SymbolDisplayPartKind: () => SymbolDisplayPartKind,
278316
278217
  SymbolFlags: () => SymbolFlags,
278317
278218
  SymbolFormatFlags: () => SymbolFormatFlags,
278318
- SyntaxKind: () => SyntaxKind,
278219
+ SyntaxKind: () => SyntaxKind2,
278319
278220
  Ternary: () => Ternary,
278320
278221
  ThrottledCancellationToken: () => ThrottledCancellationToken,
278321
278222
  TokenClass: () => TokenClass,
@@ -278585,7 +278486,7 @@ ${options.prefix}` : "\n" : options.prefix
278585
278486
  createRedirectedBuilderProgram: () => createRedirectedBuilderProgram,
278586
278487
  createResolutionCache: () => createResolutionCache,
278587
278488
  createRuntimeTypeSerializer: () => createRuntimeTypeSerializer,
278588
- createScanner: () => createScanner,
278489
+ createScanner: () => createScanner2,
278589
278490
  createSemanticDiagnosticsBuilderProgram: () => createSemanticDiagnosticsBuilderProgram,
278590
278491
  createSet: () => createSet,
278591
278492
  createSolutionBuilder: () => createSolutionBuilder,
@@ -279668,7 +279569,7 @@ ${options.prefix}` : "\n" : options.prefix
279668
279569
  isLateVisibilityPaintedStatement: () => isLateVisibilityPaintedStatement,
279669
279570
  isLeftHandSideExpression: () => isLeftHandSideExpression,
279670
279571
  isLet: () => isLet,
279671
- isLineBreak: () => isLineBreak,
279572
+ isLineBreak: () => isLineBreak2,
279672
279573
  isLiteralComputedPropertyDeclarationName: () => isLiteralComputedPropertyDeclarationName,
279673
279574
  isLiteralExpression: () => isLiteralExpression,
279674
279575
  isLiteralExpressionOfObject: () => isLiteralExpressionOfObject,
@@ -290424,8 +290325,8 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
290424
290325
  }
290425
290326
  getEncodedSemanticClassifications(args2) {
290426
290327
  const { file: file2, project } = this.getFileAndProject(args2);
290427
- const format = args2.format === "2020" ? "2020" : "original";
290428
- return project.getLanguageService().getEncodedSemanticClassifications(file2, args2, format);
290328
+ const format2 = args2.format === "2020" ? "2020" : "original";
290329
+ return project.getLanguageService().getEncodedSemanticClassifications(file2, args2, format2);
290429
290330
  }
290430
290331
  getProject(projectFileName) {
290431
290332
  return projectFileName === void 0 ? void 0 : this.projectService.findProject(projectFileName);
@@ -300747,7 +300648,7 @@ var require_parse2 = __commonJS({
300747
300648
  }
300748
300649
  return { risky: false };
300749
300650
  };
300750
- var parse3 = (input, options) => {
300651
+ var parse5 = (input, options) => {
300751
300652
  if (typeof input !== "string") {
300752
300653
  throw new TypeError("Expected a string");
300753
300654
  }
@@ -300917,7 +300818,7 @@ var require_parse2 = __commonJS({
300917
300818
  output = token.close = `)$))${extglobStar}`;
300918
300819
  }
300919
300820
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
300920
- const expression = parse3(rest, { ...options, fastpaths: false }).output;
300821
+ const expression = parse5(rest, { ...options, fastpaths: false }).output;
300921
300822
  output = token.close = `)${expression})${extglobStar})`;
300922
300823
  }
300923
300824
  if (token.prev.type === "bos") {
@@ -301439,7 +301340,7 @@ var require_parse2 = __commonJS({
301439
301340
  }
301440
301341
  return state;
301441
301342
  };
301442
- parse3.fastpaths = (input, options) => {
301343
+ parse5.fastpaths = (input, options) => {
301443
301344
  const opts = { ...options };
301444
301345
  const max2 = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
301445
301346
  const len = input.length;
@@ -301504,7 +301405,7 @@ var require_parse2 = __commonJS({
301504
301405
  }
301505
301406
  return source;
301506
301407
  };
301507
- module.exports = parse3;
301408
+ module.exports = parse5;
301508
301409
  }
301509
301410
  });
301510
301411
 
@@ -301513,7 +301414,7 @@ var require_picomatch = __commonJS({
301513
301414
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/picomatch/lib/picomatch.js"(exports, module) {
301514
301415
  "use strict";
301515
301416
  var scan = require_scan();
301516
- var parse3 = require_parse2();
301417
+ var parse5 = require_parse2();
301517
301418
  var utils = require_utils3();
301518
301419
  var constants2 = require_constants4();
301519
301420
  var isObject2 = (val) => val && typeof val === "object" && !Array.isArray(val);
@@ -301578,11 +301479,11 @@ var require_picomatch = __commonJS({
301578
301479
  return { isMatch: false, output: "" };
301579
301480
  }
301580
301481
  const opts = options || {};
301581
- const format = opts.format || (posix ? utils.toPosixSlashes : null);
301482
+ const format2 = opts.format || (posix ? utils.toPosixSlashes : null);
301582
301483
  let match = input === glob;
301583
- let output = match && format ? format(input) : input;
301484
+ let output = match && format2 ? format2(input) : input;
301584
301485
  if (match === false) {
301585
- output = format ? format(input) : input;
301486
+ output = format2 ? format2(input) : input;
301586
301487
  match = output === glob;
301587
301488
  }
301588
301489
  if (match === false || opts.capture === true) {
@@ -301601,7 +301502,7 @@ var require_picomatch = __commonJS({
301601
301502
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
301602
301503
  picomatch.parse = (pattern, options) => {
301603
301504
  if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
301604
- return parse3(pattern, { ...options, fastpaths: false });
301505
+ return parse5(pattern, { ...options, fastpaths: false });
301605
301506
  };
301606
301507
  picomatch.scan = (input, options) => scan(input, options);
301607
301508
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -301627,10 +301528,10 @@ var require_picomatch = __commonJS({
301627
301528
  }
301628
301529
  let parsed = { negated: false, fastpaths: true };
301629
301530
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
301630
- parsed.output = parse3.fastpaths(input, options);
301531
+ parsed.output = parse5.fastpaths(input, options);
301631
301532
  }
301632
301533
  if (!parsed.output) {
301633
- parsed = parse3(input, options);
301534
+ parsed = parse5(input, options);
301634
301535
  }
301635
301536
  return picomatch.compileRe(parsed, options, returnOutput, returnState);
301636
301537
  };
@@ -302412,8 +302313,8 @@ var require_dist3 = __commonJS({
302412
302313
  const matcher = (0, picomatch.default)(processed.match, matchOptions);
302413
302314
  const ignore = (0, picomatch.default)(processed.ignore, matchOptions);
302414
302315
  const partialMatcher = getPartialMatcher(processed.match, matchOptions);
302415
- const format = buildFormat(cwd2, root, absolute);
302416
- const excludeFormatter = absolute ? format : buildFormat(cwd2, root, true);
302316
+ const format2 = buildFormat(cwd2, root, absolute);
302317
+ const excludeFormatter = absolute ? format2 : buildFormat(cwd2, root, true);
302417
302318
  const excludePredicate = (_, p) => {
302418
302319
  const relativePath = excludeFormatter(p, true);
302419
302320
  return relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
@@ -302422,12 +302323,12 @@ var require_dist3 = __commonJS({
302422
302323
  if (options.deep !== void 0) maxDepth = Math.round(options.deep - props.depthOffset);
302423
302324
  const crawler = new fdir.fdir({
302424
302325
  filters: [debug ? (p, isDirectory) => {
302425
- const path2 = format(p, isDirectory);
302326
+ const path2 = format2(p, isDirectory);
302426
302327
  const matches = matcher(path2) && !ignore(path2);
302427
302328
  if (matches) log(`matched ${path2}`);
302428
302329
  return matches;
302429
302330
  } : (p, isDirectory) => {
302430
- const path2 = format(p, isDirectory);
302331
+ const path2 = format2(p, isDirectory);
302431
302332
  return matcher(path2) && !ignore(path2);
302432
302333
  }],
302433
302334
  exclude: debug ? (_, p) => {
@@ -304717,7 +304618,7 @@ var require_errors4 = __commonJS({
304717
304618
  exports.CLIParseError = CLIParseError;
304718
304619
  var InvalidArgsSpecError = class extends CLIParseError {
304719
304620
  args;
304720
- constructor({ args: args2, exit, parse: parse3, reason }) {
304621
+ constructor({ args: args2, exit, parse: parse5, reason }) {
304721
304622
  let message = "Invalid argument spec";
304722
304623
  if (reason) {
304723
304624
  message += `: ${reason}`;
@@ -304728,14 +304629,14 @@ var require_errors4 = __commonJS({
304728
304629
  message += `:
304729
304630
  ${list}`;
304730
304631
  }
304731
- super({ exit: cache_1.default.getInstance().get("exitCodes")?.invalidArgsSpec ?? exit, message, parse: parse3 });
304632
+ super({ exit: cache_1.default.getInstance().get("exitCodes")?.invalidArgsSpec ?? exit, message, parse: parse5 });
304732
304633
  this.args = args2;
304733
304634
  }
304734
304635
  };
304735
304636
  exports.InvalidArgsSpecError = InvalidArgsSpecError;
304736
304637
  var RequiredArgsError = class extends CLIParseError {
304737
304638
  args;
304738
- constructor({ args: args2, exit, flagsWithMultiple, parse: parse3 }) {
304639
+ constructor({ args: args2, exit, flagsWithMultiple, parse: parse5 }) {
304739
304640
  let message = `Missing ${args2.length} required arg${args2.length === 1 ? "" : "s"}`;
304740
304641
  const namedArgs = args2.filter((a) => a.name);
304741
304642
  if (namedArgs.length > 0) {
@@ -304753,7 +304654,7 @@ ${list}`;
304753
304654
  Note: ${flags} allow${flagsWithMultiple.length === 1 ? "s" : ""} multiple values. Because of this you need to provide all arguments before providing ${flagsWithMultiple.length === 1 ? "that flag" : "those flags"}.`;
304754
304655
  message += '\nAlternatively, you can use "--" to signify the end of the flags and the beginning of arguments.';
304755
304656
  }
304756
- super({ exit: cache_1.default.getInstance().get("exitCodes")?.requiredArgs ?? exit, message, parse: parse3 });
304657
+ super({ exit: cache_1.default.getInstance().get("exitCodes")?.requiredArgs ?? exit, message, parse: parse5 });
304757
304658
  this.args = args2;
304758
304659
  this.showHelp = true;
304759
304660
  }
@@ -304761,9 +304662,9 @@ Note: ${flags} allow${flagsWithMultiple.length === 1 ? "s" : ""} multiple values
304761
304662
  exports.RequiredArgsError = RequiredArgsError;
304762
304663
  var UnexpectedArgsError = class extends CLIParseError {
304763
304664
  args;
304764
- constructor({ args: args2, exit, parse: parse3 }) {
304665
+ constructor({ args: args2, exit, parse: parse5 }) {
304765
304666
  const message = `Unexpected argument${args2.length === 1 ? "" : "s"}: ${args2.join(", ")}`;
304766
- super({ exit: cache_1.default.getInstance().get("exitCodes")?.unexpectedArgs ?? exit, message, parse: parse3 });
304667
+ super({ exit: cache_1.default.getInstance().get("exitCodes")?.unexpectedArgs ?? exit, message, parse: parse5 });
304767
304668
  this.args = args2;
304768
304669
  this.showHelp = true;
304769
304670
  }
@@ -304771,9 +304672,9 @@ Note: ${flags} allow${flagsWithMultiple.length === 1 ? "s" : ""} multiple values
304771
304672
  exports.UnexpectedArgsError = UnexpectedArgsError;
304772
304673
  var NonExistentFlagsError = class extends CLIParseError {
304773
304674
  flags;
304774
- constructor({ exit, flags, parse: parse3 }) {
304675
+ constructor({ exit, flags, parse: parse5 }) {
304775
304676
  const message = `Nonexistent flag${flags.length === 1 ? "" : "s"}: ${flags.join(", ")}`;
304776
- super({ exit: cache_1.default.getInstance().get("exitCodes")?.nonExistentFlag ?? exit, message, parse: parse3 });
304677
+ super({ exit: cache_1.default.getInstance().get("exitCodes")?.nonExistentFlag ?? exit, message, parse: parse5 });
304777
304678
  this.flags = flags;
304778
304679
  this.showHelp = true;
304779
304680
  }
@@ -304794,24 +304695,24 @@ Note: ${flags} allow${flagsWithMultiple.length === 1 ? "s" : ""} multiple values
304794
304695
  };
304795
304696
  exports.ArgInvalidOptionError = ArgInvalidOptionError;
304796
304697
  var FailedFlagValidationError = class extends CLIParseError {
304797
- constructor({ exit, failed, parse: parse3 }) {
304698
+ constructor({ exit, failed, parse: parse5 }) {
304798
304699
  const reasons = failed.map((r) => r.reason);
304799
304700
  const deduped = (0, util_1.uniq)(reasons);
304800
304701
  const errString = deduped.length === 1 ? "error" : "errors";
304801
304702
  const message = `The following ${errString} occurred:
304802
304703
  ${(0, theme_1.colorize)("dim", deduped.join("\n "))}`;
304803
- super({ exit: cache_1.default.getInstance().get("exitCodes")?.failedFlagValidation ?? exit, message, parse: parse3 });
304704
+ super({ exit: cache_1.default.getInstance().get("exitCodes")?.failedFlagValidation ?? exit, message, parse: parse5 });
304804
304705
  }
304805
304706
  };
304806
304707
  exports.FailedFlagValidationError = FailedFlagValidationError;
304807
304708
  var ViolatedFlagConstraintError = class extends CLIParseError {
304808
- constructor({ exit, failed, parse: parse3 }) {
304709
+ constructor({ exit, failed, parse: parse5 }) {
304809
304710
  const reasons = failed.map((r) => r.reason);
304810
304711
  const deduped = (0, util_1.uniq)(reasons);
304811
304712
  const errString = deduped.length === 1 ? "error" : "errors";
304812
304713
  const message = `The following ${errString} occurred:
304813
304714
  ${(0, theme_1.colorize)("dim", deduped.join("\n"))}`;
304814
- super({ exit: cache_1.default.getInstance().get("exitCodes")?.violatedFlagConstraint ?? exit, message, parse: parse3 });
304715
+ super({ exit: cache_1.default.getInstance().get("exitCodes")?.violatedFlagConstraint ?? exit, message, parse: parse5 });
304815
304716
  }
304816
304717
  };
304817
304718
  exports.ViolatedFlagConstraintError = ViolatedFlagConstraintError;
@@ -305305,25 +305206,25 @@ var require_validate3 = __commonJS({
305305
305206
  exports.validate = validate2;
305306
305207
  var util_1 = require_util3();
305307
305208
  var errors_1 = require_errors4();
305308
- async function validate2(parse3) {
305209
+ async function validate2(parse5) {
305309
305210
  let cachedResolvedFlags;
305310
305211
  function validateArgs() {
305311
- const argEntries = Object.entries(parse3.input.args);
305212
+ const argEntries = Object.entries(parse5.input.args);
305312
305213
  const variadicIndex = argEntries.findIndex(([, arg]) => arg.multiple);
305313
305214
  if (variadicIndex !== -1) {
305314
305215
  const secondVariadic = argEntries.findIndex(([, arg], i) => i > variadicIndex && arg.multiple);
305315
305216
  if (secondVariadic !== -1) {
305316
305217
  throw new errors_1.InvalidArgsSpecError({
305317
- args: parse3.input.args,
305318
- parse: parse3,
305218
+ args: parse5.input.args,
305219
+ parse: parse5,
305319
305220
  reason: "only one variadic arg (multiple: true) is allowed"
305320
305221
  });
305321
305222
  }
305322
305223
  for (let i = 0; i < variadicIndex; i++) {
305323
305224
  if (!argEntries[i][1].required) {
305324
305225
  throw new errors_1.InvalidArgsSpecError({
305325
- args: parse3.input.args,
305326
- parse: parse3,
305226
+ args: parse5.input.args,
305227
+ parse: parse5,
305327
305228
  reason: `args before a variadic arg must be required, but "${argEntries[i][0]}" is optional`
305328
305229
  });
305329
305230
  }
@@ -305331,56 +305232,56 @@ var require_validate3 = __commonJS({
305331
305232
  for (let i = variadicIndex + 1; i < argEntries.length; i++) {
305332
305233
  if (!argEntries[i][1].required) {
305333
305234
  throw new errors_1.InvalidArgsSpecError({
305334
- args: parse3.input.args,
305335
- parse: parse3,
305235
+ args: parse5.input.args,
305236
+ parse: parse5,
305336
305237
  reason: `args after a variadic arg must be required, but "${argEntries[i][0]}" is optional`
305337
305238
  });
305338
305239
  }
305339
305240
  }
305340
305241
  }
305341
305242
  const variadicArgFound = variadicIndex !== -1;
305342
- if (parse3.output.nonExistentFlags?.length > 0) {
305243
+ if (parse5.output.nonExistentFlags?.length > 0) {
305343
305244
  throw new errors_1.NonExistentFlagsError({
305344
- flags: parse3.output.nonExistentFlags,
305345
- parse: parse3
305245
+ flags: parse5.output.nonExistentFlags,
305246
+ parse: parse5
305346
305247
  });
305347
305248
  }
305348
- const maxArgs = Object.keys(parse3.input.args).length;
305349
- const hasVariadicArg = Object.values(parse3.input.args).some((arg) => arg.multiple);
305350
- if (parse3.input.strict && !hasVariadicArg && parse3.output.argv.length > maxArgs) {
305351
- const extras = parse3.output.argv.slice(maxArgs);
305249
+ const maxArgs = Object.keys(parse5.input.args).length;
305250
+ const hasVariadicArg = Object.values(parse5.input.args).some((arg) => arg.multiple);
305251
+ if (parse5.input.strict && !hasVariadicArg && parse5.output.argv.length > maxArgs) {
305252
+ const extras = parse5.output.argv.slice(maxArgs);
305352
305253
  throw new errors_1.UnexpectedArgsError({
305353
305254
  args: extras,
305354
- parse: parse3
305255
+ parse: parse5
305355
305256
  });
305356
305257
  }
305357
305258
  const missingRequiredArgs = [];
305358
305259
  let hasOptional = false;
305359
- for (const [name, arg] of Object.entries(parse3.input.args)) {
305260
+ for (const [name, arg] of Object.entries(parse5.input.args)) {
305360
305261
  if (!arg.required) {
305361
305262
  hasOptional = true;
305362
305263
  } else if (hasOptional && !variadicArgFound) {
305363
305264
  throw new errors_1.InvalidArgsSpecError({
305364
- args: parse3.input.args,
305365
- parse: parse3
305265
+ args: parse5.input.args,
305266
+ parse: parse5
305366
305267
  });
305367
305268
  }
305368
- if (arg.required && parse3.output.args[name] === void 0) {
305269
+ if (arg.required && parse5.output.args[name] === void 0) {
305369
305270
  missingRequiredArgs.push(arg);
305370
305271
  }
305371
305272
  }
305372
305273
  if (missingRequiredArgs.length > 0) {
305373
- const flagsWithMultiple = Object.entries(parse3.input.flags).filter(([_, flagDef]) => flagDef.type === "option" && Boolean(flagDef.multiple)).map(([name]) => name);
305274
+ const flagsWithMultiple = Object.entries(parse5.input.flags).filter(([_, flagDef]) => flagDef.type === "option" && Boolean(flagDef.multiple)).map(([name]) => name);
305374
305275
  throw new errors_1.RequiredArgsError({
305375
305276
  args: missingRequiredArgs,
305376
305277
  flagsWithMultiple,
305377
- parse: parse3
305278
+ parse: parse5
305378
305279
  });
305379
305280
  }
305380
305281
  }
305381
305282
  async function validateFlags() {
305382
- const promises = Object.entries(parse3.input.flags).flatMap(([name, flag]) => {
305383
- if (parse3.output.flags[name] !== void 0) {
305283
+ const promises = Object.entries(parse5.input.flags).flatMap(([name, flag]) => {
305284
+ if (parse5.output.flags[name] !== void 0) {
305384
305285
  return [
305385
305286
  ...flag.relationships ? validateRelationships(name, flag) : [],
305386
305287
  ...flag.dependsOn ? [validateDependsOn(name, flag.dependsOn)] : [],
@@ -305405,17 +305306,17 @@ var require_validate3 = __commonJS({
305405
305306
  if (failed.length > 0)
305406
305307
  throw new errors_1.FailedFlagValidationError({
305407
305308
  failed,
305408
- parse: parse3
305309
+ parse: parse5
305409
305310
  });
305410
305311
  }
305411
305312
  function validateConstraints() {
305412
- if (parse3.input.constraints) {
305413
- const validations = parse3.input.constraints.map((c) => c._evaluateAgainstFlags(parse3.output.flags));
305313
+ if (parse5.input.constraints) {
305314
+ const validations = parse5.input.constraints.map((c) => c._evaluateAgainstFlags(parse5.output.flags));
305414
305315
  const failed = validations.filter((v) => v.status === "failed");
305415
305316
  if (failed.length > 0) {
305416
305317
  throw new errors_1.ViolatedFlagConstraintError({
305417
305318
  failed,
305418
- parse: parse3
305319
+ parse: parse5
305419
305320
  });
305420
305321
  }
305421
305322
  }
@@ -305425,10 +305326,10 @@ var require_validate3 = __commonJS({
305425
305326
  return cachedResolvedFlags;
305426
305327
  const promises = flags.map(async (flag) => {
305427
305328
  if (typeof flag === "string") {
305428
- return [flag, parse3.output.flags[flag]];
305329
+ return [flag, parse5.output.flags[flag]];
305429
305330
  }
305430
- const result = await flag.when(parse3.output.flags);
305431
- return result ? [flag.name, parse3.output.flags[flag.name]] : null;
305331
+ const result = await flag.when(parse5.output.flags);
305332
+ return result ? [flag.name, parse5.output.flags[flag.name]] : null;
305432
305333
  });
305433
305334
  const resolved = await Promise.all(promises);
305434
305335
  cachedResolvedFlags = Object.fromEntries(resolved.filter((r) => r !== null));
@@ -305437,7 +305338,7 @@ var require_validate3 = __commonJS({
305437
305338
  const getPresentFlags = (flags) => Object.keys(flags).filter((key) => key !== void 0);
305438
305339
  function validateExactlyOneAcrossFlags(flag) {
305439
305340
  const base = { name: flag.name, validationFn: "validateExactlyOneAcrossFlags" };
305440
- const intersection2 = Object.entries(parse3.input.flags).map((entry) => entry[0]).filter((flagName) => parse3.output.flags[flagName] !== void 0).filter((flagName) => flag.exactlyOne && flag.exactlyOne.includes(flagName));
305341
+ const intersection2 = Object.entries(parse5.input.flags).map((entry) => entry[0]).filter((flagName) => parse5.output.flags[flagName] !== void 0).filter((flagName) => flag.exactlyOne && flag.exactlyOne.includes(flagName));
305441
305342
  if (intersection2.length === 0) {
305442
305343
  const deduped = (0, util_1.uniq)(flag.exactlyOne?.map((flag2) => `--${flag2}`) ?? []).join(", ");
305443
305344
  const reason = `Exactly one of the following must be provided: ${deduped}`;
@@ -305447,7 +305348,7 @@ var require_validate3 = __commonJS({
305447
305348
  }
305448
305349
  function validateAtLeastOneAcrossFlags(flag) {
305449
305350
  const base = { name: flag.name, validationFn: "validateAtLeastOneAcrossFlags" };
305450
- const intersection2 = Object.entries(parse3.input.flags).map((entry) => entry[0]).filter((flagName) => parse3.output.flags[flagName] !== void 0).filter((flagName) => flag.atLeastOne && flag.atLeastOne.includes(flagName));
305351
+ const intersection2 = Object.entries(parse5.input.flags).map((entry) => entry[0]).filter((flagName) => parse5.output.flags[flagName] !== void 0).filter((flagName) => flag.atLeastOne && flag.atLeastOne.includes(flagName));
305451
305352
  if (intersection2.length === 0) {
305452
305353
  const deduped = (0, util_1.uniq)(flag.atLeastOne?.map((flag2) => `--${flag2}`) ?? []).join(", ");
305453
305354
  const reason = `At least one of the following must be provided: ${deduped}`;
@@ -305460,12 +305361,12 @@ var require_validate3 = __commonJS({
305460
305361
  const resolved = await resolveFlags2(flags);
305461
305362
  const keys = getPresentFlags(resolved);
305462
305363
  for (const flag of keys) {
305463
- if (parse3.output.metadata.flags && parse3.output.metadata.flags[flag]?.setFromDefault)
305364
+ if (parse5.output.metadata.flags && parse5.output.metadata.flags[flag]?.setFromDefault)
305464
305365
  continue;
305465
- if (parse3.output.metadata.flags && parse3.output.metadata.flags[name]?.setFromDefault)
305366
+ if (parse5.output.metadata.flags && parse5.output.metadata.flags[name]?.setFromDefault)
305466
305367
  continue;
305467
- if (parse3.output.flags[flag] !== void 0) {
305468
- const flagValue = parse3.output.metadata.flags?.[flag]?.defaultHelp ?? parse3.output.flags[flag];
305368
+ if (parse5.output.flags[flag] !== void 0) {
305369
+ const flagValue = parse5.output.metadata.flags?.[flag]?.defaultHelp ?? parse5.output.flags[flag];
305469
305370
  return {
305470
305371
  ...base,
305471
305372
  reason: `--${flag}=${flagValue} cannot also be provided when using --${name}`,
@@ -305479,12 +305380,12 @@ var require_validate3 = __commonJS({
305479
305380
  const base = { name, validationFn: "validateCombinable" };
305480
305381
  const combinableFlags = new Set(flags.map((flag) => typeof flag === "string" ? flag : flag.name));
305481
305382
  const resolved = await resolveFlags2(flags);
305482
- for (const flag of Object.keys(parse3.output.flags)) {
305483
- if (parse3.output.metadata.flags && parse3.output.metadata.flags[flag]?.setFromDefault)
305383
+ for (const flag of Object.keys(parse5.output.flags)) {
305384
+ if (parse5.output.metadata.flags && parse5.output.metadata.flags[flag]?.setFromDefault)
305484
305385
  continue;
305485
- if (parse3.output.metadata.flags && parse3.output.metadata.flags[name]?.setFromDefault)
305386
+ if (parse5.output.metadata.flags && parse5.output.metadata.flags[name]?.setFromDefault)
305486
305387
  continue;
305487
- if (flag !== name && parse3.output.flags[flag] !== void 0 && !combinableFlags.has(flag)) {
305388
+ if (flag !== name && parse5.output.flags[flag] !== void 0 && !combinableFlags.has(flag)) {
305488
305389
  const formattedFlags = Object.keys(resolved).map((f) => `--${f}`).join(", ");
305489
305390
  return {
305490
305391
  ...base,
@@ -305500,7 +305401,7 @@ var require_validate3 = __commonJS({
305500
305401
  const resolved = await resolveFlags2(flags);
305501
305402
  const keys = getPresentFlags(resolved);
305502
305403
  for (const flag of keys) {
305503
- if (flag !== name && parse3.output.flags[flag] !== void 0) {
305404
+ if (flag !== name && parse5.output.flags[flag] !== void 0) {
305504
305405
  return { ...base, reason: `--${flag} cannot also be provided when using --${name}`, status: "failed" };
305505
305406
  }
305506
305407
  }
@@ -305602,7 +305503,7 @@ var require_parser = __commonJS({
305602
305503
  "use strict";
305603
305504
  Object.defineProperty(exports, "__esModule", { value: true });
305604
305505
  exports.validate = exports.flagUsages = void 0;
305605
- exports.parse = parse3;
305506
+ exports.parse = parse5;
305606
305507
  var parse_1 = require_parse3();
305607
305508
  var validate_1 = require_validate3();
305608
305509
  var help_1 = require_help2();
@@ -305613,7 +305514,7 @@ var require_parser = __commonJS({
305613
305514
  Object.defineProperty(exports, "validate", { enumerable: true, get: function() {
305614
305515
  return validate_2.validate;
305615
305516
  } });
305616
- async function parse3(argv, options) {
305517
+ async function parse5(argv, options) {
305617
305518
  const input = {
305618
305519
  "--": options["--"],
305619
305520
  args: options.args ?? {},
@@ -306591,7 +306492,7 @@ var require_flush = __commonJS({
306591
306492
  });
306592
306493
 
306593
306494
  // ../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/lib/main.js
306594
- var require_main2 = __commonJS({
306495
+ var require_main = __commonJS({
306595
306496
  "../../../../../Users/yueranyuan/volter/vgai-engine/node_modules/@oclif/core/lib/main.js"(exports) {
306596
306497
  "use strict";
306597
306498
  var __importDefault = exports && exports.__importDefault || function(mod) {
@@ -306703,7 +306604,7 @@ var require_execute = __commonJS({
306703
306604
  var errors_1 = require_errors3();
306704
306605
  var handle_1 = require_handle();
306705
306606
  var flush_1 = require_flush();
306706
- var main_1 = require_main2();
306607
+ var main_1 = require_main();
306707
306608
  var settings_1 = require_settings();
306708
306609
  async function execute(options) {
306709
306610
  if (!options.dir && !options.loadOptions) {
@@ -306843,7 +306744,7 @@ var require_lib = __commonJS({
306843
306744
  Object.defineProperty(exports, "getLogger", { enumerable: true, get: function() {
306844
306745
  return logger_1.getLogger;
306845
306746
  } });
306846
- var main_1 = require_main2();
306747
+ var main_1 = require_main();
306847
306748
  Object.defineProperty(exports, "run", { enumerable: true, get: function() {
306848
306749
  return main_1.run;
306849
306750
  } });
@@ -306895,8 +306796,6 @@ import { setTimeout as delay } from "node:timers/promises";
306895
306796
  import { fileURLToPath as fileURLToPath5, pathToFileURL as pathToFileURL2 } from "node:url";
306896
306797
 
306897
306798
  // ../create-vgai-project/src/scaffold.ts
306898
- var import_jsonc_parser = __toESM(require_main(), 1);
306899
- init_locate();
306900
306799
  import { spawnSync as spawnSync3 } from "node:child_process";
306901
306800
  import {
306902
306801
  copyFileSync as copyFileSync2,
@@ -306911,6 +306810,905 @@ import {
306911
306810
  } from "node:fs";
306912
306811
  import { basename as basename2, dirname as dirname9, join as join16, relative as relative5, resolve as resolve10 } from "node:path";
306913
306812
 
306813
+ // ../../node_modules/jsonc-parser/lib/esm/impl/scanner.js
306814
+ function createScanner(text, ignoreTrivia = false) {
306815
+ const len = text.length;
306816
+ let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
306817
+ function scanHexDigits(count, exact) {
306818
+ let digits = 0;
306819
+ let value2 = 0;
306820
+ while (digits < count || !exact) {
306821
+ let ch = text.charCodeAt(pos);
306822
+ if (ch >= 48 && ch <= 57) {
306823
+ value2 = value2 * 16 + ch - 48;
306824
+ } else if (ch >= 65 && ch <= 70) {
306825
+ value2 = value2 * 16 + ch - 65 + 10;
306826
+ } else if (ch >= 97 && ch <= 102) {
306827
+ value2 = value2 * 16 + ch - 97 + 10;
306828
+ } else {
306829
+ break;
306830
+ }
306831
+ pos++;
306832
+ digits++;
306833
+ }
306834
+ if (digits < count) {
306835
+ value2 = -1;
306836
+ }
306837
+ return value2;
306838
+ }
306839
+ function setPosition(newPosition) {
306840
+ pos = newPosition;
306841
+ value = "";
306842
+ tokenOffset = 0;
306843
+ token = 16;
306844
+ scanError = 0;
306845
+ }
306846
+ function scanNumber() {
306847
+ let start = pos;
306848
+ if (text.charCodeAt(pos) === 48) {
306849
+ pos++;
306850
+ } else {
306851
+ pos++;
306852
+ while (pos < text.length && isDigit(text.charCodeAt(pos))) {
306853
+ pos++;
306854
+ }
306855
+ }
306856
+ if (pos < text.length && text.charCodeAt(pos) === 46) {
306857
+ pos++;
306858
+ if (pos < text.length && isDigit(text.charCodeAt(pos))) {
306859
+ pos++;
306860
+ while (pos < text.length && isDigit(text.charCodeAt(pos))) {
306861
+ pos++;
306862
+ }
306863
+ } else {
306864
+ scanError = 3;
306865
+ return text.substring(start, pos);
306866
+ }
306867
+ }
306868
+ let end = pos;
306869
+ if (pos < text.length && (text.charCodeAt(pos) === 69 || text.charCodeAt(pos) === 101)) {
306870
+ pos++;
306871
+ if (pos < text.length && text.charCodeAt(pos) === 43 || text.charCodeAt(pos) === 45) {
306872
+ pos++;
306873
+ }
306874
+ if (pos < text.length && isDigit(text.charCodeAt(pos))) {
306875
+ pos++;
306876
+ while (pos < text.length && isDigit(text.charCodeAt(pos))) {
306877
+ pos++;
306878
+ }
306879
+ end = pos;
306880
+ } else {
306881
+ scanError = 3;
306882
+ }
306883
+ }
306884
+ return text.substring(start, end);
306885
+ }
306886
+ function scanString() {
306887
+ let result = "", start = pos;
306888
+ while (true) {
306889
+ if (pos >= len) {
306890
+ result += text.substring(start, pos);
306891
+ scanError = 2;
306892
+ break;
306893
+ }
306894
+ const ch = text.charCodeAt(pos);
306895
+ if (ch === 34) {
306896
+ result += text.substring(start, pos);
306897
+ pos++;
306898
+ break;
306899
+ }
306900
+ if (ch === 92) {
306901
+ result += text.substring(start, pos);
306902
+ pos++;
306903
+ if (pos >= len) {
306904
+ scanError = 2;
306905
+ break;
306906
+ }
306907
+ const ch2 = text.charCodeAt(pos++);
306908
+ switch (ch2) {
306909
+ case 34:
306910
+ result += '"';
306911
+ break;
306912
+ case 92:
306913
+ result += "\\";
306914
+ break;
306915
+ case 47:
306916
+ result += "/";
306917
+ break;
306918
+ case 98:
306919
+ result += "\b";
306920
+ break;
306921
+ case 102:
306922
+ result += "\f";
306923
+ break;
306924
+ case 110:
306925
+ result += "\n";
306926
+ break;
306927
+ case 114:
306928
+ result += "\r";
306929
+ break;
306930
+ case 116:
306931
+ result += " ";
306932
+ break;
306933
+ case 117:
306934
+ const ch3 = scanHexDigits(4, true);
306935
+ if (ch3 >= 0) {
306936
+ result += String.fromCharCode(ch3);
306937
+ } else {
306938
+ scanError = 4;
306939
+ }
306940
+ break;
306941
+ default:
306942
+ scanError = 5;
306943
+ }
306944
+ start = pos;
306945
+ continue;
306946
+ }
306947
+ if (ch >= 0 && ch <= 31) {
306948
+ if (isLineBreak(ch)) {
306949
+ result += text.substring(start, pos);
306950
+ scanError = 2;
306951
+ break;
306952
+ } else {
306953
+ scanError = 6;
306954
+ }
306955
+ }
306956
+ pos++;
306957
+ }
306958
+ return result;
306959
+ }
306960
+ function scanNext() {
306961
+ value = "";
306962
+ scanError = 0;
306963
+ tokenOffset = pos;
306964
+ lineStartOffset = lineNumber;
306965
+ prevTokenLineStartOffset = tokenLineStartOffset;
306966
+ if (pos >= len) {
306967
+ tokenOffset = len;
306968
+ return token = 17;
306969
+ }
306970
+ let code = text.charCodeAt(pos);
306971
+ if (isWhiteSpace(code)) {
306972
+ do {
306973
+ pos++;
306974
+ value += String.fromCharCode(code);
306975
+ code = text.charCodeAt(pos);
306976
+ } while (isWhiteSpace(code));
306977
+ return token = 15;
306978
+ }
306979
+ if (isLineBreak(code)) {
306980
+ pos++;
306981
+ value += String.fromCharCode(code);
306982
+ if (code === 13 && text.charCodeAt(pos) === 10) {
306983
+ pos++;
306984
+ value += "\n";
306985
+ }
306986
+ lineNumber++;
306987
+ tokenLineStartOffset = pos;
306988
+ return token = 14;
306989
+ }
306990
+ switch (code) {
306991
+ // tokens: []{}:,
306992
+ case 123:
306993
+ pos++;
306994
+ return token = 1;
306995
+ case 125:
306996
+ pos++;
306997
+ return token = 2;
306998
+ case 91:
306999
+ pos++;
307000
+ return token = 3;
307001
+ case 93:
307002
+ pos++;
307003
+ return token = 4;
307004
+ case 58:
307005
+ pos++;
307006
+ return token = 6;
307007
+ case 44:
307008
+ pos++;
307009
+ return token = 5;
307010
+ // strings
307011
+ case 34:
307012
+ pos++;
307013
+ value = scanString();
307014
+ return token = 10;
307015
+ // comments
307016
+ case 47:
307017
+ const start = pos - 1;
307018
+ if (text.charCodeAt(pos + 1) === 47) {
307019
+ pos += 2;
307020
+ while (pos < len) {
307021
+ if (isLineBreak(text.charCodeAt(pos))) {
307022
+ break;
307023
+ }
307024
+ pos++;
307025
+ }
307026
+ value = text.substring(start, pos);
307027
+ return token = 12;
307028
+ }
307029
+ if (text.charCodeAt(pos + 1) === 42) {
307030
+ pos += 2;
307031
+ const safeLength = len - 1;
307032
+ let commentClosed = false;
307033
+ while (pos < safeLength) {
307034
+ const ch = text.charCodeAt(pos);
307035
+ if (ch === 42 && text.charCodeAt(pos + 1) === 47) {
307036
+ pos += 2;
307037
+ commentClosed = true;
307038
+ break;
307039
+ }
307040
+ pos++;
307041
+ if (isLineBreak(ch)) {
307042
+ if (ch === 13 && text.charCodeAt(pos) === 10) {
307043
+ pos++;
307044
+ }
307045
+ lineNumber++;
307046
+ tokenLineStartOffset = pos;
307047
+ }
307048
+ }
307049
+ if (!commentClosed) {
307050
+ pos++;
307051
+ scanError = 1;
307052
+ }
307053
+ value = text.substring(start, pos);
307054
+ return token = 13;
307055
+ }
307056
+ value += String.fromCharCode(code);
307057
+ pos++;
307058
+ return token = 16;
307059
+ // numbers
307060
+ case 45:
307061
+ value += String.fromCharCode(code);
307062
+ pos++;
307063
+ if (pos === len || !isDigit(text.charCodeAt(pos))) {
307064
+ return token = 16;
307065
+ }
307066
+ // found a minus, followed by a number so
307067
+ // we fall through to proceed with scanning
307068
+ // numbers
307069
+ case 48:
307070
+ case 49:
307071
+ case 50:
307072
+ case 51:
307073
+ case 52:
307074
+ case 53:
307075
+ case 54:
307076
+ case 55:
307077
+ case 56:
307078
+ case 57:
307079
+ value += scanNumber();
307080
+ return token = 11;
307081
+ // literals and unknown symbols
307082
+ default:
307083
+ while (pos < len && isUnknownContentCharacter(code)) {
307084
+ pos++;
307085
+ code = text.charCodeAt(pos);
307086
+ }
307087
+ if (tokenOffset !== pos) {
307088
+ value = text.substring(tokenOffset, pos);
307089
+ switch (value) {
307090
+ case "true":
307091
+ return token = 8;
307092
+ case "false":
307093
+ return token = 9;
307094
+ case "null":
307095
+ return token = 7;
307096
+ }
307097
+ return token = 16;
307098
+ }
307099
+ value += String.fromCharCode(code);
307100
+ pos++;
307101
+ return token = 16;
307102
+ }
307103
+ }
307104
+ function isUnknownContentCharacter(code) {
307105
+ if (isWhiteSpace(code) || isLineBreak(code)) {
307106
+ return false;
307107
+ }
307108
+ switch (code) {
307109
+ case 125:
307110
+ case 93:
307111
+ case 123:
307112
+ case 91:
307113
+ case 34:
307114
+ case 58:
307115
+ case 44:
307116
+ case 47:
307117
+ return false;
307118
+ }
307119
+ return true;
307120
+ }
307121
+ function scanNextNonTrivia() {
307122
+ let result;
307123
+ do {
307124
+ result = scanNext();
307125
+ } while (result >= 12 && result <= 15);
307126
+ return result;
307127
+ }
307128
+ return {
307129
+ setPosition,
307130
+ getPosition: () => pos,
307131
+ scan: ignoreTrivia ? scanNextNonTrivia : scanNext,
307132
+ getToken: () => token,
307133
+ getTokenValue: () => value,
307134
+ getTokenOffset: () => tokenOffset,
307135
+ getTokenLength: () => pos - tokenOffset,
307136
+ getTokenStartLine: () => lineStartOffset,
307137
+ getTokenStartCharacter: () => tokenOffset - prevTokenLineStartOffset,
307138
+ getTokenError: () => scanError
307139
+ };
307140
+ }
307141
+ function isWhiteSpace(ch) {
307142
+ return ch === 32 || ch === 9;
307143
+ }
307144
+ function isLineBreak(ch) {
307145
+ return ch === 10 || ch === 13;
307146
+ }
307147
+ function isDigit(ch) {
307148
+ return ch >= 48 && ch <= 57;
307149
+ }
307150
+ var CharacterCodes;
307151
+ (function(CharacterCodes2) {
307152
+ CharacterCodes2[CharacterCodes2["lineFeed"] = 10] = "lineFeed";
307153
+ CharacterCodes2[CharacterCodes2["carriageReturn"] = 13] = "carriageReturn";
307154
+ CharacterCodes2[CharacterCodes2["space"] = 32] = "space";
307155
+ CharacterCodes2[CharacterCodes2["_0"] = 48] = "_0";
307156
+ CharacterCodes2[CharacterCodes2["_1"] = 49] = "_1";
307157
+ CharacterCodes2[CharacterCodes2["_2"] = 50] = "_2";
307158
+ CharacterCodes2[CharacterCodes2["_3"] = 51] = "_3";
307159
+ CharacterCodes2[CharacterCodes2["_4"] = 52] = "_4";
307160
+ CharacterCodes2[CharacterCodes2["_5"] = 53] = "_5";
307161
+ CharacterCodes2[CharacterCodes2["_6"] = 54] = "_6";
307162
+ CharacterCodes2[CharacterCodes2["_7"] = 55] = "_7";
307163
+ CharacterCodes2[CharacterCodes2["_8"] = 56] = "_8";
307164
+ CharacterCodes2[CharacterCodes2["_9"] = 57] = "_9";
307165
+ CharacterCodes2[CharacterCodes2["a"] = 97] = "a";
307166
+ CharacterCodes2[CharacterCodes2["b"] = 98] = "b";
307167
+ CharacterCodes2[CharacterCodes2["c"] = 99] = "c";
307168
+ CharacterCodes2[CharacterCodes2["d"] = 100] = "d";
307169
+ CharacterCodes2[CharacterCodes2["e"] = 101] = "e";
307170
+ CharacterCodes2[CharacterCodes2["f"] = 102] = "f";
307171
+ CharacterCodes2[CharacterCodes2["g"] = 103] = "g";
307172
+ CharacterCodes2[CharacterCodes2["h"] = 104] = "h";
307173
+ CharacterCodes2[CharacterCodes2["i"] = 105] = "i";
307174
+ CharacterCodes2[CharacterCodes2["j"] = 106] = "j";
307175
+ CharacterCodes2[CharacterCodes2["k"] = 107] = "k";
307176
+ CharacterCodes2[CharacterCodes2["l"] = 108] = "l";
307177
+ CharacterCodes2[CharacterCodes2["m"] = 109] = "m";
307178
+ CharacterCodes2[CharacterCodes2["n"] = 110] = "n";
307179
+ CharacterCodes2[CharacterCodes2["o"] = 111] = "o";
307180
+ CharacterCodes2[CharacterCodes2["p"] = 112] = "p";
307181
+ CharacterCodes2[CharacterCodes2["q"] = 113] = "q";
307182
+ CharacterCodes2[CharacterCodes2["r"] = 114] = "r";
307183
+ CharacterCodes2[CharacterCodes2["s"] = 115] = "s";
307184
+ CharacterCodes2[CharacterCodes2["t"] = 116] = "t";
307185
+ CharacterCodes2[CharacterCodes2["u"] = 117] = "u";
307186
+ CharacterCodes2[CharacterCodes2["v"] = 118] = "v";
307187
+ CharacterCodes2[CharacterCodes2["w"] = 119] = "w";
307188
+ CharacterCodes2[CharacterCodes2["x"] = 120] = "x";
307189
+ CharacterCodes2[CharacterCodes2["y"] = 121] = "y";
307190
+ CharacterCodes2[CharacterCodes2["z"] = 122] = "z";
307191
+ CharacterCodes2[CharacterCodes2["A"] = 65] = "A";
307192
+ CharacterCodes2[CharacterCodes2["B"] = 66] = "B";
307193
+ CharacterCodes2[CharacterCodes2["C"] = 67] = "C";
307194
+ CharacterCodes2[CharacterCodes2["D"] = 68] = "D";
307195
+ CharacterCodes2[CharacterCodes2["E"] = 69] = "E";
307196
+ CharacterCodes2[CharacterCodes2["F"] = 70] = "F";
307197
+ CharacterCodes2[CharacterCodes2["G"] = 71] = "G";
307198
+ CharacterCodes2[CharacterCodes2["H"] = 72] = "H";
307199
+ CharacterCodes2[CharacterCodes2["I"] = 73] = "I";
307200
+ CharacterCodes2[CharacterCodes2["J"] = 74] = "J";
307201
+ CharacterCodes2[CharacterCodes2["K"] = 75] = "K";
307202
+ CharacterCodes2[CharacterCodes2["L"] = 76] = "L";
307203
+ CharacterCodes2[CharacterCodes2["M"] = 77] = "M";
307204
+ CharacterCodes2[CharacterCodes2["N"] = 78] = "N";
307205
+ CharacterCodes2[CharacterCodes2["O"] = 79] = "O";
307206
+ CharacterCodes2[CharacterCodes2["P"] = 80] = "P";
307207
+ CharacterCodes2[CharacterCodes2["Q"] = 81] = "Q";
307208
+ CharacterCodes2[CharacterCodes2["R"] = 82] = "R";
307209
+ CharacterCodes2[CharacterCodes2["S"] = 83] = "S";
307210
+ CharacterCodes2[CharacterCodes2["T"] = 84] = "T";
307211
+ CharacterCodes2[CharacterCodes2["U"] = 85] = "U";
307212
+ CharacterCodes2[CharacterCodes2["V"] = 86] = "V";
307213
+ CharacterCodes2[CharacterCodes2["W"] = 87] = "W";
307214
+ CharacterCodes2[CharacterCodes2["X"] = 88] = "X";
307215
+ CharacterCodes2[CharacterCodes2["Y"] = 89] = "Y";
307216
+ CharacterCodes2[CharacterCodes2["Z"] = 90] = "Z";
307217
+ CharacterCodes2[CharacterCodes2["asterisk"] = 42] = "asterisk";
307218
+ CharacterCodes2[CharacterCodes2["backslash"] = 92] = "backslash";
307219
+ CharacterCodes2[CharacterCodes2["closeBrace"] = 125] = "closeBrace";
307220
+ CharacterCodes2[CharacterCodes2["closeBracket"] = 93] = "closeBracket";
307221
+ CharacterCodes2[CharacterCodes2["colon"] = 58] = "colon";
307222
+ CharacterCodes2[CharacterCodes2["comma"] = 44] = "comma";
307223
+ CharacterCodes2[CharacterCodes2["dot"] = 46] = "dot";
307224
+ CharacterCodes2[CharacterCodes2["doubleQuote"] = 34] = "doubleQuote";
307225
+ CharacterCodes2[CharacterCodes2["minus"] = 45] = "minus";
307226
+ CharacterCodes2[CharacterCodes2["openBrace"] = 123] = "openBrace";
307227
+ CharacterCodes2[CharacterCodes2["openBracket"] = 91] = "openBracket";
307228
+ CharacterCodes2[CharacterCodes2["plus"] = 43] = "plus";
307229
+ CharacterCodes2[CharacterCodes2["slash"] = 47] = "slash";
307230
+ CharacterCodes2[CharacterCodes2["formFeed"] = 12] = "formFeed";
307231
+ CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
307232
+ })(CharacterCodes || (CharacterCodes = {}));
307233
+
307234
+ // ../../node_modules/jsonc-parser/lib/esm/impl/string-intern.js
307235
+ var cachedSpaces = new Array(20).fill(0).map((_, index) => {
307236
+ return " ".repeat(index);
307237
+ });
307238
+ var maxCachedValues = 200;
307239
+ var cachedBreakLinesWithSpaces = {
307240
+ " ": {
307241
+ "\n": new Array(maxCachedValues).fill(0).map((_, index) => {
307242
+ return "\n" + " ".repeat(index);
307243
+ }),
307244
+ "\r": new Array(maxCachedValues).fill(0).map((_, index) => {
307245
+ return "\r" + " ".repeat(index);
307246
+ }),
307247
+ "\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
307248
+ return "\r\n" + " ".repeat(index);
307249
+ })
307250
+ },
307251
+ " ": {
307252
+ "\n": new Array(maxCachedValues).fill(0).map((_, index) => {
307253
+ return "\n" + " ".repeat(index);
307254
+ }),
307255
+ "\r": new Array(maxCachedValues).fill(0).map((_, index) => {
307256
+ return "\r" + " ".repeat(index);
307257
+ }),
307258
+ "\r\n": new Array(maxCachedValues).fill(0).map((_, index) => {
307259
+ return "\r\n" + " ".repeat(index);
307260
+ })
307261
+ }
307262
+ };
307263
+
307264
+ // ../../node_modules/jsonc-parser/lib/esm/impl/parser.js
307265
+ var ParseOptions;
307266
+ (function(ParseOptions2) {
307267
+ ParseOptions2.DEFAULT = {
307268
+ allowTrailingComma: false
307269
+ };
307270
+ })(ParseOptions || (ParseOptions = {}));
307271
+ function parse3(text, errors = [], options = ParseOptions.DEFAULT) {
307272
+ let currentProperty = null;
307273
+ let currentParent = [];
307274
+ const previousParents = [];
307275
+ function onValue(value) {
307276
+ if (Array.isArray(currentParent)) {
307277
+ currentParent.push(value);
307278
+ } else if (currentProperty !== null) {
307279
+ currentParent[currentProperty] = value;
307280
+ }
307281
+ }
307282
+ const visitor = {
307283
+ onObjectBegin: () => {
307284
+ const object3 = {};
307285
+ onValue(object3);
307286
+ previousParents.push(currentParent);
307287
+ currentParent = object3;
307288
+ currentProperty = null;
307289
+ },
307290
+ onObjectProperty: (name) => {
307291
+ currentProperty = name;
307292
+ },
307293
+ onObjectEnd: () => {
307294
+ currentParent = previousParents.pop();
307295
+ },
307296
+ onArrayBegin: () => {
307297
+ const array2 = [];
307298
+ onValue(array2);
307299
+ previousParents.push(currentParent);
307300
+ currentParent = array2;
307301
+ currentProperty = null;
307302
+ },
307303
+ onArrayEnd: () => {
307304
+ currentParent = previousParents.pop();
307305
+ },
307306
+ onLiteralValue: onValue,
307307
+ onError: (error48, offset, length) => {
307308
+ errors.push({ error: error48, offset, length });
307309
+ }
307310
+ };
307311
+ visit(text, visitor, options);
307312
+ return currentParent[0];
307313
+ }
307314
+ function visit(text, visitor, options = ParseOptions.DEFAULT) {
307315
+ const _scanner = createScanner(text, false);
307316
+ const _jsonPath = [];
307317
+ let suppressedCallbacks = 0;
307318
+ function toNoArgVisit(visitFunction) {
307319
+ return visitFunction ? () => suppressedCallbacks === 0 && visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
307320
+ }
307321
+ function toOneArgVisit(visitFunction) {
307322
+ return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter()) : () => true;
307323
+ }
307324
+ function toOneArgVisitWithPath(visitFunction) {
307325
+ return visitFunction ? (arg) => suppressedCallbacks === 0 && visitFunction(arg, _scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice()) : () => true;
307326
+ }
307327
+ function toBeginVisit(visitFunction) {
307328
+ return visitFunction ? () => {
307329
+ if (suppressedCallbacks > 0) {
307330
+ suppressedCallbacks++;
307331
+ } else {
307332
+ let cbReturn = visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter(), () => _jsonPath.slice());
307333
+ if (cbReturn === false) {
307334
+ suppressedCallbacks = 1;
307335
+ }
307336
+ }
307337
+ } : () => true;
307338
+ }
307339
+ function toEndVisit(visitFunction) {
307340
+ return visitFunction ? () => {
307341
+ if (suppressedCallbacks > 0) {
307342
+ suppressedCallbacks--;
307343
+ }
307344
+ if (suppressedCallbacks === 0) {
307345
+ visitFunction(_scanner.getTokenOffset(), _scanner.getTokenLength(), _scanner.getTokenStartLine(), _scanner.getTokenStartCharacter());
307346
+ }
307347
+ } : () => true;
307348
+ }
307349
+ const onObjectBegin = toBeginVisit(visitor.onObjectBegin), onObjectProperty = toOneArgVisitWithPath(visitor.onObjectProperty), onObjectEnd = toEndVisit(visitor.onObjectEnd), onArrayBegin = toBeginVisit(visitor.onArrayBegin), onArrayEnd = toEndVisit(visitor.onArrayEnd), onLiteralValue = toOneArgVisitWithPath(visitor.onLiteralValue), onSeparator = toOneArgVisit(visitor.onSeparator), onComment = toNoArgVisit(visitor.onComment), onError = toOneArgVisit(visitor.onError);
307350
+ const disallowComments = options && options.disallowComments;
307351
+ const allowTrailingComma = options && options.allowTrailingComma;
307352
+ function scanNext() {
307353
+ while (true) {
307354
+ const token = _scanner.scan();
307355
+ switch (_scanner.getTokenError()) {
307356
+ case 4:
307357
+ handleError(
307358
+ 14
307359
+ /* ParseErrorCode.InvalidUnicode */
307360
+ );
307361
+ break;
307362
+ case 5:
307363
+ handleError(
307364
+ 15
307365
+ /* ParseErrorCode.InvalidEscapeCharacter */
307366
+ );
307367
+ break;
307368
+ case 3:
307369
+ handleError(
307370
+ 13
307371
+ /* ParseErrorCode.UnexpectedEndOfNumber */
307372
+ );
307373
+ break;
307374
+ case 1:
307375
+ if (!disallowComments) {
307376
+ handleError(
307377
+ 11
307378
+ /* ParseErrorCode.UnexpectedEndOfComment */
307379
+ );
307380
+ }
307381
+ break;
307382
+ case 2:
307383
+ handleError(
307384
+ 12
307385
+ /* ParseErrorCode.UnexpectedEndOfString */
307386
+ );
307387
+ break;
307388
+ case 6:
307389
+ handleError(
307390
+ 16
307391
+ /* ParseErrorCode.InvalidCharacter */
307392
+ );
307393
+ break;
307394
+ }
307395
+ switch (token) {
307396
+ case 12:
307397
+ case 13:
307398
+ if (disallowComments) {
307399
+ handleError(
307400
+ 10
307401
+ /* ParseErrorCode.InvalidCommentToken */
307402
+ );
307403
+ } else {
307404
+ onComment();
307405
+ }
307406
+ break;
307407
+ case 16:
307408
+ handleError(
307409
+ 1
307410
+ /* ParseErrorCode.InvalidSymbol */
307411
+ );
307412
+ break;
307413
+ case 15:
307414
+ case 14:
307415
+ break;
307416
+ default:
307417
+ return token;
307418
+ }
307419
+ }
307420
+ }
307421
+ function handleError(error48, skipUntilAfter = [], skipUntil = []) {
307422
+ onError(error48);
307423
+ if (skipUntilAfter.length + skipUntil.length > 0) {
307424
+ let token = _scanner.getToken();
307425
+ while (token !== 17) {
307426
+ if (skipUntilAfter.indexOf(token) !== -1) {
307427
+ scanNext();
307428
+ break;
307429
+ } else if (skipUntil.indexOf(token) !== -1) {
307430
+ break;
307431
+ }
307432
+ token = scanNext();
307433
+ }
307434
+ }
307435
+ }
307436
+ function parseString(isValue) {
307437
+ const value = _scanner.getTokenValue();
307438
+ if (isValue) {
307439
+ onLiteralValue(value);
307440
+ } else {
307441
+ onObjectProperty(value);
307442
+ _jsonPath.push(value);
307443
+ }
307444
+ scanNext();
307445
+ return true;
307446
+ }
307447
+ function parseLiteral() {
307448
+ switch (_scanner.getToken()) {
307449
+ case 11:
307450
+ const tokenValue = _scanner.getTokenValue();
307451
+ let value = Number(tokenValue);
307452
+ if (isNaN(value)) {
307453
+ handleError(
307454
+ 2
307455
+ /* ParseErrorCode.InvalidNumberFormat */
307456
+ );
307457
+ value = 0;
307458
+ }
307459
+ onLiteralValue(value);
307460
+ break;
307461
+ case 7:
307462
+ onLiteralValue(null);
307463
+ break;
307464
+ case 8:
307465
+ onLiteralValue(true);
307466
+ break;
307467
+ case 9:
307468
+ onLiteralValue(false);
307469
+ break;
307470
+ default:
307471
+ return false;
307472
+ }
307473
+ scanNext();
307474
+ return true;
307475
+ }
307476
+ function parseProperty() {
307477
+ if (_scanner.getToken() !== 10) {
307478
+ handleError(3, [], [
307479
+ 2,
307480
+ 5
307481
+ /* SyntaxKind.CommaToken */
307482
+ ]);
307483
+ return false;
307484
+ }
307485
+ parseString(false);
307486
+ if (_scanner.getToken() === 6) {
307487
+ onSeparator(":");
307488
+ scanNext();
307489
+ if (!parseValue()) {
307490
+ handleError(4, [], [
307491
+ 2,
307492
+ 5
307493
+ /* SyntaxKind.CommaToken */
307494
+ ]);
307495
+ }
307496
+ } else {
307497
+ handleError(5, [], [
307498
+ 2,
307499
+ 5
307500
+ /* SyntaxKind.CommaToken */
307501
+ ]);
307502
+ }
307503
+ _jsonPath.pop();
307504
+ return true;
307505
+ }
307506
+ function parseObject() {
307507
+ onObjectBegin();
307508
+ scanNext();
307509
+ let needsComma = false;
307510
+ while (_scanner.getToken() !== 2 && _scanner.getToken() !== 17) {
307511
+ if (_scanner.getToken() === 5) {
307512
+ if (!needsComma) {
307513
+ handleError(4, [], []);
307514
+ }
307515
+ onSeparator(",");
307516
+ scanNext();
307517
+ if (_scanner.getToken() === 2 && allowTrailingComma) {
307518
+ break;
307519
+ }
307520
+ } else if (needsComma) {
307521
+ handleError(6, [], []);
307522
+ }
307523
+ if (!parseProperty()) {
307524
+ handleError(4, [], [
307525
+ 2,
307526
+ 5
307527
+ /* SyntaxKind.CommaToken */
307528
+ ]);
307529
+ }
307530
+ needsComma = true;
307531
+ }
307532
+ onObjectEnd();
307533
+ if (_scanner.getToken() !== 2) {
307534
+ handleError(7, [
307535
+ 2
307536
+ /* SyntaxKind.CloseBraceToken */
307537
+ ], []);
307538
+ } else {
307539
+ scanNext();
307540
+ }
307541
+ return true;
307542
+ }
307543
+ function parseArray() {
307544
+ onArrayBegin();
307545
+ scanNext();
307546
+ let isFirstElement = true;
307547
+ let needsComma = false;
307548
+ while (_scanner.getToken() !== 4 && _scanner.getToken() !== 17) {
307549
+ if (_scanner.getToken() === 5) {
307550
+ if (!needsComma) {
307551
+ handleError(4, [], []);
307552
+ }
307553
+ onSeparator(",");
307554
+ scanNext();
307555
+ if (_scanner.getToken() === 4 && allowTrailingComma) {
307556
+ break;
307557
+ }
307558
+ } else if (needsComma) {
307559
+ handleError(6, [], []);
307560
+ }
307561
+ if (isFirstElement) {
307562
+ _jsonPath.push(0);
307563
+ isFirstElement = false;
307564
+ } else {
307565
+ _jsonPath[_jsonPath.length - 1]++;
307566
+ }
307567
+ if (!parseValue()) {
307568
+ handleError(4, [], [
307569
+ 4,
307570
+ 5
307571
+ /* SyntaxKind.CommaToken */
307572
+ ]);
307573
+ }
307574
+ needsComma = true;
307575
+ }
307576
+ onArrayEnd();
307577
+ if (!isFirstElement) {
307578
+ _jsonPath.pop();
307579
+ }
307580
+ if (_scanner.getToken() !== 4) {
307581
+ handleError(8, [
307582
+ 4
307583
+ /* SyntaxKind.CloseBracketToken */
307584
+ ], []);
307585
+ } else {
307586
+ scanNext();
307587
+ }
307588
+ return true;
307589
+ }
307590
+ function parseValue() {
307591
+ switch (_scanner.getToken()) {
307592
+ case 3:
307593
+ return parseArray();
307594
+ case 1:
307595
+ return parseObject();
307596
+ case 10:
307597
+ return parseString(true);
307598
+ default:
307599
+ return parseLiteral();
307600
+ }
307601
+ }
307602
+ scanNext();
307603
+ if (_scanner.getToken() === 17) {
307604
+ if (options.allowEmptyContent) {
307605
+ return true;
307606
+ }
307607
+ handleError(4, [], []);
307608
+ return false;
307609
+ }
307610
+ if (!parseValue()) {
307611
+ handleError(4, [], []);
307612
+ return false;
307613
+ }
307614
+ if (_scanner.getToken() !== 17) {
307615
+ handleError(9, [], []);
307616
+ }
307617
+ return true;
307618
+ }
307619
+
307620
+ // ../../node_modules/jsonc-parser/lib/esm/main.js
307621
+ var ScanError;
307622
+ (function(ScanError2) {
307623
+ ScanError2[ScanError2["None"] = 0] = "None";
307624
+ ScanError2[ScanError2["UnexpectedEndOfComment"] = 1] = "UnexpectedEndOfComment";
307625
+ ScanError2[ScanError2["UnexpectedEndOfString"] = 2] = "UnexpectedEndOfString";
307626
+ ScanError2[ScanError2["UnexpectedEndOfNumber"] = 3] = "UnexpectedEndOfNumber";
307627
+ ScanError2[ScanError2["InvalidUnicode"] = 4] = "InvalidUnicode";
307628
+ ScanError2[ScanError2["InvalidEscapeCharacter"] = 5] = "InvalidEscapeCharacter";
307629
+ ScanError2[ScanError2["InvalidCharacter"] = 6] = "InvalidCharacter";
307630
+ })(ScanError || (ScanError = {}));
307631
+ var SyntaxKind;
307632
+ (function(SyntaxKind2) {
307633
+ SyntaxKind2[SyntaxKind2["OpenBraceToken"] = 1] = "OpenBraceToken";
307634
+ SyntaxKind2[SyntaxKind2["CloseBraceToken"] = 2] = "CloseBraceToken";
307635
+ SyntaxKind2[SyntaxKind2["OpenBracketToken"] = 3] = "OpenBracketToken";
307636
+ SyntaxKind2[SyntaxKind2["CloseBracketToken"] = 4] = "CloseBracketToken";
307637
+ SyntaxKind2[SyntaxKind2["CommaToken"] = 5] = "CommaToken";
307638
+ SyntaxKind2[SyntaxKind2["ColonToken"] = 6] = "ColonToken";
307639
+ SyntaxKind2[SyntaxKind2["NullKeyword"] = 7] = "NullKeyword";
307640
+ SyntaxKind2[SyntaxKind2["TrueKeyword"] = 8] = "TrueKeyword";
307641
+ SyntaxKind2[SyntaxKind2["FalseKeyword"] = 9] = "FalseKeyword";
307642
+ SyntaxKind2[SyntaxKind2["StringLiteral"] = 10] = "StringLiteral";
307643
+ SyntaxKind2[SyntaxKind2["NumericLiteral"] = 11] = "NumericLiteral";
307644
+ SyntaxKind2[SyntaxKind2["LineCommentTrivia"] = 12] = "LineCommentTrivia";
307645
+ SyntaxKind2[SyntaxKind2["BlockCommentTrivia"] = 13] = "BlockCommentTrivia";
307646
+ SyntaxKind2[SyntaxKind2["LineBreakTrivia"] = 14] = "LineBreakTrivia";
307647
+ SyntaxKind2[SyntaxKind2["Trivia"] = 15] = "Trivia";
307648
+ SyntaxKind2[SyntaxKind2["Unknown"] = 16] = "Unknown";
307649
+ SyntaxKind2[SyntaxKind2["EOF"] = 17] = "EOF";
307650
+ })(SyntaxKind || (SyntaxKind = {}));
307651
+ var parse4 = parse3;
307652
+ var ParseErrorCode;
307653
+ (function(ParseErrorCode2) {
307654
+ ParseErrorCode2[ParseErrorCode2["InvalidSymbol"] = 1] = "InvalidSymbol";
307655
+ ParseErrorCode2[ParseErrorCode2["InvalidNumberFormat"] = 2] = "InvalidNumberFormat";
307656
+ ParseErrorCode2[ParseErrorCode2["PropertyNameExpected"] = 3] = "PropertyNameExpected";
307657
+ ParseErrorCode2[ParseErrorCode2["ValueExpected"] = 4] = "ValueExpected";
307658
+ ParseErrorCode2[ParseErrorCode2["ColonExpected"] = 5] = "ColonExpected";
307659
+ ParseErrorCode2[ParseErrorCode2["CommaExpected"] = 6] = "CommaExpected";
307660
+ ParseErrorCode2[ParseErrorCode2["CloseBraceExpected"] = 7] = "CloseBraceExpected";
307661
+ ParseErrorCode2[ParseErrorCode2["CloseBracketExpected"] = 8] = "CloseBracketExpected";
307662
+ ParseErrorCode2[ParseErrorCode2["EndOfFileExpected"] = 9] = "EndOfFileExpected";
307663
+ ParseErrorCode2[ParseErrorCode2["InvalidCommentToken"] = 10] = "InvalidCommentToken";
307664
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfComment"] = 11] = "UnexpectedEndOfComment";
307665
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfString"] = 12] = "UnexpectedEndOfString";
307666
+ ParseErrorCode2[ParseErrorCode2["UnexpectedEndOfNumber"] = 13] = "UnexpectedEndOfNumber";
307667
+ ParseErrorCode2[ParseErrorCode2["InvalidUnicode"] = 14] = "InvalidUnicode";
307668
+ ParseErrorCode2[ParseErrorCode2["InvalidEscapeCharacter"] = 15] = "InvalidEscapeCharacter";
307669
+ ParseErrorCode2[ParseErrorCode2["InvalidCharacter"] = 16] = "InvalidCharacter";
307670
+ })(ParseErrorCode || (ParseErrorCode = {}));
307671
+ function printParseErrorCode(code) {
307672
+ switch (code) {
307673
+ case 1:
307674
+ return "InvalidSymbol";
307675
+ case 2:
307676
+ return "InvalidNumberFormat";
307677
+ case 3:
307678
+ return "PropertyNameExpected";
307679
+ case 4:
307680
+ return "ValueExpected";
307681
+ case 5:
307682
+ return "ColonExpected";
307683
+ case 6:
307684
+ return "CommaExpected";
307685
+ case 7:
307686
+ return "CloseBraceExpected";
307687
+ case 8:
307688
+ return "CloseBracketExpected";
307689
+ case 9:
307690
+ return "EndOfFileExpected";
307691
+ case 10:
307692
+ return "InvalidCommentToken";
307693
+ case 11:
307694
+ return "UnexpectedEndOfComment";
307695
+ case 12:
307696
+ return "UnexpectedEndOfString";
307697
+ case 13:
307698
+ return "UnexpectedEndOfNumber";
307699
+ case 14:
307700
+ return "InvalidUnicode";
307701
+ case 15:
307702
+ return "InvalidEscapeCharacter";
307703
+ case 16:
307704
+ return "InvalidCharacter";
307705
+ }
307706
+ return "<unknown ParseErrorCode>";
307707
+ }
307708
+
307709
+ // ../create-vgai-project/src/scaffold.ts
307710
+ init_locate();
307711
+
306914
307712
  // ../create-vgai-project/src/baseline.ts
306915
307713
  import { execFileSync } from "node:child_process";
306916
307714
  import { createHash as createHash3 } from "node:crypto";
@@ -307135,14 +307933,14 @@ function assertRelativeProjectPath(path) {
307135
307933
  }
307136
307934
  function collectFiles(root) {
307137
307935
  const files = [];
307138
- const visit = (dir) => {
307936
+ const visit2 = (dir) => {
307139
307937
  for (const entry of readdirSync5(dir, { withFileTypes: true })) {
307140
307938
  const path = join15(dir, entry.name);
307141
- if (entry.isDirectory()) visit(path);
307939
+ if (entry.isDirectory()) visit2(path);
307142
307940
  else if (entry.isFile()) files.push(path);
307143
307941
  }
307144
307942
  };
307145
- visit(root);
307943
+ visit2(root);
307146
307944
  return files.sort();
307147
307945
  }
307148
307946
  var PROJECT_SKILL_ROOTS = [
@@ -307182,7 +307980,7 @@ function dependencyOrder(ids, byId) {
307182
307980
  const ordered = [];
307183
307981
  const visiting = /* @__PURE__ */ new Set();
307184
307982
  const visited = /* @__PURE__ */ new Set();
307185
- const visit = (id) => {
307983
+ const visit2 = (id) => {
307186
307984
  if (visited.has(id)) return;
307187
307985
  if (visiting.has(id)) throw new Error(`Capability dependency cycle includes ${id}`);
307188
307986
  const manifest = byId.get(id);
@@ -307193,12 +307991,12 @@ Available: ${[...byId.keys()].sort().join(", ")}`
307193
307991
  );
307194
307992
  }
307195
307993
  visiting.add(id);
307196
- for (const required2 of manifest.requires) visit(required2);
307994
+ for (const required2 of manifest.requires) visit2(required2);
307197
307995
  visiting.delete(id);
307198
307996
  visited.add(id);
307199
307997
  ordered.push(manifest);
307200
307998
  };
307201
- for (const id of ids) visit(id);
307999
+ for (const id of ids) visit2(id);
307202
308000
  return ordered;
307203
308001
  }
307204
308002
  function specParts(spec) {
@@ -308232,11 +309030,11 @@ function rewriteTsconfig(targetDir, engineRelPath, editorRelPath) {
308232
309030
  const tsconfigPath = join16(targetDir, "tsconfig.json");
308233
309031
  if (!existsSync12(tsconfigPath)) return;
308234
309032
  const parseErrors = [];
308235
- const tsconfig = (0, import_jsonc_parser.parse)(readFileSync13(tsconfigPath, "utf-8"), parseErrors, {
309033
+ const tsconfig = parse4(readFileSync13(tsconfigPath, "utf-8"), parseErrors, {
308236
309034
  allowTrailingComma: true
308237
309035
  });
308238
309036
  if (parseErrors.length > 0) {
308239
- const details = parseErrors.map((error48) => `${(0, import_jsonc_parser.printParseErrorCode)(error48.error)} at offset ${error48.offset}`).join(", ");
309037
+ const details = parseErrors.map((error48) => `${printParseErrorCode(error48.error)} at offset ${error48.offset}`).join(", ");
308240
309038
  throw new Error(`Invalid TypeScript config ${tsconfigPath}: ${details}`);
308241
309039
  }
308242
309040
  tsconfig.compilerOptions = tsconfig.compilerOptions ?? {};
@@ -325341,8 +326139,8 @@ function catalogDistributionDir() {
325341
326139
  );
325342
326140
  }
325343
326141
  function cliVersion() {
325344
- if ("0.5.14") {
325345
- return "0.5.14";
326142
+ if ("0.5.15") {
326143
+ return "0.5.15";
325346
326144
  }
325347
326145
  try {
325348
326146
  const pkg = JSON.parse(readFileSync32(join39(__dirname4, "..", "package.json"), "utf8"));
@@ -325361,7 +326159,7 @@ function bakedTargetVersions() {
325361
326159
  if (false)
325362
326160
  return void 0;
325363
326161
  try {
325364
- return JSON.parse('{"@vgai/engine":"0.5.14","@vgai/editor":"0.5.14","@vgai/p2p-colyseus":"0.5.14","@vgai/live":"0.5.14","@vgai/sdk":"0.5.14","@vgai/editor-sdk":"0.5.14","@vgai/cli":"0.5.14"}');
326162
+ return JSON.parse('{"@vgai/engine":"0.5.15","@vgai/editor":"0.5.15","@vgai/p2p-colyseus":"0.5.15","@vgai/live":"0.5.15","@vgai/sdk":"0.5.15","@vgai/editor-sdk":"0.5.15","@vgai/cli":"0.5.15"}');
325365
326163
  } catch {
325366
326164
  return void 0;
325367
326165
  }