@settlemint/sdk-cli 2.6.4-pr4384f485 → 2.6.4-pr729a5586

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 (3) hide show
  1. package/dist/cli.js +1614 -753
  2. package/dist/cli.js.map +23 -7
  3. package/package.json +9 -9
package/dist/cli.js CHANGED
@@ -3546,6 +3546,126 @@ var require_wrap_ansi = __commonJS((exports, module) => {
3546
3546
  };
3547
3547
  });
3548
3548
 
3549
+ // ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
3550
+ var require_lib = __commonJS((exports, module) => {
3551
+ var Stream = __require("stream");
3552
+
3553
+ class MuteStream extends Stream {
3554
+ #isTTY = null;
3555
+ constructor(opts = {}) {
3556
+ super(opts);
3557
+ this.writable = this.readable = true;
3558
+ this.muted = false;
3559
+ this.on("pipe", this._onpipe);
3560
+ this.replace = opts.replace;
3561
+ this._prompt = opts.prompt || null;
3562
+ this._hadControl = false;
3563
+ }
3564
+ #destSrc(key, def) {
3565
+ if (this._dest) {
3566
+ return this._dest[key];
3567
+ }
3568
+ if (this._src) {
3569
+ return this._src[key];
3570
+ }
3571
+ return def;
3572
+ }
3573
+ #proxy(method, ...args) {
3574
+ if (typeof this._dest?.[method] === "function") {
3575
+ this._dest[method](...args);
3576
+ }
3577
+ if (typeof this._src?.[method] === "function") {
3578
+ this._src[method](...args);
3579
+ }
3580
+ }
3581
+ get isTTY() {
3582
+ if (this.#isTTY !== null) {
3583
+ return this.#isTTY;
3584
+ }
3585
+ return this.#destSrc("isTTY", false);
3586
+ }
3587
+ set isTTY(val) {
3588
+ this.#isTTY = val;
3589
+ }
3590
+ get rows() {
3591
+ return this.#destSrc("rows");
3592
+ }
3593
+ get columns() {
3594
+ return this.#destSrc("columns");
3595
+ }
3596
+ mute() {
3597
+ this.muted = true;
3598
+ }
3599
+ unmute() {
3600
+ this.muted = false;
3601
+ }
3602
+ _onpipe(src) {
3603
+ this._src = src;
3604
+ }
3605
+ pipe(dest, options) {
3606
+ this._dest = dest;
3607
+ return super.pipe(dest, options);
3608
+ }
3609
+ pause() {
3610
+ if (this._src) {
3611
+ return this._src.pause();
3612
+ }
3613
+ }
3614
+ resume() {
3615
+ if (this._src) {
3616
+ return this._src.resume();
3617
+ }
3618
+ }
3619
+ write(c) {
3620
+ if (this.muted) {
3621
+ if (!this.replace) {
3622
+ return true;
3623
+ }
3624
+ if (c.match(/^\u001b/)) {
3625
+ if (c.indexOf(this._prompt) === 0) {
3626
+ c = c.slice(this._prompt.length);
3627
+ c = c.replace(/./g, this.replace);
3628
+ c = this._prompt + c;
3629
+ }
3630
+ this._hadControl = true;
3631
+ return this.emit("data", c);
3632
+ } else {
3633
+ if (this._prompt && this._hadControl && c.indexOf(this._prompt) === 0) {
3634
+ this._hadControl = false;
3635
+ this.emit("data", this._prompt);
3636
+ c = c.slice(this._prompt.length);
3637
+ }
3638
+ c = c.toString().replace(/./g, this.replace);
3639
+ }
3640
+ }
3641
+ this.emit("data", c);
3642
+ }
3643
+ end(c) {
3644
+ if (this.muted) {
3645
+ if (c && this.replace) {
3646
+ c = c.toString().replace(/./g, this.replace);
3647
+ } else {
3648
+ c = null;
3649
+ }
3650
+ }
3651
+ if (c) {
3652
+ this.emit("data", c);
3653
+ }
3654
+ this.emit("end");
3655
+ }
3656
+ destroy(...args) {
3657
+ return this.#proxy("destroy", ...args);
3658
+ }
3659
+ destroySoon(...args) {
3660
+ return this.#proxy("destroySoon", ...args);
3661
+ }
3662
+ close(...args) {
3663
+ return this.#proxy("close", ...args);
3664
+ }
3665
+ }
3666
+ module.exports = MuteStream;
3667
+ });
3668
+
3549
3669
  // ../../node_modules/.bun/console-table-printer@2.14.6/node_modules/console-table-printer/dist/src/utils/colored-console-line.js
3550
3670
  var require_colored_console_line = __commonJS((exports) => {
3551
3671
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -13239,9 +13359,9 @@ var require_run = __commonJS((exports, module) => {
13239
13359
  row.type = TYPE_ENV;
13240
13360
  row.string = env2;
13241
13361
  try {
13242
- const { parsed, errors: errors3, injected, preExisted } = new Parse(env2, null, this.processEnv, this.overload).run();
13362
+ const { parsed, errors: errors4, injected, preExisted } = new Parse(env2, null, this.processEnv, this.overload).run();
13243
13363
  row.parsed = parsed;
13244
- row.errors = errors3;
13364
+ row.errors = errors4;
13245
13365
  row.injected = injected;
13246
13366
  row.preExisted = preExisted;
13247
13367
  this.inject(row.parsed);
@@ -13265,12 +13385,12 @@ var require_run = __commonJS((exports, module) => {
13265
13385
  this.readableFilepaths.add(envFilepath);
13266
13386
  const privateKey = findPrivateKey(envFilepath, this.envKeysFilepath, this.opsOn);
13267
13387
  const privateKeyName = guessPrivateKeyName(envFilepath);
13268
- const { parsed, errors: errors3, injected, preExisted } = new Parse(src, privateKey, this.processEnv, this.overload, privateKeyName).run();
13388
+ const { parsed, errors: errors4, injected, preExisted } = new Parse(src, privateKey, this.processEnv, this.overload, privateKeyName).run();
13269
13389
  row.privateKeyName = privateKeyName;
13270
13390
  row.privateKey = privateKey;
13271
13391
  row.src = src;
13272
13392
  row.parsed = parsed;
13273
- row.errors = errors3;
13393
+ row.errors = errors4;
13274
13394
  row.injected = injected;
13275
13395
  row.preExisted = preExisted;
13276
13396
  this.inject(row.parsed);
@@ -13321,9 +13441,9 @@ var require_run = __commonJS((exports, module) => {
13321
13441
  }
13322
13442
  }
13323
13443
  try {
13324
- const { parsed, errors: errors3, injected, preExisted } = new Parse(decrypted, null, this.processEnv, this.overload).run();
13444
+ const { parsed, errors: errors4, injected, preExisted } = new Parse(decrypted, null, this.processEnv, this.overload).run();
13325
13445
  row.parsed = parsed;
13326
- row.errors = errors3;
13446
+ row.errors = errors4;
13327
13447
  row.injected = injected;
13328
13448
  row.preExisted = preExisted;
13329
13449
  this.inject(row.parsed);
@@ -13720,10 +13840,10 @@ var require_get = __commonJS((exports, module) => {
13720
13840
  run() {
13721
13841
  const processEnv = { ...process.env };
13722
13842
  const { processedEnvs } = new Run(this.envs, this.overload, this.DOTENV_KEY, processEnv, this.envKeysFilepath).run();
13723
- const errors3 = [];
13843
+ const errors4 = [];
13724
13844
  for (const processedEnv of processedEnvs) {
13725
13845
  for (const error46 of processedEnv.errors) {
13726
- errors3.push(error46);
13846
+ errors4.push(error46);
13727
13847
  }
13728
13848
  }
13729
13849
  if (this.key) {
@@ -13731,12 +13851,12 @@ var require_get = __commonJS((exports, module) => {
13731
13851
  const value = processEnv[this.key];
13732
13852
  parsed[this.key] = value;
13733
13853
  if (value === undefined) {
13734
- errors3.push(new Errors({ key: this.key }).missingKey());
13854
+ errors4.push(new Errors({ key: this.key }).missingKey());
13735
13855
  }
13736
- return { parsed, errors: errors3 };
13856
+ return { parsed, errors: errors4 };
13737
13857
  } else {
13738
13858
  if (this.all) {
13739
- return { parsed: processEnv, errors: errors3 };
13859
+ return { parsed: processEnv, errors: errors4 };
13740
13860
  }
13741
13861
  const parsed = {};
13742
13862
  for (const processedEnv of processedEnvs) {
@@ -13746,7 +13866,7 @@ var require_get = __commonJS((exports, module) => {
13746
13866
  }
13747
13867
  }
13748
13868
  }
13749
- return { parsed, errors: errors3 };
13869
+ return { parsed, errors: errors4 };
13750
13870
  }
13751
13871
  }
13752
13872
  }
@@ -14499,8 +14619,8 @@ var require_main2 = __commonJS((exports, module) => {
14499
14619
  }
14500
14620
  const privateKey = options.privateKey || null;
14501
14621
  const overload = options.overload || options.override;
14502
- const { parsed, errors: errors3 } = new Parse(src, privateKey, processEnv, overload).run();
14503
- for (const error46 of errors3) {
14622
+ const { parsed, errors: errors4 } = new Parse(src, privateKey, processEnv, overload).run();
14623
+ for (const error46 of errors4) {
14504
14624
  logger.error(error46.message);
14505
14625
  if (error46.help) {
14506
14626
  logger.error(error46.help);
@@ -14567,8 +14687,8 @@ var require_main2 = __commonJS((exports, module) => {
14567
14687
  var get = function(key, options = {}) {
14568
14688
  const envs = buildEnvs(options);
14569
14689
  const ignore = options.ignore || [];
14570
- const { parsed, errors: errors3 } = new Get(key, envs, options.overload, process.env.DOTENV_KEY, options.all, options.envKeysFile).run();
14571
- for (const error46 of errors3 || []) {
14690
+ const { parsed, errors: errors4 } = new Get(key, envs, options.overload, process.env.DOTENV_KEY, options.all, options.envKeysFile).run();
14691
+ for (const error46 of errors4 || []) {
14572
14692
  if (ignore.includes(error46.code)) {
14573
14693
  continue;
14574
14694
  }
@@ -19892,14 +20012,14 @@ var require_validate = __commonJS((exports) => {
19892
20012
  validateRootTypes(context);
19893
20013
  validateDirectives(context);
19894
20014
  validateTypes(context);
19895
- const errors3 = context.getErrors();
19896
- schema.__validationErrors = errors3;
19897
- return errors3;
20015
+ const errors4 = context.getErrors();
20016
+ schema.__validationErrors = errors4;
20017
+ return errors4;
19898
20018
  }
19899
20019
  function assertValidSchema(schema) {
19900
- const errors3 = validateSchema(schema);
19901
- if (errors3.length !== 0) {
19902
- throw new Error(errors3.map((error46) => error46.message).join(`
20020
+ const errors4 = validateSchema(schema);
20021
+ if (errors4.length !== 0) {
20022
+ throw new Error(errors4.map((error46) => error46.message).join(`
19903
20023
 
19904
20024
  `));
19905
20025
  }
@@ -22116,25 +22236,25 @@ var require_values = __commonJS((exports) => {
22116
22236
  var _typeFromAST = require_typeFromAST();
22117
22237
  var _valueFromAST = require_valueFromAST();
22118
22238
  function getVariableValues(schema, varDefNodes, inputs, options) {
22119
- const errors3 = [];
22239
+ const errors4 = [];
22120
22240
  const maxErrors = options === null || options === undefined ? undefined : options.maxErrors;
22121
22241
  try {
22122
22242
  const coerced = coerceVariableValues(schema, varDefNodes, inputs, (error46) => {
22123
- if (maxErrors != null && errors3.length >= maxErrors) {
22243
+ if (maxErrors != null && errors4.length >= maxErrors) {
22124
22244
  throw new _GraphQLError.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");
22125
22245
  }
22126
- errors3.push(error46);
22246
+ errors4.push(error46);
22127
22247
  });
22128
- if (errors3.length === 0) {
22248
+ if (errors4.length === 0) {
22129
22249
  return {
22130
22250
  coerced
22131
22251
  };
22132
22252
  }
22133
22253
  } catch (error46) {
22134
- errors3.push(error46);
22254
+ errors4.push(error46);
22135
22255
  }
22136
22256
  return {
22137
- errors: errors3
22257
+ errors: errors4
22138
22258
  };
22139
22259
  }
22140
22260
  function coerceVariableValues(schema, varDefNodes, inputs, onError) {
@@ -23383,13 +23503,13 @@ var require_validate2 = __commonJS((exports) => {
23383
23503
  documentAST || (0, _devAssert.devAssert)(false, "Must provide document.");
23384
23504
  (0, _validate.assertValidSchema)(schema);
23385
23505
  const abortObj = Object.freeze({});
23386
- const errors3 = [];
23506
+ const errors4 = [];
23387
23507
  const context = new _ValidationContext.ValidationContext(schema, documentAST, typeInfo, (error46) => {
23388
- if (errors3.length >= maxErrors) {
23389
- errors3.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
23508
+ if (errors4.length >= maxErrors) {
23509
+ errors4.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
23390
23510
  throw abortObj;
23391
23511
  }
23392
- errors3.push(error46);
23512
+ errors4.push(error46);
23393
23513
  });
23394
23514
  const visitor = (0, _visitor.visitInParallel)(rules.map((rule) => rule(context)));
23395
23515
  try {
@@ -23399,29 +23519,29 @@ var require_validate2 = __commonJS((exports) => {
23399
23519
  throw e;
23400
23520
  }
23401
23521
  }
23402
- return errors3;
23522
+ return errors4;
23403
23523
  }
23404
23524
  function validateSDL(documentAST, schemaToExtend, rules = _specifiedRules.specifiedSDLRules) {
23405
- const errors3 = [];
23525
+ const errors4 = [];
23406
23526
  const context = new _ValidationContext.SDLValidationContext(documentAST, schemaToExtend, (error46) => {
23407
- errors3.push(error46);
23527
+ errors4.push(error46);
23408
23528
  });
23409
23529
  const visitors = rules.map((rule) => rule(context));
23410
23530
  (0, _visitor.visit)(documentAST, (0, _visitor.visitInParallel)(visitors));
23411
- return errors3;
23531
+ return errors4;
23412
23532
  }
23413
23533
  function assertValidSDL(documentAST) {
23414
- const errors3 = validateSDL(documentAST);
23415
- if (errors3.length !== 0) {
23416
- throw new Error(errors3.map((error46) => error46.message).join(`
23534
+ const errors4 = validateSDL(documentAST);
23535
+ if (errors4.length !== 0) {
23536
+ throw new Error(errors4.map((error46) => error46.message).join(`
23417
23537
 
23418
23538
  `));
23419
23539
  }
23420
23540
  }
23421
23541
  function assertValidSDLExtension(documentAST, schema) {
23422
- const errors3 = validateSDL(documentAST, schema);
23423
- if (errors3.length !== 0) {
23424
- throw new Error(errors3.map((error46) => error46.message).join(`
23542
+ const errors4 = validateSDL(documentAST, schema);
23543
+ if (errors4.length !== 0) {
23544
+ throw new Error(errors4.map((error46) => error46.message).join(`
23425
23545
 
23426
23546
  `));
23427
23547
  }
@@ -23604,11 +23724,11 @@ var require_execute = __commonJS((exports) => {
23604
23724
  }
23605
23725
  return result;
23606
23726
  }
23607
- function buildResponse(data, errors3) {
23608
- return errors3.length === 0 ? {
23727
+ function buildResponse(data, errors4) {
23728
+ return errors4.length === 0 ? {
23609
23729
  data
23610
23730
  } : {
23611
- errors: errors3,
23731
+ errors: errors4,
23612
23732
  data
23613
23733
  };
23614
23734
  }
@@ -28919,7 +29039,7 @@ var require_graphql2 = __commonJS((exports) => {
28919
29039
  });
28920
29040
 
28921
29041
  // ../../node_modules/.bun/json-parse-even-better-errors@4.0.0/node_modules/json-parse-even-better-errors/lib/index.js
28922
- var require_lib = __commonJS((exports, module) => {
29042
+ var require_lib2 = __commonJS((exports, module) => {
28923
29043
  var INDENT = Symbol.for("indent");
28924
29044
  var NEWLINE = Symbol.for("newline");
28925
29045
  var DEFAULT_NEWLINE = `
@@ -29553,7 +29673,7 @@ var require_clean = __commonJS((exports, module) => {
29553
29673
  });
29554
29674
 
29555
29675
  // ../../node_modules/.bun/proc-log@5.0.0/node_modules/proc-log/lib/index.js
29556
- var require_lib2 = __commonJS((exports, module) => {
29676
+ var require_lib3 = __commonJS((exports, module) => {
29557
29677
  var META = Symbol("proc-log.meta");
29558
29678
  module.exports = {
29559
29679
  META,
@@ -31152,7 +31272,7 @@ var require_from_url = __commonJS((exports, module) => {
31152
31272
  });
31153
31273
 
31154
31274
  // ../../node_modules/.bun/hosted-git-info@9.0.1/node_modules/hosted-git-info/lib/index.js
31155
- var require_lib3 = __commonJS((exports, module) => {
31275
+ var require_lib4 = __commonJS((exports, module) => {
31156
31276
  var { LRUCache: LRUCache2 } = require_commonjs();
31157
31277
  var hosts = require_hosts();
31158
31278
  var fromUrl = require_from_url();
@@ -34661,7 +34781,7 @@ var require_commonjs6 = __commonJS((exports) => {
34661
34781
  const dirs = new Set;
34662
34782
  const queue = [entry];
34663
34783
  let processing = 0;
34664
- const process7 = () => {
34784
+ const process8 = () => {
34665
34785
  let paused = false;
34666
34786
  while (!paused) {
34667
34787
  const dir = queue.shift();
@@ -34702,9 +34822,9 @@ var require_commonjs6 = __commonJS((exports) => {
34702
34822
  }
34703
34823
  }
34704
34824
  if (paused && !results.flowing) {
34705
- results.once("drain", process7);
34825
+ results.once("drain", process8);
34706
34826
  } else if (!sync2) {
34707
- process7();
34827
+ process8();
34708
34828
  }
34709
34829
  };
34710
34830
  let sync2 = true;
@@ -34712,7 +34832,7 @@ var require_commonjs6 = __commonJS((exports) => {
34712
34832
  sync2 = false;
34713
34833
  }
34714
34834
  };
34715
- process7();
34835
+ process8();
34716
34836
  return results;
34717
34837
  }
34718
34838
  streamSync(entry = this.cwd, opts = {}) {
@@ -34730,7 +34850,7 @@ var require_commonjs6 = __commonJS((exports) => {
34730
34850
  }
34731
34851
  const queue = [entry];
34732
34852
  let processing = 0;
34733
- const process7 = () => {
34853
+ const process8 = () => {
34734
34854
  let paused = false;
34735
34855
  while (!paused) {
34736
34856
  const dir = queue.shift();
@@ -34764,9 +34884,9 @@ var require_commonjs6 = __commonJS((exports) => {
34764
34884
  }
34765
34885
  }
34766
34886
  if (paused && !results.flowing)
34767
- results.once("drain", process7);
34887
+ results.once("drain", process8);
34768
34888
  };
34769
- process7();
34889
+ process8();
34770
34890
  return results;
34771
34891
  }
34772
34892
  chdir(path5 = this.cwd) {
@@ -37260,7 +37380,7 @@ var require_validate_npm_package_license = __commonJS((exports, module) => {
37260
37380
  // ../../node_modules/.bun/@npmcli+package-json@7.0.1/node_modules/@npmcli/package-json/lib/normalize-data.js
37261
37381
  var require_normalize_data = __commonJS((exports, module) => {
37262
37382
  var { URL: URL2 } = __require("node:url");
37263
- var hostedGitInfo = require_lib3();
37383
+ var hostedGitInfo = require_lib4();
37264
37384
  var validateLicense = require_validate_npm_package_license();
37265
37385
  var typos = {
37266
37386
  dependancies: "dependencies",
@@ -37644,7 +37764,7 @@ var require_cjs = __commonJS((exports) => {
37644
37764
  });
37645
37765
 
37646
37766
  // ../../node_modules/.bun/which@5.0.0/node_modules/which/lib/index.js
37647
- var require_lib4 = __commonJS((exports, module) => {
37767
+ var require_lib5 = __commonJS((exports, module) => {
37648
37768
  var { isexe, sync: isexeSync } = require_cjs();
37649
37769
  var { join: join2, delimiter, sep: sep2, posix: posix2 } = __require("path");
37650
37770
  var isWindows2 = process.platform === "win32";
@@ -37781,10 +37901,10 @@ var require_escape2 = __commonJS((exports, module) => {
37781
37901
  });
37782
37902
 
37783
37903
  // ../../node_modules/.bun/@npmcli+promise-spawn@8.0.3/node_modules/@npmcli/promise-spawn/lib/index.js
37784
- var require_lib5 = __commonJS((exports, module) => {
37904
+ var require_lib6 = __commonJS((exports, module) => {
37785
37905
  var { spawn: spawn2 } = __require("child_process");
37786
37906
  var os = __require("os");
37787
- var which = require_lib4();
37907
+ var which = require_lib5();
37788
37908
  var escape3 = require_escape2();
37789
37909
  var promiseSpawn = (cmd, args, opts = {}, extra = {}) => {
37790
37910
  if (opts.shell) {
@@ -38564,7 +38684,7 @@ var require_opts = __commonJS((exports, module) => {
38564
38684
 
38565
38685
  // ../../node_modules/.bun/@npmcli+git@7.0.0/node_modules/@npmcli/git/lib/which.js
38566
38686
  var require_which = __commonJS((exports, module) => {
38567
- var which = require_lib4();
38687
+ var which = require_lib5();
38568
38688
  var gitPath;
38569
38689
  try {
38570
38690
  gitPath = which.sync("git");
@@ -38582,9 +38702,9 @@ var require_which = __commonJS((exports, module) => {
38582
38702
 
38583
38703
  // ../../node_modules/.bun/@npmcli+git@7.0.0/node_modules/@npmcli/git/lib/spawn.js
38584
38704
  var require_spawn = __commonJS((exports, module) => {
38585
- var spawn2 = require_lib5();
38705
+ var spawn2 = require_lib6();
38586
38706
  var promiseRetry = require_promise_retry();
38587
- var { log } = require_lib2();
38707
+ var { log } = require_lib3();
38588
38708
  var makeError = require_make_error();
38589
38709
  var makeOpts = require_opts();
38590
38710
  module.exports = (gitArgs, opts = {}) => {
@@ -40072,7 +40192,7 @@ var require_utils6 = __commonJS((exports) => {
40072
40192
  });
40073
40193
 
40074
40194
  // ../../node_modules/.bun/validate-npm-package-name@6.0.2/node_modules/validate-npm-package-name/lib/index.js
40075
- var require_lib6 = __commonJS((exports, module) => {
40195
+ var require_lib7 = __commonJS((exports, module) => {
40076
40196
  var { builtinModules: builtins } = __require("module");
40077
40197
  var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
40078
40198
  var exclusionList = [
@@ -40081,34 +40201,34 @@ var require_lib6 = __commonJS((exports, module) => {
40081
40201
  ];
40082
40202
  function validate3(name2) {
40083
40203
  var warnings = [];
40084
- var errors3 = [];
40204
+ var errors4 = [];
40085
40205
  if (name2 === null) {
40086
- errors3.push("name cannot be null");
40087
- return done(warnings, errors3);
40206
+ errors4.push("name cannot be null");
40207
+ return done(warnings, errors4);
40088
40208
  }
40089
40209
  if (name2 === undefined) {
40090
- errors3.push("name cannot be undefined");
40091
- return done(warnings, errors3);
40210
+ errors4.push("name cannot be undefined");
40211
+ return done(warnings, errors4);
40092
40212
  }
40093
40213
  if (typeof name2 !== "string") {
40094
- errors3.push("name must be a string");
40095
- return done(warnings, errors3);
40214
+ errors4.push("name must be a string");
40215
+ return done(warnings, errors4);
40096
40216
  }
40097
40217
  if (!name2.length) {
40098
- errors3.push("name length must be greater than zero");
40218
+ errors4.push("name length must be greater than zero");
40099
40219
  }
40100
40220
  if (name2.startsWith(".")) {
40101
- errors3.push("name cannot start with a period");
40221
+ errors4.push("name cannot start with a period");
40102
40222
  }
40103
40223
  if (name2.match(/^_/)) {
40104
- errors3.push("name cannot start with an underscore");
40224
+ errors4.push("name cannot start with an underscore");
40105
40225
  }
40106
40226
  if (name2.trim() !== name2) {
40107
- errors3.push("name cannot contain leading or trailing spaces");
40227
+ errors4.push("name cannot contain leading or trailing spaces");
40108
40228
  }
40109
40229
  exclusionList.forEach(function(excludedName) {
40110
40230
  if (name2.toLowerCase() === excludedName) {
40111
- errors3.push(excludedName + " is not a valid package name");
40231
+ errors4.push(excludedName + " is not a valid package name");
40112
40232
  }
40113
40233
  });
40114
40234
  if (builtins.includes(name2.toLowerCase())) {
@@ -40129,22 +40249,22 @@ var require_lib6 = __commonJS((exports, module) => {
40129
40249
  var user = nameMatch[1];
40130
40250
  var pkg = nameMatch[2];
40131
40251
  if (pkg.startsWith(".")) {
40132
- errors3.push("name cannot start with a period");
40252
+ errors4.push("name cannot start with a period");
40133
40253
  }
40134
40254
  if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
40135
- return done(warnings, errors3);
40255
+ return done(warnings, errors4);
40136
40256
  }
40137
40257
  }
40138
- errors3.push("name can only contain URL-friendly characters");
40258
+ errors4.push("name can only contain URL-friendly characters");
40139
40259
  }
40140
- return done(warnings, errors3);
40260
+ return done(warnings, errors4);
40141
40261
  }
40142
- var done = function(warnings, errors3) {
40262
+ var done = function(warnings, errors4) {
40143
40263
  var result = {
40144
- validForNewPackages: errors3.length === 0 && warnings.length === 0,
40145
- validForOldPackages: errors3.length === 0,
40264
+ validForNewPackages: errors4.length === 0 && warnings.length === 0,
40265
+ validForOldPackages: errors4.length === 0,
40146
40266
  warnings,
40147
- errors: errors3
40267
+ errors: errors4
40148
40268
  };
40149
40269
  if (!result.warnings.length) {
40150
40270
  delete result.warnings;
@@ -40163,10 +40283,10 @@ var require_npa = __commonJS((exports, module) => {
40163
40283
  var { URL: URL2 } = __require("node:url");
40164
40284
  var path5 = isWindows2 ? __require("node:path/win32") : __require("node:path");
40165
40285
  var { homedir } = __require("node:os");
40166
- var HostedGit = require_lib3();
40286
+ var HostedGit = require_lib4();
40167
40287
  var semver = require_semver2();
40168
- var validatePackageName = require_lib6();
40169
- var { log } = require_lib2();
40288
+ var validatePackageName = require_lib7();
40289
+ var { log } = require_lib3();
40170
40290
  var hasSlashes = isWindows2 ? /\\|[/]/ : /[/]/;
40171
40291
  var isURL = /^(?:git[+])?[a-z]+:/i;
40172
40292
  var isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i;
@@ -40552,17 +40672,17 @@ var require_npa = __commonJS((exports, module) => {
40552
40672
 
40553
40673
  // ../../node_modules/.bun/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/current-env.js
40554
40674
  var require_current_env = __commonJS((exports, module) => {
40555
- var process7 = __require("node:process");
40675
+ var process8 = __require("node:process");
40556
40676
  var nodeOs = __require("node:os");
40557
40677
  var fs3 = __require("node:fs");
40558
40678
  function isMusl(file2) {
40559
40679
  return file2.includes("libc.musl-") || file2.includes("ld-musl-");
40560
40680
  }
40561
40681
  function os() {
40562
- return process7.platform;
40682
+ return process8.platform;
40563
40683
  }
40564
40684
  function cpu() {
40565
- return process7.arch;
40685
+ return process8.arch;
40566
40686
  }
40567
40687
  var LDD_PATH = "/usr/bin/ldd";
40568
40688
  function getFamilyFromFilesystem() {
@@ -40580,10 +40700,10 @@ var require_current_env = __commonJS((exports, module) => {
40580
40700
  }
40581
40701
  }
40582
40702
  function getFamilyFromReport() {
40583
- const originalExclude = process7.report.excludeNetwork;
40584
- process7.report.excludeNetwork = true;
40585
- const report = process7.report.getReport();
40586
- process7.report.excludeNetwork = originalExclude;
40703
+ const originalExclude = process8.report.excludeNetwork;
40704
+ process8.report.excludeNetwork = true;
40705
+ const report = process8.report.getReport();
40706
+ process8.report.excludeNetwork = originalExclude;
40587
40707
  if (report.header?.glibcVersionRuntime) {
40588
40708
  family = "glibc";
40589
40709
  } else if (Array.isArray(report.sharedObjects) && report.sharedObjects.some(isMusl)) {
@@ -40625,7 +40745,7 @@ var require_current_env = __commonJS((exports, module) => {
40625
40745
  },
40626
40746
  runtime: {
40627
40747
  name: "node",
40628
- version: env2.nodeVersion || process7.version
40748
+ version: env2.nodeVersion || process8.version
40629
40749
  }
40630
40750
  };
40631
40751
  }
@@ -40710,7 +40830,7 @@ var require_dev_engines = __commonJS((exports, module) => {
40710
40830
  if (typeof wanted !== "object" || wanted === null || Array.isArray(wanted)) {
40711
40831
  throw new Error(`Invalid non-object value for "devEngines"`);
40712
40832
  }
40713
- const errors3 = [];
40833
+ const errors4 = [];
40714
40834
  for (const engine of Object.keys(wanted)) {
40715
40835
  if (!recognizedEngines.includes(engine)) {
40716
40836
  throw new Error(`Invalid property "devEngines.${engine}"`);
@@ -40743,10 +40863,10 @@ var require_dev_engines = __commonJS((exports, module) => {
40743
40863
  current: currentEngine,
40744
40864
  required: dependencyAsAuthored
40745
40865
  });
40746
- errors3.push(err);
40866
+ errors4.push(err);
40747
40867
  }
40748
40868
  }
40749
- return errors3;
40869
+ return errors4;
40750
40870
  }
40751
40871
  module.exports = {
40752
40872
  checkDevEngines
@@ -40754,7 +40874,7 @@ var require_dev_engines = __commonJS((exports, module) => {
40754
40874
  });
40755
40875
 
40756
40876
  // ../../node_modules/.bun/npm-install-checks@7.1.2/node_modules/npm-install-checks/lib/index.js
40757
- var require_lib7 = __commonJS((exports, module) => {
40877
+ var require_lib8 = __commonJS((exports, module) => {
40758
40878
  var semver = require_semver2();
40759
40879
  var currentEnv = require_current_env();
40760
40880
  var { checkDevEngines } = require_dev_engines();
@@ -40838,7 +40958,7 @@ var require_lib7 = __commonJS((exports, module) => {
40838
40958
  });
40839
40959
 
40840
40960
  // ../../node_modules/.bun/npm-normalize-package-bin@4.0.0/node_modules/npm-normalize-package-bin/lib/index.js
40841
- var require_lib8 = __commonJS((exports, module) => {
40961
+ var require_lib9 = __commonJS((exports, module) => {
40842
40962
  var { join: join2, basename } = __require("path");
40843
40963
  var normalize2 = (pkg) => !pkg.bin ? removeBin(pkg) : typeof pkg.bin === "string" ? normalizeString(pkg) : Array.isArray(pkg.bin) ? normalizeArray(pkg) : typeof pkg.bin === "object" ? normalizeObject(pkg) : removeBin(pkg);
40844
40964
  var normalizeString = (pkg) => {
@@ -40886,11 +41006,11 @@ var require_lib8 = __commonJS((exports, module) => {
40886
41006
  });
40887
41007
 
40888
41008
  // ../../node_modules/.bun/npm-pick-manifest@11.0.1/node_modules/npm-pick-manifest/lib/index.js
40889
- var require_lib9 = __commonJS((exports, module) => {
41009
+ var require_lib10 = __commonJS((exports, module) => {
40890
41010
  var npa = require_npa();
40891
41011
  var semver = require_semver2();
40892
- var { checkEngine } = require_lib7();
40893
- var normalizeBin = require_lib8();
41012
+ var { checkEngine } = require_lib8();
41013
+ var normalizeBin = require_lib9();
40894
41014
  var engineOk = (manifest, npmVersion, nodeVersion) => {
40895
41015
  try {
40896
41016
  checkEngine(manifest, npmVersion, nodeVersion);
@@ -41052,7 +41172,7 @@ var require_clone = __commonJS((exports, module) => {
41052
41172
  var getRevs = require_revs();
41053
41173
  var spawn2 = require_spawn();
41054
41174
  var { isWindows: isWindows2 } = require_utils6();
41055
- var pickManifest = require_lib9();
41175
+ var pickManifest = require_lib10();
41056
41176
  var fs3 = __require("fs/promises");
41057
41177
  module.exports = (repo, ref = "HEAD", target = null, opts = {}) => getRevs(repo, opts).then((revs) => clone2(repo, revs, ref, resolveRef(revs, ref, opts), target || defaultTarget(repo, opts.cwd), opts));
41058
41178
  var maybeShallow = (repo, opts) => {
@@ -41184,7 +41304,7 @@ var require_is_clean = __commonJS((exports, module) => {
41184
41304
  });
41185
41305
 
41186
41306
  // ../../node_modules/.bun/@npmcli+git@7.0.0/node_modules/@npmcli/git/lib/index.js
41187
- var require_lib10 = __commonJS((exports, module) => {
41307
+ var require_lib11 = __commonJS((exports, module) => {
41188
41308
  module.exports = {
41189
41309
  clone: require_clone(),
41190
41310
  revs: require_revs(),
@@ -41202,12 +41322,12 @@ var require_normalize = __commonJS((exports, module) => {
41202
41322
  var clean = require_clean();
41203
41323
  var fs3 = __require("node:fs/promises");
41204
41324
  var path5 = __require("node:path");
41205
- var { log } = require_lib2();
41325
+ var { log } = require_lib3();
41206
41326
  var moduleBuiltin = __require("node:module");
41207
41327
  var _hostedGitInfo;
41208
41328
  function lazyHostedGitInfo() {
41209
41329
  if (!_hostedGitInfo) {
41210
- _hostedGitInfo = require_lib3();
41330
+ _hostedGitInfo = require_lib4();
41211
41331
  }
41212
41332
  return _hostedGitInfo;
41213
41333
  }
@@ -41591,7 +41711,7 @@ var require_normalize = __commonJS((exports, module) => {
41591
41711
  normalizePackageBin(data, changes);
41592
41712
  }
41593
41713
  if (steps.includes("gitHead") && !data.gitHead) {
41594
- const git = require_lib10();
41714
+ const git = require_lib11();
41595
41715
  const gitRoot = await git.find({ cwd: pkg.path, root });
41596
41716
  let head;
41597
41717
  if (gitRoot) {
@@ -41674,7 +41794,7 @@ var require_normalize = __commonJS((exports, module) => {
41674
41794
  // ../../node_modules/.bun/@npmcli+package-json@7.0.1/node_modules/@npmcli/package-json/lib/read-package.js
41675
41795
  var require_read_package = __commonJS((exports, module) => {
41676
41796
  var { readFile: readFile2 } = __require("fs/promises");
41677
- var parseJSON = require_lib();
41797
+ var parseJSON = require_lib2();
41678
41798
  async function read(filename) {
41679
41799
  try {
41680
41800
  const data = await readFile2(filename, "utf8");
@@ -41801,10 +41921,10 @@ var require_sort2 = __commonJS((exports, module) => {
41801
41921
  });
41802
41922
 
41803
41923
  // ../../node_modules/.bun/@npmcli+package-json@7.0.1/node_modules/@npmcli/package-json/lib/index.js
41804
- var require_lib11 = __commonJS((exports, module) => {
41924
+ var require_lib12 = __commonJS((exports, module) => {
41805
41925
  var { readFile: readFile2, writeFile: writeFile2 } = __require("node:fs/promises");
41806
41926
  var { resolve: resolve2 } = __require("node:path");
41807
- var parseJSON = require_lib();
41927
+ var parseJSON = require_lib2();
41808
41928
  var updateDeps = require_update_dependencies();
41809
41929
  var updateScripts = require_update_scripts();
41810
41930
  var updateWorkspaces = require_update_workspaces();
@@ -50404,8 +50524,8 @@ m2: ${this.mapper2.__debugToString().split(`
50404
50524
  node.text = renderFlowNode(node.flowNode, node.circular);
50405
50525
  computeLevel(node);
50406
50526
  }
50407
- const height = computeHeight(root);
50408
- const columnWidths = computeColumnWidths(height);
50527
+ const height2 = computeHeight(root);
50528
+ const columnWidths = computeColumnWidths(height2);
50409
50529
  computeLanes(root, 0);
50410
50530
  return renderGraph();
50411
50531
  function isFlowSwitchClause(f) {
@@ -50489,14 +50609,14 @@ m2: ${this.mapper2.__debugToString().split(`
50489
50609
  return node.level = level;
50490
50610
  }
50491
50611
  function computeHeight(node) {
50492
- let height2 = 0;
50612
+ let height22 = 0;
50493
50613
  for (const child of getChildren(node)) {
50494
- height2 = Math.max(height2, computeHeight(child));
50614
+ height22 = Math.max(height22, computeHeight(child));
50495
50615
  }
50496
- return height2 + 1;
50616
+ return height22 + 1;
50497
50617
  }
50498
- function computeColumnWidths(height2) {
50499
- const columns = fill(Array(height2), 0);
50618
+ function computeColumnWidths(height22) {
50619
+ const columns = fill(Array(height22), 0);
50500
50620
  for (const node of nodes) {
50501
50621
  columns[node.level] = Math.max(columns[node.level], node.text.length);
50502
50622
  }
@@ -60321,19 +60441,19 @@ ${lanes.join(`
60321
60441
  return node.flags;
60322
60442
  }
60323
60443
  var supportedLocaleDirectories = ["cs", "de", "es", "fr", "it", "ja", "ko", "pl", "pt-br", "ru", "tr", "zh-cn", "zh-tw"];
60324
- function validateLocaleAndSetLanguage(locale, sys2, errors3) {
60444
+ function validateLocaleAndSetLanguage(locale, sys2, errors4) {
60325
60445
  const lowerCaseLocale = locale.toLowerCase();
60326
60446
  const matchResult = /^([a-z]+)(?:[_-]([a-z]+))?$/.exec(lowerCaseLocale);
60327
60447
  if (!matchResult) {
60328
- if (errors3) {
60329
- errors3.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp"));
60448
+ if (errors4) {
60449
+ errors4.push(createCompilerDiagnostic(Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, "en", "ja-jp"));
60330
60450
  }
60331
60451
  return;
60332
60452
  }
60333
60453
  const language = matchResult[1];
60334
60454
  const territory = matchResult[2];
60335
- if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors3)) {
60336
- trySetLanguageAndTerritory(language, undefined, errors3);
60455
+ if (contains(supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors4)) {
60456
+ trySetLanguageAndTerritory(language, undefined, errors4);
60337
60457
  }
60338
60458
  setUILocale(locale);
60339
60459
  function trySetLanguageAndTerritory(language2, territory2, errors22) {
@@ -85176,16 +85296,16 @@ ${lanes.join(`
85176
85296
  const stringNames = (opt.deprecatedKeys ? namesOfType.filter((k) => !opt.deprecatedKeys.has(k)) : namesOfType).map((key) => `'${key}'`).join(", ");
85177
85297
  return createDiagnostic(Diagnostics.Argument_for_0_option_must_be_Colon_1, `--${opt.name}`, stringNames);
85178
85298
  }
85179
- function parseCustomTypeOption(opt, value2, errors3) {
85180
- return convertJsonOptionOfCustomType(opt, (value2 ?? "").trim(), errors3);
85299
+ function parseCustomTypeOption(opt, value2, errors4) {
85300
+ return convertJsonOptionOfCustomType(opt, (value2 ?? "").trim(), errors4);
85181
85301
  }
85182
- function parseListTypeOption(opt, value2 = "", errors3) {
85302
+ function parseListTypeOption(opt, value2 = "", errors4) {
85183
85303
  value2 = value2.trim();
85184
85304
  if (startsWith(value2, "-")) {
85185
85305
  return;
85186
85306
  }
85187
85307
  if (opt.type === "listOrElement" && !value2.includes(",")) {
85188
- return validateJsonOptionValue(opt, value2, errors3);
85308
+ return validateJsonOptionValue(opt, value2, errors4);
85189
85309
  }
85190
85310
  if (value2 === "") {
85191
85311
  return [];
@@ -85193,14 +85313,14 @@ ${lanes.join(`
85193
85313
  const values = value2.split(",");
85194
85314
  switch (opt.element.type) {
85195
85315
  case "number":
85196
- return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors3));
85316
+ return mapDefined(values, (v) => validateJsonOptionValue(opt.element, parseInt(v), errors4));
85197
85317
  case "string":
85198
- return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || "", errors3));
85318
+ return mapDefined(values, (v) => validateJsonOptionValue(opt.element, v || "", errors4));
85199
85319
  case "boolean":
85200
85320
  case "object":
85201
85321
  return Debug.fail(`List of ${opt.element.type} is not yet supported.`);
85202
85322
  default:
85203
- return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors3));
85323
+ return mapDefined(values, (v) => parseCustomTypeOption(opt.element, v, errors4));
85204
85324
  }
85205
85325
  }
85206
85326
  function getOptionName(option) {
@@ -85219,13 +85339,13 @@ ${lanes.join(`
85219
85339
  const options = {};
85220
85340
  let watchOptions;
85221
85341
  const fileNames = [];
85222
- const errors3 = [];
85342
+ const errors4 = [];
85223
85343
  parseStrings(commandLine);
85224
85344
  return {
85225
85345
  options,
85226
85346
  watchOptions,
85227
85347
  fileNames,
85228
- errors: errors3
85348
+ errors: errors4
85229
85349
  };
85230
85350
  function parseStrings(args) {
85231
85351
  let i2 = 0;
@@ -85238,13 +85358,13 @@ ${lanes.join(`
85238
85358
  const inputOptionName = s.slice(s.charCodeAt(1) === 45 ? 2 : 1);
85239
85359
  const opt = getOptionDeclarationFromName(diagnostics.getOptionsNameMap, inputOptionName, true);
85240
85360
  if (opt) {
85241
- i2 = parseOptionValue(args, i2, diagnostics, opt, options, errors3);
85361
+ i2 = parseOptionValue(args, i2, diagnostics, opt, options, errors4);
85242
85362
  } else {
85243
85363
  const watchOpt = getOptionDeclarationFromName(watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, inputOptionName, true);
85244
85364
  if (watchOpt) {
85245
- i2 = parseOptionValue(args, i2, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors3);
85365
+ i2 = parseOptionValue(args, i2, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors4);
85246
85366
  } else {
85247
- errors3.push(createUnknownOptionError(inputOptionName, diagnostics, s));
85367
+ errors4.push(createUnknownOptionError(inputOptionName, diagnostics, s));
85248
85368
  }
85249
85369
  }
85250
85370
  } else {
@@ -85255,7 +85375,7 @@ ${lanes.join(`
85255
85375
  function parseResponseFile(fileName) {
85256
85376
  const text = tryReadFile(fileName, readFile5 || ((fileName2) => sys.readFile(fileName2)));
85257
85377
  if (!isString(text)) {
85258
- errors3.push(text);
85378
+ errors4.push(text);
85259
85379
  return;
85260
85380
  }
85261
85381
  const args = [];
@@ -85274,7 +85394,7 @@ ${lanes.join(`
85274
85394
  args.push(text.substring(start + 1, pos));
85275
85395
  pos++;
85276
85396
  } else {
85277
- errors3.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName));
85397
+ errors4.push(createCompilerDiagnostic(Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName));
85278
85398
  }
85279
85399
  } else {
85280
85400
  while (text.charCodeAt(pos) > 32)
@@ -85285,7 +85405,7 @@ ${lanes.join(`
85285
85405
  parseStrings(args);
85286
85406
  }
85287
85407
  }
85288
- function parseOptionValue(args, i2, diagnostics, opt, options, errors3) {
85408
+ function parseOptionValue(args, i2, diagnostics, opt, options, errors4) {
85289
85409
  if (opt.isTSConfigOnly) {
85290
85410
  const optValue = args[i2];
85291
85411
  if (optValue === "null") {
@@ -85293,41 +85413,41 @@ ${lanes.join(`
85293
85413
  i2++;
85294
85414
  } else if (opt.type === "boolean") {
85295
85415
  if (optValue === "false") {
85296
- options[opt.name] = validateJsonOptionValue(opt, false, errors3);
85416
+ options[opt.name] = validateJsonOptionValue(opt, false, errors4);
85297
85417
  i2++;
85298
85418
  } else {
85299
85419
  if (optValue === "true")
85300
85420
  i2++;
85301
- errors3.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name));
85421
+ errors4.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name));
85302
85422
  }
85303
85423
  } else {
85304
- errors3.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name));
85424
+ errors4.push(createCompilerDiagnostic(Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name));
85305
85425
  if (optValue && !startsWith(optValue, "-"))
85306
85426
  i2++;
85307
85427
  }
85308
85428
  } else {
85309
85429
  if (!args[i2] && opt.type !== "boolean") {
85310
- errors3.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt)));
85430
+ errors4.push(createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt)));
85311
85431
  }
85312
85432
  if (args[i2] !== "null") {
85313
85433
  switch (opt.type) {
85314
85434
  case "number":
85315
- options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i2]), errors3);
85435
+ options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i2]), errors4);
85316
85436
  i2++;
85317
85437
  break;
85318
85438
  case "boolean":
85319
85439
  const optValue = args[i2];
85320
- options[opt.name] = validateJsonOptionValue(opt, optValue !== "false", errors3);
85440
+ options[opt.name] = validateJsonOptionValue(opt, optValue !== "false", errors4);
85321
85441
  if (optValue === "false" || optValue === "true") {
85322
85442
  i2++;
85323
85443
  }
85324
85444
  break;
85325
85445
  case "string":
85326
- options[opt.name] = validateJsonOptionValue(opt, args[i2] || "", errors3);
85446
+ options[opt.name] = validateJsonOptionValue(opt, args[i2] || "", errors4);
85327
85447
  i2++;
85328
85448
  break;
85329
85449
  case "list":
85330
- const result = parseListTypeOption(opt, args[i2], errors3);
85450
+ const result = parseListTypeOption(opt, args[i2], errors4);
85331
85451
  options[opt.name] = result || [];
85332
85452
  if (result) {
85333
85453
  i2++;
@@ -85337,7 +85457,7 @@ ${lanes.join(`
85337
85457
  Debug.fail("listOrElement not supported here");
85338
85458
  break;
85339
85459
  default:
85340
- options[opt.name] = parseCustomTypeOption(opt, args[i2], errors3);
85460
+ options[opt.name] = parseCustomTypeOption(opt, args[i2], errors4);
85341
85461
  i2++;
85342
85462
  break;
85343
85463
  }
@@ -85390,24 +85510,24 @@ ${lanes.join(`
85390
85510
  optionTypeMismatchDiagnostic: Diagnostics.Build_option_0_requires_a_value_of_type_1
85391
85511
  };
85392
85512
  function parseBuildCommand(commandLine) {
85393
- const { options, watchOptions, fileNames: projects, errors: errors3 } = parseCommandLineWorker(buildOptionsDidYouMeanDiagnostics, commandLine);
85513
+ const { options, watchOptions, fileNames: projects, errors: errors4 } = parseCommandLineWorker(buildOptionsDidYouMeanDiagnostics, commandLine);
85394
85514
  const buildOptions = options;
85395
85515
  if (projects.length === 0) {
85396
85516
  projects.push(".");
85397
85517
  }
85398
85518
  if (buildOptions.clean && buildOptions.force) {
85399
- errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force"));
85519
+ errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "force"));
85400
85520
  }
85401
85521
  if (buildOptions.clean && buildOptions.verbose) {
85402
- errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose"));
85522
+ errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "verbose"));
85403
85523
  }
85404
85524
  if (buildOptions.clean && buildOptions.watch) {
85405
- errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch"));
85525
+ errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "clean", "watch"));
85406
85526
  }
85407
85527
  if (buildOptions.watch && buildOptions.dry) {
85408
- errors3.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry"));
85528
+ errors4.push(createCompilerDiagnostic(Diagnostics.Options_0_and_1_cannot_be_combined, "watch", "dry"));
85409
85529
  }
85410
- return { buildOptions, watchOptions, projects, errors: errors3 };
85530
+ return { buildOptions, watchOptions, projects, errors: errors4 };
85411
85531
  }
85412
85532
  function getDiagnosticText(message, ...args) {
85413
85533
  return cast(createCompilerDiagnostic(message, ...args).messageText, isString);
@@ -85563,26 +85683,26 @@ ${lanes.join(`
85563
85683
  }
85564
85684
  return _tsconfigRootOptions;
85565
85685
  }
85566
- function convertConfigFileToObject(sourceFile, errors3, jsonConversionNotifier) {
85686
+ function convertConfigFileToObject(sourceFile, errors4, jsonConversionNotifier) {
85567
85687
  var _a;
85568
85688
  const rootExpression = (_a = sourceFile.statements[0]) == null ? undefined : _a.expression;
85569
85689
  if (rootExpression && rootExpression.kind !== 211) {
85570
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, rootExpression, Diagnostics.The_root_value_of_a_0_file_must_be_an_object, getBaseFileName(sourceFile.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json"));
85690
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, rootExpression, Diagnostics.The_root_value_of_a_0_file_must_be_an_object, getBaseFileName(sourceFile.fileName) === "jsconfig.json" ? "jsconfig.json" : "tsconfig.json"));
85571
85691
  if (isArrayLiteralExpression(rootExpression)) {
85572
85692
  const firstObject = find(rootExpression.elements, isObjectLiteralExpression);
85573
85693
  if (firstObject) {
85574
- return convertToJson(sourceFile, firstObject, errors3, true, jsonConversionNotifier);
85694
+ return convertToJson(sourceFile, firstObject, errors4, true, jsonConversionNotifier);
85575
85695
  }
85576
85696
  }
85577
85697
  return {};
85578
85698
  }
85579
- return convertToJson(sourceFile, rootExpression, errors3, true, jsonConversionNotifier);
85699
+ return convertToJson(sourceFile, rootExpression, errors4, true, jsonConversionNotifier);
85580
85700
  }
85581
- function convertToObject(sourceFile, errors3) {
85701
+ function convertToObject(sourceFile, errors4) {
85582
85702
  var _a;
85583
- return convertToJson(sourceFile, (_a = sourceFile.statements[0]) == null ? undefined : _a.expression, errors3, true, undefined);
85703
+ return convertToJson(sourceFile, (_a = sourceFile.statements[0]) == null ? undefined : _a.expression, errors4, true, undefined);
85584
85704
  }
85585
- function convertToJson(sourceFile, rootExpression, errors3, returnValue, jsonConversionNotifier) {
85705
+ function convertToJson(sourceFile, rootExpression, errors4, returnValue, jsonConversionNotifier) {
85586
85706
  if (!rootExpression) {
85587
85707
  return returnValue ? {} : undefined;
85588
85708
  }
@@ -85592,14 +85712,14 @@ ${lanes.join(`
85592
85712
  const result = returnValue ? {} : undefined;
85593
85713
  for (const element of node.properties) {
85594
85714
  if (element.kind !== 304) {
85595
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected));
85715
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, element, Diagnostics.Property_assignment_expected));
85596
85716
  continue;
85597
85717
  }
85598
85718
  if (element.questionToken) {
85599
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?"));
85719
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, "?"));
85600
85720
  }
85601
85721
  if (!isDoubleQuotedString(element.name)) {
85602
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected));
85722
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, element.name, Diagnostics.String_literal_with_double_quotes_expected));
85603
85723
  }
85604
85724
  const textOfKey = isComputedNonLiteralName(element.name) ? undefined : getTextOfPropertyName(element.name);
85605
85725
  const keyText = textOfKey && unescapeLeadingUnderscores(textOfKey);
@@ -85631,7 +85751,7 @@ ${lanes.join(`
85631
85751
  return null;
85632
85752
  case 11:
85633
85753
  if (!isDoubleQuotedString(valueExpression)) {
85634
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected));
85754
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.String_literal_with_double_quotes_expected));
85635
85755
  }
85636
85756
  return valueExpression.text;
85637
85757
  case 9:
@@ -85648,9 +85768,9 @@ ${lanes.join(`
85648
85768
  return convertArrayLiteralExpressionToJson(valueExpression.elements, option && option.element);
85649
85769
  }
85650
85770
  if (option) {
85651
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));
85771
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));
85652
85772
  } else {
85653
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));
85773
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));
85654
85774
  }
85655
85775
  return;
85656
85776
  }
@@ -85975,8 +86095,8 @@ ${lanes.join(`
85975
86095
  var defaultIncludeSpec = "**/*";
85976
86096
  function parseJsonConfigFileContentWorker(json2, sourceFile, host, basePath, existingOptions = {}, existingWatchOptions, configFileName, resolutionStack = [], extraFileExtensions = [], extendedConfigCache) {
85977
86097
  Debug.assert(json2 === undefined && sourceFile !== undefined || json2 !== undefined && sourceFile === undefined);
85978
- const errors3 = [];
85979
- const parsedConfig = parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors3, extendedConfigCache);
86098
+ const errors4 = [];
86099
+ const parsedConfig = parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors4, extendedConfigCache);
85980
86100
  const { raw } = parsedConfig;
85981
86101
  const options = handleOptionConfigDirTemplateSubstitution(extend2(existingOptions, parsedConfig.options || {}), configDirTemplateSubstitutionOptions, basePath);
85982
86102
  const watchOptions = handleWatchOptionsConfigDirTemplateSubstitution(existingWatchOptions && parsedConfig.watchOptions ? extend2(existingWatchOptions, parsedConfig.watchOptions) : parsedConfig.watchOptions || existingWatchOptions, basePath);
@@ -85993,7 +86113,7 @@ ${lanes.join(`
85993
86113
  projectReferences: getProjectReferences(basePathForFileNames),
85994
86114
  typeAcquisition: parsedConfig.typeAcquisition || getDefaultTypeAcquisition(),
85995
86115
  raw,
85996
- errors: errors3,
86116
+ errors: errors4,
85997
86117
  wildcardDirectories: getWildcardDirectories(configFileSpecs, basePathForFileNames, host.useCaseSensitiveFileNames),
85998
86118
  compileOnSave: !!raw.compileOnSave
85999
86119
  };
@@ -86009,7 +86129,7 @@ ${lanes.join(`
86009
86129
  const diagnosticMessage = Diagnostics.The_files_list_in_config_file_0_is_empty;
86010
86130
  const nodeValue = forEachTsConfigPropArray(sourceFile, "files", (property) => property.initializer);
86011
86131
  const error210 = createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, nodeValue, diagnosticMessage, fileName);
86012
- errors3.push(error210);
86132
+ errors4.push(error210);
86013
86133
  } else {
86014
86134
  createCompilerDiagnosticOnlyIfJson(Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || "tsconfig.json");
86015
86135
  }
@@ -86033,11 +86153,11 @@ ${lanes.join(`
86033
86153
  let validatedIncludeSpecsBeforeSubstitution, validatedExcludeSpecsBeforeSubstitution;
86034
86154
  let validatedIncludeSpecs, validatedExcludeSpecs;
86035
86155
  if (includeSpecs) {
86036
- validatedIncludeSpecsBeforeSubstitution = validateSpecs(includeSpecs, errors3, true, sourceFile, "include");
86156
+ validatedIncludeSpecsBeforeSubstitution = validateSpecs(includeSpecs, errors4, true, sourceFile, "include");
86037
86157
  validatedIncludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate(validatedIncludeSpecsBeforeSubstitution, basePathForFileNames) || validatedIncludeSpecsBeforeSubstitution;
86038
86158
  }
86039
86159
  if (excludeSpecs) {
86040
- validatedExcludeSpecsBeforeSubstitution = validateSpecs(excludeSpecs, errors3, false, sourceFile, "exclude");
86160
+ validatedExcludeSpecsBeforeSubstitution = validateSpecs(excludeSpecs, errors4, false, sourceFile, "exclude");
86041
86161
  validatedExcludeSpecs = getSubstitutedStringArrayWithConfigDirTemplate(validatedExcludeSpecsBeforeSubstitution, basePathForFileNames) || validatedExcludeSpecsBeforeSubstitution;
86042
86162
  }
86043
86163
  const validatedFilesSpecBeforeSubstitution = filter2(filesSpecs, isString);
@@ -86058,7 +86178,7 @@ ${lanes.join(`
86058
86178
  function getFileNames(basePath2) {
86059
86179
  const fileNames = getFileNamesFromConfigSpecs(configFileSpecs, basePath2, options, host, extraFileExtensions);
86060
86180
  if (shouldReportNoInputFiles(fileNames, canJsonReportNoInputFiles(raw), resolutionStack)) {
86061
- errors3.push(getErrorForNoInputFiles(configFileSpecs, configFileName));
86181
+ errors4.push(getErrorForNoInputFiles(configFileSpecs, configFileName));
86062
86182
  }
86063
86183
  return fileNames;
86064
86184
  }
@@ -86092,7 +86212,7 @@ ${lanes.join(`
86092
86212
  if (isArray(raw[prop])) {
86093
86213
  const result = raw[prop];
86094
86214
  if (!sourceFile && !every(result, validateElement)) {
86095
- errors3.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName));
86215
+ errors4.push(createCompilerDiagnostic(Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName));
86096
86216
  }
86097
86217
  return result;
86098
86218
  } else {
@@ -86104,7 +86224,7 @@ ${lanes.join(`
86104
86224
  }
86105
86225
  function createCompilerDiagnosticOnlyIfJson(message, ...args) {
86106
86226
  if (!sourceFile) {
86107
- errors3.push(createCompilerDiagnostic(message, ...args));
86227
+ errors4.push(createCompilerDiagnostic(message, ...args));
86108
86228
  }
86109
86229
  }
86110
86230
  }
@@ -86205,15 +86325,15 @@ ${lanes.join(`
86205
86325
  function isSuccessfulParsedTsconfig(value2) {
86206
86326
  return !!value2.options;
86207
86327
  }
86208
- function parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors3, extendedConfigCache) {
86328
+ function parseConfig(json2, sourceFile, host, basePath, configFileName, resolutionStack, errors4, extendedConfigCache) {
86209
86329
  var _a;
86210
86330
  basePath = normalizeSlashes(basePath);
86211
86331
  const resolvedPath = getNormalizedAbsolutePath(configFileName || "", basePath);
86212
86332
  if (resolutionStack.includes(resolvedPath)) {
86213
- errors3.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(" -> ")));
86214
- return { raw: json2 || convertToObject(sourceFile, errors3) };
86333
+ errors4.push(createCompilerDiagnostic(Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, [...resolutionStack, resolvedPath].join(" -> ")));
86334
+ return { raw: json2 || convertToObject(sourceFile, errors4) };
86215
86335
  }
86216
- const ownConfig = json2 ? parseOwnConfigOfJson(json2, host, basePath, configFileName, errors3) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors3);
86336
+ const ownConfig = json2 ? parseOwnConfigOfJson(json2, host, basePath, configFileName, errors4) : parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors4);
86217
86337
  if ((_a = ownConfig.options) == null ? undefined : _a.paths) {
86218
86338
  ownConfig.options.pathsBasePath = basePath;
86219
86339
  }
@@ -86240,7 +86360,7 @@ ${lanes.join(`
86240
86360
  }
86241
86361
  return ownConfig;
86242
86362
  function applyExtendedConfig(result, extendedConfigPath) {
86243
- const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors3, extendedConfigCache, result);
86363
+ const extendedConfig = getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors4, extendedConfigCache, result);
86244
86364
  if (extendedConfig && isSuccessfulParsedTsconfig(extendedConfig)) {
86245
86365
  const extendsRaw = extendedConfig.raw;
86246
86366
  let relativeDifference;
@@ -86268,55 +86388,55 @@ ${lanes.join(`
86268
86388
  return assign({}, result.watchOptions, watchOptions);
86269
86389
  }
86270
86390
  }
86271
- function parseOwnConfigOfJson(json2, host, basePath, configFileName, errors3) {
86391
+ function parseOwnConfigOfJson(json2, host, basePath, configFileName, errors4) {
86272
86392
  if (hasProperty(json2, "excludes")) {
86273
- errors3.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86393
+ errors4.push(createCompilerDiagnostic(Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86274
86394
  }
86275
- const options = convertCompilerOptionsFromJsonWorker(json2.compilerOptions, basePath, errors3, configFileName);
86276
- const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json2.typeAcquisition, basePath, errors3, configFileName);
86277
- const watchOptions = convertWatchOptionsFromJsonWorker(json2.watchOptions, basePath, errors3);
86278
- json2.compileOnSave = convertCompileOnSaveOptionFromJson(json2, basePath, errors3);
86279
- const extendedConfigPath = json2.extends || json2.extends === "" ? getExtendsConfigPathOrArray(json2.extends, host, basePath, configFileName, errors3) : undefined;
86395
+ const options = convertCompilerOptionsFromJsonWorker(json2.compilerOptions, basePath, errors4, configFileName);
86396
+ const typeAcquisition = convertTypeAcquisitionFromJsonWorker(json2.typeAcquisition, basePath, errors4, configFileName);
86397
+ const watchOptions = convertWatchOptionsFromJsonWorker(json2.watchOptions, basePath, errors4);
86398
+ json2.compileOnSave = convertCompileOnSaveOptionFromJson(json2, basePath, errors4);
86399
+ const extendedConfigPath = json2.extends || json2.extends === "" ? getExtendsConfigPathOrArray(json2.extends, host, basePath, configFileName, errors4) : undefined;
86280
86400
  return { raw: json2, options, watchOptions, typeAcquisition, extendedConfigPath };
86281
86401
  }
86282
- function getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors3, propertyAssignment, valueExpression, sourceFile) {
86402
+ function getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors4, propertyAssignment, valueExpression, sourceFile) {
86283
86403
  let extendedConfigPath;
86284
86404
  const newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath;
86285
86405
  if (isString(value2)) {
86286
- extendedConfigPath = getExtendsConfigPath(value2, host, newBase, errors3, valueExpression, sourceFile);
86406
+ extendedConfigPath = getExtendsConfigPath(value2, host, newBase, errors4, valueExpression, sourceFile);
86287
86407
  } else if (isArray(value2)) {
86288
86408
  extendedConfigPath = [];
86289
86409
  for (let index = 0;index < value2.length; index++) {
86290
86410
  const fileName = value2[index];
86291
86411
  if (isString(fileName)) {
86292
- extendedConfigPath = append(extendedConfigPath, getExtendsConfigPath(fileName, host, newBase, errors3, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile));
86412
+ extendedConfigPath = append(extendedConfigPath, getExtendsConfigPath(fileName, host, newBase, errors4, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile));
86293
86413
  } else {
86294
- convertJsonOption(extendsOptionDeclaration.element, value2, basePath, errors3, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile);
86414
+ convertJsonOption(extendsOptionDeclaration.element, value2, basePath, errors4, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile);
86295
86415
  }
86296
86416
  }
86297
86417
  } else {
86298
- convertJsonOption(extendsOptionDeclaration, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile);
86418
+ convertJsonOption(extendsOptionDeclaration, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile);
86299
86419
  }
86300
86420
  return extendedConfigPath;
86301
86421
  }
86302
- function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors3) {
86422
+ function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors4) {
86303
86423
  const options = getDefaultCompilerOptions(configFileName);
86304
86424
  let typeAcquisition;
86305
86425
  let watchOptions;
86306
86426
  let extendedConfigPath;
86307
86427
  let rootCompilerOptions;
86308
86428
  const rootOptions = getTsconfigRootOptionsMap();
86309
- const json2 = convertConfigFileToObject(sourceFile, errors3, { rootOptions, onPropertySet });
86429
+ const json2 = convertConfigFileToObject(sourceFile, errors4, { rootOptions, onPropertySet });
86310
86430
  if (!typeAcquisition) {
86311
86431
  typeAcquisition = getDefaultTypeAcquisition(configFileName);
86312
86432
  }
86313
86433
  if (rootCompilerOptions && json2 && json2.compilerOptions === undefined) {
86314
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0])));
86434
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, rootCompilerOptions[0], Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file, getTextOfPropertyName(rootCompilerOptions[0])));
86315
86435
  }
86316
86436
  return { raw: json2, options, watchOptions, typeAcquisition, extendedConfigPath };
86317
86437
  function onPropertySet(keyText, value2, propertyAssignment, parentOption, option) {
86318
86438
  if (option && option !== extendsOptionDeclaration)
86319
- value2 = convertJsonOption(option, value2, basePath, errors3, propertyAssignment, propertyAssignment.initializer, sourceFile);
86439
+ value2 = convertJsonOption(option, value2, basePath, errors4, propertyAssignment, propertyAssignment.initializer, sourceFile);
86320
86440
  if (parentOption == null ? undefined : parentOption.name) {
86321
86441
  if (option) {
86322
86442
  let currentOption;
@@ -86331,17 +86451,17 @@ ${lanes.join(`
86331
86451
  currentOption[option.name] = value2;
86332
86452
  } else if (keyText && (parentOption == null ? undefined : parentOption.extraKeyDiagnostics)) {
86333
86453
  if (parentOption.elementOptions) {
86334
- errors3.push(createUnknownOptionError(keyText, parentOption.extraKeyDiagnostics, undefined, propertyAssignment.name, sourceFile));
86454
+ errors4.push(createUnknownOptionError(keyText, parentOption.extraKeyDiagnostics, undefined, propertyAssignment.name, sourceFile));
86335
86455
  } else {
86336
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText));
86456
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, parentOption.extraKeyDiagnostics.unknownOptionDiagnostic, keyText));
86337
86457
  }
86338
86458
  }
86339
86459
  } else if (parentOption === rootOptions) {
86340
86460
  if (option === extendsOptionDeclaration) {
86341
- extendedConfigPath = getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors3, propertyAssignment, propertyAssignment.initializer, sourceFile);
86461
+ extendedConfigPath = getExtendsConfigPathOrArray(value2, host, basePath, configFileName, errors4, propertyAssignment, propertyAssignment.initializer, sourceFile);
86342
86462
  } else if (!option) {
86343
86463
  if (keyText === "excludes") {
86344
- errors3.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86464
+ errors4.push(createDiagnosticForNodeInSourceFile(sourceFile, propertyAssignment.name, Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));
86345
86465
  }
86346
86466
  if (find(commandOptionsWithoutBuild, (opt) => opt.name === keyText)) {
86347
86467
  rootCompilerOptions = append(rootCompilerOptions, propertyAssignment.name);
@@ -86350,14 +86470,14 @@ ${lanes.join(`
86350
86470
  }
86351
86471
  }
86352
86472
  }
86353
- function getExtendsConfigPath(extendedConfig, host, basePath, errors3, valueExpression, sourceFile) {
86473
+ function getExtendsConfigPath(extendedConfig, host, basePath, errors4, valueExpression, sourceFile) {
86354
86474
  extendedConfig = normalizeSlashes(extendedConfig);
86355
86475
  if (isRootedDiskPath(extendedConfig) || startsWith(extendedConfig, "./") || startsWith(extendedConfig, "../")) {
86356
86476
  let extendedConfigPath = getNormalizedAbsolutePath(extendedConfig, basePath);
86357
86477
  if (!host.fileExists(extendedConfigPath) && !endsWith(extendedConfigPath, ".json")) {
86358
86478
  extendedConfigPath = `${extendedConfigPath}.json`;
86359
86479
  if (!host.fileExists(extendedConfigPath)) {
86360
- errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86480
+ errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86361
86481
  return;
86362
86482
  }
86363
86483
  }
@@ -86368,13 +86488,13 @@ ${lanes.join(`
86368
86488
  return resolved.resolvedModule.resolvedFileName;
86369
86489
  }
86370
86490
  if (extendedConfig === "") {
86371
- errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, "extends"));
86491
+ errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_cannot_be_given_an_empty_string, "extends"));
86372
86492
  } else {
86373
- errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86493
+ errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.File_0_not_found, extendedConfig));
86374
86494
  }
86375
86495
  return;
86376
86496
  }
86377
- function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors3, extendedConfigCache, result) {
86497
+ function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors4, extendedConfigCache, result) {
86378
86498
  const path5 = host.useCaseSensitiveFileNames ? extendedConfigPath : toFileNameLowerCase(extendedConfigPath);
86379
86499
  let value2;
86380
86500
  let extendedResult;
@@ -86384,7 +86504,7 @@ ${lanes.join(`
86384
86504
  } else {
86385
86505
  extendedResult = readJsonConfigFile(extendedConfigPath, (path22) => host.readFile(path22));
86386
86506
  if (!extendedResult.parseDiagnostics.length) {
86387
- extendedConfig = parseConfig(undefined, extendedResult, host, getDirectoryPath(extendedConfigPath), getBaseFileName(extendedConfigPath), resolutionStack, errors3, extendedConfigCache);
86507
+ extendedConfig = parseConfig(undefined, extendedResult, host, getDirectoryPath(extendedConfigPath), getBaseFileName(extendedConfigPath), resolutionStack, errors4, extendedConfigCache);
86388
86508
  }
86389
86509
  if (extendedConfigCache) {
86390
86510
  extendedConfigCache.set(path5, { extendedResult, extendedConfig });
@@ -86399,35 +86519,35 @@ ${lanes.join(`
86399
86519
  }
86400
86520
  }
86401
86521
  if (extendedResult.parseDiagnostics.length) {
86402
- errors3.push(...extendedResult.parseDiagnostics);
86522
+ errors4.push(...extendedResult.parseDiagnostics);
86403
86523
  return;
86404
86524
  }
86405
86525
  return extendedConfig;
86406
86526
  }
86407
- function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors3) {
86527
+ function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors4) {
86408
86528
  if (!hasProperty(jsonOption, compileOnSaveCommandLineOption.name)) {
86409
86529
  return false;
86410
86530
  }
86411
- const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors3);
86531
+ const result = convertJsonOption(compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors4);
86412
86532
  return typeof result === "boolean" && result;
86413
86533
  }
86414
86534
  function convertCompilerOptionsFromJson(jsonOptions, basePath, configFileName) {
86415
- const errors3 = [];
86416
- const options = convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors3, configFileName);
86417
- return { options, errors: errors3 };
86535
+ const errors4 = [];
86536
+ const options = convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors4, configFileName);
86537
+ return { options, errors: errors4 };
86418
86538
  }
86419
86539
  function convertTypeAcquisitionFromJson(jsonOptions, basePath, configFileName) {
86420
- const errors3 = [];
86421
- const options = convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors3, configFileName);
86422
- return { options, errors: errors3 };
86540
+ const errors4 = [];
86541
+ const options = convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors4, configFileName);
86542
+ return { options, errors: errors4 };
86423
86543
  }
86424
86544
  function getDefaultCompilerOptions(configFileName) {
86425
86545
  const options = configFileName && getBaseFileName(configFileName) === "jsconfig.json" ? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true } : {};
86426
86546
  return options;
86427
86547
  }
86428
- function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors3, configFileName) {
86548
+ function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors4, configFileName) {
86429
86549
  const options = getDefaultCompilerOptions(configFileName);
86430
- convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors3);
86550
+ convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, compilerOptionsDidYouMeanDiagnostics, errors4);
86431
86551
  if (configFileName) {
86432
86552
  options.configFilePath = normalizeSlashes(configFileName);
86433
86553
  }
@@ -86436,24 +86556,24 @@ ${lanes.join(`
86436
86556
  function getDefaultTypeAcquisition(configFileName) {
86437
86557
  return { enable: !!configFileName && getBaseFileName(configFileName) === "jsconfig.json", include: [], exclude: [] };
86438
86558
  }
86439
- function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors3, configFileName) {
86559
+ function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors4, configFileName) {
86440
86560
  const options = getDefaultTypeAcquisition(configFileName);
86441
- convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors3);
86561
+ convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), jsonOptions, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors4);
86442
86562
  return options;
86443
86563
  }
86444
- function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors3) {
86445
- return convertOptionsFromJson(getCommandLineWatchOptionsMap(), jsonOptions, basePath, undefined, watchOptionsDidYouMeanDiagnostics, errors3);
86564
+ function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors4) {
86565
+ return convertOptionsFromJson(getCommandLineWatchOptionsMap(), jsonOptions, basePath, undefined, watchOptionsDidYouMeanDiagnostics, errors4);
86446
86566
  }
86447
- function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors3) {
86567
+ function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors4) {
86448
86568
  if (!jsonOptions) {
86449
86569
  return;
86450
86570
  }
86451
86571
  for (const id in jsonOptions) {
86452
86572
  const opt = optionsNameMap.get(id);
86453
86573
  if (opt) {
86454
- (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors3);
86574
+ (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors4);
86455
86575
  } else {
86456
- errors3.push(createUnknownOptionError(id, diagnostics));
86576
+ errors4.push(createUnknownOptionError(id, diagnostics));
86457
86577
  }
86458
86578
  }
86459
86579
  return defaultOptions;
@@ -86461,24 +86581,24 @@ ${lanes.join(`
86461
86581
  function createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, message, ...args) {
86462
86582
  return sourceFile && node ? createDiagnosticForNodeInSourceFile(sourceFile, node, message, ...args) : createCompilerDiagnostic(message, ...args);
86463
86583
  }
86464
- function convertJsonOption(opt, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile) {
86584
+ function convertJsonOption(opt, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile) {
86465
86585
  if (opt.isCommandLineOnly) {
86466
- errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, propertyAssignment == null ? undefined : propertyAssignment.name, Diagnostics.Option_0_can_only_be_specified_on_command_line, opt.name));
86586
+ errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, propertyAssignment == null ? undefined : propertyAssignment.name, Diagnostics.Option_0_can_only_be_specified_on_command_line, opt.name));
86467
86587
  return;
86468
86588
  }
86469
86589
  if (isCompilerOptionsValue(opt, value2)) {
86470
86590
  const optType = opt.type;
86471
86591
  if (optType === "list" && isArray(value2)) {
86472
- return convertJsonOptionOfListType(opt, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile);
86592
+ return convertJsonOptionOfListType(opt, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile);
86473
86593
  } else if (optType === "listOrElement") {
86474
- return isArray(value2) ? convertJsonOptionOfListType(opt, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile) : convertJsonOption(opt.element, value2, basePath, errors3, propertyAssignment, valueExpression, sourceFile);
86594
+ return isArray(value2) ? convertJsonOptionOfListType(opt, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile) : convertJsonOption(opt.element, value2, basePath, errors4, propertyAssignment, valueExpression, sourceFile);
86475
86595
  } else if (!isString(opt.type)) {
86476
- return convertJsonOptionOfCustomType(opt, value2, errors3, valueExpression, sourceFile);
86596
+ return convertJsonOptionOfCustomType(opt, value2, errors4, valueExpression, sourceFile);
86477
86597
  }
86478
- const validatedValue = validateJsonOptionValue(opt, value2, errors3, valueExpression, sourceFile);
86598
+ const validatedValue = validateJsonOptionValue(opt, value2, errors4, valueExpression, sourceFile);
86479
86599
  return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue);
86480
86600
  } else {
86481
- errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt)));
86601
+ errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt)));
86482
86602
  }
86483
86603
  }
86484
86604
  function normalizeNonListOptionValue(option, basePath, value2) {
@@ -86491,29 +86611,29 @@ ${lanes.join(`
86491
86611
  }
86492
86612
  return value2;
86493
86613
  }
86494
- function validateJsonOptionValue(opt, value2, errors3, valueExpression, sourceFile) {
86614
+ function validateJsonOptionValue(opt, value2, errors4, valueExpression, sourceFile) {
86495
86615
  var _a;
86496
86616
  if (isNullOrUndefined(value2))
86497
86617
  return;
86498
86618
  const d = (_a = opt.extraValidation) == null ? undefined : _a.call(opt, value2);
86499
86619
  if (!d)
86500
86620
  return value2;
86501
- errors3.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, ...d));
86621
+ errors4.push(createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, ...d));
86502
86622
  return;
86503
86623
  }
86504
- function convertJsonOptionOfCustomType(opt, value2, errors3, valueExpression, sourceFile) {
86624
+ function convertJsonOptionOfCustomType(opt, value2, errors4, valueExpression, sourceFile) {
86505
86625
  if (isNullOrUndefined(value2))
86506
86626
  return;
86507
86627
  const key = value2.toLowerCase();
86508
86628
  const val = opt.type.get(key);
86509
86629
  if (val !== undefined) {
86510
- return validateJsonOptionValue(opt, val, errors3, valueExpression, sourceFile);
86630
+ return validateJsonOptionValue(opt, val, errors4, valueExpression, sourceFile);
86511
86631
  } else {
86512
- errors3.push(createDiagnosticForInvalidCustomType(opt, (message, ...args) => createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, message, ...args)));
86632
+ errors4.push(createDiagnosticForInvalidCustomType(opt, (message, ...args) => createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, valueExpression, message, ...args)));
86513
86633
  }
86514
86634
  }
86515
- function convertJsonOptionOfListType(option, values, basePath, errors3, propertyAssignment, valueExpression, sourceFile) {
86516
- return filter2(map2(values, (v, index) => convertJsonOption(option.element, v, basePath, errors3, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v);
86635
+ function convertJsonOptionOfListType(option, values, basePath, errors4, propertyAssignment, valueExpression, sourceFile) {
86636
+ return filter2(map2(values, (v, index) => convertJsonOption(option.element, v, basePath, errors4, propertyAssignment, valueExpression == null ? undefined : valueExpression.elements[index], sourceFile)), (v) => option.listPreserveFalsyValues ? true : !!v);
86517
86637
  }
86518
86638
  var invalidTrailingRecursionPattern = /(?:^|\/)\*\*\/?$/;
86519
86639
  var wildcardDirectoryPattern = /^[^*?]*(?=\/[^/]*[*?])/;
@@ -86598,13 +86718,13 @@ ${lanes.join(`
86598
86718
  return true;
86599
86719
  return !hasExtension(pathToCheck) && excludeRegex.test(ensureTrailingDirectorySeparator(pathToCheck));
86600
86720
  }
86601
- function validateSpecs(specs, errors3, disallowTrailingRecursion, jsonSourceFile, specKey) {
86721
+ function validateSpecs(specs, errors4, disallowTrailingRecursion, jsonSourceFile, specKey) {
86602
86722
  return specs.filter((spec) => {
86603
86723
  if (!isString(spec))
86604
86724
  return false;
86605
86725
  const diag2 = specToDiagnostic(spec, disallowTrailingRecursion);
86606
86726
  if (diag2 !== undefined) {
86607
- errors3.push(createDiagnostic(...diag2));
86727
+ errors4.push(createDiagnostic(...diag2));
86608
86728
  }
86609
86729
  return diag2 === undefined;
86610
86730
  });
@@ -98665,7 +98785,7 @@ ${lanes.join(`
98665
98785
  const index = findIndex(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !d.attributes && !!d.exportClause && isNamedExports(d.exportClause));
98666
98786
  if (index >= 0) {
98667
98787
  const exportDecl = statements[index];
98668
- const replacements = mapDefined(exportDecl.exportClause.elements, (e3) => {
98788
+ const replacements2 = mapDefined(exportDecl.exportClause.elements, (e3) => {
98669
98789
  if (!e3.propertyName && e3.name.kind !== 11) {
98670
98790
  const name2 = e3.name;
98671
98791
  const indices = indicesOf(statements);
@@ -98679,10 +98799,10 @@ ${lanes.join(`
98679
98799
  }
98680
98800
  return e3;
98681
98801
  });
98682
- if (!length(replacements)) {
98802
+ if (!length(replacements2)) {
98683
98803
  orderedRemoveItemAt(statements, index);
98684
98804
  } else {
98685
- statements[index] = factory.updateExportDeclaration(exportDecl, exportDecl.modifiers, exportDecl.isTypeOnly, factory.updateNamedExports(exportDecl.exportClause, replacements), exportDecl.moduleSpecifier, exportDecl.attributes);
98805
+ statements[index] = factory.updateExportDeclaration(exportDecl, exportDecl.modifiers, exportDecl.isTypeOnly, factory.updateNamedExports(exportDecl.exportClause, replacements2), exportDecl.moduleSpecifier, exportDecl.attributes);
98686
98806
  }
98687
98807
  }
98688
98808
  return statements;
@@ -153105,19 +153225,19 @@ ${lanes.join(`
153105
153225
  }
153106
153226
  function formatCodeSpan(file2, start, length2, indent3, squiggleColor, host) {
153107
153227
  const { line: firstLine, character: firstLineChar } = getLineAndCharacterOfPosition(file2, start);
153108
- const { line: lastLine, character: lastLineChar } = getLineAndCharacterOfPosition(file2, start + length2);
153228
+ const { line: lastLine2, character: lastLineChar } = getLineAndCharacterOfPosition(file2, start + length2);
153109
153229
  const lastLineInFile = getLineAndCharacterOfPosition(file2, file2.text.length).line;
153110
- const hasMoreThanFiveLines = lastLine - firstLine >= 4;
153111
- let gutterWidth = (lastLine + 1 + "").length;
153230
+ const hasMoreThanFiveLines = lastLine2 - firstLine >= 4;
153231
+ let gutterWidth = (lastLine2 + 1 + "").length;
153112
153232
  if (hasMoreThanFiveLines) {
153113
153233
  gutterWidth = Math.max(ellipsis.length, gutterWidth);
153114
153234
  }
153115
153235
  let context = "";
153116
- for (let i2 = firstLine;i2 <= lastLine; i2++) {
153236
+ for (let i2 = firstLine;i2 <= lastLine2; i2++) {
153117
153237
  context += host.getNewLine();
153118
- if (hasMoreThanFiveLines && firstLine + 1 < i2 && i2 < lastLine - 1) {
153238
+ if (hasMoreThanFiveLines && firstLine + 1 < i2 && i2 < lastLine2 - 1) {
153119
153239
  context += indent3 + formatColorAndReset(ellipsis.padStart(gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();
153120
- i2 = lastLine - 1;
153240
+ i2 = lastLine2 - 1;
153121
153241
  }
153122
153242
  const lineStart = getPositionOfLineAndCharacter(file2, i2, 0);
153123
153243
  const lineEnd = i2 < lastLineInFile ? getPositionOfLineAndCharacter(file2, i2 + 1, 0) : file2.text.length;
@@ -153129,10 +153249,10 @@ ${lanes.join(`
153129
153249
  context += indent3 + formatColorAndReset("".padStart(gutterWidth), gutterStyleSequence) + gutterSeparator;
153130
153250
  context += squiggleColor;
153131
153251
  if (i2 === firstLine) {
153132
- const lastCharForLine = i2 === lastLine ? lastLineChar : undefined;
153252
+ const lastCharForLine = i2 === lastLine2 ? lastLineChar : undefined;
153133
153253
  context += lineContent.slice(0, firstLineChar).replace(/\S/g, " ");
153134
153254
  context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, "~");
153135
- } else if (i2 === lastLine) {
153255
+ } else if (i2 === lastLine2) {
153136
153256
  context += lineContent.slice(0, lastLineChar).replace(/./g, "~");
153137
153257
  } else {
153138
153258
  context += lineContent.replace(/./g, "~");
@@ -161552,14 +161672,14 @@ ${lanes.join(`
161552
161672
  var _a, _b;
161553
161673
  (_b = (_a = state.hostWithWatch).onWatchStatusChange) == null || _b.call(_a, createCompilerDiagnostic(message, ...args), state.host.getNewLine(), state.baseCompilerOptions);
161554
161674
  }
161555
- function reportErrors({ host }, errors3) {
161556
- errors3.forEach((err) => host.reportDiagnostic(err));
161675
+ function reportErrors({ host }, errors4) {
161676
+ errors4.forEach((err) => host.reportDiagnostic(err));
161557
161677
  }
161558
- function reportAndStoreErrors(state, proj, errors3) {
161559
- reportErrors(state, errors3);
161678
+ function reportAndStoreErrors(state, proj, errors4) {
161679
+ reportErrors(state, errors4);
161560
161680
  state.projectErrorsReported.set(proj, true);
161561
- if (errors3.length) {
161562
- state.diagnostics.set(proj, errors3);
161681
+ if (errors4.length) {
161682
+ state.diagnostics.set(proj, errors4);
161563
161683
  }
161564
161684
  }
161565
161685
  function reportParseConfigFileDiagnostic(state, proj) {
@@ -161759,7 +161879,7 @@ ${lanes.join(`
161759
161879
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
161760
161880
  var _a;
161761
161881
  const text = [];
161762
- const colors = createColors(sys2);
161882
+ const colors2 = createColors(sys2);
161763
161883
  const name2 = getDisplayNameTextOfOption(option);
161764
161884
  const valueCandidates = getValueCandidate(option);
161765
161885
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -161780,7 +161900,7 @@ ${lanes.join(`
161780
161900
  }
161781
161901
  text.push(sys2.newLine);
161782
161902
  } else {
161783
- text.push(colors.blue(name2), sys2.newLine);
161903
+ text.push(colors2.blue(name2), sys2.newLine);
161784
161904
  if (option.description) {
161785
161905
  const description3 = getDiagnosticText(option.description);
161786
161906
  text.push(description3);
@@ -161825,7 +161945,7 @@ ${lanes.join(`
161825
161945
  if (isFirstLine) {
161826
161946
  curLeft = left.padStart(rightAlignOfLeft2);
161827
161947
  curLeft = curLeft.padEnd(leftAlignOfRight2);
161828
- curLeft = colorLeft ? colors.blue(curLeft) : curLeft;
161948
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
161829
161949
  } else {
161830
161950
  curLeft = "".padStart(leftAlignOfRight2);
161831
161951
  }
@@ -161937,9 +162057,9 @@ ${lanes.join(`
161937
162057
  return res;
161938
162058
  }
161939
162059
  function printEasyHelp(sys2, simpleOptions) {
161940
- const colors = createColors(sys2);
162060
+ const colors2 = createColors(sys2);
161941
162061
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version2)}`)];
161942
- output.push(colors.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
162062
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161943
162063
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
161944
162064
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
161945
162065
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -161960,7 +162080,7 @@ ${lanes.join(`
161960
162080
  function example(ex, desc) {
161961
162081
  const examples = typeof ex === "string" ? [ex] : ex;
161962
162082
  for (const example2 of examples) {
161963
- output.push(" " + colors.blue(example2) + sys2.newLine);
162083
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
161964
162084
  }
161965
162085
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
161966
162086
  }
@@ -161983,12 +162103,12 @@ ${lanes.join(`
161983
162103
  }
161984
162104
  function getHeader(sys2, message) {
161985
162105
  var _a;
161986
- const colors = createColors(sys2);
162106
+ const colors2 = createColors(sys2);
161987
162107
  const header = [];
161988
162108
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
161989
162109
  const tsIconLength = 5;
161990
- const tsIconFirstLine = colors.blueBackground("".padStart(tsIconLength));
161991
- const tsIconSecondLine = colors.blueBackground(colors.brightWhite("TS ".padStart(tsIconLength)));
162110
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
162111
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
161992
162112
  if (terminalWidth >= message.length + tsIconLength) {
161993
162113
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
161994
162114
  const leftAlign = rightAlign - tsIconLength;
@@ -162115,11 +162235,11 @@ ${lanes.join(`
162115
162235
  }
162116
162236
  function executeCommandLine(system, cb, commandLineArgs) {
162117
162237
  if (isBuildCommand(commandLineArgs)) {
162118
- const { buildOptions, watchOptions, projects, errors: errors3 } = parseBuildCommand(commandLineArgs);
162238
+ const { buildOptions, watchOptions, projects, errors: errors4 } = parseBuildCommand(commandLineArgs);
162119
162239
  if (buildOptions.generateCpuProfile && system.enableCPUProfiler) {
162120
- system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild(system, cb, buildOptions, watchOptions, projects, errors3));
162240
+ system.enableCPUProfiler(buildOptions.generateCpuProfile, () => performBuild(system, cb, buildOptions, watchOptions, projects, errors4));
162121
162241
  } else {
162122
- return performBuild(system, cb, buildOptions, watchOptions, projects, errors3);
162242
+ return performBuild(system, cb, buildOptions, watchOptions, projects, errors4);
162123
162243
  }
162124
162244
  }
162125
162245
  const commandLine = parseCommandLine(commandLineArgs, (path5) => system.readFile(path5));
@@ -162138,13 +162258,13 @@ ${lanes.join(`
162138
162258
  return false;
162139
162259
  }
162140
162260
  var defaultJSDocParsingMode = 2;
162141
- function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors3) {
162261
+ function performBuild(sys2, cb, buildOptions, watchOptions, projects, errors4) {
162142
162262
  const reportDiagnostic = updateReportDiagnostic(sys2, createDiagnosticReporter(sys2), buildOptions);
162143
162263
  if (buildOptions.locale) {
162144
- validateLocaleAndSetLanguage(buildOptions.locale, sys2, errors3);
162264
+ validateLocaleAndSetLanguage(buildOptions.locale, sys2, errors4);
162145
162265
  }
162146
- if (errors3.length > 0) {
162147
- errors3.forEach(reportDiagnostic);
162266
+ if (errors4.length > 0) {
162267
+ errors4.forEach(reportDiagnostic);
162148
162268
  return sys2.exit(1);
162149
162269
  }
162150
162270
  if (buildOptions.help) {
@@ -172499,11 +172619,11 @@ ${newComment.split(`
172499
172619
  return emptyArray;
172500
172620
  const { selectedVariableDeclaration, func } = info;
172501
172621
  const possibleActions = [];
172502
- const errors3 = [];
172622
+ const errors4 = [];
172503
172623
  if (refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) {
172504
172624
  const error210 = selectedVariableDeclaration || isArrowFunction(func) && isVariableDeclaration(func.parent) ? undefined : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_named_function);
172505
172625
  if (error210) {
172506
- errors3.push({ ...toNamedFunctionAction, notApplicableReason: error210 });
172626
+ errors4.push({ ...toNamedFunctionAction, notApplicableReason: error210 });
172507
172627
  } else {
172508
172628
  possibleActions.push(toNamedFunctionAction);
172509
172629
  }
@@ -172511,7 +172631,7 @@ ${newComment.split(`
172511
172631
  if (refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) {
172512
172632
  const error210 = !selectedVariableDeclaration && isArrowFunction(func) ? undefined : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_anonymous_function);
172513
172633
  if (error210) {
172514
- errors3.push({ ...toAnonymousFunctionAction, notApplicableReason: error210 });
172634
+ errors4.push({ ...toAnonymousFunctionAction, notApplicableReason: error210 });
172515
172635
  } else {
172516
172636
  possibleActions.push(toAnonymousFunctionAction);
172517
172637
  }
@@ -172519,7 +172639,7 @@ ${newComment.split(`
172519
172639
  if (refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) {
172520
172640
  const error210 = isFunctionExpression(func) ? undefined : getLocaleSpecificMessage(Diagnostics.Could_not_convert_to_arrow_function);
172521
172641
  if (error210) {
172522
- errors3.push({ ...toArrowFunctionAction, notApplicableReason: error210 });
172642
+ errors4.push({ ...toArrowFunctionAction, notApplicableReason: error210 });
172523
172643
  } else {
172524
172644
  possibleActions.push(toArrowFunctionAction);
172525
172645
  }
@@ -172527,7 +172647,7 @@ ${newComment.split(`
172527
172647
  return [{
172528
172648
  name: refactorName8,
172529
172649
  description: refactorDescription4,
172530
- actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors3 : possibleActions
172650
+ actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ? errors4 : possibleActions
172531
172651
  }];
172532
172652
  }
172533
172653
  function getRefactorEditsToConvertFunctionExpressions(context, actionName2) {
@@ -173552,22 +173672,22 @@ ${newComment.split(`
173552
173672
  if (!rangeToExtract.errors || rangeToExtract.errors.length === 0 || !context.preferences.provideRefactorNotApplicableReason) {
173553
173673
  return emptyArray;
173554
173674
  }
173555
- const errors3 = [];
173675
+ const errors4 = [];
173556
173676
  if (refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) {
173557
- errors3.push({
173677
+ errors4.push({
173558
173678
  name: refactorName12,
173559
173679
  description: extractFunctionAction.description,
173560
173680
  actions: [{ ...extractFunctionAction, notApplicableReason: getStringError(rangeToExtract.errors) }]
173561
173681
  });
173562
173682
  }
173563
173683
  if (refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) {
173564
- errors3.push({
173684
+ errors4.push({
173565
173685
  name: refactorName12,
173566
173686
  description: extractConstantAction.description,
173567
173687
  actions: [{ ...extractConstantAction, notApplicableReason: getStringError(rangeToExtract.errors) }]
173568
173688
  });
173569
173689
  }
173570
- return errors3;
173690
+ return errors4;
173571
173691
  }
173572
173692
  const { affectedTextRange, extractions } = getPossibleExtractions(targetRange, context);
173573
173693
  if (extractions === undefined) {
@@ -173659,8 +173779,8 @@ ${newComment.split(`
173659
173779
  });
173660
173780
  }
173661
173781
  return infos.length ? infos : emptyArray;
173662
- function getStringError(errors3) {
173663
- let error210 = errors3[0].messageText;
173782
+ function getStringError(errors4) {
173783
+ let error210 = errors4[0].messageText;
173664
173784
  if (typeof error210 !== "string") {
173665
173785
  error210 = error210.messageText;
173666
173786
  }
@@ -173771,9 +173891,9 @@ ${newComment.split(`
173771
173891
  return { errors: [createFileDiagnostic(sourceFile, span.start, length2, Messages.cannotExtractRange)] };
173772
173892
  }
173773
173893
  const node = refineNode(start);
173774
- const errors3 = checkRootNode(node) || checkNode(node);
173775
- if (errors3) {
173776
- return { errors: errors3 };
173894
+ const errors4 = checkRootNode(node) || checkNode(node);
173895
+ if (errors4) {
173896
+ return { errors: errors4 };
173777
173897
  }
173778
173898
  return { targetRange: { range: getStatementOrExpressionRange(node), facts: rangeFacts, thisNode } };
173779
173899
  function refineNode(node2) {
@@ -174730,11 +174850,11 @@ ${newComment.split(`
174730
174850
  }
174731
174851
  if (targetRange.facts & 2 && usage === 2) {
174732
174852
  const diag2 = createDiagnosticForNode(identifier, Messages.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);
174733
- for (const errors3 of functionErrorsPerScope) {
174734
- errors3.push(diag2);
174853
+ for (const errors4 of functionErrorsPerScope) {
174854
+ errors4.push(diag2);
174735
174855
  }
174736
- for (const errors3 of constantErrorsPerScope) {
174737
- errors3.push(diag2);
174856
+ for (const errors4 of constantErrorsPerScope) {
174857
+ errors4.push(diag2);
174738
174858
  }
174739
174859
  }
174740
174860
  for (let i2 = 0;i2 < scopes.length; i2++) {
@@ -176933,14 +177053,14 @@ ${newComment.split(`
176933
177053
  function toggleLineComment(fileName, textRange, insertComment) {
176934
177054
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
176935
177055
  const textChanges2 = [];
176936
- const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
177056
+ const { lineStarts, firstLine, lastLine: lastLine2 } = getLinesForRange(sourceFile, textRange);
176937
177057
  let isCommenting = insertComment || false;
176938
177058
  let leftMostPosition = Number.MAX_VALUE;
176939
177059
  const lineTextStarts = /* @__PURE__ */ new Map;
176940
177060
  const firstNonWhitespaceCharacterRegex = new RegExp(/\S/);
176941
177061
  const isJsx = isInsideJsxElement(sourceFile, lineStarts[firstLine]);
176942
177062
  const openComment = isJsx ? "{/*" : "//";
176943
- for (let i2 = firstLine;i2 <= lastLine; i2++) {
177063
+ for (let i2 = firstLine;i2 <= lastLine2; i2++) {
176944
177064
  const lineText = sourceFile.text.substring(lineStarts[i2], sourceFile.getLineEndOfPosition(lineStarts[i2]));
176945
177065
  const regExec = firstNonWhitespaceCharacterRegex.exec(lineText);
176946
177066
  if (regExec) {
@@ -176951,8 +177071,8 @@ ${newComment.split(`
176951
177071
  }
176952
177072
  }
176953
177073
  }
176954
- for (let i2 = firstLine;i2 <= lastLine; i2++) {
176955
- if (firstLine !== lastLine && lineStarts[i2] === textRange.end) {
177074
+ for (let i2 = firstLine;i2 <= lastLine2; i2++) {
177075
+ if (firstLine !== lastLine2 && lineStarts[i2] === textRange.end) {
176956
177076
  continue;
176957
177077
  }
176958
177078
  const lineTextStart = lineTextStarts.get(i2.toString());
@@ -177075,8 +177195,8 @@ ${newComment.split(`
177075
177195
  }
177076
177196
  function commentSelection(fileName, textRange) {
177077
177197
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
177078
- const { firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
177079
- return firstLine === lastLine && textRange.pos !== textRange.end ? toggleMultilineComment(fileName, textRange, true) : toggleLineComment(fileName, textRange, true);
177198
+ const { firstLine, lastLine: lastLine2 } = getLinesForRange(sourceFile, textRange);
177199
+ return firstLine === lastLine2 && textRange.pos !== textRange.end ? toggleMultilineComment(fileName, textRange, true) : toggleLineComment(fileName, textRange, true);
177080
177200
  }
177081
177201
  function uncommentSelection(fileName, textRange) {
177082
177202
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
@@ -200671,11 +200791,11 @@ ${options.prefix}` : `
200671
200791
  return n2;
200672
200792
  }
200673
200793
  }
200674
- function prepareRangeContainsErrorFunction(errors3, originalRange) {
200675
- if (!errors3.length) {
200794
+ function prepareRangeContainsErrorFunction(errors4, originalRange) {
200795
+ if (!errors4.length) {
200676
200796
  return rangeHasNoErrors;
200677
200797
  }
200678
- const sorted = errors3.filter((d) => rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length)).sort((e1, e22) => e1.start - e22.start);
200798
+ const sorted = errors4.filter((d) => rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length)).sort((e1, e22) => e1.start - e22.start);
200679
200799
  if (!sorted.length) {
200680
200800
  return rangeHasNoErrors;
200681
200801
  }
@@ -207665,15 +207785,15 @@ ${options.prefix}` : `
207665
207785
  }
207666
207786
  function convertWatchOptions(protocolOptions, currentDirectory) {
207667
207787
  let watchOptions;
207668
- let errors3;
207788
+ let errors4;
207669
207789
  optionsForWatch.forEach((option) => {
207670
207790
  const propertyValue = protocolOptions[option.name];
207671
207791
  if (propertyValue === undefined)
207672
207792
  return;
207673
207793
  const mappedValues = watchOptionsConverters.get(option.name);
207674
- (watchOptions || (watchOptions = {}))[option.name] = mappedValues ? isString(propertyValue) ? mappedValues.get(propertyValue.toLowerCase()) : propertyValue : convertJsonOption(option, propertyValue, currentDirectory || "", errors3 || (errors3 = []));
207794
+ (watchOptions || (watchOptions = {}))[option.name] = mappedValues ? isString(propertyValue) ? mappedValues.get(propertyValue.toLowerCase()) : propertyValue : convertJsonOption(option, propertyValue, currentDirectory || "", errors4 || (errors4 = []));
207675
207795
  });
207676
- return watchOptions && { watchOptions, errors: errors3 };
207796
+ return watchOptions && { watchOptions, errors: errors4 };
207677
207797
  }
207678
207798
  function convertTypeAcquisition(protocolOptions) {
207679
207799
  let result;
@@ -210904,7 +211024,7 @@ Dynamic files must always be opened with service's current directory or service
210904
211024
  `);
210905
211025
  const { code, source } = diag2;
210906
211026
  const category = diagnosticCategoryName(diag2);
210907
- const common = {
211027
+ const common2 = {
210908
211028
  start,
210909
211029
  end,
210910
211030
  text,
@@ -210915,7 +211035,7 @@ Dynamic files must always be opened with service's current directory or service
210915
211035
  source,
210916
211036
  relatedInformation: map2(diag2.relatedInformation, formatRelatedInformation)
210917
211037
  };
210918
- return includeFileName ? { ...common, fileName: diag2.file && diag2.file.fileName } : common;
211038
+ return includeFileName ? { ...common2, fileName: diag2.file && diag2.file.fileName } : common2;
210919
211039
  }
210920
211040
  function allEditsBeforePos(edits, pos) {
210921
211041
  return edits.every((edit) => textSpanEnd(edit.span) < pos);
@@ -219787,14 +219907,14 @@ var require_validate3 = __commonJS((exports) => {
219787
219907
  validateRootTypes(context);
219788
219908
  validateDirectives(context);
219789
219909
  validateTypes(context);
219790
- const errors3 = context.getErrors();
219791
- schema.__validationErrors = errors3;
219792
- return errors3;
219910
+ const errors4 = context.getErrors();
219911
+ schema.__validationErrors = errors4;
219912
+ return errors4;
219793
219913
  }
219794
219914
  function assertValidSchema(schema) {
219795
- const errors3 = validateSchema(schema);
219796
- if (errors3.length !== 0) {
219797
- throw new Error(errors3.map((error47) => error47.message).join(`
219915
+ const errors4 = validateSchema(schema);
219916
+ if (errors4.length !== 0) {
219917
+ throw new Error(errors4.map((error47) => error47.message).join(`
219798
219918
 
219799
219919
  `));
219800
219920
  }
@@ -222007,25 +222127,25 @@ var require_values2 = __commonJS((exports) => {
222007
222127
  var _typeFromAST = require_typeFromAST2();
222008
222128
  var _valueFromAST = require_valueFromAST2();
222009
222129
  function getVariableValues(schema, varDefNodes, inputs, options) {
222010
- const errors3 = [];
222130
+ const errors4 = [];
222011
222131
  const maxErrors = options === null || options === undefined ? undefined : options.maxErrors;
222012
222132
  try {
222013
222133
  const coerced = coerceVariableValues(schema, varDefNodes, inputs, (error47) => {
222014
- if (maxErrors != null && errors3.length >= maxErrors) {
222134
+ if (maxErrors != null && errors4.length >= maxErrors) {
222015
222135
  throw new _GraphQLError.GraphQLError("Too many errors processing variables, error limit reached. Execution aborted.");
222016
222136
  }
222017
- errors3.push(error47);
222137
+ errors4.push(error47);
222018
222138
  });
222019
- if (errors3.length === 0) {
222139
+ if (errors4.length === 0) {
222020
222140
  return {
222021
222141
  coerced
222022
222142
  };
222023
222143
  }
222024
222144
  } catch (error47) {
222025
- errors3.push(error47);
222145
+ errors4.push(error47);
222026
222146
  }
222027
222147
  return {
222028
- errors: errors3
222148
+ errors: errors4
222029
222149
  };
222030
222150
  }
222031
222151
  function coerceVariableValues(schema, varDefNodes, inputs, onError) {
@@ -223286,13 +223406,13 @@ var require_validate4 = __commonJS((exports) => {
223286
223406
  documentAST || (0, _devAssert.devAssert)(false, "Must provide document.");
223287
223407
  (0, _validate.assertValidSchema)(schema);
223288
223408
  const abortObj = Object.freeze({});
223289
- const errors3 = [];
223409
+ const errors4 = [];
223290
223410
  const context = new _ValidationContext.ValidationContext(schema, documentAST, typeInfo, (error47) => {
223291
- if (errors3.length >= maxErrors) {
223292
- errors3.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
223411
+ if (errors4.length >= maxErrors) {
223412
+ errors4.push(new _GraphQLError.GraphQLError("Too many validation errors, error limit reached. Validation aborted."));
223293
223413
  throw abortObj;
223294
223414
  }
223295
- errors3.push(error47);
223415
+ errors4.push(error47);
223296
223416
  });
223297
223417
  const visitor = (0, _visitor.visitInParallel)(rules.map((rule) => rule(context)));
223298
223418
  try {
@@ -223302,29 +223422,29 @@ var require_validate4 = __commonJS((exports) => {
223302
223422
  throw e3;
223303
223423
  }
223304
223424
  }
223305
- return errors3;
223425
+ return errors4;
223306
223426
  }
223307
223427
  function validateSDL(documentAST, schemaToExtend, rules = _specifiedRules.specifiedSDLRules) {
223308
- const errors3 = [];
223428
+ const errors4 = [];
223309
223429
  const context = new _ValidationContext.SDLValidationContext(documentAST, schemaToExtend, (error47) => {
223310
- errors3.push(error47);
223430
+ errors4.push(error47);
223311
223431
  });
223312
223432
  const visitors = rules.map((rule) => rule(context));
223313
223433
  (0, _visitor.visit)(documentAST, (0, _visitor.visitInParallel)(visitors));
223314
- return errors3;
223434
+ return errors4;
223315
223435
  }
223316
223436
  function assertValidSDL(documentAST) {
223317
- const errors3 = validateSDL(documentAST);
223318
- if (errors3.length !== 0) {
223319
- throw new Error(errors3.map((error47) => error47.message).join(`
223437
+ const errors4 = validateSDL(documentAST);
223438
+ if (errors4.length !== 0) {
223439
+ throw new Error(errors4.map((error47) => error47.message).join(`
223320
223440
 
223321
223441
  `));
223322
223442
  }
223323
223443
  }
223324
223444
  function assertValidSDLExtension(documentAST, schema) {
223325
- const errors3 = validateSDL(documentAST, schema);
223326
- if (errors3.length !== 0) {
223327
- throw new Error(errors3.map((error47) => error47.message).join(`
223445
+ const errors4 = validateSDL(documentAST, schema);
223446
+ if (errors4.length !== 0) {
223447
+ throw new Error(errors4.map((error47) => error47.message).join(`
223328
223448
 
223329
223449
  `));
223330
223450
  }
@@ -223507,11 +223627,11 @@ var require_execute2 = __commonJS((exports) => {
223507
223627
  }
223508
223628
  return result;
223509
223629
  }
223510
- function buildResponse(data, errors3) {
223511
- return errors3.length === 0 ? {
223630
+ function buildResponse(data, errors4) {
223631
+ return errors4.length === 0 ? {
223512
223632
  data
223513
223633
  } : {
223514
- errors: errors3,
223634
+ errors: errors4,
223515
223635
  data
223516
223636
  };
223517
223637
  }
@@ -230714,14 +230834,14 @@ var import_typescript, import_graphql7, teardownPlaceholder = () => {}, h2, asyn
230714
230834
  hasNext: r3.hasNext == null ? n4 : r3.hasNext,
230715
230835
  stale: false
230716
230836
  };
230717
- }, deepMerge = (e5, r3) => {
230837
+ }, deepMerge2 = (e5, r3) => {
230718
230838
  if (typeof e5 == "object" && e5 != null) {
230719
230839
  if (!e5.constructor || e5.constructor === Object || Array.isArray(e5)) {
230720
230840
  e5 = Array.isArray(e5) ? [...e5] : {
230721
230841
  ...e5
230722
230842
  };
230723
230843
  for (var a5 of Object.keys(r3)) {
230724
- e5[a5] = deepMerge(e5[a5], r3[a5]);
230844
+ e5[a5] = deepMerge2(e5[a5], r3[a5]);
230725
230845
  }
230726
230846
  return e5;
230727
230847
  }
@@ -230771,10 +230891,10 @@ var import_typescript, import_graphql7, teardownPlaceholder = () => {}, h2, asyn
230771
230891
  if (e6.items) {
230772
230892
  var f = +r4 >= 0 ? r4 : 0;
230773
230893
  for (var p = 0, m2 = e6.items.length;p < m2; p++) {
230774
- a6[f + p] = deepMerge(a6[f + p], e6.items[p]);
230894
+ a6[f + p] = deepMerge2(a6[f + p], e6.items[p]);
230775
230895
  }
230776
230896
  } else if (e6.data !== undefined) {
230777
- a6[r4] = deepMerge(a6[r4], e6.data);
230897
+ a6[r4] = deepMerge2(a6[r4], e6.data);
230778
230898
  }
230779
230899
  };
230780
230900
  for (var l2 of s2) {
@@ -238401,7 +238521,7 @@ class CliBuilder {
238401
238521
  }(e11);
238402
238522
  (function simplifyMachine(e12) {
238403
238523
  var t10 = new Set;
238404
- var process7 = (r8) => {
238524
+ var process8 = (r8) => {
238405
238525
  if (t10.has(r8)) {
238406
238526
  return;
238407
238527
  }
@@ -238409,14 +238529,14 @@ class CliBuilder {
238409
238529
  var i8 = e12.nodes[r8];
238410
238530
  for (var n8 of Object.values(i8.statics)) {
238411
238531
  for (var { to: a8 } of n8) {
238412
- process7(a8);
238532
+ process8(a8);
238413
238533
  }
238414
238534
  }
238415
238535
  for (var [, { to: s6 }] of i8.dynamics) {
238416
- process7(s6);
238536
+ process8(s6);
238417
238537
  }
238418
238538
  for (var { to: l4 } of i8.shortcuts) {
238419
- process7(l4);
238539
+ process8(l4);
238420
238540
  }
238421
238541
  var c3 = new Set(i8.shortcuts.map(({ to: e13 }) => e13));
238422
238542
  while (i8.shortcuts.length > 0) {
@@ -238449,7 +238569,7 @@ class CliBuilder {
238449
238569
  }
238450
238570
  }
238451
238571
  };
238452
- process7(re2.InitialNode);
238572
+ process8(re2.InitialNode);
238453
238573
  })(a7);
238454
238574
  return {
238455
238575
  machine: a7,
@@ -245945,11 +246065,11 @@ var require_slugify = __commonJS((exports, module) => {
245945
246065
  });
245946
246066
  });
245947
246067
 
245948
- // ../../node_modules/.bun/mute-stream@2.0.0/node_modules/mute-stream/lib/index.js
245949
- var require_lib12 = __commonJS((exports, module) => {
246068
+ // ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
246069
+ var require_lib13 = __commonJS((exports, module) => {
245950
246070
  var Stream2 = __require("stream");
245951
246071
 
245952
- class MuteStream extends Stream2 {
246072
+ class MuteStream2 extends Stream2 {
245953
246073
  #isTTY = null;
245954
246074
  constructor(opts = {}) {
245955
246075
  super(opts);
@@ -246062,7 +246182,7 @@ var require_lib12 = __commonJS((exports, module) => {
246062
246182
  return this.#proxy("close", ...args);
246063
246183
  }
246064
246184
  }
246065
- module.exports = MuteStream;
246185
+ module.exports = MuteStream2;
246066
246186
  });
246067
246187
 
246068
246188
  // ../../node_modules/.bun/abitype@1.1.0+0c447f3ab58cb56e/node_modules/abitype/dist/esm/version.js
@@ -259580,7 +259700,7 @@ var require_composer = __commonJS((exports) => {
259580
259700
  var node_process = __require("process");
259581
259701
  var directives5 = require_directives3();
259582
259702
  var Document = require_Document();
259583
- var errors4 = require_errors3();
259703
+ var errors5 = require_errors3();
259584
259704
  var identity2 = require_identity();
259585
259705
  var composeDoc = require_compose_doc();
259586
259706
  var resolveEnd = require_resolve_end();
@@ -259631,9 +259751,9 @@ var require_composer = __commonJS((exports) => {
259631
259751
  this.onError = (source, code2, message, warning) => {
259632
259752
  const pos = getErrorPos(source);
259633
259753
  if (warning)
259634
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
259754
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
259635
259755
  else
259636
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
259756
+ this.errors.push(new errors5.YAMLParseError(pos, code2, message));
259637
259757
  };
259638
259758
  this.directives = new directives5.Directives({ version: options.version || "1.2" });
259639
259759
  this.options = options;
@@ -259717,7 +259837,7 @@ ${cb}` : comment;
259717
259837
  break;
259718
259838
  case "error": {
259719
259839
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
259720
- const error51 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
259840
+ const error51 = new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
259721
259841
  if (this.atDirectives || !this.doc)
259722
259842
  this.errors.push(error51);
259723
259843
  else
@@ -259727,7 +259847,7 @@ ${cb}` : comment;
259727
259847
  case "doc-end": {
259728
259848
  if (!this.doc) {
259729
259849
  const msg = "Unexpected doc-end without preceding document";
259730
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
259850
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
259731
259851
  break;
259732
259852
  }
259733
259853
  this.doc.directives.docEnd = true;
@@ -259742,7 +259862,7 @@ ${end.comment}` : end.comment;
259742
259862
  break;
259743
259863
  }
259744
259864
  default:
259745
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
259865
+ this.errors.push(new errors5.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
259746
259866
  }
259747
259867
  }
259748
259868
  *end(forceDoc = false, endOffset = -1) {
@@ -259768,7 +259888,7 @@ ${end.comment}` : end.comment;
259768
259888
  var require_cst_scalar = __commonJS((exports) => {
259769
259889
  var resolveBlockScalar = require_resolve_block_scalar();
259770
259890
  var resolveFlowScalar = require_resolve_flow_scalar();
259771
- var errors4 = require_errors3();
259891
+ var errors5 = require_errors3();
259772
259892
  var stringifyString = require_stringifyString();
259773
259893
  function resolveAsScalar(token, strict = true, onError) {
259774
259894
  if (token) {
@@ -259777,7 +259897,7 @@ var require_cst_scalar = __commonJS((exports) => {
259777
259897
  if (onError)
259778
259898
  onError(offset, code2, message);
259779
259899
  else
259780
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
259900
+ throw new errors5.YAMLParseError([offset, offset + 1], code2, message);
259781
259901
  };
259782
259902
  switch (token.type) {
259783
259903
  case "scalar":
@@ -261639,7 +261759,7 @@ var require_parser3 = __commonJS((exports) => {
261639
261759
  var require_public_api = __commonJS((exports) => {
261640
261760
  var composer = require_composer();
261641
261761
  var Document = require_Document();
261642
- var errors4 = require_errors3();
261762
+ var errors5 = require_errors3();
261643
261763
  var log = require_log();
261644
261764
  var identity2 = require_identity();
261645
261765
  var lineCounter = require_line_counter();
@@ -261656,8 +261776,8 @@ var require_public_api = __commonJS((exports) => {
261656
261776
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
261657
261777
  if (prettyErrors && lineCounter2)
261658
261778
  for (const doc2 of docs) {
261659
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
261660
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
261779
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
261780
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
261661
261781
  }
261662
261782
  if (docs.length > 0)
261663
261783
  return docs;
@@ -261672,13 +261792,13 @@ var require_public_api = __commonJS((exports) => {
261672
261792
  if (!doc2)
261673
261793
  doc2 = _doc;
261674
261794
  else if (doc2.options.logLevel !== "silent") {
261675
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
261795
+ doc2.errors.push(new errors5.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
261676
261796
  break;
261677
261797
  }
261678
261798
  }
261679
261799
  if (prettyErrors && lineCounter2) {
261680
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
261681
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
261800
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
261801
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
261682
261802
  }
261683
261803
  return doc2;
261684
261804
  }
@@ -261745,7 +261865,11 @@ var {
261745
261865
  Help
261746
261866
  } = import__.default;
261747
261867
 
261748
- // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261868
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
261869
+ var isBackspaceKey = (key) => key.name === "backspace";
261870
+ var isTabKey = (key) => key.name === "tab";
261871
+ var isEnterKey = (key) => key.name === "enter" || key.name === "return";
261872
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261749
261873
  class AbortPromptError extends Error {
261750
261874
  name = "AbortPromptError";
261751
261875
  message = "Prompt was aborted";
@@ -261763,9 +261887,560 @@ class CancelPromptError extends Error {
261763
261887
  class ExitPromptError extends Error {
261764
261888
  name = "ExitPromptError";
261765
261889
  }
261890
+
261891
+ class HookError extends Error {
261892
+ name = "HookError";
261893
+ }
261894
+
261766
261895
  class ValidationError extends Error {
261767
261896
  name = "ValidationError";
261768
261897
  }
261898
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
261899
+ import { AsyncResource as AsyncResource2 } from "node:async_hooks";
261900
+
261901
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
261902
+ import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
261903
+ var hookStorage = new AsyncLocalStorage;
261904
+ function createStore(rl) {
261905
+ const store = {
261906
+ rl,
261907
+ hooks: [],
261908
+ hooksCleanup: [],
261909
+ hooksEffect: [],
261910
+ index: 0,
261911
+ handleChange() {}
261912
+ };
261913
+ return store;
261914
+ }
261915
+ function withHooks(rl, cb) {
261916
+ const store = createStore(rl);
261917
+ return hookStorage.run(store, () => {
261918
+ function cycle(render) {
261919
+ store.handleChange = () => {
261920
+ store.index = 0;
261921
+ render();
261922
+ };
261923
+ store.handleChange();
261924
+ }
261925
+ return cb(cycle);
261926
+ });
261927
+ }
261928
+ function getStore() {
261929
+ const store = hookStorage.getStore();
261930
+ if (!store) {
261931
+ throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
261932
+ }
261933
+ return store;
261934
+ }
261935
+ function readline() {
261936
+ return getStore().rl;
261937
+ }
261938
+ function withUpdates(fn) {
261939
+ const wrapped = (...args) => {
261940
+ const store = getStore();
261941
+ let shouldUpdate = false;
261942
+ const oldHandleChange = store.handleChange;
261943
+ store.handleChange = () => {
261944
+ shouldUpdate = true;
261945
+ };
261946
+ const returnValue = fn(...args);
261947
+ if (shouldUpdate) {
261948
+ oldHandleChange();
261949
+ }
261950
+ store.handleChange = oldHandleChange;
261951
+ return returnValue;
261952
+ };
261953
+ return AsyncResource.bind(wrapped);
261954
+ }
261955
+ function withPointer(cb) {
261956
+ const store = getStore();
261957
+ const { index } = store;
261958
+ const pointer = {
261959
+ get() {
261960
+ return store.hooks[index];
261961
+ },
261962
+ set(value) {
261963
+ store.hooks[index] = value;
261964
+ },
261965
+ initialized: index in store.hooks
261966
+ };
261967
+ const returnValue = cb(pointer);
261968
+ store.index++;
261969
+ return returnValue;
261970
+ }
261971
+ function handleChange() {
261972
+ getStore().handleChange();
261973
+ }
261974
+ var effectScheduler = {
261975
+ queue(cb) {
261976
+ const store = getStore();
261977
+ const { index } = store;
261978
+ store.hooksEffect.push(() => {
261979
+ store.hooksCleanup[index]?.();
261980
+ const cleanFn = cb(readline());
261981
+ if (cleanFn != null && typeof cleanFn !== "function") {
261982
+ throw new ValidationError("useEffect return value must be a cleanup function or nothing.");
261983
+ }
261984
+ store.hooksCleanup[index] = cleanFn;
261985
+ });
261986
+ },
261987
+ run() {
261988
+ const store = getStore();
261989
+ withUpdates(() => {
261990
+ store.hooksEffect.forEach((effect) => {
261991
+ effect();
261992
+ });
261993
+ store.hooksEffect.length = 0;
261994
+ })();
261995
+ },
261996
+ clearAll() {
261997
+ const store = getStore();
261998
+ store.hooksCleanup.forEach((cleanFn) => {
261999
+ cleanFn?.();
262000
+ });
262001
+ store.hooksEffect.length = 0;
262002
+ store.hooksCleanup.length = 0;
262003
+ }
262004
+ };
262005
+
262006
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
262007
+ function useState(defaultValue) {
262008
+ return withPointer((pointer) => {
262009
+ const setState = AsyncResource2.bind(function setState(newValue) {
262010
+ if (pointer.get() !== newValue) {
262011
+ pointer.set(newValue);
262012
+ handleChange();
262013
+ }
262014
+ });
262015
+ if (pointer.initialized) {
262016
+ return [pointer.get(), setState];
262017
+ }
262018
+ const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
262019
+ pointer.set(value);
262020
+ return [value, setState];
262021
+ });
262022
+ }
262023
+
262024
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
262025
+ function useEffect(cb, depArray) {
262026
+ withPointer((pointer) => {
262027
+ const oldDeps = pointer.get();
262028
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
262029
+ if (hasChanged) {
262030
+ effectScheduler.queue(cb);
262031
+ }
262032
+ pointer.set(depArray);
262033
+ });
262034
+ }
262035
+
262036
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262037
+ var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
262038
+
262039
+ // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
262040
+ import process2 from "node:process";
262041
+ function isUnicodeSupported() {
262042
+ if (process2.platform !== "win32") {
262043
+ return process2.env["TERM"] !== "linux";
262044
+ }
262045
+ return Boolean(process2.env["WT_SESSION"]) || Boolean(process2.env["TERMINUS_SUBLIME"]) || process2.env["ConEmuTask"] === "{cmd::Cmder}" || process2.env["TERM_PROGRAM"] === "Terminus-Sublime" || process2.env["TERM_PROGRAM"] === "vscode" || process2.env["TERM"] === "xterm-256color" || process2.env["TERM"] === "alacritty" || process2.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
262046
+ }
262047
+ var common = {
262048
+ circleQuestionMark: "(?)",
262049
+ questionMarkPrefix: "(?)",
262050
+ square: "█",
262051
+ squareDarkShade: "▓",
262052
+ squareMediumShade: "▒",
262053
+ squareLightShade: "░",
262054
+ squareTop: "▀",
262055
+ squareBottom: "▄",
262056
+ squareLeft: "▌",
262057
+ squareRight: "▐",
262058
+ squareCenter: "■",
262059
+ bullet: "●",
262060
+ dot: "․",
262061
+ ellipsis: "…",
262062
+ pointerSmall: "›",
262063
+ triangleUp: "▲",
262064
+ triangleUpSmall: "▴",
262065
+ triangleDown: "▼",
262066
+ triangleDownSmall: "▾",
262067
+ triangleLeftSmall: "◂",
262068
+ triangleRightSmall: "▸",
262069
+ home: "⌂",
262070
+ heart: "♥",
262071
+ musicNote: "♪",
262072
+ musicNoteBeamed: "♫",
262073
+ arrowUp: "↑",
262074
+ arrowDown: "↓",
262075
+ arrowLeft: "←",
262076
+ arrowRight: "→",
262077
+ arrowLeftRight: "↔",
262078
+ arrowUpDown: "↕",
262079
+ almostEqual: "≈",
262080
+ notEqual: "≠",
262081
+ lessOrEqual: "≤",
262082
+ greaterOrEqual: "≥",
262083
+ identical: "≡",
262084
+ infinity: "∞",
262085
+ subscriptZero: "₀",
262086
+ subscriptOne: "₁",
262087
+ subscriptTwo: "₂",
262088
+ subscriptThree: "₃",
262089
+ subscriptFour: "₄",
262090
+ subscriptFive: "₅",
262091
+ subscriptSix: "₆",
262092
+ subscriptSeven: "₇",
262093
+ subscriptEight: "₈",
262094
+ subscriptNine: "₉",
262095
+ oneHalf: "½",
262096
+ oneThird: "⅓",
262097
+ oneQuarter: "¼",
262098
+ oneFifth: "⅕",
262099
+ oneSixth: "⅙",
262100
+ oneEighth: "⅛",
262101
+ twoThirds: "⅔",
262102
+ twoFifths: "⅖",
262103
+ threeQuarters: "¾",
262104
+ threeFifths: "⅗",
262105
+ threeEighths: "⅜",
262106
+ fourFifths: "⅘",
262107
+ fiveSixths: "⅚",
262108
+ fiveEighths: "⅝",
262109
+ sevenEighths: "⅞",
262110
+ line: "─",
262111
+ lineBold: "━",
262112
+ lineDouble: "═",
262113
+ lineDashed0: "┄",
262114
+ lineDashed1: "┅",
262115
+ lineDashed2: "┈",
262116
+ lineDashed3: "┉",
262117
+ lineDashed4: "╌",
262118
+ lineDashed5: "╍",
262119
+ lineDashed6: "╴",
262120
+ lineDashed7: "╶",
262121
+ lineDashed8: "╸",
262122
+ lineDashed9: "╺",
262123
+ lineDashed10: "╼",
262124
+ lineDashed11: "╾",
262125
+ lineDashed12: "−",
262126
+ lineDashed13: "–",
262127
+ lineDashed14: "‐",
262128
+ lineDashed15: "⁃",
262129
+ lineVertical: "│",
262130
+ lineVerticalBold: "┃",
262131
+ lineVerticalDouble: "║",
262132
+ lineVerticalDashed0: "┆",
262133
+ lineVerticalDashed1: "┇",
262134
+ lineVerticalDashed2: "┊",
262135
+ lineVerticalDashed3: "┋",
262136
+ lineVerticalDashed4: "╎",
262137
+ lineVerticalDashed5: "╏",
262138
+ lineVerticalDashed6: "╵",
262139
+ lineVerticalDashed7: "╷",
262140
+ lineVerticalDashed8: "╹",
262141
+ lineVerticalDashed9: "╻",
262142
+ lineVerticalDashed10: "╽",
262143
+ lineVerticalDashed11: "╿",
262144
+ lineDownLeft: "┐",
262145
+ lineDownLeftArc: "╮",
262146
+ lineDownBoldLeftBold: "┓",
262147
+ lineDownBoldLeft: "┒",
262148
+ lineDownLeftBold: "┑",
262149
+ lineDownDoubleLeftDouble: "╗",
262150
+ lineDownDoubleLeft: "╖",
262151
+ lineDownLeftDouble: "╕",
262152
+ lineDownRight: "┌",
262153
+ lineDownRightArc: "╭",
262154
+ lineDownBoldRightBold: "┏",
262155
+ lineDownBoldRight: "┎",
262156
+ lineDownRightBold: "┍",
262157
+ lineDownDoubleRightDouble: "╔",
262158
+ lineDownDoubleRight: "╓",
262159
+ lineDownRightDouble: "╒",
262160
+ lineUpLeft: "┘",
262161
+ lineUpLeftArc: "╯",
262162
+ lineUpBoldLeftBold: "┛",
262163
+ lineUpBoldLeft: "┚",
262164
+ lineUpLeftBold: "┙",
262165
+ lineUpDoubleLeftDouble: "╝",
262166
+ lineUpDoubleLeft: "╜",
262167
+ lineUpLeftDouble: "╛",
262168
+ lineUpRight: "└",
262169
+ lineUpRightArc: "╰",
262170
+ lineUpBoldRightBold: "┗",
262171
+ lineUpBoldRight: "┖",
262172
+ lineUpRightBold: "┕",
262173
+ lineUpDoubleRightDouble: "╚",
262174
+ lineUpDoubleRight: "╙",
262175
+ lineUpRightDouble: "╘",
262176
+ lineUpDownLeft: "┤",
262177
+ lineUpBoldDownBoldLeftBold: "┫",
262178
+ lineUpBoldDownBoldLeft: "┨",
262179
+ lineUpDownLeftBold: "┥",
262180
+ lineUpBoldDownLeftBold: "┩",
262181
+ lineUpDownBoldLeftBold: "┪",
262182
+ lineUpDownBoldLeft: "┧",
262183
+ lineUpBoldDownLeft: "┦",
262184
+ lineUpDoubleDownDoubleLeftDouble: "╣",
262185
+ lineUpDoubleDownDoubleLeft: "╢",
262186
+ lineUpDownLeftDouble: "╡",
262187
+ lineUpDownRight: "├",
262188
+ lineUpBoldDownBoldRightBold: "┣",
262189
+ lineUpBoldDownBoldRight: "┠",
262190
+ lineUpDownRightBold: "┝",
262191
+ lineUpBoldDownRightBold: "┡",
262192
+ lineUpDownBoldRightBold: "┢",
262193
+ lineUpDownBoldRight: "┟",
262194
+ lineUpBoldDownRight: "┞",
262195
+ lineUpDoubleDownDoubleRightDouble: "╠",
262196
+ lineUpDoubleDownDoubleRight: "╟",
262197
+ lineUpDownRightDouble: "╞",
262198
+ lineDownLeftRight: "┬",
262199
+ lineDownBoldLeftBoldRightBold: "┳",
262200
+ lineDownLeftBoldRightBold: "┯",
262201
+ lineDownBoldLeftRight: "┰",
262202
+ lineDownBoldLeftBoldRight: "┱",
262203
+ lineDownBoldLeftRightBold: "┲",
262204
+ lineDownLeftRightBold: "┮",
262205
+ lineDownLeftBoldRight: "┭",
262206
+ lineDownDoubleLeftDoubleRightDouble: "╦",
262207
+ lineDownDoubleLeftRight: "╥",
262208
+ lineDownLeftDoubleRightDouble: "╤",
262209
+ lineUpLeftRight: "┴",
262210
+ lineUpBoldLeftBoldRightBold: "┻",
262211
+ lineUpLeftBoldRightBold: "┷",
262212
+ lineUpBoldLeftRight: "┸",
262213
+ lineUpBoldLeftBoldRight: "┹",
262214
+ lineUpBoldLeftRightBold: "┺",
262215
+ lineUpLeftRightBold: "┶",
262216
+ lineUpLeftBoldRight: "┵",
262217
+ lineUpDoubleLeftDoubleRightDouble: "╩",
262218
+ lineUpDoubleLeftRight: "╨",
262219
+ lineUpLeftDoubleRightDouble: "╧",
262220
+ lineUpDownLeftRight: "┼",
262221
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
262222
+ lineUpDownBoldLeftBoldRightBold: "╈",
262223
+ lineUpBoldDownLeftBoldRightBold: "╇",
262224
+ lineUpBoldDownBoldLeftRightBold: "╊",
262225
+ lineUpBoldDownBoldLeftBoldRight: "╉",
262226
+ lineUpBoldDownLeftRight: "╀",
262227
+ lineUpDownBoldLeftRight: "╁",
262228
+ lineUpDownLeftBoldRight: "┽",
262229
+ lineUpDownLeftRightBold: "┾",
262230
+ lineUpBoldDownBoldLeftRight: "╂",
262231
+ lineUpDownLeftBoldRightBold: "┿",
262232
+ lineUpBoldDownLeftBoldRight: "╃",
262233
+ lineUpBoldDownLeftRightBold: "╄",
262234
+ lineUpDownBoldLeftBoldRight: "╅",
262235
+ lineUpDownBoldLeftRightBold: "╆",
262236
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
262237
+ lineUpDoubleDownDoubleLeftRight: "╫",
262238
+ lineUpDownLeftDoubleRightDouble: "╪",
262239
+ lineCross: "╳",
262240
+ lineBackslash: "╲",
262241
+ lineSlash: "╱"
262242
+ };
262243
+ var specialMainSymbols = {
262244
+ tick: "✔",
262245
+ info: "ℹ",
262246
+ warning: "⚠",
262247
+ cross: "✘",
262248
+ squareSmall: "◻",
262249
+ squareSmallFilled: "◼",
262250
+ circle: "◯",
262251
+ circleFilled: "◉",
262252
+ circleDotted: "◌",
262253
+ circleDouble: "◎",
262254
+ circleCircle: "ⓞ",
262255
+ circleCross: "ⓧ",
262256
+ circlePipe: "Ⓘ",
262257
+ radioOn: "◉",
262258
+ radioOff: "◯",
262259
+ checkboxOn: "☒",
262260
+ checkboxOff: "☐",
262261
+ checkboxCircleOn: "ⓧ",
262262
+ checkboxCircleOff: "Ⓘ",
262263
+ pointer: "❯",
262264
+ triangleUpOutline: "△",
262265
+ triangleLeft: "◀",
262266
+ triangleRight: "▶",
262267
+ lozenge: "◆",
262268
+ lozengeOutline: "◇",
262269
+ hamburger: "☰",
262270
+ smiley: "㋡",
262271
+ mustache: "෴",
262272
+ star: "★",
262273
+ play: "▶",
262274
+ nodejs: "⬢",
262275
+ oneSeventh: "⅐",
262276
+ oneNinth: "⅑",
262277
+ oneTenth: "⅒"
262278
+ };
262279
+ var specialFallbackSymbols = {
262280
+ tick: "√",
262281
+ info: "i",
262282
+ warning: "‼",
262283
+ cross: "×",
262284
+ squareSmall: "□",
262285
+ squareSmallFilled: "■",
262286
+ circle: "( )",
262287
+ circleFilled: "(*)",
262288
+ circleDotted: "( )",
262289
+ circleDouble: "( )",
262290
+ circleCircle: "(○)",
262291
+ circleCross: "(×)",
262292
+ circlePipe: "(│)",
262293
+ radioOn: "(*)",
262294
+ radioOff: "( )",
262295
+ checkboxOn: "[×]",
262296
+ checkboxOff: "[ ]",
262297
+ checkboxCircleOn: "(×)",
262298
+ checkboxCircleOff: "( )",
262299
+ pointer: ">",
262300
+ triangleUpOutline: "∆",
262301
+ triangleLeft: "◄",
262302
+ triangleRight: "►",
262303
+ lozenge: "♦",
262304
+ lozengeOutline: "◊",
262305
+ hamburger: "≡",
262306
+ smiley: "☺",
262307
+ mustache: "┌─┐",
262308
+ star: "✶",
262309
+ play: "►",
262310
+ nodejs: "♦",
262311
+ oneSeventh: "1/7",
262312
+ oneNinth: "1/9",
262313
+ oneTenth: "1/10"
262314
+ };
262315
+ var mainSymbols = { ...common, ...specialMainSymbols };
262316
+ var fallbackSymbols = {
262317
+ ...common,
262318
+ ...specialFallbackSymbols
262319
+ };
262320
+ var shouldUseMain = isUnicodeSupported();
262321
+ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
262322
+ var esm_default = figures;
262323
+ var replacements = Object.entries(specialMainSymbols);
262324
+
262325
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262326
+ var defaultTheme = {
262327
+ prefix: {
262328
+ idle: import_yoctocolors_cjs.default.blue("?"),
262329
+ done: import_yoctocolors_cjs.default.green(esm_default.tick)
262330
+ },
262331
+ spinner: {
262332
+ interval: 80,
262333
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
262334
+ },
262335
+ style: {
262336
+ answer: import_yoctocolors_cjs.default.cyan,
262337
+ message: import_yoctocolors_cjs.default.bold,
262338
+ error: (text) => import_yoctocolors_cjs.default.red(`> ${text}`),
262339
+ defaultAnswer: (text) => import_yoctocolors_cjs.default.dim(`(${text})`),
262340
+ help: import_yoctocolors_cjs.default.dim,
262341
+ highlight: import_yoctocolors_cjs.default.cyan,
262342
+ key: (text) => import_yoctocolors_cjs.default.cyan(import_yoctocolors_cjs.default.bold(`<${text}>`))
262343
+ }
262344
+ };
262345
+
262346
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
262347
+ function isPlainObject(value) {
262348
+ if (typeof value !== "object" || value === null)
262349
+ return false;
262350
+ let proto = value;
262351
+ while (Object.getPrototypeOf(proto) !== null) {
262352
+ proto = Object.getPrototypeOf(proto);
262353
+ }
262354
+ return Object.getPrototypeOf(value) === proto;
262355
+ }
262356
+ function deepMerge(...objects) {
262357
+ const output = {};
262358
+ for (const obj of objects) {
262359
+ for (const [key, value] of Object.entries(obj)) {
262360
+ const prevValue = output[key];
262361
+ output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
262362
+ }
262363
+ }
262364
+ return output;
262365
+ }
262366
+ function makeTheme(...themes) {
262367
+ const themesToMerge = [
262368
+ defaultTheme,
262369
+ ...themes.filter((theme) => theme != null)
262370
+ ];
262371
+ return deepMerge(...themesToMerge);
262372
+ }
262373
+
262374
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
262375
+ function usePrefix({ status = "idle", theme }) {
262376
+ const [showLoader, setShowLoader] = useState(false);
262377
+ const [tick, setTick] = useState(0);
262378
+ const { prefix, spinner } = makeTheme(theme);
262379
+ useEffect(() => {
262380
+ if (status === "loading") {
262381
+ let tickInterval;
262382
+ let inc = -1;
262383
+ const delayTimeout = setTimeout(() => {
262384
+ setShowLoader(true);
262385
+ tickInterval = setInterval(() => {
262386
+ inc = inc + 1;
262387
+ setTick(inc % spinner.frames.length);
262388
+ }, spinner.interval);
262389
+ }, 300);
262390
+ return () => {
262391
+ clearTimeout(delayTimeout);
262392
+ clearInterval(tickInterval);
262393
+ };
262394
+ } else {
262395
+ setShowLoader(false);
262396
+ }
262397
+ }, [status]);
262398
+ if (showLoader) {
262399
+ return spinner.frames[tick];
262400
+ }
262401
+ const iconName = status === "loading" ? "idle" : status;
262402
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
262403
+ }
262404
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
262405
+ function useRef(val) {
262406
+ return useState({ current: val })[0];
262407
+ }
262408
+
262409
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
262410
+ function useKeypress(userHandler) {
262411
+ const signal = useRef(userHandler);
262412
+ signal.current = userHandler;
262413
+ useEffect((rl) => {
262414
+ let ignore = false;
262415
+ const handler = withUpdates((_input, event) => {
262416
+ if (ignore)
262417
+ return;
262418
+ signal.current(event, rl);
262419
+ });
262420
+ rl.input.on("keypress", handler);
262421
+ return () => {
262422
+ ignore = true;
262423
+ rl.input.removeListener("keypress", handler);
262424
+ };
262425
+ }, []);
262426
+ }
262427
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
262428
+ var import_cli_width = __toESM(require_cli_width(), 1);
262429
+ var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
262430
+ function breakLines(content, width) {
262431
+ return content.split(`
262432
+ `).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
262433
+ `).map((str) => str.trimEnd())).join(`
262434
+ `);
262435
+ }
262436
+ function readlineWidth() {
262437
+ return import_cli_width.default({ defaultWidth: 80, output: readline().output });
262438
+ }
262439
+
262440
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262441
+ var import_mute_stream = __toESM(require_lib(), 1);
262442
+ import * as readline2 from "node:readline";
262443
+ import { AsyncResource as AsyncResource3 } from "node:async_hooks";
261769
262444
 
261770
262445
  // ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
261771
262446
  var signals = [];
@@ -261778,7 +262453,7 @@ if (process.platform === "linux") {
261778
262453
  }
261779
262454
 
261780
262455
  // ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
261781
- var processOk = (process2) => !!process2 && typeof process2 === "object" && typeof process2.removeListener === "function" && typeof process2.emit === "function" && typeof process2.reallyExit === "function" && typeof process2.listeners === "function" && typeof process2.kill === "function" && typeof process2.pid === "number" && typeof process2.on === "function";
262456
+ var processOk = (process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
261782
262457
  var kExitEmitter = Symbol.for("signal-exit emitter");
261783
262458
  var global2 = globalThis;
261784
262459
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -261861,22 +262536,22 @@ class SignalExitFallback extends SignalExitBase {
261861
262536
  }
261862
262537
 
261863
262538
  class SignalExit extends SignalExitBase {
261864
- #hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
262539
+ #hupSig = process3.platform === "win32" ? "SIGINT" : "SIGHUP";
261865
262540
  #emitter = new Emitter;
261866
262541
  #process;
261867
262542
  #originalProcessEmit;
261868
262543
  #originalProcessReallyExit;
261869
262544
  #sigListeners = {};
261870
262545
  #loaded = false;
261871
- constructor(process2) {
262546
+ constructor(process3) {
261872
262547
  super();
261873
- this.#process = process2;
262548
+ this.#process = process3;
261874
262549
  this.#sigListeners = {};
261875
262550
  for (const sig of signals) {
261876
262551
  this.#sigListeners[sig] = () => {
261877
262552
  const listeners = this.#process.listeners(sig);
261878
262553
  let { count } = this.#emitter;
261879
- const p = process2;
262554
+ const p = process3;
261880
262555
  if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
261881
262556
  count += p.__signal_exit_emitter__.count;
261882
262557
  }
@@ -261885,12 +262560,12 @@ class SignalExit extends SignalExitBase {
261885
262560
  const ret = this.#emitter.emit("exit", null, sig);
261886
262561
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
261887
262562
  if (!ret)
261888
- process2.kill(process2.pid, s);
262563
+ process3.kill(process3.pid, s);
261889
262564
  }
261890
262565
  };
261891
262566
  }
261892
- this.#originalProcessReallyExit = process2.reallyExit;
261893
- this.#originalProcessEmit = process2.emit;
262567
+ this.#originalProcessReallyExit = process3.reallyExit;
262568
+ this.#originalProcessEmit = process3.emit;
261894
262569
  }
261895
262570
  onExit(cb, opts) {
261896
262571
  if (!processOk(this.#process)) {
@@ -261968,13 +262643,196 @@ class SignalExit extends SignalExitBase {
261968
262643
  }
261969
262644
  }
261970
262645
  }
261971
- var process2 = globalThis.process;
262646
+ var process3 = globalThis.process;
261972
262647
  var {
261973
262648
  onExit,
261974
262649
  load,
261975
262650
  unload
261976
- } = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback);
262651
+ } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
261977
262652
 
262653
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262654
+ import { stripVTControlCharacters } from "node:util";
262655
+
262656
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
262657
+ var ESC = "\x1B[";
262658
+ var cursorLeft = ESC + "G";
262659
+ var cursorHide = ESC + "?25l";
262660
+ var cursorShow = ESC + "?25h";
262661
+ var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
262662
+ var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
262663
+ var cursorTo = (x, y) => {
262664
+ if (typeof y === "number" && !Number.isNaN(y)) {
262665
+ return `${ESC}${y + 1};${x + 1}H`;
262666
+ }
262667
+ return `${ESC}${x + 1}G`;
262668
+ };
262669
+ var eraseLine = ESC + "2K";
262670
+ var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
262671
+
262672
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262673
+ var height = (content) => content.split(`
262674
+ `).length;
262675
+ var lastLine = (content) => content.split(`
262676
+ `).pop() ?? "";
262677
+
262678
+ class ScreenManager {
262679
+ height = 0;
262680
+ extraLinesUnderPrompt = 0;
262681
+ cursorPos;
262682
+ rl;
262683
+ constructor(rl) {
262684
+ this.rl = rl;
262685
+ this.cursorPos = rl.getCursorPos();
262686
+ }
262687
+ write(content) {
262688
+ this.rl.output.unmute();
262689
+ this.rl.output.write(content);
262690
+ this.rl.output.mute();
262691
+ }
262692
+ render(content, bottomContent = "") {
262693
+ const promptLine = lastLine(content);
262694
+ const rawPromptLine = stripVTControlCharacters(promptLine);
262695
+ let prompt = rawPromptLine;
262696
+ if (this.rl.line.length > 0) {
262697
+ prompt = prompt.slice(0, -this.rl.line.length);
262698
+ }
262699
+ this.rl.setPrompt(prompt);
262700
+ this.cursorPos = this.rl.getCursorPos();
262701
+ const width = readlineWidth();
262702
+ content = breakLines(content, width);
262703
+ bottomContent = breakLines(bottomContent, width);
262704
+ if (rawPromptLine.length % width === 0) {
262705
+ content += `
262706
+ `;
262707
+ }
262708
+ let output = content + (bottomContent ? `
262709
+ ` + bottomContent : "");
262710
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
262711
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
262712
+ if (bottomContentHeight > 0)
262713
+ output += cursorUp(bottomContentHeight);
262714
+ output += cursorTo(this.cursorPos.cols);
262715
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
262716
+ this.extraLinesUnderPrompt = bottomContentHeight;
262717
+ this.height = height(output);
262718
+ }
262719
+ checkCursorPos() {
262720
+ const cursorPos = this.rl.getCursorPos();
262721
+ if (cursorPos.cols !== this.cursorPos.cols) {
262722
+ this.write(cursorTo(cursorPos.cols));
262723
+ this.cursorPos = cursorPos;
262724
+ }
262725
+ }
262726
+ done({ clearContent }) {
262727
+ this.rl.setPrompt("");
262728
+ let output = cursorDown(this.extraLinesUnderPrompt);
262729
+ output += clearContent ? eraseLines(this.height) : `
262730
+ `;
262731
+ output += cursorShow;
262732
+ this.write(output);
262733
+ this.rl.close();
262734
+ }
262735
+ }
262736
+
262737
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
262738
+ class PromisePolyfill extends Promise {
262739
+ static withResolver() {
262740
+ let resolve;
262741
+ let reject;
262742
+ const promise = new Promise((res, rej) => {
262743
+ resolve = res;
262744
+ reject = rej;
262745
+ });
262746
+ return { promise, resolve, reject };
262747
+ }
262748
+ }
262749
+
262750
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262751
+ function getCallSites() {
262752
+ const _prepareStackTrace = Error.prepareStackTrace;
262753
+ let result = [];
262754
+ try {
262755
+ Error.prepareStackTrace = (_, callSites) => {
262756
+ const callSitesWithoutCurrent = callSites.slice(1);
262757
+ result = callSitesWithoutCurrent;
262758
+ return callSitesWithoutCurrent;
262759
+ };
262760
+ new Error().stack;
262761
+ } catch {
262762
+ return result;
262763
+ }
262764
+ Error.prepareStackTrace = _prepareStackTrace;
262765
+ return result;
262766
+ }
262767
+ function createPrompt(view) {
262768
+ const callSites = getCallSites();
262769
+ const prompt = (config, context = {}) => {
262770
+ const { input = process.stdin, signal } = context;
262771
+ const cleanups = new Set;
262772
+ const output = new import_mute_stream.default;
262773
+ output.pipe(context.output ?? process.stdout);
262774
+ const rl = readline2.createInterface({
262775
+ terminal: true,
262776
+ input,
262777
+ output
262778
+ });
262779
+ const screen = new ScreenManager(rl);
262780
+ const { promise, resolve, reject } = PromisePolyfill.withResolver();
262781
+ const cancel = () => reject(new CancelPromptError);
262782
+ if (signal) {
262783
+ const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
262784
+ if (signal.aborted) {
262785
+ abort();
262786
+ return Object.assign(promise, { cancel });
262787
+ }
262788
+ signal.addEventListener("abort", abort);
262789
+ cleanups.add(() => signal.removeEventListener("abort", abort));
262790
+ }
262791
+ cleanups.add(onExit((code, signal2) => {
262792
+ reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
262793
+ }));
262794
+ const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
262795
+ rl.on("SIGINT", sigint);
262796
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
262797
+ const checkCursorPos = () => screen.checkCursorPos();
262798
+ rl.input.on("keypress", checkCursorPos);
262799
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
262800
+ return withHooks(rl, (cycle) => {
262801
+ const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
262802
+ rl.on("close", hooksCleanup);
262803
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
262804
+ cycle(() => {
262805
+ try {
262806
+ const nextView = view(config, (value) => {
262807
+ setImmediate(() => resolve(value));
262808
+ });
262809
+ if (nextView === undefined) {
262810
+ const callerFilename = callSites[1]?.getFileName();
262811
+ throw new Error(`Prompt functions must return a string.
262812
+ at ${callerFilename}`);
262813
+ }
262814
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
262815
+ screen.render(content, bottomContent);
262816
+ effectScheduler.run();
262817
+ } catch (error) {
262818
+ reject(error);
262819
+ }
262820
+ });
262821
+ return Object.assign(promise.then((answer) => {
262822
+ effectScheduler.clearAll();
262823
+ return answer;
262824
+ }, (error) => {
262825
+ effectScheduler.clearAll();
262826
+ throw error;
262827
+ }).finally(() => {
262828
+ cleanups.forEach((cleanup) => cleanup());
262829
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
262830
+ output.end();
262831
+ }).then(() => promise), { cancel });
262832
+ });
262833
+ };
262834
+ return prompt;
262835
+ }
261978
262836
  // ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
261979
262837
  var exports_base = {};
261980
262838
  __export(exports_base, {
@@ -262098,16 +262956,16 @@ var isInCi = check("CI") || check("CONTINUOUS_INTEGRATION");
262098
262956
  var is_in_ci_default = isInCi;
262099
262957
 
262100
262958
  // ../../node_modules/.bun/yocto-spinner@1.0.0/node_modules/yocto-spinner/index.js
262101
- import process3 from "node:process";
262102
- import { stripVTControlCharacters } from "node:util";
262103
- var isUnicodeSupported = process3.platform !== "win32" || Boolean(process3.env.WT_SESSION) || process3.env.TERM_PROGRAM === "vscode";
262104
- var isInteractive = (stream) => Boolean(stream.isTTY && process3.env.TERM !== "dumb" && !("CI" in process3.env));
262105
- var infoSymbol = exports_base.blue(isUnicodeSupported ? "ℹ" : "i");
262106
- var successSymbol = exports_base.green(isUnicodeSupported ? "✔" : "√");
262107
- var warningSymbol = exports_base.yellow(isUnicodeSupported ? "⚠" : "‼");
262108
- var errorSymbol = exports_base.red(isUnicodeSupported ? "✖" : "×");
262959
+ import process4 from "node:process";
262960
+ import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
262961
+ var isUnicodeSupported2 = process4.platform !== "win32" || Boolean(process4.env.WT_SESSION) || process4.env.TERM_PROGRAM === "vscode";
262962
+ var isInteractive = (stream) => Boolean(stream.isTTY && process4.env.TERM !== "dumb" && !("CI" in process4.env));
262963
+ var infoSymbol = exports_base.blue(isUnicodeSupported2 ? "ℹ" : "i");
262964
+ var successSymbol = exports_base.green(isUnicodeSupported2 ? "✔" : "√");
262965
+ var warningSymbol = exports_base.yellow(isUnicodeSupported2 ? "⚠" : "‼");
262966
+ var errorSymbol = exports_base.red(isUnicodeSupported2 ? "✖" : "×");
262109
262967
  var defaultSpinner = {
262110
- frames: isUnicodeSupported ? [
262968
+ frames: isUnicodeSupported2 ? [
262111
262969
  "⠋",
262112
262970
  "⠙",
262113
262971
  "⠹",
@@ -262145,7 +263003,7 @@ class YoctoSpinner {
262145
263003
  this.#frames = spinner.frames;
262146
263004
  this.#interval = spinner.interval;
262147
263005
  this.#text = options.text ?? "";
262148
- this.#stream = options.stream ?? process3.stderr;
263006
+ this.#stream = options.stream ?? process4.stderr;
262149
263007
  this.#color = options.color ?? "cyan";
262150
263008
  this.#isInteractive = isInteractive(this.#stream);
262151
263009
  this.#exitHandlerBound = this.#exitHandler.bind(this);
@@ -262256,7 +263114,7 @@ class YoctoSpinner {
262256
263114
  }
262257
263115
  #lineCount(text) {
262258
263116
  const width = this.#stream.columns ?? 80;
262259
- const lines = stripVTControlCharacters(text).split(`
263117
+ const lines = stripVTControlCharacters2(text).split(`
262260
263118
  `);
262261
263119
  let lineCount = 0;
262262
263120
  for (const line of lines) {
@@ -262275,19 +263133,19 @@ class YoctoSpinner {
262275
263133
  }
262276
263134
  }
262277
263135
  #subscribeToProcessEvents() {
262278
- process3.once("SIGINT", this.#exitHandlerBound);
262279
- process3.once("SIGTERM", this.#exitHandlerBound);
263136
+ process4.once("SIGINT", this.#exitHandlerBound);
263137
+ process4.once("SIGTERM", this.#exitHandlerBound);
262280
263138
  }
262281
263139
  #unsubscribeFromProcessEvents() {
262282
- process3.off("SIGINT", this.#exitHandlerBound);
262283
- process3.off("SIGTERM", this.#exitHandlerBound);
263140
+ process4.off("SIGINT", this.#exitHandlerBound);
263141
+ process4.off("SIGTERM", this.#exitHandlerBound);
262284
263142
  }
262285
263143
  #exitHandler(signal) {
262286
263144
  if (this.isSpinning) {
262287
263145
  this.stop();
262288
263146
  }
262289
263147
  const exitCode = signal === "SIGINT" ? 130 : signal === "SIGTERM" ? 143 : 1;
262290
- process3.exit(exitCode);
263148
+ process4.exit(exitCode);
262291
263149
  }
262292
263150
  }
262293
263151
  function yoctoSpinner(options) {
@@ -263125,7 +263983,7 @@ __export(exports_util, {
263125
263983
  jsonStringifyReplacer: () => jsonStringifyReplacer,
263126
263984
  joinValues: () => joinValues,
263127
263985
  issue: () => issue,
263128
- isPlainObject: () => isPlainObject,
263986
+ isPlainObject: () => isPlainObject2,
263129
263987
  isObject: () => isObject,
263130
263988
  hexToUint8Array: () => hexToUint8Array,
263131
263989
  getSizableOrigin: () => getSizableOrigin,
@@ -263307,7 +264165,7 @@ var allowsEval = cached(() => {
263307
264165
  return false;
263308
264166
  }
263309
264167
  });
263310
- function isPlainObject(o) {
264168
+ function isPlainObject2(o) {
263311
264169
  if (isObject(o) === false)
263312
264170
  return false;
263313
264171
  const ctor = o.constructor;
@@ -263322,7 +264180,7 @@ function isPlainObject(o) {
263322
264180
  return true;
263323
264181
  }
263324
264182
  function shallowClone(o) {
263325
- if (isPlainObject(o))
264183
+ if (isPlainObject2(o))
263326
264184
  return { ...o };
263327
264185
  if (Array.isArray(o))
263328
264186
  return [...o];
@@ -263505,7 +264363,7 @@ function omit(schema, mask) {
263505
264363
  return clone(schema, def);
263506
264364
  }
263507
264365
  function extend(schema, shape) {
263508
- if (!isPlainObject(shape)) {
264366
+ if (!isPlainObject2(shape)) {
263509
264367
  throw new Error("Invalid input to extend: expected a plain object");
263510
264368
  }
263511
264369
  const checks = schema._zod.def.checks;
@@ -263524,7 +264382,7 @@ function extend(schema, shape) {
263524
264382
  return clone(schema, def);
263525
264383
  }
263526
264384
  function safeExtend(schema, shape) {
263527
- if (!isPlainObject(shape)) {
264385
+ if (!isPlainObject2(shape)) {
263528
264386
  throw new Error("Invalid input to safeExtend: expected a plain object");
263529
264387
  }
263530
264388
  const def = {
@@ -265681,7 +266539,7 @@ function mergeValues(a, b) {
265681
266539
  if (a instanceof Date && b instanceof Date && +a === +b) {
265682
266540
  return { valid: true, data: a };
265683
266541
  }
265684
- if (isPlainObject(a) && isPlainObject(b)) {
266542
+ if (isPlainObject2(a) && isPlainObject2(b)) {
265685
266543
  const bKeys = Object.keys(b);
265686
266544
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
265687
266545
  const newObj = { ...a, ...b };
@@ -265811,7 +266669,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
265811
266669
  $ZodType.init(inst, def);
265812
266670
  inst._zod.parse = (payload, ctx) => {
265813
266671
  const input = payload.value;
265814
- if (!isPlainObject(input)) {
266672
+ if (!isPlainObject2(input)) {
265815
266673
  payload.issues.push({
265816
266674
  expected: "record",
265817
266675
  code: "invalid_type",
@@ -274986,7 +275844,7 @@ import { readFile, stat, writeFile } from "node:fs/promises";
274986
275844
  import path2 from "node:path";
274987
275845
 
274988
275846
  // ../../node_modules/.bun/locate-path@8.0.0/node_modules/locate-path/index.js
274989
- import process4 from "node:process";
275847
+ import process5 from "node:process";
274990
275848
  import path from "node:path";
274991
275849
  import fs, { promises as fsPromises } from "node:fs";
274992
275850
  import { fileURLToPath } from "node:url";
@@ -275151,7 +276009,7 @@ function checkType(type) {
275151
276009
  var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
275152
276010
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
275153
276011
  async function locatePath(paths, {
275154
- cwd = process4.cwd(),
276012
+ cwd = process5.cwd(),
275155
276013
  type = "file",
275156
276014
  allowSymlinks = true,
275157
276015
  concurrency,
@@ -279581,7 +280439,7 @@ class PathScurryBase {
279581
280439
  const dirs = new Set;
279582
280440
  const queue = [entry];
279583
280441
  let processing = 0;
279584
- const process5 = () => {
280442
+ const process6 = () => {
279585
280443
  let paused = false;
279586
280444
  while (!paused) {
279587
280445
  const dir = queue.shift();
@@ -279622,9 +280480,9 @@ class PathScurryBase {
279622
280480
  }
279623
280481
  }
279624
280482
  if (paused && !results.flowing) {
279625
- results.once("drain", process5);
280483
+ results.once("drain", process6);
279626
280484
  } else if (!sync) {
279627
- process5();
280485
+ process6();
279628
280486
  }
279629
280487
  };
279630
280488
  let sync = true;
@@ -279632,7 +280490,7 @@ class PathScurryBase {
279632
280490
  sync = false;
279633
280491
  }
279634
280492
  };
279635
- process5();
280493
+ process6();
279636
280494
  return results;
279637
280495
  }
279638
280496
  streamSync(entry = this.cwd, opts = {}) {
@@ -279650,7 +280508,7 @@ class PathScurryBase {
279650
280508
  }
279651
280509
  const queue = [entry];
279652
280510
  let processing = 0;
279653
- const process5 = () => {
280511
+ const process6 = () => {
279654
280512
  let paused = false;
279655
280513
  while (!paused) {
279656
280514
  const dir = queue.shift();
@@ -279684,9 +280542,9 @@ class PathScurryBase {
279684
280542
  }
279685
280543
  }
279686
280544
  if (paused && !results.flowing)
279687
- results.once("drain", process5);
280545
+ results.once("drain", process6);
279688
280546
  };
279689
- process5();
280547
+ process6();
279690
280548
  return results;
279691
280549
  }
279692
280550
  chdir(path4 = this.cwd) {
@@ -281232,7 +282090,7 @@ function pruneCurrentEnv(currentEnv, env2) {
281232
282090
  var package_default = {
281233
282091
  name: "@settlemint/sdk-cli",
281234
282092
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
281235
- version: "2.6.4-pr4384f485",
282093
+ version: "2.6.4-pr729a5586",
281236
282094
  type: "module",
281237
282095
  private: false,
281238
282096
  license: "FSL-1.1-MIT",
@@ -281275,21 +282133,21 @@ var package_default = {
281275
282133
  },
281276
282134
  dependencies: {
281277
282135
  "@gql.tada/cli-utils": "1.7.1",
281278
- "@inquirer/core": "10.3.1",
282136
+ "@inquirer/core": "10.3.0",
281279
282137
  "node-fetch-native": "1.6.7",
281280
282138
  zod: "^4"
281281
282139
  },
281282
282140
  devDependencies: {
281283
282141
  "@commander-js/extra-typings": "14.0.0",
281284
282142
  commander: "14.0.2",
281285
- "@inquirer/confirm": "5.1.19",
282143
+ "@inquirer/confirm": "5.1.20",
281286
282144
  "@inquirer/input": "4.2.5",
281287
282145
  "@inquirer/password": "4.0.21",
281288
- "@inquirer/select": "4.4.0",
281289
- "@settlemint/sdk-hasura": "2.6.4-pr4384f485",
281290
- "@settlemint/sdk-js": "2.6.4-pr4384f485",
281291
- "@settlemint/sdk-utils": "2.6.4-pr4384f485",
281292
- "@settlemint/sdk-viem": "2.6.4-pr4384f485",
282146
+ "@inquirer/select": "4.4.1",
282147
+ "@settlemint/sdk-hasura": "2.6.4-pr729a5586",
282148
+ "@settlemint/sdk-js": "2.6.4-pr729a5586",
282149
+ "@settlemint/sdk-utils": "2.6.4-pr729a5586",
282150
+ "@settlemint/sdk-viem": "2.6.4-pr729a5586",
281293
282151
  "@types/node": "24.10.0",
281294
282152
  "@types/semver": "7.7.1",
281295
282153
  "@types/which": "3.0.4",
@@ -281306,7 +282164,7 @@ var package_default = {
281306
282164
  },
281307
282165
  peerDependencies: {
281308
282166
  hardhat: "<= 4",
281309
- "@settlemint/sdk-js": "2.6.4-pr4384f485"
282167
+ "@settlemint/sdk-js": "2.6.4-pr729a5586"
281310
282168
  },
281311
282169
  peerDependenciesMeta: {
281312
282170
  hardhat: {
@@ -281673,7 +282531,7 @@ var isPromiseLikeValue = (value) => {
281673
282531
  var casesExhausted = (value) => {
281674
282532
  throw new Error(`Unhandled case: ${String(value)}`);
281675
282533
  };
281676
- var isPlainObject2 = (value) => {
282534
+ var isPlainObject3 = (value) => {
281677
282535
  return typeof value === `object` && value !== null && !Array.isArray(value);
281678
282536
  };
281679
282537
 
@@ -281718,7 +282576,7 @@ var parseGraphQLExecutionResult = (result) => {
281718
282576
  _tag: `Batch`,
281719
282577
  executionResults: result.map(parseExecutionResult)
281720
282578
  };
281721
- } else if (isPlainObject2(result)) {
282579
+ } else if (isPlainObject3(result)) {
281722
282580
  return {
281723
282581
  _tag: `Single`,
281724
282582
  executionResult: parseExecutionResult(result)
@@ -281736,29 +282594,29 @@ var parseExecutionResult = (result) => {
281736
282594
  if (typeof result !== `object` || result === null) {
281737
282595
  throw new Error(`Invalid execution result: result is not object`);
281738
282596
  }
281739
- let errors3 = undefined;
282597
+ let errors4 = undefined;
281740
282598
  let data = undefined;
281741
282599
  let extensions = undefined;
281742
282600
  if (`errors` in result) {
281743
- if (!isPlainObject2(result.errors) && !Array.isArray(result.errors)) {
282601
+ if (!isPlainObject3(result.errors) && !Array.isArray(result.errors)) {
281744
282602
  throw new Error(`Invalid execution result: errors is not plain object OR array`);
281745
282603
  }
281746
- errors3 = result.errors;
282604
+ errors4 = result.errors;
281747
282605
  }
281748
282606
  if (`data` in result) {
281749
- if (!isPlainObject2(result.data) && result.data !== null) {
282607
+ if (!isPlainObject3(result.data) && result.data !== null) {
281750
282608
  throw new Error(`Invalid execution result: data is not plain object`);
281751
282609
  }
281752
282610
  data = result.data;
281753
282611
  }
281754
282612
  if (`extensions` in result) {
281755
- if (!isPlainObject2(result.extensions))
282613
+ if (!isPlainObject3(result.extensions))
281756
282614
  throw new Error(`Invalid execution result: extensions is not plain object`);
281757
282615
  extensions = result.extensions;
281758
282616
  }
281759
282617
  return {
281760
282618
  data,
281761
- errors: errors3,
282619
+ errors: errors4,
281762
282620
  extensions
281763
282621
  };
281764
282622
  };
@@ -284509,7 +285367,7 @@ import { dirname as dirname2, join as join2, resolve as resolve2 } from "node:pa
284509
285367
  // ../../node_modules/.bun/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/detect.mjs
284510
285368
  import fs2 from "node:fs/promises";
284511
285369
  import path4 from "node:path";
284512
- import process5 from "node:process";
285370
+ import process6 from "node:process";
284513
285371
 
284514
285372
  // ../../node_modules/.bun/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/constants.mjs
284515
285373
  var AGENTS = [
@@ -284552,7 +285410,7 @@ async function pathExists(path22, type2) {
284552
285410
  return false;
284553
285411
  }
284554
285412
  }
284555
- function* lookup(cwd = process5.cwd()) {
285413
+ function* lookup(cwd = process6.cwd()) {
284556
285414
  let directory = path4.resolve(cwd);
284557
285415
  const { root } = path4.parse(directory);
284558
285416
  while (directory && directory !== root) {
@@ -284662,7 +285520,7 @@ function isMetadataYarnClassic(metadataPath) {
284662
285520
  }
284663
285521
 
284664
285522
  // ../../node_modules/.bun/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
284665
- import process6 from "node:process";
285523
+ import process7 from "node:process";
284666
285524
  import { existsSync } from "node:fs";
284667
285525
  import { resolve } from "node:path";
284668
285526
  import process22 from "node:process";
@@ -285181,7 +286039,7 @@ var ve = (t3, e3, n2) => {
285181
286039
  var be = ve;
285182
286040
 
285183
286041
  // ../../node_modules/.bun/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
285184
- async function detectPackageManager(cwd = process6.cwd()) {
286042
+ async function detectPackageManager(cwd = process7.cwd()) {
285185
286043
  const result = await detect({
285186
286044
  cwd,
285187
286045
  onUnknown(packageManager) {
@@ -285225,7 +286083,7 @@ async function installPackage(names, options = {}) {
285225
286083
 
285226
286084
  // ../utils/dist/package-manager.js
285227
286085
  var import_console_table_printer3 = __toESM(require_dist2(), 1);
285228
- var import_package_json = __toESM(require_lib11(), 1);
286086
+ var import_package_json = __toESM(require_lib12(), 1);
285229
286087
  async function projectRoot2(fallbackToCwd = false, cwd) {
285230
286088
  const packageJsonPath = await findUp("package.json", { cwd });
285231
286089
  if (!packageJsonPath) {
@@ -287203,14 +288061,104 @@ function sanitizeName(value5, length = 35) {
287203
288061
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
287204
288062
  }
287205
288063
 
287206
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
287207
- var isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
287208
- var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
287209
- var isBackspaceKey = (key) => key.name === "backspace";
287210
- var isTabKey = (key) => key.name === "tab";
287211
- var isNumberKey = (key) => "1234567890".includes(key.name);
287212
- var isEnterKey = (key) => key.name === "enter" || key.name === "return";
287213
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
288064
+ // ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288065
+ var inputTheme = {
288066
+ validationFailureMode: "keep"
288067
+ };
288068
+ var esm_default2 = createPrompt((config3, done) => {
288069
+ const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
288070
+ const theme = makeTheme(inputTheme, config3.theme);
288071
+ const [status, setStatus] = useState("idle");
288072
+ const [defaultValue = "", setDefaultValue] = useState(config3.default);
288073
+ const [errorMsg, setError] = useState();
288074
+ const [value5, setValue] = useState("");
288075
+ const prefix = usePrefix({ status, theme });
288076
+ useKeypress(async (key, rl) => {
288077
+ if (status !== "idle") {
288078
+ return;
288079
+ }
288080
+ if (isEnterKey(key)) {
288081
+ const answer = value5 || defaultValue;
288082
+ setStatus("loading");
288083
+ const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
288084
+ if (isValid === true) {
288085
+ setValue(answer);
288086
+ setStatus("done");
288087
+ done(answer);
288088
+ } else {
288089
+ if (theme.validationFailureMode === "clear") {
288090
+ setValue("");
288091
+ } else {
288092
+ rl.write(value5);
288093
+ }
288094
+ setError(isValid || "You must provide a valid value");
288095
+ setStatus("idle");
288096
+ }
288097
+ } else if (isBackspaceKey(key) && !value5) {
288098
+ setDefaultValue(undefined);
288099
+ } else if (isTabKey(key) && !value5) {
288100
+ setDefaultValue(undefined);
288101
+ rl.clearLine(0);
288102
+ rl.write(defaultValue);
288103
+ setValue(defaultValue);
288104
+ } else {
288105
+ setValue(rl.line);
288106
+ setError(undefined);
288107
+ }
288108
+ });
288109
+ useEffect((rl) => {
288110
+ if (prefill === "editable" && defaultValue) {
288111
+ rl.write(defaultValue);
288112
+ setValue(defaultValue);
288113
+ }
288114
+ }, []);
288115
+ const message = theme.style.message(config3.message, status);
288116
+ let formattedValue = value5;
288117
+ if (typeof config3.transformer === "function") {
288118
+ formattedValue = config3.transformer(value5, { isFinal: status === "done" });
288119
+ } else if (status === "done") {
288120
+ formattedValue = theme.style.answer(value5);
288121
+ }
288122
+ let defaultStr;
288123
+ if (defaultValue && status !== "done" && !value5) {
288124
+ defaultStr = theme.style.defaultAnswer(defaultValue);
288125
+ }
288126
+ let error51 = "";
288127
+ if (errorMsg) {
288128
+ error51 = theme.style.error(errorMsg);
288129
+ }
288130
+ return [
288131
+ [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
288132
+ error51
288133
+ ];
288134
+ });
288135
+
288136
+ // src/prompts/smart-contract-set/subgraph-name.prompt.ts
288137
+ async function subgraphNamePrompt({
288138
+ defaultName,
288139
+ env: env2,
288140
+ accept
288141
+ }) {
288142
+ const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
288143
+ if (accept) {
288144
+ return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
288145
+ }
288146
+ const subgraphName = await esm_default2({
288147
+ message: "What is the name of your subgraph?",
288148
+ default: defaultSubgraphName,
288149
+ required: true
288150
+ });
288151
+ return sanitizeName(subgraphName);
288152
+ }
288153
+
288154
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
288155
+ var isUpKey2 = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
288156
+ var isDownKey2 = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
288157
+ var isBackspaceKey2 = (key) => key.name === "backspace";
288158
+ var isTabKey2 = (key) => key.name === "tab";
288159
+ var isNumberKey2 = (key) => "1234567890".includes(key.name);
288160
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
288161
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
287214
288162
  class AbortPromptError2 extends Error {
287215
288163
  name = "AbortPromptError";
287216
288164
  message = "Prompt was aborted";
@@ -287229,20 +288177,20 @@ class ExitPromptError2 extends Error {
287229
288177
  name = "ExitPromptError";
287230
288178
  }
287231
288179
 
287232
- class HookError extends Error {
288180
+ class HookError2 extends Error {
287233
288181
  name = "HookError";
287234
288182
  }
287235
288183
 
287236
288184
  class ValidationError2 extends Error {
287237
288185
  name = "ValidationError";
287238
288186
  }
287239
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
287240
- import { AsyncResource as AsyncResource2 } from "node:async_hooks";
288187
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288188
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
287241
288189
 
287242
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
287243
- import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
287244
- var hookStorage = new AsyncLocalStorage;
287245
- function createStore(rl) {
288190
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
288191
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
288192
+ var hookStorage2 = new AsyncLocalStorage2;
288193
+ function createStore2(rl) {
287246
288194
  const store = {
287247
288195
  rl,
287248
288196
  hooks: [],
@@ -287253,9 +288201,9 @@ function createStore(rl) {
287253
288201
  };
287254
288202
  return store;
287255
288203
  }
287256
- function withHooks(rl, cb) {
287257
- const store = createStore(rl);
287258
- return hookStorage.run(store, () => {
288204
+ function withHooks2(rl, cb) {
288205
+ const store = createStore2(rl);
288206
+ return hookStorage2.run(store, () => {
287259
288207
  function cycle(render) {
287260
288208
  store.handleChange = () => {
287261
288209
  store.index = 0;
@@ -287266,19 +288214,19 @@ function withHooks(rl, cb) {
287266
288214
  return cb(cycle);
287267
288215
  });
287268
288216
  }
287269
- function getStore() {
287270
- const store = hookStorage.getStore();
288217
+ function getStore2() {
288218
+ const store = hookStorage2.getStore();
287271
288219
  if (!store) {
287272
- throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
288220
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
287273
288221
  }
287274
288222
  return store;
287275
288223
  }
287276
- function readline() {
287277
- return getStore().rl;
288224
+ function readline3() {
288225
+ return getStore2().rl;
287278
288226
  }
287279
- function withUpdates(fn) {
288227
+ function withUpdates2(fn) {
287280
288228
  const wrapped = (...args) => {
287281
- const store = getStore();
288229
+ const store = getStore2();
287282
288230
  let shouldUpdate = false;
287283
288231
  const oldHandleChange = store.handleChange;
287284
288232
  store.handleChange = () => {
@@ -287291,10 +288239,10 @@ function withUpdates(fn) {
287291
288239
  store.handleChange = oldHandleChange;
287292
288240
  return returnValue;
287293
288241
  };
287294
- return AsyncResource.bind(wrapped);
288242
+ return AsyncResource4.bind(wrapped);
287295
288243
  }
287296
- function withPointer(cb) {
287297
- const store = getStore();
288244
+ function withPointer2(cb) {
288245
+ const store = getStore2();
287298
288246
  const { index } = store;
287299
288247
  const pointer = {
287300
288248
  get() {
@@ -287309,16 +288257,16 @@ function withPointer(cb) {
287309
288257
  store.index++;
287310
288258
  return returnValue;
287311
288259
  }
287312
- function handleChange() {
287313
- getStore().handleChange();
288260
+ function handleChange2() {
288261
+ getStore2().handleChange();
287314
288262
  }
287315
- var effectScheduler = {
288263
+ var effectScheduler2 = {
287316
288264
  queue(cb) {
287317
- const store = getStore();
288265
+ const store = getStore2();
287318
288266
  const { index } = store;
287319
288267
  store.hooksEffect.push(() => {
287320
288268
  store.hooksCleanup[index]?.();
287321
- const cleanFn = cb(readline());
288269
+ const cleanFn = cb(readline3());
287322
288270
  if (cleanFn != null && typeof cleanFn !== "function") {
287323
288271
  throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
287324
288272
  }
@@ -287326,8 +288274,8 @@ var effectScheduler = {
287326
288274
  });
287327
288275
  },
287328
288276
  run() {
287329
- const store = getStore();
287330
- withUpdates(() => {
288277
+ const store = getStore2();
288278
+ withUpdates2(() => {
287331
288279
  store.hooksEffect.forEach((effect) => {
287332
288280
  effect();
287333
288281
  });
@@ -287335,7 +288283,7 @@ var effectScheduler = {
287335
288283
  })();
287336
288284
  },
287337
288285
  clearAll() {
287338
- const store = getStore();
288286
+ const store = getStore2();
287339
288287
  store.hooksCleanup.forEach((cleanFn) => {
287340
288288
  cleanFn?.();
287341
288289
  });
@@ -287344,13 +288292,13 @@ var effectScheduler = {
287344
288292
  }
287345
288293
  };
287346
288294
 
287347
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
287348
- function useState(defaultValue) {
287349
- return withPointer((pointer) => {
287350
- const setState = AsyncResource2.bind(function setState(newValue) {
288295
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288296
+ function useState2(defaultValue) {
288297
+ return withPointer2((pointer) => {
288298
+ const setState = AsyncResource5.bind(function setState(newValue) {
287351
288299
  if (pointer.get() !== newValue) {
287352
288300
  pointer.set(newValue);
287353
- handleChange();
288301
+ handleChange2();
287354
288302
  }
287355
288303
  });
287356
288304
  if (pointer.initialized) {
@@ -287362,30 +288310,30 @@ function useState(defaultValue) {
287362
288310
  });
287363
288311
  }
287364
288312
 
287365
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
287366
- function useEffect(cb, depArray) {
287367
- withPointer((pointer) => {
288313
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
288314
+ function useEffect2(cb, depArray) {
288315
+ withPointer2((pointer) => {
287368
288316
  const oldDeps = pointer.get();
287369
288317
  const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
287370
288318
  if (hasChanged) {
287371
- effectScheduler.queue(cb);
288319
+ effectScheduler2.queue(cb);
287372
288320
  }
287373
288321
  pointer.set(depArray);
287374
288322
  });
287375
288323
  }
287376
288324
 
287377
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
287378
- var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
288325
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288326
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
287379
288327
 
287380
- // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
287381
- import process7 from "node:process";
287382
- function isUnicodeSupported2() {
287383
- if (process7.platform !== "win32") {
287384
- return process7.env["TERM"] !== "linux";
288328
+ // ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
288329
+ import process8 from "node:process";
288330
+ function isUnicodeSupported3() {
288331
+ if (process8.platform !== "win32") {
288332
+ return process8.env["TERM"] !== "linux";
287385
288333
  }
287386
- return Boolean(process7.env["WT_SESSION"]) || Boolean(process7.env["TERMINUS_SUBLIME"]) || process7.env["ConEmuTask"] === "{cmd::Cmder}" || process7.env["TERM_PROGRAM"] === "Terminus-Sublime" || process7.env["TERM_PROGRAM"] === "vscode" || process7.env["TERM"] === "xterm-256color" || process7.env["TERM"] === "alacritty" || process7.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
288334
+ return Boolean(process8.env["WT_SESSION"]) || Boolean(process8.env["TERMINUS_SUBLIME"]) || process8.env["ConEmuTask"] === "{cmd::Cmder}" || process8.env["TERM_PROGRAM"] === "Terminus-Sublime" || process8.env["TERM_PROGRAM"] === "vscode" || process8.env["TERM"] === "xterm-256color" || process8.env["TERM"] === "alacritty" || process8.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
287387
288335
  }
287388
- var common = {
288336
+ var common2 = {
287389
288337
  circleQuestionMark: "(?)",
287390
288338
  questionMarkPrefix: "(?)",
287391
288339
  square: "█",
@@ -287581,7 +288529,7 @@ var common = {
287581
288529
  lineBackslash: "╲",
287582
288530
  lineSlash: "╱"
287583
288531
  };
287584
- var specialMainSymbols = {
288532
+ var specialMainSymbols2 = {
287585
288533
  tick: "✔",
287586
288534
  info: "ℹ",
287587
288535
  warning: "⚠",
@@ -287617,7 +288565,7 @@ var specialMainSymbols = {
287617
288565
  oneNinth: "⅑",
287618
288566
  oneTenth: "⅒"
287619
288567
  };
287620
- var specialFallbackSymbols = {
288568
+ var specialFallbackSymbols2 = {
287621
288569
  tick: "√",
287622
288570
  info: "i",
287623
288571
  warning: "‼",
@@ -287653,39 +288601,42 @@ var specialFallbackSymbols = {
287653
288601
  oneNinth: "1/9",
287654
288602
  oneTenth: "1/10"
287655
288603
  };
287656
- var mainSymbols = { ...common, ...specialMainSymbols };
287657
- var fallbackSymbols = {
287658
- ...common,
287659
- ...specialFallbackSymbols
288604
+ var mainSymbols2 = {
288605
+ ...common2,
288606
+ ...specialMainSymbols2
287660
288607
  };
287661
- var shouldUseMain = isUnicodeSupported2();
287662
- var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
287663
- var esm_default = figures;
287664
- var replacements = Object.entries(specialMainSymbols);
288608
+ var fallbackSymbols2 = {
288609
+ ...common2,
288610
+ ...specialFallbackSymbols2
288611
+ };
288612
+ var shouldUseMain2 = isUnicodeSupported3();
288613
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
288614
+ var esm_default3 = figures2;
288615
+ var replacements2 = Object.entries(specialMainSymbols2);
287665
288616
 
287666
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
287667
- var defaultTheme = {
288617
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288618
+ var defaultTheme2 = {
287668
288619
  prefix: {
287669
- idle: import_yoctocolors_cjs.default.blue("?"),
287670
- done: import_yoctocolors_cjs.default.green(esm_default.tick)
288620
+ idle: import_yoctocolors_cjs2.default.blue("?"),
288621
+ done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
287671
288622
  },
287672
288623
  spinner: {
287673
288624
  interval: 80,
287674
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
288625
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
287675
288626
  },
287676
288627
  style: {
287677
- answer: import_yoctocolors_cjs.default.cyan,
287678
- message: import_yoctocolors_cjs.default.bold,
287679
- error: (text2) => import_yoctocolors_cjs.default.red(`> ${text2}`),
287680
- defaultAnswer: (text2) => import_yoctocolors_cjs.default.dim(`(${text2})`),
287681
- help: import_yoctocolors_cjs.default.dim,
287682
- highlight: import_yoctocolors_cjs.default.cyan,
287683
- key: (text2) => import_yoctocolors_cjs.default.cyan(import_yoctocolors_cjs.default.bold(`<${text2}>`))
288628
+ answer: import_yoctocolors_cjs2.default.cyan,
288629
+ message: import_yoctocolors_cjs2.default.bold,
288630
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
288631
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
288632
+ help: import_yoctocolors_cjs2.default.dim,
288633
+ highlight: import_yoctocolors_cjs2.default.cyan,
288634
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
287684
288635
  }
287685
288636
  };
287686
288637
 
287687
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
287688
- function isPlainObject3(value5) {
288638
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
288639
+ function isPlainObject4(value5) {
287689
288640
  if (typeof value5 !== "object" || value5 === null)
287690
288641
  return false;
287691
288642
  let proto = value5;
@@ -287694,30 +288645,30 @@ function isPlainObject3(value5) {
287694
288645
  }
287695
288646
  return Object.getPrototypeOf(value5) === proto;
287696
288647
  }
287697
- function deepMerge2(...objects) {
288648
+ function deepMerge3(...objects) {
287698
288649
  const output = {};
287699
288650
  for (const obj of objects) {
287700
288651
  for (const [key, value5] of Object.entries(obj)) {
287701
288652
  const prevValue = output[key];
287702
- output[key] = isPlainObject3(prevValue) && isPlainObject3(value5) ? deepMerge2(prevValue, value5) : value5;
288653
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
287703
288654
  }
287704
288655
  }
287705
288656
  return output;
287706
288657
  }
287707
- function makeTheme(...themes) {
288658
+ function makeTheme2(...themes) {
287708
288659
  const themesToMerge = [
287709
- defaultTheme,
288660
+ defaultTheme2,
287710
288661
  ...themes.filter((theme) => theme != null)
287711
288662
  ];
287712
- return deepMerge2(...themesToMerge);
288663
+ return deepMerge3(...themesToMerge);
287713
288664
  }
287714
288665
 
287715
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
287716
- function usePrefix({ status = "idle", theme }) {
287717
- const [showLoader, setShowLoader] = useState(false);
287718
- const [tick, setTick] = useState(0);
287719
- const { prefix, spinner: spinner2 } = makeTheme(theme);
287720
- useEffect(() => {
288666
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
288667
+ function usePrefix2({ status = "idle", theme }) {
288668
+ const [showLoader, setShowLoader] = useState2(false);
288669
+ const [tick, setTick] = useState2(0);
288670
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
288671
+ useEffect2(() => {
287721
288672
  if (status === "loading") {
287722
288673
  let tickInterval;
287723
288674
  let inc = -1;
@@ -287742,9 +288693,9 @@ function usePrefix({ status = "idle", theme }) {
287742
288693
  const iconName = status === "loading" ? "idle" : status;
287743
288694
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
287744
288695
  }
287745
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
288696
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
287746
288697
  function useMemo(fn, dependencies) {
287747
- return withPointer((pointer) => {
288698
+ return withPointer2((pointer) => {
287748
288699
  const prev = pointer.get();
287749
288700
  if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
287750
288701
  const value5 = fn();
@@ -287754,17 +288705,17 @@ function useMemo(fn, dependencies) {
287754
288705
  return prev.value;
287755
288706
  });
287756
288707
  }
287757
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
287758
- function useRef(val) {
287759
- return useState({ current: val })[0];
288708
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
288709
+ function useRef2(val) {
288710
+ return useState2({ current: val })[0];
287760
288711
  }
287761
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
287762
- function useKeypress(userHandler) {
287763
- const signal = useRef(userHandler);
288712
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
288713
+ function useKeypress2(userHandler) {
288714
+ const signal = useRef2(userHandler);
287764
288715
  signal.current = userHandler;
287765
- useEffect((rl) => {
288716
+ useEffect2((rl) => {
287766
288717
  let ignore = false;
287767
- const handler = withUpdates((_input, event) => {
288718
+ const handler = withUpdates2((_input, event) => {
287768
288719
  if (ignore)
287769
288720
  return;
287770
288721
  signal.current(event, rl);
@@ -287776,22 +288727,22 @@ function useKeypress(userHandler) {
287776
288727
  };
287777
288728
  }, []);
287778
288729
  }
287779
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
287780
- var import_cli_width = __toESM(require_cli_width(), 1);
287781
- var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
287782
- function breakLines(content, width) {
288730
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
288731
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
288732
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
288733
+ function breakLines2(content, width) {
287783
288734
  return content.split(`
287784
- `).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
288735
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
287785
288736
  `).map((str) => str.trimEnd())).join(`
287786
288737
  `);
287787
288738
  }
287788
- function readlineWidth() {
287789
- return import_cli_width.default({ defaultWidth: 80, output: readline().output });
288739
+ function readlineWidth2() {
288740
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
287790
288741
  }
287791
288742
 
287792
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
288743
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
287793
288744
  function usePointerPosition({ active, renderedItems, pageSize, loop }) {
287794
- const state = useRef({
288745
+ const state = useRef2({
287795
288746
  lastPointer: active,
287796
288747
  lastActive: undefined
287797
288748
  });
@@ -287816,12 +288767,12 @@ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
287816
288767
  return pointer;
287817
288768
  }
287818
288769
  function usePagination({ items, active, renderItem, pageSize, loop = true }) {
287819
- const width = readlineWidth();
288770
+ const width = readlineWidth2();
287820
288771
  const bound = (num) => (num % items.length + items.length) % items.length;
287821
288772
  const renderedItems = items.map((item, index) => {
287822
288773
  if (item == null)
287823
288774
  return [];
287824
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
288775
+ return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
287825
288776
  `);
287826
288777
  });
287827
288778
  const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
@@ -287855,37 +288806,37 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
287855
288806
  return pageBuffer.filter((line) => typeof line === "string").join(`
287856
288807
  `);
287857
288808
  }
287858
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
287859
- var import_mute_stream = __toESM(require_lib12(), 1);
287860
- import * as readline2 from "node:readline";
287861
- import { AsyncResource as AsyncResource3 } from "node:async_hooks";
287862
-
287863
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
287864
- import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
287865
-
287866
- // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
287867
- var ESC = "\x1B[";
287868
- var cursorLeft = ESC + "G";
287869
- var cursorHide = ESC + "?25l";
287870
- var cursorShow = ESC + "?25h";
287871
- var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
287872
- var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
287873
- var cursorTo = (x6, y4) => {
288809
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288810
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
288811
+ import * as readline4 from "node:readline";
288812
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
288813
+
288814
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288815
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
288816
+
288817
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
288818
+ var ESC2 = "\x1B[";
288819
+ var cursorLeft2 = ESC2 + "G";
288820
+ var cursorHide2 = ESC2 + "?25l";
288821
+ var cursorShow2 = ESC2 + "?25h";
288822
+ var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
288823
+ var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
288824
+ var cursorTo2 = (x6, y4) => {
287874
288825
  if (typeof y4 === "number" && !Number.isNaN(y4)) {
287875
- return `${ESC}${y4 + 1};${x6 + 1}H`;
288826
+ return `${ESC2}${y4 + 1};${x6 + 1}H`;
287876
288827
  }
287877
- return `${ESC}${x6 + 1}G`;
288828
+ return `${ESC2}${x6 + 1}G`;
287878
288829
  };
287879
- var eraseLine = ESC + "2K";
287880
- var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
288830
+ var eraseLine2 = ESC2 + "2K";
288831
+ var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
287881
288832
 
287882
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
287883
- var height = (content) => content.split(`
288833
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288834
+ var height2 = (content) => content.split(`
287884
288835
  `).length;
287885
- var lastLine = (content) => content.split(`
288836
+ var lastLine2 = (content) => content.split(`
287886
288837
  `).pop() ?? "";
287887
288838
 
287888
- class ScreenManager {
288839
+ class ScreenManager2 {
287889
288840
  height = 0;
287890
288841
  extraLinesUnderPrompt = 0;
287891
288842
  cursorPos;
@@ -287900,17 +288851,17 @@ class ScreenManager {
287900
288851
  this.rl.output.mute();
287901
288852
  }
287902
288853
  render(content, bottomContent = "") {
287903
- const promptLine = lastLine(content);
287904
- const rawPromptLine = stripVTControlCharacters2(promptLine);
288854
+ const promptLine = lastLine2(content);
288855
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
287905
288856
  let prompt = rawPromptLine;
287906
288857
  if (this.rl.line.length > 0) {
287907
288858
  prompt = prompt.slice(0, -this.rl.line.length);
287908
288859
  }
287909
288860
  this.rl.setPrompt(prompt);
287910
288861
  this.cursorPos = this.rl.getCursorPos();
287911
- const width = readlineWidth();
287912
- content = breakLines(content, width);
287913
- bottomContent = breakLines(bottomContent, width);
288862
+ const width = readlineWidth2();
288863
+ content = breakLines2(content, width);
288864
+ bottomContent = breakLines2(bottomContent, width);
287914
288865
  if (rawPromptLine.length % width === 0) {
287915
288866
  content += `
287916
288867
  `;
@@ -287918,34 +288869,34 @@ class ScreenManager {
287918
288869
  let output = content + (bottomContent ? `
287919
288870
  ` + bottomContent : "");
287920
288871
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
287921
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
288872
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
287922
288873
  if (bottomContentHeight > 0)
287923
- output += cursorUp(bottomContentHeight);
287924
- output += cursorTo(this.cursorPos.cols);
287925
- this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
288874
+ output += cursorUp2(bottomContentHeight);
288875
+ output += cursorTo2(this.cursorPos.cols);
288876
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
287926
288877
  this.extraLinesUnderPrompt = bottomContentHeight;
287927
- this.height = height(output);
288878
+ this.height = height2(output);
287928
288879
  }
287929
288880
  checkCursorPos() {
287930
288881
  const cursorPos = this.rl.getCursorPos();
287931
288882
  if (cursorPos.cols !== this.cursorPos.cols) {
287932
- this.write(cursorTo(cursorPos.cols));
288883
+ this.write(cursorTo2(cursorPos.cols));
287933
288884
  this.cursorPos = cursorPos;
287934
288885
  }
287935
288886
  }
287936
288887
  done({ clearContent }) {
287937
288888
  this.rl.setPrompt("");
287938
- let output = cursorDown(this.extraLinesUnderPrompt);
287939
- output += clearContent ? eraseLines(this.height) : `
288889
+ let output = cursorDown2(this.extraLinesUnderPrompt);
288890
+ output += clearContent ? eraseLines2(this.height) : `
287940
288891
  `;
287941
- output += cursorShow;
288892
+ output += cursorShow2;
287942
288893
  this.write(output);
287943
288894
  this.rl.close();
287944
288895
  }
287945
288896
  }
287946
288897
 
287947
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
287948
- class PromisePolyfill extends Promise {
288898
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
288899
+ class PromisePolyfill2 extends Promise {
287949
288900
  static withResolver() {
287950
288901
  let resolve6;
287951
288902
  let reject;
@@ -287957,8 +288908,8 @@ class PromisePolyfill extends Promise {
287957
288908
  }
287958
288909
  }
287959
288910
 
287960
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
287961
- function getCallSites() {
288911
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288912
+ function getCallSites2() {
287962
288913
  const _prepareStackTrace = Error.prepareStackTrace;
287963
288914
  let result = [];
287964
288915
  try {
@@ -287974,20 +288925,20 @@ function getCallSites() {
287974
288925
  Error.prepareStackTrace = _prepareStackTrace;
287975
288926
  return result;
287976
288927
  }
287977
- function createPrompt(view) {
287978
- const callSites = getCallSites();
288928
+ function createPrompt2(view) {
288929
+ const callSites = getCallSites2();
287979
288930
  const prompt = (config3, context = {}) => {
287980
288931
  const { input = process.stdin, signal } = context;
287981
288932
  const cleanups = new Set;
287982
- const output = new import_mute_stream.default;
288933
+ const output = new import_mute_stream2.default;
287983
288934
  output.pipe(context.output ?? process.stdout);
287984
- const rl = readline2.createInterface({
288935
+ const rl = readline4.createInterface({
287985
288936
  terminal: true,
287986
288937
  input,
287987
288938
  output
287988
288939
  });
287989
- const screen = new ScreenManager(rl);
287990
- const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill.withResolver();
288940
+ const screen = new ScreenManager2(rl);
288941
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
287991
288942
  const cancel3 = () => reject(new CancelPromptError2);
287992
288943
  if (signal) {
287993
288944
  const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
@@ -288007,8 +288958,8 @@ function createPrompt(view) {
288007
288958
  const checkCursorPos = () => screen.checkCursorPos();
288008
288959
  rl.input.on("keypress", checkCursorPos);
288009
288960
  cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
288010
- return withHooks(rl, (cycle) => {
288011
- const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
288961
+ return withHooks2(rl, (cycle) => {
288962
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
288012
288963
  rl.on("close", hooksCleanup);
288013
288964
  cleanups.add(() => rl.removeListener("close", hooksCleanup));
288014
288965
  cycle(() => {
@@ -288023,16 +288974,16 @@ function createPrompt(view) {
288023
288974
  }
288024
288975
  const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
288025
288976
  screen.render(content, bottomContent);
288026
- effectScheduler.run();
288977
+ effectScheduler2.run();
288027
288978
  } catch (error51) {
288028
288979
  reject(error51);
288029
288980
  }
288030
288981
  });
288031
288982
  return Object.assign(promise2.then((answer) => {
288032
- effectScheduler.clearAll();
288983
+ effectScheduler2.clearAll();
288033
288984
  return answer;
288034
288985
  }, (error51) => {
288035
- effectScheduler.clearAll();
288986
+ effectScheduler2.clearAll();
288036
288987
  throw error51;
288037
288988
  }).finally(() => {
288038
288989
  cleanups.forEach((cleanup) => cleanup());
@@ -288043,10 +288994,10 @@ function createPrompt(view) {
288043
288994
  };
288044
288995
  return prompt;
288045
288996
  }
288046
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
288047
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
288997
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
288998
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
288048
288999
  class Separator {
288049
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
289000
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
288050
289001
  type = "separator";
288051
289002
  constructor(separator) {
288052
289003
  if (separator) {
@@ -288057,104 +289008,14 @@ class Separator {
288057
289008
  return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
288058
289009
  }
288059
289010
  }
288060
- // ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288061
- var inputTheme = {
288062
- validationFailureMode: "keep"
288063
- };
288064
- var esm_default2 = createPrompt((config3, done) => {
288065
- const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
288066
- const theme = makeTheme(inputTheme, config3.theme);
288067
- const [status, setStatus] = useState("idle");
288068
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
288069
- const [errorMsg, setError] = useState();
288070
- const [value5, setValue] = useState("");
288071
- const prefix = usePrefix({ status, theme });
288072
- useKeypress(async (key, rl) => {
288073
- if (status !== "idle") {
288074
- return;
288075
- }
288076
- if (isEnterKey(key)) {
288077
- const answer = value5 || defaultValue;
288078
- setStatus("loading");
288079
- const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
288080
- if (isValid === true) {
288081
- setValue(answer);
288082
- setStatus("done");
288083
- done(answer);
288084
- } else {
288085
- if (theme.validationFailureMode === "clear") {
288086
- setValue("");
288087
- } else {
288088
- rl.write(value5);
288089
- }
288090
- setError(isValid || "You must provide a valid value");
288091
- setStatus("idle");
288092
- }
288093
- } else if (isBackspaceKey(key) && !value5) {
288094
- setDefaultValue(undefined);
288095
- } else if (isTabKey(key) && !value5) {
288096
- setDefaultValue(undefined);
288097
- rl.clearLine(0);
288098
- rl.write(defaultValue);
288099
- setValue(defaultValue);
288100
- } else {
288101
- setValue(rl.line);
288102
- setError(undefined);
288103
- }
288104
- });
288105
- useEffect((rl) => {
288106
- if (prefill === "editable" && defaultValue) {
288107
- rl.write(defaultValue);
288108
- setValue(defaultValue);
288109
- }
288110
- }, []);
288111
- const message = theme.style.message(config3.message, status);
288112
- let formattedValue = value5;
288113
- if (typeof config3.transformer === "function") {
288114
- formattedValue = config3.transformer(value5, { isFinal: status === "done" });
288115
- } else if (status === "done") {
288116
- formattedValue = theme.style.answer(value5);
288117
- }
288118
- let defaultStr;
288119
- if (defaultValue && status !== "done" && !value5) {
288120
- defaultStr = theme.style.defaultAnswer(defaultValue);
288121
- }
288122
- let error51 = "";
288123
- if (errorMsg) {
288124
- error51 = theme.style.error(errorMsg);
288125
- }
288126
- return [
288127
- [prefix, message, defaultStr, formattedValue].filter((v6) => v6 !== undefined).join(" "),
288128
- error51
288129
- ];
288130
- });
288131
-
288132
- // src/prompts/smart-contract-set/subgraph-name.prompt.ts
288133
- async function subgraphNamePrompt({
288134
- defaultName,
288135
- env: env2,
288136
- accept
288137
- }) {
288138
- const defaultSubgraphName = defaultName ? sanitizeName(defaultName) : undefined;
288139
- if (accept) {
288140
- return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
288141
- }
288142
- const subgraphName = await esm_default2({
288143
- message: "What is the name of your subgraph?",
288144
- default: defaultSubgraphName,
288145
- required: true
288146
- });
288147
- return sanitizeName(subgraphName);
288148
- }
288149
-
288150
- // ../../node_modules/.bun/@inquirer+select@4.4.0+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
288151
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
289011
+ // ../../node_modules/.bun/@inquirer+select@4.4.1+c30ff3a63f0500d5/node_modules/@inquirer/select/dist/esm/index.js
289012
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
288152
289013
  var selectTheme = {
288153
- icon: { cursor: esm_default.pointer },
289014
+ icon: { cursor: esm_default3.pointer },
288154
289015
  style: {
288155
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
288156
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2),
288157
- keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs3.default.bold(key)} ${import_yoctocolors_cjs3.default.dim(action)}`).join(import_yoctocolors_cjs3.default.dim(" • "))
289016
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
289017
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
289018
+ keysHelpTip: (keys) => keys.map(([key, action]) => `${import_yoctocolors_cjs4.default.bold(key)} ${import_yoctocolors_cjs4.default.dim(action)}`).join(import_yoctocolors_cjs4.default.dim(" • "))
288158
289019
  },
288159
289020
  helpMode: "always",
288160
289021
  indexMode: "hidden",
@@ -288188,13 +289049,13 @@ function normalizeChoices(choices) {
288188
289049
  return normalizedChoice;
288189
289050
  });
288190
289051
  }
288191
- var esm_default3 = createPrompt((config3, done) => {
289052
+ var esm_default4 = createPrompt2((config3, done) => {
288192
289053
  const { loop = true, pageSize = 7 } = config3;
288193
- const theme = makeTheme(selectTheme, config3.theme);
289054
+ const theme = makeTheme2(selectTheme, config3.theme);
288194
289055
  const { keybindings } = theme;
288195
- const [status, setStatus] = useState("idle");
288196
- const prefix = usePrefix({ status, theme });
288197
- const searchTimeoutRef = useRef();
289056
+ const [status, setStatus] = useState2("idle");
289057
+ const prefix = usePrefix2({ status, theme });
289058
+ const searchTimeoutRef = useRef2();
288198
289059
  const searchEnabled = !keybindings.includes("vim");
288199
289060
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
288200
289061
  const bounds = useMemo(() => {
@@ -288210,24 +289071,24 @@ var esm_default3 = createPrompt((config3, done) => {
288210
289071
  return -1;
288211
289072
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
288212
289073
  }, [config3.default, items]);
288213
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
289074
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
288214
289075
  const selectedChoice = items[active];
288215
- useKeypress((key, rl) => {
289076
+ useKeypress2((key, rl) => {
288216
289077
  clearTimeout(searchTimeoutRef.current);
288217
- if (isEnterKey(key)) {
289078
+ if (isEnterKey2(key)) {
288218
289079
  setStatus("done");
288219
289080
  done(selectedChoice.value);
288220
- } else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
289081
+ } else if (isUpKey2(key, keybindings) || isDownKey2(key, keybindings)) {
288221
289082
  rl.clearLine(0);
288222
- if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
288223
- const offset = isUpKey(key, keybindings) ? -1 : 1;
289083
+ if (loop || isUpKey2(key, keybindings) && active !== bounds.first || isDownKey2(key, keybindings) && active !== bounds.last) {
289084
+ const offset = isUpKey2(key, keybindings) ? -1 : 1;
288224
289085
  let next = active;
288225
289086
  do {
288226
289087
  next = (next + offset + items.length) % items.length;
288227
289088
  } while (!isSelectable(items[next]));
288228
289089
  setActive(next);
288229
289090
  }
288230
- } else if (isNumberKey(key) && !Number.isNaN(Number(rl.line))) {
289091
+ } else if (isNumberKey2(key) && !Number.isNaN(Number(rl.line))) {
288231
289092
  const selectedIndex = Number(rl.line) - 1;
288232
289093
  let selectableIndex = -1;
288233
289094
  const position = items.findIndex((item2) => {
@@ -288243,7 +289104,7 @@ var esm_default3 = createPrompt((config3, done) => {
288243
289104
  searchTimeoutRef.current = setTimeout(() => {
288244
289105
  rl.clearLine(0);
288245
289106
  }, 700);
288246
- } else if (isBackspaceKey(key)) {
289107
+ } else if (isBackspaceKey2(key)) {
288247
289108
  rl.clearLine(0);
288248
289109
  } else if (searchEnabled) {
288249
289110
  const searchTerm = rl.line.toLowerCase();
@@ -288260,7 +289121,7 @@ var esm_default3 = createPrompt((config3, done) => {
288260
289121
  }, 700);
288261
289122
  }
288262
289123
  });
288263
- useEffect(() => () => {
289124
+ useEffect2(() => () => {
288264
289125
  clearTimeout(searchTimeoutRef.current);
288265
289126
  }, []);
288266
289127
  const message = theme.style.message(config3.message, status);
@@ -288309,7 +289170,7 @@ var esm_default3 = createPrompt((config3, done) => {
288309
289170
  helpLine
288310
289171
  ].filter(Boolean).join(`
288311
289172
  `).trimEnd();
288312
- return `${lines}${cursorHide}`;
289173
+ return `${lines}${cursorHide2}`;
288313
289174
  });
288314
289175
 
288315
289176
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -288363,7 +289224,7 @@ async function subgraphPrompt({
288363
289224
  } else {
288364
289225
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
288365
289226
  }
288366
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
289227
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
288367
289228
  message,
288368
289229
  choices: choices.map((name4) => ({
288369
289230
  name: name4,
@@ -313826,7 +314687,7 @@ function extractInfoFromBody(body) {
313826
314687
  }
313827
314688
  }
313828
314689
 
313829
- // ../../node_modules/.bun/@inquirer+confirm@5.1.19+c30ff3a63f0500d5/node_modules/@inquirer/confirm/dist/esm/index.js
314690
+ // ../../node_modules/.bun/@inquirer+confirm@5.1.20+c30ff3a63f0500d5/node_modules/@inquirer/confirm/dist/esm/index.js
313830
314691
  function getBooleanValue(value5, defaultValue) {
313831
314692
  let answer = defaultValue !== false;
313832
314693
  if (/^(y|yes)/i.test(value5))
@@ -313838,21 +314699,21 @@ function getBooleanValue(value5, defaultValue) {
313838
314699
  function boolToString(value5) {
313839
314700
  return value5 ? "Yes" : "No";
313840
314701
  }
313841
- var esm_default4 = createPrompt((config3, done) => {
314702
+ var esm_default5 = createPrompt2((config3, done) => {
313842
314703
  const { transformer = boolToString } = config3;
313843
- const [status, setStatus] = useState("idle");
313844
- const [value5, setValue] = useState("");
313845
- const theme = makeTheme(config3.theme);
313846
- const prefix = usePrefix({ status, theme });
313847
- useKeypress((key, rl) => {
314704
+ const [status, setStatus] = useState2("idle");
314705
+ const [value5, setValue] = useState2("");
314706
+ const theme = makeTheme2(config3.theme);
314707
+ const prefix = usePrefix2({ status, theme });
314708
+ useKeypress2((key, rl) => {
313848
314709
  if (status !== "idle")
313849
314710
  return;
313850
- if (isEnterKey(key)) {
314711
+ if (isEnterKey2(key)) {
313851
314712
  const answer = getBooleanValue(value5, config3.default);
313852
314713
  setValue(transformer(answer));
313853
314714
  setStatus("done");
313854
314715
  done(answer);
313855
- } else if (isTabKey(key)) {
314716
+ } else if (isTabKey2(key)) {
313856
314717
  const answer = boolToString(!getBooleanValue(value5, config3.default));
313857
314718
  rl.clearLine(0);
313858
314719
  rl.write(answer);
@@ -313873,7 +314734,7 @@ var esm_default4 = createPrompt((config3, done) => {
313873
314734
  });
313874
314735
 
313875
314736
  // ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
313876
- var esm_default5 = createPrompt((config3, done) => {
314737
+ var esm_default6 = createPrompt((config3, done) => {
313877
314738
  const { validate: validate8 = () => true } = config3;
313878
314739
  const theme = makeTheme(config3.theme);
313879
314740
  const [status, setStatus] = useState("idle");
@@ -313931,7 +314792,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313931
314792
  return defaultAccessToken;
313932
314793
  }
313933
314794
  if (defaultAccessToken) {
313934
- const keep = await esm_default4({
314795
+ const keep = await esm_default5({
313935
314796
  message: "Do you want to use the existing application access token?",
313936
314797
  default: true
313937
314798
  });
@@ -313939,7 +314800,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313939
314800
  return defaultAccessToken;
313940
314801
  }
313941
314802
  }
313942
- const create3 = await esm_default4({
314803
+ const create3 = await esm_default5({
313943
314804
  message: "Do you want to create a new application access token?",
313944
314805
  default: false
313945
314806
  });
@@ -314007,7 +314868,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
314007
314868
  return aat;
314008
314869
  } catch (_error) {}
314009
314870
  }
314010
- return esm_default5({
314871
+ return esm_default6({
314011
314872
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
314012
314873
  validate(value5) {
314013
314874
  try {
@@ -314039,7 +314900,7 @@ async function applicationPrompt(env2, applications, accept) {
314039
314900
  if (is_in_ci_default) {
314040
314901
  nothingSelectedError("application");
314041
314902
  }
314042
- const application = await esm_default3({
314903
+ const application = await esm_default4({
314043
314904
  message: "Which application do you want to connect to?",
314044
314905
  choices: applications.map((applications2) => ({
314045
314906
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -314152,7 +315013,7 @@ async function blockchainNodePrompt({
314152
315013
  }
314153
315014
  return item;
314154
315015
  }) : choices;
314155
- return esm_default3({
315016
+ return esm_default4({
314156
315017
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
314157
315018
  choices: filteredChoices,
314158
315019
  default: defaultNode
@@ -314182,7 +315043,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
314182
315043
  isRequired,
314183
315044
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
314184
315045
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
314185
- return esm_default3({
315046
+ return esm_default4({
314186
315047
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
314187
315048
  choices: filteredChoices,
314188
315049
  default: defaultNode
@@ -314207,7 +315068,7 @@ async function blockscoutPrompt({
314207
315068
  envKey: "SETTLEMINT_BLOCKSCOUT",
314208
315069
  isRequired,
314209
315070
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
314210
- return esm_default3({
315071
+ return esm_default4({
314211
315072
  message: "Which blockscout instance do you want to connect to?",
314212
315073
  choices,
314213
315074
  default: defaultBlockscout
@@ -314230,7 +315091,7 @@ async function customDeploymentPrompt({
314230
315091
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
314231
315092
  isRequired,
314232
315093
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
314233
- return esm_default3({
315094
+ return esm_default4({
314234
315095
  message: "Which Custom Deployment do you want to connect to?",
314235
315096
  choices,
314236
315097
  default: defaultCustomDeployment
@@ -314257,7 +315118,7 @@ async function hasuraPrompt({
314257
315118
  envKey: "SETTLEMINT_HASURA",
314258
315119
  isRequired,
314259
315120
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
314260
- return esm_default3({
315121
+ return esm_default4({
314261
315122
  message: "Which Hasura instance do you want to connect to?",
314262
315123
  choices,
314263
315124
  default: defaultHasura
@@ -314281,7 +315142,7 @@ async function hdPrivateKeyPrompt({
314281
315142
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
314282
315143
  isRequired,
314283
315144
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
314284
- return esm_default3({
315145
+ return esm_default4({
314285
315146
  message: "Which HD Private Key do you want to use?",
314286
315147
  choices,
314287
315148
  default: defaultPrivateKey
@@ -314305,7 +315166,7 @@ async function ipfsPrompt({
314305
315166
  envKey: "SETTLEMINT_IPFS",
314306
315167
  isRequired,
314307
315168
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314308
- return esm_default3({
315169
+ return esm_default4({
314309
315170
  message: "Which IPFS instance do you want to connect to?",
314310
315171
  choices,
314311
315172
  default: defaultStorage
@@ -314329,7 +315190,7 @@ async function minioPrompt({
314329
315190
  envKey: "SETTLEMINT_MINIO",
314330
315191
  isRequired,
314331
315192
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314332
- return esm_default3({
315193
+ return esm_default4({
314333
315194
  message: "Which MinIO instance do you want to connect to?",
314334
315195
  choices,
314335
315196
  default: defaultStorage
@@ -314353,7 +315214,7 @@ async function portalPrompt({
314353
315214
  envKey: "SETTLEMINT_PORTAL",
314354
315215
  isRequired,
314355
315216
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314356
- return esm_default3({
315217
+ return esm_default4({
314357
315218
  message: "Which Smart Contract Portal instance do you want to connect to?",
314358
315219
  choices,
314359
315220
  default: defaultMiddleware
@@ -314382,7 +315243,7 @@ async function theGraphPrompt({
314382
315243
  isRequired,
314383
315244
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314384
315245
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
314385
- return esm_default3({
315246
+ return esm_default4({
314386
315247
  message: "Which The Graph instance do you want to connect to?",
314387
315248
  choices: filteredChoices,
314388
315249
  default: defaultMiddleware
@@ -314429,7 +315290,7 @@ async function instancePrompt({
314429
315290
  if (knownInstances.length === 0) {
314430
315291
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
314431
315292
  }
314432
- return esm_default3({
315293
+ return esm_default4({
314433
315294
  message: "What instance do you want to connect to?",
314434
315295
  choices: [
314435
315296
  ...knownInstances.map((instance) => ({
@@ -314465,7 +315326,7 @@ async function serviceSecretPrompt({
314465
315326
  return defaultSecret;
314466
315327
  }
314467
315328
  if (defaultSecret) {
314468
- const keep = await esm_default4({
315329
+ const keep = await esm_default5({
314469
315330
  message: `Do you want to use the existing ${name4} secret?`,
314470
315331
  default: true
314471
315332
  });
@@ -314473,7 +315334,7 @@ async function serviceSecretPrompt({
314473
315334
  return defaultSecret;
314474
315335
  }
314475
315336
  }
314476
- const serviceSecret = await esm_default5({
315337
+ const serviceSecret = await esm_default6({
314477
315338
  message
314478
315339
  });
314479
315340
  return serviceSecret || undefined;
@@ -314525,7 +315386,7 @@ async function workspacePrompt(env2, workspaces, accept) {
314525
315386
  if (is_in_ci_default) {
314526
315387
  nothingSelectedError("workspace");
314527
315388
  }
314528
- const workspace = await esm_default3({
315389
+ const workspace = await esm_default4({
314529
315390
  message: "Which workspace do you want to connect to?",
314530
315391
  choices: workspaces.map((workspace2) => ({
314531
315392
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -315367,7 +316228,7 @@ async function templatePrompt(platformConfig, argument) {
315367
316228
  }
315368
316229
  return template2;
315369
316230
  }
315370
- const template = await esm_default3({
316231
+ const template = await esm_default4({
315371
316232
  message: "Which template do you want to use?",
315372
316233
  choices: [
315373
316234
  ...kits.map((template2) => ({
@@ -315587,7 +316448,7 @@ var basename2 = function(p5, extension) {
315587
316448
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
315588
316449
  };
315589
316450
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
315590
- function isPlainObject4(value5) {
316451
+ function isPlainObject5(value5) {
315591
316452
  if (value5 === null || typeof value5 !== "object") {
315592
316453
  return false;
315593
316454
  }
@@ -315604,7 +316465,7 @@ function isPlainObject4(value5) {
315604
316465
  return true;
315605
316466
  }
315606
316467
  function _defu(baseObject, defaults2, namespace = ".", merger) {
315607
- if (!isPlainObject4(defaults2)) {
316468
+ if (!isPlainObject5(defaults2)) {
315608
316469
  return _defu(baseObject, {}, namespace, merger);
315609
316470
  }
315610
316471
  const object2 = Object.assign({}, defaults2);
@@ -315621,7 +316482,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
315621
316482
  }
315622
316483
  if (Array.isArray(value5) && Array.isArray(object2[key])) {
315623
316484
  object2[key] = [...value5, ...object2[key]];
315624
- } else if (isPlainObject4(value5) && isPlainObject4(object2[key])) {
316485
+ } else if (isPlainObject5(value5) && isPlainObject5(object2[key])) {
315625
316486
  object2[key] = _defu(value5, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
315626
316487
  } else {
315627
316488
  object2[key] = value5;
@@ -318652,7 +319513,7 @@ function createCommand2() {
318652
319513
  await mkdir6(projectDir, { recursive: true });
318653
319514
  }
318654
319515
  if (!await isEmpty(projectDir)) {
318655
- const confirmEmpty = await esm_default4({
319516
+ const confirmEmpty = await esm_default5({
318656
319517
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
318657
319518
  default: false
318658
319519
  });
@@ -318905,7 +319766,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318905
319766
  return defaultPersonalAccessToken;
318906
319767
  }
318907
319768
  if (existingConfig && defaultPersonalAccessToken) {
318908
- const useExisting = await esm_default4({
319769
+ const useExisting = await esm_default5({
318909
319770
  message: `Do you want to use your existing personal access token for ${instance}?`,
318910
319771
  default: true
318911
319772
  });
@@ -318913,7 +319774,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318913
319774
  return defaultPersonalAccessToken;
318914
319775
  }
318915
319776
  }
318916
- return esm_default5({
319777
+ return esm_default6({
318917
319778
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
318918
319779
  validate(value5) {
318919
319780
  try {
@@ -319039,7 +319900,7 @@ function logoutCommand() {
319039
319900
  }
319040
319901
  const env2 = await loadEnv(false, false);
319041
319902
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
319042
- const instance = await esm_default3({
319903
+ const instance = await esm_default4({
319043
319904
  message: "Select the instance to logout from:",
319044
319905
  choices: instances.map((instance2) => ({
319045
319906
  value: instance2,
@@ -319060,7 +319921,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
319060
319921
  if (verificationChallenges.length === 1) {
319061
319922
  return verificationChallenges[0];
319062
319923
  }
319063
- const verificationChallenge = await esm_default3({
319924
+ const verificationChallenge = await esm_default4({
319064
319925
  message: "Which pincode verification do you want to use?",
319065
319926
  choices: verificationChallenges.map((verificationChallenge2) => ({
319066
319927
  name: verificationChallenge2.name,
@@ -319124,7 +319985,7 @@ function pincodeVerificationResponseCommand() {
319124
319985
  nodeId: selectedBlockchainNode.id
319125
319986
  });
319126
319987
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
319127
- const pincode = await esm_default5({
319988
+ const pincode = await esm_default6({
319128
319989
  message: "Enter your pincode",
319129
319990
  validate(value5) {
319130
319991
  if (!value5.trim()) {
@@ -319277,7 +320138,7 @@ async function providerPrompt(platformConfig, argument) {
319277
320138
  if (possibleProviders.length === 1) {
319278
320139
  return possibleProviders[0];
319279
320140
  }
319280
- const provider = await esm_default3({
320141
+ const provider = await esm_default4({
319281
320142
  message: "Which provider do you want to use?",
319282
320143
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
319283
320144
  name: target.name,
@@ -319308,7 +320169,7 @@ async function regionPrompt(provider, argument) {
319308
320169
  if (possibleRegions.length === 1) {
319309
320170
  return possibleRegions[0];
319310
320171
  }
319311
- const region = await esm_default3({
320172
+ const region = await esm_default4({
319312
320173
  message: "Which region do you want to use?",
319313
320174
  choices: provider.clusters.map((cluster) => ({
319314
320175
  name: cluster.name,
@@ -319838,7 +320699,7 @@ async function blockchainNetworkPrompt({
319838
320699
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
319839
320700
  isRequired,
319840
320701
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
319841
- return esm_default3({
320702
+ return esm_default4({
319842
320703
  message: "Which blockchain network do you want to connect to?",
319843
320704
  choices,
319844
320705
  default: defaultNetwork
@@ -321603,7 +322464,7 @@ function jsonOutput(data) {
321603
322464
  var composer = require_composer();
321604
322465
  var Document = require_Document();
321605
322466
  var Schema = require_Schema();
321606
- var errors4 = require_errors3();
322467
+ var errors5 = require_errors3();
321607
322468
  var Alias = require_Alias();
321608
322469
  var identity2 = require_identity();
321609
322470
  var Pair = require_Pair();
@@ -321619,9 +322480,9 @@ var visit2 = require_visit();
321619
322480
  var $Composer = composer.Composer;
321620
322481
  var $Document = Document.Document;
321621
322482
  var $Schema = Schema.Schema;
321622
- var $YAMLError = errors4.YAMLError;
321623
- var $YAMLParseError = errors4.YAMLParseError;
321624
- var $YAMLWarning = errors4.YAMLWarning;
322483
+ var $YAMLError = errors5.YAMLError;
322484
+ var $YAMLParseError = errors5.YAMLParseError;
322485
+ var $YAMLWarning = errors5.YAMLWarning;
321625
322486
  var $Alias = Alias.Alias;
321626
322487
  var $isAlias = identity2.isAlias;
321627
322488
  var $isCollection = identity2.isCollection;
@@ -322140,7 +323001,7 @@ async function useCasePrompt(platformConfig, argument) {
322140
323001
  if (selectableUseCases.length === 1) {
322141
323002
  return selectableUseCases[0];
322142
323003
  }
322143
- const useCase = await esm_default3({
323004
+ const useCase = await esm_default4({
322144
323005
  message: "Which use case do you want to use?",
322145
323006
  choices: selectableUseCases.map((useCase2) => ({
322146
323007
  name: formatUseCaseName(useCase2.name),
@@ -322160,7 +323021,7 @@ function formatUseCaseName(name4) {
322160
323021
  }
322161
323022
 
322162
323023
  // src/utils/smart-contract-set/execute-foundry-command.ts
322163
- var import_which = __toESM(require_lib4(), 1);
323024
+ var import_which = __toESM(require_lib5(), 1);
322164
323025
  async function executeFoundryCommand(command, args) {
322165
323026
  try {
322166
323027
  await import_which.default(command);
@@ -322198,7 +323059,7 @@ function createCommand4() {
322198
323059
  const targetDir = formatTargetDir(name4);
322199
323060
  const projectDir = join10(process.cwd(), targetDir);
322200
323061
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
322201
- const confirmEmpty = await esm_default4({
323062
+ const confirmEmpty = await esm_default5({
322202
323063
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
322203
323064
  default: false
322204
323065
  });
@@ -322531,7 +323392,7 @@ async function addressPrompt({
322531
323392
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
322532
323393
  Please select another key or activate this key on the node and try again.`, "warn");
322533
323394
  }
322534
- const address = await esm_default3({
323395
+ const address = await esm_default4({
322535
323396
  message: "Which private key do you want to deploy from?",
322536
323397
  choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
322537
323398
  name: name4,
@@ -323482,4 +324343,4 @@ async function sdkCliCommand(argv = process.argv) {
323482
324343
  // src/cli.ts
323483
324344
  sdkCliCommand();
323484
324345
 
323485
- //# debugId=73BC85A06160E9CF64756E2164756E21
324346
+ //# debugId=D574FAF769AD585B64756E2164756E21