@settlemint/sdk-cli 2.5.1-pr5f3d70bb → 2.5.1-pr636b12f5

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 +562 -1474
  2. package/dist/cli.js.map +6 -34
  3. package/package.json +7 -7
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 colors2 = createColors(sys2);
161745
+ const colors3 = 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(colors2.blue(name2), sys2.newLine);
161766
+ text.push(colors3.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 ? colors2.blue(curLeft) : curLeft;
161811
+ curLeft = colorLeft ? colors3.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 colors2 = createColors(sys2);
161923
+ const colors3 = createColors(sys2);
161924
161924
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version4)}`)];
161925
- output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161925
+ output.push(colors3.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(" " + colors2.blue(example2) + sys2.newLine);
161946
+ output.push(" " + colors3.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 colors2 = createColors(sys2);
161969
+ const colors3 = 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 = colors2.blueBackground("".padStart(tsIconLength));
161974
- const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
161973
+ const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
161974
+ const tsIconSecondLine = colors3.blueBackground(colors3.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;
@@ -232832,16 +232832,16 @@ var init_lru = __esm(() => {
232832
232832
  });
232833
232833
  this.maxSize = size2;
232834
232834
  }
232835
- get(key4) {
232836
- const value4 = super.get(key4);
232837
- if (super.has(key4) && value4 !== undefined) {
232838
- this.delete(key4);
232839
- super.set(key4, 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(key4, value4) {
232844
- super.set(key4, 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, (key4, 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(key4, 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(([key4, value4]) => {
234002
+ const entries = Object.entries(args).map(([key3, value4]) => {
234003
234003
  if (value4 === undefined || value4 === false)
234004
234004
  return null;
234005
- return [key4, value4];
234005
+ return [key3, value4];
234006
234006
  }).filter(Boolean);
234007
- const maxLength = entries.reduce((acc, [key4]) => Math.max(acc, key4.length), 0);
234008
- return entries.map(([key4, value4]) => ` ${`${key4}:`.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, key4, message) => new HMAC(hash2, key4).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 key4 = 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(key4.length > blockLen ? hash2.create().update(key4).digest() : key4);
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, key4) => new HMAC(hash2, key4);
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(key4, fieldOrder, isLE2 = false) {
235583
- const len = key4.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(key4) : bytesToNumberBE(key4);
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(key4) {
235891
+ function normPrivateKeyToScalar(key3) {
235892
235892
  let num;
235893
- if (typeof key4 === "bigint") {
235894
- num = key4;
235893
+ if (typeof key3 === "bigint") {
235894
+ num = key3;
235895
235895
  } else {
235896
- let bytes = ensureBytes("private key", key4);
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 key4}`);
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 || ((key4, ...msgs) => hmac(ecdsaOpts.hash, key4, 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 key4 of keys) {
237468
- if (key4 in value_)
237469
- value4[key4] = value_[key4];
237470
- if (formatted2[key4] && typeof formatted2[key4] === "object" && !Array.isArray(formatted2[key4]))
237471
- extract_(formatted2[key4]);
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, (key4, value5) => {
237875
+ return JSON.stringify(value4, (key3, value5) => {
237876
237876
  if (typeof replacer === "function")
237877
- return replacer(key4, value5);
237877
+ return replacer(key3, value5);
237878
237878
  if (typeof value5 === "bigint")
237879
237879
  return value5.toString() + bigIntSuffix;
237880
237880
  return value5;
@@ -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_(key5, node, visitor, path7) {
239301
- const ctrl = callVisitor(key5, node, visitor, path7);
239300
+ function visit_(key3, node, visitor, path7) {
239301
+ const ctrl = callVisitor(key3, node, visitor, path7);
239302
239302
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239303
- replaceNode(key5, path7, ctrl);
239304
- return visit_(key5, ctrl, visitor, path7);
239303
+ replaceNode(key3, path7, ctrl);
239304
+ return visit_(key3, 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_(key5, node, visitor, path7) {
239349
- const ctrl = await callVisitor(key5, node, visitor, path7);
239348
+ async function visitAsync_(key3, node, visitor, path7) {
239349
+ const ctrl = await callVisitor(key3, node, visitor, path7);
239350
239350
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
239351
- replaceNode(key5, path7, ctrl);
239352
- return visitAsync_(key5, ctrl, visitor, path7);
239351
+ replaceNode(key3, path7, ctrl);
239352
+ return visitAsync_(key3, 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(key5, node, visitor, path7) {
239402
+ function callVisitor(key3, node, visitor, path7) {
239403
239403
  if (typeof visitor === "function")
239404
- return visitor(key5, node, path7);
239404
+ return visitor(key3, node, path7);
239405
239405
  if (identity2.isMap(node))
239406
- return visitor.Map?.(key5, node, path7);
239406
+ return visitor.Map?.(key3, node, path7);
239407
239407
  if (identity2.isSeq(node))
239408
- return visitor.Seq?.(key5, node, path7);
239408
+ return visitor.Seq?.(key3, node, path7);
239409
239409
  if (identity2.isPair(node))
239410
- return visitor.Pair?.(key5, node, path7);
239410
+ return visitor.Pair?.(key3, node, path7);
239411
239411
  if (identity2.isScalar(node))
239412
- return visitor.Scalar?.(key5, node, path7);
239412
+ return visitor.Scalar?.(key3, node, path7);
239413
239413
  if (identity2.isAlias(node))
239414
- return visitor.Alias?.(key5, node, path7);
239414
+ return visitor.Alias?.(key3, node, path7);
239415
239415
  return;
239416
239416
  }
239417
- function replaceNode(key5, path7, node) {
239417
+ function replaceNode(key3, path7, node) {
239418
239418
  const parent = path7[path7.length - 1];
239419
239419
  if (identity2.isCollection(parent)) {
239420
- parent.items[key5] = node;
239420
+ parent.items[key3] = node;
239421
239421
  } else if (identity2.isPair(parent)) {
239422
- if (key5 === "key")
239422
+ if (key3 === "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, key5, val) {
239653
+ function applyReviver(reviver, obj, key3, 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, key5, val);
239693
+ return reviver.call(obj, key3, 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 [key5, ...rest] = path7;
240023
- const node = this.get(key5, true);
240022
+ const [key3, ...rest] = path7;
240023
+ const node = this.get(key3, true);
240024
240024
  if (identity2.isCollection(node))
240025
240025
  node.addIn(rest, value4);
240026
240026
  else if (node === undefined && this.schema)
240027
- this.set(key5, collectionFromPath(this.schema, rest, value4));
240027
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
240028
240028
  else
240029
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
240029
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240030
240030
  }
240031
240031
  }
240032
240032
  deleteIn(path7) {
240033
- const [key5, ...rest] = path7;
240033
+ const [key3, ...rest] = path7;
240034
240034
  if (rest.length === 0)
240035
- return this.delete(key5);
240036
- const node = this.get(key5, true);
240035
+ return this.delete(key3);
240036
+ const node = this.get(key3, true);
240037
240037
  if (identity2.isCollection(node))
240038
240038
  return node.deleteIn(rest);
240039
240039
  else
240040
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
240040
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
240041
240041
  }
240042
240042
  getIn(path7, keepScalar) {
240043
- const [key5, ...rest] = path7;
240044
- const node = this.get(key5, true);
240043
+ const [key3, ...rest] = path7;
240044
+ const node = this.get(key3, 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 [key5, ...rest] = path7;
240059
+ const [key3, ...rest] = path7;
240060
240060
  if (rest.length === 0)
240061
- return this.has(key5);
240062
- const node = this.get(key5, true);
240061
+ return this.has(key3);
240062
+ const node = this.get(key3, true);
240063
240063
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
240064
240064
  }
240065
240065
  setIn(path7, value4) {
240066
- const [key5, ...rest] = path7;
240066
+ const [key3, ...rest] = path7;
240067
240067
  if (rest.length === 0) {
240068
- this.set(key5, value4);
240068
+ this.set(key3, value4);
240069
240069
  } else {
240070
- const node = this.get(key5, true);
240070
+ const node = this.get(key3, true);
240071
240071
  if (identity2.isCollection(node))
240072
240072
  node.setIn(rest, value4);
240073
240073
  else if (node === undefined && this.schema)
240074
- this.set(key5, collectionFromPath(this.schema, rest, value4));
240074
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
240075
240075
  else
240076
- throw new Error(`Expected YAML collection at ${key5}. Remaining path: ${rest}`);
240076
+ throw new Error(`Expected YAML collection at ${key3}. 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: key5, value: value4 }, ctx, onComment, onChompKeep) {
240663
+ function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
240664
240664
  const { allNullValues, doc: doc2, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
240665
- let keyComment = identity2.isNode(key5) && key5.comment || null;
240665
+ let keyComment = identity2.isNode(key3) && key3.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(key5) || !identity2.isNode(key5) && typeof key5 === "object") {
240670
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "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 && (!key5 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key5) || (identity2.isScalar(key5) ? key5.type === Scalar.Scalar.BLOCK_FOLDED || key5.type === Scalar.Scalar.BLOCK_LITERAL : typeof key5 === "object"));
240675
+ let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "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(key5, ctx, () => keyCommentDone = true, () => chompKeep = true);
240683
+ let str = stringify5.stringify(key3, 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, key5) => (merge7.identify(key5) || identity2.isScalar(key5) && (!key5.type || key5.type === Scalar.Scalar.PLAIN) && merge7.identify(key5.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge7.tag && tag.default);
240827
+ var isMergeKey = (ctx, key3) => (merge7.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge7.identify(key3.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 [key5, value5] of srcMap) {
240844
+ for (const [key3, value5] of srcMap) {
240845
240845
  if (map7 instanceof Map) {
240846
- if (!map7.has(key5))
240847
- map7.set(key5, value5);
240846
+ if (!map7.has(key3))
240847
+ map7.set(key3, value5);
240848
240848
  } else if (map7 instanceof Set) {
240849
- map7.add(key5);
240850
- } else if (!Object.prototype.hasOwnProperty.call(map7, key5)) {
240851
- Object.defineProperty(map7, key5, {
240849
+ map7.add(key3);
240850
+ } else if (!Object.prototype.hasOwnProperty.call(map7, key3)) {
240851
+ Object.defineProperty(map7, key3, {
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: key5, value: value4 }) {
240874
- if (identity2.isNode(key5) && key5.addToJSMap)
240875
- key5.addToJSMap(ctx, map7, value4);
240876
- else if (merge7.isMergeKey(ctx, key5))
240873
+ function addPairToJSMap(ctx, map7, { key: key3, value: value4 }) {
240874
+ if (identity2.isNode(key3) && key3.addToJSMap)
240875
+ key3.addToJSMap(ctx, map7, value4);
240876
+ else if (merge7.isMergeKey(ctx, key3))
240877
240877
  merge7.addMergeToJSMap(ctx, map7, value4);
240878
240878
  else {
240879
- const jsKey = toJS.toJS(key5, "", ctx);
240879
+ const jsKey = toJS.toJS(key3, "", 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(key5, jsKey, ctx);
240885
+ const stringKey = stringifyKey(key3, 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(key5, jsKey, ctx) {
240900
+ function stringifyKey(key3, 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(key5) && ctx?.doc) {
240905
+ if (identity2.isNode(key3) && 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 = key5.toString(strCtx);
240912
+ const strKey = key3.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(key5, value4, ctx) {
240934
- const k6 = createNode.createNode(key5, undefined, ctx);
240933
+ function createPair(key3, value4, ctx) {
240934
+ const k6 = createNode.createNode(key3, 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(key5, value4 = null) {
240940
+ constructor(key3, value4 = null) {
240941
240941
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
240942
- this.key = key5;
240942
+ this.key = key3;
240943
240943
  this.value = value4;
240944
240944
  }
240945
240945
  clone(schema) {
240946
- let { key: key5, value: value4 } = this;
240947
- if (identity2.isNode(key5))
240948
- key5 = key5.clone(schema);
240946
+ let { key: key3, value: value4 } = this;
240947
+ if (identity2.isNode(key3))
240948
+ key3 = key3.clone(schema);
240949
240949
  if (identity2.isNode(value4))
240950
240950
  value4 = value4.clone(schema);
240951
- return new Pair(key5, value4);
240951
+ return new Pair(key3, 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, key5) {
241119
- const k6 = identity2.isScalar(key5) ? key5.value : key5;
241118
+ function findPair(items, key3) {
241119
+ const k6 = identity2.isScalar(key3) ? key3.value : key3;
241120
241120
  for (const it2 of items) {
241121
241121
  if (identity2.isPair(it2)) {
241122
- if (it2.key === key5 || it2.key === k6)
241122
+ if (it2.key === key3 || 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 = (key5, value4) => {
241142
+ const add = (key3, value4) => {
241143
241143
  if (typeof replacer === "function")
241144
- value4 = replacer.call(obj, key5, value4);
241145
- else if (Array.isArray(replacer) && !replacer.includes(key5))
241144
+ value4 = replacer.call(obj, key3, value4);
241145
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
241146
241146
  return;
241147
241147
  if (value4 !== undefined || keepUndefined)
241148
- map7.items.push(Pair.createPair(key5, value4, ctx));
241148
+ map7.items.push(Pair.createPair(key3, value4, ctx));
241149
241149
  };
241150
241150
  if (obj instanceof Map) {
241151
- for (const [key5, value4] of obj)
241152
- add(key5, value4);
241151
+ for (const [key3, value4] of obj)
241152
+ add(key3, value4);
241153
241153
  } else if (obj && typeof obj === "object") {
241154
- for (const key5 of Object.keys(obj))
241155
- add(key5, obj[key5]);
241154
+ for (const key3 of Object.keys(obj))
241155
+ add(key3, obj[key3]);
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(key5) {
241190
- const it2 = findPair(this.items, key5);
241189
+ delete(key3) {
241190
+ const it2 = findPair(this.items, key3);
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(key5, keepScalar) {
241197
- const it2 = findPair(this.items, key5);
241196
+ get(key3, keepScalar) {
241197
+ const it2 = findPair(this.items, key3);
241198
241198
  const node = it2?.value;
241199
241199
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
241200
241200
  }
241201
- has(key5) {
241202
- return !!findPair(this.items, key5);
241201
+ has(key3) {
241202
+ return !!findPair(this.items, key3);
241203
241203
  }
241204
- set(key5, value4) {
241205
- this.add(new Pair.Pair(key5, value4), true);
241204
+ set(key3, value4) {
241205
+ this.add(new Pair.Pair(key3, 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(key5) {
241277
- const idx = asItemIndex(key5);
241276
+ delete(key3) {
241277
+ const idx = asItemIndex(key3);
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(key5, keepScalar) {
241284
- const idx = asItemIndex(key5);
241283
+ get(key3, keepScalar) {
241284
+ const idx = asItemIndex(key3);
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(key5) {
241291
- const idx = asItemIndex(key5);
241290
+ has(key3) {
241291
+ const idx = asItemIndex(key3);
241292
241292
  return typeof idx === "number" && idx < this.items.length;
241293
241293
  }
241294
- set(key5, value4) {
241295
- const idx = asItemIndex(key5);
241294
+ set(key3, value4) {
241295
+ const idx = asItemIndex(key3);
241296
241296
  if (typeof idx !== "number")
241297
- throw new Error(`Expected a valid index, not ${key5}.`);
241297
+ throw new Error(`Expected a valid index, not ${key3}.`);
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 key5 = obj instanceof Set ? it2 : String(i7++);
241332
- it2 = replacer.call(obj, key5, it2);
241331
+ const key3 = obj instanceof Set ? it2 : String(i7++);
241332
+ it2 = replacer.call(obj, key3, 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(key5) {
241341
- let idx = identity2.isScalar(key5) ? key5.value : key5;
241340
+ function asItemIndex(key3) {
241341
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
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 key5, value4;
241714
+ let key3, value4;
241715
241715
  if (Array.isArray(it2)) {
241716
241716
  if (it2.length === 2) {
241717
- key5 = it2[0];
241717
+ key3 = 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
- key5 = keys[0];
241725
- value4 = it2[key5];
241724
+ key3 = keys[0];
241725
+ value4 = it2[key3];
241726
241726
  } else {
241727
241727
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
241728
241728
  }
241729
241729
  } else {
241730
- key5 = it2;
241730
+ key3 = it2;
241731
241731
  }
241732
- pairs2.items.push(Pair.createPair(key5, value4, ctx));
241732
+ pairs2.items.push(Pair.createPair(key3, 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 key5, value4;
241773
+ let key3, value4;
241774
241774
  if (identity2.isPair(pair)) {
241775
- key5 = toJS.toJS(pair.key, "", ctx);
241776
- value4 = toJS.toJS(pair.value, key5, ctx);
241775
+ key3 = toJS.toJS(pair.key, "", ctx);
241776
+ value4 = toJS.toJS(pair.value, key3, ctx);
241777
241777
  } else {
241778
- key5 = toJS.toJS(pair, "", ctx);
241778
+ key3 = toJS.toJS(pair, "", ctx);
241779
241779
  }
241780
- if (map7.has(key5))
241780
+ if (map7.has(key3))
241781
241781
  throw new Error("Ordered maps must not include duplicate keys");
241782
- map7.set(key5, value4);
241782
+ map7.set(key3, 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: key5 } of pairs$1.items) {
241804
- if (identity2.isScalar(key5)) {
241805
- if (seenKeys.includes(key5.value)) {
241806
- onError(`Ordered maps must not include duplicate keys: ${key5.value}`);
241803
+ for (const { key: key3 } of pairs$1.items) {
241804
+ if (identity2.isScalar(key3)) {
241805
+ if (seenKeys.includes(key3.value)) {
241806
+ onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
241807
241807
  } else {
241808
- seenKeys.push(key5.value);
241808
+ seenKeys.push(key3.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(key5) {
241982
+ add(key3) {
241983
241983
  let pair;
241984
- if (identity2.isPair(key5))
241985
- pair = key5;
241986
- else if (key5 && typeof key5 === "object" && "key" in key5 && "value" in key5 && key5.value === null)
241987
- pair = new Pair.Pair(key5.key, null);
241984
+ if (identity2.isPair(key3))
241985
+ pair = key3;
241986
+ else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
241987
+ pair = new Pair.Pair(key3.key, null);
241988
241988
  else
241989
- pair = new Pair.Pair(key5, null);
241989
+ pair = new Pair.Pair(key3, 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(key5, keepPair) {
241995
- const pair = YAMLMap.findPair(this.items, key5);
241994
+ get(key3, keepPair) {
241995
+ const pair = YAMLMap.findPair(this.items, key3);
241996
241996
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
241997
241997
  }
241998
- set(key5, value4) {
241998
+ set(key3, 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, key5);
242001
+ const prev = YAMLMap.findPair(this.items, key3);
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(key5));
242005
+ this.items.push(new Pair.Pair(key3));
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((key5) => key5 !== "yaml11").map((key5) => JSON.stringify(key5)).join(", ");
242240
+ const keys = Array.from(schemas3.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).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((key5) => JSON.stringify(key5)).join(", ");
242256
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).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(key5, value4, options = {}) {
242492
- const k6 = this.createNode(key5, null, options);
242491
+ createPair(key3, value4, options = {}) {
242492
+ const k6 = this.createNode(key3, null, options);
242493
242493
  const v7 = this.createNode(value4, null, options);
242494
242494
  return new Pair.Pair(k6, v7);
242495
242495
  }
242496
- delete(key5) {
242497
- return assertCollection(this.contents) ? this.contents.delete(key5) : false;
242496
+ delete(key3) {
242497
+ return assertCollection(this.contents) ? this.contents.delete(key3) : 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(key5, keepScalar) {
242509
- return identity2.isCollection(this.contents) ? this.contents.get(key5, keepScalar) : undefined;
242508
+ get(key3, keepScalar) {
242509
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, 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(key5) {
242517
- return identity2.isCollection(this.contents) ? this.contents.has(key5) : false;
242516
+ has(key3) {
242517
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : 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(key5, value4) {
242524
+ set(key3, value4) {
242525
242525
  if (this.contents == null) {
242526
- this.contents = Collection.collectionFromPath(this.schema, [key5], value4);
242526
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
242527
242527
  } else if (assertCollection(this.contents)) {
242528
- this.contents.set(key5, value4);
242528
+ this.contents.set(key3, 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(key5) {
242811
- if (!key5)
242810
+ function containsNewline(key3) {
242811
+ if (!key3)
242812
242812
  return null;
242813
- switch (key5.type) {
242813
+ switch (key3.type) {
242814
242814
  case "alias":
242815
242815
  case "scalar":
242816
242816
  case "double-quoted-scalar":
242817
242817
  case "single-quoted-scalar":
242818
- if (key5.source.includes(`
242818
+ if (key3.source.includes(`
242819
242819
  `))
242820
242820
  return true;
242821
- if (key5.end) {
242822
- for (const st2 of key5.end)
242821
+ if (key3.end) {
242822
+ for (const st2 of key3.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 key5.items) {
242828
+ for (const it2 of key3.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: key5, sep: sep5, value: value4 } = collItem;
242893
+ const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
242894
242894
  const keyProps = resolveProps.resolveProps(start3, {
242895
242895
  indicator: "explicit-key-ind",
242896
- next: key5 ?? sep5?.[0],
242896
+ next: key3 ?? 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 (key5) {
242905
- if (key5.type === "block-seq")
242904
+ if (key3) {
242905
+ if (key3.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 key5 && key5.indent !== bm.indent)
242907
+ else if ("indent" in key3 && key3.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(key5)) {
242922
- onError(key5 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
242921
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
242922
+ onError(key3 ?? 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 = key5 ? composeNode(ctx, key5, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242929
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
242930
242930
  if (ctx.schema.compat)
242931
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key5, onError);
242931
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, 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: !key5 || key5.type === "block-scalar"
242941
+ startOnNewline: !key3 || key3.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: key5, sep: sep5, value: value4 } = collItem;
243097
+ const { start: start3, key: key3, sep: sep5, value: value4 } = collItem;
243098
243098
  const props = resolveProps.resolveProps(start3, {
243099
243099
  flow: fcName,
243100
243100
  indicator: "explicit-key-ind",
243101
- next: key5 ?? sep5?.[0],
243101
+ next: key3 ?? 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(key5))
243124
- onError(key5, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
243123
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
243124
+ onError(key3, "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 = key5 ? composeNode(ctx, key5, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
- if (isBlock(key5))
243169
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
243170
+ if (isBlock(key3))
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 errors7 = require_errors3();
243981
+ var errors5 = 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 errors7.YAMLWarning(pos, code2, message));
244032
+ this.warnings.push(new errors5.YAMLWarning(pos, code2, message));
244033
244033
  else
244034
- this.errors.push(new errors7.YAMLParseError(pos, code2, message));
244034
+ this.errors.push(new errors5.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 errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
244118
+ const error45 = new errors5.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 errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
244128
+ this.errors.push(new errors5.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 errors7.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
244143
+ this.errors.push(new errors5.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 errors7 = require_errors3();
244169
+ var errors5 = 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 errors7.YAMLParseError([offset, offset + 1], code2, message);
244178
+ throw new errors5.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 key5 of Object.keys(token))
244293
- if (key5 !== "type" && key5 !== "offset")
244294
- delete token[key5];
244292
+ for (const key3 of Object.keys(token))
244293
+ if (key3 !== "type" && key3 !== "offset")
244294
+ delete token[key3];
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 key5 of Object.keys(token))
244344
- if (key5 !== "type" && key5 !== "offset")
244345
- delete token[key5];
244343
+ for (const key3 of Object.keys(token))
244344
+ if (key3 !== "type" && key3 !== "offset")
244345
+ delete token[key3];
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: key5, sep: sep5, value: value4 }) {
244397
+ function stringifyItem({ start: start3, key: key3, sep: sep5, value: value4 }) {
244398
244398
  let res = "";
244399
244399
  for (const st2 of start3)
244400
244400
  res += st2.source;
244401
- if (key5)
244402
- res += stringifyToken(key5);
244401
+ if (key3)
244402
+ res += stringifyToken(key3);
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 key5 = it2.key;
245698
+ const key3 = 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: key5, sep: sep5 }]
245707
+ items: [{ start: start4, key: key3, 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 errors7 = require_errors3();
246040
+ var errors5 = 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(errors7.prettifyError(source, lineCounter2));
246058
- doc2.warnings.forEach(errors7.prettifyError(source, lineCounter2));
246057
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246058
+ doc2.warnings.forEach(errors5.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 errors7.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
246073
+ doc2.errors.push(new errors5.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(errors7.prettifyError(source, lineCounter2));
246079
- doc2.warnings.forEach(errors7.prettifyError(source, lineCounter2));
246078
+ doc2.errors.forEach(errors5.prettifyError(source, lineCounter2));
246079
+ doc2.warnings.forEach(errors5.prettifyError(source, lineCounter2));
246080
246080
  }
246081
246081
  return doc2;
246082
246082
  }
@@ -246144,6 +246144,10 @@ 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
+ var isBackspaceKey = (key) => key.name === "backspace";
246150
+ var isNumberKey = (key) => "1234567890".includes(key.name);
246147
246151
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
246148
246152
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
246149
246153
  class AbortPromptError extends Error {
@@ -246312,7 +246316,7 @@ function useEffect(cb, depArray) {
246312
246316
  // ../../node_modules/@inquirer/core/dist/esm/lib/theme.js
246313
246317
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
246314
246318
 
246315
- // ../../node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
246319
+ // ../../node_modules/@inquirer/figures/dist/esm/index.js
246316
246320
  import process2 from "node:process";
246317
246321
  function isUnicodeSupported() {
246318
246322
  if (process2.platform !== "win32") {
@@ -246677,11 +246681,22 @@ function usePrefix({ status = "idle", theme }) {
246677
246681
  const iconName = status === "loading" ? "idle" : status;
246678
246682
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
246679
246683
  }
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
+ }
246680
246696
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
246681
246697
  function useRef(val) {
246682
246698
  return useState({ current: val })[0];
246683
246699
  }
246684
-
246685
246700
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
246686
246701
  function useKeypress(userHandler) {
246687
246702
  const signal = useRef(userHandler);
@@ -246713,6 +246728,72 @@ function readlineWidth() {
246713
246728
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
246714
246729
  }
246715
246730
 
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
+ }
246716
246797
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
246717
246798
  var import_mute_stream = __toESM(require_lib(), 1);
246718
246799
  import * as readline2 from "node:readline";
@@ -247095,6 +247176,20 @@ function createPrompt(view) {
247095
247176
  };
247096
247177
  return prompt;
247097
247178
  }
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
+ }
247098
247193
  // ../../node_modules/yoctocolors/base.js
247099
247194
  var exports_base = {};
247100
247195
  __export(exports_base, {
@@ -264988,7 +265083,7 @@ function pruneCurrentEnv(currentEnv, env2) {
264988
265083
  var package_default = {
264989
265084
  name: "@settlemint/sdk-cli",
264990
265085
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
264991
- version: "2.5.1-pr5f3d70bb",
265086
+ version: "2.5.1-pr636b12f5",
264992
265087
  type: "module",
264993
265088
  private: false,
264994
265089
  license: "FSL-1.1-MIT",
@@ -265035,14 +265130,14 @@ var package_default = {
265035
265130
  devDependencies: {
265036
265131
  "@commander-js/extra-typings": "14.0.0",
265037
265132
  commander: "14.0.0",
265038
- "@inquirer/confirm": "5.1.14",
265039
- "@inquirer/input": "4.2.0",
265133
+ "@inquirer/confirm": "5.1.13",
265134
+ "@inquirer/input": "4.2.1",
265040
265135
  "@inquirer/password": "4.0.16",
265041
265136
  "@inquirer/select": "4.2.4",
265042
- "@settlemint/sdk-hasura": "2.5.1-pr5f3d70bb",
265043
- "@settlemint/sdk-js": "2.5.1-pr5f3d70bb",
265044
- "@settlemint/sdk-utils": "2.5.1-pr5f3d70bb",
265045
- "@settlemint/sdk-viem": "2.5.1-pr5f3d70bb",
265137
+ "@settlemint/sdk-hasura": "2.5.1-pr636b12f5",
265138
+ "@settlemint/sdk-js": "2.5.1-pr636b12f5",
265139
+ "@settlemint/sdk-utils": "2.5.1-pr636b12f5",
265140
+ "@settlemint/sdk-viem": "2.5.1-pr636b12f5",
265046
265141
  "@types/node": "24.0.15",
265047
265142
  "@types/semver": "7.7.0",
265048
265143
  "@types/which": "3.0.4",
@@ -303165,7 +303260,7 @@ function sanitizeName(value4, length = 35) {
303165
303260
  }
303166
303261
 
303167
303262
  // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
303168
- var isBackspaceKey = (key2) => key2.name === "backspace";
303263
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
303169
303264
  var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
303170
303265
  // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
303171
303266
  class AbortPromptError2 extends Error {
@@ -303332,9 +303427,9 @@ function useEffect2(cb, depArray) {
303332
303427
  }
303333
303428
 
303334
303429
  // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
303335
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
303430
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
303336
303431
 
303337
- // ../../node_modules/@inquirer/figures/dist/esm/index.js
303432
+ // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/node_modules/@inquirer/figures/dist/esm/index.js
303338
303433
  import process8 from "node:process";
303339
303434
  function isUnicodeSupported3() {
303340
303435
  if (process8.platform !== "win32") {
@@ -303623,21 +303718,21 @@ var replacements2 = Object.entries(specialMainSymbols2);
303623
303718
  // ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
303624
303719
  var defaultTheme2 = {
303625
303720
  prefix: {
303626
- idle: import_yoctocolors_cjs2.default.blue("?"),
303627
- done: import_yoctocolors_cjs2.default.green(esm_default2.tick)
303721
+ idle: import_yoctocolors_cjs3.default.blue("?"),
303722
+ done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
303628
303723
  },
303629
303724
  spinner: {
303630
303725
  interval: 80,
303631
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
303726
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
303632
303727
  },
303633
303728
  style: {
303634
- answer: import_yoctocolors_cjs2.default.cyan,
303635
- message: import_yoctocolors_cjs2.default.bold,
303636
- error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
303637
- defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
303638
- help: import_yoctocolors_cjs2.default.dim,
303639
- highlight: import_yoctocolors_cjs2.default.cyan,
303640
- key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
303729
+ answer: import_yoctocolors_cjs3.default.cyan,
303730
+ message: import_yoctocolors_cjs3.default.bold,
303731
+ error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
303732
+ defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
303733
+ help: import_yoctocolors_cjs3.default.dim,
303734
+ highlight: import_yoctocolors_cjs3.default.cyan,
303735
+ key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
303641
303736
  }
303642
303737
  };
303643
303738
 
@@ -303942,7 +304037,7 @@ var esm_default3 = createPrompt2((config4, done) => {
303942
304037
  setError(isValid || "You must provide a valid value");
303943
304038
  setStatus("idle");
303944
304039
  }
303945
- } else if (isBackspaceKey(key3) && !value4) {
304040
+ } else if (isBackspaceKey2(key3) && !value4) {
303946
304041
  setDefaultValue(undefined);
303947
304042
  } else if (key3.name === "tab" && !value4) {
303948
304043
  setDefaultValue(undefined);
@@ -303999,565 +304094,14 @@ async function subgraphNamePrompt({
303999
304094
  return sanitizeName(subgraphName);
304000
304095
  }
304001
304096
 
304002
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
304003
- var isUpKey = (key3) => key3.name === "up" || key3.name === "k" || key3.ctrl && key3.name === "p";
304004
- var isDownKey = (key3) => key3.name === "down" || key3.name === "j" || key3.ctrl && key3.name === "n";
304005
- var isBackspaceKey2 = (key3) => key3.name === "backspace";
304006
- var isNumberKey = (key3) => "1234567890".includes(key3.name);
304007
- var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
304008
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
304009
- class AbortPromptError3 extends Error {
304010
- name = "AbortPromptError";
304011
- message = "Prompt was aborted";
304012
- constructor(options) {
304013
- super();
304014
- this.cause = options?.cause;
304015
- }
304016
- }
304017
-
304018
- class CancelPromptError3 extends Error {
304019
- name = "CancelPromptError";
304020
- message = "Prompt was canceled";
304021
- }
304022
-
304023
- class ExitPromptError3 extends Error {
304024
- name = "ExitPromptError";
304025
- }
304026
-
304027
- class HookError3 extends Error {
304028
- name = "HookError";
304029
- }
304030
-
304031
- class ValidationError3 extends Error {
304032
- name = "ValidationError";
304033
- }
304034
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
304035
- import { AsyncResource as AsyncResource8 } from "node:async_hooks";
304036
-
304037
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
304038
- import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
304039
- var hookStorage3 = new AsyncLocalStorage3;
304040
- function createStore3(rl) {
304041
- const store = {
304042
- rl,
304043
- hooks: [],
304044
- hooksCleanup: [],
304045
- hooksEffect: [],
304046
- index: 0,
304047
- handleChange() {}
304048
- };
304049
- return store;
304050
- }
304051
- function withHooks3(rl, cb) {
304052
- const store = createStore3(rl);
304053
- return hookStorage3.run(store, () => {
304054
- function cycle(render) {
304055
- store.handleChange = () => {
304056
- store.index = 0;
304057
- render();
304058
- };
304059
- store.handleChange();
304060
- }
304061
- return cb(cycle);
304062
- });
304063
- }
304064
- function getStore3() {
304065
- const store = hookStorage3.getStore();
304066
- if (!store) {
304067
- throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
304068
- }
304069
- return store;
304070
- }
304071
- function readline5() {
304072
- return getStore3().rl;
304073
- }
304074
- function withUpdates3(fn) {
304075
- const wrapped = (...args) => {
304076
- const store = getStore3();
304077
- let shouldUpdate = false;
304078
- const oldHandleChange = store.handleChange;
304079
- store.handleChange = () => {
304080
- shouldUpdate = true;
304081
- };
304082
- const returnValue = fn(...args);
304083
- if (shouldUpdate) {
304084
- oldHandleChange();
304085
- }
304086
- store.handleChange = oldHandleChange;
304087
- return returnValue;
304088
- };
304089
- return AsyncResource7.bind(wrapped);
304090
- }
304091
- function withPointer3(cb) {
304092
- const store = getStore3();
304093
- const { index } = store;
304094
- const pointer = {
304095
- get() {
304096
- return store.hooks[index];
304097
- },
304098
- set(value4) {
304099
- store.hooks[index] = value4;
304100
- },
304101
- initialized: index in store.hooks
304102
- };
304103
- const returnValue = cb(pointer);
304104
- store.index++;
304105
- return returnValue;
304106
- }
304107
- function handleChange3() {
304108
- getStore3().handleChange();
304109
- }
304110
- var effectScheduler3 = {
304111
- queue(cb) {
304112
- const store = getStore3();
304113
- const { index } = store;
304114
- store.hooksEffect.push(() => {
304115
- store.hooksCleanup[index]?.();
304116
- const cleanFn = cb(readline5());
304117
- if (cleanFn != null && typeof cleanFn !== "function") {
304118
- throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
304119
- }
304120
- store.hooksCleanup[index] = cleanFn;
304121
- });
304122
- },
304123
- run() {
304124
- const store = getStore3();
304125
- withUpdates3(() => {
304126
- store.hooksEffect.forEach((effect) => {
304127
- effect();
304128
- });
304129
- store.hooksEffect.length = 0;
304130
- })();
304131
- },
304132
- clearAll() {
304133
- const store = getStore3();
304134
- store.hooksCleanup.forEach((cleanFn) => {
304135
- cleanFn?.();
304136
- });
304137
- store.hooksEffect.length = 0;
304138
- store.hooksCleanup.length = 0;
304139
- }
304140
- };
304141
-
304142
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
304143
- function useState3(defaultValue) {
304144
- return withPointer3((pointer) => {
304145
- const setState = AsyncResource8.bind(function setState(newValue) {
304146
- if (pointer.get() !== newValue) {
304147
- pointer.set(newValue);
304148
- handleChange3();
304149
- }
304150
- });
304151
- if (pointer.initialized) {
304152
- return [pointer.get(), setState];
304153
- }
304154
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
304155
- pointer.set(value4);
304156
- return [value4, setState];
304157
- });
304158
- }
304159
-
304160
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
304161
- function useEffect3(cb, depArray) {
304162
- withPointer3((pointer) => {
304163
- const oldDeps = pointer.get();
304164
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
304165
- if (hasChanged) {
304166
- effectScheduler3.queue(cb);
304167
- }
304168
- pointer.set(depArray);
304169
- });
304170
- }
304171
-
304172
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
304173
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
304174
- var defaultTheme3 = {
304175
- prefix: {
304176
- idle: import_yoctocolors_cjs3.default.blue("?"),
304177
- done: import_yoctocolors_cjs3.default.green(esm_default2.tick)
304178
- },
304179
- spinner: {
304180
- interval: 80,
304181
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
304182
- },
304183
- style: {
304184
- answer: import_yoctocolors_cjs3.default.cyan,
304185
- message: import_yoctocolors_cjs3.default.bold,
304186
- error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
304187
- defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
304188
- help: import_yoctocolors_cjs3.default.dim,
304189
- highlight: import_yoctocolors_cjs3.default.cyan,
304190
- key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
304191
- }
304192
- };
304193
-
304194
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
304195
- function isPlainObject7(value4) {
304196
- if (typeof value4 !== "object" || value4 === null)
304197
- return false;
304198
- let proto = value4;
304199
- while (Object.getPrototypeOf(proto) !== null) {
304200
- proto = Object.getPrototypeOf(proto);
304201
- }
304202
- return Object.getPrototypeOf(value4) === proto;
304203
- }
304204
- function deepMerge4(...objects) {
304205
- const output = {};
304206
- for (const obj of objects) {
304207
- for (const [key3, value4] of Object.entries(obj)) {
304208
- const prevValue = output[key3];
304209
- output[key3] = isPlainObject7(prevValue) && isPlainObject7(value4) ? deepMerge4(prevValue, value4) : value4;
304210
- }
304211
- }
304212
- return output;
304213
- }
304214
- function makeTheme3(...themes) {
304215
- const themesToMerge = [
304216
- defaultTheme3,
304217
- ...themes.filter((theme) => theme != null)
304218
- ];
304219
- return deepMerge4(...themesToMerge);
304220
- }
304221
-
304222
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
304223
- function usePrefix3({ status = "idle", theme }) {
304224
- const [showLoader, setShowLoader] = useState3(false);
304225
- const [tick, setTick] = useState3(0);
304226
- const { prefix, spinner: spinner2 } = makeTheme3(theme);
304227
- useEffect3(() => {
304228
- if (status === "loading") {
304229
- let tickInterval;
304230
- let inc = -1;
304231
- const delayTimeout = setTimeout(() => {
304232
- setShowLoader(true);
304233
- tickInterval = setInterval(() => {
304234
- inc = inc + 1;
304235
- setTick(inc % spinner2.frames.length);
304236
- }, spinner2.interval);
304237
- }, 300);
304238
- return () => {
304239
- clearTimeout(delayTimeout);
304240
- clearInterval(tickInterval);
304241
- };
304242
- } else {
304243
- setShowLoader(false);
304244
- }
304245
- }, [status]);
304246
- if (showLoader) {
304247
- return spinner2.frames[tick];
304248
- }
304249
- const iconName = status === "loading" ? "idle" : status;
304250
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
304251
- }
304252
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
304253
- function useMemo(fn, dependencies) {
304254
- return withPointer3((pointer) => {
304255
- const prev = pointer.get();
304256
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
304257
- const value4 = fn();
304258
- pointer.set({ value: value4, dependencies });
304259
- return value4;
304260
- }
304261
- return prev.value;
304262
- });
304263
- }
304264
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
304265
- function useRef3(val) {
304266
- return useState3({ current: val })[0];
304267
- }
304268
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
304269
- function useKeypress3(userHandler) {
304270
- const signal = useRef3(userHandler);
304271
- signal.current = userHandler;
304272
- useEffect3((rl) => {
304273
- let ignore = false;
304274
- const handler = withUpdates3((_input, event) => {
304275
- if (ignore)
304276
- return;
304277
- signal.current(event, rl);
304278
- });
304279
- rl.input.on("keypress", handler);
304280
- return () => {
304281
- ignore = true;
304282
- rl.input.removeListener("keypress", handler);
304283
- };
304284
- }, []);
304285
- }
304286
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
304287
- var import_cli_width3 = __toESM(require_cli_width(), 1);
304288
- var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
304289
- function breakLines3(content, width) {
304290
- return content.split(`
304291
- `).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
304292
- `).map((str) => str.trimEnd())).join(`
304293
- `);
304294
- }
304295
- function readlineWidth3() {
304296
- return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
304297
- }
304298
-
304299
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
304300
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
304301
- const state = useRef3({
304302
- lastPointer: active,
304303
- lastActive: undefined
304304
- });
304305
- const { lastPointer, lastActive } = state.current;
304306
- const middle = Math.floor(pageSize / 2);
304307
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
304308
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
304309
- let pointer = defaultPointerPosition;
304310
- if (renderedLength > pageSize) {
304311
- if (loop) {
304312
- pointer = lastPointer;
304313
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
304314
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
304315
- }
304316
- } else {
304317
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
304318
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
304319
- }
304320
- }
304321
- state.current.lastPointer = pointer;
304322
- state.current.lastActive = active;
304323
- return pointer;
304324
- }
304325
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
304326
- const width = readlineWidth3();
304327
- const bound = (num) => (num % items.length + items.length) % items.length;
304328
- const renderedItems = items.map((item, index) => {
304329
- if (item == null)
304330
- return [];
304331
- return breakLines3(renderItem({ item, index, isActive: index === active }), width).split(`
304332
- `);
304333
- });
304334
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
304335
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
304336
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
304337
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
304338
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
304339
- const pageBuffer = Array.from({ length: pageSize });
304340
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
304341
- const itemVisited = new Set([active]);
304342
- let bufferPointer = activeItemPosition + activeItem.length;
304343
- let itemPointer = bound(active + 1);
304344
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
304345
- const lines = renderItemAtIndex(itemPointer);
304346
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
304347
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
304348
- itemVisited.add(itemPointer);
304349
- bufferPointer += linesToAdd.length;
304350
- itemPointer = bound(itemPointer + 1);
304351
- }
304352
- bufferPointer = activeItemPosition - 1;
304353
- itemPointer = bound(active - 1);
304354
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
304355
- const lines = renderItemAtIndex(itemPointer);
304356
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
304357
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
304358
- itemVisited.add(itemPointer);
304359
- bufferPointer -= linesToAdd.length;
304360
- itemPointer = bound(itemPointer - 1);
304361
- }
304362
- return pageBuffer.filter((line) => typeof line === "string").join(`
304363
- `);
304364
- }
304365
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
304366
- var import_mute_stream3 = __toESM(require_lib(), 1);
304367
- import * as readline6 from "node:readline";
304368
- import { AsyncResource as AsyncResource9 } from "node:async_hooks";
304369
-
304370
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
304371
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
304372
- import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
304373
- var height3 = (content) => content.split(`
304374
- `).length;
304375
- var lastLine3 = (content) => content.split(`
304376
- `).pop() ?? "";
304377
- function cursorDown3(n6) {
304378
- return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
304379
- }
304380
-
304381
- class ScreenManager3 {
304382
- height = 0;
304383
- extraLinesUnderPrompt = 0;
304384
- cursorPos;
304385
- rl;
304386
- constructor(rl) {
304387
- this.rl = rl;
304388
- this.cursorPos = rl.getCursorPos();
304389
- }
304390
- write(content) {
304391
- this.rl.output.unmute();
304392
- this.rl.output.write(content);
304393
- this.rl.output.mute();
304394
- }
304395
- render(content, bottomContent = "") {
304396
- const promptLine = lastLine3(content);
304397
- const rawPromptLine = stripVTControlCharacters4(promptLine);
304398
- let prompt = rawPromptLine;
304399
- if (this.rl.line.length > 0) {
304400
- prompt = prompt.slice(0, -this.rl.line.length);
304401
- }
304402
- this.rl.setPrompt(prompt);
304403
- this.cursorPos = this.rl.getCursorPos();
304404
- const width = readlineWidth3();
304405
- content = breakLines3(content, width);
304406
- bottomContent = breakLines3(bottomContent, width);
304407
- if (rawPromptLine.length % width === 0) {
304408
- content += `
304409
- `;
304410
- }
304411
- let output = content + (bottomContent ? `
304412
- ` + bottomContent : "");
304413
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
304414
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
304415
- if (bottomContentHeight > 0)
304416
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
304417
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
304418
- this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
304419
- this.extraLinesUnderPrompt = bottomContentHeight;
304420
- this.height = height3(output);
304421
- }
304422
- checkCursorPos() {
304423
- const cursorPos = this.rl.getCursorPos();
304424
- if (cursorPos.cols !== this.cursorPos.cols) {
304425
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
304426
- this.cursorPos = cursorPos;
304427
- }
304428
- }
304429
- done({ clearContent }) {
304430
- this.rl.setPrompt("");
304431
- let output = cursorDown3(this.extraLinesUnderPrompt);
304432
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
304433
- `;
304434
- output += import_ansi_escapes3.default.cursorShow;
304435
- this.write(output);
304436
- this.rl.close();
304437
- }
304438
- }
304439
-
304440
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
304441
- class PromisePolyfill3 extends Promise {
304442
- static withResolver() {
304443
- let resolve5;
304444
- let reject;
304445
- const promise4 = new Promise((res, rej) => {
304446
- resolve5 = res;
304447
- reject = rej;
304448
- });
304449
- return { promise: promise4, resolve: resolve5, reject };
304450
- }
304451
- }
304452
-
304453
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
304454
- function getCallSites3() {
304455
- const _prepareStackTrace = Error.prepareStackTrace;
304456
- let result = [];
304457
- try {
304458
- Error.prepareStackTrace = (_5, callSites) => {
304459
- const callSitesWithoutCurrent = callSites.slice(1);
304460
- result = callSitesWithoutCurrent;
304461
- return callSitesWithoutCurrent;
304462
- };
304463
- new Error().stack;
304464
- } catch {
304465
- return result;
304466
- }
304467
- Error.prepareStackTrace = _prepareStackTrace;
304468
- return result;
304469
- }
304470
- function createPrompt3(view) {
304471
- const callSites = getCallSites3();
304472
- const prompt = (config4, context = {}) => {
304473
- const { input = process.stdin, signal } = context;
304474
- const cleanups = new Set;
304475
- const output = new import_mute_stream3.default;
304476
- output.pipe(context.output ?? process.stdout);
304477
- const rl = readline6.createInterface({
304478
- terminal: true,
304479
- input,
304480
- output
304481
- });
304482
- const screen = new ScreenManager3(rl);
304483
- const { promise: promise4, resolve: resolve5, reject } = PromisePolyfill3.withResolver();
304484
- const cancel3 = () => reject(new CancelPromptError3);
304485
- if (signal) {
304486
- const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
304487
- if (signal.aborted) {
304488
- abort();
304489
- return Object.assign(promise4, { cancel: cancel3 });
304490
- }
304491
- signal.addEventListener("abort", abort);
304492
- cleanups.add(() => signal.removeEventListener("abort", abort));
304493
- }
304494
- cleanups.add(onExit((code2, signal2) => {
304495
- reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
304496
- }));
304497
- const sigint = () => reject(new ExitPromptError3(`User force closed the prompt with SIGINT`));
304498
- rl.on("SIGINT", sigint);
304499
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
304500
- const checkCursorPos = () => screen.checkCursorPos();
304501
- rl.input.on("keypress", checkCursorPos);
304502
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
304503
- return withHooks3(rl, (cycle) => {
304504
- const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
304505
- rl.on("close", hooksCleanup);
304506
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
304507
- cycle(() => {
304508
- try {
304509
- const nextView = view(config4, (value4) => {
304510
- setImmediate(() => resolve5(value4));
304511
- });
304512
- if (nextView === undefined) {
304513
- const callerFilename = callSites[1]?.getFileName();
304514
- throw new Error(`Prompt functions must return a string.
304515
- at ${callerFilename}`);
304516
- }
304517
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
304518
- screen.render(content, bottomContent);
304519
- effectScheduler3.run();
304520
- } catch (error44) {
304521
- reject(error44);
304522
- }
304523
- });
304524
- return Object.assign(promise4.then((answer) => {
304525
- effectScheduler3.clearAll();
304526
- return answer;
304527
- }, (error44) => {
304528
- effectScheduler3.clearAll();
304529
- throw error44;
304530
- }).finally(() => {
304531
- cleanups.forEach((cleanup) => cleanup());
304532
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
304533
- output.end();
304534
- }).then(() => promise4), { cancel: cancel3 });
304535
- });
304536
- };
304537
- return prompt;
304538
- }
304539
- // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
304540
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
304541
- class Separator {
304542
- separator = import_yoctocolors_cjs4.default.dim(Array.from({ length: 15 }).join(esm_default2.line));
304543
- type = "separator";
304544
- constructor(separator) {
304545
- if (separator) {
304546
- this.separator = separator;
304547
- }
304548
- }
304549
- static isSeparator(choice) {
304550
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
304551
- }
304552
- }
304553
304097
  // ../../node_modules/@inquirer/select/dist/esm/index.js
304554
- var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
304555
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
304098
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
304099
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
304556
304100
  var selectTheme = {
304557
- icon: { cursor: esm_default2.pointer },
304101
+ icon: { cursor: esm_default.pointer },
304558
304102
  style: {
304559
- disabled: (text2) => import_yoctocolors_cjs5.default.dim(`- ${text2}`),
304560
- description: (text2) => import_yoctocolors_cjs5.default.cyan(text2)
304103
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
304104
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
304561
304105
  },
304562
304106
  helpMode: "auto",
304563
304107
  indexMode: "hidden"
@@ -304590,19 +304134,19 @@ function normalizeChoices(choices) {
304590
304134
  return normalizedChoice;
304591
304135
  });
304592
304136
  }
304593
- var esm_default4 = createPrompt3((config4, done) => {
304137
+ var esm_default4 = createPrompt((config4, done) => {
304594
304138
  const { loop = true, pageSize = 7 } = config4;
304595
- const firstRender = useRef3(true);
304596
- const theme = makeTheme3(selectTheme, config4.theme);
304597
- const [status, setStatus] = useState3("idle");
304598
- const prefix = usePrefix3({ status, theme });
304599
- const searchTimeoutRef = useRef3();
304139
+ const firstRender = useRef(true);
304140
+ const theme = makeTheme(selectTheme, config4.theme);
304141
+ const [status, setStatus] = useState("idle");
304142
+ const prefix = usePrefix({ status, theme });
304143
+ const searchTimeoutRef = useRef();
304600
304144
  const items = useMemo(() => normalizeChoices(config4.choices), [config4.choices]);
304601
304145
  const bounds = useMemo(() => {
304602
304146
  const first = items.findIndex(isSelectable);
304603
304147
  const last = items.findLastIndex(isSelectable);
304604
304148
  if (first === -1) {
304605
- throw new ValidationError3("[select prompt] No selectable choices. All choices are disabled.");
304149
+ throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
304606
304150
  }
304607
304151
  return { first, last };
304608
304152
  }, [items]);
@@ -304611,24 +304155,24 @@ var esm_default4 = createPrompt3((config4, done) => {
304611
304155
  return -1;
304612
304156
  return items.findIndex((item) => isSelectable(item) && item.value === config4.default);
304613
304157
  }, [config4.default, items]);
304614
- const [active, setActive] = useState3(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
304158
+ const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
304615
304159
  const selectedChoice = items[active];
304616
- useKeypress3((key4, rl) => {
304160
+ useKeypress((key3, rl) => {
304617
304161
  clearTimeout(searchTimeoutRef.current);
304618
- if (isEnterKey3(key4)) {
304162
+ if (isEnterKey(key3)) {
304619
304163
  setStatus("done");
304620
304164
  done(selectedChoice.value);
304621
- } else if (isUpKey(key4) || isDownKey(key4)) {
304165
+ } else if (isUpKey(key3) || isDownKey(key3)) {
304622
304166
  rl.clearLine(0);
304623
- if (loop || isUpKey(key4) && active !== bounds.first || isDownKey(key4) && active !== bounds.last) {
304624
- const offset = isUpKey(key4) ? -1 : 1;
304167
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
304168
+ const offset = isUpKey(key3) ? -1 : 1;
304625
304169
  let next = active;
304626
304170
  do {
304627
304171
  next = (next + offset + items.length) % items.length;
304628
304172
  } while (!isSelectable(items[next]));
304629
304173
  setActive(next);
304630
304174
  }
304631
- } else if (isNumberKey(key4) && !Number.isNaN(Number(rl.line))) {
304175
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
304632
304176
  const position = Number(rl.line) - 1;
304633
304177
  const item = items[position];
304634
304178
  if (item != null && isSelectable(item)) {
@@ -304637,7 +304181,7 @@ var esm_default4 = createPrompt3((config4, done) => {
304637
304181
  searchTimeoutRef.current = setTimeout(() => {
304638
304182
  rl.clearLine(0);
304639
304183
  }, 700);
304640
- } else if (isBackspaceKey2(key4)) {
304184
+ } else if (isBackspaceKey(key3)) {
304641
304185
  rl.clearLine(0);
304642
304186
  } else {
304643
304187
  const searchTerm = rl.line.toLowerCase();
@@ -304654,7 +304198,7 @@ var esm_default4 = createPrompt3((config4, done) => {
304654
304198
  }, 700);
304655
304199
  }
304656
304200
  });
304657
- useEffect3(() => () => {
304201
+ useEffect(() => () => {
304658
304202
  clearTimeout(searchTimeoutRef.current);
304659
304203
  }, []);
304660
304204
  const message = theme.style.message(config4.message, status);
@@ -304694,7 +304238,7 @@ ${theme.style.help(`(${config4.instructions?.pager ?? "Use arrow keys to reveal
304694
304238
  const choiceDescription = selectedChoice.description ? `
304695
304239
  ${theme.style.description(selectedChoice.description)}` : ``;
304696
304240
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
304697
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;
304241
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
304698
304242
  });
304699
304243
 
304700
304244
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -306278,14 +305822,14 @@ function includesArgs(parameters) {
306278
305822
  });
306279
305823
  }
306280
305824
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
306281
- return Object.entries(matchArgs).every(([key4, value4]) => {
305825
+ return Object.entries(matchArgs).every(([key3, value4]) => {
306282
305826
  if (value4 === null || value4 === undefined)
306283
305827
  return true;
306284
- const input = inputs.find((input2) => input2.name === key4);
305828
+ const input = inputs.find((input2) => input2.name === key3);
306285
305829
  if (!input)
306286
305830
  return false;
306287
305831
  const value_ = Array.isArray(value4) ? value4 : [value4];
306288
- return value_.some((value5) => isEqual(input, value5, args[key4]));
305832
+ return value_.some((value5) => isEqual(input, value5, args[key3]));
306289
305833
  });
306290
305834
  return false;
306291
305835
  }
@@ -306484,13 +306028,13 @@ function observe(observerId, callbacks, fn) {
306484
306028
  if (listeners && listeners.length > 0)
306485
306029
  return unwatch;
306486
306030
  const emit = {};
306487
- for (const key4 in callbacks) {
306488
- emit[key4] = (...args) => {
306031
+ for (const key3 in callbacks) {
306032
+ emit[key3] = (...args) => {
306489
306033
  const listeners2 = getListeners();
306490
306034
  if (listeners2.length === 0)
306491
306035
  return;
306492
306036
  for (const listener of listeners2)
306493
- listener.fns[key4]?.(...args);
306037
+ listener.fns[key3]?.(...args);
306494
306038
  };
306495
306039
  }
306496
306040
  const cleanup = fn(emit);
@@ -306829,7 +306373,7 @@ function uid(length = 11) {
306829
306373
 
306830
306374
  // ../../node_modules/viem/_esm/clients/createClient.js
306831
306375
  function createClient(parameters) {
306832
- const { batch, chain, ccipRead, key: key4 = "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;
306833
306377
  const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
306834
306378
  const blockTime = chain?.blockTime ?? 12000;
306835
306379
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
@@ -306847,7 +306391,7 @@ function createClient(parameters) {
306847
306391
  cacheTime,
306848
306392
  ccipRead,
306849
306393
  chain,
306850
- key: key4,
306394
+ key: key3,
306851
306395
  name: name3,
306852
306396
  pollingInterval,
306853
306397
  request: request2,
@@ -306859,8 +306403,8 @@ function createClient(parameters) {
306859
306403
  function extend4(base2) {
306860
306404
  return (extendFn) => {
306861
306405
  const extended = extendFn(base2);
306862
- for (const key5 in client)
306863
- delete extended[key5];
306406
+ for (const key4 in client)
306407
+ delete extended[key4];
306864
306408
  const combined = { ...base2, ...extended };
306865
306409
  return Object.assign(combined, { extend: extend4(combined) });
306866
306410
  };
@@ -307040,11 +306584,11 @@ function shouldRetry(error44) {
307040
306584
  }
307041
306585
 
307042
306586
  // ../../node_modules/viem/_esm/clients/transports/createTransport.js
307043
- function createTransport({ key: key4, 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) {
307044
306588
  const uid2 = uid();
307045
306589
  return {
307046
306590
  config: {
307047
- key: key4,
306591
+ key: key3,
307048
306592
  methods,
307049
306593
  name: name3,
307050
306594
  request: request2,
@@ -307201,7 +306745,7 @@ function getHttpRpcClient(url4, options = {}) {
307201
306745
 
307202
306746
  // ../../node_modules/viem/_esm/clients/transports/http.js
307203
306747
  function http(url4, config4 = {}) {
307204
- const { batch, fetchOptions, key: key4 = "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;
307205
306749
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
307206
306750
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
307207
306751
  const retryCount = config4.retryCount ?? retryCount_;
@@ -307216,7 +306760,7 @@ function http(url4, config4 = {}) {
307216
306760
  timeout
307217
306761
  });
307218
306762
  return createTransport({
307219
- key: key4,
306763
+ key: key3,
307220
306764
  methods,
307221
306765
  name: name3,
307222
306766
  async request({ method, params }) {
@@ -307667,7 +307211,7 @@ init_getChainContractAddress();
307667
307211
  init_toHex();
307668
307212
  init_localBatchGatewayRequest();
307669
307213
  async function getEnsText(client, parameters) {
307670
- const { blockNumber, blockTag, key: key4, name: name3, gatewayUrls, strict } = parameters;
307214
+ const { blockNumber, blockTag, key: key3, name: name3, gatewayUrls, strict } = parameters;
307671
307215
  const { chain } = client;
307672
307216
  const universalResolverAddress = (() => {
307673
307217
  if (parameters.universalResolverAddress)
@@ -307693,7 +307237,7 @@ async function getEnsText(client, parameters) {
307693
307237
  encodeFunctionData({
307694
307238
  abi: textResolverAbi,
307695
307239
  functionName: "text",
307696
- args: [namehash(name3), key4]
307240
+ args: [namehash(name3), key3]
307697
307241
  }),
307698
307242
  gatewayUrls ?? [localBatchGatewayUrl]
307699
307243
  ],
@@ -308716,16 +308260,16 @@ class LruMap2 extends Map {
308716
308260
  });
308717
308261
  this.maxSize = size5;
308718
308262
  }
308719
- get(key4) {
308720
- const value4 = super.get(key4);
308721
- if (super.has(key4) && value4 !== undefined) {
308722
- this.delete(key4);
308723
- super.set(key4, 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);
308724
308268
  }
308725
308269
  return value4;
308726
308270
  }
308727
- set(key4, value4) {
308728
- super.set(key4, value4);
308271
+ set(key3, value4) {
308272
+ super.set(key3, value4);
308729
308273
  if (this.maxSize && this.size > this.maxSize) {
308730
308274
  const firstKey = this.keys().next().value;
308731
308275
  if (firstKey)
@@ -310585,10 +310129,10 @@ function publicActions(client) {
310585
310129
 
310586
310130
  // ../../node_modules/viem/_esm/clients/createPublicClient.js
310587
310131
  function createPublicClient(parameters) {
310588
- const { key: key4 = "public", name: name3 = "Public Client" } = parameters;
310132
+ const { key: key3 = "public", name: name3 = "Public Client" } = parameters;
310589
310133
  const client = createClient({
310590
310134
  ...parameters,
310591
- key: key4,
310135
+ key: key3,
310592
310136
  name: name3,
310593
310137
  type: "publicClient"
310594
310138
  });
@@ -310689,7 +310233,7 @@ __export4(util_exports3, {
310689
310233
  getParsedType: () => getParsedType4,
310690
310234
  getSizableOrigin: () => getSizableOrigin4,
310691
310235
  isObject: () => isObject4,
310692
- isPlainObject: () => isPlainObject8,
310236
+ isPlainObject: () => isPlainObject7,
310693
310237
  issue: () => issue4,
310694
310238
  joinValues: () => joinValues4,
310695
310239
  jsonStringifyReplacer: () => jsonStringifyReplacer4,
@@ -310761,19 +310305,19 @@ function floatSafeRemainder4(val, step) {
310761
310305
  const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
310762
310306
  return valInt % stepInt / 10 ** decCount;
310763
310307
  }
310764
- function defineLazy4(object$1, key4, getter) {
310308
+ function defineLazy4(object$1, key3, getter) {
310765
310309
  const set$1 = false;
310766
- Object.defineProperty(object$1, key4, {
310310
+ Object.defineProperty(object$1, key3, {
310767
310311
  get() {
310768
310312
  if (!set$1) {
310769
310313
  const value4 = getter();
310770
- object$1[key4] = value4;
310314
+ object$1[key3] = value4;
310771
310315
  return value4;
310772
310316
  }
310773
310317
  throw new Error("cached value already set");
310774
310318
  },
310775
310319
  set(v6) {
310776
- Object.defineProperty(object$1, key4, { value: v6 });
310320
+ Object.defineProperty(object$1, key3, { value: v6 });
310777
310321
  },
310778
310322
  configurable: true
310779
310323
  });
@@ -310789,11 +310333,11 @@ function assignProp4(target, prop, value4) {
310789
310333
  function getElementAtPath4(obj, path7) {
310790
310334
  if (!path7)
310791
310335
  return obj;
310792
- return path7.reduce((acc, key4) => acc?.[key4], obj);
310336
+ return path7.reduce((acc, key3) => acc?.[key3], obj);
310793
310337
  }
310794
310338
  function promiseAllObject4(promisesObj) {
310795
310339
  const keys = Object.keys(promisesObj);
310796
- const promises = keys.map((key4) => promisesObj[key4]);
310340
+ const promises = keys.map((key3) => promisesObj[key3]);
310797
310341
  return Promise.all(promises).then((results) => {
310798
310342
  const resolvedObj = {};
310799
310343
  for (let i6 = 0;i6 < keys.length; i6++) {
@@ -310825,7 +310369,7 @@ var allowsEval4 = cached4(() => {
310825
310369
  return false;
310826
310370
  }
310827
310371
  });
310828
- function isPlainObject8(o8) {
310372
+ function isPlainObject7(o8) {
310829
310373
  if (isObject4(o8) === false)
310830
310374
  return false;
310831
310375
  const ctor = o8.constructor;
@@ -310841,8 +310385,8 @@ function isPlainObject8(o8) {
310841
310385
  }
310842
310386
  function numKeys4(data) {
310843
310387
  let keyCount = 0;
310844
- for (const key4 in data) {
310845
- if (Object.prototype.hasOwnProperty.call(data, key4)) {
310388
+ for (const key3 in data) {
310389
+ if (Object.prototype.hasOwnProperty.call(data, key3)) {
310846
310390
  keyCount++;
310847
310391
  }
310848
310392
  }
@@ -310992,13 +310536,13 @@ var BIGINT_FORMAT_RANGES4 = {
310992
310536
  function pick4(schema, mask) {
310993
310537
  const newShape = {};
310994
310538
  const currDef = schema._zod.def;
310995
- for (const key4 in mask) {
310996
- if (!(key4 in currDef.shape)) {
310997
- throw new Error(`Unrecognized key: "${key4}"`);
310539
+ for (const key3 in mask) {
310540
+ if (!(key3 in currDef.shape)) {
310541
+ throw new Error(`Unrecognized key: "${key3}"`);
310998
310542
  }
310999
- if (!mask[key4])
310543
+ if (!mask[key3])
311000
310544
  continue;
311001
- newShape[key4] = currDef.shape[key4];
310545
+ newShape[key3] = currDef.shape[key3];
311002
310546
  }
311003
310547
  return clone4(schema, {
311004
310548
  ...schema._zod.def,
@@ -311009,13 +310553,13 @@ function pick4(schema, mask) {
311009
310553
  function omit4(schema, mask) {
311010
310554
  const newShape = { ...schema._zod.def.shape };
311011
310555
  const currDef = schema._zod.def;
311012
- for (const key4 in mask) {
311013
- if (!(key4 in currDef.shape)) {
311014
- throw new Error(`Unrecognized key: "${key4}"`);
310556
+ for (const key3 in mask) {
310557
+ if (!(key3 in currDef.shape)) {
310558
+ throw new Error(`Unrecognized key: "${key3}"`);
311015
310559
  }
311016
- if (!mask[key4])
310560
+ if (!mask[key3])
311017
310561
  continue;
311018
- delete newShape[key4];
310562
+ delete newShape[key3];
311019
310563
  }
311020
310564
  return clone4(schema, {
311021
310565
  ...schema._zod.def,
@@ -311057,23 +310601,23 @@ function partial4(Class$1, schema, mask) {
311057
310601
  const oldShape = schema._zod.def.shape;
311058
310602
  const shape = { ...oldShape };
311059
310603
  if (mask) {
311060
- for (const key4 in mask) {
311061
- if (!(key4 in oldShape)) {
311062
- throw new Error(`Unrecognized key: "${key4}"`);
310604
+ for (const key3 in mask) {
310605
+ if (!(key3 in oldShape)) {
310606
+ throw new Error(`Unrecognized key: "${key3}"`);
311063
310607
  }
311064
- if (!mask[key4])
310608
+ if (!mask[key3])
311065
310609
  continue;
311066
- shape[key4] = Class$1 ? new Class$1({
310610
+ shape[key3] = Class$1 ? new Class$1({
311067
310611
  type: "optional",
311068
- innerType: oldShape[key4]
311069
- }) : oldShape[key4];
310612
+ innerType: oldShape[key3]
310613
+ }) : oldShape[key3];
311070
310614
  }
311071
310615
  } else {
311072
- for (const key4 in oldShape) {
311073
- shape[key4] = Class$1 ? new Class$1({
310616
+ for (const key3 in oldShape) {
310617
+ shape[key3] = Class$1 ? new Class$1({
311074
310618
  type: "optional",
311075
- innerType: oldShape[key4]
311076
- }) : oldShape[key4];
310619
+ innerType: oldShape[key3]
310620
+ }) : oldShape[key3];
311077
310621
  }
311078
310622
  }
311079
310623
  return clone4(schema, {
@@ -311086,22 +310630,22 @@ function required4(Class$1, schema, mask) {
311086
310630
  const oldShape = schema._zod.def.shape;
311087
310631
  const shape = { ...oldShape };
311088
310632
  if (mask) {
311089
- for (const key4 in mask) {
311090
- if (!(key4 in shape)) {
311091
- throw new Error(`Unrecognized key: "${key4}"`);
310633
+ for (const key3 in mask) {
310634
+ if (!(key3 in shape)) {
310635
+ throw new Error(`Unrecognized key: "${key3}"`);
311092
310636
  }
311093
- if (!mask[key4])
310637
+ if (!mask[key3])
311094
310638
  continue;
311095
- shape[key4] = new Class$1({
310639
+ shape[key3] = new Class$1({
311096
310640
  type: "nonoptional",
311097
- innerType: oldShape[key4]
310641
+ innerType: oldShape[key3]
311098
310642
  });
311099
310643
  }
311100
310644
  } else {
311101
- for (const key4 in oldShape) {
311102
- shape[key4] = new Class$1({
310645
+ for (const key3 in oldShape) {
310646
+ shape[key3] = new Class$1({
311103
310647
  type: "nonoptional",
311104
- innerType: oldShape[key4]
310648
+ innerType: oldShape[key3]
311105
310649
  });
311106
310650
  }
311107
310651
  }
@@ -312681,28 +312225,28 @@ var $ZodArray4 = /* @__PURE__ */ $constructor4("$ZodArray", (inst, def) => {
312681
312225
  return payload;
312682
312226
  };
312683
312227
  });
312684
- function handleObjectResult4(result, final, key4) {
312228
+ function handleObjectResult4(result, final, key3) {
312685
312229
  if (result.issues.length) {
312686
- final.issues.push(...prefixIssues4(key4, result.issues));
312230
+ final.issues.push(...prefixIssues4(key3, result.issues));
312687
312231
  }
312688
- final.value[key4] = result.value;
312232
+ final.value[key3] = result.value;
312689
312233
  }
312690
- function handleOptionalObjectResult4(result, final, key4, input) {
312234
+ function handleOptionalObjectResult4(result, final, key3, input) {
312691
312235
  if (result.issues.length) {
312692
- if (input[key4] === undefined) {
312693
- if (key4 in input) {
312694
- final.value[key4] = undefined;
312236
+ if (input[key3] === undefined) {
312237
+ if (key3 in input) {
312238
+ final.value[key3] = undefined;
312695
312239
  } else {
312696
- final.value[key4] = result.value;
312240
+ final.value[key3] = result.value;
312697
312241
  }
312698
312242
  } else {
312699
- final.issues.push(...prefixIssues4(key4, result.issues));
312243
+ final.issues.push(...prefixIssues4(key3, result.issues));
312700
312244
  }
312701
312245
  } else if (result.value === undefined) {
312702
- if (key4 in input)
312703
- final.value[key4] = undefined;
312246
+ if (key3 in input)
312247
+ final.value[key3] = undefined;
312704
312248
  } else {
312705
- final.value[key4] = result.value;
312249
+ final.value[key3] = result.value;
312706
312250
  }
312707
312251
  }
312708
312252
  var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
@@ -312726,12 +312270,12 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312726
312270
  defineLazy4(inst._zod, "propValues", () => {
312727
312271
  const shape = def.shape;
312728
312272
  const propValues = {};
312729
- for (const key4 in shape) {
312730
- const field2 = shape[key4]._zod;
312273
+ for (const key3 in shape) {
312274
+ const field2 = shape[key3]._zod;
312731
312275
  if (field2.values) {
312732
- propValues[key4] ?? (propValues[key4] = new Set);
312276
+ propValues[key3] ?? (propValues[key3] = new Set);
312733
312277
  for (const v6 of field2.values)
312734
- propValues[key4].add(v6);
312278
+ propValues[key3].add(v6);
312735
312279
  }
312736
312280
  }
312737
312281
  return propValues;
@@ -312743,21 +312287,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312743
312287
  "ctx"
312744
312288
  ]);
312745
312289
  const { keys, optionalKeys: optionalKeys$1 } = _normalized.value;
312746
- const parseStr = (key4) => {
312747
- const k5 = esc4(key4);
312290
+ const parseStr = (key3) => {
312291
+ const k5 = esc4(key3);
312748
312292
  return `shape[${k5}]._zod.run({ value: input[${k5}], issues: [] }, ctx)`;
312749
312293
  };
312750
312294
  doc2.write(`const input = payload.value;`);
312751
312295
  const ids = Object.create(null);
312752
- for (const key4 of keys) {
312753
- ids[key4] = randomString4(15);
312296
+ for (const key3 of keys) {
312297
+ ids[key3] = randomString4(15);
312754
312298
  }
312755
312299
  doc2.write(`const newResult = {}`);
312756
- for (const key4 of keys) {
312757
- if (optionalKeys$1.has(key4)) {
312758
- const id = ids[key4];
312759
- doc2.write(`const ${id} = ${parseStr(key4)};`);
312760
- const k5 = esc4(key4);
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);
312761
312305
  doc2.write(`
312762
312306
  if (${id}.issues.length) {
312763
312307
  if (input[${k5}] === undefined) {
@@ -312779,14 +312323,14 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312779
312323
  }
312780
312324
  `);
312781
312325
  } else {
312782
- const id = ids[key4];
312783
- doc2.write(`const ${id} = ${parseStr(key4)};`);
312326
+ const id = ids[key3];
312327
+ doc2.write(`const ${id} = ${parseStr(key3)};`);
312784
312328
  doc2.write(`
312785
312329
  if (${id}.issues.length) payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
312786
312330
  ...iss,
312787
- path: iss.path ? [${esc4(key4)}, ...iss.path] : [${esc4(key4)}]
312331
+ path: iss.path ? [${esc4(key3)}, ...iss.path] : [${esc4(key3)}]
312788
312332
  })));`);
312789
- doc2.write(`newResult[${esc4(key4)}] = ${id}.value`);
312333
+ doc2.write(`newResult[${esc4(key3)}] = ${id}.value`);
312790
312334
  }
312791
312335
  }
312792
312336
  doc2.write(`payload.value = newResult;`);
@@ -312821,20 +312365,20 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312821
312365
  } else {
312822
312366
  payload.value = {};
312823
312367
  const shape = value4.shape;
312824
- for (const key4 of value4.keys) {
312825
- const el = shape[key4];
312368
+ for (const key3 of value4.keys) {
312369
+ const el = shape[key3];
312826
312370
  const r6 = el._zod.run({
312827
- value: input[key4],
312371
+ value: input[key3],
312828
312372
  issues: []
312829
312373
  }, ctx);
312830
312374
  const isOptional = el._zod.optin === "optional" && el._zod.optout === "optional";
312831
312375
  if (r6 instanceof Promise) {
312832
- proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key4, input) : handleObjectResult4(r$1, payload, key4)));
312376
+ proms.push(r6.then((r$1) => isOptional ? handleOptionalObjectResult4(r$1, payload, key3, input) : handleObjectResult4(r$1, payload, key3)));
312833
312377
  } else {
312834
312378
  if (isOptional) {
312835
- handleOptionalObjectResult4(r6, payload, key4, input);
312379
+ handleOptionalObjectResult4(r6, payload, key3, input);
312836
312380
  } else {
312837
- handleObjectResult4(r6, payload, key4);
312381
+ handleObjectResult4(r6, payload, key3);
312838
312382
  }
312839
312383
  }
312840
312384
  }
@@ -312846,21 +312390,21 @@ var $ZodObject4 = /* @__PURE__ */ $constructor4("$ZodObject", (inst, def) => {
312846
312390
  const keySet = value4.keySet;
312847
312391
  const _catchall = catchall._zod;
312848
312392
  const t8 = _catchall.def.type;
312849
- for (const key4 of Object.keys(input)) {
312850
- if (keySet.has(key4))
312393
+ for (const key3 of Object.keys(input)) {
312394
+ if (keySet.has(key3))
312851
312395
  continue;
312852
312396
  if (t8 === "never") {
312853
- unrecognized.push(key4);
312397
+ unrecognized.push(key3);
312854
312398
  continue;
312855
312399
  }
312856
312400
  const r6 = _catchall.run({
312857
- value: input[key4],
312401
+ value: input[key3],
312858
312402
  issues: []
312859
312403
  }, ctx);
312860
312404
  if (r6 instanceof Promise) {
312861
- proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key4)));
312405
+ proms.push(r6.then((r$1) => handleObjectResult4(r$1, payload, key3)));
312862
312406
  } else {
312863
- handleObjectResult4(r6, payload, key4);
312407
+ handleObjectResult4(r6, payload, key3);
312864
312408
  }
312865
312409
  }
312866
312410
  if (unrecognized.length) {
@@ -313030,22 +312574,22 @@ function mergeValues4(a7, b4) {
313030
312574
  data: a7
313031
312575
  };
313032
312576
  }
313033
- if (isPlainObject8(a7) && isPlainObject8(b4)) {
312577
+ if (isPlainObject7(a7) && isPlainObject7(b4)) {
313034
312578
  const bKeys = Object.keys(b4);
313035
- const sharedKeys = Object.keys(a7).filter((key4) => bKeys.indexOf(key4) !== -1);
312579
+ const sharedKeys = Object.keys(a7).filter((key3) => bKeys.indexOf(key3) !== -1);
313036
312580
  const newObj = {
313037
312581
  ...a7,
313038
312582
  ...b4
313039
312583
  };
313040
- for (const key4 of sharedKeys) {
313041
- const sharedValue = mergeValues4(a7[key4], b4[key4]);
312584
+ for (const key3 of sharedKeys) {
312585
+ const sharedValue = mergeValues4(a7[key3], b4[key3]);
313042
312586
  if (!sharedValue.valid) {
313043
312587
  return {
313044
312588
  valid: false,
313045
- mergeErrorPath: [key4, ...sharedValue.mergeErrorPath]
312589
+ mergeErrorPath: [key3, ...sharedValue.mergeErrorPath]
313046
312590
  };
313047
312591
  }
313048
- newObj[key4] = sharedValue.data;
312592
+ newObj[key3] = sharedValue.data;
313049
312593
  }
313050
312594
  return {
313051
312595
  valid: true,
@@ -313181,7 +312725,7 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313181
312725
  $ZodType4.init(inst, def);
313182
312726
  inst._zod.parse = (payload, ctx) => {
313183
312727
  const input = payload.value;
313184
- if (!isPlainObject8(input)) {
312728
+ if (!isPlainObject7(input)) {
313185
312729
  payload.issues.push({
313186
312730
  expected: "record",
313187
312731
  code: "invalid_type",
@@ -313194,32 +312738,32 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313194
312738
  if (def.keyType._zod.values) {
313195
312739
  const values = def.keyType._zod.values;
313196
312740
  payload.value = {};
313197
- for (const key4 of values) {
313198
- if (typeof key4 === "string" || typeof key4 === "number" || typeof key4 === "symbol") {
312741
+ for (const key3 of values) {
312742
+ if (typeof key3 === "string" || typeof key3 === "number" || typeof key3 === "symbol") {
313199
312743
  const result = def.valueType._zod.run({
313200
- value: input[key4],
312744
+ value: input[key3],
313201
312745
  issues: []
313202
312746
  }, ctx);
313203
312747
  if (result instanceof Promise) {
313204
312748
  proms.push(result.then((result$1) => {
313205
312749
  if (result$1.issues.length) {
313206
- payload.issues.push(...prefixIssues4(key4, result$1.issues));
312750
+ payload.issues.push(...prefixIssues4(key3, result$1.issues));
313207
312751
  }
313208
- payload.value[key4] = result$1.value;
312752
+ payload.value[key3] = result$1.value;
313209
312753
  }));
313210
312754
  } else {
313211
312755
  if (result.issues.length) {
313212
- payload.issues.push(...prefixIssues4(key4, result.issues));
312756
+ payload.issues.push(...prefixIssues4(key3, result.issues));
313213
312757
  }
313214
- payload.value[key4] = result.value;
312758
+ payload.value[key3] = result.value;
313215
312759
  }
313216
312760
  }
313217
312761
  }
313218
312762
  let unrecognized;
313219
- for (const key4 in input) {
313220
- if (!values.has(key4)) {
312763
+ for (const key3 in input) {
312764
+ if (!values.has(key3)) {
313221
312765
  unrecognized = unrecognized ?? [];
313222
- unrecognized.push(key4);
312766
+ unrecognized.push(key3);
313223
312767
  }
313224
312768
  }
313225
312769
  if (unrecognized && unrecognized.length > 0) {
@@ -313232,11 +312776,11 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313232
312776
  }
313233
312777
  } else {
313234
312778
  payload.value = {};
313235
- for (const key4 of Reflect.ownKeys(input)) {
313236
- if (key4 === "__proto__")
312779
+ for (const key3 of Reflect.ownKeys(input)) {
312780
+ if (key3 === "__proto__")
313237
312781
  continue;
313238
312782
  const keyResult = def.keyType._zod.run({
313239
- value: key4,
312783
+ value: key3,
313240
312784
  issues: []
313241
312785
  }, ctx);
313242
312786
  if (keyResult instanceof Promise) {
@@ -313247,27 +312791,27 @@ var $ZodRecord4 = /* @__PURE__ */ $constructor4("$ZodRecord", (inst, def) => {
313247
312791
  origin: "record",
313248
312792
  code: "invalid_key",
313249
312793
  issues: keyResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4())),
313250
- input: key4,
313251
- path: [key4],
312794
+ input: key3,
312795
+ path: [key3],
313252
312796
  inst
313253
312797
  });
313254
312798
  payload.value[keyResult.value] = keyResult.value;
313255
312799
  continue;
313256
312800
  }
313257
312801
  const result = def.valueType._zod.run({
313258
- value: input[key4],
312802
+ value: input[key3],
313259
312803
  issues: []
313260
312804
  }, ctx);
313261
312805
  if (result instanceof Promise) {
313262
312806
  proms.push(result.then((result$1) => {
313263
312807
  if (result$1.issues.length) {
313264
- payload.issues.push(...prefixIssues4(key4, result$1.issues));
312808
+ payload.issues.push(...prefixIssues4(key3, result$1.issues));
313265
312809
  }
313266
312810
  payload.value[keyResult.value] = result$1.value;
313267
312811
  }));
313268
312812
  } else {
313269
312813
  if (result.issues.length) {
313270
- payload.issues.push(...prefixIssues4(key4, result.issues));
312814
+ payload.issues.push(...prefixIssues4(key3, result.issues));
313271
312815
  }
313272
312816
  payload.value[keyResult.value] = result.value;
313273
312817
  }
@@ -313294,9 +312838,9 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
313294
312838
  }
313295
312839
  const proms = [];
313296
312840
  payload.value = new Map;
313297
- for (const [key4, value4] of input) {
312841
+ for (const [key3, value4] of input) {
313298
312842
  const keyResult = def.keyType._zod.run({
313299
- value: key4,
312843
+ value: key3,
313300
312844
  issues: []
313301
312845
  }, ctx);
313302
312846
  const valueResult = def.valueType._zod.run({
@@ -313305,10 +312849,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
313305
312849
  }, ctx);
313306
312850
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
313307
312851
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult$1, valueResult$1]) => {
313308
- handleMapResult4(keyResult$1, valueResult$1, payload, key4, input, inst, ctx);
312852
+ handleMapResult4(keyResult$1, valueResult$1, payload, key3, input, inst, ctx);
313309
312853
  }));
313310
312854
  } else {
313311
- handleMapResult4(keyResult, valueResult, payload, key4, input, inst, ctx);
312855
+ handleMapResult4(keyResult, valueResult, payload, key3, input, inst, ctx);
313312
312856
  }
313313
312857
  }
313314
312858
  if (proms.length)
@@ -313316,10 +312860,10 @@ var $ZodMap4 = /* @__PURE__ */ $constructor4("$ZodMap", (inst, def) => {
313316
312860
  return payload;
313317
312861
  };
313318
312862
  });
313319
- function handleMapResult4(keyResult, valueResult, final, key4, input, inst, ctx) {
312863
+ function handleMapResult4(keyResult, valueResult, final, key3, input, inst, ctx) {
313320
312864
  if (keyResult.issues.length) {
313321
- if (propertyKeyTypes4.has(typeof key4)) {
313322
- final.issues.push(...prefixIssues4(key4, keyResult.issues));
312865
+ if (propertyKeyTypes4.has(typeof key3)) {
312866
+ final.issues.push(...prefixIssues4(key3, keyResult.issues));
313323
312867
  } else {
313324
312868
  final.issues.push({
313325
312869
  origin: "map",
@@ -313331,15 +312875,15 @@ function handleMapResult4(keyResult, valueResult, final, key4, input, inst, ctx)
313331
312875
  }
313332
312876
  }
313333
312877
  if (valueResult.issues.length) {
313334
- if (propertyKeyTypes4.has(typeof key4)) {
313335
- final.issues.push(...prefixIssues4(key4, valueResult.issues));
312878
+ if (propertyKeyTypes4.has(typeof key3)) {
312879
+ final.issues.push(...prefixIssues4(key3, valueResult.issues));
313336
312880
  } else {
313337
312881
  final.issues.push({
313338
312882
  origin: "map",
313339
312883
  code: "invalid_element",
313340
312884
  input,
313341
312885
  inst,
313342
- key: key4,
312886
+ key: key3,
313343
312887
  issues: valueResult.issues.map((iss) => finalizeIssue4(iss, ctx, config4()))
313344
312888
  });
313345
312889
  }
@@ -319661,19 +319205,19 @@ var JSONSchemaGenerator4 = class {
319661
319205
  json$1.type = "object";
319662
319206
  json$1.properties = {};
319663
319207
  const shape = def.shape;
319664
- for (const key4 in shape) {
319665
- json$1.properties[key4] = this.process(shape[key4], {
319208
+ for (const key3 in shape) {
319209
+ json$1.properties[key3] = this.process(shape[key3], {
319666
319210
  ...params,
319667
319211
  path: [
319668
319212
  ...params.path,
319669
319213
  "properties",
319670
- key4
319214
+ key3
319671
319215
  ]
319672
319216
  });
319673
319217
  }
319674
319218
  const allKeys = new Set(Object.keys(shape));
319675
- const requiredKeys = new Set([...allKeys].filter((key4) => {
319676
- const v6 = def.shape[key4]._zod;
319219
+ const requiredKeys = new Set([...allKeys].filter((key3) => {
319220
+ const v6 = def.shape[key3]._zod;
319677
319221
  if (this.io === "input") {
319678
319222
  return v6.optin === undefined;
319679
319223
  } else {
@@ -320025,8 +319569,8 @@ var JSONSchemaGenerator4 = class {
320025
319569
  if (defId)
320026
319570
  seen.defId = defId;
320027
319571
  const schema$1 = seen.schema;
320028
- for (const key4 in schema$1) {
320029
- delete schema$1[key4];
319572
+ for (const key3 in schema$1) {
319573
+ delete schema$1[key3];
320030
319574
  }
320031
319575
  schema$1.$ref = ref;
320032
319576
  };
@@ -320137,8 +319681,8 @@ function toJSONSchema4(input, _params) {
320137
319681
  defs
320138
319682
  };
320139
319683
  for (const entry of input._idmap.entries()) {
320140
- const [key4, schema] = entry;
320141
- schemas3[key4] = gen$1.emit(schema, {
319684
+ const [key3, schema] = entry;
319685
+ schemas3[key3] = gen$1.emit(schema, {
320142
319686
  ..._params,
320143
319687
  external: external2
320144
319688
  });
@@ -320183,8 +319727,8 @@ function isTransforming4(_schema, _ctx) {
320183
319727
  return isTransforming4(def.element, ctx);
320184
319728
  }
320185
319729
  case "object": {
320186
- for (const key4 in def.shape) {
320187
- if (isTransforming4(def.shape[key4], ctx))
319730
+ for (const key3 in def.shape) {
319731
+ if (isTransforming4(def.shape[key3], ctx))
320188
319732
  return true;
320189
319733
  }
320190
319734
  return false;
@@ -322039,13 +321583,13 @@ var esm_default5 = createPrompt((config5, done) => {
322039
321583
  const [value4, setValue] = useState("");
322040
321584
  const theme = makeTheme(config5.theme);
322041
321585
  const prefix = usePrefix({ status, theme });
322042
- useKeypress((key4, rl) => {
322043
- if (isEnterKey(key4)) {
321586
+ useKeypress((key3, rl) => {
321587
+ if (isEnterKey(key3)) {
322044
321588
  const answer = getBooleanValue(value4, config5.default);
322045
321589
  setValue(transformer(answer));
322046
321590
  setStatus("done");
322047
321591
  done(answer);
322048
- } else if (key4.name === "tab") {
321592
+ } else if (key3.name === "tab") {
322049
321593
  const answer = boolToString(!getBooleanValue(value4, config5.default));
322050
321594
  rl.clearLine(0);
322051
321595
  rl.write(answer);
@@ -322065,476 +321609,20 @@ var esm_default5 = createPrompt((config5, done) => {
322065
321609
  return `${prefix} ${message}${defaultValue} ${formattedValue}`;
322066
321610
  });
322067
321611
 
322068
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/key.js
322069
- var isEnterKey4 = (key4) => key4.name === "enter" || key4.name === "return";
322070
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/errors.js
322071
- class AbortPromptError4 extends Error {
322072
- name = "AbortPromptError";
322073
- message = "Prompt was aborted";
322074
- constructor(options) {
322075
- super();
322076
- this.cause = options?.cause;
322077
- }
322078
- }
322079
-
322080
- class CancelPromptError4 extends Error {
322081
- name = "CancelPromptError";
322082
- message = "Prompt was canceled";
322083
- }
322084
-
322085
- class ExitPromptError4 extends Error {
322086
- name = "ExitPromptError";
322087
- }
322088
-
322089
- class HookError4 extends Error {
322090
- name = "HookError";
322091
- }
322092
-
322093
- class ValidationError4 extends Error {
322094
- name = "ValidationError";
322095
- }
322096
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
322097
- import { AsyncResource as AsyncResource11 } from "node:async_hooks";
322098
-
322099
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
322100
- import { AsyncLocalStorage as AsyncLocalStorage4, AsyncResource as AsyncResource10 } from "node:async_hooks";
322101
- var hookStorage4 = new AsyncLocalStorage4;
322102
- function createStore4(rl) {
322103
- const store = {
322104
- rl,
322105
- hooks: [],
322106
- hooksCleanup: [],
322107
- hooksEffect: [],
322108
- index: 0,
322109
- handleChange() {}
322110
- };
322111
- return store;
322112
- }
322113
- function withHooks4(rl, cb) {
322114
- const store = createStore4(rl);
322115
- return hookStorage4.run(store, () => {
322116
- function cycle(render) {
322117
- store.handleChange = () => {
322118
- store.index = 0;
322119
- render();
322120
- };
322121
- store.handleChange();
322122
- }
322123
- return cb(cycle);
322124
- });
322125
- }
322126
- function getStore4() {
322127
- const store = hookStorage4.getStore();
322128
- if (!store) {
322129
- throw new HookError4("[Inquirer] Hook functions can only be called from within a prompt");
322130
- }
322131
- return store;
322132
- }
322133
- function readline7() {
322134
- return getStore4().rl;
322135
- }
322136
- function withUpdates4(fn) {
322137
- const wrapped = (...args) => {
322138
- const store = getStore4();
322139
- let shouldUpdate = false;
322140
- const oldHandleChange = store.handleChange;
322141
- store.handleChange = () => {
322142
- shouldUpdate = true;
322143
- };
322144
- const returnValue = fn(...args);
322145
- if (shouldUpdate) {
322146
- oldHandleChange();
322147
- }
322148
- store.handleChange = oldHandleChange;
322149
- return returnValue;
322150
- };
322151
- return AsyncResource10.bind(wrapped);
322152
- }
322153
- function withPointer4(cb) {
322154
- const store = getStore4();
322155
- const { index: index2 } = store;
322156
- const pointer = {
322157
- get() {
322158
- return store.hooks[index2];
322159
- },
322160
- set(value4) {
322161
- store.hooks[index2] = value4;
322162
- },
322163
- initialized: index2 in store.hooks
322164
- };
322165
- const returnValue = cb(pointer);
322166
- store.index++;
322167
- return returnValue;
322168
- }
322169
- function handleChange4() {
322170
- getStore4().handleChange();
322171
- }
322172
- var effectScheduler4 = {
322173
- queue(cb) {
322174
- const store = getStore4();
322175
- const { index: index2 } = store;
322176
- store.hooksEffect.push(() => {
322177
- store.hooksCleanup[index2]?.();
322178
- const cleanFn = cb(readline7());
322179
- if (cleanFn != null && typeof cleanFn !== "function") {
322180
- throw new ValidationError4("useEffect return value must be a cleanup function or nothing.");
322181
- }
322182
- store.hooksCleanup[index2] = cleanFn;
322183
- });
322184
- },
322185
- run() {
322186
- const store = getStore4();
322187
- withUpdates4(() => {
322188
- store.hooksEffect.forEach((effect) => {
322189
- effect();
322190
- });
322191
- store.hooksEffect.length = 0;
322192
- })();
322193
- },
322194
- clearAll() {
322195
- const store = getStore4();
322196
- store.hooksCleanup.forEach((cleanFn) => {
322197
- cleanFn?.();
322198
- });
322199
- store.hooksEffect.length = 0;
322200
- store.hooksCleanup.length = 0;
322201
- }
322202
- };
322203
-
322204
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-state.js
322205
- function useState4(defaultValue) {
322206
- return withPointer4((pointer) => {
322207
- const setState = AsyncResource11.bind(function setState(newValue) {
322208
- if (pointer.get() !== newValue) {
322209
- pointer.set(newValue);
322210
- handleChange4();
322211
- }
322212
- });
322213
- if (pointer.initialized) {
322214
- return [pointer.get(), setState];
322215
- }
322216
- const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
322217
- pointer.set(value4);
322218
- return [value4, setState];
322219
- });
322220
- }
322221
-
322222
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
322223
- function useEffect4(cb, depArray) {
322224
- withPointer4((pointer) => {
322225
- const oldDeps = pointer.get();
322226
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
322227
- if (hasChanged) {
322228
- effectScheduler4.queue(cb);
322229
- }
322230
- pointer.set(depArray);
322231
- });
322232
- }
322233
-
322234
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/theme.js
322235
- var import_yoctocolors_cjs6 = __toESM(require_yoctocolors_cjs(), 1);
322236
- var defaultTheme4 = {
322237
- prefix: {
322238
- idle: import_yoctocolors_cjs6.default.blue("?"),
322239
- done: import_yoctocolors_cjs6.default.green(esm_default2.tick)
322240
- },
322241
- spinner: {
322242
- interval: 80,
322243
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs6.default.yellow(frame))
322244
- },
322245
- style: {
322246
- answer: import_yoctocolors_cjs6.default.cyan,
322247
- message: import_yoctocolors_cjs6.default.bold,
322248
- error: (text2) => import_yoctocolors_cjs6.default.red(`> ${text2}`),
322249
- defaultAnswer: (text2) => import_yoctocolors_cjs6.default.dim(`(${text2})`),
322250
- help: import_yoctocolors_cjs6.default.dim,
322251
- highlight: import_yoctocolors_cjs6.default.cyan,
322252
- key: (text2) => import_yoctocolors_cjs6.default.cyan(import_yoctocolors_cjs6.default.bold(`<${text2}>`))
322253
- }
322254
- };
322255
-
322256
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
322257
- function isPlainObject9(value4) {
322258
- if (typeof value4 !== "object" || value4 === null)
322259
- return false;
322260
- let proto = value4;
322261
- while (Object.getPrototypeOf(proto) !== null) {
322262
- proto = Object.getPrototypeOf(proto);
322263
- }
322264
- return Object.getPrototypeOf(value4) === proto;
322265
- }
322266
- function deepMerge5(...objects) {
322267
- const output = {};
322268
- for (const obj of objects) {
322269
- for (const [key4, value4] of Object.entries(obj)) {
322270
- const prevValue = output[key4];
322271
- output[key4] = isPlainObject9(prevValue) && isPlainObject9(value4) ? deepMerge5(prevValue, value4) : value4;
322272
- }
322273
- }
322274
- return output;
322275
- }
322276
- function makeTheme4(...themes) {
322277
- const themesToMerge = [
322278
- defaultTheme4,
322279
- ...themes.filter((theme) => theme != null)
322280
- ];
322281
- return deepMerge5(...themesToMerge);
322282
- }
322283
-
322284
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
322285
- function usePrefix4({ status = "idle", theme }) {
322286
- const [showLoader, setShowLoader] = useState4(false);
322287
- const [tick, setTick] = useState4(0);
322288
- const { prefix, spinner: spinner2 } = makeTheme4(theme);
322289
- useEffect4(() => {
322290
- if (status === "loading") {
322291
- let tickInterval;
322292
- let inc = -1;
322293
- const delayTimeout = setTimeout(() => {
322294
- setShowLoader(true);
322295
- tickInterval = setInterval(() => {
322296
- inc = inc + 1;
322297
- setTick(inc % spinner2.frames.length);
322298
- }, spinner2.interval);
322299
- }, 300);
322300
- return () => {
322301
- clearTimeout(delayTimeout);
322302
- clearInterval(tickInterval);
322303
- };
322304
- } else {
322305
- setShowLoader(false);
322306
- }
322307
- }, [status]);
322308
- if (showLoader) {
322309
- return spinner2.frames[tick];
322310
- }
322311
- const iconName = status === "loading" ? "idle" : status;
322312
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
322313
- }
322314
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
322315
- function useRef4(val) {
322316
- return useState4({ current: val })[0];
322317
- }
322318
-
322319
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
322320
- function useKeypress4(userHandler) {
322321
- const signal = useRef4(userHandler);
322322
- signal.current = userHandler;
322323
- useEffect4((rl) => {
322324
- let ignore = false;
322325
- const handler = withUpdates4((_input, event) => {
322326
- if (ignore)
322327
- return;
322328
- signal.current(event, rl);
322329
- });
322330
- rl.input.on("keypress", handler);
322331
- return () => {
322332
- ignore = true;
322333
- rl.input.removeListener("keypress", handler);
322334
- };
322335
- }, []);
322336
- }
322337
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/utils.js
322338
- var import_cli_width4 = __toESM(require_cli_width(), 1);
322339
- var import_wrap_ansi4 = __toESM(require_wrap_ansi(), 1);
322340
- function breakLines4(content, width) {
322341
- return content.split(`
322342
- `).flatMap((line) => import_wrap_ansi4.default(line, width, { trim: false, hard: true }).split(`
322343
- `).map((str) => str.trimEnd())).join(`
322344
- `);
322345
- }
322346
- function readlineWidth4() {
322347
- return import_cli_width4.default({ defaultWidth: 80, output: readline7().output });
322348
- }
322349
-
322350
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
322351
- var import_mute_stream4 = __toESM(require_lib(), 1);
322352
- import * as readline8 from "node:readline";
322353
- import { AsyncResource as AsyncResource12 } from "node:async_hooks";
322354
-
322355
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
322356
- var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
322357
- import { stripVTControlCharacters as stripVTControlCharacters5 } from "node:util";
322358
- var height4 = (content) => content.split(`
322359
- `).length;
322360
- var lastLine4 = (content) => content.split(`
322361
- `).pop() ?? "";
322362
- function cursorDown4(n6) {
322363
- return n6 > 0 ? import_ansi_escapes5.default.cursorDown(n6) : "";
322364
- }
322365
-
322366
- class ScreenManager4 {
322367
- height = 0;
322368
- extraLinesUnderPrompt = 0;
322369
- cursorPos;
322370
- rl;
322371
- constructor(rl) {
322372
- this.rl = rl;
322373
- this.cursorPos = rl.getCursorPos();
322374
- }
322375
- write(content) {
322376
- this.rl.output.unmute();
322377
- this.rl.output.write(content);
322378
- this.rl.output.mute();
322379
- }
322380
- render(content, bottomContent = "") {
322381
- const promptLine = lastLine4(content);
322382
- const rawPromptLine = stripVTControlCharacters5(promptLine);
322383
- let prompt = rawPromptLine;
322384
- if (this.rl.line.length > 0) {
322385
- prompt = prompt.slice(0, -this.rl.line.length);
322386
- }
322387
- this.rl.setPrompt(prompt);
322388
- this.cursorPos = this.rl.getCursorPos();
322389
- const width = readlineWidth4();
322390
- content = breakLines4(content, width);
322391
- bottomContent = breakLines4(bottomContent, width);
322392
- if (rawPromptLine.length % width === 0) {
322393
- content += `
322394
- `;
322395
- }
322396
- let output = content + (bottomContent ? `
322397
- ` + bottomContent : "");
322398
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
322399
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height4(bottomContent) : 0);
322400
- if (bottomContentHeight > 0)
322401
- output += import_ansi_escapes5.default.cursorUp(bottomContentHeight);
322402
- output += import_ansi_escapes5.default.cursorTo(this.cursorPos.cols);
322403
- this.write(cursorDown4(this.extraLinesUnderPrompt) + import_ansi_escapes5.default.eraseLines(this.height) + output);
322404
- this.extraLinesUnderPrompt = bottomContentHeight;
322405
- this.height = height4(output);
322406
- }
322407
- checkCursorPos() {
322408
- const cursorPos = this.rl.getCursorPos();
322409
- if (cursorPos.cols !== this.cursorPos.cols) {
322410
- this.write(import_ansi_escapes5.default.cursorTo(cursorPos.cols));
322411
- this.cursorPos = cursorPos;
322412
- }
322413
- }
322414
- done({ clearContent }) {
322415
- this.rl.setPrompt("");
322416
- let output = cursorDown4(this.extraLinesUnderPrompt);
322417
- output += clearContent ? import_ansi_escapes5.default.eraseLines(this.height) : `
322418
- `;
322419
- output += import_ansi_escapes5.default.cursorShow;
322420
- this.write(output);
322421
- this.rl.close();
322422
- }
322423
- }
322424
-
322425
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
322426
- class PromisePolyfill4 extends Promise {
322427
- static withResolver() {
322428
- let resolve6;
322429
- let reject;
322430
- const promise5 = new Promise((res, rej) => {
322431
- resolve6 = res;
322432
- reject = rej;
322433
- });
322434
- return { promise: promise5, resolve: resolve6, reject };
322435
- }
322436
- }
322437
-
322438
- // ../../node_modules/@inquirer/password/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
322439
- function getCallSites4() {
322440
- const _prepareStackTrace = Error.prepareStackTrace;
322441
- let result = [];
322442
- try {
322443
- Error.prepareStackTrace = (_5, callSites) => {
322444
- const callSitesWithoutCurrent = callSites.slice(1);
322445
- result = callSitesWithoutCurrent;
322446
- return callSitesWithoutCurrent;
322447
- };
322448
- new Error().stack;
322449
- } catch {
322450
- return result;
322451
- }
322452
- Error.prepareStackTrace = _prepareStackTrace;
322453
- return result;
322454
- }
322455
- function createPrompt4(view) {
322456
- const callSites = getCallSites4();
322457
- const prompt = (config5, context = {}) => {
322458
- const { input = process.stdin, signal } = context;
322459
- const cleanups = new Set;
322460
- const output = new import_mute_stream4.default;
322461
- output.pipe(context.output ?? process.stdout);
322462
- const rl = readline8.createInterface({
322463
- terminal: true,
322464
- input,
322465
- output
322466
- });
322467
- const screen = new ScreenManager4(rl);
322468
- const { promise: promise5, resolve: resolve6, reject } = PromisePolyfill4.withResolver();
322469
- const cancel3 = () => reject(new CancelPromptError4);
322470
- if (signal) {
322471
- const abort = () => reject(new AbortPromptError4({ cause: signal.reason }));
322472
- if (signal.aborted) {
322473
- abort();
322474
- return Object.assign(promise5, { cancel: cancel3 });
322475
- }
322476
- signal.addEventListener("abort", abort);
322477
- cleanups.add(() => signal.removeEventListener("abort", abort));
322478
- }
322479
- cleanups.add(onExit((code2, signal2) => {
322480
- reject(new ExitPromptError4(`User force closed the prompt with ${code2} ${signal2}`));
322481
- }));
322482
- const sigint = () => reject(new ExitPromptError4(`User force closed the prompt with SIGINT`));
322483
- rl.on("SIGINT", sigint);
322484
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
322485
- const checkCursorPos = () => screen.checkCursorPos();
322486
- rl.input.on("keypress", checkCursorPos);
322487
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
322488
- return withHooks4(rl, (cycle) => {
322489
- const hooksCleanup = AsyncResource12.bind(() => effectScheduler4.clearAll());
322490
- rl.on("close", hooksCleanup);
322491
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
322492
- cycle(() => {
322493
- try {
322494
- const nextView = view(config5, (value4) => {
322495
- setImmediate(() => resolve6(value4));
322496
- });
322497
- if (nextView === undefined) {
322498
- const callerFilename = callSites[1]?.getFileName();
322499
- throw new Error(`Prompt functions must return a string.
322500
- at ${callerFilename}`);
322501
- }
322502
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
322503
- screen.render(content, bottomContent);
322504
- effectScheduler4.run();
322505
- } catch (error45) {
322506
- reject(error45);
322507
- }
322508
- });
322509
- return Object.assign(promise5.then((answer) => {
322510
- effectScheduler4.clearAll();
322511
- return answer;
322512
- }, (error45) => {
322513
- effectScheduler4.clearAll();
322514
- throw error45;
322515
- }).finally(() => {
322516
- cleanups.forEach((cleanup) => cleanup());
322517
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
322518
- output.end();
322519
- }).then(() => promise5), { cancel: cancel3 });
322520
- });
322521
- };
322522
- return prompt;
322523
- }
322524
321612
  // ../../node_modules/@inquirer/password/dist/esm/index.js
322525
- var import_ansi_escapes6 = __toESM(require_ansi_escapes(), 1);
322526
- var esm_default6 = createPrompt4((config5, done) => {
321613
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
321614
+ var esm_default6 = createPrompt((config5, done) => {
322527
321615
  const { validate: validate5 = () => true } = config5;
322528
- const theme = makeTheme4(config5.theme);
322529
- const [status, setStatus] = useState4("idle");
322530
- const [errorMsg, setError] = useState4();
322531
- const [value4, setValue] = useState4("");
322532
- const prefix = usePrefix4({ status, theme });
322533
- useKeypress4(async (key5, rl) => {
321616
+ const theme = makeTheme(config5.theme);
321617
+ const [status, setStatus] = useState("idle");
321618
+ const [errorMsg, setError] = useState();
321619
+ const [value4, setValue] = useState("");
321620
+ const prefix = usePrefix({ status, theme });
321621
+ useKeypress(async (key3, rl) => {
322534
321622
  if (status !== "idle") {
322535
321623
  return;
322536
321624
  }
322537
- if (isEnterKey4(key5)) {
321625
+ if (isEnterKey(key3)) {
322538
321626
  const answer = value4;
322539
321627
  setStatus("loading");
322540
321628
  const isValid = await validate5(answer);
@@ -322559,7 +321647,7 @@ var esm_default6 = createPrompt4((config5, done) => {
322559
321647
  const maskChar = typeof config5.mask === "string" ? config5.mask : "*";
322560
321648
  formattedValue = maskChar.repeat(value4.length);
322561
321649
  } else if (status !== "done") {
322562
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes6.default.cursorHide}`;
321650
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
322563
321651
  }
322564
321652
  if (status === "done") {
322565
321653
  formattedValue = theme.style.answer(formattedValue);
@@ -324237,7 +323325,7 @@ var basename2 = function(p5, extension) {
324237
323325
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
324238
323326
  };
324239
323327
  // ../../node_modules/defu/dist/defu.mjs
324240
- function isPlainObject10(value4) {
323328
+ function isPlainObject8(value4) {
324241
323329
  if (value4 === null || typeof value4 !== "object") {
324242
323330
  return false;
324243
323331
  }
@@ -324254,27 +323342,27 @@ function isPlainObject10(value4) {
324254
323342
  return true;
324255
323343
  }
324256
323344
  function _defu(baseObject, defaults4, namespace = ".", merger) {
324257
- if (!isPlainObject10(defaults4)) {
323345
+ if (!isPlainObject8(defaults4)) {
324258
323346
  return _defu(baseObject, {}, namespace, merger);
324259
323347
  }
324260
323348
  const object5 = Object.assign({}, defaults4);
324261
- for (const key5 in baseObject) {
324262
- if (key5 === "__proto__" || key5 === "constructor") {
323349
+ for (const key3 in baseObject) {
323350
+ if (key3 === "__proto__" || key3 === "constructor") {
324263
323351
  continue;
324264
323352
  }
324265
- const value4 = baseObject[key5];
323353
+ const value4 = baseObject[key3];
324266
323354
  if (value4 === null || value4 === undefined) {
324267
323355
  continue;
324268
323356
  }
324269
- if (merger && merger(object5, key5, value4, namespace)) {
323357
+ if (merger && merger(object5, key3, value4, namespace)) {
324270
323358
  continue;
324271
323359
  }
324272
- if (Array.isArray(value4) && Array.isArray(object5[key5])) {
324273
- object5[key5] = [...value4, ...object5[key5]];
324274
- } else if (isPlainObject10(value4) && isPlainObject10(object5[key5])) {
324275
- object5[key5] = _defu(value4, object5[key5], (namespace ? `${namespace}.` : "") + key5.toString(), merger);
323360
+ if (Array.isArray(value4) && Array.isArray(object5[key3])) {
323361
+ object5[key3] = [...value4, ...object5[key3]];
323362
+ } else if (isPlainObject8(value4) && isPlainObject8(object5[key3])) {
323363
+ object5[key3] = _defu(value4, object5[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
324276
323364
  } else {
324277
- object5[key5] = value4;
323365
+ object5[key3] = value4;
324278
323366
  }
324279
323367
  }
324280
323368
  return object5;
@@ -324283,15 +323371,15 @@ function createDefu(merger) {
324283
323371
  return (...arguments_4) => arguments_4.reduce((p5, c3) => _defu(p5, c3, "", merger), {});
324284
323372
  }
324285
323373
  var defu = createDefu();
324286
- var defuFn = createDefu((object5, key5, currentValue) => {
324287
- if (object5[key5] !== undefined && typeof currentValue === "function") {
324288
- object5[key5] = currentValue(object5[key5]);
323374
+ var defuFn = createDefu((object5, key3, currentValue) => {
323375
+ if (object5[key3] !== undefined && typeof currentValue === "function") {
323376
+ object5[key3] = currentValue(object5[key3]);
324289
323377
  return true;
324290
323378
  }
324291
323379
  });
324292
- var defuArrayFn = createDefu((object5, key5, currentValue) => {
324293
- if (Array.isArray(object5[key5]) && typeof currentValue === "function") {
324294
- object5[key5] = currentValue(object5[key5]);
323380
+ var defuArrayFn = createDefu((object5, key3, currentValue) => {
323381
+ if (Array.isArray(object5[key3]) && typeof currentValue === "function") {
323382
+ object5[key3] = currentValue(object5[key3]);
324295
323383
  return true;
324296
323384
  }
324297
323385
  });
@@ -327501,11 +326589,11 @@ function cacheDirectory() {
327501
326589
  }
327502
326590
  function normalizeHeaders(headers = {}) {
327503
326591
  const normalized = {};
327504
- for (const [key5, value4] of Object.entries(headers)) {
326592
+ for (const [key3, value4] of Object.entries(headers)) {
327505
326593
  if (!value4) {
327506
326594
  continue;
327507
326595
  }
327508
- normalized[key5.toLowerCase()] = value4;
326596
+ normalized[key3.toLowerCase()] = value4;
327509
326597
  }
327510
326598
  return normalized;
327511
326599
  }
@@ -330750,7 +329838,7 @@ function jsonOutput(data) {
330750
329838
  var composer = require_composer();
330751
329839
  var Document = require_Document();
330752
329840
  var Schema = require_Schema();
330753
- var errors7 = require_errors3();
329841
+ var errors5 = require_errors3();
330754
329842
  var Alias = require_Alias();
330755
329843
  var identity2 = require_identity();
330756
329844
  var Pair = require_Pair();
@@ -330766,9 +329854,9 @@ var visit2 = require_visit();
330766
329854
  var $Composer = composer.Composer;
330767
329855
  var $Document = Document.Document;
330768
329856
  var $Schema = Schema.Schema;
330769
- var $YAMLError = errors7.YAMLError;
330770
- var $YAMLParseError = errors7.YAMLParseError;
330771
- var $YAMLWarning = errors7.YAMLWarning;
329857
+ var $YAMLError = errors5.YAMLError;
329858
+ var $YAMLParseError = errors5.YAMLParseError;
329859
+ var $YAMLWarning = errors5.YAMLWarning;
330772
329860
  var $Alias = Alias.Alias;
330773
329861
  var $isAlias = identity2.isAlias;
330774
329862
  var $isCollection = identity2.isCollection;
@@ -331375,11 +330463,11 @@ function createCommand4() {
331375
330463
 
331376
330464
  // src/utils/commands/passthrough-options.ts
331377
330465
  function mapPassthroughOptions(options, command) {
331378
- const optionArgs = Object.entries(options).map(([key5, value4]) => {
330466
+ const optionArgs = Object.entries(options).map(([key3, value4]) => {
331379
330467
  if (value4 === true) {
331380
- return `--${key5}`;
330468
+ return `--${key3}`;
331381
330469
  }
331382
- return `--${key5}=${value4}`;
330470
+ return `--${key3}=${value4}`;
331383
330471
  });
331384
330472
  return [...optionArgs, ...command.args];
331385
330473
  }
@@ -332608,4 +331696,4 @@ async function sdkCliCommand(argv = process.argv) {
332608
331696
  // src/cli.ts
332609
331697
  sdkCliCommand();
332610
331698
 
332611
- //# debugId=B4C5B6E3373BFF1764756E2164756E21
331699
+ //# debugId=FFD67B8C17020EB264756E2164756E21