@settlemint/sdk-cli 2.5.1-preea3df4a → 2.5.1-prf450dfcd

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 +1825 -602
  2. package/dist/cli.js.map +44 -15
  3. package/package.json +8 -8
package/dist/cli.js CHANGED
@@ -161742,7 +161742,7 @@ ${lanes.join(`
161742
161742
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
161743
161743
  var _a;
161744
161744
  const text = [];
161745
- const colors3 = createColors(sys2);
161745
+ const colors2 = createColors(sys2);
161746
161746
  const name2 = getDisplayNameTextOfOption(option);
161747
161747
  const valueCandidates = getValueCandidate(option);
161748
161748
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -161763,7 +161763,7 @@ ${lanes.join(`
161763
161763
  }
161764
161764
  text.push(sys2.newLine);
161765
161765
  } else {
161766
- text.push(colors3.blue(name2), sys2.newLine);
161766
+ text.push(colors2.blue(name2), sys2.newLine);
161767
161767
  if (option.description) {
161768
161768
  const description3 = getDiagnosticText(option.description);
161769
161769
  text.push(description3);
@@ -161808,7 +161808,7 @@ ${lanes.join(`
161808
161808
  if (isFirstLine) {
161809
161809
  curLeft = left.padStart(rightAlignOfLeft2);
161810
161810
  curLeft = curLeft.padEnd(leftAlignOfRight2);
161811
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
161811
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
161812
161812
  } else {
161813
161813
  curLeft = "".padStart(leftAlignOfRight2);
161814
161814
  }
@@ -161920,9 +161920,9 @@ ${lanes.join(`
161920
161920
  return res;
161921
161921
  }
161922
161922
  function printEasyHelp(sys2, simpleOptions) {
161923
- const colors3 = createColors(sys2);
161923
+ const colors2 = createColors(sys2);
161924
161924
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version4)}`)];
161925
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161925
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161926
161926
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
161927
161927
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
161928
161928
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -161943,7 +161943,7 @@ ${lanes.join(`
161943
161943
  function example(ex, desc) {
161944
161944
  const examples = typeof ex === "string" ? [ex] : ex;
161945
161945
  for (const example2 of examples) {
161946
- output.push(" " + colors3.blue(example2) + sys2.newLine);
161946
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
161947
161947
  }
161948
161948
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
161949
161949
  }
@@ -161966,12 +161966,12 @@ ${lanes.join(`
161966
161966
  }
161967
161967
  function getHeader(sys2, message) {
161968
161968
  var _a;
161969
- const colors3 = createColors(sys2);
161969
+ const colors2 = createColors(sys2);
161970
161970
  const header = [];
161971
161971
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
161972
161972
  const tsIconLength = 5;
161973
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
161974
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
161973
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
161974
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
161975
161975
  if (terminalWidth >= message.length + tsIconLength) {
161976
161976
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
161977
161977
  const leftAlign = rightAlign - tsIconLength;
@@ -231623,7 +231623,7 @@ function size(value4) {
231623
231623
  var init_size = () => {};
231624
231624
 
231625
231625
  // ../../node_modules/viem/_esm/errors/version.js
231626
- var version5 = "2.32.1";
231626
+ var version5 = "2.33.0";
231627
231627
 
231628
231628
  // ../../node_modules/viem/_esm/errors/base.js
231629
231629
  function walk(err, fn) {
@@ -232832,16 +232832,16 @@ var init_lru = __esm(() => {
232832
232832
  });
232833
232833
  this.maxSize = size2;
232834
232834
  }
232835
- get(key2) {
232836
- const value4 = super.get(key2);
232837
- if (super.has(key2) && value4 !== undefined) {
232838
- this.delete(key2);
232839
- super.set(key2, value4);
232835
+ get(key3) {
232836
+ const value4 = super.get(key3);
232837
+ if (super.has(key3) && value4 !== undefined) {
232838
+ this.delete(key3);
232839
+ super.set(key3, value4);
232840
232840
  }
232841
232841
  return value4;
232842
232842
  }
232843
- set(key2, value4) {
232844
- super.set(key2, value4);
232843
+ set(key3, value4) {
232844
+ super.set(key3, value4);
232845
232845
  if (this.maxSize && this.size > this.maxSize) {
232846
232846
  const firstKey = this.keys().next().value;
232847
232847
  if (firstKey)
@@ -233883,9 +233883,9 @@ var init_decodeErrorResult = __esm(() => {
233883
233883
  });
233884
233884
 
233885
233885
  // ../../node_modules/viem/_esm/utils/stringify.js
233886
- var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key2, value_) => {
233886
+ var stringify3 = (value4, replacer, space) => JSON.stringify(value4, (key3, value_) => {
233887
233887
  const value5 = typeof value_ === "bigint" ? value_.toString() : value_;
233888
- return typeof replacer === "function" ? replacer(key2, value5) : value5;
233888
+ return typeof replacer === "function" ? replacer(key3, value5) : value5;
233889
233889
  }, space);
233890
233890
 
233891
233891
  // ../../node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
@@ -233999,13 +233999,13 @@ var init_stateOverride = __esm(() => {
233999
233999
 
234000
234000
  // ../../node_modules/viem/_esm/errors/transaction.js
234001
234001
  function prettyPrint(args) {
234002
- const entries = Object.entries(args).map(([key2, value4]) => {
234002
+ const entries = Object.entries(args).map(([key3, value4]) => {
234003
234003
  if (value4 === undefined || value4 === false)
234004
234004
  return null;
234005
- return [key2, value4];
234005
+ return [key3, value4];
234006
234006
  }).filter(Boolean);
234007
- const maxLength = entries.reduce((acc, [key2]) => Math.max(acc, key2.length), 0);
234008
- return entries.map(([key2, value4]) => ` ${`${key2}:`.padEnd(maxLength + 1)} ${value4}`).join(`
234007
+ const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
234008
+ return entries.map(([key3, value4]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value4}`).join(`
234009
234009
  `);
234010
234010
  }
234011
234011
  var FeeConflictError, InvalidSerializableTransactionError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
@@ -235111,7 +235111,7 @@ var init_sha2 = __esm(() => {
235111
235111
  });
235112
235112
 
235113
235113
  // ../../node_modules/@noble/hashes/esm/hmac.js
235114
- var HMAC, hmac = (hash2, key2, message) => new HMAC(hash2, key2).update(message).digest();
235114
+ var HMAC, hmac = (hash2, key3, message) => new HMAC(hash2, key3).update(message).digest();
235115
235115
  var init_hmac = __esm(() => {
235116
235116
  init_utils2();
235117
235117
  HMAC = class HMAC extends Hash {
@@ -235120,7 +235120,7 @@ var init_hmac = __esm(() => {
235120
235120
  this.finished = false;
235121
235121
  this.destroyed = false;
235122
235122
  ahash(hash2);
235123
- const key2 = toBytes2(_key);
235123
+ const key3 = toBytes2(_key);
235124
235124
  this.iHash = hash2.create();
235125
235125
  if (typeof this.iHash.update !== "function")
235126
235126
  throw new Error("Expected instance of class which extends utils.Hash");
@@ -235128,7 +235128,7 @@ var init_hmac = __esm(() => {
235128
235128
  this.outputLen = this.iHash.outputLen;
235129
235129
  const blockLen = this.blockLen;
235130
235130
  const pad2 = new Uint8Array(blockLen);
235131
- pad2.set(key2.length > blockLen ? hash2.create().update(key2).digest() : key2);
235131
+ pad2.set(key3.length > blockLen ? hash2.create().update(key3).digest() : key3);
235132
235132
  for (let i6 = 0;i6 < pad2.length; i6++)
235133
235133
  pad2[i6] ^= 54;
235134
235134
  this.iHash.update(pad2);
@@ -235178,7 +235178,7 @@ var init_hmac = __esm(() => {
235178
235178
  this.iHash.destroy();
235179
235179
  }
235180
235180
  };
235181
- hmac.create = (hash2, key2) => new HMAC(hash2, key2);
235181
+ hmac.create = (hash2, key3) => new HMAC(hash2, key3);
235182
235182
  });
235183
235183
 
235184
235184
  // ../../node_modules/@noble/curves/esm/utils.js
@@ -235579,13 +235579,13 @@ function getMinHashLength(fieldOrder) {
235579
235579
  const length = getFieldBytesLength(fieldOrder);
235580
235580
  return length + Math.ceil(length / 2);
235581
235581
  }
235582
- function mapHashToField(key2, fieldOrder, isLE2 = false) {
235583
- const len = key2.length;
235582
+ function mapHashToField(key3, fieldOrder, isLE2 = false) {
235583
+ const len = key3.length;
235584
235584
  const fieldLen = getFieldBytesLength(fieldOrder);
235585
235585
  const minLen = getMinHashLength(fieldOrder);
235586
235586
  if (len < 16 || len < minLen || len > 1024)
235587
235587
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
235588
- const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
235588
+ const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
235589
235589
  const reduced = mod(num, fieldOrder - _1n3) + _1n3;
235590
235590
  return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
235591
235591
  }
@@ -235888,12 +235888,12 @@ function _legacyHelperEquat(Fp, a7, b4) {
235888
235888
  }
235889
235889
  function _legacyHelperNormPriv(Fn, allowedPrivateKeyLengths, wrapPrivateKey) {
235890
235890
  const { BYTES: expected } = Fn;
235891
- function normPrivateKeyToScalar(key2) {
235891
+ function normPrivateKeyToScalar(key3) {
235892
235892
  let num;
235893
- if (typeof key2 === "bigint") {
235894
- num = key2;
235893
+ if (typeof key3 === "bigint") {
235894
+ num = key3;
235895
235895
  } else {
235896
- let bytes = ensureBytes("private key", key2);
235896
+ let bytes = ensureBytes("private key", key3);
235897
235897
  if (allowedPrivateKeyLengths) {
235898
235898
  if (!allowedPrivateKeyLengths.includes(bytes.length * 2))
235899
235899
  throw new Error("invalid private key");
@@ -235904,7 +235904,7 @@ function _legacyHelperNormPriv(Fn, allowedPrivateKeyLengths, wrapPrivateKey) {
235904
235904
  try {
235905
235905
  num = Fn.fromBytes(bytes);
235906
235906
  } catch (error44) {
235907
- throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key2}`);
235907
+ throw new Error(`invalid private key: expected ui8a of size ${expected}, got ${typeof key3}`);
235908
235908
  }
235909
235909
  }
235910
235910
  if (wrapPrivateKey)
@@ -236306,7 +236306,7 @@ function ecdsa(Point, ecdsaOpts, curveOpts = {}) {
236306
236306
  bits2int_modN: "function"
236307
236307
  });
236308
236308
  const randomBytes_ = ecdsaOpts.randomBytes || randomBytes;
236309
- const hmac_ = ecdsaOpts.hmac || ((key2, ...msgs) => hmac(ecdsaOpts.hash, key2, concatBytes(...msgs)));
236309
+ const hmac_ = ecdsaOpts.hmac || ((key3, ...msgs) => hmac(ecdsaOpts.hash, key3, concatBytes(...msgs)));
236310
236310
  const { Fp, Fn } = Point;
236311
236311
  const { ORDER: CURVE_ORDER, BITS: fnBits } = Fn;
236312
236312
  function isBiggerThanHalfOrder(number6) {
@@ -237464,11 +237464,11 @@ function extract2(value_, { format: format2 }) {
237464
237464
  const value4 = {};
237465
237465
  function extract_(formatted2) {
237466
237466
  const keys = Object.keys(formatted2);
237467
- for (const key2 of keys) {
237468
- if (key2 in value_)
237469
- value4[key2] = value_[key2];
237470
- if (formatted2[key2] && typeof formatted2[key2] === "object" && !Array.isArray(formatted2[key2]))
237471
- extract_(formatted2[key2]);
237467
+ for (const key3 of keys) {
237468
+ if (key3 in value_)
237469
+ value4[key3] = value_[key3];
237470
+ if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
237471
+ extract_(formatted2[key3]);
237472
237472
  }
237473
237473
  }
237474
237474
  const formatted = format2(value_ || {});
@@ -237872,9 +237872,9 @@ var init_Errors = __esm(() => {
237872
237872
 
237873
237873
  // ../../node_modules/ox/_esm/core/Json.js
237874
237874
  function stringify4(value4, replacer, space) {
237875
- return JSON.stringify(value4, (key2, value5) => {
237875
+ return JSON.stringify(value4, (key3, value5) => {
237876
237876
  if (typeof replacer === "function")
237877
- return replacer(key2, value5);
237877
+ return replacer(key3, value5);
237878
237878
  if (typeof value5 === "bigint")
237879
237879
  return value5.toString() + bigIntSuffix;
237880
237880
  return value5;
@@ -239020,7 +239020,7 @@ var init_ccip2 = __esm(() => {
239020
239020
 
239021
239021
  // ../../node_modules/viem/_esm/actions/public/call.js
239022
239022
  async function call(client, args) {
239023
- const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
239023
+ const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code: code2, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value: value4, stateOverride, ...rest } = args;
239024
239024
  const account = account_ ? parseAccount(account_) : undefined;
239025
239025
  if (code2 && (factory || factoryData))
239026
239026
  throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
@@ -239128,7 +239128,7 @@ function shouldPerformMulticall({ request: request2 }) {
239128
239128
  }
239129
239129
  async function scheduleMulticall(client, args) {
239130
239130
  const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
239131
- const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
239131
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", data, multicallAddress: multicallAddress_, to } = args;
239132
239132
  let multicallAddress = multicallAddress_;
239133
239133
  if (!multicallAddress) {
239134
239134
  if (!client.chain)
@@ -239297,11 +239297,11 @@ var require_visit = __commonJS((exports) => {
239297
239297
  visit2.BREAK = BREAK;
239298
239298
  visit2.SKIP = SKIP;
239299
239299
  visit2.REMOVE = REMOVE;
239300
- function visit_(key2, node, visitor, path7) {
239301
- const ctrl = callVisitor(key2, node, visitor, path7);
239300
+ function visit_(key4, node, visitor, path7) {
239301
+ const ctrl = callVisitor(key4, node, visitor, path7);
239302
239302
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239303
- replaceNode(key2, path7, ctrl);
239304
- return visit_(key2, ctrl, visitor, path7);
239303
+ replaceNode(key4, path7, ctrl);
239304
+ return visit_(key4, ctrl, visitor, path7);
239305
239305
  }
239306
239306
  if (typeof ctrl !== "symbol") {
239307
239307
  if (identity2.isCollection(node)) {
@@ -239345,11 +239345,11 @@ var require_visit = __commonJS((exports) => {
239345
239345
  visitAsync.BREAK = BREAK;
239346
239346
  visitAsync.SKIP = SKIP;
239347
239347
  visitAsync.REMOVE = REMOVE;
239348
- async function visitAsync_(key2, node, visitor, path7) {
239349
- const ctrl = await callVisitor(key2, node, visitor, path7);
239348
+ async function visitAsync_(key4, node, visitor, path7) {
239349
+ const ctrl = await callVisitor(key4, node, visitor, path7);
239350
239350
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239351
- replaceNode(key2, path7, ctrl);
239352
- return visitAsync_(key2, ctrl, visitor, path7);
239351
+ replaceNode(key4, path7, ctrl);
239352
+ return visitAsync_(key4, ctrl, visitor, path7);
239353
239353
  }
239354
239354
  if (typeof ctrl !== "symbol") {
239355
239355
  if (identity2.isCollection(node)) {
@@ -239399,27 +239399,27 @@ var require_visit = __commonJS((exports) => {
239399
239399
  }
239400
239400
  return visitor;
239401
239401
  }
239402
- function callVisitor(key2, node, visitor, path7) {
239402
+ function callVisitor(key4, node, visitor, path7) {
239403
239403
  if (typeof visitor === "function")
239404
- return visitor(key2, node, path7);
239404
+ return visitor(key4, node, path7);
239405
239405
  if (identity2.isMap(node))
239406
- return visitor.Map?.(key2, node, path7);
239406
+ return visitor.Map?.(key4, node, path7);
239407
239407
  if (identity2.isSeq(node))
239408
- return visitor.Seq?.(key2, node, path7);
239408
+ return visitor.Seq?.(key4, node, path7);
239409
239409
  if (identity2.isPair(node))
239410
- return visitor.Pair?.(key2, node, path7);
239410
+ return visitor.Pair?.(key4, node, path7);
239411
239411
  if (identity2.isScalar(node))
239412
- return visitor.Scalar?.(key2, node, path7);
239412
+ return visitor.Scalar?.(key4, node, path7);
239413
239413
  if (identity2.isAlias(node))
239414
- return visitor.Alias?.(key2, node, path7);
239414
+ return visitor.Alias?.(key4, node, path7);
239415
239415
  return;
239416
239416
  }
239417
- function replaceNode(key2, path7, node) {
239417
+ function replaceNode(key4, path7, node) {
239418
239418
  const parent = path7[path7.length - 1];
239419
239419
  if (identity2.isCollection(parent)) {
239420
- parent.items[key2] = node;
239420
+ parent.items[key4] = node;
239421
239421
  } else if (identity2.isPair(parent)) {
239422
- if (key2 === "key")
239422
+ if (key4 === "key")
239423
239423
  parent.key = node;
239424
239424
  else
239425
239425
  parent.value = node;
@@ -239650,7 +239650,7 @@ var require_anchors = __commonJS((exports) => {
239650
239650
 
239651
239651
  // ../../node_modules/yaml/dist/doc/applyReviver.js
239652
239652
  var require_applyReviver = __commonJS((exports) => {
239653
- function applyReviver(reviver, obj, key2, val) {
239653
+ function applyReviver(reviver, obj, key4, val) {
239654
239654
  if (val && typeof val === "object") {
239655
239655
  if (Array.isArray(val)) {
239656
239656
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -239690,7 +239690,7 @@ var require_applyReviver = __commonJS((exports) => {
239690
239690
  }
239691
239691
  }
239692
239692
  }
239693
- return reviver.call(obj, key2, val);
239693
+ return reviver.call(obj, key4, val);
239694
239694
  }
239695
239695
  exports.applyReviver = applyReviver;
239696
239696
  });
@@ -240019,29 +240019,29 @@ var require_Collection = __commonJS((exports) => {
240019
240019
  if (isEmptyPath(path7))
240020
240020
  this.add(value4);
240021
240021
  else {
240022
- const [key2, ...rest] = path7;
240023
- const node = this.get(key2, true);
240022
+ const [key4, ...rest] = path7;
240023
+ const node = this.get(key4, true);
240024
240024
  if (identity2.isCollection(node))
240025
240025
  node.addIn(rest, value4);
240026
240026
  else if (node === undefined && this.schema)
240027
- this.set(key2, collectionFromPath(this.schema, rest, value4));
240027
+ this.set(key4, collectionFromPath(this.schema, rest, value4));
240028
240028
  else
240029
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240029
+ throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
240030
240030
  }
240031
240031
  }
240032
240032
  deleteIn(path7) {
240033
- const [key2, ...rest] = path7;
240033
+ const [key4, ...rest] = path7;
240034
240034
  if (rest.length === 0)
240035
- return this.delete(key2);
240036
- const node = this.get(key2, true);
240035
+ return this.delete(key4);
240036
+ const node = this.get(key4, true);
240037
240037
  if (identity2.isCollection(node))
240038
240038
  return node.deleteIn(rest);
240039
240039
  else
240040
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240040
+ throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
240041
240041
  }
240042
240042
  getIn(path7, keepScalar) {
240043
- const [key2, ...rest] = path7;
240044
- const node = this.get(key2, true);
240043
+ const [key4, ...rest] = path7;
240044
+ const node = this.get(key4, true);
240045
240045
  if (rest.length === 0)
240046
240046
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
240047
240047
  else
@@ -240056,24 +240056,24 @@ var require_Collection = __commonJS((exports) => {
240056
240056
  });
240057
240057
  }
240058
240058
  hasIn(path7) {
240059
- const [key2, ...rest] = path7;
240059
+ const [key4, ...rest] = path7;
240060
240060
  if (rest.length === 0)
240061
- return this.has(key2);
240062
- const node = this.get(key2, true);
240061
+ return this.has(key4);
240062
+ const node = this.get(key4, true);
240063
240063
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
240064
240064
  }
240065
240065
  setIn(path7, value4) {
240066
- const [key2, ...rest] = path7;
240066
+ const [key4, ...rest] = path7;
240067
240067
  if (rest.length === 0) {
240068
- this.set(key2, value4);
240068
+ this.set(key4, value4);
240069
240069
  } else {
240070
- const node = this.get(key2, true);
240070
+ const node = this.get(key4, true);
240071
240071
  if (identity2.isCollection(node))
240072
240072
  node.setIn(rest, value4);
240073
240073
  else if (node === undefined && this.schema)
240074
- this.set(key2, collectionFromPath(this.schema, rest, value4));
240074
+ this.set(key4, collectionFromPath(this.schema, rest, value4));
240075
240075
  else
240076
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
240076
+ throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
240077
240077
  }
240078
240078
  }
240079
240079
  }
@@ -240660,19 +240660,19 @@ var require_stringifyPair = __commonJS((exports) => {
240660
240660
  var Scalar = require_Scalar();
240661
240661
  var stringify5 = require_stringify();
240662
240662
  var stringifyComment = require_stringifyComment();
240663
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
240663
+ function stringifyPair2({ key: key4, value: value4 }, ctx, onComment, onChompKeep) {
240664
240664
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240665
- let keyComment = identity2.isNode(key2) && key2.comment || null;
240665
+ let keyComment = identity2.isNode(key4) && key4.comment || null;
240666
240666
  if (simpleKeys) {
240667
240667
  if (keyComment) {
240668
240668
  throw new Error("With simple keys, key nodes cannot have comments");
240669
240669
  }
240670
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
240670
+ if (identity2.isCollection(key4) || !identity2.isNode(key4) && typeof key4 === "object") {
240671
240671
  const msg = "With simple keys, collection cannot be used as a key value";
240672
240672
  throw new Error(msg);
240673
240673
  }
240674
240674
  }
240675
- let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
240675
+ let explicitKey = !simpleKeys && (!key4 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key4) || (identity2.isScalar(key4) ? key4.type === Scalar.Scalar.BLOCK_FOLDED || key4.type === Scalar.Scalar.BLOCK_LITERAL : typeof key4 === "object"));
240676
240676
  ctx = Object.assign({}, ctx, {
240677
240677
  allNullValues: false,
240678
240678
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -240680,7 +240680,7 @@ var require_stringifyPair = __commonJS((exports) => {
240680
240680
  });
240681
240681
  let keyCommentDone = false;
240682
240682
  let chompKeep = false;
240683
- let str = stringify5.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
240683
+ let str = stringify5.stringify(key4, ctx, () => keyCommentDone = true, () => chompKeep = true);
240684
240684
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
240685
240685
  if (simpleKeys)
240686
240686
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -240824,7 +240824,7 @@ var require_merge = __commonJS((exports) => {
240824
240824
  }),
240825
240825
  stringify: () => MERGE_KEY
240826
240826
  };
240827
- var isMergeKey = (ctx, key2) => (merge7.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge7.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240827
+ var isMergeKey = (ctx, key4) => (merge7.identify(key4) || identity2.isScalar(key4) && (!key4.type || key4.type === Scalar.Scalar.PLAIN) && merge7.identify(key4.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240828
240828
  function addMergeToJSMap(ctx, map7, value4) {
240829
240829
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
240830
240830
  if (identity2.isSeq(value4))
@@ -240841,14 +240841,14 @@ var require_merge = __commonJS((exports) => {
240841
240841
  if (!identity2.isMap(source))
240842
240842
  throw new Error("Merge sources must be maps or map aliases");
240843
240843
  const srcMap = source.toJSON(null, ctx, Map);
240844
- for (const [key2, value5] of srcMap) {
240844
+ for (const [key4, value5] of srcMap) {
240845
240845
  if (map7 instanceof Map) {
240846
- if (!map7.has(key2))
240847
- map7.set(key2, value5);
240846
+ if (!map7.has(key4))
240847
+ map7.set(key4, value5);
240848
240848
  } else if (map7 instanceof Set) {
240849
- map7.add(key2);
240850
- } else if (!Object.prototype.hasOwnProperty.call(map7, key2)) {
240851
- Object.defineProperty(map7, key2, {
240849
+ map7.add(key4);
240850
+ } else if (!Object.prototype.hasOwnProperty.call(map7, key4)) {
240851
+ Object.defineProperty(map7, key4, {
240852
240852
  value: value5,
240853
240853
  writable: true,
240854
240854
  enumerable: true,
@@ -240870,19 +240870,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240870
240870
  var stringify5 = require_stringify();
240871
240871
  var identity2 = require_identity();
240872
240872
  var toJS = require_toJS();
240873
- function addPairToJSMap(ctx, map7, { key: key2, value: value4 }) {
240874
- if (identity2.isNode(key2) && key2.addToJSMap)
240875
- key2.addToJSMap(ctx, map7, value4);
240876
- else if (merge7.isMergeKey(ctx, key2))
240873
+ function addPairToJSMap(ctx, map7, { key: key4, value: value4 }) {
240874
+ if (identity2.isNode(key4) && key4.addToJSMap)
240875
+ key4.addToJSMap(ctx, map7, value4);
240876
+ else if (merge7.isMergeKey(ctx, key4))
240877
240877
  merge7.addMergeToJSMap(ctx, map7, value4);
240878
240878
  else {
240879
- const jsKey = toJS.toJS(key2, "", ctx);
240879
+ const jsKey = toJS.toJS(key4, "", ctx);
240880
240880
  if (map7 instanceof Map) {
240881
240881
  map7.set(jsKey, toJS.toJS(value4, jsKey, ctx));
240882
240882
  } else if (map7 instanceof Set) {
240883
240883
  map7.add(jsKey);
240884
240884
  } else {
240885
- const stringKey = stringifyKey(key2, jsKey, ctx);
240885
+ const stringKey = stringifyKey(key4, jsKey, ctx);
240886
240886
  const jsValue = toJS.toJS(value4, stringKey, ctx);
240887
240887
  if (stringKey in map7)
240888
240888
  Object.defineProperty(map7, stringKey, {
@@ -240897,19 +240897,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
240897
240897
  }
240898
240898
  return map7;
240899
240899
  }
240900
- function stringifyKey(key2, jsKey, ctx) {
240900
+ function stringifyKey(key4, jsKey, ctx) {
240901
240901
  if (jsKey === null)
240902
240902
  return "";
240903
240903
  if (typeof jsKey !== "object")
240904
240904
  return String(jsKey);
240905
- if (identity2.isNode(key2) && ctx?.doc) {
240905
+ if (identity2.isNode(key4) && ctx?.doc) {
240906
240906
  const strCtx = stringify5.createStringifyContext(ctx.doc, {});
240907
240907
  strCtx.anchors = new Set;
240908
240908
  for (const node of ctx.anchors.keys())
240909
240909
  strCtx.anchors.add(node.anchor);
240910
240910
  strCtx.inFlow = true;
240911
240911
  strCtx.inStringifyKey = true;
240912
- const strKey = key2.toString(strCtx);
240912
+ const strKey = key4.toString(strCtx);
240913
240913
  if (!ctx.mapKeyWarned) {
240914
240914
  let jsonStr = JSON.stringify(strKey);
240915
240915
  if (jsonStr.length > 40)
@@ -240930,25 +240930,25 @@ var require_Pair = __commonJS((exports) => {
240930
240930
  var stringifyPair2 = require_stringifyPair();
240931
240931
  var addPairToJSMap = require_addPairToJSMap();
240932
240932
  var identity2 = require_identity();
240933
- function createPair(key2, value4, ctx) {
240934
- const k6 = createNode.createNode(key2, undefined, ctx);
240933
+ function createPair(key4, value4, ctx) {
240934
+ const k6 = createNode.createNode(key4, undefined, ctx);
240935
240935
  const v7 = createNode.createNode(value4, undefined, ctx);
240936
240936
  return new Pair(k6, v7);
240937
240937
  }
240938
240938
 
240939
240939
  class Pair {
240940
- constructor(key2, value4 = null) {
240940
+ constructor(key4, value4 = null) {
240941
240941
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240942
- this.key = key2;
240942
+ this.key = key4;
240943
240943
  this.value = value4;
240944
240944
  }
240945
240945
  clone(schema) {
240946
- let { key: key2, value: value4 } = this;
240947
- if (identity2.isNode(key2))
240948
- key2 = key2.clone(schema);
240946
+ let { key: key4, value: value4 } = this;
240947
+ if (identity2.isNode(key4))
240948
+ key4 = key4.clone(schema);
240949
240949
  if (identity2.isNode(value4))
240950
240950
  value4 = value4.clone(schema);
240951
- return new Pair(key2, value4);
240951
+ return new Pair(key4, value4);
240952
240952
  }
240953
240953
  toJSON(_6, ctx) {
240954
240954
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -241115,11 +241115,11 @@ var require_YAMLMap = __commonJS((exports) => {
241115
241115
  var identity2 = require_identity();
241116
241116
  var Pair = require_Pair();
241117
241117
  var Scalar = require_Scalar();
241118
- function findPair(items, key2) {
241119
- const k6 = identity2.isScalar(key2) ? key2.value : key2;
241118
+ function findPair(items, key4) {
241119
+ const k6 = identity2.isScalar(key4) ? key4.value : key4;
241120
241120
  for (const it2 of items) {
241121
241121
  if (identity2.isPair(it2)) {
241122
- if (it2.key === key2 || it2.key === k6)
241122
+ if (it2.key === key4 || it2.key === k6)
241123
241123
  return it2;
241124
241124
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
241125
241125
  return it2;
@@ -241139,20 +241139,20 @@ var require_YAMLMap = __commonJS((exports) => {
241139
241139
  static from(schema, obj, ctx) {
241140
241140
  const { keepUndefined, replacer } = ctx;
241141
241141
  const map7 = new this(schema);
241142
- const add = (key2, value4) => {
241142
+ const add = (key4, value4) => {
241143
241143
  if (typeof replacer === "function")
241144
- value4 = replacer.call(obj, key2, value4);
241145
- else if (Array.isArray(replacer) && !replacer.includes(key2))
241144
+ value4 = replacer.call(obj, key4, value4);
241145
+ else if (Array.isArray(replacer) && !replacer.includes(key4))
241146
241146
  return;
241147
241147
  if (value4 !== undefined || keepUndefined)
241148
- map7.items.push(Pair.createPair(key2, value4, ctx));
241148
+ map7.items.push(Pair.createPair(key4, value4, ctx));
241149
241149
  };
241150
241150
  if (obj instanceof Map) {
241151
- for (const [key2, value4] of obj)
241152
- add(key2, value4);
241151
+ for (const [key4, value4] of obj)
241152
+ add(key4, value4);
241153
241153
  } else if (obj && typeof obj === "object") {
241154
- for (const key2 of Object.keys(obj))
241155
- add(key2, obj[key2]);
241154
+ for (const key4 of Object.keys(obj))
241155
+ add(key4, obj[key4]);
241156
241156
  }
241157
241157
  if (typeof schema.sortMapEntries === "function") {
241158
241158
  map7.items.sort(schema.sortMapEntries);
@@ -241186,23 +241186,23 @@ var require_YAMLMap = __commonJS((exports) => {
241186
241186
  this.items.push(_pair);
241187
241187
  }
241188
241188
  }
241189
- delete(key2) {
241190
- const it2 = findPair(this.items, key2);
241189
+ delete(key4) {
241190
+ const it2 = findPair(this.items, key4);
241191
241191
  if (!it2)
241192
241192
  return false;
241193
241193
  const del = this.items.splice(this.items.indexOf(it2), 1);
241194
241194
  return del.length > 0;
241195
241195
  }
241196
- get(key2, keepScalar) {
241197
- const it2 = findPair(this.items, key2);
241196
+ get(key4, keepScalar) {
241197
+ const it2 = findPair(this.items, key4);
241198
241198
  const node = it2?.value;
241199
241199
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241200
241200
  }
241201
- has(key2) {
241202
- return !!findPair(this.items, key2);
241201
+ has(key4) {
241202
+ return !!findPair(this.items, key4);
241203
241203
  }
241204
- set(key2, value4) {
241205
- this.add(new Pair.Pair(key2, value4), true);
241204
+ set(key4, value4) {
241205
+ this.add(new Pair.Pair(key4, value4), true);
241206
241206
  }
241207
241207
  toJSON(_6, ctx, Type) {
241208
241208
  const map7 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -241273,28 +241273,28 @@ var require_YAMLSeq = __commonJS((exports) => {
241273
241273
  add(value4) {
241274
241274
  this.items.push(value4);
241275
241275
  }
241276
- delete(key2) {
241277
- const idx = asItemIndex(key2);
241276
+ delete(key4) {
241277
+ const idx = asItemIndex(key4);
241278
241278
  if (typeof idx !== "number")
241279
241279
  return false;
241280
241280
  const del = this.items.splice(idx, 1);
241281
241281
  return del.length > 0;
241282
241282
  }
241283
- get(key2, keepScalar) {
241284
- const idx = asItemIndex(key2);
241283
+ get(key4, keepScalar) {
241284
+ const idx = asItemIndex(key4);
241285
241285
  if (typeof idx !== "number")
241286
241286
  return;
241287
241287
  const it2 = this.items[idx];
241288
241288
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
241289
241289
  }
241290
- has(key2) {
241291
- const idx = asItemIndex(key2);
241290
+ has(key4) {
241291
+ const idx = asItemIndex(key4);
241292
241292
  return typeof idx === "number" && idx < this.items.length;
241293
241293
  }
241294
- set(key2, value4) {
241295
- const idx = asItemIndex(key2);
241294
+ set(key4, value4) {
241295
+ const idx = asItemIndex(key4);
241296
241296
  if (typeof idx !== "number")
241297
- throw new Error(`Expected a valid index, not ${key2}.`);
241297
+ throw new Error(`Expected a valid index, not ${key4}.`);
241298
241298
  const prev = this.items[idx];
241299
241299
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
241300
241300
  prev.value = value4;
@@ -241328,8 +241328,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241328
241328
  let i7 = 0;
241329
241329
  for (let it2 of obj) {
241330
241330
  if (typeof replacer === "function") {
241331
- const key2 = obj instanceof Set ? it2 : String(i7++);
241332
- it2 = replacer.call(obj, key2, it2);
241331
+ const key4 = obj instanceof Set ? it2 : String(i7++);
241332
+ it2 = replacer.call(obj, key4, it2);
241333
241333
  }
241334
241334
  seq.items.push(createNode.createNode(it2, undefined, ctx));
241335
241335
  }
@@ -241337,8 +241337,8 @@ var require_YAMLSeq = __commonJS((exports) => {
241337
241337
  return seq;
241338
241338
  }
241339
241339
  }
241340
- function asItemIndex(key2) {
241341
- let idx = identity2.isScalar(key2) ? key2.value : key2;
241340
+ function asItemIndex(key4) {
241341
+ let idx = identity2.isScalar(key4) ? key4.value : key4;
241342
241342
  if (idx && typeof idx === "string")
241343
241343
  idx = Number(idx);
241344
241344
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -241711,25 +241711,25 @@ ${cn.comment}` : item.comment;
241711
241711
  for (let it2 of iterable) {
241712
241712
  if (typeof replacer === "function")
241713
241713
  it2 = replacer.call(iterable, String(i7++), it2);
241714
- let key2, value4;
241714
+ let key4, value4;
241715
241715
  if (Array.isArray(it2)) {
241716
241716
  if (it2.length === 2) {
241717
- key2 = it2[0];
241717
+ key4 = it2[0];
241718
241718
  value4 = it2[1];
241719
241719
  } else
241720
241720
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
241721
241721
  } else if (it2 && it2 instanceof Object) {
241722
241722
  const keys = Object.keys(it2);
241723
241723
  if (keys.length === 1) {
241724
- key2 = keys[0];
241725
- value4 = it2[key2];
241724
+ key4 = keys[0];
241725
+ value4 = it2[key4];
241726
241726
  } else {
241727
241727
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241728
241728
  }
241729
241729
  } else {
241730
- key2 = it2;
241730
+ key4 = it2;
241731
241731
  }
241732
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
241732
+ pairs2.items.push(Pair.createPair(key4, value4, ctx));
241733
241733
  }
241734
241734
  return pairs2;
241735
241735
  }
@@ -241770,16 +241770,16 @@ var require_omap = __commonJS((exports) => {
241770
241770
  if (ctx?.onCreate)
241771
241771
  ctx.onCreate(map7);
241772
241772
  for (const pair of this.items) {
241773
- let key2, value4;
241773
+ let key4, value4;
241774
241774
  if (identity2.isPair(pair)) {
241775
- key2 = toJS.toJS(pair.key, "", ctx);
241776
- value4 = toJS.toJS(pair.value, key2, ctx);
241775
+ key4 = toJS.toJS(pair.key, "", ctx);
241776
+ value4 = toJS.toJS(pair.value, key4, ctx);
241777
241777
  } else {
241778
- key2 = toJS.toJS(pair, "", ctx);
241778
+ key4 = toJS.toJS(pair, "", ctx);
241779
241779
  }
241780
- if (map7.has(key2))
241780
+ if (map7.has(key4))
241781
241781
  throw new Error("Ordered maps must not include duplicate keys");
241782
- map7.set(key2, value4);
241782
+ map7.set(key4, value4);
241783
241783
  }
241784
241784
  return map7;
241785
241785
  }
@@ -241800,12 +241800,12 @@ var require_omap = __commonJS((exports) => {
241800
241800
  resolve(seq, onError) {
241801
241801
  const pairs$1 = pairs.resolvePairs(seq, onError);
241802
241802
  const seenKeys = [];
241803
- for (const { key: key2 } of pairs$1.items) {
241804
- if (identity2.isScalar(key2)) {
241805
- if (seenKeys.includes(key2.value)) {
241806
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
241803
+ for (const { key: key4 } of pairs$1.items) {
241804
+ if (identity2.isScalar(key4)) {
241805
+ if (seenKeys.includes(key4.value)) {
241806
+ onError(`Ordered maps must not include duplicate keys: ${key4.value}`);
241807
241807
  } else {
241808
- seenKeys.push(key2.value);
241808
+ seenKeys.push(key4.value);
241809
241809
  }
241810
241810
  }
241811
241811
  }
@@ -241979,30 +241979,30 @@ var require_set = __commonJS((exports) => {
241979
241979
  super(schema);
241980
241980
  this.tag = YAMLSet.tag;
241981
241981
  }
241982
- add(key2) {
241982
+ add(key4) {
241983
241983
  let pair;
241984
- if (identity2.isPair(key2))
241985
- pair = key2;
241986
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
241987
- pair = new Pair.Pair(key2.key, null);
241984
+ if (identity2.isPair(key4))
241985
+ pair = key4;
241986
+ else if (key4 && typeof key4 === "object" && "key" in key4 && "value" in key4 && key4.value === null)
241987
+ pair = new Pair.Pair(key4.key, null);
241988
241988
  else
241989
- pair = new Pair.Pair(key2, null);
241989
+ pair = new Pair.Pair(key4, null);
241990
241990
  const prev = YAMLMap.findPair(this.items, pair.key);
241991
241991
  if (!prev)
241992
241992
  this.items.push(pair);
241993
241993
  }
241994
- get(key2, keepPair) {
241995
- const pair = YAMLMap.findPair(this.items, key2);
241994
+ get(key4, keepPair) {
241995
+ const pair = YAMLMap.findPair(this.items, key4);
241996
241996
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241997
241997
  }
241998
- set(key2, value4) {
241998
+ set(key4, value4) {
241999
241999
  if (typeof value4 !== "boolean")
242000
242000
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
242001
- const prev = YAMLMap.findPair(this.items, key2);
242001
+ const prev = YAMLMap.findPair(this.items, key4);
242002
242002
  if (prev && !value4) {
242003
242003
  this.items.splice(this.items.indexOf(prev), 1);
242004
242004
  } else if (!prev && value4) {
242005
- this.items.push(new Pair.Pair(key2));
242005
+ this.items.push(new Pair.Pair(key4));
242006
242006
  }
242007
242007
  }
242008
242008
  toJSON(_6, ctx) {
@@ -242237,7 +242237,7 @@ var require_tags = __commonJS((exports) => {
242237
242237
  if (Array.isArray(customTags))
242238
242238
  tags = [];
242239
242239
  else {
242240
- const keys = Array.from(schemas3.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
242240
+ const keys = Array.from(schemas3.keys()).filter((key4) => key4 !== "yaml11").map((key4) => JSON.stringify(key4)).join(", ");
242241
242241
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
242242
242242
  }
242243
242243
  }
@@ -242253,7 +242253,7 @@ var require_tags = __commonJS((exports) => {
242253
242253
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
242254
242254
  if (!tagObj) {
242255
242255
  const tagName = JSON.stringify(tag);
242256
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
242256
+ const keys = Object.keys(tagsByName).map((key4) => JSON.stringify(key4)).join(", ");
242257
242257
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
242258
242258
  }
242259
242259
  if (!tags2.includes(tagObj))
@@ -242488,13 +242488,13 @@ var require_Document = __commonJS((exports) => {
242488
242488
  setAnchors();
242489
242489
  return node;
242490
242490
  }
242491
- createPair(key2, value4, options = {}) {
242492
- const k6 = this.createNode(key2, null, options);
242491
+ createPair(key4, value4, options = {}) {
242492
+ const k6 = this.createNode(key4, null, options);
242493
242493
  const v7 = this.createNode(value4, null, options);
242494
242494
  return new Pair.Pair(k6, v7);
242495
242495
  }
242496
- delete(key2) {
242497
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
242496
+ delete(key4) {
242497
+ return assertCollection(this.contents) ? this.contents.delete(key4) : false;
242498
242498
  }
242499
242499
  deleteIn(path7) {
242500
242500
  if (Collection.isEmptyPath(path7)) {
@@ -242505,27 +242505,27 @@ var require_Document = __commonJS((exports) => {
242505
242505
  }
242506
242506
  return assertCollection(this.contents) ? this.contents.deleteIn(path7) : false;
242507
242507
  }
242508
- get(key2, keepScalar) {
242509
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
242508
+ get(key4, keepScalar) {
242509
+ return identity2.isCollection(this.contents) ? this.contents.get(key4, keepScalar) : undefined;
242510
242510
  }
242511
242511
  getIn(path7, keepScalar) {
242512
242512
  if (Collection.isEmptyPath(path7))
242513
242513
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
242514
242514
  return identity2.isCollection(this.contents) ? this.contents.getIn(path7, keepScalar) : undefined;
242515
242515
  }
242516
- has(key2) {
242517
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
242516
+ has(key4) {
242517
+ return identity2.isCollection(this.contents) ? this.contents.has(key4) : false;
242518
242518
  }
242519
242519
  hasIn(path7) {
242520
242520
  if (Collection.isEmptyPath(path7))
242521
242521
  return this.contents !== undefined;
242522
242522
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path7) : false;
242523
242523
  }
242524
- set(key2, value4) {
242524
+ set(key4, value4) {
242525
242525
  if (this.contents == null) {
242526
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
242526
+ this.contents = Collection.collectionFromPath(this.schema, [key4], value4);
242527
242527
  } else if (assertCollection(this.contents)) {
242528
- this.contents.set(key2, value4);
242528
+ this.contents.set(key4, value4);
242529
242529
  }
242530
242530
  }
242531
242531
  setIn(path7, value4) {
@@ -242807,25 +242807,25 @@ var require_resolve_props = __commonJS((exports) => {
242807
242807
 
242808
242808
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
242809
242809
  var require_util_contains_newline = __commonJS((exports) => {
242810
- function containsNewline(key2) {
242811
- if (!key2)
242810
+ function containsNewline(key4) {
242811
+ if (!key4)
242812
242812
  return null;
242813
- switch (key2.type) {
242813
+ switch (key4.type) {
242814
242814
  case "alias":
242815
242815
  case "scalar":
242816
242816
  case "double-quoted-scalar":
242817
242817
  case "single-quoted-scalar":
242818
- if (key2.source.includes(`
242818
+ if (key4.source.includes(`
242819
242819
  `))
242820
242820
  return true;
242821
- if (key2.end) {
242822
- for (const st2 of key2.end)
242821
+ if (key4.end) {
242822
+ for (const st2 of key4.end)
242823
242823
  if (st2.type === "newline")
242824
242824
  return true;
242825
242825
  }
242826
242826
  return false;
242827
242827
  case "flow-collection":
242828
- for (const it2 of key2.items) {
242828
+ for (const it2 of key4.items) {
242829
242829
  for (const st2 of it2.start)
242830
242830
  if (st2.type === "newline")
242831
242831
  return true;
@@ -242890,10 +242890,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242890
242890
  let offset = bm.offset;
242891
242891
  let commentEnd = null;
242892
242892
  for (const collItem of bm.items) {
242893
- const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
242893
+ const { start: start3, key: key4, sep: sep5, value: value4 } = collItem;
242894
242894
  const keyProps = resolveProps.resolveProps(start3, {
242895
242895
  indicator: "explicit-key-ind",
242896
- next: key2 ?? sep5?.[0],
242896
+ next: key4 ?? sep5?.[0],
242897
242897
  offset,
242898
242898
  onError,
242899
242899
  parentIndent: bm.indent,
@@ -242901,10 +242901,10 @@ var require_resolve_block_map = __commonJS((exports) => {
242901
242901
  });
242902
242902
  const implicitKey = !keyProps.found;
242903
242903
  if (implicitKey) {
242904
- if (key2) {
242905
- if (key2.type === "block-seq")
242904
+ if (key4) {
242905
+ if (key4.type === "block-seq")
242906
242906
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
242907
- else if ("indent" in key2 && key2.indent !== bm.indent)
242907
+ else if ("indent" in key4 && key4.indent !== bm.indent)
242908
242908
  onError(offset, "BAD_INDENT", startColMsg);
242909
242909
  }
242910
242910
  if (!keyProps.anchor && !keyProps.tag && !sep5) {
@@ -242918,17 +242918,17 @@ var require_resolve_block_map = __commonJS((exports) => {
242918
242918
  }
242919
242919
  continue;
242920
242920
  }
242921
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
242922
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242921
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key4)) {
242922
+ onError(key4 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242923
242923
  }
242924
242924
  } else if (keyProps.found?.indent !== bm.indent) {
242925
242925
  onError(offset, "BAD_INDENT", startColMsg);
242926
242926
  }
242927
242927
  ctx.atKey = true;
242928
242928
  const keyStart = keyProps.end;
242929
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242929
+ const keyNode = key4 ? composeNode(ctx, key4, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242930
242930
  if (ctx.schema.compat)
242931
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
242931
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key4, onError);
242932
242932
  ctx.atKey = false;
242933
242933
  if (utilMapIncludes.mapIncludes(ctx, map7.items, keyNode))
242934
242934
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -242938,7 +242938,7 @@ var require_resolve_block_map = __commonJS((exports) => {
242938
242938
  offset: keyNode.range[2],
242939
242939
  onError,
242940
242940
  parentIndent: bm.indent,
242941
- startOnNewline: !key2 || key2.type === "block-scalar"
242941
+ startOnNewline: !key4 || key4.type === "block-scalar"
242942
242942
  });
242943
242943
  offset = valueProps.end;
242944
242944
  if (valueProps.found) {
@@ -243094,11 +243094,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243094
243094
  let offset = fc.offset + fc.start.source.length;
243095
243095
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
243096
243096
  const collItem = fc.items[i7];
243097
- const { start: start3, key: key2, sep: sep5, value: value4 } = collItem;
243097
+ const { start: start3, key: key4, sep: sep5, value: value4 } = collItem;
243098
243098
  const props = resolveProps.resolveProps(start3, {
243099
243099
  flow: fcName,
243100
243100
  indicator: "explicit-key-ind",
243101
- next: key2 ?? sep5?.[0],
243101
+ next: key4 ?? sep5?.[0],
243102
243102
  offset,
243103
243103
  onError,
243104
243104
  parentIndent: fc.indent,
@@ -243120,8 +243120,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243120
243120
  offset = props.end;
243121
243121
  continue;
243122
243122
  }
243123
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
243124
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243123
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key4))
243124
+ onError(key4, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243125
243125
  }
243126
243126
  if (i7 === 0) {
243127
243127
  if (props.comma)
@@ -243166,8 +243166,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
243166
243166
  } else {
243167
243167
  ctx.atKey = true;
243168
243168
  const keyStart = props.end;
243169
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
- if (isBlock(key2))
243169
+ const keyNode = key4 ? composeNode(ctx, key4, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
+ if (isBlock(key4))
243171
243171
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
243172
243172
  ctx.atKey = false;
243173
243173
  const valueProps = resolveProps.resolveProps(sep5 ?? [], {
@@ -243978,7 +243978,7 @@ var require_composer = __commonJS((exports) => {
243978
243978
  var node_process = __require("process");
243979
243979
  var directives4 = require_directives2();
243980
243980
  var Document = require_Document();
243981
- var errors4 = require_errors3();
243981
+ var errors6 = require_errors3();
243982
243982
  var identity2 = require_identity();
243983
243983
  var composeDoc = require_compose_doc();
243984
243984
  var resolveEnd = require_resolve_end();
@@ -244029,9 +244029,9 @@ var require_composer = __commonJS((exports) => {
244029
244029
  this.onError = (source, code2, message, warning) => {
244030
244030
  const pos = getErrorPos(source);
244031
244031
  if (warning)
244032
- this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
244032
+ this.warnings.push(new errors6.YAMLWarning(pos, code2, message));
244033
244033
  else
244034
- this.errors.push(new errors4.YAMLParseError(pos, code2, message));
244034
+ this.errors.push(new errors6.YAMLParseError(pos, code2, message));
244035
244035
  };
244036
244036
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
244037
244037
  this.options = options;
@@ -244115,7 +244115,7 @@ ${cb}` : comment;
244115
244115
  break;
244116
244116
  case "error": {
244117
244117
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
244118
- const error45 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244118
+ const error45 = new errors6.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244119
244119
  if (this.atDirectives || !this.doc)
244120
244120
  this.errors.push(error45);
244121
244121
  else
@@ -244125,7 +244125,7 @@ ${cb}` : comment;
244125
244125
  case "doc-end": {
244126
244126
  if (!this.doc) {
244127
244127
  const msg = "Unexpected doc-end without preceding document";
244128
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244128
+ this.errors.push(new errors6.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244129
244129
  break;
244130
244130
  }
244131
244131
  this.doc.directives.docEnd = true;
@@ -244140,7 +244140,7 @@ ${end.comment}` : end.comment;
244140
244140
  break;
244141
244141
  }
244142
244142
  default:
244143
- this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244143
+ this.errors.push(new errors6.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244144
244144
  }
244145
244145
  }
244146
244146
  *end(forceDoc = false, endOffset = -1) {
@@ -244166,7 +244166,7 @@ ${end.comment}` : end.comment;
244166
244166
  var require_cst_scalar = __commonJS((exports) => {
244167
244167
  var resolveBlockScalar = require_resolve_block_scalar();
244168
244168
  var resolveFlowScalar = require_resolve_flow_scalar();
244169
- var errors4 = require_errors3();
244169
+ var errors6 = require_errors3();
244170
244170
  var stringifyString = require_stringifyString();
244171
244171
  function resolveAsScalar(token, strict = true, onError) {
244172
244172
  if (token) {
@@ -244175,7 +244175,7 @@ var require_cst_scalar = __commonJS((exports) => {
244175
244175
  if (onError)
244176
244176
  onError(offset, code2, message);
244177
244177
  else
244178
- throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
244178
+ throw new errors6.YAMLParseError([offset, offset + 1], code2, message);
244179
244179
  };
244180
244180
  switch (token.type) {
244181
244181
  case "scalar":
@@ -244289,9 +244289,9 @@ var require_cst_scalar = __commonJS((exports) => {
244289
244289
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
244290
244290
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
244291
244291
  ` });
244292
- for (const key2 of Object.keys(token))
244293
- if (key2 !== "type" && key2 !== "offset")
244294
- delete token[key2];
244292
+ for (const key4 of Object.keys(token))
244293
+ if (key4 !== "type" && key4 !== "offset")
244294
+ delete token[key4];
244295
244295
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
244296
244296
  }
244297
244297
  }
@@ -244340,9 +244340,9 @@ var require_cst_scalar = __commonJS((exports) => {
244340
244340
  default: {
244341
244341
  const indent2 = "indent" in token ? token.indent : -1;
244342
244342
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
244343
- for (const key2 of Object.keys(token))
244344
- if (key2 !== "type" && key2 !== "offset")
244345
- delete token[key2];
244343
+ for (const key4 of Object.keys(token))
244344
+ if (key4 !== "type" && key4 !== "offset")
244345
+ delete token[key4];
244346
244346
  Object.assign(token, { type: type4, indent: indent2, source, end });
244347
244347
  }
244348
244348
  }
@@ -244394,12 +244394,12 @@ var require_cst_stringify = __commonJS((exports) => {
244394
244394
  }
244395
244395
  }
244396
244396
  }
244397
- function stringifyItem({ start: start3, key: key2, sep: sep5, value: value4 }) {
244397
+ function stringifyItem({ start: start3, key: key4, sep: sep5, value: value4 }) {
244398
244398
  let res = "";
244399
244399
  for (const st2 of start3)
244400
244400
  res += st2.source;
244401
- if (key2)
244402
- res += stringifyToken(key2);
244401
+ if (key4)
244402
+ res += stringifyToken(key4);
244403
244403
  if (sep5)
244404
244404
  for (const st2 of sep5)
244405
244405
  res += st2.source;
@@ -245695,7 +245695,7 @@ var require_parser2 = __commonJS((exports) => {
245695
245695
  });
245696
245696
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
245697
245697
  const start4 = getFirstKeyStartProps(it2.start);
245698
- const key2 = it2.key;
245698
+ const key4 = it2.key;
245699
245699
  const sep5 = it2.sep;
245700
245700
  sep5.push(this.sourceToken);
245701
245701
  delete it2.key;
@@ -245704,7 +245704,7 @@ var require_parser2 = __commonJS((exports) => {
245704
245704
  type: "block-map",
245705
245705
  offset: this.offset,
245706
245706
  indent: this.indent,
245707
- items: [{ start: start4, key: key2, sep: sep5 }]
245707
+ items: [{ start: start4, key: key4, sep: sep5 }]
245708
245708
  });
245709
245709
  } else if (start3.length > 0) {
245710
245710
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -246037,7 +246037,7 @@ var require_parser2 = __commonJS((exports) => {
246037
246037
  var require_public_api = __commonJS((exports) => {
246038
246038
  var composer = require_composer();
246039
246039
  var Document = require_Document();
246040
- var errors4 = require_errors3();
246040
+ var errors6 = require_errors3();
246041
246041
  var log = require_log();
246042
246042
  var identity2 = require_identity();
246043
246043
  var lineCounter = require_line_counter();
@@ -246054,8 +246054,8 @@ var require_public_api = __commonJS((exports) => {
246054
246054
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
246055
246055
  if (prettyErrors && lineCounter2)
246056
246056
  for (const doc2 of docs) {
246057
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246058
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246057
+ doc2.errors.forEach(errors6.prettifyError(source, lineCounter2));
246058
+ doc2.warnings.forEach(errors6.prettifyError(source, lineCounter2));
246059
246059
  }
246060
246060
  if (docs.length > 0)
246061
246061
  return docs;
@@ -246070,13 +246070,13 @@ var require_public_api = __commonJS((exports) => {
246070
246070
  if (!doc2)
246071
246071
  doc2 = _doc;
246072
246072
  else if (doc2.options.logLevel !== "silent") {
246073
- doc2.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246073
+ doc2.errors.push(new errors6.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246074
246074
  break;
246075
246075
  }
246076
246076
  }
246077
246077
  if (prettyErrors && lineCounter2) {
246078
- doc2.errors.forEach(errors4.prettifyError(source, lineCounter2));
246079
- doc2.warnings.forEach(errors4.prettifyError(source, lineCounter2));
246078
+ doc2.errors.forEach(errors6.prettifyError(source, lineCounter2));
246079
+ doc2.warnings.forEach(errors6.prettifyError(source, lineCounter2));
246080
246080
  }
246081
246081
  return doc2;
246082
246082
  }
@@ -246144,10 +246144,7 @@ var {
246144
246144
  } = import__.default;
246145
246145
 
246146
246146
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
246147
- var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
246148
- var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
246149
246147
  var isBackspaceKey = (key) => key.name === "backspace";
246150
- var isNumberKey = (key) => "1234567890".includes(key.name);
246151
246148
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
246152
246149
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
246153
246150
  class AbortPromptError extends Error {
@@ -246316,7 +246313,7 @@ function useEffect(cb, depArray) {
246316
246313
  // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
246317
246314
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
246318
246315
 
246319
- // ../../node_modules/@inquirer/figures/dist/esm/index.js
246316
+ // ../../node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
246320
246317
  import process2 from "node:process";
246321
246318
  function isUnicodeSupported() {
246322
246319
  if (process2.platform !== "win32") {
@@ -246681,22 +246678,11 @@ function usePrefix({ status = "idle", theme }) {
246681
246678
  const iconName = status === "loading" ? "idle" : status;
246682
246679
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
246683
246680
  }
246684
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
246685
- function useMemo(fn, dependencies) {
246686
- return withPointer((pointer) => {
246687
- const prev = pointer.get();
246688
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
246689
- const value = fn();
246690
- pointer.set({ value, dependencies });
246691
- return value;
246692
- }
246693
- return prev.value;
246694
- });
246695
- }
246696
246681
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
246697
246682
  function useRef(val) {
246698
246683
  return useState({ current: val })[0];
246699
246684
  }
246685
+
246700
246686
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
246701
246687
  function useKeypress(userHandler) {
246702
246688
  const signal = useRef(userHandler);
@@ -246728,72 +246714,6 @@ function readlineWidth() {
246728
246714
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
246729
246715
  }
246730
246716
 
246731
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
246732
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
246733
- const state = useRef({
246734
- lastPointer: active,
246735
- lastActive: undefined
246736
- });
246737
- const { lastPointer, lastActive } = state.current;
246738
- const middle = Math.floor(pageSize / 2);
246739
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
246740
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
246741
- let pointer = defaultPointerPosition;
246742
- if (renderedLength > pageSize) {
246743
- if (loop) {
246744
- pointer = lastPointer;
246745
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
246746
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
246747
- }
246748
- } else {
246749
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
246750
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
246751
- }
246752
- }
246753
- state.current.lastPointer = pointer;
246754
- state.current.lastActive = active;
246755
- return pointer;
246756
- }
246757
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
246758
- const width = readlineWidth();
246759
- const bound = (num) => (num % items.length + items.length) % items.length;
246760
- const renderedItems = items.map((item, index) => {
246761
- if (item == null)
246762
- return [];
246763
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
246764
- `);
246765
- });
246766
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
246767
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
246768
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
246769
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
246770
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
246771
- const pageBuffer = Array.from({ length: pageSize });
246772
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
246773
- const itemVisited = new Set([active]);
246774
- let bufferPointer = activeItemPosition + activeItem.length;
246775
- let itemPointer = bound(active + 1);
246776
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
246777
- const lines = renderItemAtIndex(itemPointer);
246778
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
246779
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
246780
- itemVisited.add(itemPointer);
246781
- bufferPointer += linesToAdd.length;
246782
- itemPointer = bound(itemPointer + 1);
246783
- }
246784
- bufferPointer = activeItemPosition - 1;
246785
- itemPointer = bound(active - 1);
246786
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
246787
- const lines = renderItemAtIndex(itemPointer);
246788
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
246789
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
246790
- itemVisited.add(itemPointer);
246791
- bufferPointer -= linesToAdd.length;
246792
- itemPointer = bound(itemPointer - 1);
246793
- }
246794
- return pageBuffer.filter((line) => typeof line === "string").join(`
246795
- `);
246796
- }
246797
246717
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
246798
246718
  var import_mute_stream = __toESM(require_lib(), 1);
246799
246719
  import * as readline2 from "node:readline";
@@ -247176,20 +247096,6 @@ function createPrompt(view) {
247176
247096
  };
247177
247097
  return prompt;
247178
247098
  }
247179
- // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
247180
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
247181
- class Separator {
247182
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
247183
- type = "separator";
247184
- constructor(separator) {
247185
- if (separator) {
247186
- this.separator = separator;
247187
- }
247188
- }
247189
- static isSeparator(choice) {
247190
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
247191
- }
247192
- }
247193
247099
  // ../../node_modules/yoctocolors/base.js
247194
247100
  var exports_base = {};
247195
247101
  __export(exports_base, {
@@ -265083,7 +264989,7 @@ function pruneCurrentEnv(currentEnv, env2) {
265083
264989
  var package_default = {
265084
264990
  name: "@settlemint/sdk-cli",
265085
264991
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
265086
- version: "2.5.1-preea3df4a",
264992
+ version: "2.5.1-prf450dfcd",
265087
264993
  type: "module",
265088
264994
  private: false,
265089
264995
  license: "FSL-1.1-MIT",
@@ -265130,14 +265036,14 @@ var package_default = {
265130
265036
  devDependencies: {
265131
265037
  "@commander-js/extra-typings": "14.0.0",
265132
265038
  commander: "14.0.0",
265133
- "@inquirer/confirm": "5.1.13",
265134
- "@inquirer/input": "4.2.0",
265039
+ "@inquirer/confirm": "5.1.14",
265040
+ "@inquirer/input": "4.2.1",
265135
265041
  "@inquirer/password": "4.0.16",
265136
265042
  "@inquirer/select": "4.2.4",
265137
- "@settlemint/sdk-hasura": "2.5.1-preea3df4a",
265138
- "@settlemint/sdk-js": "2.5.1-preea3df4a",
265139
- "@settlemint/sdk-utils": "2.5.1-preea3df4a",
265140
- "@settlemint/sdk-viem": "2.5.1-preea3df4a",
265043
+ "@settlemint/sdk-hasura": "2.5.1-prf450dfcd",
265044
+ "@settlemint/sdk-js": "2.5.1-prf450dfcd",
265045
+ "@settlemint/sdk-utils": "2.5.1-prf450dfcd",
265046
+ "@settlemint/sdk-viem": "2.5.1-prf450dfcd",
265141
265047
  "@types/node": "24.0.15",
265142
265048
  "@types/semver": "7.7.0",
265143
265049
  "@types/which": "3.0.4",
@@ -265146,7 +265052,7 @@ var package_default = {
265146
265052
  "is-in-ci": "1.0.0",
265147
265053
  semver: "7.7.2",
265148
265054
  slugify: "1.6.6",
265149
- viem: "2.32.1",
265055
+ viem: "2.33.0",
265150
265056
  which: "5.0.0",
265151
265057
  yaml: "2.8.0",
265152
265058
  yoctocolors: "2.1.1"
@@ -303349,14 +303255,853 @@ async function subgraphNamePrompt({
303349
303255
  return sanitizeName(subgraphName);
303350
303256
  }
303351
303257
 
303352
- // ../../node_modules/@inquirer/select/dist/esm/index.js
303353
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
303258
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
303259
+ var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
303260
+ var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
303261
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
303262
+ var isNumberKey = (key2) => "1234567890".includes(key2.name);
303263
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
303264
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
303265
+ class AbortPromptError2 extends Error {
303266
+ name = "AbortPromptError";
303267
+ message = "Prompt was aborted";
303268
+ constructor(options) {
303269
+ super();
303270
+ this.cause = options?.cause;
303271
+ }
303272
+ }
303273
+
303274
+ class CancelPromptError2 extends Error {
303275
+ name = "CancelPromptError";
303276
+ message = "Prompt was canceled";
303277
+ }
303278
+
303279
+ class ExitPromptError2 extends Error {
303280
+ name = "ExitPromptError";
303281
+ }
303282
+
303283
+ class HookError2 extends Error {
303284
+ name = "HookError";
303285
+ }
303286
+
303287
+ class ValidationError2 extends Error {
303288
+ name = "ValidationError";
303289
+ }
303290
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303291
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
303292
+
303293
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
303294
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
303295
+ var hookStorage2 = new AsyncLocalStorage2;
303296
+ function createStore2(rl) {
303297
+ const store = {
303298
+ rl,
303299
+ hooks: [],
303300
+ hooksCleanup: [],
303301
+ hooksEffect: [],
303302
+ index: 0,
303303
+ handleChange() {}
303304
+ };
303305
+ return store;
303306
+ }
303307
+ function withHooks2(rl, cb) {
303308
+ const store = createStore2(rl);
303309
+ return hookStorage2.run(store, () => {
303310
+ function cycle(render) {
303311
+ store.handleChange = () => {
303312
+ store.index = 0;
303313
+ render();
303314
+ };
303315
+ store.handleChange();
303316
+ }
303317
+ return cb(cycle);
303318
+ });
303319
+ }
303320
+ function getStore2() {
303321
+ const store = hookStorage2.getStore();
303322
+ if (!store) {
303323
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
303324
+ }
303325
+ return store;
303326
+ }
303327
+ function readline3() {
303328
+ return getStore2().rl;
303329
+ }
303330
+ function withUpdates2(fn) {
303331
+ const wrapped = (...args) => {
303332
+ const store = getStore2();
303333
+ let shouldUpdate = false;
303334
+ const oldHandleChange = store.handleChange;
303335
+ store.handleChange = () => {
303336
+ shouldUpdate = true;
303337
+ };
303338
+ const returnValue = fn(...args);
303339
+ if (shouldUpdate) {
303340
+ oldHandleChange();
303341
+ }
303342
+ store.handleChange = oldHandleChange;
303343
+ return returnValue;
303344
+ };
303345
+ return AsyncResource4.bind(wrapped);
303346
+ }
303347
+ function withPointer2(cb) {
303348
+ const store = getStore2();
303349
+ const { index } = store;
303350
+ const pointer = {
303351
+ get() {
303352
+ return store.hooks[index];
303353
+ },
303354
+ set(value4) {
303355
+ store.hooks[index] = value4;
303356
+ },
303357
+ initialized: index in store.hooks
303358
+ };
303359
+ const returnValue = cb(pointer);
303360
+ store.index++;
303361
+ return returnValue;
303362
+ }
303363
+ function handleChange2() {
303364
+ getStore2().handleChange();
303365
+ }
303366
+ var effectScheduler2 = {
303367
+ queue(cb) {
303368
+ const store = getStore2();
303369
+ const { index } = store;
303370
+ store.hooksEffect.push(() => {
303371
+ store.hooksCleanup[index]?.();
303372
+ const cleanFn = cb(readline3());
303373
+ if (cleanFn != null && typeof cleanFn !== "function") {
303374
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
303375
+ }
303376
+ store.hooksCleanup[index] = cleanFn;
303377
+ });
303378
+ },
303379
+ run() {
303380
+ const store = getStore2();
303381
+ withUpdates2(() => {
303382
+ store.hooksEffect.forEach((effect) => {
303383
+ effect();
303384
+ });
303385
+ store.hooksEffect.length = 0;
303386
+ })();
303387
+ },
303388
+ clearAll() {
303389
+ const store = getStore2();
303390
+ store.hooksCleanup.forEach((cleanFn) => {
303391
+ cleanFn?.();
303392
+ });
303393
+ store.hooksEffect.length = 0;
303394
+ store.hooksCleanup.length = 0;
303395
+ }
303396
+ };
303397
+
303398
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
303399
+ function useState2(defaultValue) {
303400
+ return withPointer2((pointer) => {
303401
+ const setState = AsyncResource5.bind(function setState(newValue) {
303402
+ if (pointer.get() !== newValue) {
303403
+ pointer.set(newValue);
303404
+ handleChange2();
303405
+ }
303406
+ });
303407
+ if (pointer.initialized) {
303408
+ return [pointer.get(), setState];
303409
+ }
303410
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
303411
+ pointer.set(value4);
303412
+ return [value4, setState];
303413
+ });
303414
+ }
303415
+
303416
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
303417
+ function useEffect2(cb, depArray) {
303418
+ withPointer2((pointer) => {
303419
+ const oldDeps = pointer.get();
303420
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
303421
+ if (hasChanged) {
303422
+ effectScheduler2.queue(cb);
303423
+ }
303424
+ pointer.set(depArray);
303425
+ });
303426
+ }
303427
+
303428
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
303429
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
303430
+
303431
+ // ../../node_modules/@inquirer/figures/dist/esm/index.js
303432
+ import process8 from "node:process";
303433
+ function isUnicodeSupported3() {
303434
+ if (process8.platform !== "win32") {
303435
+ return process8.env["TERM"] !== "linux";
303436
+ }
303437
+ 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";
303438
+ }
303439
+ var common2 = {
303440
+ circleQuestionMark: "(?)",
303441
+ questionMarkPrefix: "(?)",
303442
+ square: "█",
303443
+ squareDarkShade: "▓",
303444
+ squareMediumShade: "▒",
303445
+ squareLightShade: "░",
303446
+ squareTop: "▀",
303447
+ squareBottom: "▄",
303448
+ squareLeft: "▌",
303449
+ squareRight: "▐",
303450
+ squareCenter: "■",
303451
+ bullet: "●",
303452
+ dot: "․",
303453
+ ellipsis: "…",
303454
+ pointerSmall: "›",
303455
+ triangleUp: "▲",
303456
+ triangleUpSmall: "▴",
303457
+ triangleDown: "▼",
303458
+ triangleDownSmall: "▾",
303459
+ triangleLeftSmall: "◂",
303460
+ triangleRightSmall: "▸",
303461
+ home: "⌂",
303462
+ heart: "♥",
303463
+ musicNote: "♪",
303464
+ musicNoteBeamed: "♫",
303465
+ arrowUp: "↑",
303466
+ arrowDown: "↓",
303467
+ arrowLeft: "←",
303468
+ arrowRight: "→",
303469
+ arrowLeftRight: "↔",
303470
+ arrowUpDown: "↕",
303471
+ almostEqual: "≈",
303472
+ notEqual: "≠",
303473
+ lessOrEqual: "≤",
303474
+ greaterOrEqual: "≥",
303475
+ identical: "≡",
303476
+ infinity: "∞",
303477
+ subscriptZero: "₀",
303478
+ subscriptOne: "₁",
303479
+ subscriptTwo: "₂",
303480
+ subscriptThree: "₃",
303481
+ subscriptFour: "₄",
303482
+ subscriptFive: "₅",
303483
+ subscriptSix: "₆",
303484
+ subscriptSeven: "₇",
303485
+ subscriptEight: "₈",
303486
+ subscriptNine: "₉",
303487
+ oneHalf: "½",
303488
+ oneThird: "⅓",
303489
+ oneQuarter: "¼",
303490
+ oneFifth: "⅕",
303491
+ oneSixth: "⅙",
303492
+ oneEighth: "⅛",
303493
+ twoThirds: "⅔",
303494
+ twoFifths: "⅖",
303495
+ threeQuarters: "¾",
303496
+ threeFifths: "⅗",
303497
+ threeEighths: "⅜",
303498
+ fourFifths: "⅘",
303499
+ fiveSixths: "⅚",
303500
+ fiveEighths: "⅝",
303501
+ sevenEighths: "⅞",
303502
+ line: "─",
303503
+ lineBold: "━",
303504
+ lineDouble: "═",
303505
+ lineDashed0: "┄",
303506
+ lineDashed1: "┅",
303507
+ lineDashed2: "┈",
303508
+ lineDashed3: "┉",
303509
+ lineDashed4: "╌",
303510
+ lineDashed5: "╍",
303511
+ lineDashed6: "╴",
303512
+ lineDashed7: "╶",
303513
+ lineDashed8: "╸",
303514
+ lineDashed9: "╺",
303515
+ lineDashed10: "╼",
303516
+ lineDashed11: "╾",
303517
+ lineDashed12: "−",
303518
+ lineDashed13: "–",
303519
+ lineDashed14: "‐",
303520
+ lineDashed15: "⁃",
303521
+ lineVertical: "│",
303522
+ lineVerticalBold: "┃",
303523
+ lineVerticalDouble: "║",
303524
+ lineVerticalDashed0: "┆",
303525
+ lineVerticalDashed1: "┇",
303526
+ lineVerticalDashed2: "┊",
303527
+ lineVerticalDashed3: "┋",
303528
+ lineVerticalDashed4: "╎",
303529
+ lineVerticalDashed5: "╏",
303530
+ lineVerticalDashed6: "╵",
303531
+ lineVerticalDashed7: "╷",
303532
+ lineVerticalDashed8: "╹",
303533
+ lineVerticalDashed9: "╻",
303534
+ lineVerticalDashed10: "╽",
303535
+ lineVerticalDashed11: "╿",
303536
+ lineDownLeft: "┐",
303537
+ lineDownLeftArc: "╮",
303538
+ lineDownBoldLeftBold: "┓",
303539
+ lineDownBoldLeft: "┒",
303540
+ lineDownLeftBold: "┑",
303541
+ lineDownDoubleLeftDouble: "╗",
303542
+ lineDownDoubleLeft: "╖",
303543
+ lineDownLeftDouble: "╕",
303544
+ lineDownRight: "┌",
303545
+ lineDownRightArc: "╭",
303546
+ lineDownBoldRightBold: "┏",
303547
+ lineDownBoldRight: "┎",
303548
+ lineDownRightBold: "┍",
303549
+ lineDownDoubleRightDouble: "╔",
303550
+ lineDownDoubleRight: "╓",
303551
+ lineDownRightDouble: "╒",
303552
+ lineUpLeft: "┘",
303553
+ lineUpLeftArc: "╯",
303554
+ lineUpBoldLeftBold: "┛",
303555
+ lineUpBoldLeft: "┚",
303556
+ lineUpLeftBold: "┙",
303557
+ lineUpDoubleLeftDouble: "╝",
303558
+ lineUpDoubleLeft: "╜",
303559
+ lineUpLeftDouble: "╛",
303560
+ lineUpRight: "└",
303561
+ lineUpRightArc: "╰",
303562
+ lineUpBoldRightBold: "┗",
303563
+ lineUpBoldRight: "┖",
303564
+ lineUpRightBold: "┕",
303565
+ lineUpDoubleRightDouble: "╚",
303566
+ lineUpDoubleRight: "╙",
303567
+ lineUpRightDouble: "╘",
303568
+ lineUpDownLeft: "┤",
303569
+ lineUpBoldDownBoldLeftBold: "┫",
303570
+ lineUpBoldDownBoldLeft: "┨",
303571
+ lineUpDownLeftBold: "┥",
303572
+ lineUpBoldDownLeftBold: "┩",
303573
+ lineUpDownBoldLeftBold: "┪",
303574
+ lineUpDownBoldLeft: "┧",
303575
+ lineUpBoldDownLeft: "┦",
303576
+ lineUpDoubleDownDoubleLeftDouble: "╣",
303577
+ lineUpDoubleDownDoubleLeft: "╢",
303578
+ lineUpDownLeftDouble: "╡",
303579
+ lineUpDownRight: "├",
303580
+ lineUpBoldDownBoldRightBold: "┣",
303581
+ lineUpBoldDownBoldRight: "┠",
303582
+ lineUpDownRightBold: "┝",
303583
+ lineUpBoldDownRightBold: "┡",
303584
+ lineUpDownBoldRightBold: "┢",
303585
+ lineUpDownBoldRight: "┟",
303586
+ lineUpBoldDownRight: "┞",
303587
+ lineUpDoubleDownDoubleRightDouble: "╠",
303588
+ lineUpDoubleDownDoubleRight: "╟",
303589
+ lineUpDownRightDouble: "╞",
303590
+ lineDownLeftRight: "┬",
303591
+ lineDownBoldLeftBoldRightBold: "┳",
303592
+ lineDownLeftBoldRightBold: "┯",
303593
+ lineDownBoldLeftRight: "┰",
303594
+ lineDownBoldLeftBoldRight: "┱",
303595
+ lineDownBoldLeftRightBold: "┲",
303596
+ lineDownLeftRightBold: "┮",
303597
+ lineDownLeftBoldRight: "┭",
303598
+ lineDownDoubleLeftDoubleRightDouble: "╦",
303599
+ lineDownDoubleLeftRight: "╥",
303600
+ lineDownLeftDoubleRightDouble: "╤",
303601
+ lineUpLeftRight: "┴",
303602
+ lineUpBoldLeftBoldRightBold: "┻",
303603
+ lineUpLeftBoldRightBold: "┷",
303604
+ lineUpBoldLeftRight: "┸",
303605
+ lineUpBoldLeftBoldRight: "┹",
303606
+ lineUpBoldLeftRightBold: "┺",
303607
+ lineUpLeftRightBold: "┶",
303608
+ lineUpLeftBoldRight: "┵",
303609
+ lineUpDoubleLeftDoubleRightDouble: "╩",
303610
+ lineUpDoubleLeftRight: "╨",
303611
+ lineUpLeftDoubleRightDouble: "╧",
303612
+ lineUpDownLeftRight: "┼",
303613
+ lineUpBoldDownBoldLeftBoldRightBold: "╋",
303614
+ lineUpDownBoldLeftBoldRightBold: "╈",
303615
+ lineUpBoldDownLeftBoldRightBold: "╇",
303616
+ lineUpBoldDownBoldLeftRightBold: "╊",
303617
+ lineUpBoldDownBoldLeftBoldRight: "╉",
303618
+ lineUpBoldDownLeftRight: "╀",
303619
+ lineUpDownBoldLeftRight: "╁",
303620
+ lineUpDownLeftBoldRight: "┽",
303621
+ lineUpDownLeftRightBold: "┾",
303622
+ lineUpBoldDownBoldLeftRight: "╂",
303623
+ lineUpDownLeftBoldRightBold: "┿",
303624
+ lineUpBoldDownLeftBoldRight: "╃",
303625
+ lineUpBoldDownLeftRightBold: "╄",
303626
+ lineUpDownBoldLeftBoldRight: "╅",
303627
+ lineUpDownBoldLeftRightBold: "╆",
303628
+ lineUpDoubleDownDoubleLeftDoubleRightDouble: "╬",
303629
+ lineUpDoubleDownDoubleLeftRight: "╫",
303630
+ lineUpDownLeftDoubleRightDouble: "╪",
303631
+ lineCross: "╳",
303632
+ lineBackslash: "╲",
303633
+ lineSlash: "╱"
303634
+ };
303635
+ var specialMainSymbols2 = {
303636
+ tick: "✔",
303637
+ info: "ℹ",
303638
+ warning: "⚠",
303639
+ cross: "✘",
303640
+ squareSmall: "◻",
303641
+ squareSmallFilled: "◼",
303642
+ circle: "◯",
303643
+ circleFilled: "◉",
303644
+ circleDotted: "◌",
303645
+ circleDouble: "◎",
303646
+ circleCircle: "ⓞ",
303647
+ circleCross: "ⓧ",
303648
+ circlePipe: "Ⓘ",
303649
+ radioOn: "◉",
303650
+ radioOff: "◯",
303651
+ checkboxOn: "☒",
303652
+ checkboxOff: "☐",
303653
+ checkboxCircleOn: "ⓧ",
303654
+ checkboxCircleOff: "Ⓘ",
303655
+ pointer: "❯",
303656
+ triangleUpOutline: "△",
303657
+ triangleLeft: "◀",
303658
+ triangleRight: "▶",
303659
+ lozenge: "◆",
303660
+ lozengeOutline: "◇",
303661
+ hamburger: "☰",
303662
+ smiley: "㋡",
303663
+ mustache: "෴",
303664
+ star: "★",
303665
+ play: "▶",
303666
+ nodejs: "⬢",
303667
+ oneSeventh: "⅐",
303668
+ oneNinth: "⅑",
303669
+ oneTenth: "⅒"
303670
+ };
303671
+ var specialFallbackSymbols2 = {
303672
+ tick: "√",
303673
+ info: "i",
303674
+ warning: "‼",
303675
+ cross: "×",
303676
+ squareSmall: "□",
303677
+ squareSmallFilled: "■",
303678
+ circle: "( )",
303679
+ circleFilled: "(*)",
303680
+ circleDotted: "( )",
303681
+ circleDouble: "( )",
303682
+ circleCircle: "(○)",
303683
+ circleCross: "(×)",
303684
+ circlePipe: "(│)",
303685
+ radioOn: "(*)",
303686
+ radioOff: "( )",
303687
+ checkboxOn: "[×]",
303688
+ checkboxOff: "[ ]",
303689
+ checkboxCircleOn: "(×)",
303690
+ checkboxCircleOff: "( )",
303691
+ pointer: ">",
303692
+ triangleUpOutline: "∆",
303693
+ triangleLeft: "◄",
303694
+ triangleRight: "►",
303695
+ lozenge: "♦",
303696
+ lozengeOutline: "◊",
303697
+ hamburger: "≡",
303698
+ smiley: "☺",
303699
+ mustache: "┌─┐",
303700
+ star: "✶",
303701
+ play: "►",
303702
+ nodejs: "♦",
303703
+ oneSeventh: "1/7",
303704
+ oneNinth: "1/9",
303705
+ oneTenth: "1/10"
303706
+ };
303707
+ var mainSymbols2 = { ...common2, ...specialMainSymbols2 };
303708
+ var fallbackSymbols2 = {
303709
+ ...common2,
303710
+ ...specialFallbackSymbols2
303711
+ };
303712
+ var shouldUseMain2 = isUnicodeSupported3();
303713
+ var figures2 = shouldUseMain2 ? mainSymbols2 : fallbackSymbols2;
303714
+ var esm_default3 = figures2;
303715
+ var replacements2 = Object.entries(specialMainSymbols2);
303716
+
303717
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
303718
+ var defaultTheme2 = {
303719
+ prefix: {
303720
+ idle: import_yoctocolors_cjs2.default.blue("?"),
303721
+ done: import_yoctocolors_cjs2.default.green(esm_default3.tick)
303722
+ },
303723
+ spinner: {
303724
+ interval: 80,
303725
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
303726
+ },
303727
+ style: {
303728
+ answer: import_yoctocolors_cjs2.default.cyan,
303729
+ message: import_yoctocolors_cjs2.default.bold,
303730
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
303731
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
303732
+ help: import_yoctocolors_cjs2.default.dim,
303733
+ highlight: import_yoctocolors_cjs2.default.cyan,
303734
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
303735
+ }
303736
+ };
303737
+
303738
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
303739
+ function isPlainObject6(value4) {
303740
+ if (typeof value4 !== "object" || value4 === null)
303741
+ return false;
303742
+ let proto = value4;
303743
+ while (Object.getPrototypeOf(proto) !== null) {
303744
+ proto = Object.getPrototypeOf(proto);
303745
+ }
303746
+ return Object.getPrototypeOf(value4) === proto;
303747
+ }
303748
+ function deepMerge3(...objects) {
303749
+ const output = {};
303750
+ for (const obj of objects) {
303751
+ for (const [key2, value4] of Object.entries(obj)) {
303752
+ const prevValue = output[key2];
303753
+ output[key2] = isPlainObject6(prevValue) && isPlainObject6(value4) ? deepMerge3(prevValue, value4) : value4;
303754
+ }
303755
+ }
303756
+ return output;
303757
+ }
303758
+ function makeTheme2(...themes) {
303759
+ const themesToMerge = [
303760
+ defaultTheme2,
303761
+ ...themes.filter((theme) => theme != null)
303762
+ ];
303763
+ return deepMerge3(...themesToMerge);
303764
+ }
303765
+
303766
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
303767
+ function usePrefix2({ status = "idle", theme }) {
303768
+ const [showLoader, setShowLoader] = useState2(false);
303769
+ const [tick, setTick] = useState2(0);
303770
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
303771
+ useEffect2(() => {
303772
+ if (status === "loading") {
303773
+ let tickInterval;
303774
+ let inc = -1;
303775
+ const delayTimeout = setTimeout(() => {
303776
+ setShowLoader(true);
303777
+ tickInterval = setInterval(() => {
303778
+ inc = inc + 1;
303779
+ setTick(inc % spinner2.frames.length);
303780
+ }, spinner2.interval);
303781
+ }, 300);
303782
+ return () => {
303783
+ clearTimeout(delayTimeout);
303784
+ clearInterval(tickInterval);
303785
+ };
303786
+ } else {
303787
+ setShowLoader(false);
303788
+ }
303789
+ }, [status]);
303790
+ if (showLoader) {
303791
+ return spinner2.frames[tick];
303792
+ }
303793
+ const iconName = status === "loading" ? "idle" : status;
303794
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
303795
+ }
303796
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
303797
+ function useMemo(fn, dependencies) {
303798
+ return withPointer2((pointer) => {
303799
+ const prev = pointer.get();
303800
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
303801
+ const value4 = fn();
303802
+ pointer.set({ value: value4, dependencies });
303803
+ return value4;
303804
+ }
303805
+ return prev.value;
303806
+ });
303807
+ }
303808
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
303809
+ function useRef2(val) {
303810
+ return useState2({ current: val })[0];
303811
+ }
303812
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
303813
+ function useKeypress2(userHandler) {
303814
+ const signal = useRef2(userHandler);
303815
+ signal.current = userHandler;
303816
+ useEffect2((rl) => {
303817
+ let ignore = false;
303818
+ const handler = withUpdates2((_input, event) => {
303819
+ if (ignore)
303820
+ return;
303821
+ signal.current(event, rl);
303822
+ });
303823
+ rl.input.on("keypress", handler);
303824
+ return () => {
303825
+ ignore = true;
303826
+ rl.input.removeListener("keypress", handler);
303827
+ };
303828
+ }, []);
303829
+ }
303830
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
303831
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
303832
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
303833
+ function breakLines2(content, width) {
303834
+ return content.split(`
303835
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
303836
+ `).map((str) => str.trimEnd())).join(`
303837
+ `);
303838
+ }
303839
+ function readlineWidth2() {
303840
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
303841
+ }
303842
+
303843
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
303844
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
303845
+ const state = useRef2({
303846
+ lastPointer: active,
303847
+ lastActive: undefined
303848
+ });
303849
+ const { lastPointer, lastActive } = state.current;
303850
+ const middle = Math.floor(pageSize / 2);
303851
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
303852
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
303853
+ let pointer = defaultPointerPosition;
303854
+ if (renderedLength > pageSize) {
303855
+ if (loop) {
303856
+ pointer = lastPointer;
303857
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
303858
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
303859
+ }
303860
+ } else {
303861
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
303862
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
303863
+ }
303864
+ }
303865
+ state.current.lastPointer = pointer;
303866
+ state.current.lastActive = active;
303867
+ return pointer;
303868
+ }
303869
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
303870
+ const width = readlineWidth2();
303871
+ const bound = (num) => (num % items.length + items.length) % items.length;
303872
+ const renderedItems = items.map((item, index) => {
303873
+ if (item == null)
303874
+ return [];
303875
+ return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
303876
+ `);
303877
+ });
303878
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
303879
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
303880
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
303881
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
303882
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
303883
+ const pageBuffer = Array.from({ length: pageSize });
303884
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
303885
+ const itemVisited = new Set([active]);
303886
+ let bufferPointer = activeItemPosition + activeItem.length;
303887
+ let itemPointer = bound(active + 1);
303888
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
303889
+ const lines = renderItemAtIndex(itemPointer);
303890
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
303891
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
303892
+ itemVisited.add(itemPointer);
303893
+ bufferPointer += linesToAdd.length;
303894
+ itemPointer = bound(itemPointer + 1);
303895
+ }
303896
+ bufferPointer = activeItemPosition - 1;
303897
+ itemPointer = bound(active - 1);
303898
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
303899
+ const lines = renderItemAtIndex(itemPointer);
303900
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
303901
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
303902
+ itemVisited.add(itemPointer);
303903
+ bufferPointer -= linesToAdd.length;
303904
+ itemPointer = bound(itemPointer - 1);
303905
+ }
303906
+ return pageBuffer.filter((line) => typeof line === "string").join(`
303907
+ `);
303908
+ }
303909
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303910
+ var import_mute_stream2 = __toESM(require_lib(), 1);
303911
+ import * as readline4 from "node:readline";
303912
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
303913
+
303914
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
303354
303915
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
303916
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
303917
+ var height2 = (content) => content.split(`
303918
+ `).length;
303919
+ var lastLine2 = (content) => content.split(`
303920
+ `).pop() ?? "";
303921
+ function cursorDown2(n6) {
303922
+ return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
303923
+ }
303924
+
303925
+ class ScreenManager2 {
303926
+ height = 0;
303927
+ extraLinesUnderPrompt = 0;
303928
+ cursorPos;
303929
+ rl;
303930
+ constructor(rl) {
303931
+ this.rl = rl;
303932
+ this.cursorPos = rl.getCursorPos();
303933
+ }
303934
+ write(content) {
303935
+ this.rl.output.unmute();
303936
+ this.rl.output.write(content);
303937
+ this.rl.output.mute();
303938
+ }
303939
+ render(content, bottomContent = "") {
303940
+ const promptLine = lastLine2(content);
303941
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
303942
+ let prompt = rawPromptLine;
303943
+ if (this.rl.line.length > 0) {
303944
+ prompt = prompt.slice(0, -this.rl.line.length);
303945
+ }
303946
+ this.rl.setPrompt(prompt);
303947
+ this.cursorPos = this.rl.getCursorPos();
303948
+ const width = readlineWidth2();
303949
+ content = breakLines2(content, width);
303950
+ bottomContent = breakLines2(bottomContent, width);
303951
+ if (rawPromptLine.length % width === 0) {
303952
+ content += `
303953
+ `;
303954
+ }
303955
+ let output = content + (bottomContent ? `
303956
+ ` + bottomContent : "");
303957
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
303958
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
303959
+ if (bottomContentHeight > 0)
303960
+ output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
303961
+ output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
303962
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
303963
+ this.extraLinesUnderPrompt = bottomContentHeight;
303964
+ this.height = height2(output);
303965
+ }
303966
+ checkCursorPos() {
303967
+ const cursorPos = this.rl.getCursorPos();
303968
+ if (cursorPos.cols !== this.cursorPos.cols) {
303969
+ this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
303970
+ this.cursorPos = cursorPos;
303971
+ }
303972
+ }
303973
+ done({ clearContent }) {
303974
+ this.rl.setPrompt("");
303975
+ let output = cursorDown2(this.extraLinesUnderPrompt);
303976
+ output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
303977
+ `;
303978
+ output += import_ansi_escapes2.default.cursorShow;
303979
+ this.write(output);
303980
+ this.rl.close();
303981
+ }
303982
+ }
303983
+
303984
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
303985
+ class PromisePolyfill2 extends Promise {
303986
+ static withResolver() {
303987
+ let resolve5;
303988
+ let reject;
303989
+ const promise4 = new Promise((res, rej) => {
303990
+ resolve5 = res;
303991
+ reject = rej;
303992
+ });
303993
+ return { promise: promise4, resolve: resolve5, reject };
303994
+ }
303995
+ }
303996
+
303997
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
303998
+ function getCallSites2() {
303999
+ const _prepareStackTrace = Error.prepareStackTrace;
304000
+ let result = [];
304001
+ try {
304002
+ Error.prepareStackTrace = (_5, callSites) => {
304003
+ const callSitesWithoutCurrent = callSites.slice(1);
304004
+ result = callSitesWithoutCurrent;
304005
+ return callSitesWithoutCurrent;
304006
+ };
304007
+ new Error().stack;
304008
+ } catch {
304009
+ return result;
304010
+ }
304011
+ Error.prepareStackTrace = _prepareStackTrace;
304012
+ return result;
304013
+ }
304014
+ function createPrompt2(view) {
304015
+ const callSites = getCallSites2();
304016
+ const prompt = (config4, context = {}) => {
304017
+ const { input = process.stdin, signal } = context;
304018
+ const cleanups = new Set;
304019
+ const output = new import_mute_stream2.default;
304020
+ output.pipe(context.output ?? process.stdout);
304021
+ const rl = readline4.createInterface({
304022
+ terminal: true,
304023
+ input,
304024
+ output
304025
+ });
304026
+ const screen = new ScreenManager2(rl);
304027
+ const { promise: promise4, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
304028
+ const cancel3 = () => reject(new CancelPromptError2);
304029
+ if (signal) {
304030
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
304031
+ if (signal.aborted) {
304032
+ abort();
304033
+ return Object.assign(promise4, { cancel: cancel3 });
304034
+ }
304035
+ signal.addEventListener("abort", abort);
304036
+ cleanups.add(() => signal.removeEventListener("abort", abort));
304037
+ }
304038
+ cleanups.add(onExit((code2, signal2) => {
304039
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
304040
+ }));
304041
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
304042
+ rl.on("SIGINT", sigint);
304043
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
304044
+ const checkCursorPos = () => screen.checkCursorPos();
304045
+ rl.input.on("keypress", checkCursorPos);
304046
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
304047
+ return withHooks2(rl, (cycle) => {
304048
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
304049
+ rl.on("close", hooksCleanup);
304050
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
304051
+ cycle(() => {
304052
+ try {
304053
+ const nextView = view(config4, (value4) => {
304054
+ setImmediate(() => resolve5(value4));
304055
+ });
304056
+ if (nextView === undefined) {
304057
+ const callerFilename = callSites[1]?.getFileName();
304058
+ throw new Error(`Prompt functions must return a string.
304059
+ at ${callerFilename}`);
304060
+ }
304061
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
304062
+ screen.render(content, bottomContent);
304063
+ effectScheduler2.run();
304064
+ } catch (error44) {
304065
+ reject(error44);
304066
+ }
304067
+ });
304068
+ return Object.assign(promise4.then((answer) => {
304069
+ effectScheduler2.clearAll();
304070
+ return answer;
304071
+ }, (error44) => {
304072
+ effectScheduler2.clearAll();
304073
+ throw error44;
304074
+ }).finally(() => {
304075
+ cleanups.forEach((cleanup) => cleanup());
304076
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
304077
+ output.end();
304078
+ }).then(() => promise4), { cancel: cancel3 });
304079
+ });
304080
+ };
304081
+ return prompt;
304082
+ }
304083
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
304084
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
304085
+ class Separator {
304086
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default3.line));
304087
+ type = "separator";
304088
+ constructor(separator) {
304089
+ if (separator) {
304090
+ this.separator = separator;
304091
+ }
304092
+ }
304093
+ static isSeparator(choice) {
304094
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
304095
+ }
304096
+ }
304097
+ // ../../node_modules/@inquirer/select/dist/esm/index.js
304098
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
304099
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
303355
304100
  var selectTheme = {
303356
- icon: { cursor: esm_default.pointer },
304101
+ icon: { cursor: esm_default3.pointer },
303357
304102
  style: {
303358
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
303359
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
304103
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
304104
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
303360
304105
  },
303361
304106
  helpMode: "auto",
303362
304107
  indexMode: "hidden"
@@ -303389,19 +304134,19 @@ function normalizeChoices(choices) {
303389
304134
  return normalizedChoice;
303390
304135
  });
303391
304136
  }
303392
- var esm_default3 = createPrompt((config4, done) => {
304137
+ var esm_default4 = createPrompt2((config4, done) => {
303393
304138
  const { loop = true, pageSize = 7 } = config4;
303394
- const firstRender = useRef(true);
303395
- const theme = makeTheme(selectTheme, config4.theme);
303396
- const [status, setStatus] = useState("idle");
303397
- const prefix = usePrefix({ status, theme });
303398
- const searchTimeoutRef = useRef();
304139
+ const firstRender = useRef2(true);
304140
+ const theme = makeTheme2(selectTheme, config4.theme);
304141
+ const [status, setStatus] = useState2("idle");
304142
+ const prefix = usePrefix2({ status, theme });
304143
+ const searchTimeoutRef = useRef2();
303399
304144
  const items = useMemo(() => normalizeChoices(config4.choices), [config4.choices]);
303400
304145
  const bounds = useMemo(() => {
303401
304146
  const first = items.findIndex(isSelectable);
303402
304147
  const last = items.findLastIndex(isSelectable);
303403
304148
  if (first === -1) {
303404
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
304149
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
303405
304150
  }
303406
304151
  return { first, last };
303407
304152
  }, [items]);
@@ -303410,24 +304155,24 @@ var esm_default3 = createPrompt((config4, done) => {
303410
304155
  return -1;
303411
304156
  return items.findIndex((item) => isSelectable(item) && item.value === config4.default);
303412
304157
  }, [config4.default, items]);
303413
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
304158
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
303414
304159
  const selectedChoice = items[active];
303415
- useKeypress((key2, rl) => {
304160
+ useKeypress2((key3, rl) => {
303416
304161
  clearTimeout(searchTimeoutRef.current);
303417
- if (isEnterKey(key2)) {
304162
+ if (isEnterKey2(key3)) {
303418
304163
  setStatus("done");
303419
304164
  done(selectedChoice.value);
303420
- } else if (isUpKey(key2) || isDownKey(key2)) {
304165
+ } else if (isUpKey(key3) || isDownKey(key3)) {
303421
304166
  rl.clearLine(0);
303422
- if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
303423
- const offset = isUpKey(key2) ? -1 : 1;
304167
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
304168
+ const offset = isUpKey(key3) ? -1 : 1;
303424
304169
  let next = active;
303425
304170
  do {
303426
304171
  next = (next + offset + items.length) % items.length;
303427
304172
  } while (!isSelectable(items[next]));
303428
304173
  setActive(next);
303429
304174
  }
303430
- } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
304175
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
303431
304176
  const position = Number(rl.line) - 1;
303432
304177
  const item = items[position];
303433
304178
  if (item != null && isSelectable(item)) {
@@ -303436,7 +304181,7 @@ var esm_default3 = createPrompt((config4, done) => {
303436
304181
  searchTimeoutRef.current = setTimeout(() => {
303437
304182
  rl.clearLine(0);
303438
304183
  }, 700);
303439
- } else if (isBackspaceKey(key2)) {
304184
+ } else if (isBackspaceKey2(key3)) {
303440
304185
  rl.clearLine(0);
303441
304186
  } else {
303442
304187
  const searchTerm = rl.line.toLowerCase();
@@ -303453,7 +304198,7 @@ var esm_default3 = createPrompt((config4, done) => {
303453
304198
  }, 700);
303454
304199
  }
303455
304200
  });
303456
- useEffect(() => () => {
304201
+ useEffect2(() => () => {
303457
304202
  clearTimeout(searchTimeoutRef.current);
303458
304203
  }, []);
303459
304204
  const message = theme.style.message(config4.message, status);
@@ -303493,7 +304238,7 @@ ${theme.style.help(`(${config4.instructions?.pager ?? "Use arrow keys to reveal
303493
304238
  const choiceDescription = selectedChoice.description ? `
303494
304239
  ${theme.style.description(selectedChoice.description)}` : ``;
303495
304240
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
303496
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
304241
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
303497
304242
  });
303498
304243
 
303499
304244
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -303547,7 +304292,7 @@ async function subgraphPrompt({
303547
304292
  } else {
303548
304293
  defaultChoice = env2.SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH ?? subgraphNames[0];
303549
304294
  }
303550
- const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default3({
304295
+ const subgraphName = choices.length === 1 && choices[0] === NEW ? NEW : await esm_default4({
303551
304296
  message,
303552
304297
  choices: choices.map((name3) => ({
303553
304298
  name: name3,
@@ -304346,8 +305091,7 @@ function formatBlock(block) {
304346
305091
  }
304347
305092
 
304348
305093
  // ../../node_modules/viem/_esm/actions/public/getBlock.js
304349
- async function getBlock(client, { blockHash, blockNumber, blockTag: blockTag_, includeTransactions: includeTransactions_ } = {}) {
304350
- const blockTag = blockTag_ ?? "latest";
305094
+ async function getBlock(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", includeTransactions: includeTransactions_ } = {}) {
304351
305095
  const includeTransactions = includeTransactions_ ?? false;
304352
305096
  const blockNumberHex = blockNumber !== undefined ? numberToHex(blockNumber) : undefined;
304353
305097
  let block = null;
@@ -304794,7 +305538,7 @@ async function prepareTransactionRequest(client, args) {
304794
305538
 
304795
305539
  // ../../node_modules/viem/_esm/actions/public/getBalance.js
304796
305540
  init_toHex();
304797
- async function getBalance(client, { address, blockNumber, blockTag = "latest" }) {
305541
+ async function getBalance(client, { address, blockNumber, blockTag = client.experimental_blockTag ?? "latest" }) {
304798
305542
  const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : undefined;
304799
305543
  const balance = await client.request({
304800
305544
  method: "eth_getBalance",
@@ -304812,7 +305556,11 @@ async function estimateGas(client, args) {
304812
305556
  const { block: block2, request: request3, rpcStateOverride: rpcStateOverride2 } = parameters;
304813
305557
  return client.request({
304814
305558
  method: "eth_estimateGas",
304815
- params: rpcStateOverride2 ? [request3, block2 ?? "latest", rpcStateOverride2] : block2 ? [request3, block2] : [request3]
305559
+ params: rpcStateOverride2 ? [
305560
+ request3,
305561
+ block2 ?? client.experimental_blockTag ?? "latest",
305562
+ rpcStateOverride2
305563
+ ] : block2 ? [request3, block2] : [request3]
304816
305564
  });
304817
305565
  };
304818
305566
  const { accessList, authorizationList, blobs, blobVersionedHashes, blockNumber, blockTag, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, value: value4, stateOverride, ...rest } = await prepareTransactionRequest(client, {
@@ -305074,14 +305822,14 @@ function includesArgs(parameters) {
305074
305822
  });
305075
305823
  }
305076
305824
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
305077
- return Object.entries(matchArgs).every(([key2, value4]) => {
305825
+ return Object.entries(matchArgs).every(([key3, value4]) => {
305078
305826
  if (value4 === null || value4 === undefined)
305079
305827
  return true;
305080
- const input = inputs.find((input2) => input2.name === key2);
305828
+ const input = inputs.find((input2) => input2.name === key3);
305081
305829
  if (!input)
305082
305830
  return false;
305083
305831
  const value_ = Array.isArray(value4) ? value4 : [value4];
305084
- return value_.some((value5) => isEqual(input, value5, args[key2]));
305832
+ return value_.some((value5) => isEqual(input, value5, args[key3]));
305085
305833
  });
305086
305834
  return false;
305087
305835
  }
@@ -305280,13 +306028,13 @@ function observe(observerId, callbacks, fn) {
305280
306028
  if (listeners && listeners.length > 0)
305281
306029
  return unwatch;
305282
306030
  const emit = {};
305283
- for (const key2 in callbacks) {
305284
- emit[key2] = (...args) => {
306031
+ for (const key3 in callbacks) {
306032
+ emit[key3] = (...args) => {
305285
306033
  const listeners2 = getListeners();
305286
306034
  if (listeners2.length === 0)
305287
306035
  return;
305288
306036
  for (const listener of listeners2)
305289
- listener.fns[key2]?.(...args);
306037
+ listener.fns[key3]?.(...args);
305290
306038
  };
305291
306039
  }
305292
306040
  const cleanup = fn(emit);
@@ -305625,7 +306373,8 @@ function uid(length = 11) {
305625
306373
 
305626
306374
  // ../../node_modules/viem/_esm/clients/createClient.js
305627
306375
  function createClient(parameters) {
305628
- const { batch, chain, ccipRead, key: key2 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
306376
+ const { batch, chain, ccipRead, key: key3 = "base", name: name3 = "Base Client", type: type4 = "base" } = parameters;
306377
+ const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
305629
306378
  const blockTime = chain?.blockTime ?? 12000;
305630
306379
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
305631
306380
  const pollingInterval = parameters.pollingInterval ?? defaultPollingInterval;
@@ -305642,19 +306391,20 @@ function createClient(parameters) {
305642
306391
  cacheTime,
305643
306392
  ccipRead,
305644
306393
  chain,
305645
- key: key2,
306394
+ key: key3,
305646
306395
  name: name3,
305647
306396
  pollingInterval,
305648
306397
  request: request2,
305649
306398
  transport,
305650
306399
  type: type4,
305651
- uid: uid()
306400
+ uid: uid(),
306401
+ ...experimental_blockTag ? { experimental_blockTag } : {}
305652
306402
  };
305653
306403
  function extend4(base2) {
305654
306404
  return (extendFn) => {
305655
306405
  const extended = extendFn(base2);
305656
- for (const key3 in client)
305657
- delete extended[key3];
306406
+ for (const key4 in client)
306407
+ delete extended[key4];
305658
306408
  const combined = { ...base2, ...extended };
305659
306409
  return Object.assign(combined, { extend: extend4(combined) });
305660
306410
  };
@@ -305834,11 +306584,11 @@ function shouldRetry(error44) {
305834
306584
  }
305835
306585
 
305836
306586
  // ../../node_modules/viem/_esm/clients/transports/createTransport.js
305837
- function createTransport({ key: key2, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
306587
+ function createTransport({ key: key3, methods, name: name3, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type4 }, value4) {
305838
306588
  const uid2 = uid();
305839
306589
  return {
305840
306590
  config: {
305841
- key: key2,
306591
+ key: key3,
305842
306592
  methods,
305843
306593
  name: name3,
305844
306594
  request: request2,
@@ -305995,7 +306745,7 @@ function getHttpRpcClient(url4, options = {}) {
305995
306745
 
305996
306746
  // ../../node_modules/viem/_esm/clients/transports/http.js
305997
306747
  function http(url4, config4 = {}) {
305998
- const { batch, fetchOptions, key: key2 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config4;
306748
+ const { batch, fetchOptions, key: key3 = "http", methods, name: name3 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config4;
305999
306749
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
306000
306750
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
306001
306751
  const retryCount = config4.retryCount ?? retryCount_;
@@ -306010,7 +306760,7 @@ function http(url4, config4 = {}) {
306010
306760
  timeout
306011
306761
  });
306012
306762
  return createTransport({
306013
- key: key2,
306763
+ key: key3,
306014
306764
  methods,
306015
306765
  name: name3,
306016
306766
  async request({ method, params }) {
@@ -306461,7 +307211,7 @@ init_getChainContractAddress();
306461
307211
  init_toHex();
306462
307212
  init_localBatchGatewayRequest();
306463
307213
  async function getEnsText(client, parameters) {
306464
- const { blockNumber, blockTag, key: key2, name: name3, gatewayUrls, strict } = parameters;
307214
+ const { blockNumber, blockTag, key: key3, name: name3, gatewayUrls, strict } = parameters;
306465
307215
  const { chain } = client;
306466
307216
  const universalResolverAddress = (() => {
306467
307217
  if (parameters.universalResolverAddress)
@@ -306487,7 +307237,7 @@ async function getEnsText(client, parameters) {
306487
307237
  encodeFunctionData({
306488
307238
  abi: textResolverAbi,
306489
307239
  functionName: "text",
306490
- args: [namehash(name3), key2]
307240
+ args: [namehash(name3), key3]
306491
307241
  }),
306492
307242
  gatewayUrls ?? [localBatchGatewayUrl]
306493
307243
  ],
@@ -307391,7 +308141,7 @@ init_transactionRequest();
307391
308141
  init_stateOverride2();
307392
308142
  init_assertRequest();
307393
308143
  async function simulateBlocks(client, parameters) {
307394
- const { blockNumber, blockTag = "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
308144
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
307395
308145
  try {
307396
308146
  const blockStateCalls = [];
307397
308147
  for (const block2 of blocks) {
@@ -307510,16 +308260,16 @@ class LruMap2 extends Map {
307510
308260
  });
307511
308261
  this.maxSize = size5;
307512
308262
  }
307513
- get(key2) {
307514
- const value4 = super.get(key2);
307515
- if (super.has(key2) && value4 !== undefined) {
307516
- this.delete(key2);
307517
- super.set(key2, value4);
308263
+ get(key3) {
308264
+ const value4 = super.get(key3);
308265
+ if (super.has(key3) && value4 !== undefined) {
308266
+ this.delete(key3);
308267
+ super.set(key3, value4);
307518
308268
  }
307519
308269
  return value4;
307520
308270
  }
307521
- set(key2, value4) {
307522
- super.set(key2, value4);
308271
+ set(key3, value4) {
308272
+ super.set(key3, value4);
307523
308273
  if (this.maxSize && this.size > this.maxSize) {
307524
308274
  const firstKey = this.keys().next().value;
307525
308275
  if (firstKey)
@@ -308760,16 +309510,24 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
308760
309510
  }
308761
309511
 
308762
309512
  // ../../node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js
308763
- async function waitForTransactionReceipt(client, {
308764
- confirmations = 1,
308765
- hash: hash2,
308766
- onReplaced,
308767
- pollingInterval = client.pollingInterval,
308768
- retryCount = 6,
308769
- retryDelay = ({ count }) => ~~(1 << count) * 200,
308770
- timeout = 180000
308771
- }) {
309513
+ async function waitForTransactionReceipt(client, parameters) {
309514
+ const {
309515
+ checkReplacement = true,
309516
+ confirmations = 1,
309517
+ hash: hash2,
309518
+ onReplaced,
309519
+ retryCount = 6,
309520
+ retryDelay = ({ count }) => ~~(1 << count) * 200,
309521
+ timeout = 180000
309522
+ } = parameters;
308772
309523
  const observerId = stringify3(["waitForTransactionReceipt", client.uid, hash2]);
309524
+ const pollingInterval = (() => {
309525
+ if (parameters.pollingInterval)
309526
+ return parameters.pollingInterval;
309527
+ if (client.chain?.experimental_preconfirmationTime)
309528
+ return client.chain.experimental_preconfirmationTime;
309529
+ return client.pollingInterval;
309530
+ })();
308773
309531
  let transaction;
308774
309532
  let replacedTransaction;
308775
309533
  let receipt;
@@ -308782,7 +309540,16 @@ async function waitForTransactionReceipt(client, {
308782
309540
  _unobserve();
308783
309541
  reject(new WaitForTransactionReceiptTimeoutError({ hash: hash2 }));
308784
309542
  }, timeout) : undefined;
308785
- _unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, (emit) => {
309543
+ _unobserve = observe(observerId, { onReplaced, resolve: resolve6, reject }, async (emit) => {
309544
+ receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({ hash: hash2 }).catch(() => {
309545
+ return;
309546
+ });
309547
+ if (receipt && confirmations <= 1) {
309548
+ clearTimeout(timer);
309549
+ emit.resolve(receipt);
309550
+ _unobserve();
309551
+ return;
309552
+ }
308786
309553
  _unwatch = getAction(client, watchBlockNumber, "watchBlockNumber")({
308787
309554
  emitMissed: true,
308788
309555
  emitOnBegin: true,
@@ -308805,7 +309572,7 @@ async function waitForTransactionReceipt(client, {
308805
309572
  done(() => emit.resolve(receipt));
308806
309573
  return;
308807
309574
  }
308808
- if (!transaction) {
309575
+ if (checkReplacement && !transaction) {
308809
309576
  retrying = true;
308810
309577
  await withRetry(async () => {
308811
309578
  transaction = await getAction(client, getTransaction, "getTransaction")({ hash: hash2 });
@@ -308875,7 +309642,7 @@ async function waitForTransactionReceipt(client, {
308875
309642
  return promise4;
308876
309643
  }
308877
309644
  // ../../node_modules/viem/_esm/actions/public/watchBlocks.js
308878
- function watchBlocks(client, { blockTag = "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
309645
+ function watchBlocks(client, { blockTag = client.experimental_blockTag ?? "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
308879
309646
  const enablePolling = (() => {
308880
309647
  if (typeof poll_ !== "undefined")
308881
309648
  return poll_;
@@ -309362,10 +310129,10 @@ function publicActions(client) {
309362
310129
 
309363
310130
  // ../../node_modules/viem/_esm/clients/createPublicClient.js
309364
310131
  function createPublicClient(parameters) {
309365
- const { key: key2 = "public", name: name3 = "Public Client" } = parameters;
310132
+ const { key: key3 = "public", name: name3 = "Public Client" } = parameters;
309366
310133
  const client = createClient({
309367
310134
  ...parameters,
309368
- key: key2,
310135
+ key: key3,
309369
310136
  name: name3,
309370
310137
  type: "publicClient"
309371
310138
  });
@@ -309466,7 +310233,7 @@ __export4(util_exports3, {
309466
310233
  getParsedType: () => getParsedType4,
309467
310234
  getSizableOrigin: () => getSizableOrigin4,
309468
310235
  isObject: () => isObject4,
309469
- isPlainObject: () => isPlainObject6,
310236
+ isPlainObject: () => isPlainObject7,
309470
310237
  issue: () => issue4,
309471
310238
  joinValues: () => joinValues4,
309472
310239
  jsonStringifyReplacer: () => jsonStringifyReplacer4,
@@ -309538,19 +310305,19 @@ function floatSafeRemainder4(val, step) {
309538
310305
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
309539
310306
  return valInt % stepInt / 10 ** decCount;
309540
310307
  }
309541
- function defineLazy4(object$1, key2, getter) {
310308
+ function defineLazy4(object$1, key3, getter) {
309542
310309
  const set$1 = false;
309543
- Object.defineProperty(object$1, key2, {
310310
+ Object.defineProperty(object$1, key3, {
309544
310311
  get() {
309545
310312
  if (!set$1) {
309546
310313
  const value4 = getter();
309547
- object$1[key2] = value4;
310314
+ object$1[key3] = value4;
309548
310315
  return value4;
309549
310316
  }
309550
310317
  throw new Error("cached value already set");
309551
310318
  },
309552
310319
  set(v6) {
309553
- Object.defineProperty(object$1, key2, { value: v6 });
310320
+ Object.defineProperty(object$1, key3, { value: v6 });
309554
310321
  },
309555
310322
  configurable: true
309556
310323
  });
@@ -309566,11 +310333,11 @@ function assignProp4(target, prop, value4) {
309566
310333
  function getElementAtPath4(obj, path7) {
309567
310334
  if (!path7)
309568
310335
  return obj;
309569
- return path7.reduce((acc, key2) => acc?.[key2], obj);
310336
+ return path7.reduce((acc, key3) => acc?.[key3], obj);
309570
310337
  }
309571
310338
  function promiseAllObject4(promisesObj) {
309572
310339
  const keys = Object.keys(promisesObj);
309573
- const promises = keys.map((key2) => promisesObj[key2]);
310340
+ const promises = keys.map((key3) => promisesObj[key3]);
309574
310341
  return Promise.all(promises).then((results) => {
309575
310342
  const resolvedObj = {};
309576
310343
  for (let i6 = 0;i6 < keys.length; i6++) {
@@ -309602,7 +310369,7 @@ var allowsEval4 = cached4(() => {
309602
310369
  return false;
309603
310370
  }
309604
310371
  });
309605
- function isPlainObject6(o8) {
310372
+ function isPlainObject7(o8) {
309606
310373
  if (isObject4(o8) === false)
309607
310374
  return false;
309608
310375
  const ctor = o8.constructor;
@@ -309618,8 +310385,8 @@ function isPlainObject6(o8) {
309618
310385
  }
309619
310386
  function numKeys4(data) {
309620
310387
  let keyCount = 0;
309621
- for (const key2 in data) {
309622
- if (Object.prototype.hasOwnProperty.call(data, key2)) {
310388
+ for (const key3 in data) {
310389
+ if (Object.prototype.hasOwnProperty.call(data, key3)) {
309623
310390
  keyCount++;
309624
310391
  }
309625
310392
  }
@@ -309769,13 +310536,13 @@ var BIGINT_FORMAT_RANGES4 = {
309769
310536
  function pick4(schema, mask) {
309770
310537
  const newShape = {};
309771
310538
  const currDef = schema._zod.def;
309772
- for (const key2 in mask) {
309773
- if (!(key2 in currDef.shape)) {
309774
- throw new Error(`Unrecognized key: "${key2}"`);
310539
+ for (const key3 in mask) {
310540
+ if (!(key3 in currDef.shape)) {
310541
+ throw new Error(`Unrecognized key: "${key3}"`);
309775
310542
  }
309776
- if (!mask[key2])
310543
+ if (!mask[key3])
309777
310544
  continue;
309778
- newShape[key2] = currDef.shape[key2];
310545
+ newShape[key3] = currDef.shape[key3];
309779
310546
  }
309780
310547
  return clone4(schema, {
309781
310548
  ...schema._zod.def,
@@ -309786,13 +310553,13 @@ function pick4(schema, mask) {
309786
310553
  function omit4(schema, mask) {
309787
310554
  const newShape = { ...schema._zod.def.shape };
309788
310555
  const currDef = schema._zod.def;
309789
- for (const key2 in mask) {
309790
- if (!(key2 in currDef.shape)) {
309791
- throw new Error(`Unrecognized key: "${key2}"`);
310556
+ for (const key3 in mask) {
310557
+ if (!(key3 in currDef.shape)) {
310558
+ throw new Error(`Unrecognized key: "${key3}"`);
309792
310559
  }
309793
- if (!mask[key2])
310560
+ if (!mask[key3])
309794
310561
  continue;
309795
- delete newShape[key2];
310562
+ delete newShape[key3];
309796
310563
  }
309797
310564
  return clone4(schema, {
309798
310565
  ...schema._zod.def,
@@ -309834,23 +310601,23 @@ function partial4(Class$1, schema, mask) {
309834
310601
  const oldShape = schema._zod.def.shape;
309835
310602
  const shape = { ...oldShape };
309836
310603
  if (mask) {
309837
- for (const key2 in mask) {
309838
- if (!(key2 in oldShape)) {
309839
- throw new Error(`Unrecognized key: "${key2}"`);
310604
+ for (const key3 in mask) {
310605
+ if (!(key3 in oldShape)) {
310606
+ throw new Error(`Unrecognized key: "${key3}"`);
309840
310607
  }
309841
- if (!mask[key2])
310608
+ if (!mask[key3])
309842
310609
  continue;
309843
- shape[key2] = Class$1 ? new Class$1({
310610
+ shape[key3] = Class$1 ? new Class$1({
309844
310611
  type: "optional",
309845
- innerType: oldShape[key2]
309846
- }) : oldShape[key2];
310612
+ innerType: oldShape[key3]
310613
+ }) : oldShape[key3];
309847
310614
  }
309848
310615
  } else {
309849
- for (const key2 in oldShape) {
309850
- shape[key2] = Class$1 ? new Class$1({
310616
+ for (const key3 in oldShape) {
310617
+ shape[key3] = Class$1 ? new Class$1({
309851
310618
  type: "optional",
309852
- innerType: oldShape[key2]
309853
- }) : oldShape[key2];
310619
+ innerType: oldShape[key3]
310620
+ }) : oldShape[key3];
309854
310621
  }
309855
310622
  }
309856
310623
  return clone4(schema, {
@@ -309863,22 +310630,22 @@ function required4(Class$1, schema, mask) {
309863
310630
  const oldShape = schema._zod.def.shape;
309864
310631
  const shape = { ...oldShape };
309865
310632
  if (mask) {
309866
- for (const key2 in mask) {
309867
- if (!(key2 in shape)) {
309868
- throw new Error(`Unrecognized key: "${key2}"`);
310633
+ for (const key3 in mask) {
310634
+ if (!(key3 in shape)) {
310635
+ throw new Error(`Unrecognized key: "${key3}"`);
309869
310636
  }
309870
- if (!mask[key2])
310637
+ if (!mask[key3])
309871
310638
  continue;
309872
- shape[key2] = new Class$1({
310639
+ shape[key3] = new Class$1({
309873
310640
  type: "nonoptional",
309874
- innerType: oldShape[key2]
310641
+ innerType: oldShape[key3]
309875
310642
  });
309876
310643
  }
309877
310644
  } else {
309878
- for (const key2 in oldShape) {
309879
- shape[key2] = new Class$1({
310645
+ for (const key3 in oldShape) {
310646
+ shape[key3] = new Class$1({
309880
310647
  type: "nonoptional",
309881
- innerType: oldShape[key2]
310648
+ innerType: oldShape[key3]
309882
310649
  });
309883
310650
  }
309884
310651
  }
@@ -311458,28 +312225,28 @@ var $ZodArray4 = /* @__PURE__ */ $constructor4("$ZodArray", (inst, def) => {
311458
312225
  return payload;
311459
312226
  };
311460
312227
  });
311461
- function handleObjectResult4(result, final, key2) {
312228
+ function handleObjectResult4(result, final, key3) {
311462
312229
  if (result.issues.length) {
311463
- final.issues.push(...prefixIssues4(key2, result.issues));
312230
+ final.issues.push(...prefixIssues4(key3, result.issues));
311464
312231
  }
311465
- final.value[key2] = result.value;
312232
+ final.value[key3] = result.value;
311466
312233
  }
311467
- function handleOptionalObjectResult4(result, final, key2, input) {
312234
+ function handleOptionalObjectResult4(result, final, key3, input) {
311468
312235
  if (result.issues.length) {
311469
- if (input[key2] === undefined) {
311470
- if (key2 in input) {
311471
- final.value[key2] = undefined;
312236
+ if (input[key3] === undefined) {
312237
+ if (key3 in input) {
312238
+ final.value[key3] = undefined;
311472
312239
  } else {
311473
- final.value[key2] = result.value;
312240
+ final.value[key3] = result.value;
311474
312241
  }
311475
312242
  } else {
311476
- final.issues.push(...prefixIssues4(key2, result.issues));
312243
+ final.issues.push(...prefixIssues4(key3, result.issues));
311477
312244
  }
311478
312245
  } else if (result.value === undefined) {
311479
- if (key2 in input)
311480
- final.value[key2] = undefined;
312246
+ if (key3 in input)
312247
+ final.value[key3] = undefined;
311481
312248
  } else {
311482
- final.value[key2] = result.value;
312249
+ final.value[key3] = result.value;
311483
312250
  }
311484
312251
  }
311485
312252
  var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
@@ -311503,12 +312270,12 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311503
312270
  defineLazy4(inst._zod, "propValues", () => {
311504
312271
  const shape = def.shape;
311505
312272
  const propValues = {};
311506
- for (const key2 in shape) {
311507
- const field2 = shape[key2]._zod;
312273
+ for (const key3 in shape) {
312274
+ const field2 = shape[key3]._zod;
311508
312275
  if (field2.values) {
311509
- propValues[key2] ?? (propValues[key2] = new Set);
312276
+ propValues[key3] ?? (propValues[key3] = new Set);
311510
312277
  for (const v6 of field2.values)
311511
- propValues[key2].add(v6);
312278
+ propValues[key3].add(v6);
311512
312279
  }
311513
312280
  }
311514
312281
  return propValues;
@@ -311520,21 +312287,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311520
312287
  "ctx"
311521
312288
  ]);
311522
312289
  const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
311523
- const parseStr = (key2) => {
311524
- const k5 = esc4(key2);
312290
+ const parseStr = (key3) => {
312291
+ const k5 = esc4(key3);
311525
312292
  return `shape[${k5}]._zod.run({ value: input[${k5}], issues: [] }, ctx)`;
311526
312293
  };
311527
312294
  doc2.write(`const input = payload.value;`);
311528
312295
  const ids = Object.create(null);
311529
- for (const key2 of keys) {
311530
- ids[key2] = randomString4(15);
312296
+ for (const key3 of keys) {
312297
+ ids[key3] = randomString4(15);
311531
312298
  }
311532
312299
  doc2.write(`const newResult = {}`);
311533
- for (const key2 of keys) {
311534
- if (optionalKeys$1.has(key2)) {
311535
- const id = ids[key2];
311536
- doc2.write(`const ${id} = ${parseStr(key2)};`);
311537
- const k5 = esc4(key2);
312300
+ for (const key3 of keys) {
312301
+ if (optionalKeys$1.has(key3)) {
312302
+ const id = ids[key3];
312303
+ doc2.write(`const ${id} = ${parseStr(key3)};`);
312304
+ const k5 = esc4(key3);
311538
312305
  doc2.write(`
311539
312306
  if (${id}.issues.length) {
311540
312307
  if (input[${k5}] === undefined) {
@@ -311556,14 +312323,14 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311556
312323
  }
311557
312324
  `);
311558
312325
  } else {
311559
- const id = ids[key2];
311560
- doc2.write(`const ${id} = ${parseStr(key2)};`);
312326
+ const id = ids[key3];
312327
+ doc2.write(`const ${id} = ${parseStr(key3)};`);
311561
312328
  doc2.write(`
311562
312329
  if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
311563
312330
  ...iss,
311564
- path: iss.path ? [${esc4(key2)}, ...iss.path] : [${esc4(key2)}]
312331
+ path: iss.path ? [${esc4(key3)}, ...iss.path] : [${esc4(key3)}]
311565
312332
  })));`);
311566
- doc2.write(`newResult[${esc4(key2)}] = ${id}.value`);
312333
+ doc2.write(`newResult[${esc4(key3)}] = ${id}.value`);
311567
312334
  }
311568
312335
  }
311569
312336
  doc2.write(`payload.value = newResult;`);
@@ -311598,20 +312365,20 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311598
312365
  } else {
311599
312366
  payload.value = {};
311600
312367
  const shape = value4.shape;
311601
- for (const key2 of value4.keys) {
311602
- const el = shape[key2];
312368
+ for (const key3 of value4.keys) {
312369
+ const el = shape[key3];
311603
312370
  const r6 = el._zod.run({
311604
- value: input[key2],
312371
+ value: input[key3],
311605
312372
  issues: []
311606
312373
  }, ctx);
311607
312374
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
311608
312375
  if (r6 instanceof Promise) {
311609
- proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key2, input) : handleObjectResult4(r$1, payload, key2)));
312376
+ proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key3, input) : handleObjectResult4(r$1, payload, key3)));
311610
312377
  } else {
311611
312378
  if (isOptional) {
311612
- handleOptionalObjectResult4(r6, payload, key2, input);
312379
+ handleOptionalObjectResult4(r6, payload, key3, input);
311613
312380
  } else {
311614
- handleObjectResult4(r6, payload, key2);
312381
+ handleObjectResult4(r6, payload, key3);
311615
312382
  }
311616
312383
  }
311617
312384
  }
@@ -311623,21 +312390,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
311623
312390
  const keySet = value4.keySet;
311624
312391
  const _catchall = catchall._zod;
311625
312392
  const t8 = _catchall.def.type;
311626
- for (const key2 of Object.keys(input)) {
311627
- if (keySet.has(key2))
312393
+ for (const key3 of Object.keys(input)) {
312394
+ if (keySet.has(key3))
311628
312395
  continue;
311629
312396
  if (t8 === "never") {
311630
- unrecognized.push(key2);
312397
+ unrecognized.push(key3);
311631
312398
  continue;
311632
312399
  }
311633
312400
  const r6 = _catchall.run({
311634
- value: input[key2],
312401
+ value: input[key3],
311635
312402
  issues: []
311636
312403
  }, ctx);
311637
312404
  if (r6 instanceof Promise) {
311638
- proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key2)));
312405
+ proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key3)));
311639
312406
  } else {
311640
- handleObjectResult4(r6, payload, key2);
312407
+ handleObjectResult4(r6, payload, key3);
311641
312408
  }
311642
312409
  }
311643
312410
  if (unrecognized.length) {
@@ -311807,22 +312574,22 @@ function mergeValues4(a7, b4) {
311807
312574
  data: a7
311808
312575
  };
311809
312576
  }
311810
- if (isPlainObject6(a7) && isPlainObject6(b4)) {
312577
+ if (isPlainObject7(a7) && isPlainObject7(b4)) {
311811
312578
  const bKeys = Object.keys(b4);
311812
- const sharedKeys = Object.keys(a7).filter((key2) => bKeys.indexOf(key2) !== -1);
312579
+ const sharedKeys = Object.keys(a7).filter((key3) => bKeys.indexOf(key3) !== -1);
311813
312580
  const newObj = {
311814
312581
  ...a7,
311815
312582
  ...b4
311816
312583
  };
311817
- for (const key2 of sharedKeys) {
311818
- const sharedValue = mergeValues4(a7[key2], b4[key2]);
312584
+ for (const key3 of sharedKeys) {
312585
+ const sharedValue = mergeValues4(a7[key3], b4[key3]);
311819
312586
  if (!sharedValue.valid) {
311820
312587
  return {
311821
312588
  valid: false,
311822
- mergeErrorPath: [key2, ...sharedValue.mergeErrorPath]
312589
+ mergeErrorPath: [key3, ...sharedValue.mergeErrorPath]
311823
312590
  };
311824
312591
  }
311825
- newObj[key2] = sharedValue.data;
312592
+ newObj[key3] = sharedValue.data;
311826
312593
  }
311827
312594
  return {
311828
312595
  valid: true,
@@ -311958,7 +312725,7 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
311958
312725
  $ZodType4.init(inst, def);
311959
312726
  inst._zod.parse = (payload, ctx) => {
311960
312727
  const input = payload.value;
311961
- if (!isPlainObject6(input)) {
312728
+ if (!isPlainObject7(input)) {
311962
312729
  payload.issues.push({
311963
312730
  expected: "record",
311964
312731
  code: "invalid_type",
@@ -311971,32 +312738,32 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
311971
312738
  if (def.keyType._zod.values) {
311972
312739
  const values = def.keyType._zod.values;
311973
312740
  payload.value = {};
311974
- for (const key2 of values) {
311975
- if (typeof key2 === "string" || typeof key2 === "number" || typeof key2 === "symbol") {
312741
+ for (const key3 of values) {
312742
+ if (typeof key3 === "string" || typeof key3 === "number" || typeof key3 === "symbol") {
311976
312743
  const result = def.valueType._zod.run({
311977
- value: input[key2],
312744
+ value: input[key3],
311978
312745
  issues: []
311979
312746
  }, ctx);
311980
312747
  if (result instanceof Promise) {
311981
312748
  proms.push(result.then((result$1) => {
311982
312749
  if (result$1.issues.length) {
311983
- payload.issues.push(...prefixIssues4(key2, result$1.issues));
312750
+ payload.issues.push(...prefixIssues4(key3, result$1.issues));
311984
312751
  }
311985
- payload.value[key2] = result$1.value;
312752
+ payload.value[key3] = result$1.value;
311986
312753
  }));
311987
312754
  } else {
311988
312755
  if (result.issues.length) {
311989
- payload.issues.push(...prefixIssues4(key2, result.issues));
312756
+ payload.issues.push(...prefixIssues4(key3, result.issues));
311990
312757
  }
311991
- payload.value[key2] = result.value;
312758
+ payload.value[key3] = result.value;
311992
312759
  }
311993
312760
  }
311994
312761
  }
311995
312762
  let unrecognized;
311996
- for (const key2 in input) {
311997
- if (!values.has(key2)) {
312763
+ for (const key3 in input) {
312764
+ if (!values.has(key3)) {
311998
312765
  unrecognized = unrecognized ?? [];
311999
- unrecognized.push(key2);
312766
+ unrecognized.push(key3);
312000
312767
  }
312001
312768
  }
312002
312769
  if (unrecognized && unrecognized.length > 0) {
@@ -312009,11 +312776,11 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312009
312776
  }
312010
312777
  } else {
312011
312778
  payload.value = {};
312012
- for (const key2 of Reflect.ownKeys(input)) {
312013
- if (key2 === "__proto__")
312779
+ for (const key3 of Reflect.ownKeys(input)) {
312780
+ if (key3 === "__proto__")
312014
312781
  continue;
312015
312782
  const keyResult = def.keyType._zod.run({
312016
- value: key2,
312783
+ value: key3,
312017
312784
  issues: []
312018
312785
  }, ctx);
312019
312786
  if (keyResult instanceof Promise) {
@@ -312024,27 +312791,27 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
312024
312791
  origin: "record",
312025
312792
  code: "invalid_key",
312026
312793
  issues: keyResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4())),
312027
- input: key2,
312028
- path: [key2],
312794
+ input: key3,
312795
+ path: [key3],
312029
312796
  inst
312030
312797
  });
312031
312798
  payload.value[keyResult.value] = keyResult.value;
312032
312799
  continue;
312033
312800
  }
312034
312801
  const result = def.valueType._zod.run({
312035
- value: input[key2],
312802
+ value: input[key3],
312036
312803
  issues: []
312037
312804
  }, ctx);
312038
312805
  if (result instanceof Promise) {
312039
312806
  proms.push(result.then((result$1) => {
312040
312807
  if (result$1.issues.length) {
312041
- payload.issues.push(...prefixIssues4(key2, result$1.issues));
312808
+ payload.issues.push(...prefixIssues4(key3, result$1.issues));
312042
312809
  }
312043
312810
  payload.value[keyResult.value] = result$1.value;
312044
312811
  }));
312045
312812
  } else {
312046
312813
  if (result.issues.length) {
312047
- payload.issues.push(...prefixIssues4(key2, result.issues));
312814
+ payload.issues.push(...prefixIssues4(key3, result.issues));
312048
312815
  }
312049
312816
  payload.value[keyResult.value] = result.value;
312050
312817
  }
@@ -312071,9 +312838,9 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312071
312838
  }
312072
312839
  const proms = [];
312073
312840
  payload.value = new Map;
312074
- for (const [key2, value4] of input) {
312841
+ for (const [key3, value4] of input) {
312075
312842
  const keyResult = def.keyType._zod.run({
312076
- value: key2,
312843
+ value: key3,
312077
312844
  issues: []
312078
312845
  }, ctx);
312079
312846
  const valueResult = def.valueType._zod.run({
@@ -312082,10 +312849,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312082
312849
  }, ctx);
312083
312850
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
312084
312851
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult$1, valueResult$1]) => {
312085
- handleMapResult4(keyResult$1, valueResult$1, payload, key2, input, inst, ctx);
312852
+ handleMapResult4(keyResult$1, valueResult$1, payload, key3, input, inst, ctx);
312086
312853
  }));
312087
312854
  } else {
312088
- handleMapResult4(keyResult, valueResult, payload, key2, input, inst, ctx);
312855
+ handleMapResult4(keyResult, valueResult, payload, key3, input, inst, ctx);
312089
312856
  }
312090
312857
  }
312091
312858
  if (proms.length)
@@ -312093,10 +312860,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
312093
312860
  return payload;
312094
312861
  };
312095
312862
  });
312096
- function handleMapResult4(keyResult, valueResult, final, key2, input, inst, ctx) {
312863
+ function handleMapResult4(keyResult, valueResult, final, key3, input, inst, ctx) {
312097
312864
  if (keyResult.issues.length) {
312098
- if (propertyKeyTypes4.has(typeof key2)) {
312099
- final.issues.push(...prefixIssues4(key2, keyResult.issues));
312865
+ if (propertyKeyTypes4.has(typeof key3)) {
312866
+ final.issues.push(...prefixIssues4(key3, keyResult.issues));
312100
312867
  } else {
312101
312868
  final.issues.push({
312102
312869
  origin: "map",
@@ -312108,15 +312875,15 @@ function handleMapResult4(keyResult, valueResult, final, key2, input, inst, ctx)
312108
312875
  }
312109
312876
  }
312110
312877
  if (valueResult.issues.length) {
312111
- if (propertyKeyTypes4.has(typeof key2)) {
312112
- final.issues.push(...prefixIssues4(key2, valueResult.issues));
312878
+ if (propertyKeyTypes4.has(typeof key3)) {
312879
+ final.issues.push(...prefixIssues4(key3, valueResult.issues));
312113
312880
  } else {
312114
312881
  final.issues.push({
312115
312882
  origin: "map",
312116
312883
  code: "invalid_element",
312117
312884
  input,
312118
312885
  inst,
312119
- key: key2,
312886
+ key: key3,
312120
312887
  issues: valueResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4()))
312121
312888
  });
312122
312889
  }
@@ -318438,19 +319205,19 @@ var JSONSchemaGenerator4 = class {
318438
319205
  json$1.type = "object";
318439
319206
  json$1.properties = {};
318440
319207
  const shape = def.shape;
318441
- for (const key2 in shape) {
318442
- json$1.properties[key2] = this.process(shape[key2], {
319208
+ for (const key3 in shape) {
319209
+ json$1.properties[key3] = this.process(shape[key3], {
318443
319210
  ...params,
318444
319211
  path: [
318445
319212
  ...params.path,
318446
319213
  "properties",
318447
- key2
319214
+ key3
318448
319215
  ]
318449
319216
  });
318450
319217
  }
318451
319218
  const allKeys = new Set(Object.keys(shape));
318452
- const requiredKeys = new Set([...allKeys].filter((key2) => {
318453
- const v6 = def.shape[key2]._zod;
319219
+ const requiredKeys = new Set([...allKeys].filter((key3) => {
319220
+ const v6 = def.shape[key3]._zod;
318454
319221
  if (this.io === "input") {
318455
319222
  return v6.optin === undefined;
318456
319223
  } else {
@@ -318802,8 +319569,8 @@ var JSONSchemaGenerator4 = class {
318802
319569
  if (defId)
318803
319570
  seen.defId = defId;
318804
319571
  const schema$1 = seen.schema;
318805
- for (const key2 in schema$1) {
318806
- delete schema$1[key2];
319572
+ for (const key3 in schema$1) {
319573
+ delete schema$1[key3];
318807
319574
  }
318808
319575
  schema$1.$ref = ref;
318809
319576
  };
@@ -318914,8 +319681,8 @@ function toJSONSchema4(input, _params) {
318914
319681
  defs
318915
319682
  };
318916
319683
  for (const entry of input._idmap.entries()) {
318917
- const [key2, schema] = entry;
318918
- schemas3[key2] = gen$1.emit(schema, {
319684
+ const [key3, schema] = entry;
319685
+ schemas3[key3] = gen$1.emit(schema, {
318919
319686
  ..._params,
318920
319687
  external: external2
318921
319688
  });
@@ -318960,8 +319727,8 @@ function isTransforming4(_schema, _ctx) {
318960
319727
  return isTransforming4(def.element, ctx);
318961
319728
  }
318962
319729
  case "object": {
318963
- for (const key2 in def.shape) {
318964
- if (isTransforming4(def.shape[key2], ctx))
319730
+ for (const key3 in def.shape) {
319731
+ if (isTransforming4(def.shape[key3], ctx))
318965
319732
  return true;
318966
319733
  }
318967
319734
  return false;
@@ -320810,19 +321577,19 @@ function getBooleanValue(value4, defaultValue) {
320810
321577
  function boolToString(value4) {
320811
321578
  return value4 ? "Yes" : "No";
320812
321579
  }
320813
- var esm_default4 = createPrompt((config5, done) => {
321580
+ var esm_default5 = createPrompt((config5, done) => {
320814
321581
  const { transformer = boolToString } = config5;
320815
321582
  const [status, setStatus] = useState("idle");
320816
321583
  const [value4, setValue] = useState("");
320817
321584
  const theme = makeTheme(config5.theme);
320818
321585
  const prefix = usePrefix({ status, theme });
320819
- useKeypress((key2, rl) => {
320820
- if (isEnterKey(key2)) {
321586
+ useKeypress((key3, rl) => {
321587
+ if (isEnterKey(key3)) {
320821
321588
  const answer = getBooleanValue(value4, config5.default);
320822
321589
  setValue(transformer(answer));
320823
321590
  setStatus("done");
320824
321591
  done(answer);
320825
- } else if (key2.name === "tab") {
321592
+ } else if (key3.name === "tab") {
320826
321593
  const answer = boolToString(!getBooleanValue(value4, config5.default));
320827
321594
  rl.clearLine(0);
320828
321595
  rl.write(answer);
@@ -320842,20 +321609,476 @@ var esm_default4 = createPrompt((config5, done) => {
320842
321609
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
320843
321610
  });
320844
321611
 
321612
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
321613
+ var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
321614
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
321615
+ class AbortPromptError3 extends Error {
321616
+ name = "AbortPromptError";
321617
+ message = "Prompt was aborted";
321618
+ constructor(options) {
321619
+ super();
321620
+ this.cause = options?.cause;
321621
+ }
321622
+ }
321623
+
321624
+ class CancelPromptError3 extends Error {
321625
+ name = "CancelPromptError";
321626
+ message = "Prompt was canceled";
321627
+ }
321628
+
321629
+ class ExitPromptError3 extends Error {
321630
+ name = "ExitPromptError";
321631
+ }
321632
+
321633
+ class HookError3 extends Error {
321634
+ name = "HookError";
321635
+ }
321636
+
321637
+ class ValidationError3 extends Error {
321638
+ name = "ValidationError";
321639
+ }
321640
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
321641
+ import { AsyncResource as AsyncResource8 } from "node:async_hooks";
321642
+
321643
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
321644
+ import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
321645
+ var hookStorage3 = new AsyncLocalStorage3;
321646
+ function createStore3(rl) {
321647
+ const store = {
321648
+ rl,
321649
+ hooks: [],
321650
+ hooksCleanup: [],
321651
+ hooksEffect: [],
321652
+ index: 0,
321653
+ handleChange() {}
321654
+ };
321655
+ return store;
321656
+ }
321657
+ function withHooks3(rl, cb) {
321658
+ const store = createStore3(rl);
321659
+ return hookStorage3.run(store, () => {
321660
+ function cycle(render) {
321661
+ store.handleChange = () => {
321662
+ store.index = 0;
321663
+ render();
321664
+ };
321665
+ store.handleChange();
321666
+ }
321667
+ return cb(cycle);
321668
+ });
321669
+ }
321670
+ function getStore3() {
321671
+ const store = hookStorage3.getStore();
321672
+ if (!store) {
321673
+ throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
321674
+ }
321675
+ return store;
321676
+ }
321677
+ function readline5() {
321678
+ return getStore3().rl;
321679
+ }
321680
+ function withUpdates3(fn) {
321681
+ const wrapped = (...args) => {
321682
+ const store = getStore3();
321683
+ let shouldUpdate = false;
321684
+ const oldHandleChange = store.handleChange;
321685
+ store.handleChange = () => {
321686
+ shouldUpdate = true;
321687
+ };
321688
+ const returnValue = fn(...args);
321689
+ if (shouldUpdate) {
321690
+ oldHandleChange();
321691
+ }
321692
+ store.handleChange = oldHandleChange;
321693
+ return returnValue;
321694
+ };
321695
+ return AsyncResource7.bind(wrapped);
321696
+ }
321697
+ function withPointer3(cb) {
321698
+ const store = getStore3();
321699
+ const { index: index2 } = store;
321700
+ const pointer = {
321701
+ get() {
321702
+ return store.hooks[index2];
321703
+ },
321704
+ set(value4) {
321705
+ store.hooks[index2] = value4;
321706
+ },
321707
+ initialized: index2 in store.hooks
321708
+ };
321709
+ const returnValue = cb(pointer);
321710
+ store.index++;
321711
+ return returnValue;
321712
+ }
321713
+ function handleChange3() {
321714
+ getStore3().handleChange();
321715
+ }
321716
+ var effectScheduler3 = {
321717
+ queue(cb) {
321718
+ const store = getStore3();
321719
+ const { index: index2 } = store;
321720
+ store.hooksEffect.push(() => {
321721
+ store.hooksCleanup[index2]?.();
321722
+ const cleanFn = cb(readline5());
321723
+ if (cleanFn != null && typeof cleanFn !== "function") {
321724
+ throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
321725
+ }
321726
+ store.hooksCleanup[index2] = cleanFn;
321727
+ });
321728
+ },
321729
+ run() {
321730
+ const store = getStore3();
321731
+ withUpdates3(() => {
321732
+ store.hooksEffect.forEach((effect) => {
321733
+ effect();
321734
+ });
321735
+ store.hooksEffect.length = 0;
321736
+ })();
321737
+ },
321738
+ clearAll() {
321739
+ const store = getStore3();
321740
+ store.hooksCleanup.forEach((cleanFn) => {
321741
+ cleanFn?.();
321742
+ });
321743
+ store.hooksEffect.length = 0;
321744
+ store.hooksCleanup.length = 0;
321745
+ }
321746
+ };
321747
+
321748
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
321749
+ function useState3(defaultValue) {
321750
+ return withPointer3((pointer) => {
321751
+ const setState = AsyncResource8.bind(function setState(newValue) {
321752
+ if (pointer.get() !== newValue) {
321753
+ pointer.set(newValue);
321754
+ handleChange3();
321755
+ }
321756
+ });
321757
+ if (pointer.initialized) {
321758
+ return [pointer.get(), setState];
321759
+ }
321760
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
321761
+ pointer.set(value4);
321762
+ return [value4, setState];
321763
+ });
321764
+ }
321765
+
321766
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
321767
+ function useEffect3(cb, depArray) {
321768
+ withPointer3((pointer) => {
321769
+ const oldDeps = pointer.get();
321770
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
321771
+ if (hasChanged) {
321772
+ effectScheduler3.queue(cb);
321773
+ }
321774
+ pointer.set(depArray);
321775
+ });
321776
+ }
321777
+
321778
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
321779
+ var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
321780
+ var defaultTheme3 = {
321781
+ prefix: {
321782
+ idle: import_yoctocolors_cjs5.default.blue("?"),
321783
+ done: import_yoctocolors_cjs5.default.green(esm_default3.tick)
321784
+ },
321785
+ spinner: {
321786
+ interval: 80,
321787
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs5.default.yellow(frame))
321788
+ },
321789
+ style: {
321790
+ answer: import_yoctocolors_cjs5.default.cyan,
321791
+ message: import_yoctocolors_cjs5.default.bold,
321792
+ error: (text2) => import_yoctocolors_cjs5.default.red(`> ${text2}`),
321793
+ defaultAnswer: (text2) => import_yoctocolors_cjs5.default.dim(`(${text2})`),
321794
+ help: import_yoctocolors_cjs5.default.dim,
321795
+ highlight: import_yoctocolors_cjs5.default.cyan,
321796
+ key: (text2) => import_yoctocolors_cjs5.default.cyan(import_yoctocolors_cjs5.default.bold(`<${text2}>`))
321797
+ }
321798
+ };
321799
+
321800
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
321801
+ function isPlainObject8(value4) {
321802
+ if (typeof value4 !== "object" || value4 === null)
321803
+ return false;
321804
+ let proto = value4;
321805
+ while (Object.getPrototypeOf(proto) !== null) {
321806
+ proto = Object.getPrototypeOf(proto);
321807
+ }
321808
+ return Object.getPrototypeOf(value4) === proto;
321809
+ }
321810
+ function deepMerge4(...objects) {
321811
+ const output = {};
321812
+ for (const obj of objects) {
321813
+ for (const [key3, value4] of Object.entries(obj)) {
321814
+ const prevValue = output[key3];
321815
+ output[key3] = isPlainObject8(prevValue) && isPlainObject8(value4) ? deepMerge4(prevValue, value4) : value4;
321816
+ }
321817
+ }
321818
+ return output;
321819
+ }
321820
+ function makeTheme3(...themes) {
321821
+ const themesToMerge = [
321822
+ defaultTheme3,
321823
+ ...themes.filter((theme) => theme != null)
321824
+ ];
321825
+ return deepMerge4(...themesToMerge);
321826
+ }
321827
+
321828
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
321829
+ function usePrefix3({ status = "idle", theme }) {
321830
+ const [showLoader, setShowLoader] = useState3(false);
321831
+ const [tick, setTick] = useState3(0);
321832
+ const { prefix, spinner: spinner2 } = makeTheme3(theme);
321833
+ useEffect3(() => {
321834
+ if (status === "loading") {
321835
+ let tickInterval;
321836
+ let inc = -1;
321837
+ const delayTimeout = setTimeout(() => {
321838
+ setShowLoader(true);
321839
+ tickInterval = setInterval(() => {
321840
+ inc = inc + 1;
321841
+ setTick(inc % spinner2.frames.length);
321842
+ }, spinner2.interval);
321843
+ }, 300);
321844
+ return () => {
321845
+ clearTimeout(delayTimeout);
321846
+ clearInterval(tickInterval);
321847
+ };
321848
+ } else {
321849
+ setShowLoader(false);
321850
+ }
321851
+ }, [status]);
321852
+ if (showLoader) {
321853
+ return spinner2.frames[tick];
321854
+ }
321855
+ const iconName = status === "loading" ? "idle" : status;
321856
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
321857
+ }
321858
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
321859
+ function useRef3(val) {
321860
+ return useState3({ current: val })[0];
321861
+ }
321862
+
321863
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
321864
+ function useKeypress3(userHandler) {
321865
+ const signal = useRef3(userHandler);
321866
+ signal.current = userHandler;
321867
+ useEffect3((rl) => {
321868
+ let ignore = false;
321869
+ const handler = withUpdates3((_input, event) => {
321870
+ if (ignore)
321871
+ return;
321872
+ signal.current(event, rl);
321873
+ });
321874
+ rl.input.on("keypress", handler);
321875
+ return () => {
321876
+ ignore = true;
321877
+ rl.input.removeListener("keypress", handler);
321878
+ };
321879
+ }, []);
321880
+ }
321881
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
321882
+ var import_cli_width3 = __toESM(require_cli_width(), 1);
321883
+ var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
321884
+ function breakLines3(content, width) {
321885
+ return content.split(`
321886
+ `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
321887
+ `).map((str) => str.trimEnd())).join(`
321888
+ `);
321889
+ }
321890
+ function readlineWidth3() {
321891
+ return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
321892
+ }
321893
+
321894
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
321895
+ var import_mute_stream3 = __toESM(require_lib(), 1);
321896
+ import * as readline6 from "node:readline";
321897
+ import { AsyncResource as AsyncResource9 } from "node:async_hooks";
321898
+
321899
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
321900
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
321901
+ import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
321902
+ var height3 = (content) => content.split(`
321903
+ `).length;
321904
+ var lastLine3 = (content) => content.split(`
321905
+ `).pop() ?? "";
321906
+ function cursorDown3(n6) {
321907
+ return n6 > 0 ? import_ansi_escapes4.default.cursorDown(n6) : "";
321908
+ }
321909
+
321910
+ class ScreenManager3 {
321911
+ height = 0;
321912
+ extraLinesUnderPrompt = 0;
321913
+ cursorPos;
321914
+ rl;
321915
+ constructor(rl) {
321916
+ this.rl = rl;
321917
+ this.cursorPos = rl.getCursorPos();
321918
+ }
321919
+ write(content) {
321920
+ this.rl.output.unmute();
321921
+ this.rl.output.write(content);
321922
+ this.rl.output.mute();
321923
+ }
321924
+ render(content, bottomContent = "") {
321925
+ const promptLine = lastLine3(content);
321926
+ const rawPromptLine = stripVTControlCharacters4(promptLine);
321927
+ let prompt = rawPromptLine;
321928
+ if (this.rl.line.length > 0) {
321929
+ prompt = prompt.slice(0, -this.rl.line.length);
321930
+ }
321931
+ this.rl.setPrompt(prompt);
321932
+ this.cursorPos = this.rl.getCursorPos();
321933
+ const width = readlineWidth3();
321934
+ content = breakLines3(content, width);
321935
+ bottomContent = breakLines3(bottomContent, width);
321936
+ if (rawPromptLine.length % width === 0) {
321937
+ content += `
321938
+ `;
321939
+ }
321940
+ let output = content + (bottomContent ? `
321941
+ ` + bottomContent : "");
321942
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
321943
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
321944
+ if (bottomContentHeight > 0)
321945
+ output += import_ansi_escapes4.default.cursorUp(bottomContentHeight);
321946
+ output += import_ansi_escapes4.default.cursorTo(this.cursorPos.cols);
321947
+ this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes4.default.eraseLines(this.height) + output);
321948
+ this.extraLinesUnderPrompt = bottomContentHeight;
321949
+ this.height = height3(output);
321950
+ }
321951
+ checkCursorPos() {
321952
+ const cursorPos = this.rl.getCursorPos();
321953
+ if (cursorPos.cols !== this.cursorPos.cols) {
321954
+ this.write(import_ansi_escapes4.default.cursorTo(cursorPos.cols));
321955
+ this.cursorPos = cursorPos;
321956
+ }
321957
+ }
321958
+ done({ clearContent }) {
321959
+ this.rl.setPrompt("");
321960
+ let output = cursorDown3(this.extraLinesUnderPrompt);
321961
+ output += clearContent ? import_ansi_escapes4.default.eraseLines(this.height) : `
321962
+ `;
321963
+ output += import_ansi_escapes4.default.cursorShow;
321964
+ this.write(output);
321965
+ this.rl.close();
321966
+ }
321967
+ }
321968
+
321969
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
321970
+ class PromisePolyfill3 extends Promise {
321971
+ static withResolver() {
321972
+ let resolve6;
321973
+ let reject;
321974
+ const promise5 = new Promise((res, rej) => {
321975
+ resolve6 = res;
321976
+ reject = rej;
321977
+ });
321978
+ return { promise: promise5, resolve: resolve6, reject };
321979
+ }
321980
+ }
321981
+
321982
+ // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
321983
+ function getCallSites3() {
321984
+ const _prepareStackTrace = Error.prepareStackTrace;
321985
+ let result = [];
321986
+ try {
321987
+ Error.prepareStackTrace = (_5, callSites) => {
321988
+ const callSitesWithoutCurrent = callSites.slice(1);
321989
+ result = callSitesWithoutCurrent;
321990
+ return callSitesWithoutCurrent;
321991
+ };
321992
+ new Error().stack;
321993
+ } catch {
321994
+ return result;
321995
+ }
321996
+ Error.prepareStackTrace = _prepareStackTrace;
321997
+ return result;
321998
+ }
321999
+ function createPrompt3(view) {
322000
+ const callSites = getCallSites3();
322001
+ const prompt = (config5, context = {}) => {
322002
+ const { input = process.stdin, signal } = context;
322003
+ const cleanups = new Set;
322004
+ const output = new import_mute_stream3.default;
322005
+ output.pipe(context.output ?? process.stdout);
322006
+ const rl = readline6.createInterface({
322007
+ terminal: true,
322008
+ input,
322009
+ output
322010
+ });
322011
+ const screen = new ScreenManager3(rl);
322012
+ const { promise: promise5, resolve: resolve6, reject } = PromisePolyfill3.withResolver();
322013
+ const cancel3 = () => reject(new CancelPromptError3);
322014
+ if (signal) {
322015
+ const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
322016
+ if (signal.aborted) {
322017
+ abort();
322018
+ return Object.assign(promise5, { cancel: cancel3 });
322019
+ }
322020
+ signal.addEventListener("abort", abort);
322021
+ cleanups.add(() => signal.removeEventListener("abort", abort));
322022
+ }
322023
+ cleanups.add(onExit((code2, signal2) => {
322024
+ reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
322025
+ }));
322026
+ const sigint = () => reject(new ExitPromptError3(`User force closed the prompt with SIGINT`));
322027
+ rl.on("SIGINT", sigint);
322028
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
322029
+ const checkCursorPos = () => screen.checkCursorPos();
322030
+ rl.input.on("keypress", checkCursorPos);
322031
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
322032
+ return withHooks3(rl, (cycle) => {
322033
+ const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
322034
+ rl.on("close", hooksCleanup);
322035
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
322036
+ cycle(() => {
322037
+ try {
322038
+ const nextView = view(config5, (value4) => {
322039
+ setImmediate(() => resolve6(value4));
322040
+ });
322041
+ if (nextView === undefined) {
322042
+ const callerFilename = callSites[1]?.getFileName();
322043
+ throw new Error(`Prompt functions must return a string.
322044
+ at ${callerFilename}`);
322045
+ }
322046
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
322047
+ screen.render(content, bottomContent);
322048
+ effectScheduler3.run();
322049
+ } catch (error45) {
322050
+ reject(error45);
322051
+ }
322052
+ });
322053
+ return Object.assign(promise5.then((answer) => {
322054
+ effectScheduler3.clearAll();
322055
+ return answer;
322056
+ }, (error45) => {
322057
+ effectScheduler3.clearAll();
322058
+ throw error45;
322059
+ }).finally(() => {
322060
+ cleanups.forEach((cleanup) => cleanup());
322061
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
322062
+ output.end();
322063
+ }).then(() => promise5), { cancel: cancel3 });
322064
+ });
322065
+ };
322066
+ return prompt;
322067
+ }
320845
322068
  // ../../node_modules/@inquirer/password/dist/esm/index.js
320846
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
320847
- var esm_default5 = createPrompt((config5, done) => {
322069
+ var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
322070
+ var esm_default6 = createPrompt3((config5, done) => {
320848
322071
  const { validate: validate5 = () => true } = config5;
320849
- const theme = makeTheme(config5.theme);
320850
- const [status, setStatus] = useState("idle");
320851
- const [errorMsg, setError] = useState();
320852
- const [value4, setValue] = useState("");
320853
- const prefix = usePrefix({ status, theme });
320854
- useKeypress(async (key2, rl) => {
322072
+ const theme = makeTheme3(config5.theme);
322073
+ const [status, setStatus] = useState3("idle");
322074
+ const [errorMsg, setError] = useState3();
322075
+ const [value4, setValue] = useState3("");
322076
+ const prefix = usePrefix3({ status, theme });
322077
+ useKeypress3(async (key4, rl) => {
320855
322078
  if (status !== "idle") {
320856
322079
  return;
320857
322080
  }
320858
- if (isEnterKey(key2)) {
322081
+ if (isEnterKey3(key4)) {
320859
322082
  const answer = value4;
320860
322083
  setStatus("loading");
320861
322084
  const isValid = await validate5(answer);
@@ -320880,7 +322103,7 @@ var esm_default5 = createPrompt((config5, done) => {
320880
322103
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
320881
322104
  formattedValue = maskChar.repeat(value4.length);
320882
322105
  } else if (status !== "done") {
320883
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
322106
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes5.default.cursorHide}`;
320884
322107
  }
320885
322108
  if (status === "done") {
320886
322109
  formattedValue = theme.style.answer(formattedValue);
@@ -320902,7 +322125,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320902
322125
  return defaultAccessToken;
320903
322126
  }
320904
322127
  if (defaultAccessToken) {
320905
- const keep = await esm_default4({
322128
+ const keep = await esm_default5({
320906
322129
  message: "Do you want to use the existing application access token?",
320907
322130
  default: true
320908
322131
  });
@@ -320910,7 +322133,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320910
322133
  return defaultAccessToken;
320911
322134
  }
320912
322135
  }
320913
- const create2 = await esm_default4({
322136
+ const create2 = await esm_default5({
320914
322137
  message: "Do you want to create a new application access token?",
320915
322138
  default: false
320916
322139
  });
@@ -320978,7 +322201,7 @@ async function applicationAccessTokenPrompt(env2, application, settlemint, accep
320978
322201
  return aat;
320979
322202
  } catch (_error) {}
320980
322203
  }
320981
- return esm_default5({
322204
+ return esm_default6({
320982
322205
  message: "What is the application access token for your application in SettleMint? (format: sm_aat_...)",
320983
322206
  validate(value4) {
320984
322207
  try {
@@ -321010,7 +322233,7 @@ async function applicationPrompt(env2, applications, accept) {
321010
322233
  if (is_in_ci_default) {
321011
322234
  nothingSelectedError("application");
321012
322235
  }
321013
- const application = await esm_default3({
322236
+ const application = await esm_default4({
321014
322237
  message: "Which application do you want to connect to?",
321015
322238
  choices: applications.map((applications2) => ({
321016
322239
  name: `${applications2.name} (${applications2.uniqueName})`,
@@ -321123,7 +322346,7 @@ async function blockchainNodePrompt({
321123
322346
  }
321124
322347
  return item;
321125
322348
  }) : choices;
321126
- return esm_default3({
322349
+ return esm_default4({
321127
322350
  message: promptMessage ?? "Which blockchain node do you want to connect to?",
321128
322351
  choices: filteredChoices,
321129
322352
  default: defaultNode
@@ -321153,7 +322376,7 @@ async function blockchainNodeOrLoadBalancerPrompt({
321153
322376
  isRequired,
321154
322377
  defaultHandler: async ({ defaultService: defaultNode, choices }) => {
321155
322378
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: node }) => isRunning(node)) : choices;
321156
- return esm_default3({
322379
+ return esm_default4({
321157
322380
  message: promptMessage ?? "Which blockchain node or load balancer do you want to connect to?",
321158
322381
  choices: filteredChoices,
321159
322382
  default: defaultNode
@@ -321178,7 +322401,7 @@ async function blockscoutPrompt({
321178
322401
  envKey: "SETTLEMINT_BLOCKSCOUT",
321179
322402
  isRequired,
321180
322403
  defaultHandler: async ({ defaultService: defaultBlockscout, choices }) => {
321181
- return esm_default3({
322404
+ return esm_default4({
321182
322405
  message: "Which blockscout instance do you want to connect to?",
321183
322406
  choices,
321184
322407
  default: defaultBlockscout
@@ -321201,7 +322424,7 @@ async function customDeploymentPrompt({
321201
322424
  envKey: "SETTLEMINT_CUSTOM_DEPLOYMENT",
321202
322425
  isRequired,
321203
322426
  defaultHandler: async ({ defaultService: defaultCustomDeployment, choices }) => {
321204
- return esm_default3({
322427
+ return esm_default4({
321205
322428
  message: "Which Custom Deployment do you want to connect to?",
321206
322429
  choices,
321207
322430
  default: defaultCustomDeployment
@@ -321228,7 +322451,7 @@ async function hasuraPrompt({
321228
322451
  envKey: "SETTLEMINT_HASURA",
321229
322452
  isRequired,
321230
322453
  defaultHandler: async ({ defaultService: defaultHasura, choices }) => {
321231
- return esm_default3({
322454
+ return esm_default4({
321232
322455
  message: "Which Hasura instance do you want to connect to?",
321233
322456
  choices,
321234
322457
  default: defaultHasura
@@ -321252,7 +322475,7 @@ async function hdPrivateKeyPrompt({
321252
322475
  envKey: "SETTLEMINT_HD_PRIVATE_KEY",
321253
322476
  isRequired,
321254
322477
  defaultHandler: async ({ defaultService: defaultPrivateKey, choices }) => {
321255
- return esm_default3({
322478
+ return esm_default4({
321256
322479
  message: "Which HD Private Key do you want to use?",
321257
322480
  choices,
321258
322481
  default: defaultPrivateKey
@@ -321276,7 +322499,7 @@ async function ipfsPrompt({
321276
322499
  envKey: "SETTLEMINT_IPFS",
321277
322500
  isRequired,
321278
322501
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
321279
- return esm_default3({
322502
+ return esm_default4({
321280
322503
  message: "Which IPFS instance do you want to connect to?",
321281
322504
  choices,
321282
322505
  default: defaultStorage
@@ -321300,7 +322523,7 @@ async function minioPrompt({
321300
322523
  envKey: "SETTLEMINT_MINIO",
321301
322524
  isRequired,
321302
322525
  defaultHandler: async ({ defaultService: defaultStorage, choices }) => {
321303
- return esm_default3({
322526
+ return esm_default4({
321304
322527
  message: "Which MinIO instance do you want to connect to?",
321305
322528
  choices,
321306
322529
  default: defaultStorage
@@ -321324,7 +322547,7 @@ async function portalPrompt({
321324
322547
  envKey: "SETTLEMINT_PORTAL",
321325
322548
  isRequired,
321326
322549
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
321327
- return esm_default3({
322550
+ return esm_default4({
321328
322551
  message: "Which Smart Contract Portal instance do you want to connect to?",
321329
322552
  choices,
321330
322553
  default: defaultMiddleware
@@ -321353,7 +322576,7 @@ async function theGraphPrompt({
321353
322576
  isRequired,
321354
322577
  defaultHandler: async ({ defaultService: defaultMiddleware, choices }) => {
321355
322578
  const filteredChoices = filterRunningOnly ? choices.filter(({ value: middleware }) => isRunning(middleware)) : choices;
321356
- return esm_default3({
322579
+ return esm_default4({
321357
322580
  message: "Which The Graph instance do you want to connect to?",
321358
322581
  choices: filteredChoices,
321359
322582
  default: defaultMiddleware
@@ -321400,7 +322623,7 @@ async function instancePrompt({
321400
322623
  if (knownInstances.length === 0) {
321401
322624
  note("No instances found. Run `settlemint login` to configure an instance.", "warn");
321402
322625
  }
321403
- return esm_default3({
322626
+ return esm_default4({
321404
322627
  message: "What instance do you want to connect to?",
321405
322628
  choices: [
321406
322629
  ...knownInstances.map((instance) => ({
@@ -321436,7 +322659,7 @@ async function serviceSecretPrompt({
321436
322659
  return defaultSecret;
321437
322660
  }
321438
322661
  if (defaultSecret) {
321439
- const keep = await esm_default4({
322662
+ const keep = await esm_default5({
321440
322663
  message: `Do you want to use the existing ${name3} secret?`,
321441
322664
  default: true
321442
322665
  });
@@ -321444,7 +322667,7 @@ async function serviceSecretPrompt({
321444
322667
  return defaultSecret;
321445
322668
  }
321446
322669
  }
321447
- const serviceSecret = await esm_default5({
322670
+ const serviceSecret = await esm_default6({
321448
322671
  message
321449
322672
  });
321450
322673
  return serviceSecret || undefined;
@@ -321496,7 +322719,7 @@ async function workspacePrompt(env2, workspaces, accept) {
321496
322719
  if (is_in_ci_default) {
321497
322720
  nothingSelectedError("workspace");
321498
322721
  }
321499
- const workspace = await esm_default3({
322722
+ const workspace = await esm_default4({
321500
322723
  message: "Which workspace do you want to connect to?",
321501
322724
  choices: workspaces.map((workspace2) => ({
321502
322725
  name: `${workspace2.name} (${workspace2.uniqueName})`,
@@ -322338,7 +323561,7 @@ async function templatePrompt(platformConfig, argument) {
322338
323561
  }
322339
323562
  return template2;
322340
323563
  }
322341
- const template = await esm_default3({
323564
+ const template = await esm_default4({
322342
323565
  message: "Which template do you want to use?",
322343
323566
  choices: [
322344
323567
  ...kits.map((template2) => ({
@@ -322558,7 +323781,7 @@ var basename2 = function(p5, extension) {
322558
323781
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
322559
323782
  };
322560
323783
  // ../../node_modules/defu/dist/defu.mjs
322561
- function isPlainObject7(value4) {
323784
+ function isPlainObject9(value4) {
322562
323785
  if (value4 === null || typeof value4 !== "object") {
322563
323786
  return false;
322564
323787
  }
@@ -322575,27 +323798,27 @@ function isPlainObject7(value4) {
322575
323798
  return true;
322576
323799
  }
322577
323800
  function _defu(baseObject, defaults4, namespace = ".", merger) {
322578
- if (!isPlainObject7(defaults4)) {
323801
+ if (!isPlainObject9(defaults4)) {
322579
323802
  return _defu(baseObject, {}, namespace, merger);
322580
323803
  }
322581
323804
  const object5 = Object.assign({}, defaults4);
322582
- for (const key2 in baseObject) {
322583
- if (key2 === "__proto__" || key2 === "constructor") {
323805
+ for (const key4 in baseObject) {
323806
+ if (key4 === "__proto__" || key4 === "constructor") {
322584
323807
  continue;
322585
323808
  }
322586
- const value4 = baseObject[key2];
323809
+ const value4 = baseObject[key4];
322587
323810
  if (value4 === null || value4 === undefined) {
322588
323811
  continue;
322589
323812
  }
322590
- if (merger && merger(object5, key2, value4, namespace)) {
323813
+ if (merger && merger(object5, key4, value4, namespace)) {
322591
323814
  continue;
322592
323815
  }
322593
- if (Array.isArray(value4) && Array.isArray(object5[key2])) {
322594
- object5[key2] = [...value4, ...object5[key2]];
322595
- } else if (isPlainObject7(value4) && isPlainObject7(object5[key2])) {
322596
- object5[key2] = _defu(value4, object5[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
323816
+ if (Array.isArray(value4) && Array.isArray(object5[key4])) {
323817
+ object5[key4] = [...value4, ...object5[key4]];
323818
+ } else if (isPlainObject9(value4) && isPlainObject9(object5[key4])) {
323819
+ object5[key4] = _defu(value4, object5[key4], (namespace ? `${namespace}.` : "") + key4.toString(), merger);
322597
323820
  } else {
322598
- object5[key2] = value4;
323821
+ object5[key4] = value4;
322599
323822
  }
322600
323823
  }
322601
323824
  return object5;
@@ -322604,15 +323827,15 @@ function createDefu(merger) {
322604
323827
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
322605
323828
  }
322606
323829
  var defu = createDefu();
322607
- var defuFn = createDefu((object5, key2, currentValue) => {
322608
- if (object5[key2] !== undefined && typeof currentValue === "function") {
322609
- object5[key2] = currentValue(object5[key2]);
323830
+ var defuFn = createDefu((object5, key4, currentValue) => {
323831
+ if (object5[key4] !== undefined && typeof currentValue === "function") {
323832
+ object5[key4] = currentValue(object5[key4]);
322610
323833
  return true;
322611
323834
  }
322612
323835
  });
322613
- var defuArrayFn = createDefu((object5, key2, currentValue) => {
322614
- if (Array.isArray(object5[key2]) && typeof currentValue === "function") {
322615
- object5[key2] = currentValue(object5[key2]);
323836
+ var defuArrayFn = createDefu((object5, key4, currentValue) => {
323837
+ if (Array.isArray(object5[key4]) && typeof currentValue === "function") {
323838
+ object5[key4] = currentValue(object5[key4]);
322616
323839
  return true;
322617
323840
  }
322618
323841
  });
@@ -325822,11 +327045,11 @@ function cacheDirectory() {
325822
327045
  }
325823
327046
  function normalizeHeaders(headers = {}) {
325824
327047
  const normalized = {};
325825
- for (const [key2, value4] of Object.entries(headers)) {
327048
+ for (const [key4, value4] of Object.entries(headers)) {
325826
327049
  if (!value4) {
325827
327050
  continue;
325828
327051
  }
325829
- normalized[key2.toLowerCase()] = value4;
327052
+ normalized[key4.toLowerCase()] = value4;
325830
327053
  }
325831
327054
  return normalized;
325832
327055
  }
@@ -326124,7 +327347,7 @@ function createCommand2() {
326124
327347
  await mkdir6(projectDir, { recursive: true });
326125
327348
  }
326126
327349
  if (!await isEmpty(projectDir)) {
326127
- const confirmEmpty = await esm_default4({
327350
+ const confirmEmpty = await esm_default5({
326128
327351
  message: `The folder ${projectDir} already exists. Do you want to empty it?`,
326129
327352
  default: false
326130
327353
  });
@@ -326377,7 +327600,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326377
327600
  return defaultPersonalAccessToken;
326378
327601
  }
326379
327602
  if (existingConfig && defaultPersonalAccessToken) {
326380
- const useExisting = await esm_default4({
327603
+ const useExisting = await esm_default5({
326381
327604
  message: `Do you want to use your existing personal access token for ${instance}?`,
326382
327605
  default: true
326383
327606
  });
@@ -326385,7 +327608,7 @@ async function personalAccessTokenPrompt(env2, instance, accept) {
326385
327608
  return defaultPersonalAccessToken;
326386
327609
  }
326387
327610
  }
326388
- return esm_default5({
327611
+ return esm_default6({
326389
327612
  message: "What is your personal access token in SettleMint? (format: sm_pat_...)",
326390
327613
  validate(value4) {
326391
327614
  try {
@@ -326511,7 +327734,7 @@ function logoutCommand() {
326511
327734
  }
326512
327735
  const env2 = await loadEnv(false, false);
326513
327736
  const defaultInstance = env2.SETTLEMINT_INSTANCE;
326514
- const instance = await esm_default3({
327737
+ const instance = await esm_default4({
326515
327738
  message: "Select the instance to logout from:",
326516
327739
  choices: instances.map((instance2) => ({
326517
327740
  value: instance2,
@@ -326532,7 +327755,7 @@ async function pincodeVerificationPrompt(verificationChallenges) {
326532
327755
  if (verificationChallenges.length === 1) {
326533
327756
  return verificationChallenges[0];
326534
327757
  }
326535
- const verificationChallenge = await esm_default3({
327758
+ const verificationChallenge = await esm_default4({
326536
327759
  message: "Which pincode verification do you want to use?",
326537
327760
  choices: verificationChallenges.map((verificationChallenge2) => ({
326538
327761
  name: verificationChallenge2.name,
@@ -326596,7 +327819,7 @@ function pincodeVerificationResponseCommand() {
326596
327819
  nodeId: selectedBlockchainNode.id
326597
327820
  });
326598
327821
  const verificationChallenge = await pincodeVerificationPrompt(pincodeVerificationChallenges);
326599
- const pincode = await esm_default5({
327822
+ const pincode = await esm_default6({
326600
327823
  message: "Enter your pincode",
326601
327824
  validate(value4) {
326602
327825
  if (!value4.trim()) {
@@ -326749,7 +327972,7 @@ async function providerPrompt(platformConfig, argument) {
326749
327972
  if (possibleProviders.length === 1) {
326750
327973
  return possibleProviders[0];
326751
327974
  }
326752
- const provider = await esm_default3({
327975
+ const provider = await esm_default4({
326753
327976
  message: "Which provider do you want to use?",
326754
327977
  choices: platformConfig.deploymentEngineTargets.map((target) => ({
326755
327978
  name: target.name,
@@ -326780,7 +328003,7 @@ async function regionPrompt(provider, argument) {
326780
328003
  if (possibleRegions.length === 1) {
326781
328004
  return possibleRegions[0];
326782
328005
  }
326783
- const region = await esm_default3({
328006
+ const region = await esm_default4({
326784
328007
  message: "Which region do you want to use?",
326785
328008
  choices: provider.clusters.map((cluster) => ({
326786
328009
  name: cluster.name,
@@ -327306,7 +328529,7 @@ async function blockchainNetworkPrompt({
327306
328529
  envKey: "SETTLEMINT_BLOCKCHAIN_NETWORK",
327307
328530
  isRequired,
327308
328531
  defaultHandler: async ({ defaultService: defaultNetwork, choices }) => {
327309
- return esm_default3({
328532
+ return esm_default4({
327310
328533
  message: "Which blockchain network do you want to connect to?",
327311
328534
  choices,
327312
328535
  default: defaultNetwork
@@ -329071,7 +330294,7 @@ function jsonOutput(data) {
329071
330294
  var composer = require_composer();
329072
330295
  var Document = require_Document();
329073
330296
  var Schema = require_Schema();
329074
- var errors4 = require_errors3();
330297
+ var errors6 = require_errors3();
329075
330298
  var Alias = require_Alias();
329076
330299
  var identity2 = require_identity();
329077
330300
  var Pair = require_Pair();
@@ -329087,9 +330310,9 @@ var visit2 = require_visit();
329087
330310
  var $Composer = composer.Composer;
329088
330311
  var $Document = Document.Document;
329089
330312
  var $Schema = Schema.Schema;
329090
- var $YAMLError = errors4.YAMLError;
329091
- var $YAMLParseError = errors4.YAMLParseError;
329092
- var $YAMLWarning = errors4.YAMLWarning;
330313
+ var $YAMLError = errors6.YAMLError;
330314
+ var $YAMLParseError = errors6.YAMLParseError;
330315
+ var $YAMLWarning = errors6.YAMLWarning;
329093
330316
  var $Alias = Alias.Alias;
329094
330317
  var $isAlias = identity2.isAlias;
329095
330318
  var $isCollection = identity2.isCollection;
@@ -329608,7 +330831,7 @@ async function useCasePrompt(platformConfig, argument) {
329608
330831
  if (selectableUseCases.length === 1) {
329609
330832
  return selectableUseCases[0];
329610
330833
  }
329611
- const useCase = await esm_default3({
330834
+ const useCase = await esm_default4({
329612
330835
  message: "Which use case do you want to use?",
329613
330836
  choices: selectableUseCases.map((useCase2) => ({
329614
330837
  name: formatUseCaseName(useCase2.name),
@@ -329666,7 +330889,7 @@ function createCommand4() {
329666
330889
  const targetDir = formatTargetDir(name3);
329667
330890
  const projectDir = join9(process.cwd(), targetDir);
329668
330891
  if (await exists3(projectDir) && !await isEmpty(projectDir)) {
329669
- const confirmEmpty = await esm_default4({
330892
+ const confirmEmpty = await esm_default5({
329670
330893
  message: `The folder ${projectDir} already exists. Do you want to delete it?`,
329671
330894
  default: false
329672
330895
  });
@@ -329696,11 +330919,11 @@ function createCommand4() {
329696
330919
 
329697
330920
  // src/utils/commands/passthrough-options.ts
329698
330921
  function mapPassthroughOptions(options, command) {
329699
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
330922
+ const optionArgs = Object.entries(options).map(([key4, value4]) => {
329700
330923
  if (value4 === true) {
329701
- return `--${key2}`;
330924
+ return `--${key4}`;
329702
330925
  }
329703
- return `--${key2}=${value4}`;
330926
+ return `--${key4}=${value4}`;
329704
330927
  });
329705
330928
  return [...optionArgs, ...command.args];
329706
330929
  }
@@ -329976,7 +331199,7 @@ async function addressPrompt({
329976
331199
  note(`Private key with address '${defaultAddress}' is not activated on the node '${node.uniqueName}'.
329977
331200
  Please select another key or activate this key on the node and try again.`, "warn");
329978
331201
  }
329979
- const address = await esm_default3({
331202
+ const address = await esm_default4({
329980
331203
  message: "Which private key do you want to deploy from?",
329981
331204
  choices: possiblePrivateKeys.map(({ address: address2, name: name3 }) => ({
329982
331205
  name: name3,
@@ -330929,4 +332152,4 @@ async function sdkCliCommand(argv = process.argv) {
330929
332152
  // src/cli.ts
330930
332153
  sdkCliCommand();
330931
332154
 
330932
- //# debugId=4C214F3AAEF951A564756E2164756E21
332155
+ //# debugId=DDE3E5A91C41541164756E2164756E21