@settlemint/sdk-cli 2.6.2-mainec3ebb39 → 2.6.2-pr03ff968b

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 +852 -838
  2. package/dist/cli.js.map +23 -22
  3. package/package.json +8 -8
package/dist/cli.js CHANGED
@@ -3666,124 +3666,6 @@ var require_lib = __commonJS((exports, module) => {
3666
3666
  module.exports = MuteStream;
3667
3667
  });
3668
3668
 
3669
- // ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
3670
- var require_ansi_escapes = __commonJS((exports, module) => {
3671
- var ansiEscapes = exports;
3672
- exports.default = ansiEscapes;
3673
- var ESC = "\x1B[";
3674
- var OSC = "\x1B]";
3675
- var BEL = "\x07";
3676
- var SEP = ";";
3677
- var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
3678
- ansiEscapes.cursorTo = (x, y) => {
3679
- if (typeof x !== "number") {
3680
- throw new TypeError("The `x` argument is required");
3681
- }
3682
- if (typeof y !== "number") {
3683
- return ESC + (x + 1) + "G";
3684
- }
3685
- return ESC + (y + 1) + ";" + (x + 1) + "H";
3686
- };
3687
- ansiEscapes.cursorMove = (x, y) => {
3688
- if (typeof x !== "number") {
3689
- throw new TypeError("The `x` argument is required");
3690
- }
3691
- let ret = "";
3692
- if (x < 0) {
3693
- ret += ESC + -x + "D";
3694
- } else if (x > 0) {
3695
- ret += ESC + x + "C";
3696
- }
3697
- if (y < 0) {
3698
- ret += ESC + -y + "A";
3699
- } else if (y > 0) {
3700
- ret += ESC + y + "B";
3701
- }
3702
- return ret;
3703
- };
3704
- ansiEscapes.cursorUp = (count = 1) => ESC + count + "A";
3705
- ansiEscapes.cursorDown = (count = 1) => ESC + count + "B";
3706
- ansiEscapes.cursorForward = (count = 1) => ESC + count + "C";
3707
- ansiEscapes.cursorBackward = (count = 1) => ESC + count + "D";
3708
- ansiEscapes.cursorLeft = ESC + "G";
3709
- ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s";
3710
- ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u";
3711
- ansiEscapes.cursorGetPosition = ESC + "6n";
3712
- ansiEscapes.cursorNextLine = ESC + "E";
3713
- ansiEscapes.cursorPrevLine = ESC + "F";
3714
- ansiEscapes.cursorHide = ESC + "?25l";
3715
- ansiEscapes.cursorShow = ESC + "?25h";
3716
- ansiEscapes.eraseLines = (count) => {
3717
- let clear = "";
3718
- for (let i = 0;i < count; i++) {
3719
- clear += ansiEscapes.eraseLine + (i < count - 1 ? ansiEscapes.cursorUp() : "");
3720
- }
3721
- if (count) {
3722
- clear += ansiEscapes.cursorLeft;
3723
- }
3724
- return clear;
3725
- };
3726
- ansiEscapes.eraseEndLine = ESC + "K";
3727
- ansiEscapes.eraseStartLine = ESC + "1K";
3728
- ansiEscapes.eraseLine = ESC + "2K";
3729
- ansiEscapes.eraseDown = ESC + "J";
3730
- ansiEscapes.eraseUp = ESC + "1J";
3731
- ansiEscapes.eraseScreen = ESC + "2J";
3732
- ansiEscapes.scrollUp = ESC + "S";
3733
- ansiEscapes.scrollDown = ESC + "T";
3734
- ansiEscapes.clearScreen = "\x1Bc";
3735
- ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC}0f` : `${ansiEscapes.eraseScreen}${ESC}3J${ESC}H`;
3736
- ansiEscapes.beep = BEL;
3737
- ansiEscapes.link = (text, url) => {
3738
- return [
3739
- OSC,
3740
- "8",
3741
- SEP,
3742
- SEP,
3743
- url,
3744
- BEL,
3745
- text,
3746
- OSC,
3747
- "8",
3748
- SEP,
3749
- SEP,
3750
- BEL
3751
- ].join("");
3752
- };
3753
- ansiEscapes.image = (buffer, options = {}) => {
3754
- let ret = `${OSC}1337;File=inline=1`;
3755
- if (options.width) {
3756
- ret += `;width=${options.width}`;
3757
- }
3758
- if (options.height) {
3759
- ret += `;height=${options.height}`;
3760
- }
3761
- if (options.preserveAspectRatio === false) {
3762
- ret += ";preserveAspectRatio=0";
3763
- }
3764
- return ret + ":" + buffer.toString("base64") + BEL;
3765
- };
3766
- ansiEscapes.iTerm = {
3767
- setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
3768
- annotation: (message, options = {}) => {
3769
- let ret = `${OSC}1337;`;
3770
- const hasX = typeof options.x !== "undefined";
3771
- const hasY = typeof options.y !== "undefined";
3772
- if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
3773
- throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
3774
- }
3775
- message = message.replace(/\|/g, "");
3776
- ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
3777
- if (options.length > 0) {
3778
- ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
3779
- } else {
3780
- ret += message;
3781
- }
3782
- return ret + BEL;
3783
- }
3784
- };
3785
- });
3786
-
3787
3669
  // ../../node_modules/.bun/console-table-printer@2.14.6/node_modules/console-table-printer/dist/src/utils/colored-console-line.js
3788
3670
  var require_colored_console_line = __commonJS((exports) => {
3789
3671
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -161660,7 +161542,7 @@ ${lanes.join(`
161660
161542
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
161661
161543
  var _a;
161662
161544
  const text = [];
161663
- const colors3 = createColors(sys2);
161545
+ const colors2 = createColors(sys2);
161664
161546
  const name2 = getDisplayNameTextOfOption(option);
161665
161547
  const valueCandidates = getValueCandidate(option);
161666
161548
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -161681,7 +161563,7 @@ ${lanes.join(`
161681
161563
  }
161682
161564
  text.push(sys2.newLine);
161683
161565
  } else {
161684
- text.push(colors3.blue(name2), sys2.newLine);
161566
+ text.push(colors2.blue(name2), sys2.newLine);
161685
161567
  if (option.description) {
161686
161568
  const description3 = getDiagnosticText(option.description);
161687
161569
  text.push(description3);
@@ -161726,7 +161608,7 @@ ${lanes.join(`
161726
161608
  if (isFirstLine) {
161727
161609
  curLeft = left.padStart(rightAlignOfLeft2);
161728
161610
  curLeft = curLeft.padEnd(leftAlignOfRight2);
161729
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
161611
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
161730
161612
  } else {
161731
161613
  curLeft = "".padStart(leftAlignOfRight2);
161732
161614
  }
@@ -161838,9 +161720,9 @@ ${lanes.join(`
161838
161720
  return res;
161839
161721
  }
161840
161722
  function printEasyHelp(sys2, simpleOptions) {
161841
- const colors3 = createColors(sys2);
161723
+ const colors2 = createColors(sys2);
161842
161724
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version2)}`)];
161843
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161725
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
161844
161726
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
161845
161727
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
161846
161728
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -161861,7 +161743,7 @@ ${lanes.join(`
161861
161743
  function example(ex, desc) {
161862
161744
  const examples = typeof ex === "string" ? [ex] : ex;
161863
161745
  for (const example2 of examples) {
161864
- output.push(" " + colors3.blue(example2) + sys2.newLine);
161746
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
161865
161747
  }
161866
161748
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
161867
161749
  }
@@ -161884,12 +161766,12 @@ ${lanes.join(`
161884
161766
  }
161885
161767
  function getHeader(sys2, message) {
161886
161768
  var _a;
161887
- const colors3 = createColors(sys2);
161769
+ const colors2 = createColors(sys2);
161888
161770
  const header = [];
161889
161771
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
161890
161772
  const tsIconLength = 5;
161891
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
161892
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
161773
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
161774
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
161893
161775
  if (terminalWidth >= message.length + tsIconLength) {
161894
161776
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
161895
161777
  const leftAlign = rightAlign - tsIconLength;
@@ -231946,6 +231828,124 @@ var require_slugify = __commonJS((exports, module) => {
231946
231828
  });
231947
231829
  });
231948
231830
 
231831
+ // ../../node_modules/.bun/ansi-escapes@4.3.2/node_modules/ansi-escapes/index.js
231832
+ var require_ansi_escapes = __commonJS((exports, module) => {
231833
+ var ansiEscapes = exports;
231834
+ exports.default = ansiEscapes;
231835
+ var ESC2 = "\x1B[";
231836
+ var OSC = "\x1B]";
231837
+ var BEL = "\x07";
231838
+ var SEP = ";";
231839
+ var isTerminalApp = process.env.TERM_PROGRAM === "Apple_Terminal";
231840
+ ansiEscapes.cursorTo = (x6, y4) => {
231841
+ if (typeof x6 !== "number") {
231842
+ throw new TypeError("The `x` argument is required");
231843
+ }
231844
+ if (typeof y4 !== "number") {
231845
+ return ESC2 + (x6 + 1) + "G";
231846
+ }
231847
+ return ESC2 + (y4 + 1) + ";" + (x6 + 1) + "H";
231848
+ };
231849
+ ansiEscapes.cursorMove = (x6, y4) => {
231850
+ if (typeof x6 !== "number") {
231851
+ throw new TypeError("The `x` argument is required");
231852
+ }
231853
+ let ret = "";
231854
+ if (x6 < 0) {
231855
+ ret += ESC2 + -x6 + "D";
231856
+ } else if (x6 > 0) {
231857
+ ret += ESC2 + x6 + "C";
231858
+ }
231859
+ if (y4 < 0) {
231860
+ ret += ESC2 + -y4 + "A";
231861
+ } else if (y4 > 0) {
231862
+ ret += ESC2 + y4 + "B";
231863
+ }
231864
+ return ret;
231865
+ };
231866
+ ansiEscapes.cursorUp = (count = 1) => ESC2 + count + "A";
231867
+ ansiEscapes.cursorDown = (count = 1) => ESC2 + count + "B";
231868
+ ansiEscapes.cursorForward = (count = 1) => ESC2 + count + "C";
231869
+ ansiEscapes.cursorBackward = (count = 1) => ESC2 + count + "D";
231870
+ ansiEscapes.cursorLeft = ESC2 + "G";
231871
+ ansiEscapes.cursorSavePosition = isTerminalApp ? "\x1B7" : ESC2 + "s";
231872
+ ansiEscapes.cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC2 + "u";
231873
+ ansiEscapes.cursorGetPosition = ESC2 + "6n";
231874
+ ansiEscapes.cursorNextLine = ESC2 + "E";
231875
+ ansiEscapes.cursorPrevLine = ESC2 + "F";
231876
+ ansiEscapes.cursorHide = ESC2 + "?25l";
231877
+ ansiEscapes.cursorShow = ESC2 + "?25h";
231878
+ ansiEscapes.eraseLines = (count) => {
231879
+ let clear = "";
231880
+ for (let i7 = 0;i7 < count; i7++) {
231881
+ clear += ansiEscapes.eraseLine + (i7 < count - 1 ? ansiEscapes.cursorUp() : "");
231882
+ }
231883
+ if (count) {
231884
+ clear += ansiEscapes.cursorLeft;
231885
+ }
231886
+ return clear;
231887
+ };
231888
+ ansiEscapes.eraseEndLine = ESC2 + "K";
231889
+ ansiEscapes.eraseStartLine = ESC2 + "1K";
231890
+ ansiEscapes.eraseLine = ESC2 + "2K";
231891
+ ansiEscapes.eraseDown = ESC2 + "J";
231892
+ ansiEscapes.eraseUp = ESC2 + "1J";
231893
+ ansiEscapes.eraseScreen = ESC2 + "2J";
231894
+ ansiEscapes.scrollUp = ESC2 + "S";
231895
+ ansiEscapes.scrollDown = ESC2 + "T";
231896
+ ansiEscapes.clearScreen = "\x1Bc";
231897
+ ansiEscapes.clearTerminal = process.platform === "win32" ? `${ansiEscapes.eraseScreen}${ESC2}0f` : `${ansiEscapes.eraseScreen}${ESC2}3J${ESC2}H`;
231898
+ ansiEscapes.beep = BEL;
231899
+ ansiEscapes.link = (text2, url2) => {
231900
+ return [
231901
+ OSC,
231902
+ "8",
231903
+ SEP,
231904
+ SEP,
231905
+ url2,
231906
+ BEL,
231907
+ text2,
231908
+ OSC,
231909
+ "8",
231910
+ SEP,
231911
+ SEP,
231912
+ BEL
231913
+ ].join("");
231914
+ };
231915
+ ansiEscapes.image = (buffer, options = {}) => {
231916
+ let ret = `${OSC}1337;File=inline=1`;
231917
+ if (options.width) {
231918
+ ret += `;width=${options.width}`;
231919
+ }
231920
+ if (options.height) {
231921
+ ret += `;height=${options.height}`;
231922
+ }
231923
+ if (options.preserveAspectRatio === false) {
231924
+ ret += ";preserveAspectRatio=0";
231925
+ }
231926
+ return ret + ":" + buffer.toString("base64") + BEL;
231927
+ };
231928
+ ansiEscapes.iTerm = {
231929
+ setCwd: (cwd = process.cwd()) => `${OSC}50;CurrentDir=${cwd}${BEL}`,
231930
+ annotation: (message, options = {}) => {
231931
+ let ret = `${OSC}1337;`;
231932
+ const hasX = typeof options.x !== "undefined";
231933
+ const hasY = typeof options.y !== "undefined";
231934
+ if ((hasX || hasY) && !(hasX && hasY && typeof options.length !== "undefined")) {
231935
+ throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
231936
+ }
231937
+ message = message.replace(/\|/g, "");
231938
+ ret += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=";
231939
+ if (options.length > 0) {
231940
+ ret += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
231941
+ } else {
231942
+ ret += message;
231943
+ }
231944
+ return ret + BEL;
231945
+ }
231946
+ };
231947
+ });
231948
+
231949
231949
  // ../../node_modules/.bun/abitype@1.1.0+50e9b7ffbf081acf/node_modules/abitype/dist/esm/version.js
231950
231950
  var version2 = "1.1.0";
231951
231951
 
@@ -233941,16 +233941,16 @@ var init_lru = __esm(() => {
233941
233941
  });
233942
233942
  this.maxSize = size2;
233943
233943
  }
233944
- get(key2) {
233945
- const value5 = super.get(key2);
233946
- if (super.has(key2) && value5 !== undefined) {
233947
- this.delete(key2);
233948
- super.set(key2, value5);
233944
+ get(key3) {
233945
+ const value5 = super.get(key3);
233946
+ if (super.has(key3) && value5 !== undefined) {
233947
+ this.delete(key3);
233948
+ super.set(key3, value5);
233949
233949
  }
233950
233950
  return value5;
233951
233951
  }
233952
- set(key2, value5) {
233953
- super.set(key2, value5);
233952
+ set(key3, value5) {
233953
+ super.set(key3, value5);
233954
233954
  if (this.maxSize && this.size > this.maxSize) {
233955
233955
  const firstKey = this.keys().next().value;
233956
233956
  if (firstKey)
@@ -234992,9 +234992,9 @@ var init_decodeErrorResult = __esm(() => {
234992
234992
  });
234993
234993
 
234994
234994
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/stringify.js
234995
- var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key2, value_) => {
234995
+ var stringify3 = (value5, replacer, space) => JSON.stringify(value5, (key3, value_) => {
234996
234996
  const value6 = typeof value_ === "bigint" ? value_.toString() : value_;
234997
- return typeof replacer === "function" ? replacer(key2, value6) : value6;
234997
+ return typeof replacer === "function" ? replacer(key3, value6) : value6;
234998
234998
  }, space);
234999
234999
 
235000
235000
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
@@ -235108,13 +235108,13 @@ var init_stateOverride = __esm(() => {
235108
235108
 
235109
235109
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/errors/transaction.js
235110
235110
  function prettyPrint(args) {
235111
- const entries = Object.entries(args).map(([key2, value5]) => {
235111
+ const entries = Object.entries(args).map(([key3, value5]) => {
235112
235112
  if (value5 === undefined || value5 === false)
235113
235113
  return null;
235114
- return [key2, value5];
235114
+ return [key3, value5];
235115
235115
  }).filter(Boolean);
235116
- const maxLength = entries.reduce((acc, [key2]) => Math.max(acc, key2.length), 0);
235117
- return entries.map(([key2, value5]) => ` ${`${key2}:`.padEnd(maxLength + 1)} ${value5}`).join(`
235116
+ const maxLength = entries.reduce((acc, [key3]) => Math.max(acc, key3.length), 0);
235117
+ return entries.map(([key3, value5]) => ` ${`${key3}:`.padEnd(maxLength + 1)} ${value5}`).join(`
235118
235118
  `);
235119
235119
  }
235120
235120
  var FeeConflictError, InvalidLegacyVError, InvalidSerializableTransactionError, InvalidStorageKeySizeError, TransactionNotFoundError, TransactionReceiptNotFoundError, WaitForTransactionReceiptTimeoutError;
@@ -236232,7 +236232,7 @@ var init_sha2 = __esm(() => {
236232
236232
  });
236233
236233
 
236234
236234
  // ../../node_modules/.bun/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js
236235
- var HMAC, hmac = (hash3, key2, message) => new HMAC(hash3, key2).update(message).digest();
236235
+ var HMAC, hmac = (hash3, key3, message) => new HMAC(hash3, key3).update(message).digest();
236236
236236
  var init_hmac = __esm(() => {
236237
236237
  init_utils2();
236238
236238
  HMAC = class HMAC extends Hash {
@@ -236241,7 +236241,7 @@ var init_hmac = __esm(() => {
236241
236241
  this.finished = false;
236242
236242
  this.destroyed = false;
236243
236243
  ahash(hash3);
236244
- const key2 = toBytes2(_key);
236244
+ const key3 = toBytes2(_key);
236245
236245
  this.iHash = hash3.create();
236246
236246
  if (typeof this.iHash.update !== "function")
236247
236247
  throw new Error("Expected instance of class which extends utils.Hash");
@@ -236249,7 +236249,7 @@ var init_hmac = __esm(() => {
236249
236249
  this.outputLen = this.iHash.outputLen;
236250
236250
  const blockLen = this.blockLen;
236251
236251
  const pad2 = new Uint8Array(blockLen);
236252
- pad2.set(key2.length > blockLen ? hash3.create().update(key2).digest() : key2);
236252
+ pad2.set(key3.length > blockLen ? hash3.create().update(key3).digest() : key3);
236253
236253
  for (let i7 = 0;i7 < pad2.length; i7++)
236254
236254
  pad2[i7] ^= 54;
236255
236255
  this.iHash.update(pad2);
@@ -236299,7 +236299,7 @@ var init_hmac = __esm(() => {
236299
236299
  this.iHash.destroy();
236300
236300
  }
236301
236301
  };
236302
- hmac.create = (hash3, key2) => new HMAC(hash3, key2);
236302
+ hmac.create = (hash3, key3) => new HMAC(hash3, key3);
236303
236303
  });
236304
236304
 
236305
236305
  // ../../node_modules/.bun/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
@@ -236758,13 +236758,13 @@ function getMinHashLength(fieldOrder) {
236758
236758
  const length = getFieldBytesLength(fieldOrder);
236759
236759
  return length + Math.ceil(length / 2);
236760
236760
  }
236761
- function mapHashToField(key2, fieldOrder, isLE2 = false) {
236762
- const len = key2.length;
236761
+ function mapHashToField(key3, fieldOrder, isLE2 = false) {
236762
+ const len = key3.length;
236763
236763
  const fieldLen = getFieldBytesLength(fieldOrder);
236764
236764
  const minLen = getMinHashLength(fieldOrder);
236765
236765
  if (len < 16 || len < minLen || len > 1024)
236766
236766
  throw new Error("expected " + minLen + "-1024 bytes of input, got " + len);
236767
- const num = isLE2 ? bytesToNumberLE(key2) : bytesToNumberBE(key2);
236767
+ const num = isLE2 ? bytesToNumberLE(key3) : bytesToNumberBE(key3);
236768
236768
  const reduced = mod(num, fieldOrder - _1n3) + _1n3;
236769
236769
  return isLE2 ? numberToBytesLE(reduced, fieldLen) : numberToBytesBE(reduced, fieldLen);
236770
236770
  }
@@ -237079,20 +237079,20 @@ function weierstrassPoints(opts) {
237079
237079
  function isWithinCurveOrder(num) {
237080
237080
  return inRange(num, _1n5, CURVE.n);
237081
237081
  }
237082
- function normPrivateKeyToScalar(key2) {
237082
+ function normPrivateKeyToScalar(key3) {
237083
237083
  const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n: N6 } = CURVE;
237084
- if (lengths && typeof key2 !== "bigint") {
237085
- if (isBytes2(key2))
237086
- key2 = bytesToHex2(key2);
237087
- if (typeof key2 !== "string" || !lengths.includes(key2.length))
237084
+ if (lengths && typeof key3 !== "bigint") {
237085
+ if (isBytes2(key3))
237086
+ key3 = bytesToHex2(key3);
237087
+ if (typeof key3 !== "string" || !lengths.includes(key3.length))
237088
237088
  throw new Error("invalid private key");
237089
- key2 = key2.padStart(nByteLength * 2, "0");
237089
+ key3 = key3.padStart(nByteLength * 2, "0");
237090
237090
  }
237091
237091
  let num;
237092
237092
  try {
237093
- num = typeof key2 === "bigint" ? key2 : bytesToNumberBE(ensureBytes("private key", key2, nByteLength));
237093
+ num = typeof key3 === "bigint" ? key3 : bytesToNumberBE(ensureBytes("private key", key3, nByteLength));
237094
237094
  } catch (error48) {
237095
- throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key2);
237095
+ throw new Error("invalid private key, expected hex or " + nByteLength + " bytes, got " + typeof key3);
237096
237096
  }
237097
237097
  if (wrapPrivateKey)
237098
237098
  num = mod(num, N6);
@@ -237926,7 +237926,7 @@ var init_weierstrass = __esm(() => {
237926
237926
  function getHash(hash3) {
237927
237927
  return {
237928
237928
  hash: hash3,
237929
- hmac: (key2, ...msgs) => hmac(hash3, key2, concatBytes(...msgs)),
237929
+ hmac: (key3, ...msgs) => hmac(hash3, key3, concatBytes(...msgs)),
237930
237930
  randomBytes
237931
237931
  };
237932
237932
  }
@@ -238552,11 +238552,11 @@ function extract2(value_, { format: format2 }) {
238552
238552
  const value5 = {};
238553
238553
  function extract_(formatted2) {
238554
238554
  const keys = Object.keys(formatted2);
238555
- for (const key2 of keys) {
238556
- if (key2 in value_)
238557
- value5[key2] = value_[key2];
238558
- if (formatted2[key2] && typeof formatted2[key2] === "object" && !Array.isArray(formatted2[key2]))
238559
- extract_(formatted2[key2]);
238555
+ for (const key3 of keys) {
238556
+ if (key3 in value_)
238557
+ value5[key3] = value_[key3];
238558
+ if (formatted2[key3] && typeof formatted2[key3] === "object" && !Array.isArray(formatted2[key3]))
238559
+ extract_(formatted2[key3]);
238560
238560
  }
238561
238561
  }
238562
238562
  const formatted = format2(value_ || {});
@@ -238572,8 +238572,8 @@ function defineFormatter(type5, format2) {
238572
238572
  format: (args) => {
238573
238573
  const formatted = format2(args);
238574
238574
  if (exclude) {
238575
- for (const key2 of exclude) {
238576
- delete formatted[key2];
238575
+ for (const key3 of exclude) {
238576
+ delete formatted[key3];
238577
238577
  }
238578
238578
  }
238579
238579
  return {
@@ -239119,9 +239119,9 @@ var init_hex = __esm(() => {
239119
239119
 
239120
239120
  // ../../node_modules/.bun/ox@0.9.3+50e9b7ffbf081acf/node_modules/ox/_esm/core/Json.js
239121
239121
  function stringify4(value5, replacer, space) {
239122
- return JSON.stringify(value5, (key2, value6) => {
239122
+ return JSON.stringify(value5, (key3, value6) => {
239123
239123
  if (typeof replacer === "function")
239124
- return replacer(key2, value6);
239124
+ return replacer(key3, value6);
239125
239125
  if (typeof value6 === "bigint")
239126
239126
  return value6.toString() + bigIntSuffix;
239127
239127
  return value6;
@@ -247510,14 +247510,10 @@ var {
247510
247510
  Help
247511
247511
  } = import__.default;
247512
247512
 
247513
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
247514
- var isUpKey = (key) => key.name === "up";
247515
- var isDownKey = (key) => key.name === "down";
247516
- var isBackspaceKey = (key) => key.name === "backspace";
247513
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
247517
247514
  var isTabKey = (key) => key.name === "tab";
247518
- var isNumberKey = (key) => "1234567890".includes(key.name);
247519
247515
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
247520
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
247516
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
247521
247517
  class AbortPromptError extends Error {
247522
247518
  name = "AbortPromptError";
247523
247519
  message = "Prompt was aborted";
@@ -247543,10 +247539,10 @@ class HookError extends Error {
247543
247539
  class ValidationError extends Error {
247544
247540
  name = "ValidationError";
247545
247541
  }
247546
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247542
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247547
247543
  import { AsyncResource as AsyncResource2 } from "node:async_hooks";
247548
247544
 
247549
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247545
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
247550
247546
  import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
247551
247547
  var hookStorage = new AsyncLocalStorage;
247552
247548
  function createStore(rl) {
@@ -247651,7 +247647,7 @@ var effectScheduler = {
247651
247647
  }
247652
247648
  };
247653
247649
 
247654
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247650
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
247655
247651
  function useState(defaultValue) {
247656
247652
  return withPointer((pointer) => {
247657
247653
  const setState = AsyncResource2.bind(function setState(newValue) {
@@ -247669,7 +247665,7 @@ function useState(defaultValue) {
247669
247665
  });
247670
247666
  }
247671
247667
 
247672
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247668
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
247673
247669
  function useEffect(cb, depArray) {
247674
247670
  withPointer((pointer) => {
247675
247671
  const oldDeps = pointer.get();
@@ -247681,7 +247677,7 @@ function useEffect(cb, depArray) {
247681
247677
  });
247682
247678
  }
247683
247679
 
247684
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247680
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247685
247681
  var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
247686
247682
 
247687
247683
  // ../../node_modules/.bun/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
@@ -247970,7 +247966,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
247970
247966
  var esm_default = figures;
247971
247967
  var replacements = Object.entries(specialMainSymbols);
247972
247968
 
247973
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247969
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
247974
247970
  var defaultTheme = {
247975
247971
  prefix: {
247976
247972
  idle: import_yoctocolors_cjs.default.blue("?"),
@@ -247991,7 +247987,7 @@ var defaultTheme = {
247991
247987
  }
247992
247988
  };
247993
247989
 
247994
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247990
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
247995
247991
  function isPlainObject(value) {
247996
247992
  if (typeof value !== "object" || value === null)
247997
247993
  return false;
@@ -248019,7 +248015,7 @@ function makeTheme(...themes) {
248019
248015
  return deepMerge(...themesToMerge);
248020
248016
  }
248021
248017
 
248022
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
248018
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
248023
248019
  function usePrefix({ status = "idle", theme }) {
248024
248020
  const [showLoader, setShowLoader] = useState(false);
248025
248021
  const [tick, setTick] = useState(0);
@@ -248049,23 +248045,12 @@ function usePrefix({ status = "idle", theme }) {
248049
248045
  const iconName = status === "loading" ? "idle" : status;
248050
248046
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
248051
248047
  }
248052
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
248053
- function useMemo(fn, dependencies) {
248054
- return withPointer((pointer) => {
248055
- const prev = pointer.get();
248056
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
248057
- const value = fn();
248058
- pointer.set({ value, dependencies });
248059
- return value;
248060
- }
248061
- return prev.value;
248062
- });
248063
- }
248064
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
248048
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
248065
248049
  function useRef(val) {
248066
248050
  return useState({ current: val })[0];
248067
248051
  }
248068
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
248052
+
248053
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
248069
248054
  function useKeypress(userHandler) {
248070
248055
  const signal = useRef(userHandler);
248071
248056
  signal.current = userHandler;
@@ -248083,7 +248068,7 @@ function useKeypress(userHandler) {
248083
248068
  };
248084
248069
  }, []);
248085
248070
  }
248086
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
248071
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
248087
248072
  var import_cli_width = __toESM(require_cli_width(), 1);
248088
248073
  var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
248089
248074
  function breakLines(content, width) {
@@ -248096,73 +248081,7 @@ function readlineWidth() {
248096
248081
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
248097
248082
  }
248098
248083
 
248099
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
248100
- function usePointerPosition({ active, renderedItems, pageSize, loop }) {
248101
- const state = useRef({
248102
- lastPointer: active,
248103
- lastActive: undefined
248104
- });
248105
- const { lastPointer, lastActive } = state.current;
248106
- const middle = Math.floor(pageSize / 2);
248107
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
248108
- const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
248109
- let pointer = defaultPointerPosition;
248110
- if (renderedLength > pageSize) {
248111
- if (loop) {
248112
- pointer = lastPointer;
248113
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
248114
- pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
248115
- }
248116
- } else {
248117
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
248118
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
248119
- }
248120
- }
248121
- state.current.lastPointer = pointer;
248122
- state.current.lastActive = active;
248123
- return pointer;
248124
- }
248125
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
248126
- const width = readlineWidth();
248127
- const bound = (num) => (num % items.length + items.length) % items.length;
248128
- const renderedItems = items.map((item, index) => {
248129
- if (item == null)
248130
- return [];
248131
- return breakLines(renderItem({ item, index, isActive: index === active }), width).split(`
248132
- `);
248133
- });
248134
- const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
248135
- const renderItemAtIndex = (index) => renderedItems[index] ?? [];
248136
- const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
248137
- const activeItem = renderItemAtIndex(active).slice(0, pageSize);
248138
- const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
248139
- const pageBuffer = Array.from({ length: pageSize });
248140
- pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
248141
- const itemVisited = new Set([active]);
248142
- let bufferPointer = activeItemPosition + activeItem.length;
248143
- let itemPointer = bound(active + 1);
248144
- while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
248145
- const lines = renderItemAtIndex(itemPointer);
248146
- const linesToAdd = lines.slice(0, pageSize - bufferPointer);
248147
- pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
248148
- itemVisited.add(itemPointer);
248149
- bufferPointer += linesToAdd.length;
248150
- itemPointer = bound(itemPointer + 1);
248151
- }
248152
- bufferPointer = activeItemPosition - 1;
248153
- itemPointer = bound(active - 1);
248154
- while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
248155
- const lines = renderItemAtIndex(itemPointer);
248156
- const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
248157
- pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
248158
- itemVisited.add(itemPointer);
248159
- bufferPointer -= linesToAdd.length;
248160
- itemPointer = bound(itemPointer - 1);
248161
- }
248162
- return pageBuffer.filter((line) => typeof line === "string").join(`
248163
- `);
248164
- }
248165
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248084
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248166
248085
  var import_mute_stream = __toESM(require_lib(), 1);
248167
248086
  import * as readline2 from "node:readline";
248168
248087
  import { AsyncResource as AsyncResource3 } from "node:async_hooks";
@@ -248375,16 +248294,30 @@ var {
248375
248294
  unload
248376
248295
  } = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
248377
248296
 
248378
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248379
- var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
248297
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248380
248298
  import { stripVTControlCharacters } from "node:util";
248299
+
248300
+ // ../../node_modules/.bun/@inquirer+ansi@1.0.0/node_modules/@inquirer/ansi/dist/esm/index.js
248301
+ var ESC = "\x1B[";
248302
+ var cursorLeft = ESC + "G";
248303
+ var cursorHide = ESC + "?25l";
248304
+ var cursorShow = ESC + "?25h";
248305
+ var cursorUp = (rows = 1) => rows > 0 ? `${ESC}${rows}A` : "";
248306
+ var cursorDown = (rows = 1) => rows > 0 ? `${ESC}${rows}B` : "";
248307
+ var cursorTo = (x, y) => {
248308
+ if (typeof y === "number" && !Number.isNaN(y)) {
248309
+ return `${ESC}${y + 1};${x + 1}H`;
248310
+ }
248311
+ return `${ESC}${x + 1}G`;
248312
+ };
248313
+ var eraseLine = ESC + "2K";
248314
+ var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
248315
+
248316
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
248381
248317
  var height = (content) => content.split(`
248382
248318
  `).length;
248383
248319
  var lastLine = (content) => content.split(`
248384
248320
  `).pop() ?? "";
248385
- function cursorDown(n) {
248386
- return n > 0 ? import_ansi_escapes.default.cursorDown(n) : "";
248387
- }
248388
248321
 
248389
248322
  class ScreenManager {
248390
248323
  height = 0;
@@ -248421,31 +248354,31 @@ class ScreenManager {
248421
248354
  const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
248422
248355
  const bottomContentHeight = promptLineUpDiff + (bottomContent ? height(bottomContent) : 0);
248423
248356
  if (bottomContentHeight > 0)
248424
- output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
248425
- output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
248426
- this.write(cursorDown(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
248357
+ output += cursorUp(bottomContentHeight);
248358
+ output += cursorTo(this.cursorPos.cols);
248359
+ this.write(cursorDown(this.extraLinesUnderPrompt) + eraseLines(this.height) + output);
248427
248360
  this.extraLinesUnderPrompt = bottomContentHeight;
248428
248361
  this.height = height(output);
248429
248362
  }
248430
248363
  checkCursorPos() {
248431
248364
  const cursorPos = this.rl.getCursorPos();
248432
248365
  if (cursorPos.cols !== this.cursorPos.cols) {
248433
- this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
248366
+ this.write(cursorTo(cursorPos.cols));
248434
248367
  this.cursorPos = cursorPos;
248435
248368
  }
248436
248369
  }
248437
248370
  done({ clearContent }) {
248438
248371
  this.rl.setPrompt("");
248439
248372
  let output = cursorDown(this.extraLinesUnderPrompt);
248440
- output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
248373
+ output += clearContent ? eraseLines(this.height) : `
248441
248374
  `;
248442
- output += import_ansi_escapes.default.cursorShow;
248375
+ output += cursorShow;
248443
248376
  this.write(output);
248444
248377
  this.rl.close();
248445
248378
  }
248446
248379
  }
248447
248380
 
248448
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248381
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
248449
248382
  class PromisePolyfill extends Promise {
248450
248383
  static withResolver() {
248451
248384
  let resolve;
@@ -248458,7 +248391,7 @@ class PromisePolyfill extends Promise {
248458
248391
  }
248459
248392
  }
248460
248393
 
248461
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248394
+ // ../../node_modules/.bun/@inquirer+core@10.2.2+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
248462
248395
  function getCallSites() {
248463
248396
  const _prepareStackTrace = Error.prepareStackTrace;
248464
248397
  let result = [];
@@ -248544,20 +248477,6 @@ function createPrompt(view) {
248544
248477
  };
248545
248478
  return prompt;
248546
248479
  }
248547
- // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
248548
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
248549
- class Separator {
248550
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
248551
- type = "separator";
248552
- constructor(separator) {
248553
- if (separator) {
248554
- this.separator = separator;
248555
- }
248556
- }
248557
- static isSeparator(choice) {
248558
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
248559
- }
248560
- }
248561
248480
  // ../../node_modules/.bun/yoctocolors@2.1.2/node_modules/yoctocolors/base.js
248562
248481
  var exports_base = {};
248563
248482
  __export(exports_base, {
@@ -267215,7 +267134,7 @@ function pruneCurrentEnv(currentEnv, env2) {
267215
267134
  var package_default = {
267216
267135
  name: "@settlemint/sdk-cli",
267217
267136
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
267218
- version: "2.6.2-mainec3ebb39",
267137
+ version: "2.6.2-pr03ff968b",
267219
267138
  type: "module",
267220
267139
  private: false,
267221
267140
  license: "FSL-1.1-MIT",
@@ -267258,21 +267177,21 @@ var package_default = {
267258
267177
  },
267259
267178
  dependencies: {
267260
267179
  "@gql.tada/cli-utils": "1.7.1",
267261
- "@inquirer/core": "10.2.0",
267180
+ "@inquirer/core": "10.2.2",
267262
267181
  "node-fetch-native": "1.6.7",
267263
267182
  zod: "^4"
267264
267183
  },
267265
267184
  devDependencies: {
267266
267185
  "@commander-js/extra-typings": "14.0.0",
267267
267186
  commander: "14.0.1",
267268
- "@inquirer/confirm": "5.1.17",
267187
+ "@inquirer/confirm": "5.1.18",
267269
267188
  "@inquirer/input": "4.2.2",
267270
267189
  "@inquirer/password": "4.0.18",
267271
267190
  "@inquirer/select": "4.3.2",
267272
- "@settlemint/sdk-hasura": "2.6.2-mainec3ebb39",
267273
- "@settlemint/sdk-js": "2.6.2-mainec3ebb39",
267274
- "@settlemint/sdk-utils": "2.6.2-mainec3ebb39",
267275
- "@settlemint/sdk-viem": "2.6.2-mainec3ebb39",
267191
+ "@settlemint/sdk-hasura": "2.6.2-pr03ff968b",
267192
+ "@settlemint/sdk-js": "2.6.2-pr03ff968b",
267193
+ "@settlemint/sdk-utils": "2.6.2-pr03ff968b",
267194
+ "@settlemint/sdk-viem": "2.6.2-pr03ff968b",
267276
267195
  "@types/node": "24.4.0",
267277
267196
  "@types/semver": "7.7.1",
267278
267197
  "@types/which": "3.0.4",
@@ -267289,7 +267208,7 @@ var package_default = {
267289
267208
  },
267290
267209
  peerDependencies: {
267291
267210
  hardhat: "<= 4",
267292
- "@settlemint/sdk-js": "2.6.2-mainec3ebb39"
267211
+ "@settlemint/sdk-js": "2.6.2-pr03ff968b"
267293
267212
  },
267294
267213
  peerDependenciesMeta: {
267295
267214
  hardhat: {
@@ -273107,23 +273026,575 @@ function sanitizeName(value5, length = 35) {
273107
273026
  }).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
273108
273027
  }
273109
273028
 
273029
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
273030
+ var isUpKey = (key2) => key2.name === "up";
273031
+ var isDownKey = (key2) => key2.name === "down";
273032
+ var isBackspaceKey = (key2) => key2.name === "backspace";
273033
+ var isTabKey2 = (key2) => key2.name === "tab";
273034
+ var isNumberKey = (key2) => "1234567890".includes(key2.name);
273035
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
273036
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
273037
+ class AbortPromptError2 extends Error {
273038
+ name = "AbortPromptError";
273039
+ message = "Prompt was aborted";
273040
+ constructor(options) {
273041
+ super();
273042
+ this.cause = options?.cause;
273043
+ }
273044
+ }
273045
+
273046
+ class CancelPromptError2 extends Error {
273047
+ name = "CancelPromptError";
273048
+ message = "Prompt was canceled";
273049
+ }
273050
+
273051
+ class ExitPromptError2 extends Error {
273052
+ name = "ExitPromptError";
273053
+ }
273054
+
273055
+ class HookError2 extends Error {
273056
+ name = "HookError";
273057
+ }
273058
+
273059
+ class ValidationError2 extends Error {
273060
+ name = "ValidationError";
273061
+ }
273062
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
273063
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
273064
+
273065
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
273066
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
273067
+ var hookStorage2 = new AsyncLocalStorage2;
273068
+ function createStore2(rl) {
273069
+ const store = {
273070
+ rl,
273071
+ hooks: [],
273072
+ hooksCleanup: [],
273073
+ hooksEffect: [],
273074
+ index: 0,
273075
+ handleChange() {}
273076
+ };
273077
+ return store;
273078
+ }
273079
+ function withHooks2(rl, cb) {
273080
+ const store = createStore2(rl);
273081
+ return hookStorage2.run(store, () => {
273082
+ function cycle(render) {
273083
+ store.handleChange = () => {
273084
+ store.index = 0;
273085
+ render();
273086
+ };
273087
+ store.handleChange();
273088
+ }
273089
+ return cb(cycle);
273090
+ });
273091
+ }
273092
+ function getStore2() {
273093
+ const store = hookStorage2.getStore();
273094
+ if (!store) {
273095
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
273096
+ }
273097
+ return store;
273098
+ }
273099
+ function readline3() {
273100
+ return getStore2().rl;
273101
+ }
273102
+ function withUpdates2(fn) {
273103
+ const wrapped = (...args) => {
273104
+ const store = getStore2();
273105
+ let shouldUpdate = false;
273106
+ const oldHandleChange = store.handleChange;
273107
+ store.handleChange = () => {
273108
+ shouldUpdate = true;
273109
+ };
273110
+ const returnValue = fn(...args);
273111
+ if (shouldUpdate) {
273112
+ oldHandleChange();
273113
+ }
273114
+ store.handleChange = oldHandleChange;
273115
+ return returnValue;
273116
+ };
273117
+ return AsyncResource4.bind(wrapped);
273118
+ }
273119
+ function withPointer2(cb) {
273120
+ const store = getStore2();
273121
+ const { index } = store;
273122
+ const pointer = {
273123
+ get() {
273124
+ return store.hooks[index];
273125
+ },
273126
+ set(value5) {
273127
+ store.hooks[index] = value5;
273128
+ },
273129
+ initialized: index in store.hooks
273130
+ };
273131
+ const returnValue = cb(pointer);
273132
+ store.index++;
273133
+ return returnValue;
273134
+ }
273135
+ function handleChange2() {
273136
+ getStore2().handleChange();
273137
+ }
273138
+ var effectScheduler2 = {
273139
+ queue(cb) {
273140
+ const store = getStore2();
273141
+ const { index } = store;
273142
+ store.hooksEffect.push(() => {
273143
+ store.hooksCleanup[index]?.();
273144
+ const cleanFn = cb(readline3());
273145
+ if (cleanFn != null && typeof cleanFn !== "function") {
273146
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
273147
+ }
273148
+ store.hooksCleanup[index] = cleanFn;
273149
+ });
273150
+ },
273151
+ run() {
273152
+ const store = getStore2();
273153
+ withUpdates2(() => {
273154
+ store.hooksEffect.forEach((effect) => {
273155
+ effect();
273156
+ });
273157
+ store.hooksEffect.length = 0;
273158
+ })();
273159
+ },
273160
+ clearAll() {
273161
+ const store = getStore2();
273162
+ store.hooksCleanup.forEach((cleanFn) => {
273163
+ cleanFn?.();
273164
+ });
273165
+ store.hooksEffect.length = 0;
273166
+ store.hooksCleanup.length = 0;
273167
+ }
273168
+ };
273169
+
273170
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
273171
+ function useState2(defaultValue) {
273172
+ return withPointer2((pointer) => {
273173
+ const setState = AsyncResource5.bind(function setState(newValue) {
273174
+ if (pointer.get() !== newValue) {
273175
+ pointer.set(newValue);
273176
+ handleChange2();
273177
+ }
273178
+ });
273179
+ if (pointer.initialized) {
273180
+ return [pointer.get(), setState];
273181
+ }
273182
+ const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
273183
+ pointer.set(value5);
273184
+ return [value5, setState];
273185
+ });
273186
+ }
273187
+
273188
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
273189
+ function useEffect2(cb, depArray) {
273190
+ withPointer2((pointer) => {
273191
+ const oldDeps = pointer.get();
273192
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
273193
+ if (hasChanged) {
273194
+ effectScheduler2.queue(cb);
273195
+ }
273196
+ pointer.set(depArray);
273197
+ });
273198
+ }
273199
+
273200
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
273201
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
273202
+ var defaultTheme2 = {
273203
+ prefix: {
273204
+ idle: import_yoctocolors_cjs2.default.blue("?"),
273205
+ done: import_yoctocolors_cjs2.default.green(esm_default.tick)
273206
+ },
273207
+ spinner: {
273208
+ interval: 80,
273209
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
273210
+ },
273211
+ style: {
273212
+ answer: import_yoctocolors_cjs2.default.cyan,
273213
+ message: import_yoctocolors_cjs2.default.bold,
273214
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
273215
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
273216
+ help: import_yoctocolors_cjs2.default.dim,
273217
+ highlight: import_yoctocolors_cjs2.default.cyan,
273218
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
273219
+ }
273220
+ };
273221
+
273222
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
273223
+ function isPlainObject4(value5) {
273224
+ if (typeof value5 !== "object" || value5 === null)
273225
+ return false;
273226
+ let proto = value5;
273227
+ while (Object.getPrototypeOf(proto) !== null) {
273228
+ proto = Object.getPrototypeOf(proto);
273229
+ }
273230
+ return Object.getPrototypeOf(value5) === proto;
273231
+ }
273232
+ function deepMerge3(...objects) {
273233
+ const output = {};
273234
+ for (const obj of objects) {
273235
+ for (const [key2, value5] of Object.entries(obj)) {
273236
+ const prevValue = output[key2];
273237
+ output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
273238
+ }
273239
+ }
273240
+ return output;
273241
+ }
273242
+ function makeTheme2(...themes) {
273243
+ const themesToMerge = [
273244
+ defaultTheme2,
273245
+ ...themes.filter((theme) => theme != null)
273246
+ ];
273247
+ return deepMerge3(...themesToMerge);
273248
+ }
273249
+
273250
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
273251
+ function usePrefix2({ status = "idle", theme }) {
273252
+ const [showLoader, setShowLoader] = useState2(false);
273253
+ const [tick, setTick] = useState2(0);
273254
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
273255
+ useEffect2(() => {
273256
+ if (status === "loading") {
273257
+ let tickInterval;
273258
+ let inc = -1;
273259
+ const delayTimeout = setTimeout(() => {
273260
+ setShowLoader(true);
273261
+ tickInterval = setInterval(() => {
273262
+ inc = inc + 1;
273263
+ setTick(inc % spinner2.frames.length);
273264
+ }, spinner2.interval);
273265
+ }, 300);
273266
+ return () => {
273267
+ clearTimeout(delayTimeout);
273268
+ clearInterval(tickInterval);
273269
+ };
273270
+ } else {
273271
+ setShowLoader(false);
273272
+ }
273273
+ }, [status]);
273274
+ if (showLoader) {
273275
+ return spinner2.frames[tick];
273276
+ }
273277
+ const iconName = status === "loading" ? "idle" : status;
273278
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
273279
+ }
273280
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
273281
+ function useMemo(fn, dependencies) {
273282
+ return withPointer2((pointer) => {
273283
+ const prev = pointer.get();
273284
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i7) => dep !== dependencies[i7])) {
273285
+ const value5 = fn();
273286
+ pointer.set({ value: value5, dependencies });
273287
+ return value5;
273288
+ }
273289
+ return prev.value;
273290
+ });
273291
+ }
273292
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
273293
+ function useRef2(val) {
273294
+ return useState2({ current: val })[0];
273295
+ }
273296
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
273297
+ function useKeypress2(userHandler) {
273298
+ const signal = useRef2(userHandler);
273299
+ signal.current = userHandler;
273300
+ useEffect2((rl) => {
273301
+ let ignore = false;
273302
+ const handler = withUpdates2((_input, event) => {
273303
+ if (ignore)
273304
+ return;
273305
+ signal.current(event, rl);
273306
+ });
273307
+ rl.input.on("keypress", handler);
273308
+ return () => {
273309
+ ignore = true;
273310
+ rl.input.removeListener("keypress", handler);
273311
+ };
273312
+ }, []);
273313
+ }
273314
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
273315
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
273316
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
273317
+ function breakLines2(content, width) {
273318
+ return content.split(`
273319
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
273320
+ `).map((str) => str.trimEnd())).join(`
273321
+ `);
273322
+ }
273323
+ function readlineWidth2() {
273324
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
273325
+ }
273326
+
273327
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
273328
+ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
273329
+ const state = useRef2({
273330
+ lastPointer: active,
273331
+ lastActive: undefined
273332
+ });
273333
+ const { lastPointer, lastActive } = state.current;
273334
+ const middle = Math.floor(pageSize / 2);
273335
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
273336
+ const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
273337
+ let pointer = defaultPointerPosition;
273338
+ if (renderedLength > pageSize) {
273339
+ if (loop) {
273340
+ pointer = lastPointer;
273341
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) {
273342
+ pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
273343
+ }
273344
+ } else {
273345
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
273346
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
273347
+ }
273348
+ }
273349
+ state.current.lastPointer = pointer;
273350
+ state.current.lastActive = active;
273351
+ return pointer;
273352
+ }
273353
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
273354
+ const width = readlineWidth2();
273355
+ const bound = (num) => (num % items.length + items.length) % items.length;
273356
+ const renderedItems = items.map((item, index) => {
273357
+ if (item == null)
273358
+ return [];
273359
+ return breakLines2(renderItem({ item, index, isActive: index === active }), width).split(`
273360
+ `);
273361
+ });
273362
+ const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
273363
+ const renderItemAtIndex = (index) => renderedItems[index] ?? [];
273364
+ const pointer = usePointerPosition({ active, renderedItems, pageSize, loop });
273365
+ const activeItem = renderItemAtIndex(active).slice(0, pageSize);
273366
+ const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
273367
+ const pageBuffer = Array.from({ length: pageSize });
273368
+ pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
273369
+ const itemVisited = new Set([active]);
273370
+ let bufferPointer = activeItemPosition + activeItem.length;
273371
+ let itemPointer = bound(active + 1);
273372
+ while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
273373
+ const lines = renderItemAtIndex(itemPointer);
273374
+ const linesToAdd = lines.slice(0, pageSize - bufferPointer);
273375
+ pageBuffer.splice(bufferPointer, linesToAdd.length, ...linesToAdd);
273376
+ itemVisited.add(itemPointer);
273377
+ bufferPointer += linesToAdd.length;
273378
+ itemPointer = bound(itemPointer + 1);
273379
+ }
273380
+ bufferPointer = activeItemPosition - 1;
273381
+ itemPointer = bound(active - 1);
273382
+ while (bufferPointer >= 0 && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer < active)) {
273383
+ const lines = renderItemAtIndex(itemPointer);
273384
+ const linesToAdd = lines.slice(Math.max(0, lines.length - bufferPointer - 1));
273385
+ pageBuffer.splice(bufferPointer - linesToAdd.length + 1, linesToAdd.length, ...linesToAdd);
273386
+ itemVisited.add(itemPointer);
273387
+ bufferPointer -= linesToAdd.length;
273388
+ itemPointer = bound(itemPointer - 1);
273389
+ }
273390
+ return pageBuffer.filter((line) => typeof line === "string").join(`
273391
+ `);
273392
+ }
273393
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273394
+ var import_mute_stream2 = __toESM(require_lib(), 1);
273395
+ import * as readline4 from "node:readline";
273396
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
273397
+
273398
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
273399
+ var import_ansi_escapes = __toESM(require_ansi_escapes(), 1);
273400
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
273401
+ var height2 = (content) => content.split(`
273402
+ `).length;
273403
+ var lastLine2 = (content) => content.split(`
273404
+ `).pop() ?? "";
273405
+ function cursorDown2(n7) {
273406
+ return n7 > 0 ? import_ansi_escapes.default.cursorDown(n7) : "";
273407
+ }
273408
+
273409
+ class ScreenManager2 {
273410
+ height = 0;
273411
+ extraLinesUnderPrompt = 0;
273412
+ cursorPos;
273413
+ rl;
273414
+ constructor(rl) {
273415
+ this.rl = rl;
273416
+ this.cursorPos = rl.getCursorPos();
273417
+ }
273418
+ write(content) {
273419
+ this.rl.output.unmute();
273420
+ this.rl.output.write(content);
273421
+ this.rl.output.mute();
273422
+ }
273423
+ render(content, bottomContent = "") {
273424
+ const promptLine = lastLine2(content);
273425
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
273426
+ let prompt = rawPromptLine;
273427
+ if (this.rl.line.length > 0) {
273428
+ prompt = prompt.slice(0, -this.rl.line.length);
273429
+ }
273430
+ this.rl.setPrompt(prompt);
273431
+ this.cursorPos = this.rl.getCursorPos();
273432
+ const width = readlineWidth2();
273433
+ content = breakLines2(content, width);
273434
+ bottomContent = breakLines2(bottomContent, width);
273435
+ if (rawPromptLine.length % width === 0) {
273436
+ content += `
273437
+ `;
273438
+ }
273439
+ let output = content + (bottomContent ? `
273440
+ ` + bottomContent : "");
273441
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
273442
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
273443
+ if (bottomContentHeight > 0)
273444
+ output += import_ansi_escapes.default.cursorUp(bottomContentHeight);
273445
+ output += import_ansi_escapes.default.cursorTo(this.cursorPos.cols);
273446
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes.default.eraseLines(this.height) + output);
273447
+ this.extraLinesUnderPrompt = bottomContentHeight;
273448
+ this.height = height2(output);
273449
+ }
273450
+ checkCursorPos() {
273451
+ const cursorPos = this.rl.getCursorPos();
273452
+ if (cursorPos.cols !== this.cursorPos.cols) {
273453
+ this.write(import_ansi_escapes.default.cursorTo(cursorPos.cols));
273454
+ this.cursorPos = cursorPos;
273455
+ }
273456
+ }
273457
+ done({ clearContent }) {
273458
+ this.rl.setPrompt("");
273459
+ let output = cursorDown2(this.extraLinesUnderPrompt);
273460
+ output += clearContent ? import_ansi_escapes.default.eraseLines(this.height) : `
273461
+ `;
273462
+ output += import_ansi_escapes.default.cursorShow;
273463
+ this.write(output);
273464
+ this.rl.close();
273465
+ }
273466
+ }
273467
+
273468
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
273469
+ class PromisePolyfill2 extends Promise {
273470
+ static withResolver() {
273471
+ let resolve6;
273472
+ let reject;
273473
+ const promise2 = new Promise((res, rej) => {
273474
+ resolve6 = res;
273475
+ reject = rej;
273476
+ });
273477
+ return { promise: promise2, resolve: resolve6, reject };
273478
+ }
273479
+ }
273480
+
273481
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
273482
+ function getCallSites2() {
273483
+ const _prepareStackTrace = Error.prepareStackTrace;
273484
+ let result = [];
273485
+ try {
273486
+ Error.prepareStackTrace = (_5, callSites) => {
273487
+ const callSitesWithoutCurrent = callSites.slice(1);
273488
+ result = callSitesWithoutCurrent;
273489
+ return callSitesWithoutCurrent;
273490
+ };
273491
+ new Error().stack;
273492
+ } catch {
273493
+ return result;
273494
+ }
273495
+ Error.prepareStackTrace = _prepareStackTrace;
273496
+ return result;
273497
+ }
273498
+ function createPrompt2(view) {
273499
+ const callSites = getCallSites2();
273500
+ const prompt = (config3, context = {}) => {
273501
+ const { input = process.stdin, signal } = context;
273502
+ const cleanups = new Set;
273503
+ const output = new import_mute_stream2.default;
273504
+ output.pipe(context.output ?? process.stdout);
273505
+ const rl = readline4.createInterface({
273506
+ terminal: true,
273507
+ input,
273508
+ output
273509
+ });
273510
+ const screen = new ScreenManager2(rl);
273511
+ const { promise: promise2, resolve: resolve6, reject } = PromisePolyfill2.withResolver();
273512
+ const cancel3 = () => reject(new CancelPromptError2);
273513
+ if (signal) {
273514
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
273515
+ if (signal.aborted) {
273516
+ abort();
273517
+ return Object.assign(promise2, { cancel: cancel3 });
273518
+ }
273519
+ signal.addEventListener("abort", abort);
273520
+ cleanups.add(() => signal.removeEventListener("abort", abort));
273521
+ }
273522
+ cleanups.add(onExit((code2, signal2) => {
273523
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
273524
+ }));
273525
+ const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
273526
+ rl.on("SIGINT", sigint);
273527
+ cleanups.add(() => rl.removeListener("SIGINT", sigint));
273528
+ const checkCursorPos = () => screen.checkCursorPos();
273529
+ rl.input.on("keypress", checkCursorPos);
273530
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
273531
+ return withHooks2(rl, (cycle) => {
273532
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
273533
+ rl.on("close", hooksCleanup);
273534
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
273535
+ cycle(() => {
273536
+ try {
273537
+ const nextView = view(config3, (value5) => {
273538
+ setImmediate(() => resolve6(value5));
273539
+ });
273540
+ if (nextView === undefined) {
273541
+ const callerFilename = callSites[1]?.getFileName();
273542
+ throw new Error(`Prompt functions must return a string.
273543
+ at ${callerFilename}`);
273544
+ }
273545
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
273546
+ screen.render(content, bottomContent);
273547
+ effectScheduler2.run();
273548
+ } catch (error48) {
273549
+ reject(error48);
273550
+ }
273551
+ });
273552
+ return Object.assign(promise2.then((answer) => {
273553
+ effectScheduler2.clearAll();
273554
+ return answer;
273555
+ }, (error48) => {
273556
+ effectScheduler2.clearAll();
273557
+ throw error48;
273558
+ }).finally(() => {
273559
+ cleanups.forEach((cleanup) => cleanup());
273560
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
273561
+ output.end();
273562
+ }).then(() => promise2), { cancel: cancel3 });
273563
+ });
273564
+ };
273565
+ return prompt;
273566
+ }
273567
+ // ../../node_modules/.bun/@inquirer+core@10.2.0+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/Separator.js
273568
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273569
+ class Separator {
273570
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default.line));
273571
+ type = "separator";
273572
+ constructor(separator) {
273573
+ if (separator) {
273574
+ this.separator = separator;
273575
+ }
273576
+ }
273577
+ static isSeparator(choice) {
273578
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
273579
+ }
273580
+ }
273110
273581
  // ../../node_modules/.bun/@inquirer+input@4.2.2+e9dc26b4af2fda18/node_modules/@inquirer/input/dist/esm/index.js
273111
273582
  var inputTheme = {
273112
273583
  validationFailureMode: "keep"
273113
273584
  };
273114
- var esm_default2 = createPrompt((config3, done) => {
273585
+ var esm_default2 = createPrompt2((config3, done) => {
273115
273586
  const { required: required2, validate: validate3 = () => true, prefill = "tab" } = config3;
273116
- const theme = makeTheme(inputTheme, config3.theme);
273117
- const [status, setStatus] = useState("idle");
273118
- const [defaultValue = "", setDefaultValue] = useState(config3.default);
273119
- const [errorMsg, setError] = useState();
273120
- const [value5, setValue] = useState("");
273121
- const prefix = usePrefix({ status, theme });
273122
- useKeypress(async (key2, rl) => {
273587
+ const theme = makeTheme2(inputTheme, config3.theme);
273588
+ const [status, setStatus] = useState2("idle");
273589
+ const [defaultValue = "", setDefaultValue] = useState2(config3.default);
273590
+ const [errorMsg, setError] = useState2();
273591
+ const [value5, setValue] = useState2("");
273592
+ const prefix = usePrefix2({ status, theme });
273593
+ useKeypress2(async (key3, rl) => {
273123
273594
  if (status !== "idle") {
273124
273595
  return;
273125
273596
  }
273126
- if (isEnterKey(key2)) {
273597
+ if (isEnterKey2(key3)) {
273127
273598
  const answer = value5 || defaultValue;
273128
273599
  setStatus("loading");
273129
273600
  const isValid = required2 && !answer ? "You must provide a value" : await validate3(answer);
@@ -273140,9 +273611,9 @@ var esm_default2 = createPrompt((config3, done) => {
273140
273611
  setError(isValid || "You must provide a valid value");
273141
273612
  setStatus("idle");
273142
273613
  }
273143
- } else if (isBackspaceKey(key2) && !value5) {
273614
+ } else if (isBackspaceKey(key3) && !value5) {
273144
273615
  setDefaultValue(undefined);
273145
- } else if (isTabKey(key2) && !value5) {
273616
+ } else if (isTabKey2(key3) && !value5) {
273146
273617
  setDefaultValue(undefined);
273147
273618
  rl.clearLine(0);
273148
273619
  rl.write(defaultValue);
@@ -273152,7 +273623,7 @@ var esm_default2 = createPrompt((config3, done) => {
273152
273623
  setError(undefined);
273153
273624
  }
273154
273625
  });
273155
- useEffect((rl) => {
273626
+ useEffect2((rl) => {
273156
273627
  if (prefill === "editable" && defaultValue) {
273157
273628
  rl.write(defaultValue);
273158
273629
  setValue(defaultValue);
@@ -273198,13 +273669,13 @@ async function subgraphNamePrompt({
273198
273669
  }
273199
273670
 
273200
273671
  // ../../node_modules/.bun/@inquirer+select@4.3.2+e9dc26b4af2fda18/node_modules/@inquirer/select/dist/esm/index.js
273201
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
273672
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
273202
273673
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
273203
273674
  var selectTheme = {
273204
273675
  icon: { cursor: esm_default.pointer },
273205
273676
  style: {
273206
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
273207
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
273677
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
273678
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
273208
273679
  },
273209
273680
  helpMode: "auto",
273210
273681
  indexMode: "hidden"
@@ -273237,19 +273708,19 @@ function normalizeChoices(choices) {
273237
273708
  return normalizedChoice;
273238
273709
  });
273239
273710
  }
273240
- var esm_default3 = createPrompt((config3, done) => {
273711
+ var esm_default3 = createPrompt2((config3, done) => {
273241
273712
  const { loop = true, pageSize = 7 } = config3;
273242
- const firstRender = useRef(true);
273243
- const theme = makeTheme(selectTheme, config3.theme);
273244
- const [status, setStatus] = useState("idle");
273245
- const prefix = usePrefix({ status, theme });
273246
- const searchTimeoutRef = useRef();
273713
+ const firstRender = useRef2(true);
273714
+ const theme = makeTheme2(selectTheme, config3.theme);
273715
+ const [status, setStatus] = useState2("idle");
273716
+ const prefix = usePrefix2({ status, theme });
273717
+ const searchTimeoutRef = useRef2();
273247
273718
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
273248
273719
  const bounds = useMemo(() => {
273249
273720
  const first = items.findIndex(isSelectable);
273250
273721
  const last = items.findLastIndex(isSelectable);
273251
273722
  if (first === -1) {
273252
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
273723
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
273253
273724
  }
273254
273725
  return { first, last };
273255
273726
  }, [items]);
@@ -273258,24 +273729,24 @@ var esm_default3 = createPrompt((config3, done) => {
273258
273729
  return -1;
273259
273730
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
273260
273731
  }, [config3.default, items]);
273261
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
273732
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
273262
273733
  const selectedChoice = items[active];
273263
- useKeypress((key2, rl) => {
273734
+ useKeypress2((key3, rl) => {
273264
273735
  clearTimeout(searchTimeoutRef.current);
273265
- if (isEnterKey(key2)) {
273736
+ if (isEnterKey2(key3)) {
273266
273737
  setStatus("done");
273267
273738
  done(selectedChoice.value);
273268
- } else if (isUpKey(key2) || isDownKey(key2)) {
273739
+ } else if (isUpKey(key3) || isDownKey(key3)) {
273269
273740
  rl.clearLine(0);
273270
- if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
273271
- const offset = isUpKey(key2) ? -1 : 1;
273741
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
273742
+ const offset = isUpKey(key3) ? -1 : 1;
273272
273743
  let next = active;
273273
273744
  do {
273274
273745
  next = (next + offset + items.length) % items.length;
273275
273746
  } while (!isSelectable(items[next]));
273276
273747
  setActive(next);
273277
273748
  }
273278
- } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
273749
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
273279
273750
  const selectedIndex = Number(rl.line) - 1;
273280
273751
  let selectableIndex = -1;
273281
273752
  const position = items.findIndex((item2) => {
@@ -273291,7 +273762,7 @@ var esm_default3 = createPrompt((config3, done) => {
273291
273762
  searchTimeoutRef.current = setTimeout(() => {
273292
273763
  rl.clearLine(0);
273293
273764
  }, 700);
273294
- } else if (isBackspaceKey(key2)) {
273765
+ } else if (isBackspaceKey(key3)) {
273295
273766
  rl.clearLine(0);
273296
273767
  } else {
273297
273768
  const searchTerm = rl.line.toLowerCase();
@@ -273308,7 +273779,7 @@ var esm_default3 = createPrompt((config3, done) => {
273308
273779
  }, 700);
273309
273780
  }
273310
273781
  });
273311
- useEffect(() => () => {
273782
+ useEffect2(() => () => {
273312
273783
  clearTimeout(searchTimeoutRef.current);
273313
273784
  }, []);
273314
273785
  const message = theme.style.message(config3.message, status);
@@ -274995,14 +275466,14 @@ function includesArgs(parameters) {
274995
275466
  });
274996
275467
  }
274997
275468
  if (typeof args === "object" && !Array.isArray(args) && typeof matchArgs === "object" && !Array.isArray(matchArgs))
274998
- return Object.entries(matchArgs).every(([key2, value5]) => {
275469
+ return Object.entries(matchArgs).every(([key3, value5]) => {
274999
275470
  if (value5 === null || value5 === undefined)
275000
275471
  return true;
275001
- const input = inputs.find((input2) => input2.name === key2);
275472
+ const input = inputs.find((input2) => input2.name === key3);
275002
275473
  if (!input)
275003
275474
  return false;
275004
275475
  const value_ = Array.isArray(value5) ? value5 : [value5];
275005
- return value_.some((value6) => isEqual(input, value6, args[key2]));
275476
+ return value_.some((value6) => isEqual(input, value6, args[key3]));
275006
275477
  });
275007
275478
  return false;
275008
275479
  }
@@ -275201,13 +275672,13 @@ function observe(observerId, callbacks, fn) {
275201
275672
  if (listeners && listeners.length > 0)
275202
275673
  return unwatch;
275203
275674
  const emit = {};
275204
- for (const key2 in callbacks) {
275205
- emit[key2] = (...args) => {
275675
+ for (const key3 in callbacks) {
275676
+ emit[key3] = (...args) => {
275206
275677
  const listeners2 = getListeners();
275207
275678
  if (listeners2.length === 0)
275208
275679
  return;
275209
275680
  for (const listener of listeners2)
275210
- listener.fns[key2]?.(...args);
275681
+ listener.fns[key3]?.(...args);
275211
275682
  };
275212
275683
  }
275213
275684
  const cleanup = fn(emit);
@@ -275587,7 +276058,7 @@ function uid(length = 11) {
275587
276058
 
275588
276059
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createClient.js
275589
276060
  function createClient(parameters) {
275590
- const { batch, chain, ccipRead, key: key2 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
276061
+ const { batch, chain, ccipRead, key: key3 = "base", name: name4 = "Base Client", type: type5 = "base" } = parameters;
275591
276062
  const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : undefined);
275592
276063
  const blockTime = chain?.blockTime ?? 12000;
275593
276064
  const defaultPollingInterval = Math.min(Math.max(Math.floor(blockTime / 2), 500), 4000);
@@ -275605,7 +276076,7 @@ function createClient(parameters) {
275605
276076
  cacheTime,
275606
276077
  ccipRead,
275607
276078
  chain,
275608
- key: key2,
276079
+ key: key3,
275609
276080
  name: name4,
275610
276081
  pollingInterval,
275611
276082
  request: request2,
@@ -275617,8 +276088,8 @@ function createClient(parameters) {
275617
276088
  function extend2(base2) {
275618
276089
  return (extendFn) => {
275619
276090
  const extended = extendFn(base2);
275620
- for (const key3 in client)
275621
- delete extended[key3];
276091
+ for (const key4 in client)
276092
+ delete extended[key4];
275622
276093
  const combined = { ...base2, ...extended };
275623
276094
  return Object.assign(combined, { extend: extend2(combined) });
275624
276095
  };
@@ -276037,7 +276508,7 @@ init_getChainContractAddress();
276037
276508
  init_toHex();
276038
276509
  init_localBatchGatewayRequest();
276039
276510
  async function getEnsText(client, parameters) {
276040
- const { blockNumber, blockTag, key: key2, name: name4, gatewayUrls, strict } = parameters;
276511
+ const { blockNumber, blockTag, key: key3, name: name4, gatewayUrls, strict } = parameters;
276041
276512
  const { chain } = client;
276042
276513
  const universalResolverAddress = (() => {
276043
276514
  if (parameters.universalResolverAddress)
@@ -276062,7 +276533,7 @@ async function getEnsText(client, parameters) {
276062
276533
  encodeFunctionData({
276063
276534
  abi: textResolverAbi,
276064
276535
  functionName: "text",
276065
- args: [namehash(name4), key2]
276536
+ args: [namehash(name4), key3]
276066
276537
  }),
276067
276538
  gatewayUrls ?? [localBatchGatewayUrl]
276068
276539
  ],
@@ -278131,16 +278602,16 @@ class LruMap2 extends Map {
278131
278602
  });
278132
278603
  this.maxSize = size5;
278133
278604
  }
278134
- get(key2) {
278135
- const value5 = super.get(key2);
278136
- if (super.has(key2) && value5 !== undefined) {
278137
- this.delete(key2);
278138
- super.set(key2, value5);
278605
+ get(key3) {
278606
+ const value5 = super.get(key3);
278607
+ if (super.has(key3) && value5 !== undefined) {
278608
+ this.delete(key3);
278609
+ super.set(key3, value5);
278139
278610
  }
278140
278611
  return value5;
278141
278612
  }
278142
- set(key2, value5) {
278143
- super.set(key2, value5);
278613
+ set(key3, value5) {
278614
+ super.set(key3, value5);
278144
278615
  if (this.maxSize && this.size > this.maxSize) {
278145
278616
  const firstKey = this.keys().next().value;
278146
278617
  if (firstKey)
@@ -281589,21 +282060,21 @@ function publicActions(client) {
281589
282060
 
281590
282061
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/createPublicClient.js
281591
282062
  function createPublicClient(parameters) {
281592
- const { key: key2 = "public", name: name4 = "Public Client" } = parameters;
282063
+ const { key: key3 = "public", name: name4 = "Public Client" } = parameters;
281593
282064
  const client = createClient({
281594
282065
  ...parameters,
281595
- key: key2,
282066
+ key: key3,
281596
282067
  name: name4,
281597
282068
  type: "publicClient"
281598
282069
  });
281599
282070
  return client.extend(publicActions);
281600
282071
  }
281601
282072
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/createTransport.js
281602
- function createTransport({ key: key2, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
282073
+ function createTransport({ key: key3, methods, name: name4, request: request2, retryCount = 3, retryDelay = 150, timeout, type: type5 }, value5) {
281603
282074
  const uid2 = uid();
281604
282075
  return {
281605
282076
  config: {
281606
- key: key2,
282077
+ key: key3,
281607
282078
  methods,
281608
282079
  name: name4,
281609
282080
  request: request2,
@@ -281635,7 +282106,7 @@ class UrlRequiredError extends BaseError2 {
281635
282106
  // ../../node_modules/.bun/viem@2.37.5+50e9b7ffbf081acf/node_modules/viem/_esm/clients/transports/http.js
281636
282107
  init_createBatchScheduler();
281637
282108
  function http(url2, config3 = {}) {
281638
- const { batch, fetchFn, fetchOptions, key: key2 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
282109
+ const { batch, fetchFn, fetchOptions, key: key3 = "http", methods, name: name4 = "HTTP JSON-RPC", onFetchRequest, onFetchResponse, retryDelay, raw } = config3;
281639
282110
  return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
281640
282111
  const { batchSize = 1000, wait: wait2 = 0 } = typeof batch === "object" ? batch : {};
281641
282112
  const retryCount = config3.retryCount ?? retryCount_;
@@ -281651,7 +282122,7 @@ function http(url2, config3 = {}) {
281651
282122
  timeout
281652
282123
  });
281653
282124
  return createTransport({
281654
- key: key2,
282125
+ key: key3,
281655
282126
  methods,
281656
282127
  name: name4,
281657
282128
  async request({ method, params }) {
@@ -298599,23 +299070,23 @@ var LRUCache3 = class {
298599
299070
  constructor(maxSize) {
298600
299071
  this.maxSize = maxSize;
298601
299072
  }
298602
- get(key2) {
298603
- const value5 = this.cache.get(key2);
299073
+ get(key3) {
299074
+ const value5 = this.cache.get(key3);
298604
299075
  if (value5 !== undefined) {
298605
- this.cache.delete(key2);
298606
- this.cache.set(key2, value5);
299076
+ this.cache.delete(key3);
299077
+ this.cache.set(key3, value5);
298607
299078
  }
298608
299079
  return value5;
298609
299080
  }
298610
- set(key2, value5) {
298611
- this.cache.delete(key2);
299081
+ set(key3, value5) {
299082
+ this.cache.delete(key3);
298612
299083
  if (this.cache.size >= this.maxSize) {
298613
299084
  const firstKey = this.cache.keys().next().value;
298614
299085
  if (firstKey !== undefined) {
298615
299086
  this.cache.delete(firstKey);
298616
299087
  }
298617
299088
  }
298618
- this.cache.set(key2, value5);
299089
+ this.cache.set(key3, value5);
298619
299090
  }
298620
299091
  clear() {
298621
299092
  this.cache.clear();
@@ -298626,9 +299097,9 @@ var publicClientCache = new LRUCache3(50);
298626
299097
  var walletClientFactoryCache = new LRUCache3(50);
298627
299098
  function buildHeaders(baseHeaders, authHeaders) {
298628
299099
  const filteredHeaders = {};
298629
- for (const [key2, value5] of Object.entries(authHeaders)) {
299100
+ for (const [key3, value5] of Object.entries(authHeaders)) {
298630
299101
  if (value5 !== undefined) {
298631
- filteredHeaders[key2] = value5;
299102
+ filteredHeaders[key3] = value5;
298632
299103
  }
298633
299104
  }
298634
299105
  return appendHeaders(baseHeaders, filteredHeaders);
@@ -298936,464 +299407,7 @@ function extractInfoFromBody(body) {
298936
299407
  }
298937
299408
  }
298938
299409
 
298939
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/key.js
298940
- var isTabKey2 = (key2) => key2.name === "tab";
298941
- var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
298942
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/errors.js
298943
- class AbortPromptError2 extends Error {
298944
- name = "AbortPromptError";
298945
- message = "Prompt was aborted";
298946
- constructor(options) {
298947
- super();
298948
- this.cause = options?.cause;
298949
- }
298950
- }
298951
-
298952
- class CancelPromptError2 extends Error {
298953
- name = "CancelPromptError";
298954
- message = "Prompt was canceled";
298955
- }
298956
-
298957
- class ExitPromptError2 extends Error {
298958
- name = "ExitPromptError";
298959
- }
298960
-
298961
- class HookError2 extends Error {
298962
- name = "HookError";
298963
- }
298964
-
298965
- class ValidationError2 extends Error {
298966
- name = "ValidationError";
298967
- }
298968
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
298969
- import { AsyncResource as AsyncResource5 } from "node:async_hooks";
298970
-
298971
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
298972
- import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
298973
- var hookStorage2 = new AsyncLocalStorage2;
298974
- function createStore2(rl) {
298975
- const store = {
298976
- rl,
298977
- hooks: [],
298978
- hooksCleanup: [],
298979
- hooksEffect: [],
298980
- index: 0,
298981
- handleChange() {}
298982
- };
298983
- return store;
298984
- }
298985
- function withHooks2(rl, cb) {
298986
- const store = createStore2(rl);
298987
- return hookStorage2.run(store, () => {
298988
- function cycle(render) {
298989
- store.handleChange = () => {
298990
- store.index = 0;
298991
- render();
298992
- };
298993
- store.handleChange();
298994
- }
298995
- return cb(cycle);
298996
- });
298997
- }
298998
- function getStore2() {
298999
- const store = hookStorage2.getStore();
299000
- if (!store) {
299001
- throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
299002
- }
299003
- return store;
299004
- }
299005
- function readline3() {
299006
- return getStore2().rl;
299007
- }
299008
- function withUpdates2(fn) {
299009
- const wrapped = (...args) => {
299010
- const store = getStore2();
299011
- let shouldUpdate = false;
299012
- const oldHandleChange = store.handleChange;
299013
- store.handleChange = () => {
299014
- shouldUpdate = true;
299015
- };
299016
- const returnValue = fn(...args);
299017
- if (shouldUpdate) {
299018
- oldHandleChange();
299019
- }
299020
- store.handleChange = oldHandleChange;
299021
- return returnValue;
299022
- };
299023
- return AsyncResource4.bind(wrapped);
299024
- }
299025
- function withPointer2(cb) {
299026
- const store = getStore2();
299027
- const { index: index2 } = store;
299028
- const pointer = {
299029
- get() {
299030
- return store.hooks[index2];
299031
- },
299032
- set(value5) {
299033
- store.hooks[index2] = value5;
299034
- },
299035
- initialized: index2 in store.hooks
299036
- };
299037
- const returnValue = cb(pointer);
299038
- store.index++;
299039
- return returnValue;
299040
- }
299041
- function handleChange2() {
299042
- getStore2().handleChange();
299043
- }
299044
- var effectScheduler2 = {
299045
- queue(cb) {
299046
- const store = getStore2();
299047
- const { index: index2 } = store;
299048
- store.hooksEffect.push(() => {
299049
- store.hooksCleanup[index2]?.();
299050
- const cleanFn = cb(readline3());
299051
- if (cleanFn != null && typeof cleanFn !== "function") {
299052
- throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
299053
- }
299054
- store.hooksCleanup[index2] = cleanFn;
299055
- });
299056
- },
299057
- run() {
299058
- const store = getStore2();
299059
- withUpdates2(() => {
299060
- store.hooksEffect.forEach((effect) => {
299061
- effect();
299062
- });
299063
- store.hooksEffect.length = 0;
299064
- })();
299065
- },
299066
- clearAll() {
299067
- const store = getStore2();
299068
- store.hooksCleanup.forEach((cleanFn) => {
299069
- cleanFn?.();
299070
- });
299071
- store.hooksEffect.length = 0;
299072
- store.hooksCleanup.length = 0;
299073
- }
299074
- };
299075
-
299076
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-state.js
299077
- function useState2(defaultValue) {
299078
- return withPointer2((pointer) => {
299079
- const setState = AsyncResource5.bind(function setState(newValue) {
299080
- if (pointer.get() !== newValue) {
299081
- pointer.set(newValue);
299082
- handleChange2();
299083
- }
299084
- });
299085
- if (pointer.initialized) {
299086
- return [pointer.get(), setState];
299087
- }
299088
- const value5 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
299089
- pointer.set(value5);
299090
- return [value5, setState];
299091
- });
299092
- }
299093
-
299094
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
299095
- function useEffect2(cb, depArray) {
299096
- withPointer2((pointer) => {
299097
- const oldDeps = pointer.get();
299098
- const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i7) => !Object.is(dep, oldDeps[i7]));
299099
- if (hasChanged) {
299100
- effectScheduler2.queue(cb);
299101
- }
299102
- pointer.set(depArray);
299103
- });
299104
- }
299105
-
299106
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/theme.js
299107
- var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
299108
- var defaultTheme2 = {
299109
- prefix: {
299110
- idle: import_yoctocolors_cjs4.default.blue("?"),
299111
- done: import_yoctocolors_cjs4.default.green(esm_default.tick)
299112
- },
299113
- spinner: {
299114
- interval: 80,
299115
- frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs4.default.yellow(frame))
299116
- },
299117
- style: {
299118
- answer: import_yoctocolors_cjs4.default.cyan,
299119
- message: import_yoctocolors_cjs4.default.bold,
299120
- error: (text2) => import_yoctocolors_cjs4.default.red(`> ${text2}`),
299121
- defaultAnswer: (text2) => import_yoctocolors_cjs4.default.dim(`(${text2})`),
299122
- help: import_yoctocolors_cjs4.default.dim,
299123
- highlight: import_yoctocolors_cjs4.default.cyan,
299124
- key: (text2) => import_yoctocolors_cjs4.default.cyan(import_yoctocolors_cjs4.default.bold(`<${text2}>`))
299125
- }
299126
- };
299127
-
299128
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
299129
- function isPlainObject4(value5) {
299130
- if (typeof value5 !== "object" || value5 === null)
299131
- return false;
299132
- let proto = value5;
299133
- while (Object.getPrototypeOf(proto) !== null) {
299134
- proto = Object.getPrototypeOf(proto);
299135
- }
299136
- return Object.getPrototypeOf(value5) === proto;
299137
- }
299138
- function deepMerge3(...objects) {
299139
- const output = {};
299140
- for (const obj of objects) {
299141
- for (const [key2, value5] of Object.entries(obj)) {
299142
- const prevValue = output[key2];
299143
- output[key2] = isPlainObject4(prevValue) && isPlainObject4(value5) ? deepMerge3(prevValue, value5) : value5;
299144
- }
299145
- }
299146
- return output;
299147
- }
299148
- function makeTheme2(...themes) {
299149
- const themesToMerge = [
299150
- defaultTheme2,
299151
- ...themes.filter((theme) => theme != null)
299152
- ];
299153
- return deepMerge3(...themesToMerge);
299154
- }
299155
-
299156
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
299157
- function usePrefix2({ status = "idle", theme }) {
299158
- const [showLoader, setShowLoader] = useState2(false);
299159
- const [tick, setTick] = useState2(0);
299160
- const { prefix, spinner: spinner2 } = makeTheme2(theme);
299161
- useEffect2(() => {
299162
- if (status === "loading") {
299163
- let tickInterval;
299164
- let inc = -1;
299165
- const delayTimeout = setTimeout(() => {
299166
- setShowLoader(true);
299167
- tickInterval = setInterval(() => {
299168
- inc = inc + 1;
299169
- setTick(inc % spinner2.frames.length);
299170
- }, spinner2.interval);
299171
- }, 300);
299172
- return () => {
299173
- clearTimeout(delayTimeout);
299174
- clearInterval(tickInterval);
299175
- };
299176
- } else {
299177
- setShowLoader(false);
299178
- }
299179
- }, [status]);
299180
- if (showLoader) {
299181
- return spinner2.frames[tick];
299182
- }
299183
- const iconName = status === "loading" ? "idle" : status;
299184
- return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
299185
- }
299186
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
299187
- function useRef2(val) {
299188
- return useState2({ current: val })[0];
299189
- }
299190
-
299191
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
299192
- function useKeypress2(userHandler) {
299193
- const signal = useRef2(userHandler);
299194
- signal.current = userHandler;
299195
- useEffect2((rl) => {
299196
- let ignore = false;
299197
- const handler = withUpdates2((_input, event) => {
299198
- if (ignore)
299199
- return;
299200
- signal.current(event, rl);
299201
- });
299202
- rl.input.on("keypress", handler);
299203
- return () => {
299204
- ignore = true;
299205
- rl.input.removeListener("keypress", handler);
299206
- };
299207
- }, []);
299208
- }
299209
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/utils.js
299210
- var import_cli_width2 = __toESM(require_cli_width(), 1);
299211
- var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
299212
- function breakLines2(content, width) {
299213
- return content.split(`
299214
- `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
299215
- `).map((str) => str.trimEnd())).join(`
299216
- `);
299217
- }
299218
- function readlineWidth2() {
299219
- return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
299220
- }
299221
-
299222
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
299223
- var import_mute_stream2 = __toESM(require_lib(), 1);
299224
- import * as readline4 from "node:readline";
299225
- import { AsyncResource as AsyncResource6 } from "node:async_hooks";
299226
-
299227
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
299228
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
299229
- import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
299230
- var height2 = (content) => content.split(`
299231
- `).length;
299232
- var lastLine2 = (content) => content.split(`
299233
- `).pop() ?? "";
299234
- function cursorDown2(n7) {
299235
- return n7 > 0 ? import_ansi_escapes3.default.cursorDown(n7) : "";
299236
- }
299237
-
299238
- class ScreenManager2 {
299239
- height = 0;
299240
- extraLinesUnderPrompt = 0;
299241
- cursorPos;
299242
- rl;
299243
- constructor(rl) {
299244
- this.rl = rl;
299245
- this.cursorPos = rl.getCursorPos();
299246
- }
299247
- write(content) {
299248
- this.rl.output.unmute();
299249
- this.rl.output.write(content);
299250
- this.rl.output.mute();
299251
- }
299252
- render(content, bottomContent = "") {
299253
- const promptLine = lastLine2(content);
299254
- const rawPromptLine = stripVTControlCharacters3(promptLine);
299255
- let prompt = rawPromptLine;
299256
- if (this.rl.line.length > 0) {
299257
- prompt = prompt.slice(0, -this.rl.line.length);
299258
- }
299259
- this.rl.setPrompt(prompt);
299260
- this.cursorPos = this.rl.getCursorPos();
299261
- const width = readlineWidth2();
299262
- content = breakLines2(content, width);
299263
- bottomContent = breakLines2(bottomContent, width);
299264
- if (rawPromptLine.length % width === 0) {
299265
- content += `
299266
- `;
299267
- }
299268
- let output = content + (bottomContent ? `
299269
- ` + bottomContent : "");
299270
- const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
299271
- const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
299272
- if (bottomContentHeight > 0)
299273
- output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
299274
- output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
299275
- this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
299276
- this.extraLinesUnderPrompt = bottomContentHeight;
299277
- this.height = height2(output);
299278
- }
299279
- checkCursorPos() {
299280
- const cursorPos = this.rl.getCursorPos();
299281
- if (cursorPos.cols !== this.cursorPos.cols) {
299282
- this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
299283
- this.cursorPos = cursorPos;
299284
- }
299285
- }
299286
- done({ clearContent }) {
299287
- this.rl.setPrompt("");
299288
- let output = cursorDown2(this.extraLinesUnderPrompt);
299289
- output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
299290
- `;
299291
- output += import_ansi_escapes3.default.cursorShow;
299292
- this.write(output);
299293
- this.rl.close();
299294
- }
299295
- }
299296
-
299297
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
299298
- class PromisePolyfill2 extends Promise {
299299
- static withResolver() {
299300
- let resolve7;
299301
- let reject;
299302
- const promise2 = new Promise((res, rej) => {
299303
- resolve7 = res;
299304
- reject = rej;
299305
- });
299306
- return { promise: promise2, resolve: resolve7, reject };
299307
- }
299308
- }
299309
-
299310
- // ../../node_modules/.bun/@inquirer+core@10.2.1+e9dc26b4af2fda18/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
299311
- function getCallSites2() {
299312
- const _prepareStackTrace = Error.prepareStackTrace;
299313
- let result = [];
299314
- try {
299315
- Error.prepareStackTrace = (_5, callSites) => {
299316
- const callSitesWithoutCurrent = callSites.slice(1);
299317
- result = callSitesWithoutCurrent;
299318
- return callSitesWithoutCurrent;
299319
- };
299320
- new Error().stack;
299321
- } catch {
299322
- return result;
299323
- }
299324
- Error.prepareStackTrace = _prepareStackTrace;
299325
- return result;
299326
- }
299327
- function createPrompt2(view) {
299328
- const callSites = getCallSites2();
299329
- const prompt = (config3, context = {}) => {
299330
- const { input = process.stdin, signal } = context;
299331
- const cleanups = new Set;
299332
- const output = new import_mute_stream2.default;
299333
- output.pipe(context.output ?? process.stdout);
299334
- const rl = readline4.createInterface({
299335
- terminal: true,
299336
- input,
299337
- output
299338
- });
299339
- const screen = new ScreenManager2(rl);
299340
- const { promise: promise2, resolve: resolve7, reject } = PromisePolyfill2.withResolver();
299341
- const cancel3 = () => reject(new CancelPromptError2);
299342
- if (signal) {
299343
- const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
299344
- if (signal.aborted) {
299345
- abort();
299346
- return Object.assign(promise2, { cancel: cancel3 });
299347
- }
299348
- signal.addEventListener("abort", abort);
299349
- cleanups.add(() => signal.removeEventListener("abort", abort));
299350
- }
299351
- cleanups.add(onExit((code2, signal2) => {
299352
- reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
299353
- }));
299354
- const sigint = () => reject(new ExitPromptError2(`User force closed the prompt with SIGINT`));
299355
- rl.on("SIGINT", sigint);
299356
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
299357
- const checkCursorPos = () => screen.checkCursorPos();
299358
- rl.input.on("keypress", checkCursorPos);
299359
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
299360
- return withHooks2(rl, (cycle) => {
299361
- const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
299362
- rl.on("close", hooksCleanup);
299363
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
299364
- cycle(() => {
299365
- try {
299366
- const nextView = view(config3, (value5) => {
299367
- setImmediate(() => resolve7(value5));
299368
- });
299369
- if (nextView === undefined) {
299370
- const callerFilename = callSites[1]?.getFileName();
299371
- throw new Error(`Prompt functions must return a string.
299372
- at ${callerFilename}`);
299373
- }
299374
- const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
299375
- screen.render(content, bottomContent);
299376
- effectScheduler2.run();
299377
- } catch (error48) {
299378
- reject(error48);
299379
- }
299380
- });
299381
- return Object.assign(promise2.then((answer) => {
299382
- effectScheduler2.clearAll();
299383
- return answer;
299384
- }, (error48) => {
299385
- effectScheduler2.clearAll();
299386
- throw error48;
299387
- }).finally(() => {
299388
- cleanups.forEach((cleanup) => cleanup());
299389
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
299390
- output.end();
299391
- }).then(() => promise2), { cancel: cancel3 });
299392
- });
299393
- };
299394
- return prompt;
299395
- }
299396
- // ../../node_modules/.bun/@inquirer+confirm@5.1.17+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
299410
+ // ../../node_modules/.bun/@inquirer+confirm@5.1.18+e9dc26b4af2fda18/node_modules/@inquirer/confirm/dist/esm/index.js
299397
299411
  function getBooleanValue(value5, defaultValue) {
299398
299412
  let answer = defaultValue !== false;
299399
299413
  if (/^(y|yes)/i.test(value5))
@@ -299405,21 +299419,21 @@ function getBooleanValue(value5, defaultValue) {
299405
299419
  function boolToString(value5) {
299406
299420
  return value5 ? "Yes" : "No";
299407
299421
  }
299408
- var esm_default4 = createPrompt2((config3, done) => {
299422
+ var esm_default4 = createPrompt((config3, done) => {
299409
299423
  const { transformer = boolToString } = config3;
299410
- const [status, setStatus] = useState2("idle");
299411
- const [value5, setValue] = useState2("");
299412
- const theme = makeTheme2(config3.theme);
299413
- const prefix = usePrefix2({ status, theme });
299414
- useKeypress2((key3, rl) => {
299424
+ const [status, setStatus] = useState("idle");
299425
+ const [value5, setValue] = useState("");
299426
+ const theme = makeTheme(config3.theme);
299427
+ const prefix = usePrefix({ status, theme });
299428
+ useKeypress((key3, rl) => {
299415
299429
  if (status !== "idle")
299416
299430
  return;
299417
- if (isEnterKey2(key3)) {
299431
+ if (isEnterKey(key3)) {
299418
299432
  const answer = getBooleanValue(value5, config3.default);
299419
299433
  setValue(transformer(answer));
299420
299434
  setStatus("done");
299421
299435
  done(answer);
299422
- } else if (isTabKey2(key3)) {
299436
+ } else if (isTabKey(key3)) {
299423
299437
  const answer = boolToString(!getBooleanValue(value5, config3.default));
299424
299438
  rl.clearLine(0);
299425
299439
  rl.write(answer);
@@ -299440,19 +299454,19 @@ var esm_default4 = createPrompt2((config3, done) => {
299440
299454
  });
299441
299455
 
299442
299456
  // ../../node_modules/.bun/@inquirer+password@4.0.18+e9dc26b4af2fda18/node_modules/@inquirer/password/dist/esm/index.js
299443
- var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
299444
- var esm_default5 = createPrompt((config3, done) => {
299457
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
299458
+ var esm_default5 = createPrompt2((config3, done) => {
299445
299459
  const { validate: validate8 = () => true } = config3;
299446
- const theme = makeTheme(config3.theme);
299447
- const [status, setStatus] = useState("idle");
299448
- const [errorMsg, setError] = useState();
299449
- const [value5, setValue] = useState("");
299450
- const prefix = usePrefix({ status, theme });
299451
- useKeypress(async (key3, rl) => {
299460
+ const theme = makeTheme2(config3.theme);
299461
+ const [status, setStatus] = useState2("idle");
299462
+ const [errorMsg, setError] = useState2();
299463
+ const [value5, setValue] = useState2("");
299464
+ const prefix = usePrefix2({ status, theme });
299465
+ useKeypress2(async (key3, rl) => {
299452
299466
  if (status !== "idle") {
299453
299467
  return;
299454
299468
  }
299455
- if (isEnterKey(key3)) {
299469
+ if (isEnterKey2(key3)) {
299456
299470
  const answer = value5;
299457
299471
  setStatus("loading");
299458
299472
  const isValid = await validate8(answer);
@@ -299477,7 +299491,7 @@ var esm_default5 = createPrompt((config3, done) => {
299477
299491
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
299478
299492
  formattedValue = maskChar.repeat(value5.length);
299479
299493
  } else if (status !== "done") {
299480
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
299494
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
299481
299495
  }
299482
299496
  if (status === "done") {
299483
299497
  formattedValue = theme.style.answer(formattedValue);
@@ -309050,4 +309064,4 @@ async function sdkCliCommand(argv = process.argv) {
309050
309064
  // src/cli.ts
309051
309065
  sdkCliCommand();
309052
309066
 
309053
- //# debugId=FF541EF051B69F1B64756E2164756E21
309067
+ //# debugId=2E2338FD399D6D7264756E2164756E21