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

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 +1618 -744
  2. package/dist/cli.js.map +25 -9
  3. package/package.json +8 -8
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 colors3 = 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(colors3.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 ? colors3.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 colors3 = 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(colors3.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(" " + colors3.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 colors3 = 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 = colors3.blueBackground("".padStart(tsIconLength));
162111
+ const tsIconSecondLine = colors3.blueBackground(colors3.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,14 @@ 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 isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
261870
+ var isDownKey = (key, keybindings = []) => key.name === "down" || keybindings.includes("vim") && key.name === "j" || keybindings.includes("emacs") && key.ctrl && key.name === "n";
261871
+ var isBackspaceKey = (key) => key.name === "backspace";
261872
+ var isTabKey = (key) => key.name === "tab";
261873
+ var isNumberKey = (key) => "1234567890".includes(key.name);
261874
+ var isEnterKey = (key) => key.name === "enter" || key.name === "return";
261875
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
261749
261876
  class AbortPromptError extends Error {
261750
261877
  name = "AbortPromptError";
261751
261878
  message = "Prompt was aborted";
@@ -261763,9 +261890,637 @@ class CancelPromptError extends Error {
261763
261890
  class ExitPromptError extends Error {
261764
261891
  name = "ExitPromptError";
261765
261892
  }
261893
+
261894
+ class HookError extends Error {
261895
+ name = "HookError";
261896
+ }
261897
+
261766
261898
  class ValidationError extends Error {
261767
261899
  name = "ValidationError";
261768
261900
  }
261901
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
261902
+ import { AsyncResource as AsyncResource2 } from "node:async_hooks";
261903
+
261904
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
261905
+ import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
261906
+ var hookStorage = new AsyncLocalStorage;
261907
+ function createStore(rl) {
261908
+ const store = {
261909
+ rl,
261910
+ hooks: [],
261911
+ hooksCleanup: [],
261912
+ hooksEffect: [],
261913
+ index: 0,
261914
+ handleChange() {}
261915
+ };
261916
+ return store;
261917
+ }
261918
+ function withHooks(rl, cb) {
261919
+ const store = createStore(rl);
261920
+ return hookStorage.run(store, () => {
261921
+ function cycle(render) {
261922
+ store.handleChange = () => {
261923
+ store.index = 0;
261924
+ render();
261925
+ };
261926
+ store.handleChange();
261927
+ }
261928
+ return cb(cycle);
261929
+ });
261930
+ }
261931
+ function getStore() {
261932
+ const store = hookStorage.getStore();
261933
+ if (!store) {
261934
+ throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
261935
+ }
261936
+ return store;
261937
+ }
261938
+ function readline() {
261939
+ return getStore().rl;
261940
+ }
261941
+ function withUpdates(fn) {
261942
+ const wrapped = (...args) => {
261943
+ const store = getStore();
261944
+ let shouldUpdate = false;
261945
+ const oldHandleChange = store.handleChange;
261946
+ store.handleChange = () => {
261947
+ shouldUpdate = true;
261948
+ };
261949
+ const returnValue = fn(...args);
261950
+ if (shouldUpdate) {
261951
+ oldHandleChange();
261952
+ }
261953
+ store.handleChange = oldHandleChange;
261954
+ return returnValue;
261955
+ };
261956
+ return AsyncResource.bind(wrapped);
261957
+ }
261958
+ function withPointer(cb) {
261959
+ const store = getStore();
261960
+ const { index } = store;
261961
+ const pointer = {
261962
+ get() {
261963
+ return store.hooks[index];
261964
+ },
261965
+ set(value) {
261966
+ store.hooks[index] = value;
261967
+ },
261968
+ initialized: index in store.hooks
261969
+ };
261970
+ const returnValue = cb(pointer);
261971
+ store.index++;
261972
+ return returnValue;
261973
+ }
261974
+ function handleChange() {
261975
+ getStore().handleChange();
261976
+ }
261977
+ var effectScheduler = {
261978
+ queue(cb) {
261979
+ const store = getStore();
261980
+ const { index } = store;
261981
+ store.hooksEffect.push(() => {
261982
+ store.hooksCleanup[index]?.();
261983
+ const cleanFn = cb(readline());
261984
+ if (cleanFn != null && typeof cleanFn !== "function") {
261985
+ throw new ValidationError("useEffect return value must be a cleanup function or nothing.");
261986
+ }
261987
+ store.hooksCleanup[index] = cleanFn;
261988
+ });
261989
+ },
261990
+ run() {
261991
+ const store = getStore();
261992
+ withUpdates(() => {
261993
+ store.hooksEffect.forEach((effect) => {
261994
+ effect();
261995
+ });
261996
+ store.hooksEffect.length = 0;
261997
+ })();
261998
+ },
261999
+ clearAll() {
262000
+ const store = getStore();
262001
+ store.hooksCleanup.forEach((cleanFn) => {
262002
+ cleanFn?.();
262003
+ });
262004
+ store.hooksEffect.length = 0;
262005
+ store.hooksCleanup.length = 0;
262006
+ }
262007
+ };
262008
+
262009
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
262010
+ function useState(defaultValue) {
262011
+ return withPointer((pointer) => {
262012
+ const setState = AsyncResource2.bind(function setState(newValue) {
262013
+ if (pointer.get() !== newValue) {
262014
+ pointer.set(newValue);
262015
+ handleChange();
262016
+ }
262017
+ });
262018
+ if (pointer.initialized) {
262019
+ return [pointer.get(), setState];
262020
+ }
262021
+ const value = typeof defaultValue === "function" ? defaultValue() : defaultValue;
262022
+ pointer.set(value);
262023
+ return [value, setState];
262024
+ });
262025
+ }
262026
+
262027
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
262028
+ function useEffect(cb, depArray) {
262029
+ withPointer((pointer) => {
262030
+ const oldDeps = pointer.get();
262031
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i) => !Object.is(dep, oldDeps[i]));
262032
+ if (hasChanged) {
262033
+ effectScheduler.queue(cb);
262034
+ }
262035
+ pointer.set(depArray);
262036
+ });
262037
+ }
262038
+
262039
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262040
+ var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
262041
+
262042
+ // ../../node_modules/.bun/@inquirer+figures@1.0.14/node_modules/@inquirer/figures/dist/esm/index.js
262043
+ import process2 from "node:process";
262044
+ function isUnicodeSupported() {
262045
+ if (process2.platform !== "win32") {
262046
+ return process2.env["TERM"] !== "linux";
262047
+ }
262048
+ 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";
262049
+ }
262050
+ var common = {
262051
+ circleQuestionMark: "(?)",
262052
+ questionMarkPrefix: "(?)",
262053
+ square: "█",
262054
+ squareDarkShade: "▓",
262055
+ squareMediumShade: "▒",
262056
+ squareLightShade: "░",
262057
+ squareTop: "▀",
262058
+ squareBottom: "▄",
262059
+ squareLeft: "▌",
262060
+ squareRight: "▐",
262061
+ squareCenter: "■",
262062
+ bullet: "●",
262063
+ dot: "․",
262064
+ ellipsis: "…",
262065
+ pointerSmall: "›",
262066
+ triangleUp: "▲",
262067
+ triangleUpSmall: "▴",
262068
+ triangleDown: "▼",
262069
+ triangleDownSmall: "▾",
262070
+ triangleLeftSmall: "◂",
262071
+ triangleRightSmall: "▸",
262072
+ home: "⌂",
262073
+ heart: "♥",
262074
+ musicNote: "♪",
262075
+ musicNoteBeamed: "♫",
262076
+ arrowUp: "↑",
262077
+ arrowDown: "↓",
262078
+ arrowLeft: "←",
262079
+ arrowRight: "→",
262080
+ arrowLeftRight: "↔",
262081
+ arrowUpDown: "↕",
262082
+ almostEqual: "≈",
262083
+ notEqual: "≠",
262084
+ lessOrEqual: "≤",
262085
+ greaterOrEqual: "≥",
262086
+ identical: "≡",
262087
+ infinity: "∞",
262088
+ subscriptZero: "₀",
262089
+ subscriptOne: "₁",
262090
+ subscriptTwo: "₂",
262091
+ subscriptThree: "₃",
262092
+ subscriptFour: "₄",
262093
+ subscriptFive: "₅",
262094
+ subscriptSix: "₆",
262095
+ subscriptSeven: "₇",
262096
+ subscriptEight: "₈",
262097
+ subscriptNine: "₉",
262098
+ oneHalf: "½",
262099
+ oneThird: "⅓",
262100
+ oneQuarter: "¼",
262101
+ oneFifth: "⅕",
262102
+ oneSixth: "⅙",
262103
+ oneEighth: "⅛",
262104
+ twoThirds: "⅔",
262105
+ twoFifths: "⅖",
262106
+ threeQuarters: "¾",
262107
+ threeFifths: "⅗",
262108
+ threeEighths: "⅜",
262109
+ fourFifths: "⅘",
262110
+ fiveSixths: "⅚",
262111
+ fiveEighths: "⅝",
262112
+ sevenEighths: "⅞",
262113
+ line: "─",
262114
+ lineBold: "━",
262115
+ lineDouble: "═",
262116
+ lineDashed0: "┄",
262117
+ lineDashed1: "┅",
262118
+ lineDashed2: "┈",
262119
+ lineDashed3: "┉",
262120
+ lineDashed4: "╌",
262121
+ lineDashed5: "╍",
262122
+ lineDashed6: "╴",
262123
+ lineDashed7: "╶",
262124
+ lineDashed8: "╸",
262125
+ lineDashed9: "╺",
262126
+ lineDashed10: "╼",
262127
+ lineDashed11: "╾",
262128
+ lineDashed12: "−",
262129
+ lineDashed13: "–",
262130
+ lineDashed14: "‐",
262131
+ lineDashed15: "⁃",
262132
+ lineVertical: "│",
262133
+ lineVerticalBold: "┃",
262134
+ lineVerticalDouble: "║",
262135
+ lineVerticalDashed0: "┆",
262136
+ lineVerticalDashed1: "┇",
262137
+ lineVerticalDashed2: "┊",
262138
+ lineVerticalDashed3: "┋",
262139
+ lineVerticalDashed4: "╎",
262140
+ lineVerticalDashed5: "╏",
262141
+ lineVerticalDashed6: "╵",
262142
+ lineVerticalDashed7: "╷",
262143
+ lineVerticalDashed8: "╹",
262144
+ lineVerticalDashed9: "╻",
262145
+ lineVerticalDashed10: "╽",
262146
+ lineVerticalDashed11: "╿",
262147
+ lineDownLeft: "┐",
262148
+ lineDownLeftArc: "╮",
262149
+ lineDownBoldLeftBold: "┓",
262150
+ lineDownBoldLeft: "┒",
262151
+ lineDownLeftBold: "┑",
262152
+ lineDownDoubleLeftDouble: "╗",
262153
+ lineDownDoubleLeft: "╖",
262154
+ lineDownLeftDouble: "╕",
262155
+ lineDownRight: "┌",
262156
+ lineDownRightArc: "╭",
262157
+ lineDownBoldRightBold: "┏",
262158
+ lineDownBoldRight: "┎",
262159
+ lineDownRightBold: "┍",
262160
+ lineDownDoubleRightDouble: "╔",
262161
+ lineDownDoubleRight: "╓",
262162
+ lineDownRightDouble: "╒",
262163
+ lineUpLeft: "┘",
262164
+ lineUpLeftArc: "╯",
262165
+ lineUpBoldLeftBold: "┛",
262166
+ lineUpBoldLeft: "┚",
262167
+ lineUpLeftBold: "┙",
262168
+ lineUpDoubleLeftDouble: "╝",
262169
+ lineUpDoubleLeft: "╜",
262170
+ lineUpLeftDouble: "╛",
262171
+ lineUpRight: "└",
262172
+ lineUpRightArc: "╰",
262173
+ lineUpBoldRightBold: "┗",
262174
+ lineUpBoldRight: "┖",
262175
+ lineUpRightBold: "┕",
262176
+ lineUpDoubleRightDouble: "╚",
262177
+ lineUpDoubleRight: "╙",
262178
+ lineUpRightDouble: "╘",
262179
+ lineUpDownLeft: "┤",
262180
+ lineUpBoldDownBoldLeftBold: "┫",
262181
+ lineUpBoldDownBoldLeft: "┨",
262182
+ lineUpDownLeftBold: "┥",
262183
+ lineUpBoldDownLeftBold: "┩",
262184
+ lineUpDownBoldLeftBold: "┪",
262185
+ lineUpDownBoldLeft: "┧",
262186
+ lineUpBoldDownLeft: "┦",
262187
+ lineUpDoubleDownDoubleLeftDouble: "╣",
262188
+ lineUpDoubleDownDoubleLeft: "╢",
262189
+ lineUpDownLeftDouble: "╡",
262190
+ lineUpDownRight: "├",
262191
+ lineUpBoldDownBoldRightBold: "┣",
262192
+ lineUpBoldDownBoldRight: "┠",
262193
+ lineUpDownRightBold: "┝",
262194
+ lineUpBoldDownRightBold: "┡",
262195
+ lineUpDownBoldRightBold: "┢",
262196
+ lineUpDownBoldRight: "┟",
262197
+ lineUpBoldDownRight: "┞",
262198
+ lineUpDoubleDownDoubleRightDouble: "╠",
262199
+ lineUpDoubleDownDoubleRight: "╟",
262200
+ lineUpDownRightDouble: "╞",
262201
+ lineDownLeftRight: "┬",
262202
+ lineDownBoldLeftBoldRightBold: "┳",
262203
+ lineDownLeftBoldRightBold: "┯",
262204
+ lineDownBoldLeftRight: "┰",
262205
+ lineDownBoldLeftBoldRight: "┱",
262206
+ lineDownBoldLeftRightBold: "┲",
262207
+ lineDownLeftRightBold: "┮",
262208
+ lineDownLeftBoldRight: "┭",
262209
+ lineDownDoubleLeftDoubleRightDouble: "╦",
262210
+ lineDownDoubleLeftRight: "╥",
262211
+ lineDownLeftDoubleRightDouble: "╤",
262212
+ lineUpLeftRight: "┴",
262213
+ lineUpBoldLeftBoldRightBold: "┻",
262214
+ lineUpLeftBoldRightBold: "┷",
262215
+ lineUpBoldLeftRight: "┸",
262216
+ lineUpBoldLeftBoldRight: "┹",
262217
+ lineUpBoldLeftRightBold: "┺",
262218
+ lineUpLeftRightBold: "┶",
262219
+ lineUpLeftBoldRight: "┵",
262220
+ lineUpDoubleLeftDoubleRightDouble: "╩",
262221
+ lineUpDoubleLeftRight: "╨",
262222
+ lineUpLeftDoubleRightDouble: "╧",
262223
+ lineUpDownLeftRight: "┼",
262224
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
262225
+ lineUpDownBoldLeftBoldRightBold: "╈",
262226
+ lineUpBoldDownLeftBoldRightBold: "╇",
262227
+ lineUpBoldDownBoldLeftRightBold: "╊",
262228
+ lineUpBoldDownBoldLeftBoldRight: "╉",
262229
+ lineUpBoldDownLeftRight: "╀",
262230
+ lineUpDownBoldLeftRight: "╁",
262231
+ lineUpDownLeftBoldRight: "┽",
262232
+ lineUpDownLeftRightBold: "┾",
262233
+ lineUpBoldDownBoldLeftRight: "╂",
262234
+ lineUpDownLeftBoldRightBold: "┿",
262235
+ lineUpBoldDownLeftBoldRight: "╃",
262236
+ lineUpBoldDownLeftRightBold: "╄",
262237
+ lineUpDownBoldLeftBoldRight: "╅",
262238
+ lineUpDownBoldLeftRightBold: "╆",
262239
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
262240
+ lineUpDoubleDownDoubleLeftRight: "╫",
262241
+ lineUpDownLeftDoubleRightDouble: "╪",
262242
+ lineCross: "╳",
262243
+ lineBackslash: "╲",
262244
+ lineSlash: "╱"
262245
+ };
262246
+ var specialMainSymbols = {
262247
+ tick: "✔",
262248
+ info: "ℹ",
262249
+ warning: "⚠",
262250
+ cross: "✘",
262251
+ squareSmall: "◻",
262252
+ squareSmallFilled: "◼",
262253
+ circle: "◯",
262254
+ circleFilled: "◉",
262255
+ circleDotted: "◌",
262256
+ circleDouble: "◎",
262257
+ circleCircle: "ⓞ",
262258
+ circleCross: "ⓧ",
262259
+ circlePipe: "Ⓘ",
262260
+ radioOn: "◉",
262261
+ radioOff: "◯",
262262
+ checkboxOn: "☒",
262263
+ checkboxOff: "☐",
262264
+ checkboxCircleOn: "ⓧ",
262265
+ checkboxCircleOff: "Ⓘ",
262266
+ pointer: "❯",
262267
+ triangleUpOutline: "△",
262268
+ triangleLeft: "◀",
262269
+ triangleRight: "▶",
262270
+ lozenge: "◆",
262271
+ lozengeOutline: "◇",
262272
+ hamburger: "☰",
262273
+ smiley: "㋡",
262274
+ mustache: "෴",
262275
+ star: "★",
262276
+ play: "▶",
262277
+ nodejs: "⬢",
262278
+ oneSeventh: "⅐",
262279
+ oneNinth: "⅑",
262280
+ oneTenth: "⅒"
262281
+ };
262282
+ var specialFallbackSymbols = {
262283
+ tick: "√",
262284
+ info: "i",
262285
+ warning: "‼",
262286
+ cross: "×",
262287
+ squareSmall: "□",
262288
+ squareSmallFilled: "■",
262289
+ circle: "( )",
262290
+ circleFilled: "(*)",
262291
+ circleDotted: "( )",
262292
+ circleDouble: "( )",
262293
+ circleCircle: "(○)",
262294
+ circleCross: "(×)",
262295
+ circlePipe: "(│)",
262296
+ radioOn: "(*)",
262297
+ radioOff: "( )",
262298
+ checkboxOn: "[×]",
262299
+ checkboxOff: "[ ]",
262300
+ checkboxCircleOn: "(×)",
262301
+ checkboxCircleOff: "( )",
262302
+ pointer: ">",
262303
+ triangleUpOutline: "∆",
262304
+ triangleLeft: "◄",
262305
+ triangleRight: "►",
262306
+ lozenge: "♦",
262307
+ lozengeOutline: "◊",
262308
+ hamburger: "≡",
262309
+ smiley: "☺",
262310
+ mustache: "┌─┐",
262311
+ star: "✶",
262312
+ play: "►",
262313
+ nodejs: "♦",
262314
+ oneSeventh: "1/7",
262315
+ oneNinth: "1/9",
262316
+ oneTenth: "1/10"
262317
+ };
262318
+ var mainSymbols = { ...common, ...specialMainSymbols };
262319
+ var fallbackSymbols = {
262320
+ ...common,
262321
+ ...specialFallbackSymbols
262322
+ };
262323
+ var shouldUseMain = isUnicodeSupported();
262324
+ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
262325
+ var esm_default = figures;
262326
+ var replacements = Object.entries(specialMainSymbols);
262327
+
262328
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
262329
+ var defaultTheme = {
262330
+ prefix: {
262331
+ idle: import_yoctocolors_cjs.default.blue("?"),
262332
+ done: import_yoctocolors_cjs.default.green(esm_default.tick)
262333
+ },
262334
+ spinner: {
262335
+ interval: 80,
262336
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
262337
+ },
262338
+ style: {
262339
+ answer: import_yoctocolors_cjs.default.cyan,
262340
+ message: import_yoctocolors_cjs.default.bold,
262341
+ error: (text) => import_yoctocolors_cjs.default.red(`> ${text}`),
262342
+ defaultAnswer: (text) => import_yoctocolors_cjs.default.dim(`(${text})`),
262343
+ help: import_yoctocolors_cjs.default.dim,
262344
+ highlight: import_yoctocolors_cjs.default.cyan,
262345
+ key: (text) => import_yoctocolors_cjs.default.cyan(import_yoctocolors_cjs.default.bold(`<${text}>`))
262346
+ }
262347
+ };
262348
+
262349
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
262350
+ function isPlainObject(value) {
262351
+ if (typeof value !== "object" || value === null)
262352
+ return false;
262353
+ let proto = value;
262354
+ while (Object.getPrototypeOf(proto) !== null) {
262355
+ proto = Object.getPrototypeOf(proto);
262356
+ }
262357
+ return Object.getPrototypeOf(value) === proto;
262358
+ }
262359
+ function deepMerge(...objects) {
262360
+ const output = {};
262361
+ for (const obj of objects) {
262362
+ for (const [key, value] of Object.entries(obj)) {
262363
+ const prevValue = output[key];
262364
+ output[key] = isPlainObject(prevValue) && isPlainObject(value) ? deepMerge(prevValue, value) : value;
262365
+ }
262366
+ }
262367
+ return output;
262368
+ }
262369
+ function makeTheme(...themes) {
262370
+ const themesToMerge = [
262371
+ defaultTheme,
262372
+ ...themes.filter((theme) => theme != null)
262373
+ ];
262374
+ return deepMerge(...themesToMerge);
262375
+ }
262376
+
262377
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
262378
+ function usePrefix({ status = "idle", theme }) {
262379
+ const [showLoader, setShowLoader] = useState(false);
262380
+ const [tick, setTick] = useState(0);
262381
+ const { prefix, spinner } = makeTheme(theme);
262382
+ useEffect(() => {
262383
+ if (status === "loading") {
262384
+ let tickInterval;
262385
+ let inc = -1;
262386
+ const delayTimeout = setTimeout(() => {
262387
+ setShowLoader(true);
262388
+ tickInterval = setInterval(() => {
262389
+ inc = inc + 1;
262390
+ setTick(inc % spinner.frames.length);
262391
+ }, spinner.interval);
262392
+ }, 300);
262393
+ return () => {
262394
+ clearTimeout(delayTimeout);
262395
+ clearInterval(tickInterval);
262396
+ };
262397
+ } else {
262398
+ setShowLoader(false);
262399
+ }
262400
+ }, [status]);
262401
+ if (showLoader) {
262402
+ return spinner.frames[tick];
262403
+ }
262404
+ const iconName = status === "loading" ? "idle" : status;
262405
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
262406
+ }
262407
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
262408
+ function useMemo(fn, dependencies) {
262409
+ return withPointer((pointer) => {
262410
+ const prev = pointer.get();
262411
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
262412
+ const value = fn();
262413
+ pointer.set({ value, dependencies });
262414
+ return value;
262415
+ }
262416
+ return prev.value;
262417
+ });
262418
+ }
262419
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
262420
+ function useRef(val) {
262421
+ return useState({ current: val })[0];
262422
+ }
262423
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
262424
+ function useKeypress(userHandler) {
262425
+ const signal = useRef(userHandler);
262426
+ signal.current = userHandler;
262427
+ useEffect((rl) => {
262428
+ let ignore = false;
262429
+ const handler = withUpdates((_input, event) => {
262430
+ if (ignore)
262431
+ return;
262432
+ signal.current(event, rl);
262433
+ });
262434
+ rl.input.on("keypress", handler);
262435
+ return () => {
262436
+ ignore = true;
262437
+ rl.input.removeListener("keypress", handler);
262438
+ };
262439
+ }, []);
262440
+ }
262441
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
262442
+ var import_cli_width = __toESM(require_cli_width(), 1);
262443
+ var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
262444
+ function breakLines(content, width) {
262445
+ return content.split(`
262446
+ `).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
262447
+ `).map((str) => str.trimEnd())).join(`
262448
+ `);
262449
+ }
262450
+ function readlineWidth() {
262451
+ return import_cli_width.default({ defaultWidth: 80, output: readline().output });
262452
+ }
262453
+
262454
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
262455
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
262456
+ const state = useRef({
262457
+ lastPointer: active,
262458
+ lastActive: undefined
262459
+ });
262460
+ const { lastPointer, lastActive } = state.current;
262461
+ const middle = Math.floor(pageSize / 2);
262462
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262463
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
262464
+ let pointer = defaultPointerPosition;
262465
+ if (renderedLength > pageSize) {
262466
+ if (loop) {
262467
+ pointer = lastPointer;
262468
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
262469
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
262470
+ }
262471
+ } else {
262472
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
262473
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
262474
+ }
262475
+ }
262476
+ state.current.lastPointer = pointer;
262477
+ state.current.lastActive = active;
262478
+ return pointer;
262479
+ }
262480
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
262481
+ const width = readlineWidth();
262482
+ const bound = (num) => (num % items.length + items.length) % items.length;
262483
+ const renderedItems = items.map((item, index) => {
262484
+ if (item == null)
262485
+ return [];
262486
+ return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
262487
+ `);
262488
+ });
262489
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
262490
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
262491
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
262492
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
262493
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
262494
+ const pageBuffer = Array.from({ length: pageSize });
262495
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
262496
+ const itemVisited = new Set([active]);
262497
+ let bufferPointer = activeItemPosition + activeItem.length;
262498
+ let itemPointer = bound(active + 1);
262499
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
262500
+ const lines = renderItemAtIndex(itemPointer);
262501
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
262502
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
262503
+ itemVisited.add(itemPointer);
262504
+ bufferPointer += linesToAdd.length;
262505
+ itemPointer = bound(itemPointer + 1);
262506
+ }
262507
+ bufferPointer = activeItemPosition - 1;
262508
+ itemPointer = bound(active - 1);
262509
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
262510
+ const lines = renderItemAtIndex(itemPointer);
262511
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
262512
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
262513
+ itemVisited.add(itemPointer);
262514
+ bufferPointer -= linesToAdd.length;
262515
+ itemPointer = bound(itemPointer - 1);
262516
+ }
262517
+ return pageBuffer.filter((line) => typeof line === "string").join(`
262518
+ `);
262519
+ }
262520
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262521
+ var import_mute_stream = __toESM(require_lib(), 1);
262522
+ import * as readline2 from "node:readline";
262523
+ import { AsyncResource as AsyncResource3 } from "node:async_hooks";
261769
262524
 
261770
262525
  // ../../node_modules/.bun/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
261771
262526
  var signals = [];
@@ -261778,7 +262533,7 @@ if (process.platform === "linux") {
261778
262533
  }
261779
262534
 
261780
262535
  // ../../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";
262536
+ 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
262537
  var kExitEmitter = Symbol.for("signal-exit emitter");
261783
262538
  var global2 = globalThis;
261784
262539
  var ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -261861,22 +262616,22 @@ class SignalExitFallback extends SignalExitBase {
261861
262616
  }
261862
262617
 
261863
262618
  class SignalExit extends SignalExitBase {
261864
- #hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
262619
+ #hupSig = process3.platform === "win32" ? "SIGINT" : "SIGHUP";
261865
262620
  #emitter = new Emitter;
261866
262621
  #process;
261867
262622
  #originalProcessEmit;
261868
262623
  #originalProcessReallyExit;
261869
262624
  #sigListeners = {};
261870
262625
  #loaded = false;
261871
- constructor(process2) {
262626
+ constructor(process3) {
261872
262627
  super();
261873
- this.#process = process2;
262628
+ this.#process = process3;
261874
262629
  this.#sigListeners = {};
261875
262630
  for (const sig of signals) {
261876
262631
  this.#sigListeners[sig] = () => {
261877
262632
  const listeners = this.#process.listeners(sig);
261878
262633
  let { count } = this.#emitter;
261879
- const p = process2;
262634
+ const p = process3;
261880
262635
  if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
261881
262636
  count += p.__signal_exit_emitter__.count;
261882
262637
  }
@@ -261885,12 +262640,12 @@ class SignalExit extends SignalExitBase {
261885
262640
  const ret = this.#emitter.emit("exit", null, sig);
261886
262641
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
261887
262642
  if (!ret)
261888
- process2.kill(process2.pid, s);
262643
+ process3.kill(process3.pid, s);
261889
262644
  }
261890
262645
  };
261891
262646
  }
261892
- this.#originalProcessReallyExit = process2.reallyExit;
261893
- this.#originalProcessEmit = process2.emit;
262647
+ this.#originalProcessReallyExit = process3.reallyExit;
262648
+ this.#originalProcessEmit = process3.emit;
261894
262649
  }
261895
262650
  onExit(cb, opts) {
261896
262651
  if (!processOk(this.#process)) {
@@ -261968,13 +262723,210 @@ class SignalExit extends SignalExitBase {
261968
262723
  }
261969
262724
  }
261970
262725
  }
261971
- var process2 = globalThis.process;
262726
+ var process3 = globalThis.process;
261972
262727
  var {
261973
262728
  onExit,
261974
262729
  load,
261975
262730
  unload
261976
- } = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback);
262731
+ } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
262732
+
262733
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262734
+ import { stripVTControlCharacters } from "node:util";
262735
+
262736
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.1/node_modules/@inquirer/ansi/dist/esm/index.js
262737
+ var ESC = "\x1B[";
262738
+ var cursorLeft = ESC + "G";
262739
+ var cursorHide = ESC + "?25l";
262740
+ var cursorShow = ESC + "?25h";
262741
+ var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
262742
+ var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
262743
+ var cursorTo = (x, y) => {
262744
+ if (typeof y === "number" && !Number.isNaN(y)) {
262745
+ return `${ESC}${y + 1};${x + 1}H`;
262746
+ }
262747
+ return `${ESC}${x + 1}G`;
262748
+ };
262749
+ var eraseLine = ESC + "2K";
262750
+ var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
262751
+
262752
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
262753
+ var height = (content) => content.split(`
262754
+ `).length;
262755
+ var lastLine = (content) => content.split(`
262756
+ `).pop() ?? "";
262757
+
262758
+ class ScreenManager {
262759
+ height = 0;
262760
+ extraLinesUnderPrompt = 0;
262761
+ cursorPos;
262762
+ rl;
262763
+ constructor(rl) {
262764
+ this.rl = rl;
262765
+ this.cursorPos = rl.getCursorPos();
262766
+ }
262767
+ write(content) {
262768
+ this.rl.output.unmute();
262769
+ this.rl.output.write(content);
262770
+ this.rl.output.mute();
262771
+ }
262772
+ render(content, bottomContent = "") {
262773
+ const promptLine = lastLine(content);
262774
+ const rawPromptLine = stripVTControlCharacters(promptLine);
262775
+ let prompt = rawPromptLine;
262776
+ if (this.rl.line.length > 0) {
262777
+ prompt = prompt.slice(0, -this.rl.line.length);
262778
+ }
262779
+ this.rl.setPrompt(prompt);
262780
+ this.cursorPos = this.rl.getCursorPos();
262781
+ const width = readlineWidth();
262782
+ content = breakLines(content, width);
262783
+ bottomContent = breakLines(bottomContent, width);
262784
+ if (rawPromptLine.length % width === 0) {
262785
+ content += `
262786
+ `;
262787
+ }
262788
+ let output = content + (bottomContent ? `
262789
+ ` + bottomContent : "");
262790
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
262791
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
262792
+ if (bottomContentHeight > 0)
262793
+ output += cursorUp(bottomContentHeight);
262794
+ output += cursorTo(this.cursorPos.cols);
262795
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
262796
+ this.extraLinesUnderPrompt = bottomContentHeight;
262797
+ this.height = height(output);
262798
+ }
262799
+ checkCursorPos() {
262800
+ const cursorPos = this.rl.getCursorPos();
262801
+ if (cursorPos.cols !== this.cursorPos.cols) {
262802
+ this.write(cursorTo(cursorPos.cols));
262803
+ this.cursorPos = cursorPos;
262804
+ }
262805
+ }
262806
+ done({ clearContent }) {
262807
+ this.rl.setPrompt("");
262808
+ let output = cursorDown(this.extraLinesUnderPrompt);
262809
+ output += clearContent ? eraseLines(this.height) : `
262810
+ `;
262811
+ output += cursorShow;
262812
+ this.write(output);
262813
+ this.rl.close();
262814
+ }
262815
+ }
262816
+
262817
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
262818
+ class PromisePolyfill extends Promise {
262819
+ static withResolver() {
262820
+ let resolve;
262821
+ let reject;
262822
+ const promise = new Promise((res, rej) => {
262823
+ resolve = res;
262824
+ reject = rej;
262825
+ });
262826
+ return { promise, resolve, reject };
262827
+ }
262828
+ }
261977
262829
 
262830
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
262831
+ function getCallSites() {
262832
+ const _prepareStackTrace = Error.prepareStackTrace;
262833
+ let result = [];
262834
+ try {
262835
+ Error.prepareStackTrace = (_, callSites) => {
262836
+ const callSitesWithoutCurrent = callSites.slice(1);
262837
+ result = callSitesWithoutCurrent;
262838
+ return callSitesWithoutCurrent;
262839
+ };
262840
+ new Error().stack;
262841
+ } catch {
262842
+ return result;
262843
+ }
262844
+ Error.prepareStackTrace = _prepareStackTrace;
262845
+ return result;
262846
+ }
262847
+ function createPrompt(view) {
262848
+ const callSites = getCallSites();
262849
+ const prompt = (config, context = {}) => {
262850
+ const { input = process.stdin, signal } = context;
262851
+ const cleanups = new Set;
262852
+ const output = new import_mute_stream.default;
262853
+ output.pipe(context.output ?? process.stdout);
262854
+ const rl = readline2.createInterface({
262855
+ terminal: true,
262856
+ input,
262857
+ output
262858
+ });
262859
+ const screen = new ScreenManager(rl);
262860
+ const { promise, resolve, reject } = PromisePolyfill.withResolver();
262861
+ const cancel = () => reject(new CancelPromptError);
262862
+ if (signal) {
262863
+ const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
262864
+ if (signal.aborted) {
262865
+ abort();
262866
+ return Object.assign(promise, { cancel });
262867
+ }
262868
+ signal.addEventListener("abort", abort);
262869
+ cleanups.add(() => signal.removeEventListener("abort", abort));
262870
+ }
262871
+ cleanups.add(onExit((code, signal2) => {
262872
+ reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal2}`));
262873
+ }));
262874
+ const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
262875
+ rl.on("SIGINT", sigint);
262876
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
262877
+ const checkCursorPos = () => screen.checkCursorPos();
262878
+ rl.input.on("keypress", checkCursorPos);
262879
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
262880
+ return withHooks(rl, (cycle) => {
262881
+ const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
262882
+ rl.on("close", hooksCleanup);
262883
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
262884
+ cycle(() => {
262885
+ try {
262886
+ const nextView = view(config, (value) => {
262887
+ setImmediate(() => resolve(value));
262888
+ });
262889
+ if (nextView === undefined) {
262890
+ const callerFilename = callSites[1]?.getFileName();
262891
+ throw new Error(`Prompt functions must return a string.
262892
+ at ${callerFilename}`);
262893
+ }
262894
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
262895
+ screen.render(content, bottomContent);
262896
+ effectScheduler.run();
262897
+ } catch (error) {
262898
+ reject(error);
262899
+ }
262900
+ });
262901
+ return Object.assign(promise.then((answer) => {
262902
+ effectScheduler.clearAll();
262903
+ return answer;
262904
+ }, (error) => {
262905
+ effectScheduler.clearAll();
262906
+ throw error;
262907
+ }).finally(() => {
262908
+ cleanups.forEach((cleanup) => cleanup());
262909
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
262910
+ output.end();
262911
+ }).then(() => promise), { cancel });
262912
+ });
262913
+ };
262914
+ return prompt;
262915
+ }
262916
+ // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/Separator.js
262917
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
262918
+ class Separator {
262919
+ separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
262920
+ type = "separator";
262921
+ constructor(separator) {
262922
+ if (separator) {
262923
+ this.separator = separator;
262924
+ }
262925
+ }
262926
+ static isSeparator(choice) {
262927
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
262928
+ }
262929
+ }
261978
262930
  // ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
261979
262931
  var exports_base = {};
261980
262932
  __export(exports_base, {
@@ -262098,16 +263050,16 @@ var isInCi = check("CI") || check("CONTINUOUS_INTEGRATION");
262098
263050
  var is_in_ci_default = isInCi;
262099
263051
 
262100
263052
  // ../../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 ? "✖" : "×");
263053
+ import process4 from "node:process";
263054
+ import { stripVTControlCharacters as stripVTControlCharacters2 } from "node:util";
263055
+ var isUnicodeSupported2 = process4.platform !== "win32" || Boolean(process4.env.WT_SESSION) || process4.env.TERM_PROGRAM === "vscode";
263056
+ var isInteractive = (stream) => Boolean(stream.isTTY && process4.env.TERM !== "dumb" && !("CI" in process4.env));
263057
+ var infoSymbol = exports_base.blue(isUnicodeSupported2 ? "ℹ" : "i");
263058
+ var successSymbol = exports_base.green(isUnicodeSupported2 ? "✔" : "√");
263059
+ var warningSymbol = exports_base.yellow(isUnicodeSupported2 ? "⚠" : "‼");
263060
+ var errorSymbol = exports_base.red(isUnicodeSupported2 ? "✖" : "×");
262109
263061
  var defaultSpinner = {
262110
- frames: isUnicodeSupported ? [
263062
+ frames: isUnicodeSupported2 ? [
262111
263063
  "⠋",
262112
263064
  "⠙",
262113
263065
  "⠹",
@@ -262145,7 +263097,7 @@ class YoctoSpinner {
262145
263097
  this.#frames = spinner.frames;
262146
263098
  this.#interval = spinner.interval;
262147
263099
  this.#text = options.text ?? "";
262148
- this.#stream = options.stream ?? process3.stderr;
263100
+ this.#stream = options.stream ?? process4.stderr;
262149
263101
  this.#color = options.color ?? "cyan";
262150
263102
  this.#isInteractive = isInteractive(this.#stream);
262151
263103
  this.#exitHandlerBound = this.#exitHandler.bind(this);
@@ -262256,7 +263208,7 @@ class YoctoSpinner {
262256
263208
  }
262257
263209
  #lineCount(text) {
262258
263210
  const width = this.#stream.columns ?? 80;
262259
- const lines = stripVTControlCharacters(text).split(`
263211
+ const lines = stripVTControlCharacters2(text).split(`
262260
263212
  `);
262261
263213
  let lineCount = 0;
262262
263214
  for (const line of lines) {
@@ -262275,19 +263227,19 @@ class YoctoSpinner {
262275
263227
  }
262276
263228
  }
262277
263229
  #subscribeToProcessEvents() {
262278
- process3.once("SIGINT", this.#exitHandlerBound);
262279
- process3.once("SIGTERM", this.#exitHandlerBound);
263230
+ process4.once("SIGINT", this.#exitHandlerBound);
263231
+ process4.once("SIGTERM", this.#exitHandlerBound);
262280
263232
  }
262281
263233
  #unsubscribeFromProcessEvents() {
262282
- process3.off("SIGINT", this.#exitHandlerBound);
262283
- process3.off("SIGTERM", this.#exitHandlerBound);
263234
+ process4.off("SIGINT", this.#exitHandlerBound);
263235
+ process4.off("SIGTERM", this.#exitHandlerBound);
262284
263236
  }
262285
263237
  #exitHandler(signal) {
262286
263238
  if (this.isSpinning) {
262287
263239
  this.stop();
262288
263240
  }
262289
263241
  const exitCode = signal === "SIGINT" ? 130 : signal === "SIGTERM" ? 143 : 1;
262290
- process3.exit(exitCode);
263242
+ process4.exit(exitCode);
262291
263243
  }
262292
263244
  }
262293
263245
  function yoctoSpinner(options) {
@@ -263125,7 +264077,7 @@ __export(exports_util, {
263125
264077
  jsonStringifyReplacer: () => jsonStringifyReplacer,
263126
264078
  joinValues: () => joinValues,
263127
264079
  issue: () => issue,
263128
- isPlainObject: () => isPlainObject,
264080
+ isPlainObject: () => isPlainObject2,
263129
264081
  isObject: () => isObject,
263130
264082
  hexToUint8Array: () => hexToUint8Array,
263131
264083
  getSizableOrigin: () => getSizableOrigin,
@@ -263307,7 +264259,7 @@ var allowsEval = cached(() => {
263307
264259
  return false;
263308
264260
  }
263309
264261
  });
263310
- function isPlainObject(o) {
264262
+ function isPlainObject2(o) {
263311
264263
  if (isObject(o) === false)
263312
264264
  return false;
263313
264265
  const ctor = o.constructor;
@@ -263322,7 +264274,7 @@ function isPlainObject(o) {
263322
264274
  return true;
263323
264275
  }
263324
264276
  function shallowClone(o) {
263325
- if (isPlainObject(o))
264277
+ if (isPlainObject2(o))
263326
264278
  return { ...o };
263327
264279
  if (Array.isArray(o))
263328
264280
  return [...o];
@@ -263505,7 +264457,7 @@ function omit(schema, mask) {
263505
264457
  return clone(schema, def);
263506
264458
  }
263507
264459
  function extend(schema, shape) {
263508
- if (!isPlainObject(shape)) {
264460
+ if (!isPlainObject2(shape)) {
263509
264461
  throw new Error("Invalid input to extend: expected a plain object");
263510
264462
  }
263511
264463
  const checks = schema._zod.def.checks;
@@ -263524,7 +264476,7 @@ function extend(schema, shape) {
263524
264476
  return clone(schema, def);
263525
264477
  }
263526
264478
  function safeExtend(schema, shape) {
263527
- if (!isPlainObject(shape)) {
264479
+ if (!isPlainObject2(shape)) {
263528
264480
  throw new Error("Invalid input to safeExtend: expected a plain object");
263529
264481
  }
263530
264482
  const def = {
@@ -265681,7 +266633,7 @@ function mergeValues(a, b) {
265681
266633
  if (a instanceof Date && b instanceof Date && +a === +b) {
265682
266634
  return { valid: true, data: a };
265683
266635
  }
265684
- if (isPlainObject(a) && isPlainObject(b)) {
266636
+ if (isPlainObject2(a) && isPlainObject2(b)) {
265685
266637
  const bKeys = Object.keys(b);
265686
266638
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
265687
266639
  const newObj = { ...a, ...b };
@@ -265811,7 +266763,7 @@ var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
265811
266763
  $ZodType.init(inst, def);
265812
266764
  inst._zod.parse = (payload, ctx) => {
265813
266765
  const input = payload.value;
265814
- if (!isPlainObject(input)) {
266766
+ if (!isPlainObject2(input)) {
265815
266767
  payload.issues.push({
265816
266768
  expected: "record",
265817
266769
  code: "invalid_type",
@@ -274986,7 +275938,7 @@ import { readFile, stat, writeFile } from "node:fs/promises";
274986
275938
  import path2 from "node:path";
274987
275939
 
274988
275940
  // ../../node_modules/.bun/locate-path@8.0.0/node_modules/locate-path/index.js
274989
- import process4 from "node:process";
275941
+ import process5 from "node:process";
274990
275942
  import path from "node:path";
274991
275943
  import fs, { promises as fsPromises } from "node:fs";
274992
275944
  import { fileURLToPath } from "node:url";
@@ -275151,7 +276103,7 @@ function checkType(type) {
275151
276103
  var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
275152
276104
  var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
275153
276105
  async function locatePath(paths, {
275154
- cwd = process4.cwd(),
276106
+ cwd = process5.cwd(),
275155
276107
  type = "file",
275156
276108
  allowSymlinks = true,
275157
276109
  concurrency,
@@ -279581,7 +280533,7 @@ class PathScurryBase {
279581
280533
  const dirs = new Set;
279582
280534
  const queue = [entry];
279583
280535
  let processing = 0;
279584
- const process5 = () => {
280536
+ const process6 = () => {
279585
280537
  let paused = false;
279586
280538
  while (!paused) {
279587
280539
  const dir = queue.shift();
@@ -279622,9 +280574,9 @@ class PathScurryBase {
279622
280574
  }
279623
280575
  }
279624
280576
  if (paused && !results.flowing) {
279625
- results.once("drain", process5);
280577
+ results.once("drain", process6);
279626
280578
  } else if (!sync) {
279627
- process5();
280579
+ process6();
279628
280580
  }
279629
280581
  };
279630
280582
  let sync = true;
@@ -279632,7 +280584,7 @@ class PathScurryBase {
279632
280584
  sync = false;
279633
280585
  }
279634
280586
  };
279635
- process5();
280587
+ process6();
279636
280588
  return results;
279637
280589
  }
279638
280590
  streamSync(entry = this.cwd, opts = {}) {
@@ -279650,7 +280602,7 @@ class PathScurryBase {
279650
280602
  }
279651
280603
  const queue = [entry];
279652
280604
  let processing = 0;
279653
- const process5 = () => {
280605
+ const process6 = () => {
279654
280606
  let paused = false;
279655
280607
  while (!paused) {
279656
280608
  const dir = queue.shift();
@@ -279684,9 +280636,9 @@ class PathScurryBase {
279684
280636
  }
279685
280637
  }
279686
280638
  if (paused && !results.flowing)
279687
- results.once("drain", process5);
280639
+ results.once("drain", process6);
279688
280640
  };
279689
- process5();
280641
+ process6();
279690
280642
  return results;
279691
280643
  }
279692
280644
  chdir(path4 = this.cwd) {
@@ -281232,7 +282184,7 @@ function pruneCurrentEnv(currentEnv, env2) {
281232
282184
  var package_default = {
281233
282185
  name: "@settlemint/sdk-cli",
281234
282186
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
281235
- version: "2.6.4-pr4384f485",
282187
+ version: "2.6.4-pr5d528293",
281236
282188
  type: "module",
281237
282189
  private: false,
281238
282190
  license: "FSL-1.1-MIT",
@@ -281275,7 +282227,7 @@ var package_default = {
281275
282227
  },
281276
282228
  dependencies: {
281277
282229
  "@gql.tada/cli-utils": "1.7.1",
281278
- "@inquirer/core": "10.3.1",
282230
+ "@inquirer/core": "10.3.0",
281279
282231
  "node-fetch-native": "1.6.7",
281280
282232
  zod: "^4"
281281
282233
  },
@@ -281283,13 +282235,13 @@ var package_default = {
281283
282235
  "@commander-js/extra-typings": "14.0.0",
281284
282236
  commander: "14.0.2",
281285
282237
  "@inquirer/confirm": "5.1.19",
281286
- "@inquirer/input": "4.2.5",
282238
+ "@inquirer/input": "4.3.0",
281287
282239
  "@inquirer/password": "4.0.21",
281288
282240
  "@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",
282241
+ "@settlemint/sdk-hasura": "2.6.4-pr5d528293",
282242
+ "@settlemint/sdk-js": "2.6.4-pr5d528293",
282243
+ "@settlemint/sdk-utils": "2.6.4-pr5d528293",
282244
+ "@settlemint/sdk-viem": "2.6.4-pr5d528293",
281293
282245
  "@types/node": "24.10.0",
281294
282246
  "@types/semver": "7.7.1",
281295
282247
  "@types/which": "3.0.4",
@@ -281306,7 +282258,7 @@ var package_default = {
281306
282258
  },
281307
282259
  peerDependencies: {
281308
282260
  hardhat: "<= 4",
281309
- "@settlemint/sdk-js": "2.6.4-pr4384f485"
282261
+ "@settlemint/sdk-js": "2.6.4-pr5d528293"
281310
282262
  },
281311
282263
  peerDependenciesMeta: {
281312
282264
  hardhat: {
@@ -281673,7 +282625,7 @@ var isPromiseLikeValue = (value) => {
281673
282625
  var casesExhausted = (value) => {
281674
282626
  throw new Error(`Unhandled case: ${String(value)}`);
281675
282627
  };
281676
- var isPlainObject2 = (value) => {
282628
+ var isPlainObject3 = (value) => {
281677
282629
  return typeof value === `object` && value !== null && !Array.isArray(value);
281678
282630
  };
281679
282631
 
@@ -281718,7 +282670,7 @@ var parseGraphQLExecutionResult = (result) => {
281718
282670
  _tag: `Batch`,
281719
282671
  executionResults: result.map(parseExecutionResult)
281720
282672
  };
281721
- } else if (isPlainObject2(result)) {
282673
+ } else if (isPlainObject3(result)) {
281722
282674
  return {
281723
282675
  _tag: `Single`,
281724
282676
  executionResult: parseExecutionResult(result)
@@ -281736,29 +282688,29 @@ var parseExecutionResult = (result) => {
281736
282688
  if (typeof result !== `object` || result === null) {
281737
282689
  throw new Error(`Invalid execution result: result is not object`);
281738
282690
  }
281739
- let errors3 = undefined;
282691
+ let errors4 = undefined;
281740
282692
  let data = undefined;
281741
282693
  let extensions = undefined;
281742
282694
  if (`errors` in result) {
281743
- if (!isPlainObject2(result.errors) && !Array.isArray(result.errors)) {
282695
+ if (!isPlainObject3(result.errors) && !Array.isArray(result.errors)) {
281744
282696
  throw new Error(`Invalid execution result: errors is not plain object OR array`);
281745
282697
  }
281746
- errors3 = result.errors;
282698
+ errors4 = result.errors;
281747
282699
  }
281748
282700
  if (`data` in result) {
281749
- if (!isPlainObject2(result.data) && result.data !== null) {
282701
+ if (!isPlainObject3(result.data) && result.data !== null) {
281750
282702
  throw new Error(`Invalid execution result: data is not plain object`);
281751
282703
  }
281752
282704
  data = result.data;
281753
282705
  }
281754
282706
  if (`extensions` in result) {
281755
- if (!isPlainObject2(result.extensions))
282707
+ if (!isPlainObject3(result.extensions))
281756
282708
  throw new Error(`Invalid execution result: extensions is not plain object`);
281757
282709
  extensions = result.extensions;
281758
282710
  }
281759
282711
  return {
281760
282712
  data,
281761
- errors: errors3,
282713
+ errors: errors4,
281762
282714
  extensions
281763
282715
  };
281764
282716
  };
@@ -284509,7 +285461,7 @@ import { dirname as dirname2, join as join2, resolve as resolve2 } from "node:pa
284509
285461
  // ../../node_modules/.bun/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/detect.mjs
284510
285462
  import fs2 from "node:fs/promises";
284511
285463
  import path4 from "node:path";
284512
- import process5 from "node:process";
285464
+ import process6 from "node:process";
284513
285465
 
284514
285466
  // ../../node_modules/.bun/package-manager-detector@1.4.0/node_modules/package-manager-detector/dist/constants.mjs
284515
285467
  var AGENTS = [
@@ -284552,7 +285504,7 @@ async function pathExists(path22, type2) {
284552
285504
  return false;
284553
285505
  }
284554
285506
  }
284555
- function* lookup(cwd = process5.cwd()) {
285507
+ function* lookup(cwd = process6.cwd()) {
284556
285508
  let directory = path4.resolve(cwd);
284557
285509
  const { root } = path4.parse(directory);
284558
285510
  while (directory && directory !== root) {
@@ -284662,7 +285614,7 @@ function isMetadataYarnClassic(metadataPath) {
284662
285614
  }
284663
285615
 
284664
285616
  // ../../node_modules/.bun/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
284665
- import process6 from "node:process";
285617
+ import process7 from "node:process";
284666
285618
  import { existsSync } from "node:fs";
284667
285619
  import { resolve } from "node:path";
284668
285620
  import process22 from "node:process";
@@ -285181,7 +286133,7 @@ var ve = (t3, e3, n2) => {
285181
286133
  var be = ve;
285182
286134
 
285183
286135
  // ../../node_modules/.bun/@antfu+install-pkg@1.1.0/node_modules/@antfu/install-pkg/dist/index.js
285184
- async function detectPackageManager(cwd = process6.cwd()) {
286136
+ async function detectPackageManager(cwd = process7.cwd()) {
285185
286137
  const result = await detect({
285186
286138
  cwd,
285187
286139
  onUnknown(packageManager) {
@@ -285225,7 +286177,7 @@ async function installPackage(names, options = {}) {
285225
286177
 
285226
286178
  // ../utils/dist/package-manager.js
285227
286179
  var import_console_table_printer3 = __toESM(require_dist2(), 1);
285228
- var import_package_json = __toESM(require_lib11(), 1);
286180
+ var import_package_json = __toESM(require_lib12(), 1);
285229
286181
  async function projectRoot2(fallbackToCwd = false, cwd) {
285230
286182
  const packageJsonPath = await findUp("package.json", { cwd });
285231
286183
  if (!packageJsonPath) {
@@ -287203,14 +288155,11 @@ function sanitizeName(value5, length = 35) {
287203
288155
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
287204
288156
  }
287205
288157
 
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
288158
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/key.js
288159
+ var isBackspaceKey2 = (key) => key.name === "backspace";
288160
+ var isTabKey2 = (key) => key.name === "tab";
288161
+ var isEnterKey2 = (key) => key.name === "enter" || key.name === "return";
288162
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/errors.js
287214
288163
  class AbortPromptError2 extends Error {
287215
288164
  name = "AbortPromptError";
287216
288165
  message = "Prompt was aborted";
@@ -287229,20 +288178,20 @@ class ExitPromptError2 extends Error {
287229
288178
  name = "ExitPromptError";
287230
288179
  }
287231
288180
 
287232
- class HookError extends Error {
288181
+ class HookError2 extends Error {
287233
288182
  name = "HookError";
287234
288183
  }
287235
288184
 
287236
288185
  class ValidationError2 extends Error {
287237
288186
  name = "ValidationError";
287238
288187
  }
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";
288188
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288189
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
287241
288190
 
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) {
288191
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
288192
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
288193
+ var hookStorage2 = new AsyncLocalStorage2;
288194
+ function createStore2(rl) {
287246
288195
  const store = {
287247
288196
  rl,
287248
288197
  hooks: [],
@@ -287253,9 +288202,9 @@ function createStore(rl) {
287253
288202
  };
287254
288203
  return store;
287255
288204
  }
287256
- function withHooks(rl, cb) {
287257
- const store = createStore(rl);
287258
- return hookStorage.run(store, () => {
288205
+ function withHooks2(rl, cb) {
288206
+ const store = createStore2(rl);
288207
+ return hookStorage2.run(store, () => {
287259
288208
  function cycle(render) {
287260
288209
  store.handleChange = () => {
287261
288210
  store.index = 0;
@@ -287266,19 +288215,19 @@ function withHooks(rl, cb) {
287266
288215
  return cb(cycle);
287267
288216
  });
287268
288217
  }
287269
- function getStore() {
287270
- const store = hookStorage.getStore();
288218
+ function getStore2() {
288219
+ const store = hookStorage2.getStore();
287271
288220
  if (!store) {
287272
- throw new HookError("[Inquirer] Hook functions can only be called from within a prompt");
288221
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
287273
288222
  }
287274
288223
  return store;
287275
288224
  }
287276
- function readline() {
287277
- return getStore().rl;
288225
+ function readline3() {
288226
+ return getStore2().rl;
287278
288227
  }
287279
- function withUpdates(fn) {
288228
+ function withUpdates2(fn) {
287280
288229
  const wrapped = (...args) => {
287281
- const store = getStore();
288230
+ const store = getStore2();
287282
288231
  let shouldUpdate = false;
287283
288232
  const oldHandleChange = store.handleChange;
287284
288233
  store.handleChange = () => {
@@ -287291,10 +288240,10 @@ function withUpdates(fn) {
287291
288240
  store.handleChange = oldHandleChange;
287292
288241
  return returnValue;
287293
288242
  };
287294
- return AsyncResource.bind(wrapped);
288243
+ return AsyncResource4.bind(wrapped);
287295
288244
  }
287296
- function withPointer(cb) {
287297
- const store = getStore();
288245
+ function withPointer2(cb) {
288246
+ const store = getStore2();
287298
288247
  const { index } = store;
287299
288248
  const pointer = {
287300
288249
  get() {
@@ -287309,16 +288258,16 @@ function withPointer(cb) {
287309
288258
  store.index++;
287310
288259
  return returnValue;
287311
288260
  }
287312
- function handleChange() {
287313
- getStore().handleChange();
288261
+ function handleChange2() {
288262
+ getStore2().handleChange();
287314
288263
  }
287315
- var effectScheduler = {
288264
+ var effectScheduler2 = {
287316
288265
  queue(cb) {
287317
- const store = getStore();
288266
+ const store = getStore2();
287318
288267
  const { index } = store;
287319
288268
  store.hooksEffect.push(() => {
287320
288269
  store.hooksCleanup[index]?.();
287321
- const cleanFn = cb(readline());
288270
+ const cleanFn = cb(readline3());
287322
288271
  if (cleanFn != null && typeof cleanFn !== "function") {
287323
288272
  throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
287324
288273
  }
@@ -287326,8 +288275,8 @@ var effectScheduler = {
287326
288275
  });
287327
288276
  },
287328
288277
  run() {
287329
- const store = getStore();
287330
- withUpdates(() => {
288278
+ const store = getStore2();
288279
+ withUpdates2(() => {
287331
288280
  store.hooksEffect.forEach((effect) => {
287332
288281
  effect();
287333
288282
  });
@@ -287335,7 +288284,7 @@ var effectScheduler = {
287335
288284
  })();
287336
288285
  },
287337
288286
  clearAll() {
287338
- const store = getStore();
288287
+ const store = getStore2();
287339
288288
  store.hooksCleanup.forEach((cleanFn) => {
287340
288289
  cleanFn?.();
287341
288290
  });
@@ -287344,13 +288293,13 @@ var effectScheduler = {
287344
288293
  }
287345
288294
  };
287346
288295
 
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) {
288296
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-state.js
288297
+ function useState2(defaultValue) {
288298
+ return withPointer2((pointer) => {
288299
+ const setState = AsyncResource5.bind(function setState(newValue) {
287351
288300
  if (pointer.get() !== newValue) {
287352
288301
  pointer.set(newValue);
287353
- handleChange();
288302
+ handleChange2();
287354
288303
  }
287355
288304
  });
287356
288305
  if (pointer.initialized) {
@@ -287362,30 +288311,30 @@ function useState(defaultValue) {
287362
288311
  });
287363
288312
  }
287364
288313
 
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) => {
288314
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
288315
+ function useEffect2(cb, depArray) {
288316
+ withPointer2((pointer) => {
287368
288317
  const oldDeps = pointer.get();
287369
288318
  const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
287370
288319
  if (hasChanged) {
287371
- effectScheduler.queue(cb);
288320
+ effectScheduler2.queue(cb);
287372
288321
  }
287373
288322
  pointer.set(depArray);
287374
288323
  });
287375
288324
  }
287376
288325
 
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);
288326
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288327
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
287379
288328
 
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";
288329
+ // ../../node_modules/.bun/@inquirer+figures@1.0.15/node_modules/@inquirer/figures/dist/esm/index.js
288330
+ import process8 from "node:process";
288331
+ function isUnicodeSupported3() {
288332
+ if (process8.platform !== "win32") {
288333
+ return process8.env["TERM"] !== "linux";
287385
288334
  }
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";
288335
+ 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
288336
  }
287388
- var common = {
288337
+ var common2 = {
287389
288338
  circleQuestionMark: "(?)",
287390
288339
  questionMarkPrefix: "(?)",
287391
288340
  square: "█",
@@ -287581,7 +288530,7 @@ var common = {
287581
288530
  lineBackslash: "╲",
287582
288531
  lineSlash: "╱"
287583
288532
  };
287584
- var specialMainSymbols = {
288533
+ var specialMainSymbols2 = {
287585
288534
  tick: "✔",
287586
288535
  info: "ℹ",
287587
288536
  warning: "⚠",
@@ -287617,7 +288566,7 @@ var specialMainSymbols = {
287617
288566
  oneNinth: "⅑",
287618
288567
  oneTenth: "⅒"
287619
288568
  };
287620
- var specialFallbackSymbols = {
288569
+ var specialFallbackSymbols2 = {
287621
288570
  tick: "√",
287622
288571
  info: "i",
287623
288572
  warning: "‼",
@@ -287653,39 +288602,42 @@ var specialFallbackSymbols = {
287653
288602
  oneNinth: "1/9",
287654
288603
  oneTenth: "1/10"
287655
288604
  };
287656
- var mainSymbols = { ...common, ...specialMainSymbols };
287657
- var fallbackSymbols = {
287658
- ...common,
287659
- ...specialFallbackSymbols
288605
+ var mainSymbols2 = {
288606
+ ...common2,
288607
+ ...specialMainSymbols2
287660
288608
  };
287661
- var shouldUseMain = isUnicodeSupported2();
287662
- var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
287663
- var esm_default = figures;
287664
- var replacements = Object.entries(specialMainSymbols);
288609
+ var fallbackSymbols2 = {
288610
+ ...common2,
288611
+ ...specialFallbackSymbols2
288612
+ };
288613
+ var shouldUseMain2 = isUnicodeSupported3();
288614
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
288615
+ var esm_default2 = figures2;
288616
+ var replacements2 = Object.entries(specialMainSymbols2);
287665
288617
 
287666
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
287667
- var defaultTheme = {
288618
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/theme.js
288619
+ var defaultTheme2 = {
287668
288620
  prefix: {
287669
- idle: import_yoctocolors_cjs.default.blue("?"),
287670
- done: import_yoctocolors_cjs.default.green(esm_default.tick)
288621
+ idle: import_yoctocolors_cjs3.default.blue("?"),
288622
+ done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
287671
288623
  },
287672
288624
  spinner: {
287673
288625
  interval: 80,
287674
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs.default.yellow(frame))
288626
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
287675
288627
  },
287676
288628
  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}>`))
288629
+ answer: import_yoctocolors_cjs3.default.cyan,
288630
+ message: import_yoctocolors_cjs3.default.bold,
288631
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
288632
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
288633
+ help: import_yoctocolors_cjs3.default.dim,
288634
+ highlight: import_yoctocolors_cjs3.default.cyan,
288635
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
287684
288636
  }
287685
288637
  };
287686
288638
 
287687
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
287688
- function isPlainObject3(value5) {
288639
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
288640
+ function isPlainObject4(value5) {
287689
288641
  if (typeof value5 !== "object" || value5 === null)
287690
288642
  return false;
287691
288643
  let proto = value5;
@@ -287694,30 +288646,30 @@ function isPlainObject3(value5) {
287694
288646
  }
287695
288647
  return Object.getPrototypeOf(value5) === proto;
287696
288648
  }
287697
- function deepMerge2(...objects) {
288649
+ function deepMerge3(...objects) {
287698
288650
  const output = {};
287699
288651
  for (const obj of objects) {
287700
288652
  for (const [key, value5] of Object.entries(obj)) {
287701
288653
  const prevValue = output[key];
287702
- output[key] = isPlainObject3(prevValue) && isPlainObject3(value5) ? deepMerge2(prevValue, value5) : value5;
288654
+ output[key] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
287703
288655
  }
287704
288656
  }
287705
288657
  return output;
287706
288658
  }
287707
- function makeTheme(...themes) {
288659
+ function makeTheme2(...themes) {
287708
288660
  const themesToMerge = [
287709
- defaultTheme,
288661
+ defaultTheme2,
287710
288662
  ...themes.filter((theme) => theme != null)
287711
288663
  ];
287712
- return deepMerge2(...themesToMerge);
288664
+ return deepMerge3(...themesToMerge);
287713
288665
  }
287714
288666
 
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(() => {
288667
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
288668
+ function usePrefix2({ status = "idle", theme }) {
288669
+ const [showLoader, setShowLoader] = useState2(false);
288670
+ const [tick, setTick] = useState2(0);
288671
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
288672
+ useEffect2(() => {
287721
288673
  if (status === "loading") {
287722
288674
  let tickInterval;
287723
288675
  let inc = -1;
@@ -287742,29 +288694,18 @@ function usePrefix({ status = "idle", theme }) {
287742
288694
  const iconName = status === "loading" ? "idle" : status;
287743
288695
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
287744
288696
  }
287745
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
287746
- function useMemo(fn, dependencies) {
287747
- return withPointer((pointer) => {
287748
- const prev = pointer.get();
287749
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
287750
- const value5 = fn();
287751
- pointer.set({ value: value5, dependencies });
287752
- return value5;
287753
- }
287754
- return prev.value;
287755
- });
287756
- }
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];
288697
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
288698
+ function useRef2(val) {
288699
+ return useState2({ current: val })[0];
287760
288700
  }
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);
288701
+
288702
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
288703
+ function useKeypress2(userHandler) {
288704
+ const signal = useRef2(userHandler);
287764
288705
  signal.current = userHandler;
287765
- useEffect((rl) => {
288706
+ useEffect2((rl) => {
287766
288707
  let ignore = false;
287767
- const handler = withUpdates((_input, event) => {
288708
+ const handler = withUpdates2((_input, event) => {
287768
288709
  if (ignore)
287769
288710
  return;
287770
288711
  signal.current(event, rl);
@@ -287776,116 +288717,50 @@ function useKeypress(userHandler) {
287776
288717
  };
287777
288718
  }, []);
287778
288719
  }
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) {
288720
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/utils.js
288721
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
288722
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
288723
+ function breakLines2(content, width) {
287783
288724
  return content.split(`
287784
- `).flatMap((line) => import_wrap_ansi.default(line, width, { trim: false, hard: true }).split(`
288725
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
287785
288726
  `).map((str) => str.trimEnd())).join(`
287786
288727
  `);
287787
288728
  }
287788
- function readlineWidth() {
287789
- return import_cli_width.default({ defaultWidth: 80, output: readline().output });
288729
+ function readlineWidth2() {
288730
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
287790
288731
  }
287791
288732
 
287792
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
287793
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
287794
- const state = useRef({
287795
- lastPointer: active,
287796
- lastActive: undefined
287797
- });
287798
- const { lastPointer, lastActive } = state.current;
287799
- const middle = Math.floor(pageSize / 2);
287800
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
287801
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
287802
- let pointer = defaultPointerPosition;
287803
- if (renderedLength > pageSize) {
287804
- if (loop) {
287805
- pointer = lastPointer;
287806
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
287807
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
287808
- }
287809
- } else {
287810
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
287811
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
287812
- }
287813
- }
287814
- state.current.lastPointer = pointer;
287815
- state.current.lastActive = active;
287816
- return pointer;
287817
- }
287818
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
287819
- const width = readlineWidth();
287820
- const bound = (num) => (num % items.length + items.length) % items.length;
287821
- const renderedItems = items.map((item, index) => {
287822
- if (item == null)
287823
- return [];
287824
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
287825
- `);
287826
- });
287827
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
287828
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
287829
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
287830
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
287831
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
287832
- const pageBuffer = Array.from({ length: pageSize });
287833
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
287834
- const itemVisited = new Set([active]);
287835
- let bufferPointer = activeItemPosition + activeItem.length;
287836
- let itemPointer = bound(active + 1);
287837
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
287838
- const lines = renderItemAtIndex(itemPointer);
287839
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
287840
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
287841
- itemVisited.add(itemPointer);
287842
- bufferPointer += linesToAdd.length;
287843
- itemPointer = bound(itemPointer + 1);
287844
- }
287845
- bufferPointer = activeItemPosition - 1;
287846
- itemPointer = bound(active - 1);
287847
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
287848
- const lines = renderItemAtIndex(itemPointer);
287849
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
287850
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
287851
- itemVisited.add(itemPointer);
287852
- bufferPointer -= linesToAdd.length;
287853
- itemPointer = bound(itemPointer - 1);
287854
- }
287855
- return pageBuffer.filter((line) => typeof line === "string").join(`
287856
- `);
287857
- }
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";
288733
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288734
+ var import_mute_stream2 = __toESM(require_lib13(), 1);
288735
+ import * as readline4 from "node:readline";
288736
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
287862
288737
 
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";
288738
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288739
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
287865
288740
 
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) => {
288741
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.2/node_modules/@inquirer/ansi/dist/esm/index.js
288742
+ var ESC2 = "\x1B[";
288743
+ var cursorLeft2 = ESC2 + "G";
288744
+ var cursorHide2 = ESC2 + "?25l";
288745
+ var cursorShow2 = ESC2 + "?25h";
288746
+ var cursorUp2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}A` : "";
288747
+ var cursorDown2 = (rows = 1) => rows > 0 ? `${ESC2}${rows}B` : "";
288748
+ var cursorTo2 = (x6, y4) => {
287874
288749
  if (typeof y4 === "number" && !Number.isNaN(y4)) {
287875
- return `${ESC}${y4 + 1};${x6 + 1}H`;
288750
+ return `${ESC2}${y4 + 1};${x6 + 1}H`;
287876
288751
  }
287877
- return `${ESC}${x6 + 1}G`;
288752
+ return `${ESC2}${x6 + 1}G`;
287878
288753
  };
287879
- var eraseLine = ESC + "2K";
287880
- var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
288754
+ var eraseLine2 = ESC2 + "2K";
288755
+ var eraseLines2 = (lines) => lines > 0 ? (eraseLine2 + cursorUp2(1)).repeat(lines - 1) + eraseLine2 + cursorLeft2 : "";
287881
288756
 
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(`
288757
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
288758
+ var height2 = (content) => content.split(`
287884
288759
  `).length;
287885
- var lastLine = (content) => content.split(`
288760
+ var lastLine2 = (content) => content.split(`
287886
288761
  `).pop() ?? "";
287887
288762
 
287888
- class ScreenManager {
288763
+ class ScreenManager2 {
287889
288764
  height = 0;
287890
288765
  extraLinesUnderPrompt = 0;
287891
288766
  cursorPos;
@@ -287900,17 +288775,17 @@ class ScreenManager {
287900
288775
  this.rl.output.mute();
287901
288776
  }
287902
288777
  render(content, bottomContent = "") {
287903
- const promptLine = lastLine(content);
287904
- const rawPromptLine = stripVTControlCharacters2(promptLine);
288778
+ const promptLine = lastLine2(content);
288779
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
287905
288780
  let prompt = rawPromptLine;
287906
288781
  if (this.rl.line.length > 0) {
287907
288782
  prompt = prompt.slice(0, -this.rl.line.length);
287908
288783
  }
287909
288784
  this.rl.setPrompt(prompt);
287910
288785
  this.cursorPos = this.rl.getCursorPos();
287911
- const width = readlineWidth();
287912
- content = breakLines(content, width);
287913
- bottomContent = breakLines(bottomContent, width);
288786
+ const width = readlineWidth2();
288787
+ content = breakLines2(content, width);
288788
+ bottomContent = breakLines2(bottomContent, width);
287914
288789
  if (rawPromptLine.length % width === 0) {
287915
288790
  content += `
287916
288791
  `;
@@ -287918,34 +288793,34 @@ class ScreenManager {
287918
288793
  let output = content + (bottomContent ? `
287919
288794
  ` + bottomContent : "");
287920
288795
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
287921
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
288796
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
287922
288797
  if (bottomContentHeight > 0)
287923
- output += cursorUp(bottomContentHeight);
287924
- output += cursorTo(this.cursorPos.cols);
287925
- this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
288798
+ output += cursorUp2(bottomContentHeight);
288799
+ output += cursorTo2(this.cursorPos.cols);
288800
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + eraseLines2(this.height) + output);
287926
288801
  this.extraLinesUnderPrompt = bottomContentHeight;
287927
- this.height = height(output);
288802
+ this.height = height2(output);
287928
288803
  }
287929
288804
  checkCursorPos() {
287930
288805
  const cursorPos = this.rl.getCursorPos();
287931
288806
  if (cursorPos.cols !== this.cursorPos.cols) {
287932
- this.write(cursorTo(cursorPos.cols));
288807
+ this.write(cursorTo2(cursorPos.cols));
287933
288808
  this.cursorPos = cursorPos;
287934
288809
  }
287935
288810
  }
287936
288811
  done({ clearContent }) {
287937
288812
  this.rl.setPrompt("");
287938
- let output = cursorDown(this.extraLinesUnderPrompt);
287939
- output += clearContent ? eraseLines(this.height) : `
288813
+ let output = cursorDown2(this.extraLinesUnderPrompt);
288814
+ output += clearContent ? eraseLines2(this.height) : `
287940
288815
  `;
287941
- output += cursorShow;
288816
+ output += cursorShow2;
287942
288817
  this.write(output);
287943
288818
  this.rl.close();
287944
288819
  }
287945
288820
  }
287946
288821
 
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 {
288822
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
288823
+ class PromisePolyfill2 extends Promise {
287949
288824
  static withResolver() {
287950
288825
  let resolve6;
287951
288826
  let reject;
@@ -287957,8 +288832,8 @@ class PromisePolyfill extends Promise {
287957
288832
  }
287958
288833
  }
287959
288834
 
287960
- // ../../node_modules/.bun/@inquirer+core@10.3.0+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
287961
- function getCallSites() {
288835
+ // ../../node_modules/.bun/@inquirer+core@10.3.1+c30ff3a63f0500d5/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
288836
+ function getCallSites2() {
287962
288837
  const _prepareStackTrace = Error.prepareStackTrace;
287963
288838
  let result = [];
287964
288839
  try {
@@ -287974,20 +288849,20 @@ function getCallSites() {
287974
288849
  Error.prepareStackTrace = _prepareStackTrace;
287975
288850
  return result;
287976
288851
  }
287977
- function createPrompt(view) {
287978
- const callSites = getCallSites();
288852
+ function createPrompt2(view) {
288853
+ const callSites = getCallSites2();
287979
288854
  const prompt = (config3, context = {}) => {
287980
288855
  const { input = process.stdin, signal } = context;
287981
288856
  const cleanups = new Set;
287982
- const output = new import_mute_stream.default;
288857
+ const output = new import_mute_stream2.default;
287983
288858
  output.pipe(context.output ?? process.stdout);
287984
- const rl = readline2.createInterface({
288859
+ const rl = readline4.createInterface({
287985
288860
  terminal: true,
287986
288861
  input,
287987
288862
  output
287988
288863
  });
287989
- const screen = new ScreenManager(rl);
287990
- const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill.withResolver();
288864
+ const screen = new ScreenManager2(rl);
288865
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
287991
288866
  const cancel3 = () => reject(new CancelPromptError2);
287992
288867
  if (signal) {
287993
288868
  const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
@@ -288007,8 +288882,8 @@ function createPrompt(view) {
288007
288882
  const checkCursorPos = () => screen.checkCursorPos();
288008
288883
  rl.input.on("keypress", checkCursorPos);
288009
288884
  cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
288010
- return withHooks(rl, (cycle) => {
288011
- const hooksCleanup = AsyncResource3.bind(() => effectScheduler.clearAll());
288885
+ return withHooks2(rl, (cycle) => {
288886
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
288012
288887
  rl.on("close", hooksCleanup);
288013
288888
  cleanups.add(() => rl.removeListener("close", hooksCleanup));
288014
288889
  cycle(() => {
@@ -288023,16 +288898,16 @@ function createPrompt(view) {
288023
288898
  }
288024
288899
  const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
288025
288900
  screen.render(content, bottomContent);
288026
- effectScheduler.run();
288901
+ effectScheduler2.run();
288027
288902
  } catch (error51) {
288028
288903
  reject(error51);
288029
288904
  }
288030
288905
  });
288031
288906
  return Object.assign(promise2.then((answer) => {
288032
- effectScheduler.clearAll();
288907
+ effectScheduler2.clearAll();
288033
288908
  return answer;
288034
288909
  }, (error51) => {
288035
- effectScheduler.clearAll();
288910
+ effectScheduler2.clearAll();
288036
288911
  throw error51;
288037
288912
  }).finally(() => {
288038
288913
  cleanups.forEach((cleanup) => cleanup());
@@ -288043,40 +288918,39 @@ function createPrompt(view) {
288043
288918
  };
288044
288919
  return prompt;
288045
288920
  }
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);
288048
- class Separator {
288049
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
288050
- type = "separator";
288051
- constructor(separator) {
288052
- if (separator) {
288053
- this.separator = separator;
288054
- }
288055
- }
288056
- static isSeparator(choice) {
288057
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
288058
- }
288059
- }
288060
- // ../../node_modules/.bun/@inquirer+input@4.2.5+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288921
+ // ../../node_modules/.bun/@inquirer+input@4.3.0+c30ff3a63f0500d5/node_modules/@inquirer/input/dist/esm/index.js
288061
288922
  var inputTheme = {
288062
288923
  validationFailureMode: "keep"
288063
288924
  };
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) => {
288925
+ var esm_default3 = createPrompt2((config3, done) => {
288926
+ const { prefill = "tab" } = config3;
288927
+ const theme = makeTheme2(inputTheme, config3.theme);
288928
+ const [status, setStatus] = useState2("idle");
288929
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
288930
+ const [errorMsg, setError] = useState2();
288931
+ const [value5, setValue] = useState2("");
288932
+ const prefix = usePrefix2({ status, theme });
288933
+ async function validate3(value6) {
288934
+ const { required: required2, pattern, patternError = "Invalid input" } = config3;
288935
+ if (required2 && !value6) {
288936
+ return "You must provide a value";
288937
+ }
288938
+ if (pattern && !pattern.test(value6)) {
288939
+ return patternError;
288940
+ }
288941
+ if (typeof config3.validate === "function") {
288942
+ return await config3.validate(value6) || "You must provide a valid value";
288943
+ }
288944
+ return true;
288945
+ }
288946
+ useKeypress2(async (key, rl) => {
288073
288947
  if (status !== "idle") {
288074
288948
  return;
288075
288949
  }
288076
- if (isEnterKey(key)) {
288950
+ if (isEnterKey2(key)) {
288077
288951
  const answer = value5 || defaultValue;
288078
288952
  setStatus("loading");
288079
- const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
288953
+ const isValid = await validate3(answer);
288080
288954
  if (isValid === true) {
288081
288955
  setValue(answer);
288082
288956
  setStatus("done");
@@ -288087,12 +288961,12 @@ var esm_default2 = createPrompt((config3, done) => {
288087
288961
  } else {
288088
288962
  rl.write(value5);
288089
288963
  }
288090
- setError(isValid || "You must provide a valid value");
288964
+ setError(isValid);
288091
288965
  setStatus("idle");
288092
288966
  }
288093
- } else if (isBackspaceKey(key) && !value5) {
288967
+ } else if (isBackspaceKey2(key) && !value5) {
288094
288968
  setDefaultValue(undefined);
288095
- } else if (isTabKey(key) && !value5) {
288969
+ } else if (isTabKey2(key) && !value5) {
288096
288970
  setDefaultValue(undefined);
288097
288971
  rl.clearLine(0);
288098
288972
  rl.write(defaultValue);
@@ -288102,7 +288976,7 @@ var esm_default2 = createPrompt((config3, done) => {
288102
288976
  setError(undefined);
288103
288977
  }
288104
288978
  });
288105
- useEffect((rl) => {
288979
+ useEffect2((rl) => {
288106
288980
  if (prefill === "editable" && defaultValue) {
288107
288981
  rl.write(defaultValue);
288108
288982
  setValue(defaultValue);
@@ -288139,7 +289013,7 @@ async function subgraphNamePrompt({
288139
289013
  if (accept) {
288140
289014
  return defaultSubgraphName ?? env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH;
288141
289015
  }
288142
- const subgraphName = await esm_default2({
289016
+ const subgraphName = await esm_default3({
288143
289017
  message: "What is the name of your subgraph?",
288144
289018
  default: defaultSubgraphName,
288145
289019
  required: true
@@ -288148,13 +289022,13 @@ async function subgraphNamePrompt({
288148
289022
  }
288149
289023
 
288150
289024
  // ../../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);
289025
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
288152
289026
  var selectTheme = {
288153
289027
  icon: { cursor: esm_default.pointer },
288154
289028
  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(" • "))
289029
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
289030
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2),
289031
+ 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
289032
  },
288159
289033
  helpMode: "always",
288160
289034
  indexMode: "hidden",
@@ -288188,7 +289062,7 @@ function normalizeChoices(choices) {
288188
289062
  return normalizedChoice;
288189
289063
  });
288190
289064
  }
288191
- var esm_default3 = createPrompt((config3, done) => {
289065
+ var esm_default4 = createPrompt((config3, done) => {
288192
289066
  const { loop = true, pageSize = 7 } = config3;
288193
289067
  const theme = makeTheme(selectTheme, config3.theme);
288194
289068
  const { keybindings } = theme;
@@ -288201,7 +289075,7 @@ var esm_default3 = createPrompt((config3, done) => {
288201
289075
  const first = items.findIndex(isSelectable);
288202
289076
  const last = items.findLastIndex(isSelectable);
288203
289077
  if (first === -1) {
288204
- throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
289078
+ throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
288205
289079
  }
288206
289080
  return { first, last };
288207
289081
  }, [items]);
@@ -288363,7 +289237,7 @@ async function subgraphPrompt({
288363
289237
  } else {
288364
289238
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
288365
289239
  }
288366
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
289240
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
288367
289241
  message,
288368
289242
  choices: choices.map((name4) => ({
288369
289243
  name: name4,
@@ -313838,7 +314712,7 @@ function getBooleanValue(value5, defaultValue) {
313838
314712
  function boolToString(value5) {
313839
314713
  return value5 ? "Yes" : "No";
313840
314714
  }
313841
- var esm_default4 = createPrompt((config3, done) => {
314715
+ var esm_default5 = createPrompt((config3, done) => {
313842
314716
  const { transformer = boolToString } = config3;
313843
314717
  const [status, setStatus] = useState("idle");
313844
314718
  const [value5, setValue] = useState("");
@@ -313873,7 +314747,7 @@ var esm_default4 = createPrompt((config3, done) => {
313873
314747
  });
313874
314748
 
313875
314749
  // ../../node_modules/.bun/@inquirer+password@4.0.21+c30ff3a63f0500d5/node_modules/@inquirer/password/dist/esm/index.js
313876
- var esm_default5 = createPrompt((config3, done) => {
314750
+ var esm_default6 = createPrompt((config3, done) => {
313877
314751
  const { validate: validate8 = () => true } = config3;
313878
314752
  const theme = makeTheme(config3.theme);
313879
314753
  const [status, setStatus] = useState("idle");
@@ -313931,7 +314805,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313931
314805
  return defaultAccessToken;
313932
314806
  }
313933
314807
  if (defaultAccessToken) {
313934
- const keep = await esm_default4({
314808
+ const keep = await esm_default5({
313935
314809
  message: "Do you want to use the existing application access token?",
313936
314810
  default: true
313937
314811
  });
@@ -313939,12 +314813,12 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
313939
314813
  return defaultAccessToken;
313940
314814
  }
313941
314815
  }
313942
- const create3 = await esm_default4({
314816
+ const create3 = await esm_default5({
313943
314817
  message: "Do you want to create a new application access token?",
313944
314818
  default: false
313945
314819
  });
313946
314820
  if (create3) {
313947
- const name4 = await esm_default2({
314821
+ const name4 = await esm_default3({
313948
314822
  message: "How would you like to name this application access token?",
313949
314823
  default: `SettleMint CLI (${Date.now()}${process.env.USER ? ` ${process.env.USER}` : ""})`,
313950
314824
  required: true,
@@ -314007,7 +314881,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
314007
314881
  return aat;
314008
314882
  } catch (_error) {}
314009
314883
  }
314010
- return esm_default5({
314884
+ return esm_default6({
314011
314885
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
314012
314886
  validate(value5) {
314013
314887
  try {
@@ -314039,7 +314913,7 @@ async function applicationPrompt(env2, applications, accept) {
314039
314913
  if (is_in_ci_default) {
314040
314914
  nothingSelectedError("application");
314041
314915
  }
314042
- const application = await esm_default3({
314916
+ const application = await esm_default4({
314043
314917
  message: "Which application do you want to connect to?",
314044
314918
  choices: applications.map((applications2) => ({
314045
314919
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -314152,7 +315026,7 @@ async function blockchainNodePrompt({
314152
315026
  }
314153
315027
  return item;
314154
315028
  }) : choices;
314155
- return esm_default3({
315029
+ return esm_default4({
314156
315030
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
314157
315031
  choices: filteredChoices,
314158
315032
  default: defaultNode
@@ -314182,7 +315056,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
314182
315056
  isRequired,
314183
315057
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
314184
315058
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
314185
- return esm_default3({
315059
+ return esm_default4({
314186
315060
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
314187
315061
  choices: filteredChoices,
314188
315062
  default: defaultNode
@@ -314207,7 +315081,7 @@ async function blockscoutPrompt({
314207
315081
  envKey: "SETTLEMINT_BLOCKSCOUT",
314208
315082
  isRequired,
314209
315083
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
314210
- return esm_default3({
315084
+ return esm_default4({
314211
315085
  message: "Which blockscout instance do you want to connect to?",
314212
315086
  choices,
314213
315087
  default: defaultBlockscout
@@ -314230,7 +315104,7 @@ async function customDeploymentPrompt({
314230
315104
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
314231
315105
  isRequired,
314232
315106
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
314233
- return esm_default3({
315107
+ return esm_default4({
314234
315108
  message: "Which Custom Deployment do you want to connect to?",
314235
315109
  choices,
314236
315110
  default: defaultCustomDeployment
@@ -314257,7 +315131,7 @@ async function hasuraPrompt({
314257
315131
  envKey: "SETTLEMINT_HASURA",
314258
315132
  isRequired,
314259
315133
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
314260
- return esm_default3({
315134
+ return esm_default4({
314261
315135
  message: "Which Hasura instance do you want to connect to?",
314262
315136
  choices,
314263
315137
  default: defaultHasura
@@ -314281,7 +315155,7 @@ async function hdPrivateKeyPrompt({
314281
315155
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
314282
315156
  isRequired,
314283
315157
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
314284
- return esm_default3({
315158
+ return esm_default4({
314285
315159
  message: "Which HD Private Key do you want to use?",
314286
315160
  choices,
314287
315161
  default: defaultPrivateKey
@@ -314305,7 +315179,7 @@ async function ipfsPrompt({
314305
315179
  envKey: "SETTLEMINT_IPFS",
314306
315180
  isRequired,
314307
315181
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314308
- return esm_default3({
315182
+ return esm_default4({
314309
315183
  message: "Which IPFS instance do you want to connect to?",
314310
315184
  choices,
314311
315185
  default: defaultStorage
@@ -314329,7 +315203,7 @@ async function minioPrompt({
314329
315203
  envKey: "SETTLEMINT_MINIO",
314330
315204
  isRequired,
314331
315205
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
314332
- return esm_default3({
315206
+ return esm_default4({
314333
315207
  message: "Which MinIO instance do you want to connect to?",
314334
315208
  choices,
314335
315209
  default: defaultStorage
@@ -314353,7 +315227,7 @@ async function portalPrompt({
314353
315227
  envKey: "SETTLEMINT_PORTAL",
314354
315228
  isRequired,
314355
315229
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314356
- return esm_default3({
315230
+ return esm_default4({
314357
315231
  message: "Which Smart Contract Portal instance do you want to connect to?",
314358
315232
  choices,
314359
315233
  default: defaultMiddleware
@@ -314382,7 +315256,7 @@ async function theGraphPrompt({
314382
315256
  isRequired,
314383
315257
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
314384
315258
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
314385
- return esm_default3({
315259
+ return esm_default4({
314386
315260
  message: "Which The Graph instance do you want to connect to?",
314387
315261
  choices: filteredChoices,
314388
315262
  default: defaultMiddleware
@@ -314410,7 +315284,7 @@ async function instancePrompt({
314410
315284
  return sanitizeInstanceUrl(defaultPromptInstance);
314411
315285
  }
314412
315286
  if (freeTextInput) {
314413
- const instance = await esm_default2({
315287
+ const instance = await esm_default3({
314414
315288
  message: "What is the URL of your SettleMint instance?",
314415
315289
  default: defaultPromptInstance,
314416
315290
  required: true,
@@ -314429,7 +315303,7 @@ async function instancePrompt({
314429
315303
  if (knownInstances.length === 0) {
314430
315304
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
314431
315305
  }
314432
- return esm_default3({
315306
+ return esm_default4({
314433
315307
  message: "What instance do you want to connect to?",
314434
315308
  choices: [
314435
315309
  ...knownInstances.map((instance) => ({
@@ -314465,7 +315339,7 @@ async function serviceSecretPrompt({
314465
315339
  return defaultSecret;
314466
315340
  }
314467
315341
  if (defaultSecret) {
314468
- const keep = await esm_default4({
315342
+ const keep = await esm_default5({
314469
315343
  message: `Do you want to use the existing ${name4} secret?`,
314470
315344
  default: true
314471
315345
  });
@@ -314473,7 +315347,7 @@ async function serviceSecretPrompt({
314473
315347
  return defaultSecret;
314474
315348
  }
314475
315349
  }
314476
- const serviceSecret = await esm_default5({
315350
+ const serviceSecret = await esm_default6({
314477
315351
  message
314478
315352
  });
314479
315353
  return serviceSecret || undefined;
@@ -314494,7 +315368,7 @@ async function serviceUrlPrompt({
314494
315368
  if (isCi) {
314495
315369
  return defaultUrl ? new URL(defaultUrl).toString() : undefined;
314496
315370
  }
314497
- const serviceUrl = await esm_default2({
315371
+ const serviceUrl = await esm_default3({
314498
315372
  message: example ? `${message} (eg ${example})` : message,
314499
315373
  default: defaultUrl,
314500
315374
  required: true,
@@ -314525,7 +315399,7 @@ async function workspacePrompt(env2, workspaces, accept) {
314525
315399
  if (is_in_ci_default) {
314526
315400
  nothingSelectedError("workspace");
314527
315401
  }
314528
- const workspace = await esm_default3({
315402
+ const workspace = await esm_default4({
314529
315403
  message: "Which workspace do you want to connect to?",
314530
315404
  choices: workspaces.map((workspace2) => ({
314531
315405
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -314929,7 +315803,7 @@ async function serviceValuePrompt({
314929
315803
  if (isCi) {
314930
315804
  return defaultValue;
314931
315805
  }
314932
- const serviceSecret = await esm_default2({
315806
+ const serviceSecret = await esm_default3({
314933
315807
  message: example ? `${message} (eg ${example})` : message,
314934
315808
  default: defaultValue
314935
315809
  });
@@ -315367,7 +316241,7 @@ async function templatePrompt(platformConfig, argument) {
315367
316241
  }
315368
316242
  return template2;
315369
316243
  }
315370
- const template = await esm_default3({
316244
+ const template = await esm_default4({
315371
316245
  message: "Which template do you want to use?",
315372
316246
  choices: [
315373
316247
  ...kits.map((template2) => ({
@@ -315385,7 +316259,7 @@ async function projectNamePrompt(env2, argument) {
315385
316259
  if (defaultInstance) {
315386
316260
  return defaultInstance;
315387
316261
  }
315388
- return esm_default2({
316262
+ return esm_default3({
315389
316263
  message: "What is the name of your new SettleMint project?",
315390
316264
  default: defaultInstance,
315391
316265
  required: true,
@@ -315587,7 +316461,7 @@ var basename2 = function(p5, extension) {
315587
316461
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
315588
316462
  };
315589
316463
  // ../../node_modules/.bun/defu@6.1.4/node_modules/defu/dist/defu.mjs
315590
- function isPlainObject4(value5) {
316464
+ function isPlainObject5(value5) {
315591
316465
  if (value5 === null || typeof value5 !== "object") {
315592
316466
  return false;
315593
316467
  }
@@ -315604,7 +316478,7 @@ function isPlainObject4(value5) {
315604
316478
  return true;
315605
316479
  }
315606
316480
  function _defu(baseObject, defaults2, namespace = ".", merger) {
315607
- if (!isPlainObject4(defaults2)) {
316481
+ if (!isPlainObject5(defaults2)) {
315608
316482
  return _defu(baseObject, {}, namespace, merger);
315609
316483
  }
315610
316484
  const object2 = Object.assign({}, defaults2);
@@ -315621,7 +316495,7 @@ function _defu(baseObject, defaults2, namespace = ".", merger) {
315621
316495
  }
315622
316496
  if (Array.isArray(value5) && Array.isArray(object2[key])) {
315623
316497
  object2[key] = [...value5, ...object2[key]];
315624
- } else if (isPlainObject4(value5) && isPlainObject4(object2[key])) {
316498
+ } else if (isPlainObject5(value5) && isPlainObject5(object2[key])) {
315625
316499
  object2[key] = _defu(value5, object2[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
315626
316500
  } else {
315627
316501
  object2[key] = value5;
@@ -318652,7 +319526,7 @@ function createCommand2() {
318652
319526
  await mkdir6(projectDir, { recursive: true });
318653
319527
  }
318654
319528
  if (!await isEmpty(projectDir)) {
318655
- const confirmEmpty = await esm_default4({
319529
+ const confirmEmpty = await esm_default5({
318656
319530
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
318657
319531
  default: false
318658
319532
  });
@@ -318905,7 +319779,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318905
319779
  return defaultPersonalAccessToken;
318906
319780
  }
318907
319781
  if (existingConfig && defaultPersonalAccessToken) {
318908
- const useExisting = await esm_default4({
319782
+ const useExisting = await esm_default5({
318909
319783
  message: `Do you want to use your existing personal access token for ${instance}?`,
318910
319784
  default: true
318911
319785
  });
@@ -318913,7 +319787,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
318913
319787
  return defaultPersonalAccessToken;
318914
319788
  }
318915
319789
  }
318916
- return esm_default5({
319790
+ return esm_default6({
318917
319791
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
318918
319792
  validate(value5) {
318919
319793
  try {
@@ -319039,7 +319913,7 @@ function logoutCommand() {
319039
319913
  }
319040
319914
  const env2 = await loadEnv(false, false);
319041
319915
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
319042
- const instance = await esm_default3({
319916
+ const instance = await esm_default4({
319043
319917
  message: "Select the instance to logout from:",
319044
319918
  choices: instances.map((instance2) => ({
319045
319919
  value: instance2,
@@ -319060,7 +319934,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
319060
319934
  if (verificationChallenges.length === 1) {
319061
319935
  return verificationChallenges[0];
319062
319936
  }
319063
- const verificationChallenge = await esm_default3({
319937
+ const verificationChallenge = await esm_default4({
319064
319938
  message: "Which pincode verification do you want to use?",
319065
319939
  choices: verificationChallenges.map((verificationChallenge2) => ({
319066
319940
  name: verificationChallenge2.name,
@@ -319124,7 +319998,7 @@ function pincodeVerificationResponseCommand() {
319124
319998
  nodeId: selectedBlockchainNode.id
319125
319999
  });
319126
320000
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
319127
- const pincode = await esm_default5({
320001
+ const pincode = await esm_default6({
319128
320002
  message: "Enter your pincode",
319129
320003
  validate(value5) {
319130
320004
  if (!value5.trim()) {
@@ -319277,7 +320151,7 @@ async function providerPrompt(platformConfig, argument) {
319277
320151
  if (possibleProviders.length === 1) {
319278
320152
  return possibleProviders[0];
319279
320153
  }
319280
- const provider = await esm_default3({
320154
+ const provider = await esm_default4({
319281
320155
  message: "Which provider do you want to use?",
319282
320156
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
319283
320157
  name: target.name,
@@ -319308,7 +320182,7 @@ async function regionPrompt(provider, argument) {
319308
320182
  if (possibleRegions.length === 1) {
319309
320183
  return possibleRegions[0];
319310
320184
  }
319311
- const region = await esm_default3({
320185
+ const region = await esm_default4({
319312
320186
  message: "Which region do you want to use?",
319313
320187
  choices: provider.clusters.map((cluster) => ({
319314
320188
  name: cluster.name,
@@ -319838,7 +320712,7 @@ async function blockchainNetworkPrompt({
319838
320712
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
319839
320713
  isRequired,
319840
320714
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
319841
- return esm_default3({
320715
+ return esm_default4({
319842
320716
  message: "Which blockchain network do you want to connect to?",
319843
320717
  choices,
319844
320718
  default: defaultNetwork
@@ -320743,7 +321617,7 @@ function createCommand3() {
320743
321617
 
320744
321618
  // src/prompts/delete-confirmation.prompt.ts
320745
321619
  async function deleteConfirmationPrompt(itemDescription) {
320746
- const confirmation = await esm_default2({
321620
+ const confirmation = await esm_default3({
320747
321621
  message: `Are you sure you want to delete ${itemDescription}? (yes/no)`,
320748
321622
  required: true,
320749
321623
  validate(value5) {
@@ -321603,7 +322477,7 @@ function jsonOutput(data) {
321603
322477
  var composer = require_composer();
321604
322478
  var Document = require_Document();
321605
322479
  var Schema = require_Schema();
321606
- var errors4 = require_errors3();
322480
+ var errors5 = require_errors3();
321607
322481
  var Alias = require_Alias();
321608
322482
  var identity2 = require_identity();
321609
322483
  var Pair = require_Pair();
@@ -321619,9 +322493,9 @@ var visit2 = require_visit();
321619
322493
  var $Composer = composer.Composer;
321620
322494
  var $Document = Document.Document;
321621
322495
  var $Schema = Schema.Schema;
321622
- var $YAMLError = errors4.YAMLError;
321623
- var $YAMLParseError = errors4.YAMLParseError;
321624
- var $YAMLWarning = errors4.YAMLWarning;
322496
+ var $YAMLError = errors5.YAMLError;
322497
+ var $YAMLParseError = errors5.YAMLParseError;
322498
+ var $YAMLWarning = errors5.YAMLWarning;
321625
322499
  var $Alias = Alias.Alias;
321626
322500
  var $isAlias = identity2.isAlias;
321627
322501
  var $isCollection = identity2.isCollection;
@@ -322140,7 +323014,7 @@ async function useCasePrompt(platformConfig, argument) {
322140
323014
  if (selectableUseCases.length === 1) {
322141
323015
  return selectableUseCases[0];
322142
323016
  }
322143
- const useCase = await esm_default3({
323017
+ const useCase = await esm_default4({
322144
323018
  message: "Which use case do you want to use?",
322145
323019
  choices: selectableUseCases.map((useCase2) => ({
322146
323020
  name: formatUseCaseName(useCase2.name),
@@ -322160,7 +323034,7 @@ function formatUseCaseName(name4) {
322160
323034
  }
322161
323035
 
322162
323036
  // src/utils/smart-contract-set/execute-foundry-command.ts
322163
- var import_which = __toESM(require_lib4(), 1);
323037
+ var import_which = __toESM(require_lib5(), 1);
322164
323038
  async function executeFoundryCommand(command, args) {
322165
323039
  try {
322166
323040
  await import_which.default(command);
@@ -322198,7 +323072,7 @@ function createCommand4() {
322198
323072
  const targetDir = formatTargetDir(name4);
322199
323073
  const projectDir = join10(process.cwd(), targetDir);
322200
323074
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
322201
- const confirmEmpty = await esm_default4({
323075
+ const confirmEmpty = await esm_default5({
322202
323076
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
322203
323077
  default: false
322204
323078
  });
@@ -322511,7 +323385,7 @@ async function addressPrompt({
322511
323385
  hardhatConfig
322512
323386
  }) {
322513
323387
  if (!node) {
322514
- return esm_default2({
323388
+ return esm_default3({
322515
323389
  message: "Which private key address do you want to deploy from?",
322516
323390
  validate: (value5) => {
322517
323391
  if (!isAddress(value5)) {
@@ -322531,7 +323405,7 @@ async function addressPrompt({
322531
323405
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
322532
323406
  Please select another key or activate this key on the node and try again.`, "warn");
322533
323407
  }
322534
- const address = await esm_default3({
323408
+ const address = await esm_default4({
322535
323409
  message: "Which private key do you want to deploy from?",
322536
323410
  choices: possiblePrivateKeys.map(({ address: address2, name: name4 }) => ({
322537
323411
  name: name4,
@@ -323482,4 +324356,4 @@ async function sdkCliCommand(argv = process.argv) {
323482
324356
  // src/cli.ts
323483
324357
  sdkCliCommand();
323484
324358
 
323485
- //# debugId=73BC85A06160E9CF64756E2164756E21
324359
+ //# debugId=677E57B0CAC6ABCB64756E2164756E21