@settlemint/sdk-cli 2.0.0-main8684737a → 2.0.0-main9d615f19

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 +923 -457
  2. package/dist/cli.js.map +36 -22
  3. package/package.json +8 -8
package/dist/cli.js CHANGED
@@ -14515,8 +14515,8 @@ var require_printLocation = __commonJS((exports) => {
14515
14515
  const columnNum = sourceLocation.column + columnOffset;
14516
14516
  const locationStr = `${source.name}:${lineNum}:${columnNum}
14517
14517
  `;
14518
- const lines2 = body.split(/\r\n|[\n\r]/g);
14519
- const locationLine = lines2[lineIndex];
14518
+ const lines = body.split(/\r\n|[\n\r]/g);
14519
+ const locationLine = lines[lineIndex];
14520
14520
  if (locationLine.length > 120) {
14521
14521
  const subLineIndex = Math.floor(columnNum / 80);
14522
14522
  const subLineColumnNum = columnNum % 80;
@@ -14532,14 +14532,14 @@ var require_printLocation = __commonJS((exports) => {
14532
14532
  ]);
14533
14533
  }
14534
14534
  return locationStr + printPrefixedLines([
14535
- [`${lineNum - 1} |`, lines2[lineIndex - 1]],
14535
+ [`${lineNum - 1} |`, lines[lineIndex - 1]],
14536
14536
  [`${lineNum} |`, locationLine],
14537
14537
  ["|", "^".padStart(columnNum)],
14538
- [`${lineNum + 1} |`, lines2[lineIndex + 1]]
14538
+ [`${lineNum + 1} |`, lines[lineIndex + 1]]
14539
14539
  ]);
14540
14540
  }
14541
- function printPrefixedLines(lines2) {
14542
- const existingLines = lines2.filter(([_, line]) => line !== undefined);
14541
+ function printPrefixedLines(lines) {
14542
+ const existingLines = lines.filter(([_, line]) => line !== undefined);
14543
14543
  const padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));
14544
14544
  return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join(`
14545
14545
  `);
@@ -14952,14 +14952,14 @@ var require_blockString = __commonJS((exports) => {
14952
14952
  exports.isPrintableAsBlockString = isPrintableAsBlockString;
14953
14953
  exports.printBlockString = printBlockString;
14954
14954
  var _characterClasses = require_characterClasses();
14955
- function dedentBlockStringLines(lines2) {
14955
+ function dedentBlockStringLines(lines) {
14956
14956
  var _firstNonEmptyLine2;
14957
14957
  let commonIndent = Number.MAX_SAFE_INTEGER;
14958
14958
  let firstNonEmptyLine = null;
14959
14959
  let lastNonEmptyLine = -1;
14960
- for (let i = 0;i < lines2.length; ++i) {
14960
+ for (let i = 0;i < lines.length; ++i) {
14961
14961
  var _firstNonEmptyLine;
14962
- const line = lines2[i];
14962
+ const line = lines[i];
14963
14963
  const indent = leadingWhitespace(line);
14964
14964
  if (indent === line.length) {
14965
14965
  continue;
@@ -14970,7 +14970,7 @@ var require_blockString = __commonJS((exports) => {
14970
14970
  commonIndent = indent;
14971
14971
  }
14972
14972
  }
14973
- return lines2.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
14973
+ return lines.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
14974
14974
  }
14975
14975
  function leadingWhitespace(str) {
14976
14976
  let i = 0;
@@ -15032,9 +15032,9 @@ var require_blockString = __commonJS((exports) => {
15032
15032
  }
15033
15033
  function printBlockString(value, options) {
15034
15034
  const escapedValue = value.replace(/"""/g, '\\"""');
15035
- const lines2 = escapedValue.split(/\r\n|[\n\r]/g);
15036
- const isSingleLine = lines2.length === 1;
15037
- const forceLeadingNewLine = lines2.length > 1 && lines2.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
15035
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
15036
+ const isSingleLine = lines.length === 1;
15037
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
15038
15038
  const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
15039
15039
  const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
15040
15040
  const hasTrailingSlash = value.endsWith("\\");
@@ -34075,9 +34075,9 @@ var require_commonjs4 = __commonJS((exports) => {
34075
34075
  this.#resolveCache = new ResolveCache2;
34076
34076
  this.#resolvePosixCache = new ResolveCache2;
34077
34077
  this.#children = new ChildrenCache2(childrenCacheSize);
34078
- const split2 = cwdPath.substring(this.rootPath.length).split(sep2);
34079
- if (split2.length === 1 && !split2[0]) {
34080
- split2.pop();
34078
+ const split = cwdPath.substring(this.rootPath.length).split(sep2);
34079
+ if (split.length === 1 && !split[0]) {
34080
+ split.pop();
34081
34081
  }
34082
34082
  if (nocase === undefined) {
34083
34083
  throw new TypeError("must provide nocase setting to PathScurryBase ctor");
@@ -34086,11 +34086,11 @@ var require_commonjs4 = __commonJS((exports) => {
34086
34086
  this.root = this.newRoot(this.#fs);
34087
34087
  this.roots[this.rootPath] = this.root;
34088
34088
  let prev = this.root;
34089
- let len = split2.length - 1;
34089
+ let len = split.length - 1;
34090
34090
  const joinSep = pathImpl.sep;
34091
34091
  let abs = this.rootPath;
34092
34092
  let sawFirst = false;
34093
- for (const part of split2) {
34093
+ for (const part of split) {
34094
34094
  const l2 = len--;
34095
34095
  prev = prev.child(part, {
34096
34096
  relative: new Array(l2).fill("..").join(joinSep),
@@ -36541,9 +36541,9 @@ var require_ini = __commonJS((exports, module) => {
36541
36541
  let p = out;
36542
36542
  let section = null;
36543
36543
  const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
36544
- const lines2 = str.split(/[\r\n]+/g);
36544
+ const lines = str.split(/[\r\n]+/g);
36545
36545
  const duplicates = {};
36546
- for (const line of lines2) {
36546
+ for (const line of lines) {
36547
36547
  if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
36548
36548
  continue;
36549
36549
  }
@@ -38096,7 +38096,7 @@ var require_semver2 = __commonJS((exports, module) => {
38096
38096
  // ../../node_modules/@npmcli/git/lib/lines-to-revs.js
38097
38097
  var require_lines_to_revs = __commonJS((exports, module) => {
38098
38098
  var semver = require_semver2();
38099
- module.exports = (lines2) => finish(lines2.reduce(linesToRevsReducer, {
38099
+ module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
38100
38100
  versions: {},
38101
38101
  "dist-tags": {},
38102
38102
  refs: {},
@@ -38157,12 +38157,12 @@ var require_lines_to_revs = __commonJS((exports, module) => {
38157
38157
  return "other";
38158
38158
  };
38159
38159
  var lineToRevDoc = (line) => {
38160
- const split2 = line.trim().split(/\s+/, 2);
38161
- if (split2.length < 2) {
38160
+ const split = line.trim().split(/\s+/, 2);
38161
+ if (split.length < 2) {
38162
38162
  return null;
38163
38163
  }
38164
- const sha = split2[0].trim();
38165
- const rawRef = split2[1].trim();
38164
+ const sha = split[0].trim();
38165
+ const rawRef = split[1].trim();
38166
38166
  const type2 = refType(rawRef);
38167
38167
  if (type2 === "tag") {
38168
38168
  const ref = rawRef.slice("refs/tags/".length);
@@ -40723,17 +40723,17 @@ var require_normalize_data = __commonJS((exports, module) => {
40723
40723
  };
40724
40724
  var isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
40725
40725
  function extractDescription(description) {
40726
- const lines2 = description.trim().split(`
40726
+ const lines = description.trim().split(`
40727
40727
  `);
40728
40728
  let start = 0;
40729
- while (lines2[start]?.trim().match(/^(#|$)/)) {
40729
+ while (lines[start]?.trim().match(/^(#|$)/)) {
40730
40730
  start++;
40731
40731
  }
40732
40732
  let end = start + 1;
40733
- while (end < lines2.length && lines2[end].trim()) {
40733
+ while (end < lines.length && lines[end].trim()) {
40734
40734
  end++;
40735
40735
  }
40736
- return lines2.slice(start, end).join(" ").trim();
40736
+ return lines.slice(start, end).join(" ").trim();
40737
40737
  }
40738
40738
  function stringifyPerson(person) {
40739
40739
  if (typeof person !== "string") {
@@ -59430,9 +59430,9 @@ ${lanes.join(`
59430
59430
  return node.kind === 183 || node.kind === 233;
59431
59431
  }
59432
59432
  var MAX_SMI_X86 = 1073741823;
59433
- function guessIndentation(lines2) {
59433
+ function guessIndentation(lines) {
59434
59434
  let indentation = MAX_SMI_X86;
59435
- for (const line of lines2) {
59435
+ for (const line of lines) {
59436
59436
  if (!line.length) {
59437
59437
  continue;
59438
59438
  }
@@ -147983,8 +147983,8 @@ ${lanes.join(`
147983
147983
  if (node.comment) {
147984
147984
  const text = getTextOfJSDocComment(node.comment);
147985
147985
  if (text) {
147986
- const lines2 = text.split(/\r\n?|\n/);
147987
- for (const line of lines2) {
147986
+ const lines = text.split(/\r\n?|\n/);
147987
+ for (const line of lines) {
147988
147988
  writeLine();
147989
147989
  writeSpace();
147990
147990
  writePunctuation("*");
@@ -148628,9 +148628,9 @@ ${lanes.join(`
148628
148628
  if (getEmitFlags(parentNode) & 1) {
148629
148629
  writeSpace();
148630
148630
  } else if (preserveSourceNewlines) {
148631
- const lines2 = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
148632
- if (lines2) {
148633
- writeLine(lines2);
148631
+ const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
148632
+ if (lines) {
148633
+ writeLine(lines);
148634
148634
  } else {
148635
148635
  writeSpace();
148636
148636
  }
@@ -148639,9 +148639,9 @@ ${lanes.join(`
148639
148639
  }
148640
148640
  }
148641
148641
  function writeLines(text) {
148642
- const lines2 = text.split(/\r\n?|\n/);
148643
- const indentation = guessIndentation(lines2);
148644
- for (const lineText of lines2) {
148642
+ const lines = text.split(/\r\n?|\n/);
148643
+ const indentation = guessIndentation(lines);
148644
+ for (const lineText of lines) {
148645
148645
  const line = indentation ? lineText.slice(indentation) : lineText;
148646
148646
  if (line.length) {
148647
148647
  writeLine();
@@ -148739,11 +148739,11 @@ ${lanes.join(`
148739
148739
  }
148740
148740
  function getEffectiveLines(getLineDifference) {
148741
148741
  Debug.assert(!!preserveSourceNewlines);
148742
- const lines2 = getLineDifference(true);
148743
- if (lines2 === 0) {
148742
+ const lines = getLineDifference(true);
148743
+ if (lines === 0) {
148744
148744
  return getLineDifference(false);
148745
148745
  }
148746
- return lines2;
148746
+ return lines;
148747
148747
  }
148748
148748
  function writeLineSeparatorsAndIndentBefore(node, parent2) {
148749
148749
  const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent2, node, 0);
@@ -159029,7 +159029,7 @@ ${lanes.join(`
159029
159029
  function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
159030
159030
  var _a;
159031
159031
  const text = [];
159032
- const colors3 = createColors(sys2);
159032
+ const colors2 = createColors(sys2);
159033
159033
  const name2 = getDisplayNameTextOfOption(option);
159034
159034
  const valueCandidates = getValueCandidate(option);
159035
159035
  const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
@@ -159050,7 +159050,7 @@ ${lanes.join(`
159050
159050
  }
159051
159051
  text.push(sys2.newLine);
159052
159052
  } else {
159053
- text.push(colors3.blue(name2), sys2.newLine);
159053
+ text.push(colors2.blue(name2), sys2.newLine);
159054
159054
  if (option.description) {
159055
159055
  const description3 = getDiagnosticText(option.description);
159056
159056
  text.push(description3);
@@ -159095,7 +159095,7 @@ ${lanes.join(`
159095
159095
  if (isFirstLine) {
159096
159096
  curLeft = left.padStart(rightAlignOfLeft2);
159097
159097
  curLeft = curLeft.padEnd(leftAlignOfRight2);
159098
- curLeft = colorLeft ? colors3.blue(curLeft) : curLeft;
159098
+ curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
159099
159099
  } else {
159100
159100
  curLeft = "".padStart(leftAlignOfRight2);
159101
159101
  }
@@ -159164,15 +159164,15 @@ ${lanes.join(`
159164
159164
  }
159165
159165
  const rightAlignOfLeftPart = maxLength2 + 2;
159166
159166
  const leftAlignOfRightPart = rightAlignOfLeftPart + 2;
159167
- let lines2 = [];
159167
+ let lines = [];
159168
159168
  for (const option of optionsList) {
159169
159169
  const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart);
159170
- lines2 = [...lines2, ...tmp];
159170
+ lines = [...lines, ...tmp];
159171
159171
  }
159172
- if (lines2[lines2.length - 2] !== sys2.newLine) {
159173
- lines2.push(sys2.newLine);
159172
+ if (lines[lines.length - 2] !== sys2.newLine) {
159173
+ lines.push(sys2.newLine);
159174
159174
  }
159175
- return lines2;
159175
+ return lines;
159176
159176
  }
159177
159177
  function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, beforeOptionsDescription, afterOptionsDescription) {
159178
159178
  let res = [];
@@ -159207,9 +159207,9 @@ ${lanes.join(`
159207
159207
  return res;
159208
159208
  }
159209
159209
  function printEasyHelp(sys2, simpleOptions) {
159210
- const colors3 = createColors(sys2);
159210
+ const colors2 = createColors(sys2);
159211
159211
  let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)];
159212
- output.push(colors3.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
159212
+ output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
159213
159213
  example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
159214
159214
  example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
159215
159215
  example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
@@ -159230,7 +159230,7 @@ ${lanes.join(`
159230
159230
  function example(ex, desc) {
159231
159231
  const examples = typeof ex === "string" ? [ex] : ex;
159232
159232
  for (const example2 of examples) {
159233
- output.push(" " + colors3.blue(example2) + sys2.newLine);
159233
+ output.push(" " + colors2.blue(example2) + sys2.newLine);
159234
159234
  }
159235
159235
  output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
159236
159236
  }
@@ -159253,12 +159253,12 @@ ${lanes.join(`
159253
159253
  }
159254
159254
  function getHeader(sys2, message) {
159255
159255
  var _a;
159256
- const colors3 = createColors(sys2);
159256
+ const colors2 = createColors(sys2);
159257
159257
  const header = [];
159258
159258
  const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
159259
159259
  const tsIconLength = 5;
159260
- const tsIconFirstLine = colors3.blueBackground("".padStart(tsIconLength));
159261
- const tsIconSecondLine = colors3.blueBackground(colors3.brightWhite("TS ".padStart(tsIconLength)));
159260
+ const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
159261
+ const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
159262
159262
  if (terminalWidth >= message.length + tsIconLength) {
159263
159263
  const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
159264
159264
  const leftAlign = rightAlign - tsIconLength;
@@ -210964,9 +210964,9 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
210964
210964
  insertedText = this.initialText + this.trailingText;
210965
210965
  }
210966
210966
  const lm = LineIndex.linesFromText(insertedText);
210967
- const lines2 = lm.lines;
210968
- if (lines2.length > 1 && lines2[lines2.length - 1] === "") {
210969
- lines2.pop();
210967
+ const lines = lm.lines;
210968
+ if (lines.length > 1 && lines[lines.length - 1] === "") {
210969
+ lines.pop();
210970
210970
  }
210971
210971
  let branchParent;
210972
210972
  let lastZeroCount;
@@ -210985,13 +210985,13 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
210985
210985
  branchParent.remove(lastZeroCount);
210986
210986
  }
210987
210987
  const leafNode = this.startPath[this.startPath.length - 1];
210988
- if (lines2.length > 0) {
210989
- leafNode.text = lines2[0];
210990
- if (lines2.length > 1) {
210991
- let insertedNodes = new Array(lines2.length - 1);
210988
+ if (lines.length > 0) {
210989
+ leafNode.text = lines[0];
210990
+ if (lines.length > 1) {
210991
+ let insertedNodes = new Array(lines.length - 1);
210992
210992
  let startNode2 = leafNode;
210993
- for (let i2 = 1;i2 < lines2.length; i2++) {
210994
- insertedNodes[i2 - 1] = new LineLeaf(lines2[i2]);
210993
+ for (let i2 = 1;i2 < lines.length; i2++) {
210994
+ insertedNodes[i2 - 1] = new LineLeaf(lines[i2]);
210995
210995
  }
210996
210996
  let pathIndex = this.startPath.length - 2;
210997
210997
  while (pathIndex >= 0) {
@@ -211261,11 +211261,11 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
211261
211261
  return { absolutePosition: this.root.charCount(), lineText: undefined };
211262
211262
  }
211263
211263
  }
211264
- load(lines2) {
211265
- if (lines2.length > 0) {
211264
+ load(lines) {
211265
+ if (lines.length > 0) {
211266
211266
  const leaves = [];
211267
- for (let i2 = 0;i2 < lines2.length; i2++) {
211268
- leaves[i2] = new LineLeaf(lines2[i2]);
211267
+ for (let i2 = 0;i2 < lines.length; i2++) {
211268
+ leaves[i2] = new LineLeaf(lines[i2]);
211269
211269
  }
211270
211270
  this.root = _LineIndex.buildTreeFromBottom(leaves);
211271
211271
  } else {
@@ -211368,18 +211368,18 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
211368
211368
  if (lineMap.length === 0) {
211369
211369
  return { lines: [], lineMap };
211370
211370
  }
211371
- const lines2 = new Array(lineMap.length);
211371
+ const lines = new Array(lineMap.length);
211372
211372
  const lc = lineMap.length - 1;
211373
211373
  for (let lmi = 0;lmi < lc; lmi++) {
211374
- lines2[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
211374
+ lines[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
211375
211375
  }
211376
211376
  const endText = text.substring(lineMap[lc]);
211377
211377
  if (endText.length > 0) {
211378
- lines2[lc] = endText;
211378
+ lines[lc] = endText;
211379
211379
  } else {
211380
- lines2.pop();
211380
+ lines.pop();
211381
211381
  }
211382
- return { lines: lines2, lineMap };
211382
+ return { lines, lineMap };
211383
211383
  }
211384
211384
  };
211385
211385
  var LineNode = class _LineNode {
@@ -212450,7 +212450,7 @@ async function* streamBody(e4) {
212450
212450
  }
212451
212451
  }
212452
212452
  }
212453
- async function* split2(e4, r3) {
212453
+ async function* split(e4, r3) {
212454
212454
  var a4 = "";
212455
212455
  var n3;
212456
212456
  for await (var t4 of e4) {
@@ -212484,7 +212484,7 @@ function makeFetchSource(e4, r3, a4) {
212484
212484
  var n5 = "--" + (a6 ? a6[1] : "-");
212485
212485
  var t5 = true;
212486
212486
  var i4;
212487
- for await (var o4 of split2(streamBody(r5), `\r
212487
+ for await (var o4 of split(streamBody(r5), `\r
212488
212488
  ` + n5)) {
212489
212489
  if (t5) {
212490
212490
  t5 = false;
@@ -212517,7 +212517,7 @@ function makeFetchSource(e4, r3, a4) {
212517
212517
  } else if (/text\/event-stream/i.test(o3)) {
212518
212518
  s2 = async function* parseEventStream(e6) {
212519
212519
  var r5;
212520
- for await (var a6 of split2(streamBody(e6), `
212520
+ for await (var a6 of split(streamBody(e6), `
212521
212521
 
212522
212522
  `)) {
212523
212523
  var n5 = a6.match(S);
@@ -232122,8 +232122,8 @@ var require_lib13 = __commonJS((exports, module) => {
232122
232122
  function fetch2(input, options) {
232123
232123
  return nodeFetch.fetch(input, options);
232124
232124
  }
232125
- for (const key2 in nodeFetch) {
232126
- fetch2[key2] = nodeFetch[key2];
232125
+ for (const key3 in nodeFetch) {
232126
+ fetch2[key3] = nodeFetch[key3];
232127
232127
  }
232128
232128
  module.exports = fetch2;
232129
232129
  });
@@ -232216,11 +232216,11 @@ var require_proxy = __commonJS((exports) => {
232216
232216
  return hasRequiredSymbols$4 || (hasRequiredSymbols$4 = 1, symbols$4 = { kClose: Symbol("close"), kDestroy: Symbol("destroy"), kDispatch: Symbol("dispatch"), kUrl: Symbol("url"), kWriting: Symbol("writing"), kResuming: Symbol("resuming"), kQueue: Symbol("queue"), kConnect: Symbol("connect"), kConnecting: Symbol("connecting"), kKeepAliveDefaultTimeout: Symbol("default keep alive timeout"), kKeepAliveMaxTimeout: Symbol("max keep alive timeout"), kKeepAliveTimeoutThreshold: Symbol("keep alive timeout threshold"), kKeepAliveTimeoutValue: Symbol("keep alive timeout"), kKeepAlive: Symbol("keep alive"), kHeadersTimeout: Symbol("headers timeout"), kBodyTimeout: Symbol("body timeout"), kServerName: Symbol("server name"), kLocalAddress: Symbol("local address"), kHost: Symbol("host"), kNoRef: Symbol("no ref"), kBodyUsed: Symbol("used"), kBody: Symbol("abstracted request body"), kRunning: Symbol("running"), kBlocking: Symbol("blocking"), kPending: Symbol("pending"), kSize: Symbol("size"), kBusy: Symbol("busy"), kQueued: Symbol("queued"), kFree: Symbol("free"), kConnected: Symbol("connected"), kClosed: Symbol("closed"), kNeedDrain: Symbol("need drain"), kReset: Symbol("reset"), kDestroyed: Symbol.for("nodejs.stream.destroyed"), kResume: Symbol("resume"), kOnError: Symbol("on error"), kMaxHeadersSize: Symbol("max headers size"), kRunningIdx: Symbol("running index"), kPendingIdx: Symbol("pending index"), kError: Symbol("error"), kClients: Symbol("clients"), kClient: Symbol("client"), kParser: Symbol("parser"), kOnDestroyed: Symbol("destroy callbacks"), kPipelining: Symbol("pipelining"), kSocket: Symbol("socket"), kHostHeader: Symbol("host header"), kConnector: Symbol("connector"), kStrictContentLength: Symbol("strict content length"), kMaxRedirections: Symbol("maxRedirections"), kMaxRequests: Symbol("maxRequestsPerClient"), kProxy: Symbol("proxy agent options"), kCounter: Symbol("socket request counter"), kInterceptors: Symbol("dispatch interceptors"), kMaxResponseSize: Symbol("max response size"), kHTTP2Session: Symbol("http2Session"), kHTTP2SessionState: Symbol("http2Session state"), kRetryHandlerDefaultRetry: Symbol("retry agent default retry"), kConstruct: Symbol("constructable"), kListeners: Symbol("listeners"), kHTTPContext: Symbol("http context"), kMaxConcurrentStreams: Symbol("max concurrent streams"), kNoProxyAgent: Symbol("no proxy agent"), kHttpProxyAgent: Symbol("http proxy agent"), kHttpsProxyAgent: Symbol("https proxy agent") }), symbols$4;
232217
232217
  }
232218
232218
  e10(requireSymbols$4, "requireSymbols$4");
232219
- var errors2;
232219
+ var errors3;
232220
232220
  var hasRequiredErrors;
232221
232221
  function requireErrors() {
232222
232222
  if (hasRequiredErrors)
232223
- return errors2;
232223
+ return errors3;
232224
232224
  hasRequiredErrors = 1;
232225
232225
 
232226
232226
  class A5 extends Error {
@@ -232429,7 +232429,7 @@ var require_proxy = __commonJS((exports) => {
232429
232429
  super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
232430
232430
  }
232431
232431
  }
232432
- return errors2 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N7, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h8 }, errors2;
232432
+ return errors3 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l3, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N7, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h8 }, errors3;
232433
232433
  }
232434
232434
  e10(requireErrors, "requireErrors");
232435
232435
  var constants$4;
@@ -242380,11 +242380,11 @@ var require_visit = __commonJS((exports) => {
242380
242380
  visit2.BREAK = BREAK;
242381
242381
  visit2.SKIP = SKIP;
242382
242382
  visit2.REMOVE = REMOVE;
242383
- function visit_(key2, node, visitor, path6) {
242384
- const ctrl = callVisitor(key2, node, visitor, path6);
242383
+ function visit_(key3, node, visitor, path6) {
242384
+ const ctrl = callVisitor(key3, node, visitor, path6);
242385
242385
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
242386
- replaceNode(key2, path6, ctrl);
242387
- return visit_(key2, ctrl, visitor, path6);
242386
+ replaceNode(key3, path6, ctrl);
242387
+ return visit_(key3, ctrl, visitor, path6);
242388
242388
  }
242389
242389
  if (typeof ctrl !== "symbol") {
242390
242390
  if (identity2.isCollection(node)) {
@@ -242428,11 +242428,11 @@ var require_visit = __commonJS((exports) => {
242428
242428
  visitAsync.BREAK = BREAK;
242429
242429
  visitAsync.SKIP = SKIP;
242430
242430
  visitAsync.REMOVE = REMOVE;
242431
- async function visitAsync_(key2, node, visitor, path6) {
242432
- const ctrl = await callVisitor(key2, node, visitor, path6);
242431
+ async function visitAsync_(key3, node, visitor, path6) {
242432
+ const ctrl = await callVisitor(key3, node, visitor, path6);
242433
242433
  if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
242434
- replaceNode(key2, path6, ctrl);
242435
- return visitAsync_(key2, ctrl, visitor, path6);
242434
+ replaceNode(key3, path6, ctrl);
242435
+ return visitAsync_(key3, ctrl, visitor, path6);
242436
242436
  }
242437
242437
  if (typeof ctrl !== "symbol") {
242438
242438
  if (identity2.isCollection(node)) {
@@ -242482,27 +242482,27 @@ var require_visit = __commonJS((exports) => {
242482
242482
  }
242483
242483
  return visitor;
242484
242484
  }
242485
- function callVisitor(key2, node, visitor, path6) {
242485
+ function callVisitor(key3, node, visitor, path6) {
242486
242486
  if (typeof visitor === "function")
242487
- return visitor(key2, node, path6);
242487
+ return visitor(key3, node, path6);
242488
242488
  if (identity2.isMap(node))
242489
- return visitor.Map?.(key2, node, path6);
242489
+ return visitor.Map?.(key3, node, path6);
242490
242490
  if (identity2.isSeq(node))
242491
- return visitor.Seq?.(key2, node, path6);
242491
+ return visitor.Seq?.(key3, node, path6);
242492
242492
  if (identity2.isPair(node))
242493
- return visitor.Pair?.(key2, node, path6);
242493
+ return visitor.Pair?.(key3, node, path6);
242494
242494
  if (identity2.isScalar(node))
242495
- return visitor.Scalar?.(key2, node, path6);
242495
+ return visitor.Scalar?.(key3, node, path6);
242496
242496
  if (identity2.isAlias(node))
242497
- return visitor.Alias?.(key2, node, path6);
242497
+ return visitor.Alias?.(key3, node, path6);
242498
242498
  return;
242499
242499
  }
242500
- function replaceNode(key2, path6, node) {
242500
+ function replaceNode(key3, path6, node) {
242501
242501
  const parent = path6[path6.length - 1];
242502
242502
  if (identity2.isCollection(parent)) {
242503
- parent.items[key2] = node;
242503
+ parent.items[key3] = node;
242504
242504
  } else if (identity2.isPair(parent)) {
242505
- if (key2 === "key")
242505
+ if (key3 === "key")
242506
242506
  parent.key = node;
242507
242507
  else
242508
242508
  parent.value = node;
@@ -242734,7 +242734,7 @@ var require_anchors = __commonJS((exports) => {
242734
242734
 
242735
242735
  // ../../node_modules/yaml/dist/doc/applyReviver.js
242736
242736
  var require_applyReviver = __commonJS((exports) => {
242737
- function applyReviver(reviver, obj, key2, val) {
242737
+ function applyReviver(reviver, obj, key3, val) {
242738
242738
  if (val && typeof val === "object") {
242739
242739
  if (Array.isArray(val)) {
242740
242740
  for (let i7 = 0, len = val.length;i7 < len; ++i7) {
@@ -242774,7 +242774,7 @@ var require_applyReviver = __commonJS((exports) => {
242774
242774
  }
242775
242775
  }
242776
242776
  }
242777
- return reviver.call(obj, key2, val);
242777
+ return reviver.call(obj, key3, val);
242778
242778
  }
242779
242779
  exports.applyReviver = applyReviver;
242780
242780
  });
@@ -243092,29 +243092,29 @@ var require_Collection = __commonJS((exports) => {
243092
243092
  if (isEmptyPath(path6))
243093
243093
  this.add(value4);
243094
243094
  else {
243095
- const [key2, ...rest] = path6;
243096
- const node = this.get(key2, true);
243095
+ const [key3, ...rest] = path6;
243096
+ const node = this.get(key3, true);
243097
243097
  if (identity2.isCollection(node))
243098
243098
  node.addIn(rest, value4);
243099
243099
  else if (node === undefined && this.schema)
243100
- this.set(key2, collectionFromPath(this.schema, rest, value4));
243100
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
243101
243101
  else
243102
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
243102
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
243103
243103
  }
243104
243104
  }
243105
243105
  deleteIn(path6) {
243106
- const [key2, ...rest] = path6;
243106
+ const [key3, ...rest] = path6;
243107
243107
  if (rest.length === 0)
243108
- return this.delete(key2);
243109
- const node = this.get(key2, true);
243108
+ return this.delete(key3);
243109
+ const node = this.get(key3, true);
243110
243110
  if (identity2.isCollection(node))
243111
243111
  return node.deleteIn(rest);
243112
243112
  else
243113
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
243113
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
243114
243114
  }
243115
243115
  getIn(path6, keepScalar) {
243116
- const [key2, ...rest] = path6;
243117
- const node = this.get(key2, true);
243116
+ const [key3, ...rest] = path6;
243117
+ const node = this.get(key3, true);
243118
243118
  if (rest.length === 0)
243119
243119
  return !keepScalar && identity2.isScalar(node) ? node.value : node;
243120
243120
  else
@@ -243129,24 +243129,24 @@ var require_Collection = __commonJS((exports) => {
243129
243129
  });
243130
243130
  }
243131
243131
  hasIn(path6) {
243132
- const [key2, ...rest] = path6;
243132
+ const [key3, ...rest] = path6;
243133
243133
  if (rest.length === 0)
243134
- return this.has(key2);
243135
- const node = this.get(key2, true);
243134
+ return this.has(key3);
243135
+ const node = this.get(key3, true);
243136
243136
  return identity2.isCollection(node) ? node.hasIn(rest) : false;
243137
243137
  }
243138
243138
  setIn(path6, value4) {
243139
- const [key2, ...rest] = path6;
243139
+ const [key3, ...rest] = path6;
243140
243140
  if (rest.length === 0) {
243141
- this.set(key2, value4);
243141
+ this.set(key3, value4);
243142
243142
  } else {
243143
- const node = this.get(key2, true);
243143
+ const node = this.get(key3, true);
243144
243144
  if (identity2.isCollection(node))
243145
243145
  node.setIn(rest, value4);
243146
243146
  else if (node === undefined && this.schema)
243147
- this.set(key2, collectionFromPath(this.schema, rest, value4));
243147
+ this.set(key3, collectionFromPath(this.schema, rest, value4));
243148
243148
  else
243149
- throw new Error(`Expected YAML collection at ${key2}. Remaining path: ${rest}`);
243149
+ throw new Error(`Expected YAML collection at ${key3}. Remaining path: ${rest}`);
243150
243150
  }
243151
243151
  }
243152
243152
  }
@@ -243734,19 +243734,19 @@ var require_stringifyPair = __commonJS((exports) => {
243734
243734
  var Scalar = require_Scalar();
243735
243735
  var stringify3 = require_stringify();
243736
243736
  var stringifyComment = require_stringifyComment();
243737
- function stringifyPair2({ key: key2, value: value4 }, ctx, onComment, onChompKeep) {
243737
+ function stringifyPair2({ key: key3, value: value4 }, ctx, onComment, onChompKeep) {
243738
243738
  const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
243739
- let keyComment = identity2.isNode(key2) && key2.comment || null;
243739
+ let keyComment = identity2.isNode(key3) && key3.comment || null;
243740
243740
  if (simpleKeys) {
243741
243741
  if (keyComment) {
243742
243742
  throw new Error("With simple keys, key nodes cannot have comments");
243743
243743
  }
243744
- if (identity2.isCollection(key2) || !identity2.isNode(key2) && typeof key2 === "object") {
243744
+ if (identity2.isCollection(key3) || !identity2.isNode(key3) && typeof key3 === "object") {
243745
243745
  const msg = "With simple keys, collection cannot be used as a key value";
243746
243746
  throw new Error(msg);
243747
243747
  }
243748
243748
  }
243749
- let explicitKey = !simpleKeys && (!key2 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key2) || (identity2.isScalar(key2) ? key2.type === Scalar.Scalar.BLOCK_FOLDED || key2.type === Scalar.Scalar.BLOCK_LITERAL : typeof key2 === "object"));
243749
+ let explicitKey = !simpleKeys && (!key3 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key3) || (identity2.isScalar(key3) ? key3.type === Scalar.Scalar.BLOCK_FOLDED || key3.type === Scalar.Scalar.BLOCK_LITERAL : typeof key3 === "object"));
243750
243750
  ctx = Object.assign({}, ctx, {
243751
243751
  allNullValues: false,
243752
243752
  implicitKey: !explicitKey && (simpleKeys || !allNullValues),
@@ -243754,7 +243754,7 @@ var require_stringifyPair = __commonJS((exports) => {
243754
243754
  });
243755
243755
  let keyCommentDone = false;
243756
243756
  let chompKeep = false;
243757
- let str = stringify3.stringify(key2, ctx, () => keyCommentDone = true, () => chompKeep = true);
243757
+ let str = stringify3.stringify(key3, ctx, () => keyCommentDone = true, () => chompKeep = true);
243758
243758
  if (!explicitKey && !ctx.inFlow && str.length > 1024) {
243759
243759
  if (simpleKeys)
243760
243760
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
@@ -243898,7 +243898,7 @@ var require_merge = __commonJS((exports) => {
243898
243898
  }),
243899
243899
  stringify: () => MERGE_KEY
243900
243900
  };
243901
- var isMergeKey = (ctx, key2) => (merge3.identify(key2) || identity2.isScalar(key2) && (!key2.type || key2.type === Scalar.Scalar.PLAIN) && merge3.identify(key2.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
243901
+ var isMergeKey = (ctx, key3) => (merge3.identify(key3) || identity2.isScalar(key3) && (!key3.type || key3.type === Scalar.Scalar.PLAIN) && merge3.identify(key3.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
243902
243902
  function addMergeToJSMap(ctx, map3, value4) {
243903
243903
  value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
243904
243904
  if (identity2.isSeq(value4))
@@ -243915,14 +243915,14 @@ var require_merge = __commonJS((exports) => {
243915
243915
  if (!identity2.isMap(source))
243916
243916
  throw new Error("Merge sources must be maps or map aliases");
243917
243917
  const srcMap = source.toJSON(null, ctx, Map);
243918
- for (const [key2, value5] of srcMap) {
243918
+ for (const [key3, value5] of srcMap) {
243919
243919
  if (map3 instanceof Map) {
243920
- if (!map3.has(key2))
243921
- map3.set(key2, value5);
243920
+ if (!map3.has(key3))
243921
+ map3.set(key3, value5);
243922
243922
  } else if (map3 instanceof Set) {
243923
- map3.add(key2);
243924
- } else if (!Object.prototype.hasOwnProperty.call(map3, key2)) {
243925
- Object.defineProperty(map3, key2, {
243923
+ map3.add(key3);
243924
+ } else if (!Object.prototype.hasOwnProperty.call(map3, key3)) {
243925
+ Object.defineProperty(map3, key3, {
243926
243926
  value: value5,
243927
243927
  writable: true,
243928
243928
  enumerable: true,
@@ -243944,19 +243944,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
243944
243944
  var stringify3 = require_stringify();
243945
243945
  var identity2 = require_identity();
243946
243946
  var toJS = require_toJS();
243947
- function addPairToJSMap(ctx, map3, { key: key2, value: value4 }) {
243948
- if (identity2.isNode(key2) && key2.addToJSMap)
243949
- key2.addToJSMap(ctx, map3, value4);
243950
- else if (merge3.isMergeKey(ctx, key2))
243947
+ function addPairToJSMap(ctx, map3, { key: key3, value: value4 }) {
243948
+ if (identity2.isNode(key3) && key3.addToJSMap)
243949
+ key3.addToJSMap(ctx, map3, value4);
243950
+ else if (merge3.isMergeKey(ctx, key3))
243951
243951
  merge3.addMergeToJSMap(ctx, map3, value4);
243952
243952
  else {
243953
- const jsKey = toJS.toJS(key2, "", ctx);
243953
+ const jsKey = toJS.toJS(key3, "", ctx);
243954
243954
  if (map3 instanceof Map) {
243955
243955
  map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
243956
243956
  } else if (map3 instanceof Set) {
243957
243957
  map3.add(jsKey);
243958
243958
  } else {
243959
- const stringKey = stringifyKey(key2, jsKey, ctx);
243959
+ const stringKey = stringifyKey(key3, jsKey, ctx);
243960
243960
  const jsValue = toJS.toJS(value4, stringKey, ctx);
243961
243961
  if (stringKey in map3)
243962
243962
  Object.defineProperty(map3, stringKey, {
@@ -243971,19 +243971,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
243971
243971
  }
243972
243972
  return map3;
243973
243973
  }
243974
- function stringifyKey(key2, jsKey, ctx) {
243974
+ function stringifyKey(key3, jsKey, ctx) {
243975
243975
  if (jsKey === null)
243976
243976
  return "";
243977
243977
  if (typeof jsKey !== "object")
243978
243978
  return String(jsKey);
243979
- if (identity2.isNode(key2) && ctx?.doc) {
243979
+ if (identity2.isNode(key3) && ctx?.doc) {
243980
243980
  const strCtx = stringify3.createStringifyContext(ctx.doc, {});
243981
243981
  strCtx.anchors = new Set;
243982
243982
  for (const node of ctx.anchors.keys())
243983
243983
  strCtx.anchors.add(node.anchor);
243984
243984
  strCtx.inFlow = true;
243985
243985
  strCtx.inStringifyKey = true;
243986
- const strKey = key2.toString(strCtx);
243986
+ const strKey = key3.toString(strCtx);
243987
243987
  if (!ctx.mapKeyWarned) {
243988
243988
  let jsonStr = JSON.stringify(strKey);
243989
243989
  if (jsonStr.length > 40)
@@ -244004,25 +244004,25 @@ var require_Pair = __commonJS((exports) => {
244004
244004
  var stringifyPair2 = require_stringifyPair();
244005
244005
  var addPairToJSMap = require_addPairToJSMap();
244006
244006
  var identity2 = require_identity();
244007
- function createPair(key2, value4, ctx) {
244008
- const k6 = createNode.createNode(key2, undefined, ctx);
244007
+ function createPair(key3, value4, ctx) {
244008
+ const k6 = createNode.createNode(key3, undefined, ctx);
244009
244009
  const v7 = createNode.createNode(value4, undefined, ctx);
244010
244010
  return new Pair(k6, v7);
244011
244011
  }
244012
244012
 
244013
244013
  class Pair {
244014
- constructor(key2, value4 = null) {
244014
+ constructor(key3, value4 = null) {
244015
244015
  Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
244016
- this.key = key2;
244016
+ this.key = key3;
244017
244017
  this.value = value4;
244018
244018
  }
244019
244019
  clone(schema) {
244020
- let { key: key2, value: value4 } = this;
244021
- if (identity2.isNode(key2))
244022
- key2 = key2.clone(schema);
244020
+ let { key: key3, value: value4 } = this;
244021
+ if (identity2.isNode(key3))
244022
+ key3 = key3.clone(schema);
244023
244023
  if (identity2.isNode(value4))
244024
244024
  value4 = value4.clone(schema);
244025
- return new Pair(key2, value4);
244025
+ return new Pair(key3, value4);
244026
244026
  }
244027
244027
  toJSON(_6, ctx) {
244028
244028
  const pair = ctx?.mapAsMap ? new Map : {};
@@ -244189,11 +244189,11 @@ var require_YAMLMap = __commonJS((exports) => {
244189
244189
  var identity2 = require_identity();
244190
244190
  var Pair = require_Pair();
244191
244191
  var Scalar = require_Scalar();
244192
- function findPair(items, key2) {
244193
- const k6 = identity2.isScalar(key2) ? key2.value : key2;
244192
+ function findPair(items, key3) {
244193
+ const k6 = identity2.isScalar(key3) ? key3.value : key3;
244194
244194
  for (const it2 of items) {
244195
244195
  if (identity2.isPair(it2)) {
244196
- if (it2.key === key2 || it2.key === k6)
244196
+ if (it2.key === key3 || it2.key === k6)
244197
244197
  return it2;
244198
244198
  if (identity2.isScalar(it2.key) && it2.key.value === k6)
244199
244199
  return it2;
@@ -244213,20 +244213,20 @@ var require_YAMLMap = __commonJS((exports) => {
244213
244213
  static from(schema, obj, ctx) {
244214
244214
  const { keepUndefined, replacer } = ctx;
244215
244215
  const map3 = new this(schema);
244216
- const add = (key2, value4) => {
244216
+ const add = (key3, value4) => {
244217
244217
  if (typeof replacer === "function")
244218
- value4 = replacer.call(obj, key2, value4);
244219
- else if (Array.isArray(replacer) && !replacer.includes(key2))
244218
+ value4 = replacer.call(obj, key3, value4);
244219
+ else if (Array.isArray(replacer) && !replacer.includes(key3))
244220
244220
  return;
244221
244221
  if (value4 !== undefined || keepUndefined)
244222
- map3.items.push(Pair.createPair(key2, value4, ctx));
244222
+ map3.items.push(Pair.createPair(key3, value4, ctx));
244223
244223
  };
244224
244224
  if (obj instanceof Map) {
244225
- for (const [key2, value4] of obj)
244226
- add(key2, value4);
244225
+ for (const [key3, value4] of obj)
244226
+ add(key3, value4);
244227
244227
  } else if (obj && typeof obj === "object") {
244228
- for (const key2 of Object.keys(obj))
244229
- add(key2, obj[key2]);
244228
+ for (const key3 of Object.keys(obj))
244229
+ add(key3, obj[key3]);
244230
244230
  }
244231
244231
  if (typeof schema.sortMapEntries === "function") {
244232
244232
  map3.items.sort(schema.sortMapEntries);
@@ -244260,23 +244260,23 @@ var require_YAMLMap = __commonJS((exports) => {
244260
244260
  this.items.push(_pair);
244261
244261
  }
244262
244262
  }
244263
- delete(key2) {
244264
- const it2 = findPair(this.items, key2);
244263
+ delete(key3) {
244264
+ const it2 = findPair(this.items, key3);
244265
244265
  if (!it2)
244266
244266
  return false;
244267
244267
  const del = this.items.splice(this.items.indexOf(it2), 1);
244268
244268
  return del.length > 0;
244269
244269
  }
244270
- get(key2, keepScalar) {
244271
- const it2 = findPair(this.items, key2);
244270
+ get(key3, keepScalar) {
244271
+ const it2 = findPair(this.items, key3);
244272
244272
  const node = it2?.value;
244273
244273
  return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
244274
244274
  }
244275
- has(key2) {
244276
- return !!findPair(this.items, key2);
244275
+ has(key3) {
244276
+ return !!findPair(this.items, key3);
244277
244277
  }
244278
- set(key2, value4) {
244279
- this.add(new Pair.Pair(key2, value4), true);
244278
+ set(key3, value4) {
244279
+ this.add(new Pair.Pair(key3, value4), true);
244280
244280
  }
244281
244281
  toJSON(_6, ctx, Type) {
244282
244282
  const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
@@ -244347,28 +244347,28 @@ var require_YAMLSeq = __commonJS((exports) => {
244347
244347
  add(value4) {
244348
244348
  this.items.push(value4);
244349
244349
  }
244350
- delete(key2) {
244351
- const idx = asItemIndex(key2);
244350
+ delete(key3) {
244351
+ const idx = asItemIndex(key3);
244352
244352
  if (typeof idx !== "number")
244353
244353
  return false;
244354
244354
  const del = this.items.splice(idx, 1);
244355
244355
  return del.length > 0;
244356
244356
  }
244357
- get(key2, keepScalar) {
244358
- const idx = asItemIndex(key2);
244357
+ get(key3, keepScalar) {
244358
+ const idx = asItemIndex(key3);
244359
244359
  if (typeof idx !== "number")
244360
244360
  return;
244361
244361
  const it2 = this.items[idx];
244362
244362
  return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
244363
244363
  }
244364
- has(key2) {
244365
- const idx = asItemIndex(key2);
244364
+ has(key3) {
244365
+ const idx = asItemIndex(key3);
244366
244366
  return typeof idx === "number" && idx < this.items.length;
244367
244367
  }
244368
- set(key2, value4) {
244369
- const idx = asItemIndex(key2);
244368
+ set(key3, value4) {
244369
+ const idx = asItemIndex(key3);
244370
244370
  if (typeof idx !== "number")
244371
- throw new Error(`Expected a valid index, not ${key2}.`);
244371
+ throw new Error(`Expected a valid index, not ${key3}.`);
244372
244372
  const prev = this.items[idx];
244373
244373
  if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
244374
244374
  prev.value = value4;
@@ -244402,8 +244402,8 @@ var require_YAMLSeq = __commonJS((exports) => {
244402
244402
  let i7 = 0;
244403
244403
  for (let it2 of obj) {
244404
244404
  if (typeof replacer === "function") {
244405
- const key2 = obj instanceof Set ? it2 : String(i7++);
244406
- it2 = replacer.call(obj, key2, it2);
244405
+ const key3 = obj instanceof Set ? it2 : String(i7++);
244406
+ it2 = replacer.call(obj, key3, it2);
244407
244407
  }
244408
244408
  seq.items.push(createNode.createNode(it2, undefined, ctx));
244409
244409
  }
@@ -244411,8 +244411,8 @@ var require_YAMLSeq = __commonJS((exports) => {
244411
244411
  return seq;
244412
244412
  }
244413
244413
  }
244414
- function asItemIndex(key2) {
244415
- let idx = identity2.isScalar(key2) ? key2.value : key2;
244414
+ function asItemIndex(key3) {
244415
+ let idx = identity2.isScalar(key3) ? key3.value : key3;
244416
244416
  if (idx && typeof idx === "string")
244417
244417
  idx = Number(idx);
244418
244418
  return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
@@ -244713,6 +244713,8 @@ var require_binary = __commonJS((exports) => {
244713
244713
  }
244714
244714
  },
244715
244715
  stringify({ comment, type: type4, value: value4 }, ctx, onComment, onChompKeep) {
244716
+ if (!value4)
244717
+ return "";
244716
244718
  const buf = value4;
244717
244719
  let str;
244718
244720
  if (typeof node_buffer.Buffer === "function") {
@@ -244784,25 +244786,25 @@ ${cn.comment}` : item.comment;
244784
244786
  for (let it2 of iterable) {
244785
244787
  if (typeof replacer === "function")
244786
244788
  it2 = replacer.call(iterable, String(i7++), it2);
244787
- let key2, value4;
244789
+ let key3, value4;
244788
244790
  if (Array.isArray(it2)) {
244789
244791
  if (it2.length === 2) {
244790
- key2 = it2[0];
244792
+ key3 = it2[0];
244791
244793
  value4 = it2[1];
244792
244794
  } else
244793
244795
  throw new TypeError(`Expected [key, value] tuple: ${it2}`);
244794
244796
  } else if (it2 && it2 instanceof Object) {
244795
244797
  const keys = Object.keys(it2);
244796
244798
  if (keys.length === 1) {
244797
- key2 = keys[0];
244798
- value4 = it2[key2];
244799
+ key3 = keys[0];
244800
+ value4 = it2[key3];
244799
244801
  } else {
244800
244802
  throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
244801
244803
  }
244802
244804
  } else {
244803
- key2 = it2;
244805
+ key3 = it2;
244804
244806
  }
244805
- pairs2.items.push(Pair.createPair(key2, value4, ctx));
244807
+ pairs2.items.push(Pair.createPair(key3, value4, ctx));
244806
244808
  }
244807
244809
  return pairs2;
244808
244810
  }
@@ -244843,16 +244845,16 @@ var require_omap = __commonJS((exports) => {
244843
244845
  if (ctx?.onCreate)
244844
244846
  ctx.onCreate(map3);
244845
244847
  for (const pair of this.items) {
244846
- let key2, value4;
244848
+ let key3, value4;
244847
244849
  if (identity2.isPair(pair)) {
244848
- key2 = toJS.toJS(pair.key, "", ctx);
244849
- value4 = toJS.toJS(pair.value, key2, ctx);
244850
+ key3 = toJS.toJS(pair.key, "", ctx);
244851
+ value4 = toJS.toJS(pair.value, key3, ctx);
244850
244852
  } else {
244851
- key2 = toJS.toJS(pair, "", ctx);
244853
+ key3 = toJS.toJS(pair, "", ctx);
244852
244854
  }
244853
- if (map3.has(key2))
244855
+ if (map3.has(key3))
244854
244856
  throw new Error("Ordered maps must not include duplicate keys");
244855
- map3.set(key2, value4);
244857
+ map3.set(key3, value4);
244856
244858
  }
244857
244859
  return map3;
244858
244860
  }
@@ -244873,12 +244875,12 @@ var require_omap = __commonJS((exports) => {
244873
244875
  resolve(seq, onError) {
244874
244876
  const pairs$1 = pairs.resolvePairs(seq, onError);
244875
244877
  const seenKeys = [];
244876
- for (const { key: key2 } of pairs$1.items) {
244877
- if (identity2.isScalar(key2)) {
244878
- if (seenKeys.includes(key2.value)) {
244879
- onError(`Ordered maps must not include duplicate keys: ${key2.value}`);
244878
+ for (const { key: key3 } of pairs$1.items) {
244879
+ if (identity2.isScalar(key3)) {
244880
+ if (seenKeys.includes(key3.value)) {
244881
+ onError(`Ordered maps must not include duplicate keys: ${key3.value}`);
244880
244882
  } else {
244881
- seenKeys.push(key2.value);
244883
+ seenKeys.push(key3.value);
244882
244884
  }
244883
244885
  }
244884
244886
  }
@@ -245052,30 +245054,30 @@ var require_set = __commonJS((exports) => {
245052
245054
  super(schema);
245053
245055
  this.tag = YAMLSet.tag;
245054
245056
  }
245055
- add(key2) {
245057
+ add(key3) {
245056
245058
  let pair;
245057
- if (identity2.isPair(key2))
245058
- pair = key2;
245059
- else if (key2 && typeof key2 === "object" && "key" in key2 && "value" in key2 && key2.value === null)
245060
- pair = new Pair.Pair(key2.key, null);
245059
+ if (identity2.isPair(key3))
245060
+ pair = key3;
245061
+ else if (key3 && typeof key3 === "object" && "key" in key3 && "value" in key3 && key3.value === null)
245062
+ pair = new Pair.Pair(key3.key, null);
245061
245063
  else
245062
- pair = new Pair.Pair(key2, null);
245064
+ pair = new Pair.Pair(key3, null);
245063
245065
  const prev = YAMLMap.findPair(this.items, pair.key);
245064
245066
  if (!prev)
245065
245067
  this.items.push(pair);
245066
245068
  }
245067
- get(key2, keepPair) {
245068
- const pair = YAMLMap.findPair(this.items, key2);
245069
+ get(key3, keepPair) {
245070
+ const pair = YAMLMap.findPair(this.items, key3);
245069
245071
  return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
245070
245072
  }
245071
- set(key2, value4) {
245073
+ set(key3, value4) {
245072
245074
  if (typeof value4 !== "boolean")
245073
245075
  throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
245074
- const prev = YAMLMap.findPair(this.items, key2);
245076
+ const prev = YAMLMap.findPair(this.items, key3);
245075
245077
  if (prev && !value4) {
245076
245078
  this.items.splice(this.items.indexOf(prev), 1);
245077
245079
  } else if (!prev && value4) {
245078
- this.items.push(new Pair.Pair(key2));
245080
+ this.items.push(new Pair.Pair(key3));
245079
245081
  }
245080
245082
  }
245081
245083
  toJSON(_6, ctx) {
@@ -245199,7 +245201,7 @@ var require_timestamp = __commonJS((exports) => {
245199
245201
  }
245200
245202
  return new Date(date);
245201
245203
  },
245202
- stringify: ({ value: value4 }) => value4.toISOString().replace(/(T00:00:00)?\.000Z$/, "")
245204
+ stringify: ({ value: value4 }) => value4?.toISOString().replace(/(T00:00:00)?\.000Z$/, "") ?? ""
245203
245205
  };
245204
245206
  exports.floatTime = floatTime;
245205
245207
  exports.intTime = intTime;
@@ -245310,7 +245312,7 @@ var require_tags = __commonJS((exports) => {
245310
245312
  if (Array.isArray(customTags))
245311
245313
  tags = [];
245312
245314
  else {
245313
- const keys = Array.from(schemas.keys()).filter((key2) => key2 !== "yaml11").map((key2) => JSON.stringify(key2)).join(", ");
245315
+ const keys = Array.from(schemas.keys()).filter((key3) => key3 !== "yaml11").map((key3) => JSON.stringify(key3)).join(", ");
245314
245316
  throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
245315
245317
  }
245316
245318
  }
@@ -245326,7 +245328,7 @@ var require_tags = __commonJS((exports) => {
245326
245328
  const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
245327
245329
  if (!tagObj) {
245328
245330
  const tagName = JSON.stringify(tag);
245329
- const keys = Object.keys(tagsByName).map((key2) => JSON.stringify(key2)).join(", ");
245331
+ const keys = Object.keys(tagsByName).map((key3) => JSON.stringify(key3)).join(", ");
245330
245332
  throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
245331
245333
  }
245332
245334
  if (!tags2.includes(tagObj))
@@ -245561,13 +245563,13 @@ var require_Document = __commonJS((exports) => {
245561
245563
  setAnchors();
245562
245564
  return node;
245563
245565
  }
245564
- createPair(key2, value4, options = {}) {
245565
- const k6 = this.createNode(key2, null, options);
245566
+ createPair(key3, value4, options = {}) {
245567
+ const k6 = this.createNode(key3, null, options);
245566
245568
  const v7 = this.createNode(value4, null, options);
245567
245569
  return new Pair.Pair(k6, v7);
245568
245570
  }
245569
- delete(key2) {
245570
- return assertCollection(this.contents) ? this.contents.delete(key2) : false;
245571
+ delete(key3) {
245572
+ return assertCollection(this.contents) ? this.contents.delete(key3) : false;
245571
245573
  }
245572
245574
  deleteIn(path6) {
245573
245575
  if (Collection.isEmptyPath(path6)) {
@@ -245578,27 +245580,27 @@ var require_Document = __commonJS((exports) => {
245578
245580
  }
245579
245581
  return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
245580
245582
  }
245581
- get(key2, keepScalar) {
245582
- return identity2.isCollection(this.contents) ? this.contents.get(key2, keepScalar) : undefined;
245583
+ get(key3, keepScalar) {
245584
+ return identity2.isCollection(this.contents) ? this.contents.get(key3, keepScalar) : undefined;
245583
245585
  }
245584
245586
  getIn(path6, keepScalar) {
245585
245587
  if (Collection.isEmptyPath(path6))
245586
245588
  return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
245587
245589
  return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
245588
245590
  }
245589
- has(key2) {
245590
- return identity2.isCollection(this.contents) ? this.contents.has(key2) : false;
245591
+ has(key3) {
245592
+ return identity2.isCollection(this.contents) ? this.contents.has(key3) : false;
245591
245593
  }
245592
245594
  hasIn(path6) {
245593
245595
  if (Collection.isEmptyPath(path6))
245594
245596
  return this.contents !== undefined;
245595
245597
  return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
245596
245598
  }
245597
- set(key2, value4) {
245599
+ set(key3, value4) {
245598
245600
  if (this.contents == null) {
245599
- this.contents = Collection.collectionFromPath(this.schema, [key2], value4);
245601
+ this.contents = Collection.collectionFromPath(this.schema, [key3], value4);
245600
245602
  } else if (assertCollection(this.contents)) {
245601
- this.contents.set(key2, value4);
245603
+ this.contents.set(key3, value4);
245602
245604
  }
245603
245605
  }
245604
245606
  setIn(path6, value4) {
@@ -245882,25 +245884,25 @@ var require_resolve_props = __commonJS((exports) => {
245882
245884
 
245883
245885
  // ../../node_modules/yaml/dist/compose/util-contains-newline.js
245884
245886
  var require_util_contains_newline = __commonJS((exports) => {
245885
- function containsNewline(key2) {
245886
- if (!key2)
245887
+ function containsNewline(key3) {
245888
+ if (!key3)
245887
245889
  return null;
245888
- switch (key2.type) {
245890
+ switch (key3.type) {
245889
245891
  case "alias":
245890
245892
  case "scalar":
245891
245893
  case "double-quoted-scalar":
245892
245894
  case "single-quoted-scalar":
245893
- if (key2.source.includes(`
245895
+ if (key3.source.includes(`
245894
245896
  `))
245895
245897
  return true;
245896
- if (key2.end) {
245897
- for (const st2 of key2.end)
245898
+ if (key3.end) {
245899
+ for (const st2 of key3.end)
245898
245900
  if (st2.type === "newline")
245899
245901
  return true;
245900
245902
  }
245901
245903
  return false;
245902
245904
  case "flow-collection":
245903
- for (const it2 of key2.items) {
245905
+ for (const it2 of key3.items) {
245904
245906
  for (const st2 of it2.start)
245905
245907
  if (st2.type === "newline")
245906
245908
  return true;
@@ -245965,10 +245967,10 @@ var require_resolve_block_map = __commonJS((exports) => {
245965
245967
  let offset = bm.offset;
245966
245968
  let commentEnd = null;
245967
245969
  for (const collItem of bm.items) {
245968
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
245970
+ const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
245969
245971
  const keyProps = resolveProps.resolveProps(start3, {
245970
245972
  indicator: "explicit-key-ind",
245971
- next: key2 ?? sep3?.[0],
245973
+ next: key3 ?? sep3?.[0],
245972
245974
  offset,
245973
245975
  onError,
245974
245976
  parentIndent: bm.indent,
@@ -245976,10 +245978,10 @@ var require_resolve_block_map = __commonJS((exports) => {
245976
245978
  });
245977
245979
  const implicitKey = !keyProps.found;
245978
245980
  if (implicitKey) {
245979
- if (key2) {
245980
- if (key2.type === "block-seq")
245981
+ if (key3) {
245982
+ if (key3.type === "block-seq")
245981
245983
  onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
245982
- else if ("indent" in key2 && key2.indent !== bm.indent)
245984
+ else if ("indent" in key3 && key3.indent !== bm.indent)
245983
245985
  onError(offset, "BAD_INDENT", startColMsg);
245984
245986
  }
245985
245987
  if (!keyProps.anchor && !keyProps.tag && !sep3) {
@@ -245993,17 +245995,17 @@ var require_resolve_block_map = __commonJS((exports) => {
245993
245995
  }
245994
245996
  continue;
245995
245997
  }
245996
- if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key2)) {
245997
- onError(key2 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
245998
+ if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key3)) {
245999
+ onError(key3 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
245998
246000
  }
245999
246001
  } else if (keyProps.found?.indent !== bm.indent) {
246000
246002
  onError(offset, "BAD_INDENT", startColMsg);
246001
246003
  }
246002
246004
  ctx.atKey = true;
246003
246005
  const keyStart = keyProps.end;
246004
- const keyNode = key2 ? composeNode(ctx, key2, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
246006
+ const keyNode = key3 ? composeNode(ctx, key3, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
246005
246007
  if (ctx.schema.compat)
246006
- utilFlowIndentCheck.flowIndentCheck(bm.indent, key2, onError);
246008
+ utilFlowIndentCheck.flowIndentCheck(bm.indent, key3, onError);
246007
246009
  ctx.atKey = false;
246008
246010
  if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
246009
246011
  onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
@@ -246013,7 +246015,7 @@ var require_resolve_block_map = __commonJS((exports) => {
246013
246015
  offset: keyNode.range[2],
246014
246016
  onError,
246015
246017
  parentIndent: bm.indent,
246016
- startOnNewline: !key2 || key2.type === "block-scalar"
246018
+ startOnNewline: !key3 || key3.type === "block-scalar"
246017
246019
  });
246018
246020
  offset = valueProps.end;
246019
246021
  if (valueProps.found) {
@@ -246169,11 +246171,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
246169
246171
  let offset = fc.offset + fc.start.source.length;
246170
246172
  for (let i7 = 0;i7 < fc.items.length; ++i7) {
246171
246173
  const collItem = fc.items[i7];
246172
- const { start: start3, key: key2, sep: sep3, value: value4 } = collItem;
246174
+ const { start: start3, key: key3, sep: sep3, value: value4 } = collItem;
246173
246175
  const props = resolveProps.resolveProps(start3, {
246174
246176
  flow: fcName,
246175
246177
  indicator: "explicit-key-ind",
246176
- next: key2 ?? sep3?.[0],
246178
+ next: key3 ?? sep3?.[0],
246177
246179
  offset,
246178
246180
  onError,
246179
246181
  parentIndent: fc.indent,
@@ -246195,8 +246197,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
246195
246197
  offset = props.end;
246196
246198
  continue;
246197
246199
  }
246198
- if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key2))
246199
- onError(key2, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
246200
+ if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key3))
246201
+ onError(key3, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
246200
246202
  }
246201
246203
  if (i7 === 0) {
246202
246204
  if (props.comma)
@@ -246241,8 +246243,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
246241
246243
  } else {
246242
246244
  ctx.atKey = true;
246243
246245
  const keyStart = props.end;
246244
- const keyNode = key2 ? composeNode(ctx, key2, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
246245
- if (isBlock(key2))
246246
+ const keyNode = key3 ? composeNode(ctx, key3, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
246247
+ if (isBlock(key3))
246246
246248
  onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
246247
246249
  ctx.atKey = false;
246248
246250
  const valueProps = resolveProps.resolveProps(sep3 ?? [], {
@@ -246376,8 +246378,8 @@ var require_compose_collection = __commonJS((exports) => {
246376
246378
  ctx.schema.tags.push(Object.assign({}, kt3, { default: false }));
246377
246379
  tag = kt3;
246378
246380
  } else {
246379
- if (kt3?.collection) {
246380
- onError(tagToken, "BAD_COLLECTION_TYPE", `${kt3.tag} used for ${expType} collection, but expects ${kt3.collection}`, true);
246381
+ if (kt3) {
246382
+ onError(tagToken, "BAD_COLLECTION_TYPE", `${kt3.tag} used for ${expType} collection, but expects ${kt3.collection ?? "scalar"}`, true);
246381
246383
  } else {
246382
246384
  onError(tagToken, "TAG_RESOLVE_FAILED", `Unresolved tag: ${tagName}`, true);
246383
246385
  }
@@ -247054,7 +247056,7 @@ var require_composer = __commonJS((exports) => {
247054
247056
  var node_process = __require("node:process");
247055
247057
  var directives4 = require_directives2();
247056
247058
  var Document = require_Document();
247057
- var errors2 = require_errors3();
247059
+ var errors3 = require_errors3();
247058
247060
  var identity2 = require_identity();
247059
247061
  var composeDoc = require_compose_doc();
247060
247062
  var resolveEnd = require_resolve_end();
@@ -247105,9 +247107,9 @@ var require_composer = __commonJS((exports) => {
247105
247107
  this.onError = (source, code2, message, warning) => {
247106
247108
  const pos = getErrorPos(source);
247107
247109
  if (warning)
247108
- this.warnings.push(new errors2.YAMLWarning(pos, code2, message));
247110
+ this.warnings.push(new errors3.YAMLWarning(pos, code2, message));
247109
247111
  else
247110
- this.errors.push(new errors2.YAMLParseError(pos, code2, message));
247112
+ this.errors.push(new errors3.YAMLParseError(pos, code2, message));
247111
247113
  };
247112
247114
  this.directives = new directives4.Directives({ version: options.version || "1.2" });
247113
247115
  this.options = options;
@@ -247191,7 +247193,7 @@ ${cb}` : comment;
247191
247193
  break;
247192
247194
  case "error": {
247193
247195
  const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
247194
- const error5 = new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
247196
+ const error5 = new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
247195
247197
  if (this.atDirectives || !this.doc)
247196
247198
  this.errors.push(error5);
247197
247199
  else
@@ -247201,7 +247203,7 @@ ${cb}` : comment;
247201
247203
  case "doc-end": {
247202
247204
  if (!this.doc) {
247203
247205
  const msg = "Unexpected doc-end without preceding document";
247204
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
247206
+ this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
247205
247207
  break;
247206
247208
  }
247207
247209
  this.doc.directives.docEnd = true;
@@ -247216,7 +247218,7 @@ ${end.comment}` : end.comment;
247216
247218
  break;
247217
247219
  }
247218
247220
  default:
247219
- this.errors.push(new errors2.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
247221
+ this.errors.push(new errors3.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
247220
247222
  }
247221
247223
  }
247222
247224
  *end(forceDoc = false, endOffset = -1) {
@@ -247242,7 +247244,7 @@ ${end.comment}` : end.comment;
247242
247244
  var require_cst_scalar = __commonJS((exports) => {
247243
247245
  var resolveBlockScalar = require_resolve_block_scalar();
247244
247246
  var resolveFlowScalar = require_resolve_flow_scalar();
247245
- var errors2 = require_errors3();
247247
+ var errors3 = require_errors3();
247246
247248
  var stringifyString = require_stringifyString();
247247
247249
  function resolveAsScalar(token, strict = true, onError) {
247248
247250
  if (token) {
@@ -247251,7 +247253,7 @@ var require_cst_scalar = __commonJS((exports) => {
247251
247253
  if (onError)
247252
247254
  onError(offset, code2, message);
247253
247255
  else
247254
- throw new errors2.YAMLParseError([offset, offset + 1], code2, message);
247256
+ throw new errors3.YAMLParseError([offset, offset + 1], code2, message);
247255
247257
  };
247256
247258
  switch (token.type) {
247257
247259
  case "scalar":
@@ -247365,9 +247367,9 @@ var require_cst_scalar = __commonJS((exports) => {
247365
247367
  if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
247366
247368
  props.push({ type: "newline", offset: -1, indent: indent2, source: `
247367
247369
  ` });
247368
- for (const key2 of Object.keys(token))
247369
- if (key2 !== "type" && key2 !== "offset")
247370
- delete token[key2];
247370
+ for (const key3 of Object.keys(token))
247371
+ if (key3 !== "type" && key3 !== "offset")
247372
+ delete token[key3];
247371
247373
  Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
247372
247374
  }
247373
247375
  }
@@ -247416,9 +247418,9 @@ var require_cst_scalar = __commonJS((exports) => {
247416
247418
  default: {
247417
247419
  const indent2 = "indent" in token ? token.indent : -1;
247418
247420
  const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
247419
- for (const key2 of Object.keys(token))
247420
- if (key2 !== "type" && key2 !== "offset")
247421
- delete token[key2];
247421
+ for (const key3 of Object.keys(token))
247422
+ if (key3 !== "type" && key3 !== "offset")
247423
+ delete token[key3];
247422
247424
  Object.assign(token, { type: type4, indent: indent2, source, end });
247423
247425
  }
247424
247426
  }
@@ -247470,12 +247472,12 @@ var require_cst_stringify = __commonJS((exports) => {
247470
247472
  }
247471
247473
  }
247472
247474
  }
247473
- function stringifyItem({ start: start3, key: key2, sep: sep3, value: value4 }) {
247475
+ function stringifyItem({ start: start3, key: key3, sep: sep3, value: value4 }) {
247474
247476
  let res = "";
247475
247477
  for (const st2 of start3)
247476
247478
  res += st2.source;
247477
- if (key2)
247478
- res += stringifyToken(key2);
247479
+ if (key3)
247480
+ res += stringifyToken(key3);
247479
247481
  if (sep3)
247480
247482
  for (const st2 of sep3)
247481
247483
  res += st2.source;
@@ -248771,7 +248773,7 @@ var require_parser2 = __commonJS((exports) => {
248771
248773
  });
248772
248774
  } else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
248773
248775
  const start4 = getFirstKeyStartProps(it2.start);
248774
- const key2 = it2.key;
248776
+ const key3 = it2.key;
248775
248777
  const sep3 = it2.sep;
248776
248778
  sep3.push(this.sourceToken);
248777
248779
  delete it2.key;
@@ -248780,7 +248782,7 @@ var require_parser2 = __commonJS((exports) => {
248780
248782
  type: "block-map",
248781
248783
  offset: this.offset,
248782
248784
  indent: this.indent,
248783
- items: [{ start: start4, key: key2, sep: sep3 }]
248785
+ items: [{ start: start4, key: key3, sep: sep3 }]
248784
248786
  });
248785
248787
  } else if (start3.length > 0) {
248786
248788
  it2.sep = it2.sep.concat(start3, this.sourceToken);
@@ -248824,7 +248826,17 @@ var require_parser2 = __commonJS((exports) => {
248824
248826
  default: {
248825
248827
  const bv = this.startBlockValue(map3);
248826
248828
  if (bv) {
248827
- if (atMapIndent && bv.type !== "block-seq") {
248829
+ if (bv.type === "block-seq") {
248830
+ if (!it2.explicitKey && it2.sep && !includesToken(it2.sep, "newline")) {
248831
+ yield* this.pop({
248832
+ type: "error",
248833
+ offset: this.offset,
248834
+ message: "Unexpected block-seq-ind on same line with key",
248835
+ source: this.source
248836
+ });
248837
+ return;
248838
+ }
248839
+ } else if (atMapIndent) {
248828
248840
  map3.items.push({ start: start3 });
248829
248841
  }
248830
248842
  this.stack.push(bv);
@@ -249103,7 +249115,7 @@ var require_parser2 = __commonJS((exports) => {
249103
249115
  var require_public_api = __commonJS((exports) => {
249104
249116
  var composer = require_composer();
249105
249117
  var Document = require_Document();
249106
- var errors2 = require_errors3();
249118
+ var errors3 = require_errors3();
249107
249119
  var log = require_log();
249108
249120
  var identity2 = require_identity();
249109
249121
  var lineCounter = require_line_counter();
@@ -249120,8 +249132,8 @@ var require_public_api = __commonJS((exports) => {
249120
249132
  const docs = Array.from(composer$1.compose(parser$1.parse(source)));
249121
249133
  if (prettyErrors && lineCounter2)
249122
249134
  for (const doc of docs) {
249123
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
249124
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
249135
+ doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
249136
+ doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
249125
249137
  }
249126
249138
  if (docs.length > 0)
249127
249139
  return docs;
@@ -249136,13 +249148,13 @@ var require_public_api = __commonJS((exports) => {
249136
249148
  if (!doc)
249137
249149
  doc = _doc;
249138
249150
  else if (doc.options.logLevel !== "silent") {
249139
- doc.errors.push(new errors2.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
249151
+ doc.errors.push(new errors3.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
249140
249152
  break;
249141
249153
  }
249142
249154
  }
249143
249155
  if (prettyErrors && lineCounter2) {
249144
- doc.errors.forEach(errors2.prettifyError(source, lineCounter2));
249145
- doc.warnings.forEach(errors2.prettifyError(source, lineCounter2));
249156
+ doc.errors.forEach(errors3.prettifyError(source, lineCounter2));
249157
+ doc.warnings.forEach(errors3.prettifyError(source, lineCounter2));
249146
249158
  }
249147
249159
  return doc;
249148
249160
  }
@@ -259524,7 +259536,7 @@ function pruneCurrentEnv(currentEnv, env2) {
259524
259536
  var package_default = {
259525
259537
  name: "@settlemint/sdk-cli",
259526
259538
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
259527
- version: "2.0.0-main8684737a",
259539
+ version: "2.0.0-main9d615f19",
259528
259540
  type: "module",
259529
259541
  private: false,
259530
259542
  license: "FSL-1.1-MIT",
@@ -259567,13 +259579,13 @@ var package_default = {
259567
259579
  devDependencies: {
259568
259580
  "@commander-js/extra-typings": "11.1.0",
259569
259581
  commander: "11.1.0",
259570
- "@inquirer/confirm": "5.1.8",
259571
- "@inquirer/input": "4.1.8",
259572
- "@inquirer/password": "4.0.11",
259582
+ "@inquirer/confirm": "5.1.9",
259583
+ "@inquirer/input": "4.1.9",
259584
+ "@inquirer/password": "4.0.12",
259573
259585
  "@inquirer/select": "4.1.0",
259574
- "@settlemint/sdk-js": "2.0.0-main8684737a",
259575
- "@settlemint/sdk-utils": "2.0.0-main8684737a",
259576
- "@types/node": "22.13.14",
259586
+ "@settlemint/sdk-js": "2.0.0-main9d615f19",
259587
+ "@settlemint/sdk-utils": "2.0.0-main9d615f19",
259588
+ "@types/node": "22.14.0",
259577
259589
  "@types/semver": "7.7.0",
259578
259590
  "@types/which": "3.0.4",
259579
259591
  "get-tsconfig": "4.10.0",
@@ -259582,7 +259594,7 @@ var package_default = {
259582
259594
  semver: "7.7.1",
259583
259595
  slugify: "1.6.6",
259584
259596
  which: "5.0.0",
259585
- yaml: "2.7.0",
259597
+ yaml: "2.7.1",
259586
259598
  yoctocolors: "2.1.1"
259587
259599
  },
259588
259600
  peerDependencies: {
@@ -259661,10 +259673,7 @@ var {
259661
259673
  } = import__.default;
259662
259674
 
259663
259675
  // ../../node_modules/@inquirer/core/dist/esm/lib/key.js
259664
- var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
259665
- var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
259666
259676
  var isBackspaceKey = (key) => key.name === "backspace";
259667
- var isNumberKey = (key) => "1234567890".includes(key.name);
259668
259677
  var isEnterKey = (key) => key.name === "enter" || key.name === "return";
259669
259678
  // ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
259670
259679
  class AbortPromptError extends Error {
@@ -260198,22 +260207,11 @@ function usePrefix({ status = "idle", theme }) {
260198
260207
  const iconName = status === "loading" ? "idle" : status;
260199
260208
  return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
260200
260209
  }
260201
- // ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
260202
- function useMemo(fn, dependencies) {
260203
- return withPointer((pointer) => {
260204
- const prev = pointer.get();
260205
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
260206
- const value = fn();
260207
- pointer.set({ value, dependencies });
260208
- return value;
260209
- }
260210
- return prev.value;
260211
- });
260212
- }
260213
260210
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
260214
260211
  function useRef(val) {
260215
260212
  return useState({ current: val })[0];
260216
260213
  }
260214
+
260217
260215
  // ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
260218
260216
  function useKeypress(userHandler) {
260219
260217
  const signal = useRef(userHandler);
@@ -260245,95 +260243,6 @@ function readlineWidth() {
260245
260243
  return import_cli_width.default({ defaultWidth: 80, output: readline().output });
260246
260244
  }
260247
260245
 
260248
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
260249
- function split(content, width) {
260250
- return breakLines(content, width).split(`
260251
- `);
260252
- }
260253
- function rotate(count, items) {
260254
- const max = items.length;
260255
- const offset = (count % max + max) % max;
260256
- return [...items.slice(offset), ...items.slice(0, offset)];
260257
- }
260258
- function lines({ items, width, renderItem, active, position: requested, pageSize }) {
260259
- const layouts = items.map((item, index) => ({
260260
- item,
260261
- index,
260262
- isActive: index === active
260263
- }));
260264
- const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
260265
- const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
260266
- const pageBuffer = Array.from({ length: pageSize });
260267
- const activeItem = renderItemAt(requested).slice(0, pageSize);
260268
- const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
260269
- pageBuffer.splice(position, activeItem.length, ...activeItem);
260270
- let bufferPointer = position + activeItem.length;
260271
- let layoutPointer = requested + 1;
260272
- while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
260273
- for (const line of renderItemAt(layoutPointer)) {
260274
- pageBuffer[bufferPointer++] = line;
260275
- if (bufferPointer >= pageSize)
260276
- break;
260277
- }
260278
- layoutPointer++;
260279
- }
260280
- bufferPointer = position - 1;
260281
- layoutPointer = requested - 1;
260282
- while (bufferPointer >= 0 && layoutPointer >= 0) {
260283
- for (const line of renderItemAt(layoutPointer).reverse()) {
260284
- pageBuffer[bufferPointer--] = line;
260285
- if (bufferPointer < 0)
260286
- break;
260287
- }
260288
- layoutPointer--;
260289
- }
260290
- return pageBuffer.filter((line) => typeof line === "string");
260291
- }
260292
-
260293
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
260294
- function finite({ active, pageSize, total }) {
260295
- const middle = Math.floor(pageSize / 2);
260296
- if (total <= pageSize || active < middle)
260297
- return active;
260298
- if (active >= total - middle)
260299
- return active + pageSize - total;
260300
- return middle;
260301
- }
260302
- function infinite({ active, lastActive, total, pageSize, pointer }) {
260303
- if (total <= pageSize)
260304
- return active;
260305
- if (lastActive < active && active - lastActive < pageSize) {
260306
- return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
260307
- }
260308
- return pointer;
260309
- }
260310
-
260311
- // ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
260312
- function usePagination({ items, active, renderItem, pageSize, loop = true }) {
260313
- const state = useRef({ position: 0, lastActive: 0 });
260314
- const position = loop ? infinite({
260315
- active,
260316
- lastActive: state.current.lastActive,
260317
- total: items.length,
260318
- pageSize,
260319
- pointer: state.current.position
260320
- }) : finite({
260321
- active,
260322
- total: items.length,
260323
- pageSize
260324
- });
260325
- state.current.position = position;
260326
- state.current.lastActive = active;
260327
- return lines({
260328
- items,
260329
- width: readlineWidth(),
260330
- renderItem,
260331
- active,
260332
- position,
260333
- pageSize
260334
- }).join(`
260335
- `);
260336
- }
260337
260246
  // ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
260338
260247
  var import_mute_stream = __toESM(require_lib(), 1);
260339
260248
  import * as readline2 from "node:readline";
@@ -260687,7 +260596,7 @@ function createPrompt(view) {
260687
260596
  setImmediate(() => resolve(value));
260688
260597
  });
260689
260598
  if (nextView === undefined) {
260690
- const callerFilename = callSites[1]?.getFileName?.();
260599
+ const callerFilename = callSites[1]?.getFileName();
260691
260600
  throw new Error(`Prompt functions must return a string.
260692
260601
  at ${callerFilename}`);
260693
260602
  }
@@ -260713,20 +260622,6 @@ function createPrompt(view) {
260713
260622
  };
260714
260623
  return prompt;
260715
260624
  }
260716
- // ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
260717
- var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
260718
- class Separator {
260719
- separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
260720
- type = "separator";
260721
- constructor(separator) {
260722
- if (separator) {
260723
- this.separator = separator;
260724
- }
260725
- }
260726
- static isSeparator(choice) {
260727
- return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
260728
- }
260729
- }
260730
260625
  // ../utils/dist/terminal.mjs
260731
260626
  import { spawn } from "node:child_process";
260732
260627
  var import_console_table_printer2 = __toESM(require_dist2(), 1);
@@ -265667,14 +265562,585 @@ async function subgraphNamePrompt({
265667
265562
  return sanitizeName(subgraphName);
265668
265563
  }
265669
265564
 
265670
- // ../../node_modules/@inquirer/select/dist/esm/index.js
265671
- var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
265565
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
265566
+ var isUpKey = (key2) => key2.name === "up" || key2.name === "k" || key2.ctrl && key2.name === "p";
265567
+ var isDownKey = (key2) => key2.name === "down" || key2.name === "j" || key2.ctrl && key2.name === "n";
265568
+ var isBackspaceKey2 = (key2) => key2.name === "backspace";
265569
+ var isNumberKey = (key2) => "1234567890".includes(key2.name);
265570
+ var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
265571
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
265572
+ class AbortPromptError2 extends Error {
265573
+ name = "AbortPromptError";
265574
+ message = "Prompt was aborted";
265575
+ constructor(options) {
265576
+ super();
265577
+ this.cause = options?.cause;
265578
+ }
265579
+ }
265580
+
265581
+ class CancelPromptError2 extends Error {
265582
+ name = "CancelPromptError";
265583
+ message = "Prompt was canceled";
265584
+ }
265585
+
265586
+ class ExitPromptError2 extends Error {
265587
+ name = "ExitPromptError";
265588
+ }
265589
+
265590
+ class HookError2 extends Error {
265591
+ name = "HookError";
265592
+ }
265593
+
265594
+ class ValidationError2 extends Error {
265595
+ name = "ValidationError";
265596
+ }
265597
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265598
+ import { AsyncResource as AsyncResource5 } from "node:async_hooks";
265599
+
265600
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
265601
+ import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
265602
+ var hookStorage2 = new AsyncLocalStorage2;
265603
+ function createStore2(rl) {
265604
+ const store = {
265605
+ rl,
265606
+ hooks: [],
265607
+ hooksCleanup: [],
265608
+ hooksEffect: [],
265609
+ index: 0,
265610
+ handleChange() {}
265611
+ };
265612
+ return store;
265613
+ }
265614
+ function withHooks2(rl, cb) {
265615
+ const store = createStore2(rl);
265616
+ return hookStorage2.run(store, () => {
265617
+ function cycle(render) {
265618
+ store.handleChange = () => {
265619
+ store.index = 0;
265620
+ render();
265621
+ };
265622
+ store.handleChange();
265623
+ }
265624
+ return cb(cycle);
265625
+ });
265626
+ }
265627
+ function getStore2() {
265628
+ const store = hookStorage2.getStore();
265629
+ if (!store) {
265630
+ throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
265631
+ }
265632
+ return store;
265633
+ }
265634
+ function readline3() {
265635
+ return getStore2().rl;
265636
+ }
265637
+ function withUpdates2(fn) {
265638
+ const wrapped = (...args) => {
265639
+ const store = getStore2();
265640
+ let shouldUpdate = false;
265641
+ const oldHandleChange = store.handleChange;
265642
+ store.handleChange = () => {
265643
+ shouldUpdate = true;
265644
+ };
265645
+ const returnValue = fn(...args);
265646
+ if (shouldUpdate) {
265647
+ oldHandleChange();
265648
+ }
265649
+ store.handleChange = oldHandleChange;
265650
+ return returnValue;
265651
+ };
265652
+ return AsyncResource4.bind(wrapped);
265653
+ }
265654
+ function withPointer2(cb) {
265655
+ const store = getStore2();
265656
+ const { index } = store;
265657
+ const pointer = {
265658
+ get() {
265659
+ return store.hooks[index];
265660
+ },
265661
+ set(value4) {
265662
+ store.hooks[index] = value4;
265663
+ },
265664
+ initialized: index in store.hooks
265665
+ };
265666
+ const returnValue = cb(pointer);
265667
+ store.index++;
265668
+ return returnValue;
265669
+ }
265670
+ function handleChange2() {
265671
+ getStore2().handleChange();
265672
+ }
265673
+ var effectScheduler2 = {
265674
+ queue(cb) {
265675
+ const store = getStore2();
265676
+ const { index } = store;
265677
+ store.hooksEffect.push(() => {
265678
+ store.hooksCleanup[index]?.();
265679
+ const cleanFn = cb(readline3());
265680
+ if (cleanFn != null && typeof cleanFn !== "function") {
265681
+ throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
265682
+ }
265683
+ store.hooksCleanup[index] = cleanFn;
265684
+ });
265685
+ },
265686
+ run() {
265687
+ const store = getStore2();
265688
+ withUpdates2(() => {
265689
+ store.hooksEffect.forEach((effect) => {
265690
+ effect();
265691
+ });
265692
+ store.hooksEffect.length = 0;
265693
+ })();
265694
+ },
265695
+ clearAll() {
265696
+ const store = getStore2();
265697
+ store.hooksCleanup.forEach((cleanFn) => {
265698
+ cleanFn?.();
265699
+ });
265700
+ store.hooksEffect.length = 0;
265701
+ store.hooksCleanup.length = 0;
265702
+ }
265703
+ };
265704
+
265705
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
265706
+ function useState2(defaultValue) {
265707
+ return withPointer2((pointer) => {
265708
+ const setFn = (newValue) => {
265709
+ if (pointer.get() !== newValue) {
265710
+ pointer.set(newValue);
265711
+ handleChange2();
265712
+ }
265713
+ };
265714
+ if (pointer.initialized) {
265715
+ return [pointer.get(), setFn];
265716
+ }
265717
+ const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
265718
+ pointer.set(value4);
265719
+ return [value4, setFn];
265720
+ });
265721
+ }
265722
+
265723
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
265724
+ function useEffect2(cb, depArray) {
265725
+ withPointer2((pointer) => {
265726
+ const oldDeps = pointer.get();
265727
+ const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
265728
+ if (hasChanged) {
265729
+ effectScheduler2.queue(cb);
265730
+ }
265731
+ pointer.set(depArray);
265732
+ });
265733
+ }
265734
+
265735
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
265736
+ var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
265737
+ var defaultTheme2 = {
265738
+ prefix: {
265739
+ idle: import_yoctocolors_cjs2.default.blue("?"),
265740
+ done: import_yoctocolors_cjs2.default.green(esm_default.tick)
265741
+ },
265742
+ spinner: {
265743
+ interval: 80,
265744
+ frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
265745
+ },
265746
+ style: {
265747
+ answer: import_yoctocolors_cjs2.default.cyan,
265748
+ message: import_yoctocolors_cjs2.default.bold,
265749
+ error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
265750
+ defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
265751
+ help: import_yoctocolors_cjs2.default.dim,
265752
+ highlight: import_yoctocolors_cjs2.default.cyan,
265753
+ key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
265754
+ }
265755
+ };
265756
+
265757
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
265758
+ function isPlainObject3(value4) {
265759
+ if (typeof value4 !== "object" || value4 === null)
265760
+ return false;
265761
+ let proto = value4;
265762
+ while (Object.getPrototypeOf(proto) !== null) {
265763
+ proto = Object.getPrototypeOf(proto);
265764
+ }
265765
+ return Object.getPrototypeOf(value4) === proto;
265766
+ }
265767
+ function deepMerge3(...objects) {
265768
+ const output = {};
265769
+ for (const obj of objects) {
265770
+ for (const [key2, value4] of Object.entries(obj)) {
265771
+ const prevValue = output[key2];
265772
+ output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
265773
+ }
265774
+ }
265775
+ return output;
265776
+ }
265777
+ function makeTheme2(...themes) {
265778
+ const themesToMerge = [
265779
+ defaultTheme2,
265780
+ ...themes.filter((theme) => theme != null)
265781
+ ];
265782
+ return deepMerge3(...themesToMerge);
265783
+ }
265784
+
265785
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
265786
+ function usePrefix2({ status = "idle", theme }) {
265787
+ const [showLoader, setShowLoader] = useState2(false);
265788
+ const [tick, setTick] = useState2(0);
265789
+ const { prefix, spinner: spinner2 } = makeTheme2(theme);
265790
+ useEffect2(() => {
265791
+ if (status === "loading") {
265792
+ let tickInterval;
265793
+ let inc = -1;
265794
+ const delayTimeout = setTimeout(AsyncResource5.bind(() => {
265795
+ setShowLoader(true);
265796
+ tickInterval = setInterval(AsyncResource5.bind(() => {
265797
+ inc = inc + 1;
265798
+ setTick(inc % spinner2.frames.length);
265799
+ }), spinner2.interval);
265800
+ }), 300);
265801
+ return () => {
265802
+ clearTimeout(delayTimeout);
265803
+ clearInterval(tickInterval);
265804
+ };
265805
+ } else {
265806
+ setShowLoader(false);
265807
+ }
265808
+ }, [status]);
265809
+ if (showLoader) {
265810
+ return spinner2.frames[tick];
265811
+ }
265812
+ const iconName = status === "loading" ? "idle" : status;
265813
+ return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
265814
+ }
265815
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
265816
+ function useMemo(fn, dependencies) {
265817
+ return withPointer2((pointer) => {
265818
+ const prev = pointer.get();
265819
+ if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
265820
+ const value4 = fn();
265821
+ pointer.set({ value: value4, dependencies });
265822
+ return value4;
265823
+ }
265824
+ return prev.value;
265825
+ });
265826
+ }
265827
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
265828
+ function useRef2(val) {
265829
+ return useState2({ current: val })[0];
265830
+ }
265831
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
265832
+ function useKeypress2(userHandler) {
265833
+ const signal = useRef2(userHandler);
265834
+ signal.current = userHandler;
265835
+ useEffect2((rl) => {
265836
+ let ignore = false;
265837
+ const handler = withUpdates2((_input, event) => {
265838
+ if (ignore)
265839
+ return;
265840
+ signal.current(event, rl);
265841
+ });
265842
+ rl.input.on("keypress", handler);
265843
+ return () => {
265844
+ ignore = true;
265845
+ rl.input.removeListener("keypress", handler);
265846
+ };
265847
+ }, []);
265848
+ }
265849
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
265850
+ var import_cli_width2 = __toESM(require_cli_width(), 1);
265851
+ var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
265852
+ function breakLines2(content, width) {
265853
+ return content.split(`
265854
+ `).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
265855
+ `).map((str) => str.trimEnd())).join(`
265856
+ `);
265857
+ }
265858
+ function readlineWidth2() {
265859
+ return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
265860
+ }
265861
+
265862
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
265863
+ function split2(content, width) {
265864
+ return breakLines2(content, width).split(`
265865
+ `);
265866
+ }
265867
+ function rotate(count, items) {
265868
+ const max = items.length;
265869
+ const offset = (count % max + max) % max;
265870
+ return [...items.slice(offset), ...items.slice(0, offset)];
265871
+ }
265872
+ function lines({ items, width, renderItem, active, position: requested, pageSize }) {
265873
+ const layouts = items.map((item, index) => ({
265874
+ item,
265875
+ index,
265876
+ isActive: index === active
265877
+ }));
265878
+ const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
265879
+ const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split2(renderItem(layoutsInPage[index]), width);
265880
+ const pageBuffer = Array.from({ length: pageSize });
265881
+ const activeItem = renderItemAt(requested).slice(0, pageSize);
265882
+ const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
265883
+ pageBuffer.splice(position, activeItem.length, ...activeItem);
265884
+ let bufferPointer = position + activeItem.length;
265885
+ let layoutPointer = requested + 1;
265886
+ while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
265887
+ for (const line of renderItemAt(layoutPointer)) {
265888
+ pageBuffer[bufferPointer++] = line;
265889
+ if (bufferPointer >= pageSize)
265890
+ break;
265891
+ }
265892
+ layoutPointer++;
265893
+ }
265894
+ bufferPointer = position - 1;
265895
+ layoutPointer = requested - 1;
265896
+ while (bufferPointer >= 0 && layoutPointer >= 0) {
265897
+ for (const line of renderItemAt(layoutPointer).reverse()) {
265898
+ pageBuffer[bufferPointer--] = line;
265899
+ if (bufferPointer < 0)
265900
+ break;
265901
+ }
265902
+ layoutPointer--;
265903
+ }
265904
+ return pageBuffer.filter((line) => typeof line === "string");
265905
+ }
265906
+
265907
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
265908
+ function finite({ active, pageSize, total }) {
265909
+ const middle = Math.floor(pageSize / 2);
265910
+ if (total <= pageSize || active < middle)
265911
+ return active;
265912
+ if (active >= total - middle)
265913
+ return active + pageSize - total;
265914
+ return middle;
265915
+ }
265916
+ function infinite({ active, lastActive, total, pageSize, pointer }) {
265917
+ if (total <= pageSize)
265918
+ return active;
265919
+ if (lastActive < active && active - lastActive < pageSize) {
265920
+ return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
265921
+ }
265922
+ return pointer;
265923
+ }
265924
+
265925
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
265926
+ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
265927
+ const state = useRef2({ position: 0, lastActive: 0 });
265928
+ const position = loop ? infinite({
265929
+ active,
265930
+ lastActive: state.current.lastActive,
265931
+ total: items.length,
265932
+ pageSize,
265933
+ pointer: state.current.position
265934
+ }) : finite({
265935
+ active,
265936
+ total: items.length,
265937
+ pageSize
265938
+ });
265939
+ state.current.position = position;
265940
+ state.current.lastActive = active;
265941
+ return lines({
265942
+ items,
265943
+ width: readlineWidth2(),
265944
+ renderItem,
265945
+ active,
265946
+ position,
265947
+ pageSize
265948
+ }).join(`
265949
+ `);
265950
+ }
265951
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
265952
+ var import_mute_stream2 = __toESM(require_lib(), 1);
265953
+ import * as readline4 from "node:readline";
265954
+ import { AsyncResource as AsyncResource6 } from "node:async_hooks";
265955
+
265956
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
265672
265957
  var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
265958
+ import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
265959
+ var height2 = (content) => content.split(`
265960
+ `).length;
265961
+ var lastLine2 = (content) => content.split(`
265962
+ `).pop() ?? "";
265963
+ function cursorDown2(n6) {
265964
+ return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
265965
+ }
265966
+
265967
+ class ScreenManager2 {
265968
+ height = 0;
265969
+ extraLinesUnderPrompt = 0;
265970
+ cursorPos;
265971
+ rl;
265972
+ constructor(rl) {
265973
+ this.rl = rl;
265974
+ this.cursorPos = rl.getCursorPos();
265975
+ }
265976
+ write(content) {
265977
+ this.rl.output.unmute();
265978
+ this.rl.output.write(content);
265979
+ this.rl.output.mute();
265980
+ }
265981
+ render(content, bottomContent = "") {
265982
+ const promptLine = lastLine2(content);
265983
+ const rawPromptLine = stripVTControlCharacters3(promptLine);
265984
+ let prompt = rawPromptLine;
265985
+ if (this.rl.line.length > 0) {
265986
+ prompt = prompt.slice(0, -this.rl.line.length);
265987
+ }
265988
+ this.rl.setPrompt(prompt);
265989
+ this.cursorPos = this.rl.getCursorPos();
265990
+ const width = readlineWidth2();
265991
+ content = breakLines2(content, width);
265992
+ bottomContent = breakLines2(bottomContent, width);
265993
+ if (rawPromptLine.length % width === 0) {
265994
+ content += `
265995
+ `;
265996
+ }
265997
+ let output = content + (bottomContent ? `
265998
+ ` + bottomContent : "");
265999
+ const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
266000
+ const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
266001
+ if (bottomContentHeight > 0)
266002
+ output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
266003
+ output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
266004
+ this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
266005
+ this.extraLinesUnderPrompt = bottomContentHeight;
266006
+ this.height = height2(output);
266007
+ }
266008
+ checkCursorPos() {
266009
+ const cursorPos = this.rl.getCursorPos();
266010
+ if (cursorPos.cols !== this.cursorPos.cols) {
266011
+ this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
266012
+ this.cursorPos = cursorPos;
266013
+ }
266014
+ }
266015
+ done({ clearContent }) {
266016
+ this.rl.setPrompt("");
266017
+ let output = cursorDown2(this.extraLinesUnderPrompt);
266018
+ output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
266019
+ `;
266020
+ output += import_ansi_escapes2.default.cursorShow;
266021
+ this.write(output);
266022
+ this.rl.close();
266023
+ }
266024
+ }
266025
+
266026
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
266027
+ class PromisePolyfill2 extends Promise {
266028
+ static withResolver() {
266029
+ let resolve5;
266030
+ let reject;
266031
+ const promise = new Promise((res, rej) => {
266032
+ resolve5 = res;
266033
+ reject = rej;
266034
+ });
266035
+ return { promise, resolve: resolve5, reject };
266036
+ }
266037
+ }
266038
+
266039
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
266040
+ function getCallSites2() {
266041
+ const _prepareStackTrace = Error.prepareStackTrace;
266042
+ let result = [];
266043
+ try {
266044
+ Error.prepareStackTrace = (_5, callSites) => {
266045
+ const callSitesWithoutCurrent = callSites.slice(1);
266046
+ result = callSitesWithoutCurrent;
266047
+ return callSitesWithoutCurrent;
266048
+ };
266049
+ new Error().stack;
266050
+ } catch {
266051
+ return result;
266052
+ }
266053
+ Error.prepareStackTrace = _prepareStackTrace;
266054
+ return result;
266055
+ }
266056
+ function createPrompt2(view) {
266057
+ const callSites = getCallSites2();
266058
+ const prompt = (config3, context = {}) => {
266059
+ const { input = process.stdin, signal } = context;
266060
+ const cleanups = new Set;
266061
+ const output = new import_mute_stream2.default;
266062
+ output.pipe(context.output ?? process.stdout);
266063
+ const rl = readline4.createInterface({
266064
+ terminal: true,
266065
+ input,
266066
+ output
266067
+ });
266068
+ const screen = new ScreenManager2(rl);
266069
+ const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
266070
+ const cancel3 = () => reject(new CancelPromptError2);
266071
+ if (signal) {
266072
+ const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
266073
+ if (signal.aborted) {
266074
+ abort();
266075
+ return Object.assign(promise, { cancel: cancel3 });
266076
+ }
266077
+ signal.addEventListener("abort", abort);
266078
+ cleanups.add(() => signal.removeEventListener("abort", abort));
266079
+ }
266080
+ cleanups.add(onExit((code2, signal2) => {
266081
+ reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
266082
+ }));
266083
+ const checkCursorPos = () => screen.checkCursorPos();
266084
+ rl.input.on("keypress", checkCursorPos);
266085
+ cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
266086
+ return withHooks2(rl, (cycle) => {
266087
+ const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
266088
+ rl.on("close", hooksCleanup);
266089
+ cleanups.add(() => rl.removeListener("close", hooksCleanup));
266090
+ cycle(() => {
266091
+ try {
266092
+ const nextView = view(config3, (value4) => {
266093
+ setImmediate(() => resolve5(value4));
266094
+ });
266095
+ if (nextView === undefined) {
266096
+ const callerFilename = callSites[1]?.getFileName?.();
266097
+ throw new Error(`Prompt functions must return a string.
266098
+ at ${callerFilename}`);
266099
+ }
266100
+ const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
266101
+ screen.render(content, bottomContent);
266102
+ effectScheduler2.run();
266103
+ } catch (error5) {
266104
+ reject(error5);
266105
+ }
266106
+ });
266107
+ return Object.assign(promise.then((answer) => {
266108
+ effectScheduler2.clearAll();
266109
+ return answer;
266110
+ }, (error5) => {
266111
+ effectScheduler2.clearAll();
266112
+ throw error5;
266113
+ }).finally(() => {
266114
+ cleanups.forEach((cleanup) => cleanup());
266115
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
266116
+ output.end();
266117
+ }).then(() => promise), { cancel: cancel3 });
266118
+ });
266119
+ };
266120
+ return prompt;
266121
+ }
266122
+ // ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
266123
+ var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
266124
+ class Separator {
266125
+ separator = import_yoctocolors_cjs3.default.dim(Array.from({ length: 15 }).join(esm_default.line));
266126
+ type = "separator";
266127
+ constructor(separator) {
266128
+ if (separator) {
266129
+ this.separator = separator;
266130
+ }
266131
+ }
266132
+ static isSeparator(choice) {
266133
+ return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
266134
+ }
266135
+ }
266136
+ // ../../node_modules/@inquirer/select/dist/esm/index.js
266137
+ var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
266138
+ var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
265673
266139
  var selectTheme = {
265674
266140
  icon: { cursor: esm_default.pointer },
265675
266141
  style: {
265676
- disabled: (text2) => import_yoctocolors_cjs3.default.dim(`- ${text2}`),
265677
- description: (text2) => import_yoctocolors_cjs3.default.cyan(text2)
266142
+ disabled: (text2) => import_yoctocolors_cjs4.default.dim(`- ${text2}`),
266143
+ description: (text2) => import_yoctocolors_cjs4.default.cyan(text2)
265678
266144
  },
265679
266145
  helpMode: "auto",
265680
266146
  indexMode: "hidden"
@@ -265704,19 +266170,19 @@ function normalizeChoices(choices) {
265704
266170
  };
265705
266171
  });
265706
266172
  }
265707
- var esm_default3 = createPrompt((config3, done) => {
266173
+ var esm_default3 = createPrompt2((config3, done) => {
265708
266174
  const { loop = true, pageSize = 7 } = config3;
265709
- const firstRender = useRef(true);
265710
- const theme = makeTheme(selectTheme, config3.theme);
265711
- const [status, setStatus] = useState("idle");
265712
- const prefix = usePrefix({ status, theme });
265713
- const searchTimeoutRef = useRef();
266175
+ const firstRender = useRef2(true);
266176
+ const theme = makeTheme2(selectTheme, config3.theme);
266177
+ const [status, setStatus] = useState2("idle");
266178
+ const prefix = usePrefix2({ status, theme });
266179
+ const searchTimeoutRef = useRef2();
265714
266180
  const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
265715
266181
  const bounds = useMemo(() => {
265716
266182
  const first = items.findIndex(isSelectable);
265717
266183
  const last = items.findLastIndex(isSelectable);
265718
266184
  if (first === -1) {
265719
- throw new ValidationError("[select prompt] No selectable choices. All choices are disabled.");
266185
+ throw new ValidationError2("[select prompt] No selectable choices. All choices are disabled.");
265720
266186
  }
265721
266187
  return { first, last };
265722
266188
  }, [items]);
@@ -265725,24 +266191,24 @@ var esm_default3 = createPrompt((config3, done) => {
265725
266191
  return -1;
265726
266192
  return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
265727
266193
  }, [config3.default, items]);
265728
- const [active, setActive] = useState(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
266194
+ const [active, setActive] = useState2(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
265729
266195
  const selectedChoice = items[active];
265730
- useKeypress((key2, rl) => {
266196
+ useKeypress2((key3, rl) => {
265731
266197
  clearTimeout(searchTimeoutRef.current);
265732
- if (isEnterKey(key2)) {
266198
+ if (isEnterKey2(key3)) {
265733
266199
  setStatus("done");
265734
266200
  done(selectedChoice.value);
265735
- } else if (isUpKey(key2) || isDownKey(key2)) {
266201
+ } else if (isUpKey(key3) || isDownKey(key3)) {
265736
266202
  rl.clearLine(0);
265737
- if (loop || isUpKey(key2) && active !== bounds.first || isDownKey(key2) && active !== bounds.last) {
265738
- const offset = isUpKey(key2) ? -1 : 1;
266203
+ if (loop || isUpKey(key3) && active !== bounds.first || isDownKey(key3) && active !== bounds.last) {
266204
+ const offset = isUpKey(key3) ? -1 : 1;
265739
266205
  let next = active;
265740
266206
  do {
265741
266207
  next = (next + offset + items.length) % items.length;
265742
266208
  } while (!isSelectable(items[next]));
265743
266209
  setActive(next);
265744
266210
  }
265745
- } else if (isNumberKey(key2) && !Number.isNaN(Number(rl.line))) {
266211
+ } else if (isNumberKey(key3) && !Number.isNaN(Number(rl.line))) {
265746
266212
  const position = Number(rl.line) - 1;
265747
266213
  const item = items[position];
265748
266214
  if (item != null && isSelectable(item)) {
@@ -265751,7 +266217,7 @@ var esm_default3 = createPrompt((config3, done) => {
265751
266217
  searchTimeoutRef.current = setTimeout(() => {
265752
266218
  rl.clearLine(0);
265753
266219
  }, 700);
265754
- } else if (isBackspaceKey(key2)) {
266220
+ } else if (isBackspaceKey2(key3)) {
265755
266221
  rl.clearLine(0);
265756
266222
  } else {
265757
266223
  const searchTerm = rl.line.toLowerCase();
@@ -265768,7 +266234,7 @@ var esm_default3 = createPrompt((config3, done) => {
265768
266234
  }, 700);
265769
266235
  }
265770
266236
  });
265771
- useEffect(() => () => {
266237
+ useEffect2(() => () => {
265772
266238
  clearTimeout(searchTimeoutRef.current);
265773
266239
  }, []);
265774
266240
  const message = theme.style.message(config3.message, status);
@@ -265808,7 +266274,7 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
265808
266274
  const choiceDescription = selectedChoice.description ? `
265809
266275
  ${theme.style.description(selectedChoice.description)}` : ``;
265810
266276
  return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
265811
- ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursorHide}`;
266277
+ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes3.default.cursorHide}`;
265812
266278
  });
265813
266279
 
265814
266280
  // src/prompts/smart-contract-set/subgraph.prompt.ts
@@ -266204,13 +266670,13 @@ var esm_default4 = createPrompt((config3, done) => {
266204
266670
  const [value4, setValue] = useState("");
266205
266671
  const theme = makeTheme(config3.theme);
266206
266672
  const prefix = usePrefix({ status, theme });
266207
- useKeypress((key2, rl) => {
266208
- if (isEnterKey(key2)) {
266673
+ useKeypress((key3, rl) => {
266674
+ if (isEnterKey(key3)) {
266209
266675
  const answer = getBooleanValue(value4, config3.default);
266210
266676
  setValue(transformer(answer));
266211
266677
  setStatus("done");
266212
266678
  done(answer);
266213
- } else if (key2.name === "tab") {
266679
+ } else if (key3.name === "tab") {
266214
266680
  const answer = boolToString(!getBooleanValue(value4, config3.default));
266215
266681
  rl.clearLine(0);
266216
266682
  rl.write(answer);
@@ -266231,7 +266697,7 @@ var esm_default4 = createPrompt((config3, done) => {
266231
266697
  });
266232
266698
 
266233
266699
  // ../../node_modules/@inquirer/password/dist/esm/index.js
266234
- var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
266700
+ var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
266235
266701
  var esm_default5 = createPrompt((config3, done) => {
266236
266702
  const { validate: validate3 = () => true } = config3;
266237
266703
  const theme = makeTheme(config3.theme);
@@ -266239,11 +266705,11 @@ var esm_default5 = createPrompt((config3, done) => {
266239
266705
  const [errorMsg, setError] = useState();
266240
266706
  const [value4, setValue] = useState("");
266241
266707
  const prefix = usePrefix({ status, theme });
266242
- useKeypress(async (key2, rl) => {
266708
+ useKeypress(async (key3, rl) => {
266243
266709
  if (status !== "idle") {
266244
266710
  return;
266245
266711
  }
266246
- if (isEnterKey(key2)) {
266712
+ if (isEnterKey(key3)) {
266247
266713
  const answer = value4;
266248
266714
  setStatus("loading");
266249
266715
  const isValid2 = await validate3(answer);
@@ -266268,7 +266734,7 @@ var esm_default5 = createPrompt((config3, done) => {
266268
266734
  const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
266269
266735
  formattedValue = maskChar.repeat(value4.length);
266270
266736
  } else if (status !== "done") {
266271
- helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes3.default.cursorHide}`;
266737
+ helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes4.default.cursorHide}`;
266272
266738
  }
266273
266739
  if (status === "done") {
266274
266740
  formattedValue = theme.style.answer(formattedValue);
@@ -267359,7 +267825,7 @@ var basename2 = function(p6, extension) {
267359
267825
  return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
267360
267826
  };
267361
267827
  // ../../node_modules/defu/dist/defu.mjs
267362
- function isPlainObject3(value4) {
267828
+ function isPlainObject4(value4) {
267363
267829
  if (value4 === null || typeof value4 !== "object") {
267364
267830
  return false;
267365
267831
  }
@@ -267376,27 +267842,27 @@ function isPlainObject3(value4) {
267376
267842
  return true;
267377
267843
  }
267378
267844
  function _defu(baseObject, defaults2, namespace = ".", merger) {
267379
- if (!isPlainObject3(defaults2)) {
267845
+ if (!isPlainObject4(defaults2)) {
267380
267846
  return _defu(baseObject, {}, namespace, merger);
267381
267847
  }
267382
267848
  const object = Object.assign({}, defaults2);
267383
- for (const key2 in baseObject) {
267384
- if (key2 === "__proto__" || key2 === "constructor") {
267849
+ for (const key3 in baseObject) {
267850
+ if (key3 === "__proto__" || key3 === "constructor") {
267385
267851
  continue;
267386
267852
  }
267387
- const value4 = baseObject[key2];
267853
+ const value4 = baseObject[key3];
267388
267854
  if (value4 === null || value4 === undefined) {
267389
267855
  continue;
267390
267856
  }
267391
- if (merger && merger(object, key2, value4, namespace)) {
267857
+ if (merger && merger(object, key3, value4, namespace)) {
267392
267858
  continue;
267393
267859
  }
267394
- if (Array.isArray(value4) && Array.isArray(object[key2])) {
267395
- object[key2] = [...value4, ...object[key2]];
267396
- } else if (isPlainObject3(value4) && isPlainObject3(object[key2])) {
267397
- object[key2] = _defu(value4, object[key2], (namespace ? `${namespace}.` : "") + key2.toString(), merger);
267860
+ if (Array.isArray(value4) && Array.isArray(object[key3])) {
267861
+ object[key3] = [...value4, ...object[key3]];
267862
+ } else if (isPlainObject4(value4) && isPlainObject4(object[key3])) {
267863
+ object[key3] = _defu(value4, object[key3], (namespace ? `${namespace}.` : "") + key3.toString(), merger);
267398
267864
  } else {
267399
- object[key2] = value4;
267865
+ object[key3] = value4;
267400
267866
  }
267401
267867
  }
267402
267868
  return object;
@@ -267405,15 +267871,15 @@ function createDefu(merger) {
267405
267871
  return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
267406
267872
  }
267407
267873
  var defu = createDefu();
267408
- var defuFn = createDefu((object, key2, currentValue) => {
267409
- if (object[key2] !== undefined && typeof currentValue === "function") {
267410
- object[key2] = currentValue(object[key2]);
267874
+ var defuFn = createDefu((object, key3, currentValue) => {
267875
+ if (object[key3] !== undefined && typeof currentValue === "function") {
267876
+ object[key3] = currentValue(object[key3]);
267411
267877
  return true;
267412
267878
  }
267413
267879
  });
267414
- var defuArrayFn = createDefu((object, key2, currentValue) => {
267415
- if (Array.isArray(object[key2]) && typeof currentValue === "function") {
267416
- object[key2] = currentValue(object[key2]);
267880
+ var defuArrayFn = createDefu((object, key3, currentValue) => {
267881
+ if (Array.isArray(object[key3]) && typeof currentValue === "function") {
267882
+ object[key3] = currentValue(object[key3]);
267417
267883
  return true;
267418
267884
  }
267419
267885
  });
@@ -270110,11 +270576,11 @@ function cacheDirectory() {
270110
270576
  }
270111
270577
  function normalizeHeaders(headers = {}) {
270112
270578
  const normalized = {};
270113
- for (const [key2, value4] of Object.entries(headers)) {
270579
+ for (const [key3, value4] of Object.entries(headers)) {
270114
270580
  if (!value4) {
270115
270581
  continue;
270116
270582
  }
270117
- normalized[key2.toLowerCase()] = value4;
270583
+ normalized[key3.toLowerCase()] = value4;
270118
270584
  }
270119
270585
  return normalized;
270120
270586
  }
@@ -272477,7 +272943,7 @@ function jsonOutput(data) {
272477
272943
  var composer = require_composer();
272478
272944
  var Document = require_Document();
272479
272945
  var Schema = require_Schema();
272480
- var errors2 = require_errors3();
272946
+ var errors3 = require_errors3();
272481
272947
  var Alias = require_Alias();
272482
272948
  var identity2 = require_identity();
272483
272949
  var Pair = require_Pair();
@@ -272493,9 +272959,9 @@ var visit2 = require_visit();
272493
272959
  var $Composer = composer.Composer;
272494
272960
  var $Document = Document.Document;
272495
272961
  var $Schema = Schema.Schema;
272496
- var $YAMLError = errors2.YAMLError;
272497
- var $YAMLParseError = errors2.YAMLParseError;
272498
- var $YAMLWarning = errors2.YAMLWarning;
272962
+ var $YAMLError = errors3.YAMLError;
272963
+ var $YAMLParseError = errors3.YAMLParseError;
272964
+ var $YAMLWarning = errors3.YAMLWarning;
272499
272965
  var $Alias = Alias.Alias;
272500
272966
  var $isAlias = identity2.isAlias;
272501
272967
  var $isCollection = identity2.isCollection;
@@ -272843,7 +273309,7 @@ async function getServicesAndMapResults({
272843
273309
  const application = await settlemint.application.read(applicationUniqueName);
272844
273310
  const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
272845
273311
  const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
272846
- const [_6, labels] = Object.entries(LABELS_MAP).find(([key2, value4]) => value4.command === serviceType) ?? [
273312
+ const [_6, labels] = Object.entries(LABELS_MAP).find(([key3, value4]) => value4.command === serviceType) ?? [
272847
273313
  null,
272848
273314
  { plural: serviceType }
272849
273315
  ];
@@ -273071,11 +273537,11 @@ function createCommand4() {
273071
273537
 
273072
273538
  // src/utils/commands/passthrough-options.ts
273073
273539
  function mapPassthroughOptions(options, command) {
273074
- const optionArgs = Object.entries(options).map(([key2, value4]) => {
273540
+ const optionArgs = Object.entries(options).map(([key3, value4]) => {
273075
273541
  if (value4 === true) {
273076
- return `--${key2}`;
273542
+ return `--${key3}`;
273077
273543
  }
273078
- return `--${key2}=${value4}`;
273544
+ return `--${key3}=${value4}`;
273079
273545
  });
273080
273546
  return [...optionArgs, ...command.args];
273081
273547
  }
@@ -274090,4 +274556,4 @@ async function sdkCliCommand(argv = process.argv) {
274090
274556
  // src/cli.ts
274091
274557
  sdkCliCommand();
274092
274558
 
274093
- //# debugId=7C71317747372CD264756E2164756E21
274559
+ //# debugId=E0BF71A2FEB8880264756E2164756E21