@settlemint/sdk-cli 1.2.2-prc87d9b99 → 1.2.2-prd7c032b8
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.
- package/dist/cli.js +1377 -470
- package/dist/cli.js.map +37 -9
- package/package.json +6 -6
package/dist/cli.js
CHANGED
@@ -10957,7 +10957,7 @@ var require_brace_expansion = __commonJS((exports, module) => {
|
|
10957
10957
|
}
|
10958
10958
|
});
|
10959
10959
|
|
10960
|
-
// ../../node_modules/commander/lib/error.js
|
10960
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/error.js
|
10961
10961
|
var require_error = __commonJS((exports) => {
|
10962
10962
|
class CommanderError extends Error {
|
10963
10963
|
constructor(exitCode, code, message) {
|
@@ -10981,7 +10981,7 @@ var require_error = __commonJS((exports) => {
|
|
10981
10981
|
exports.InvalidArgumentError = InvalidArgumentError;
|
10982
10982
|
});
|
10983
10983
|
|
10984
|
-
// ../../node_modules/commander/lib/argument.js
|
10984
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/argument.js
|
10985
10985
|
var require_argument = __commonJS((exports) => {
|
10986
10986
|
var { InvalidArgumentError } = require_error();
|
10987
10987
|
|
@@ -11060,7 +11060,7 @@ var require_argument = __commonJS((exports) => {
|
|
11060
11060
|
exports.humanReadableArgName = humanReadableArgName;
|
11061
11061
|
});
|
11062
11062
|
|
11063
|
-
// ../../node_modules/commander/lib/help.js
|
11063
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/help.js
|
11064
11064
|
var require_help = __commonJS((exports) => {
|
11065
11065
|
var { humanReadableArgName } = require_argument();
|
11066
11066
|
|
@@ -11307,7 +11307,7 @@ var require_help = __commonJS((exports) => {
|
|
11307
11307
|
exports.Help = Help;
|
11308
11308
|
});
|
11309
11309
|
|
11310
|
-
// ../../node_modules/commander/lib/option.js
|
11310
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/option.js
|
11311
11311
|
var require_option = __commonJS((exports) => {
|
11312
11312
|
var { InvalidArgumentError } = require_error();
|
11313
11313
|
|
@@ -11459,7 +11459,7 @@ var require_option = __commonJS((exports) => {
|
|
11459
11459
|
exports.DualOptions = DualOptions;
|
11460
11460
|
});
|
11461
11461
|
|
11462
|
-
// ../../node_modules/commander/lib/suggestSimilar.js
|
11462
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/suggestSimilar.js
|
11463
11463
|
var require_suggestSimilar = __commonJS((exports) => {
|
11464
11464
|
var maxDistance = 3;
|
11465
11465
|
function editDistance(a, b) {
|
@@ -11532,7 +11532,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
11532
11532
|
exports.suggestSimilar = suggestSimilar;
|
11533
11533
|
});
|
11534
11534
|
|
11535
|
-
// ../../node_modules/commander/lib/command.js
|
11535
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/lib/command.js
|
11536
11536
|
var require_command = __commonJS((exports) => {
|
11537
11537
|
var EventEmitter2 = __require("events").EventEmitter;
|
11538
11538
|
var childProcess = __require("child_process");
|
@@ -12715,7 +12715,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
12715
12715
|
exports.Command = Command;
|
12716
12716
|
});
|
12717
12717
|
|
12718
|
-
// ../../node_modules/commander/index.js
|
12718
|
+
// ../../node_modules/@commander-js/extra-typings/node_modules/commander/index.js
|
12719
12719
|
var require_commander = __commonJS((exports, module) => {
|
12720
12720
|
var { Argument } = require_argument();
|
12721
12721
|
var { Command } = require_command();
|
@@ -14507,8 +14507,8 @@ var require_printLocation = __commonJS((exports) => {
|
|
14507
14507
|
const columnNum = sourceLocation.column + columnOffset;
|
14508
14508
|
const locationStr = `${source.name}:${lineNum}:${columnNum}
|
14509
14509
|
`;
|
14510
|
-
const
|
14511
|
-
const locationLine =
|
14510
|
+
const lines = body.split(/\r\n|[\n\r]/g);
|
14511
|
+
const locationLine = lines[lineIndex];
|
14512
14512
|
if (locationLine.length > 120) {
|
14513
14513
|
const subLineIndex = Math.floor(columnNum / 80);
|
14514
14514
|
const subLineColumnNum = columnNum % 80;
|
@@ -14524,14 +14524,14 @@ var require_printLocation = __commonJS((exports) => {
|
|
14524
14524
|
]);
|
14525
14525
|
}
|
14526
14526
|
return locationStr + printPrefixedLines([
|
14527
|
-
[`${lineNum - 1} |`,
|
14527
|
+
[`${lineNum - 1} |`, lines[lineIndex - 1]],
|
14528
14528
|
[`${lineNum} |`, locationLine],
|
14529
14529
|
["|", "^".padStart(columnNum)],
|
14530
|
-
[`${lineNum + 1} |`,
|
14530
|
+
[`${lineNum + 1} |`, lines[lineIndex + 1]]
|
14531
14531
|
]);
|
14532
14532
|
}
|
14533
|
-
function printPrefixedLines(
|
14534
|
-
const existingLines =
|
14533
|
+
function printPrefixedLines(lines) {
|
14534
|
+
const existingLines = lines.filter(([_, line]) => line !== undefined);
|
14535
14535
|
const padLen = Math.max(...existingLines.map(([prefix]) => prefix.length));
|
14536
14536
|
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join(`
|
14537
14537
|
`);
|
@@ -14944,14 +14944,14 @@ var require_blockString = __commonJS((exports) => {
|
|
14944
14944
|
exports.isPrintableAsBlockString = isPrintableAsBlockString;
|
14945
14945
|
exports.printBlockString = printBlockString;
|
14946
14946
|
var _characterClasses = require_characterClasses();
|
14947
|
-
function dedentBlockStringLines(
|
14947
|
+
function dedentBlockStringLines(lines) {
|
14948
14948
|
var _firstNonEmptyLine2;
|
14949
14949
|
let commonIndent = Number.MAX_SAFE_INTEGER;
|
14950
14950
|
let firstNonEmptyLine = null;
|
14951
14951
|
let lastNonEmptyLine = -1;
|
14952
|
-
for (let i = 0;i <
|
14952
|
+
for (let i = 0;i < lines.length; ++i) {
|
14953
14953
|
var _firstNonEmptyLine;
|
14954
|
-
const line =
|
14954
|
+
const line = lines[i];
|
14955
14955
|
const indent = leadingWhitespace(line);
|
14956
14956
|
if (indent === line.length) {
|
14957
14957
|
continue;
|
@@ -14962,7 +14962,7 @@ var require_blockString = __commonJS((exports) => {
|
|
14962
14962
|
commonIndent = indent;
|
14963
14963
|
}
|
14964
14964
|
}
|
14965
|
-
return
|
14965
|
+
return lines.map((line, i) => i === 0 ? line : line.slice(commonIndent)).slice((_firstNonEmptyLine2 = firstNonEmptyLine) !== null && _firstNonEmptyLine2 !== undefined ? _firstNonEmptyLine2 : 0, lastNonEmptyLine + 1);
|
14966
14966
|
}
|
14967
14967
|
function leadingWhitespace(str) {
|
14968
14968
|
let i = 0;
|
@@ -15024,9 +15024,9 @@ var require_blockString = __commonJS((exports) => {
|
|
15024
15024
|
}
|
15025
15025
|
function printBlockString(value, options) {
|
15026
15026
|
const escapedValue = value.replace(/"""/g, '\\"""');
|
15027
|
-
const
|
15028
|
-
const isSingleLine =
|
15029
|
-
const forceLeadingNewLine =
|
15027
|
+
const lines = escapedValue.split(/\r\n|[\n\r]/g);
|
15028
|
+
const isSingleLine = lines.length === 1;
|
15029
|
+
const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || (0, _characterClasses.isWhiteSpace)(line.charCodeAt(0)));
|
15030
15030
|
const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
|
15031
15031
|
const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
|
15032
15032
|
const hasTrailingSlash = value.endsWith("\\");
|
@@ -34067,9 +34067,9 @@ var require_commonjs4 = __commonJS((exports) => {
|
|
34067
34067
|
this.#resolveCache = new ResolveCache2;
|
34068
34068
|
this.#resolvePosixCache = new ResolveCache2;
|
34069
34069
|
this.#children = new ChildrenCache2(childrenCacheSize);
|
34070
|
-
const
|
34071
|
-
if (
|
34072
|
-
|
34070
|
+
const split = cwdPath.substring(this.rootPath.length).split(sep2);
|
34071
|
+
if (split.length === 1 && !split[0]) {
|
34072
|
+
split.pop();
|
34073
34073
|
}
|
34074
34074
|
if (nocase === undefined) {
|
34075
34075
|
throw new TypeError("must provide nocase setting to PathScurryBase ctor");
|
@@ -34078,11 +34078,11 @@ var require_commonjs4 = __commonJS((exports) => {
|
|
34078
34078
|
this.root = this.newRoot(this.#fs);
|
34079
34079
|
this.roots[this.rootPath] = this.root;
|
34080
34080
|
let prev = this.root;
|
34081
|
-
let len =
|
34081
|
+
let len = split.length - 1;
|
34082
34082
|
const joinSep = pathImpl.sep;
|
34083
34083
|
let abs = this.rootPath;
|
34084
34084
|
let sawFirst = false;
|
34085
|
-
for (const part of
|
34085
|
+
for (const part of split) {
|
34086
34086
|
const l = len--;
|
34087
34087
|
prev = prev.child(part, {
|
34088
34088
|
relative: new Array(l).fill("..").join(joinSep),
|
@@ -36533,9 +36533,9 @@ var require_ini = __commonJS((exports, module) => {
|
|
36533
36533
|
let p = out;
|
36534
36534
|
let section = null;
|
36535
36535
|
const re = /^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i;
|
36536
|
-
const
|
36536
|
+
const lines = str.split(/[\r\n]+/g);
|
36537
36537
|
const duplicates = {};
|
36538
|
-
for (const line of
|
36538
|
+
for (const line of lines) {
|
36539
36539
|
if (!line || line.match(/^\s*[;#]/) || line.match(/^\s*$/)) {
|
36540
36540
|
continue;
|
36541
36541
|
}
|
@@ -38088,7 +38088,7 @@ var require_semver2 = __commonJS((exports, module) => {
|
|
38088
38088
|
// ../../node_modules/@npmcli/git/lib/lines-to-revs.js
|
38089
38089
|
var require_lines_to_revs = __commonJS((exports, module) => {
|
38090
38090
|
var semver = require_semver2();
|
38091
|
-
module.exports = (
|
38091
|
+
module.exports = (lines) => finish(lines.reduce(linesToRevsReducer, {
|
38092
38092
|
versions: {},
|
38093
38093
|
"dist-tags": {},
|
38094
38094
|
refs: {},
|
@@ -38149,12 +38149,12 @@ var require_lines_to_revs = __commonJS((exports, module) => {
|
|
38149
38149
|
return "other";
|
38150
38150
|
};
|
38151
38151
|
var lineToRevDoc = (line) => {
|
38152
|
-
const
|
38153
|
-
if (
|
38152
|
+
const split = line.trim().split(/\s+/, 2);
|
38153
|
+
if (split.length < 2) {
|
38154
38154
|
return null;
|
38155
38155
|
}
|
38156
|
-
const sha =
|
38157
|
-
const rawRef =
|
38156
|
+
const sha = split[0].trim();
|
38157
|
+
const rawRef = split[1].trim();
|
38158
38158
|
const type2 = refType(rawRef);
|
38159
38159
|
if (type2 === "tag") {
|
38160
38160
|
const ref = rawRef.slice("refs/tags/".length);
|
@@ -40715,17 +40715,17 @@ var require_normalize_data = __commonJS((exports, module) => {
|
|
40715
40715
|
};
|
40716
40716
|
var isEmail = (str) => str.includes("@") && str.indexOf("@") < str.lastIndexOf(".");
|
40717
40717
|
function extractDescription(description) {
|
40718
|
-
const
|
40718
|
+
const lines = description.trim().split(`
|
40719
40719
|
`);
|
40720
40720
|
let start = 0;
|
40721
|
-
while (
|
40721
|
+
while (lines[start]?.trim().match(/^(#|$)/)) {
|
40722
40722
|
start++;
|
40723
40723
|
}
|
40724
40724
|
let end = start + 1;
|
40725
|
-
while (end <
|
40725
|
+
while (end < lines.length && lines[end].trim()) {
|
40726
40726
|
end++;
|
40727
40727
|
}
|
40728
|
-
return
|
40728
|
+
return lines.slice(start, end).join(" ").trim();
|
40729
40729
|
}
|
40730
40730
|
function stringifyPerson(person) {
|
40731
40731
|
if (typeof person !== "string") {
|
@@ -59422,9 +59422,9 @@ ${lanes.join(`
|
|
59422
59422
|
return node.kind === 183 || node.kind === 233;
|
59423
59423
|
}
|
59424
59424
|
var MAX_SMI_X86 = 1073741823;
|
59425
|
-
function guessIndentation(
|
59425
|
+
function guessIndentation(lines) {
|
59426
59426
|
let indentation = MAX_SMI_X86;
|
59427
|
-
for (const line of
|
59427
|
+
for (const line of lines) {
|
59428
59428
|
if (!line.length) {
|
59429
59429
|
continue;
|
59430
59430
|
}
|
@@ -147975,8 +147975,8 @@ ${lanes.join(`
|
|
147975
147975
|
if (node.comment) {
|
147976
147976
|
const text = getTextOfJSDocComment(node.comment);
|
147977
147977
|
if (text) {
|
147978
|
-
const
|
147979
|
-
for (const line of
|
147978
|
+
const lines = text.split(/\r\n?|\n/);
|
147979
|
+
for (const line of lines) {
|
147980
147980
|
writeLine();
|
147981
147981
|
writeSpace();
|
147982
147982
|
writePunctuation("*");
|
@@ -148620,9 +148620,9 @@ ${lanes.join(`
|
|
148620
148620
|
if (getEmitFlags(parentNode) & 1) {
|
148621
148621
|
writeSpace();
|
148622
148622
|
} else if (preserveSourceNewlines) {
|
148623
|
-
const
|
148624
|
-
if (
|
148625
|
-
writeLine(
|
148623
|
+
const lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);
|
148624
|
+
if (lines) {
|
148625
|
+
writeLine(lines);
|
148626
148626
|
} else {
|
148627
148627
|
writeSpace();
|
148628
148628
|
}
|
@@ -148631,9 +148631,9 @@ ${lanes.join(`
|
|
148631
148631
|
}
|
148632
148632
|
}
|
148633
148633
|
function writeLines(text) {
|
148634
|
-
const
|
148635
|
-
const indentation = guessIndentation(
|
148636
|
-
for (const lineText of
|
148634
|
+
const lines = text.split(/\r\n?|\n/);
|
148635
|
+
const indentation = guessIndentation(lines);
|
148636
|
+
for (const lineText of lines) {
|
148637
148637
|
const line = indentation ? lineText.slice(indentation) : lineText;
|
148638
148638
|
if (line.length) {
|
148639
148639
|
writeLine();
|
@@ -148731,11 +148731,11 @@ ${lanes.join(`
|
|
148731
148731
|
}
|
148732
148732
|
function getEffectiveLines(getLineDifference) {
|
148733
148733
|
Debug.assert(!!preserveSourceNewlines);
|
148734
|
-
const
|
148735
|
-
if (
|
148734
|
+
const lines = getLineDifference(true);
|
148735
|
+
if (lines === 0) {
|
148736
148736
|
return getLineDifference(false);
|
148737
148737
|
}
|
148738
|
-
return
|
148738
|
+
return lines;
|
148739
148739
|
}
|
148740
148740
|
function writeLineSeparatorsAndIndentBefore(node, parent2) {
|
148741
148741
|
const leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent2, node, 0);
|
@@ -159021,7 +159021,7 @@ ${lanes.join(`
|
|
159021
159021
|
function generateOptionOutput(sys2, option, rightAlignOfLeft, leftAlignOfRight) {
|
159022
159022
|
var _a;
|
159023
159023
|
const text = [];
|
159024
|
-
const
|
159024
|
+
const colors2 = createColors(sys2);
|
159025
159025
|
const name2 = getDisplayNameTextOfOption(option);
|
159026
159026
|
const valueCandidates = getValueCandidate(option);
|
159027
159027
|
const defaultValueDescription = typeof option.defaultValueDescription === "object" ? getDiagnosticText(option.defaultValueDescription) : formatDefaultValue(option.defaultValueDescription, option.type === "list" || option.type === "listOrElement" ? option.element.type : option.type);
|
@@ -159042,7 +159042,7 @@ ${lanes.join(`
|
|
159042
159042
|
}
|
159043
159043
|
text.push(sys2.newLine);
|
159044
159044
|
} else {
|
159045
|
-
text.push(
|
159045
|
+
text.push(colors2.blue(name2), sys2.newLine);
|
159046
159046
|
if (option.description) {
|
159047
159047
|
const description3 = getDiagnosticText(option.description);
|
159048
159048
|
text.push(description3);
|
@@ -159087,7 +159087,7 @@ ${lanes.join(`
|
|
159087
159087
|
if (isFirstLine) {
|
159088
159088
|
curLeft = left.padStart(rightAlignOfLeft2);
|
159089
159089
|
curLeft = curLeft.padEnd(leftAlignOfRight2);
|
159090
|
-
curLeft = colorLeft ?
|
159090
|
+
curLeft = colorLeft ? colors2.blue(curLeft) : curLeft;
|
159091
159091
|
} else {
|
159092
159092
|
curLeft = "".padStart(leftAlignOfRight2);
|
159093
159093
|
}
|
@@ -159156,15 +159156,15 @@ ${lanes.join(`
|
|
159156
159156
|
}
|
159157
159157
|
const rightAlignOfLeftPart = maxLength2 + 2;
|
159158
159158
|
const leftAlignOfRightPart = rightAlignOfLeftPart + 2;
|
159159
|
-
let
|
159159
|
+
let lines = [];
|
159160
159160
|
for (const option of optionsList) {
|
159161
159161
|
const tmp = generateOptionOutput(sys2, option, rightAlignOfLeftPart, leftAlignOfRightPart);
|
159162
|
-
|
159162
|
+
lines = [...lines, ...tmp];
|
159163
159163
|
}
|
159164
|
-
if (
|
159165
|
-
|
159164
|
+
if (lines[lines.length - 2] !== sys2.newLine) {
|
159165
|
+
lines.push(sys2.newLine);
|
159166
159166
|
}
|
159167
|
-
return
|
159167
|
+
return lines;
|
159168
159168
|
}
|
159169
159169
|
function generateSectionOptionsOutput(sys2, sectionName, options, subCategory, beforeOptionsDescription, afterOptionsDescription) {
|
159170
159170
|
let res = [];
|
@@ -159199,9 +159199,9 @@ ${lanes.join(`
|
|
159199
159199
|
return res;
|
159200
159200
|
}
|
159201
159201
|
function printEasyHelp(sys2, simpleOptions) {
|
159202
|
-
const
|
159202
|
+
const colors2 = createColors(sys2);
|
159203
159203
|
let output = [...getHeader(sys2, `${getDiagnosticText(Diagnostics.tsc_Colon_The_TypeScript_Compiler)} - ${getDiagnosticText(Diagnostics.Version_0, version)}`)];
|
159204
|
-
output.push(
|
159204
|
+
output.push(colors2.bold(getDiagnosticText(Diagnostics.COMMON_COMMANDS)) + sys2.newLine + sys2.newLine);
|
159205
159205
|
example("tsc", Diagnostics.Compiles_the_current_project_tsconfig_json_in_the_working_directory);
|
159206
159206
|
example("tsc app.ts util.ts", Diagnostics.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options);
|
159207
159207
|
example("tsc -b", Diagnostics.Build_a_composite_project_in_the_working_directory);
|
@@ -159222,7 +159222,7 @@ ${lanes.join(`
|
|
159222
159222
|
function example(ex, desc) {
|
159223
159223
|
const examples = typeof ex === "string" ? [ex] : ex;
|
159224
159224
|
for (const example2 of examples) {
|
159225
|
-
output.push(" " +
|
159225
|
+
output.push(" " + colors2.blue(example2) + sys2.newLine);
|
159226
159226
|
}
|
159227
159227
|
output.push(" " + getDiagnosticText(desc) + sys2.newLine + sys2.newLine);
|
159228
159228
|
}
|
@@ -159245,12 +159245,12 @@ ${lanes.join(`
|
|
159245
159245
|
}
|
159246
159246
|
function getHeader(sys2, message) {
|
159247
159247
|
var _a;
|
159248
|
-
const
|
159248
|
+
const colors2 = createColors(sys2);
|
159249
159249
|
const header = [];
|
159250
159250
|
const terminalWidth = ((_a = sys2.getWidthOfTerminal) == null ? undefined : _a.call(sys2)) ?? 0;
|
159251
159251
|
const tsIconLength = 5;
|
159252
|
-
const tsIconFirstLine =
|
159253
|
-
const tsIconSecondLine =
|
159252
|
+
const tsIconFirstLine = colors2.blueBackground("".padStart(tsIconLength));
|
159253
|
+
const tsIconSecondLine = colors2.blueBackground(colors2.brightWhite("TS ".padStart(tsIconLength)));
|
159254
159254
|
if (terminalWidth >= message.length + tsIconLength) {
|
159255
159255
|
const rightAlign = terminalWidth > 120 ? 120 : terminalWidth;
|
159256
159256
|
const leftAlign = rightAlign - tsIconLength;
|
@@ -210956,9 +210956,9 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
210956
210956
|
insertedText = this.initialText + this.trailingText;
|
210957
210957
|
}
|
210958
210958
|
const lm = LineIndex.linesFromText(insertedText);
|
210959
|
-
const
|
210960
|
-
if (
|
210961
|
-
|
210959
|
+
const lines = lm.lines;
|
210960
|
+
if (lines.length > 1 && lines[lines.length - 1] === "") {
|
210961
|
+
lines.pop();
|
210962
210962
|
}
|
210963
210963
|
let branchParent;
|
210964
210964
|
let lastZeroCount;
|
@@ -210977,13 +210977,13 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
210977
210977
|
branchParent.remove(lastZeroCount);
|
210978
210978
|
}
|
210979
210979
|
const leafNode = this.startPath[this.startPath.length - 1];
|
210980
|
-
if (
|
210981
|
-
leafNode.text =
|
210982
|
-
if (
|
210983
|
-
let insertedNodes = new Array(
|
210980
|
+
if (lines.length > 0) {
|
210981
|
+
leafNode.text = lines[0];
|
210982
|
+
if (lines.length > 1) {
|
210983
|
+
let insertedNodes = new Array(lines.length - 1);
|
210984
210984
|
let startNode2 = leafNode;
|
210985
|
-
for (let i2 = 1;i2 <
|
210986
|
-
insertedNodes[i2 - 1] = new LineLeaf(
|
210985
|
+
for (let i2 = 1;i2 < lines.length; i2++) {
|
210986
|
+
insertedNodes[i2 - 1] = new LineLeaf(lines[i2]);
|
210987
210987
|
}
|
210988
210988
|
let pathIndex = this.startPath.length - 2;
|
210989
210989
|
while (pathIndex >= 0) {
|
@@ -211253,11 +211253,11 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
211253
211253
|
return { absolutePosition: this.root.charCount(), lineText: undefined };
|
211254
211254
|
}
|
211255
211255
|
}
|
211256
|
-
load(
|
211257
|
-
if (
|
211256
|
+
load(lines) {
|
211257
|
+
if (lines.length > 0) {
|
211258
211258
|
const leaves = [];
|
211259
|
-
for (let i2 = 0;i2 <
|
211260
|
-
leaves[i2] = new LineLeaf(
|
211259
|
+
for (let i2 = 0;i2 < lines.length; i2++) {
|
211260
|
+
leaves[i2] = new LineLeaf(lines[i2]);
|
211261
211261
|
}
|
211262
211262
|
this.root = _LineIndex.buildTreeFromBottom(leaves);
|
211263
211263
|
} else {
|
@@ -211360,18 +211360,18 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
211360
211360
|
if (lineMap.length === 0) {
|
211361
211361
|
return { lines: [], lineMap };
|
211362
211362
|
}
|
211363
|
-
const
|
211363
|
+
const lines = new Array(lineMap.length);
|
211364
211364
|
const lc = lineMap.length - 1;
|
211365
211365
|
for (let lmi = 0;lmi < lc; lmi++) {
|
211366
|
-
|
211366
|
+
lines[lmi] = text.substring(lineMap[lmi], lineMap[lmi + 1]);
|
211367
211367
|
}
|
211368
211368
|
const endText = text.substring(lineMap[lc]);
|
211369
211369
|
if (endText.length > 0) {
|
211370
|
-
|
211370
|
+
lines[lc] = endText;
|
211371
211371
|
} else {
|
211372
|
-
|
211372
|
+
lines.pop();
|
211373
211373
|
}
|
211374
|
-
return { lines
|
211374
|
+
return { lines, lineMap };
|
211375
211375
|
}
|
211376
211376
|
};
|
211377
211377
|
var LineNode = class _LineNode {
|
@@ -212442,7 +212442,7 @@ async function* streamBody(e4) {
|
|
212442
212442
|
}
|
212443
212443
|
}
|
212444
212444
|
}
|
212445
|
-
async function*
|
212445
|
+
async function* split(e4, r3) {
|
212446
212446
|
var a4 = "";
|
212447
212447
|
var n3;
|
212448
212448
|
for await (var t4 of e4) {
|
@@ -212476,7 +212476,7 @@ function makeFetchSource(e4, r3, a4) {
|
|
212476
212476
|
var n5 = "--" + (a6 ? a6[1] : "-");
|
212477
212477
|
var t5 = true;
|
212478
212478
|
var i4;
|
212479
|
-
for await (var o4 of
|
212479
|
+
for await (var o4 of split(streamBody(r5), `\r
|
212480
212480
|
` + n5)) {
|
212481
212481
|
if (t5) {
|
212482
212482
|
t5 = false;
|
@@ -212509,7 +212509,7 @@ function makeFetchSource(e4, r3, a4) {
|
|
212509
212509
|
} else if (/text\/event-stream/i.test(o3)) {
|
212510
212510
|
s2 = async function* parseEventStream(e6) {
|
212511
212511
|
var r5;
|
212512
|
-
for await (var a6 of
|
212512
|
+
for await (var a6 of split(streamBody(e6), `
|
212513
212513
|
|
212514
212514
|
`)) {
|
212515
212515
|
var n5 = a6.match(S);
|
@@ -232114,8 +232114,8 @@ var require_lib13 = __commonJS((exports, module) => {
|
|
232114
232114
|
function fetch2(input, options) {
|
232115
232115
|
return nodeFetch.fetch(input, options);
|
232116
232116
|
}
|
232117
|
-
for (const
|
232118
|
-
fetch2[
|
232117
|
+
for (const key4 in nodeFetch) {
|
232118
|
+
fetch2[key4] = nodeFetch[key4];
|
232119
232119
|
}
|
232120
232120
|
module.exports = fetch2;
|
232121
232121
|
});
|
@@ -232208,11 +232208,11 @@ var require_proxy = __commonJS((exports) => {
|
|
232208
232208
|
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;
|
232209
232209
|
}
|
232210
232210
|
e10(requireSymbols$4, "requireSymbols$4");
|
232211
|
-
var
|
232211
|
+
var errors4;
|
232212
232212
|
var hasRequiredErrors;
|
232213
232213
|
function requireErrors() {
|
232214
232214
|
if (hasRequiredErrors)
|
232215
|
-
return
|
232215
|
+
return errors4;
|
232216
232216
|
hasRequiredErrors = 1;
|
232217
232217
|
|
232218
232218
|
class A5 extends Error {
|
@@ -232421,7 +232421,7 @@ var require_proxy = __commonJS((exports) => {
|
|
232421
232421
|
super(i6, { cause: k5, ...F3 ?? {} }), this.name = "SecureProxyConnectionError", this.message = i6 || "Secure Proxy Connection failed", this.code = "UND_ERR_PRX_TLS", this.cause = k5;
|
232422
232422
|
}
|
232423
232423
|
}
|
232424
|
-
return
|
232424
|
+
return errors4 = { AbortError: Q4, HTTPParserError: Y4, UndiciError: A5, HeadersTimeoutError: c3, HeadersOverflowError: E6, BodyTimeoutError: t8, RequestContentLengthMismatchError: r6, ConnectTimeoutError: p6, ResponseStatusCodeError: B4, InvalidArgumentError: f5, InvalidReturnValueError: l2, RequestAbortedError: u6, ClientDestroyedError: a7, ClientClosedError: g5, InformationalError: n6, SocketError: d6, NotSupportedError: N6, ResponseContentLengthMismatchError: o8, BalancedPoolMissingUpstreamError: M5, ResponseExceededMaxSizeError: J4, RequestRetryError: V5, ResponseError: H4, SecureProxyConnectionError: h7 }, errors4;
|
232425
232425
|
}
|
232426
232426
|
e10(requireErrors, "requireErrors");
|
232427
232427
|
var constants$4;
|
@@ -242372,11 +242372,11 @@ var require_visit = __commonJS((exports) => {
|
|
242372
242372
|
visit2.BREAK = BREAK;
|
242373
242373
|
visit2.SKIP = SKIP;
|
242374
242374
|
visit2.REMOVE = REMOVE;
|
242375
|
-
function visit_(
|
242376
|
-
const ctrl = callVisitor(
|
242375
|
+
function visit_(key4, node, visitor, path6) {
|
242376
|
+
const ctrl = callVisitor(key4, node, visitor, path6);
|
242377
242377
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
242378
|
-
replaceNode(
|
242379
|
-
return visit_(
|
242378
|
+
replaceNode(key4, path6, ctrl);
|
242379
|
+
return visit_(key4, ctrl, visitor, path6);
|
242380
242380
|
}
|
242381
242381
|
if (typeof ctrl !== "symbol") {
|
242382
242382
|
if (identity2.isCollection(node)) {
|
@@ -242420,11 +242420,11 @@ var require_visit = __commonJS((exports) => {
|
|
242420
242420
|
visitAsync.BREAK = BREAK;
|
242421
242421
|
visitAsync.SKIP = SKIP;
|
242422
242422
|
visitAsync.REMOVE = REMOVE;
|
242423
|
-
async function visitAsync_(
|
242424
|
-
const ctrl = await callVisitor(
|
242423
|
+
async function visitAsync_(key4, node, visitor, path6) {
|
242424
|
+
const ctrl = await callVisitor(key4, node, visitor, path6);
|
242425
242425
|
if (identity2.isNode(ctrl) || identity2.isPair(ctrl)) {
|
242426
|
-
replaceNode(
|
242427
|
-
return visitAsync_(
|
242426
|
+
replaceNode(key4, path6, ctrl);
|
242427
|
+
return visitAsync_(key4, ctrl, visitor, path6);
|
242428
242428
|
}
|
242429
242429
|
if (typeof ctrl !== "symbol") {
|
242430
242430
|
if (identity2.isCollection(node)) {
|
@@ -242474,27 +242474,27 @@ var require_visit = __commonJS((exports) => {
|
|
242474
242474
|
}
|
242475
242475
|
return visitor;
|
242476
242476
|
}
|
242477
|
-
function callVisitor(
|
242477
|
+
function callVisitor(key4, node, visitor, path6) {
|
242478
242478
|
if (typeof visitor === "function")
|
242479
|
-
return visitor(
|
242479
|
+
return visitor(key4, node, path6);
|
242480
242480
|
if (identity2.isMap(node))
|
242481
|
-
return visitor.Map?.(
|
242481
|
+
return visitor.Map?.(key4, node, path6);
|
242482
242482
|
if (identity2.isSeq(node))
|
242483
|
-
return visitor.Seq?.(
|
242483
|
+
return visitor.Seq?.(key4, node, path6);
|
242484
242484
|
if (identity2.isPair(node))
|
242485
|
-
return visitor.Pair?.(
|
242485
|
+
return visitor.Pair?.(key4, node, path6);
|
242486
242486
|
if (identity2.isScalar(node))
|
242487
|
-
return visitor.Scalar?.(
|
242487
|
+
return visitor.Scalar?.(key4, node, path6);
|
242488
242488
|
if (identity2.isAlias(node))
|
242489
|
-
return visitor.Alias?.(
|
242489
|
+
return visitor.Alias?.(key4, node, path6);
|
242490
242490
|
return;
|
242491
242491
|
}
|
242492
|
-
function replaceNode(
|
242492
|
+
function replaceNode(key4, path6, node) {
|
242493
242493
|
const parent = path6[path6.length - 1];
|
242494
242494
|
if (identity2.isCollection(parent)) {
|
242495
|
-
parent.items[
|
242495
|
+
parent.items[key4] = node;
|
242496
242496
|
} else if (identity2.isPair(parent)) {
|
242497
|
-
if (
|
242497
|
+
if (key4 === "key")
|
242498
242498
|
parent.key = node;
|
242499
242499
|
else
|
242500
242500
|
parent.value = node;
|
@@ -242726,7 +242726,7 @@ var require_anchors = __commonJS((exports) => {
|
|
242726
242726
|
|
242727
242727
|
// ../../node_modules/yaml/dist/doc/applyReviver.js
|
242728
242728
|
var require_applyReviver = __commonJS((exports) => {
|
242729
|
-
function applyReviver(reviver, obj,
|
242729
|
+
function applyReviver(reviver, obj, key4, val) {
|
242730
242730
|
if (val && typeof val === "object") {
|
242731
242731
|
if (Array.isArray(val)) {
|
242732
242732
|
for (let i7 = 0, len = val.length;i7 < len; ++i7) {
|
@@ -242766,7 +242766,7 @@ var require_applyReviver = __commonJS((exports) => {
|
|
242766
242766
|
}
|
242767
242767
|
}
|
242768
242768
|
}
|
242769
|
-
return reviver.call(obj,
|
242769
|
+
return reviver.call(obj, key4, val);
|
242770
242770
|
}
|
242771
242771
|
exports.applyReviver = applyReviver;
|
242772
242772
|
});
|
@@ -243084,29 +243084,29 @@ var require_Collection = __commonJS((exports) => {
|
|
243084
243084
|
if (isEmptyPath(path6))
|
243085
243085
|
this.add(value4);
|
243086
243086
|
else {
|
243087
|
-
const [
|
243088
|
-
const node = this.get(
|
243087
|
+
const [key4, ...rest] = path6;
|
243088
|
+
const node = this.get(key4, true);
|
243089
243089
|
if (identity2.isCollection(node))
|
243090
243090
|
node.addIn(rest, value4);
|
243091
243091
|
else if (node === undefined && this.schema)
|
243092
|
-
this.set(
|
243092
|
+
this.set(key4, collectionFromPath(this.schema, rest, value4));
|
243093
243093
|
else
|
243094
|
-
throw new Error(`Expected YAML collection at ${
|
243094
|
+
throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
|
243095
243095
|
}
|
243096
243096
|
}
|
243097
243097
|
deleteIn(path6) {
|
243098
|
-
const [
|
243098
|
+
const [key4, ...rest] = path6;
|
243099
243099
|
if (rest.length === 0)
|
243100
|
-
return this.delete(
|
243101
|
-
const node = this.get(
|
243100
|
+
return this.delete(key4);
|
243101
|
+
const node = this.get(key4, true);
|
243102
243102
|
if (identity2.isCollection(node))
|
243103
243103
|
return node.deleteIn(rest);
|
243104
243104
|
else
|
243105
|
-
throw new Error(`Expected YAML collection at ${
|
243105
|
+
throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
|
243106
243106
|
}
|
243107
243107
|
getIn(path6, keepScalar) {
|
243108
|
-
const [
|
243109
|
-
const node = this.get(
|
243108
|
+
const [key4, ...rest] = path6;
|
243109
|
+
const node = this.get(key4, true);
|
243110
243110
|
if (rest.length === 0)
|
243111
243111
|
return !keepScalar && identity2.isScalar(node) ? node.value : node;
|
243112
243112
|
else
|
@@ -243121,24 +243121,24 @@ var require_Collection = __commonJS((exports) => {
|
|
243121
243121
|
});
|
243122
243122
|
}
|
243123
243123
|
hasIn(path6) {
|
243124
|
-
const [
|
243124
|
+
const [key4, ...rest] = path6;
|
243125
243125
|
if (rest.length === 0)
|
243126
|
-
return this.has(
|
243127
|
-
const node = this.get(
|
243126
|
+
return this.has(key4);
|
243127
|
+
const node = this.get(key4, true);
|
243128
243128
|
return identity2.isCollection(node) ? node.hasIn(rest) : false;
|
243129
243129
|
}
|
243130
243130
|
setIn(path6, value4) {
|
243131
|
-
const [
|
243131
|
+
const [key4, ...rest] = path6;
|
243132
243132
|
if (rest.length === 0) {
|
243133
|
-
this.set(
|
243133
|
+
this.set(key4, value4);
|
243134
243134
|
} else {
|
243135
|
-
const node = this.get(
|
243135
|
+
const node = this.get(key4, true);
|
243136
243136
|
if (identity2.isCollection(node))
|
243137
243137
|
node.setIn(rest, value4);
|
243138
243138
|
else if (node === undefined && this.schema)
|
243139
|
-
this.set(
|
243139
|
+
this.set(key4, collectionFromPath(this.schema, rest, value4));
|
243140
243140
|
else
|
243141
|
-
throw new Error(`Expected YAML collection at ${
|
243141
|
+
throw new Error(`Expected YAML collection at ${key4}. Remaining path: ${rest}`);
|
243142
243142
|
}
|
243143
243143
|
}
|
243144
243144
|
}
|
@@ -243726,19 +243726,19 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
243726
243726
|
var Scalar = require_Scalar();
|
243727
243727
|
var stringify3 = require_stringify();
|
243728
243728
|
var stringifyComment = require_stringifyComment();
|
243729
|
-
function stringifyPair2({ key:
|
243729
|
+
function stringifyPair2({ key: key4, value: value4 }, ctx, onComment, onChompKeep) {
|
243730
243730
|
const { allNullValues, doc, indent: indent2, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
243731
|
-
let keyComment = identity2.isNode(
|
243731
|
+
let keyComment = identity2.isNode(key4) && key4.comment || null;
|
243732
243732
|
if (simpleKeys) {
|
243733
243733
|
if (keyComment) {
|
243734
243734
|
throw new Error("With simple keys, key nodes cannot have comments");
|
243735
243735
|
}
|
243736
|
-
if (identity2.isCollection(
|
243736
|
+
if (identity2.isCollection(key4) || !identity2.isNode(key4) && typeof key4 === "object") {
|
243737
243737
|
const msg = "With simple keys, collection cannot be used as a key value";
|
243738
243738
|
throw new Error(msg);
|
243739
243739
|
}
|
243740
243740
|
}
|
243741
|
-
let explicitKey = !simpleKeys && (!
|
243741
|
+
let explicitKey = !simpleKeys && (!key4 || keyComment && value4 == null && !ctx.inFlow || identity2.isCollection(key4) || (identity2.isScalar(key4) ? key4.type === Scalar.Scalar.BLOCK_FOLDED || key4.type === Scalar.Scalar.BLOCK_LITERAL : typeof key4 === "object"));
|
243742
243742
|
ctx = Object.assign({}, ctx, {
|
243743
243743
|
allNullValues: false,
|
243744
243744
|
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
@@ -243746,7 +243746,7 @@ var require_stringifyPair = __commonJS((exports) => {
|
|
243746
243746
|
});
|
243747
243747
|
let keyCommentDone = false;
|
243748
243748
|
let chompKeep = false;
|
243749
|
-
let str = stringify3.stringify(
|
243749
|
+
let str = stringify3.stringify(key4, ctx, () => keyCommentDone = true, () => chompKeep = true);
|
243750
243750
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
243751
243751
|
if (simpleKeys)
|
243752
243752
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
@@ -243890,7 +243890,7 @@ var require_merge = __commonJS((exports) => {
|
|
243890
243890
|
}),
|
243891
243891
|
stringify: () => MERGE_KEY
|
243892
243892
|
};
|
243893
|
-
var isMergeKey = (ctx,
|
243893
|
+
var isMergeKey = (ctx, key4) => (merge3.identify(key4) || identity2.isScalar(key4) && (!key4.type || key4.type === Scalar.Scalar.PLAIN) && merge3.identify(key4.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge3.tag && tag.default);
|
243894
243894
|
function addMergeToJSMap(ctx, map3, value4) {
|
243895
243895
|
value4 = ctx && identity2.isAlias(value4) ? value4.resolve(ctx.doc) : value4;
|
243896
243896
|
if (identity2.isSeq(value4))
|
@@ -243907,14 +243907,14 @@ var require_merge = __commonJS((exports) => {
|
|
243907
243907
|
if (!identity2.isMap(source))
|
243908
243908
|
throw new Error("Merge sources must be maps or map aliases");
|
243909
243909
|
const srcMap = source.toJSON(null, ctx, Map);
|
243910
|
-
for (const [
|
243910
|
+
for (const [key4, value5] of srcMap) {
|
243911
243911
|
if (map3 instanceof Map) {
|
243912
|
-
if (!map3.has(
|
243913
|
-
map3.set(
|
243912
|
+
if (!map3.has(key4))
|
243913
|
+
map3.set(key4, value5);
|
243914
243914
|
} else if (map3 instanceof Set) {
|
243915
|
-
map3.add(
|
243916
|
-
} else if (!Object.prototype.hasOwnProperty.call(map3,
|
243917
|
-
Object.defineProperty(map3,
|
243915
|
+
map3.add(key4);
|
243916
|
+
} else if (!Object.prototype.hasOwnProperty.call(map3, key4)) {
|
243917
|
+
Object.defineProperty(map3, key4, {
|
243918
243918
|
value: value5,
|
243919
243919
|
writable: true,
|
243920
243920
|
enumerable: true,
|
@@ -243936,19 +243936,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
243936
243936
|
var stringify3 = require_stringify();
|
243937
243937
|
var identity2 = require_identity();
|
243938
243938
|
var toJS = require_toJS();
|
243939
|
-
function addPairToJSMap(ctx, map3, { key:
|
243940
|
-
if (identity2.isNode(
|
243941
|
-
|
243942
|
-
else if (merge3.isMergeKey(ctx,
|
243939
|
+
function addPairToJSMap(ctx, map3, { key: key4, value: value4 }) {
|
243940
|
+
if (identity2.isNode(key4) && key4.addToJSMap)
|
243941
|
+
key4.addToJSMap(ctx, map3, value4);
|
243942
|
+
else if (merge3.isMergeKey(ctx, key4))
|
243943
243943
|
merge3.addMergeToJSMap(ctx, map3, value4);
|
243944
243944
|
else {
|
243945
|
-
const jsKey = toJS.toJS(
|
243945
|
+
const jsKey = toJS.toJS(key4, "", ctx);
|
243946
243946
|
if (map3 instanceof Map) {
|
243947
243947
|
map3.set(jsKey, toJS.toJS(value4, jsKey, ctx));
|
243948
243948
|
} else if (map3 instanceof Set) {
|
243949
243949
|
map3.add(jsKey);
|
243950
243950
|
} else {
|
243951
|
-
const stringKey = stringifyKey(
|
243951
|
+
const stringKey = stringifyKey(key4, jsKey, ctx);
|
243952
243952
|
const jsValue = toJS.toJS(value4, stringKey, ctx);
|
243953
243953
|
if (stringKey in map3)
|
243954
243954
|
Object.defineProperty(map3, stringKey, {
|
@@ -243963,19 +243963,19 @@ var require_addPairToJSMap = __commonJS((exports) => {
|
|
243963
243963
|
}
|
243964
243964
|
return map3;
|
243965
243965
|
}
|
243966
|
-
function stringifyKey(
|
243966
|
+
function stringifyKey(key4, jsKey, ctx) {
|
243967
243967
|
if (jsKey === null)
|
243968
243968
|
return "";
|
243969
243969
|
if (typeof jsKey !== "object")
|
243970
243970
|
return String(jsKey);
|
243971
|
-
if (identity2.isNode(
|
243971
|
+
if (identity2.isNode(key4) && ctx?.doc) {
|
243972
243972
|
const strCtx = stringify3.createStringifyContext(ctx.doc, {});
|
243973
243973
|
strCtx.anchors = new Set;
|
243974
243974
|
for (const node of ctx.anchors.keys())
|
243975
243975
|
strCtx.anchors.add(node.anchor);
|
243976
243976
|
strCtx.inFlow = true;
|
243977
243977
|
strCtx.inStringifyKey = true;
|
243978
|
-
const strKey =
|
243978
|
+
const strKey = key4.toString(strCtx);
|
243979
243979
|
if (!ctx.mapKeyWarned) {
|
243980
243980
|
let jsonStr = JSON.stringify(strKey);
|
243981
243981
|
if (jsonStr.length > 40)
|
@@ -243996,25 +243996,25 @@ var require_Pair = __commonJS((exports) => {
|
|
243996
243996
|
var stringifyPair2 = require_stringifyPair();
|
243997
243997
|
var addPairToJSMap = require_addPairToJSMap();
|
243998
243998
|
var identity2 = require_identity();
|
243999
|
-
function createPair(
|
244000
|
-
const k6 = createNode.createNode(
|
243999
|
+
function createPair(key4, value4, ctx) {
|
244000
|
+
const k6 = createNode.createNode(key4, undefined, ctx);
|
244001
244001
|
const v7 = createNode.createNode(value4, undefined, ctx);
|
244002
244002
|
return new Pair(k6, v7);
|
244003
244003
|
}
|
244004
244004
|
|
244005
244005
|
class Pair {
|
244006
|
-
constructor(
|
244006
|
+
constructor(key4, value4 = null) {
|
244007
244007
|
Object.defineProperty(this, identity2.NODE_TYPE, { value: identity2.PAIR });
|
244008
|
-
this.key =
|
244008
|
+
this.key = key4;
|
244009
244009
|
this.value = value4;
|
244010
244010
|
}
|
244011
244011
|
clone(schema) {
|
244012
|
-
let { key:
|
244013
|
-
if (identity2.isNode(
|
244014
|
-
|
244012
|
+
let { key: key4, value: value4 } = this;
|
244013
|
+
if (identity2.isNode(key4))
|
244014
|
+
key4 = key4.clone(schema);
|
244015
244015
|
if (identity2.isNode(value4))
|
244016
244016
|
value4 = value4.clone(schema);
|
244017
|
-
return new Pair(
|
244017
|
+
return new Pair(key4, value4);
|
244018
244018
|
}
|
244019
244019
|
toJSON(_6, ctx) {
|
244020
244020
|
const pair = ctx?.mapAsMap ? new Map : {};
|
@@ -244181,11 +244181,11 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244181
244181
|
var identity2 = require_identity();
|
244182
244182
|
var Pair = require_Pair();
|
244183
244183
|
var Scalar = require_Scalar();
|
244184
|
-
function findPair(items,
|
244185
|
-
const k6 = identity2.isScalar(
|
244184
|
+
function findPair(items, key4) {
|
244185
|
+
const k6 = identity2.isScalar(key4) ? key4.value : key4;
|
244186
244186
|
for (const it2 of items) {
|
244187
244187
|
if (identity2.isPair(it2)) {
|
244188
|
-
if (it2.key ===
|
244188
|
+
if (it2.key === key4 || it2.key === k6)
|
244189
244189
|
return it2;
|
244190
244190
|
if (identity2.isScalar(it2.key) && it2.key.value === k6)
|
244191
244191
|
return it2;
|
@@ -244205,20 +244205,20 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244205
244205
|
static from(schema, obj, ctx) {
|
244206
244206
|
const { keepUndefined, replacer } = ctx;
|
244207
244207
|
const map3 = new this(schema);
|
244208
|
-
const add = (
|
244208
|
+
const add = (key4, value4) => {
|
244209
244209
|
if (typeof replacer === "function")
|
244210
|
-
value4 = replacer.call(obj,
|
244211
|
-
else if (Array.isArray(replacer) && !replacer.includes(
|
244210
|
+
value4 = replacer.call(obj, key4, value4);
|
244211
|
+
else if (Array.isArray(replacer) && !replacer.includes(key4))
|
244212
244212
|
return;
|
244213
244213
|
if (value4 !== undefined || keepUndefined)
|
244214
|
-
map3.items.push(Pair.createPair(
|
244214
|
+
map3.items.push(Pair.createPair(key4, value4, ctx));
|
244215
244215
|
};
|
244216
244216
|
if (obj instanceof Map) {
|
244217
|
-
for (const [
|
244218
|
-
add(
|
244217
|
+
for (const [key4, value4] of obj)
|
244218
|
+
add(key4, value4);
|
244219
244219
|
} else if (obj && typeof obj === "object") {
|
244220
|
-
for (const
|
244221
|
-
add(
|
244220
|
+
for (const key4 of Object.keys(obj))
|
244221
|
+
add(key4, obj[key4]);
|
244222
244222
|
}
|
244223
244223
|
if (typeof schema.sortMapEntries === "function") {
|
244224
244224
|
map3.items.sort(schema.sortMapEntries);
|
@@ -244252,23 +244252,23 @@ var require_YAMLMap = __commonJS((exports) => {
|
|
244252
244252
|
this.items.push(_pair);
|
244253
244253
|
}
|
244254
244254
|
}
|
244255
|
-
delete(
|
244256
|
-
const it2 = findPair(this.items,
|
244255
|
+
delete(key4) {
|
244256
|
+
const it2 = findPair(this.items, key4);
|
244257
244257
|
if (!it2)
|
244258
244258
|
return false;
|
244259
244259
|
const del = this.items.splice(this.items.indexOf(it2), 1);
|
244260
244260
|
return del.length > 0;
|
244261
244261
|
}
|
244262
|
-
get(
|
244263
|
-
const it2 = findPair(this.items,
|
244262
|
+
get(key4, keepScalar) {
|
244263
|
+
const it2 = findPair(this.items, key4);
|
244264
244264
|
const node = it2?.value;
|
244265
244265
|
return (!keepScalar && identity2.isScalar(node) ? node.value : node) ?? undefined;
|
244266
244266
|
}
|
244267
|
-
has(
|
244268
|
-
return !!findPair(this.items,
|
244267
|
+
has(key4) {
|
244268
|
+
return !!findPair(this.items, key4);
|
244269
244269
|
}
|
244270
|
-
set(
|
244271
|
-
this.add(new Pair.Pair(
|
244270
|
+
set(key4, value4) {
|
244271
|
+
this.add(new Pair.Pair(key4, value4), true);
|
244272
244272
|
}
|
244273
244273
|
toJSON(_6, ctx, Type) {
|
244274
244274
|
const map3 = Type ? new Type : ctx?.mapAsMap ? new Map : {};
|
@@ -244339,28 +244339,28 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244339
244339
|
add(value4) {
|
244340
244340
|
this.items.push(value4);
|
244341
244341
|
}
|
244342
|
-
delete(
|
244343
|
-
const idx = asItemIndex(
|
244342
|
+
delete(key4) {
|
244343
|
+
const idx = asItemIndex(key4);
|
244344
244344
|
if (typeof idx !== "number")
|
244345
244345
|
return false;
|
244346
244346
|
const del = this.items.splice(idx, 1);
|
244347
244347
|
return del.length > 0;
|
244348
244348
|
}
|
244349
|
-
get(
|
244350
|
-
const idx = asItemIndex(
|
244349
|
+
get(key4, keepScalar) {
|
244350
|
+
const idx = asItemIndex(key4);
|
244351
244351
|
if (typeof idx !== "number")
|
244352
244352
|
return;
|
244353
244353
|
const it2 = this.items[idx];
|
244354
244354
|
return !keepScalar && identity2.isScalar(it2) ? it2.value : it2;
|
244355
244355
|
}
|
244356
|
-
has(
|
244357
|
-
const idx = asItemIndex(
|
244356
|
+
has(key4) {
|
244357
|
+
const idx = asItemIndex(key4);
|
244358
244358
|
return typeof idx === "number" && idx < this.items.length;
|
244359
244359
|
}
|
244360
|
-
set(
|
244361
|
-
const idx = asItemIndex(
|
244360
|
+
set(key4, value4) {
|
244361
|
+
const idx = asItemIndex(key4);
|
244362
244362
|
if (typeof idx !== "number")
|
244363
|
-
throw new Error(`Expected a valid index, not ${
|
244363
|
+
throw new Error(`Expected a valid index, not ${key4}.`);
|
244364
244364
|
const prev = this.items[idx];
|
244365
244365
|
if (identity2.isScalar(prev) && Scalar.isScalarValue(value4))
|
244366
244366
|
prev.value = value4;
|
@@ -244394,8 +244394,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244394
244394
|
let i7 = 0;
|
244395
244395
|
for (let it2 of obj) {
|
244396
244396
|
if (typeof replacer === "function") {
|
244397
|
-
const
|
244398
|
-
it2 = replacer.call(obj,
|
244397
|
+
const key4 = obj instanceof Set ? it2 : String(i7++);
|
244398
|
+
it2 = replacer.call(obj, key4, it2);
|
244399
244399
|
}
|
244400
244400
|
seq.items.push(createNode.createNode(it2, undefined, ctx));
|
244401
244401
|
}
|
@@ -244403,8 +244403,8 @@ var require_YAMLSeq = __commonJS((exports) => {
|
|
244403
244403
|
return seq;
|
244404
244404
|
}
|
244405
244405
|
}
|
244406
|
-
function asItemIndex(
|
244407
|
-
let idx = identity2.isScalar(
|
244406
|
+
function asItemIndex(key4) {
|
244407
|
+
let idx = identity2.isScalar(key4) ? key4.value : key4;
|
244408
244408
|
if (idx && typeof idx === "string")
|
244409
244409
|
idx = Number(idx);
|
244410
244410
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
@@ -244776,25 +244776,25 @@ ${cn.comment}` : item.comment;
|
|
244776
244776
|
for (let it2 of iterable) {
|
244777
244777
|
if (typeof replacer === "function")
|
244778
244778
|
it2 = replacer.call(iterable, String(i7++), it2);
|
244779
|
-
let
|
244779
|
+
let key4, value4;
|
244780
244780
|
if (Array.isArray(it2)) {
|
244781
244781
|
if (it2.length === 2) {
|
244782
|
-
|
244782
|
+
key4 = it2[0];
|
244783
244783
|
value4 = it2[1];
|
244784
244784
|
} else
|
244785
244785
|
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
244786
244786
|
} else if (it2 && it2 instanceof Object) {
|
244787
244787
|
const keys = Object.keys(it2);
|
244788
244788
|
if (keys.length === 1) {
|
244789
|
-
|
244790
|
-
value4 = it2[
|
244789
|
+
key4 = keys[0];
|
244790
|
+
value4 = it2[key4];
|
244791
244791
|
} else {
|
244792
244792
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
244793
244793
|
}
|
244794
244794
|
} else {
|
244795
|
-
|
244795
|
+
key4 = it2;
|
244796
244796
|
}
|
244797
|
-
pairs2.items.push(Pair.createPair(
|
244797
|
+
pairs2.items.push(Pair.createPair(key4, value4, ctx));
|
244798
244798
|
}
|
244799
244799
|
return pairs2;
|
244800
244800
|
}
|
@@ -244835,16 +244835,16 @@ var require_omap = __commonJS((exports) => {
|
|
244835
244835
|
if (ctx?.onCreate)
|
244836
244836
|
ctx.onCreate(map3);
|
244837
244837
|
for (const pair of this.items) {
|
244838
|
-
let
|
244838
|
+
let key4, value4;
|
244839
244839
|
if (identity2.isPair(pair)) {
|
244840
|
-
|
244841
|
-
value4 = toJS.toJS(pair.value,
|
244840
|
+
key4 = toJS.toJS(pair.key, "", ctx);
|
244841
|
+
value4 = toJS.toJS(pair.value, key4, ctx);
|
244842
244842
|
} else {
|
244843
|
-
|
244843
|
+
key4 = toJS.toJS(pair, "", ctx);
|
244844
244844
|
}
|
244845
|
-
if (map3.has(
|
244845
|
+
if (map3.has(key4))
|
244846
244846
|
throw new Error("Ordered maps must not include duplicate keys");
|
244847
|
-
map3.set(
|
244847
|
+
map3.set(key4, value4);
|
244848
244848
|
}
|
244849
244849
|
return map3;
|
244850
244850
|
}
|
@@ -244865,12 +244865,12 @@ var require_omap = __commonJS((exports) => {
|
|
244865
244865
|
resolve(seq, onError) {
|
244866
244866
|
const pairs$1 = pairs.resolvePairs(seq, onError);
|
244867
244867
|
const seenKeys = [];
|
244868
|
-
for (const { key:
|
244869
|
-
if (identity2.isScalar(
|
244870
|
-
if (seenKeys.includes(
|
244871
|
-
onError(`Ordered maps must not include duplicate keys: ${
|
244868
|
+
for (const { key: key4 } of pairs$1.items) {
|
244869
|
+
if (identity2.isScalar(key4)) {
|
244870
|
+
if (seenKeys.includes(key4.value)) {
|
244871
|
+
onError(`Ordered maps must not include duplicate keys: ${key4.value}`);
|
244872
244872
|
} else {
|
244873
|
-
seenKeys.push(
|
244873
|
+
seenKeys.push(key4.value);
|
244874
244874
|
}
|
244875
244875
|
}
|
244876
244876
|
}
|
@@ -245044,30 +245044,30 @@ var require_set = __commonJS((exports) => {
|
|
245044
245044
|
super(schema);
|
245045
245045
|
this.tag = YAMLSet.tag;
|
245046
245046
|
}
|
245047
|
-
add(
|
245047
|
+
add(key4) {
|
245048
245048
|
let pair;
|
245049
|
-
if (identity2.isPair(
|
245050
|
-
pair =
|
245051
|
-
else if (
|
245052
|
-
pair = new Pair.Pair(
|
245049
|
+
if (identity2.isPair(key4))
|
245050
|
+
pair = key4;
|
245051
|
+
else if (key4 && typeof key4 === "object" && "key" in key4 && "value" in key4 && key4.value === null)
|
245052
|
+
pair = new Pair.Pair(key4.key, null);
|
245053
245053
|
else
|
245054
|
-
pair = new Pair.Pair(
|
245054
|
+
pair = new Pair.Pair(key4, null);
|
245055
245055
|
const prev = YAMLMap.findPair(this.items, pair.key);
|
245056
245056
|
if (!prev)
|
245057
245057
|
this.items.push(pair);
|
245058
245058
|
}
|
245059
|
-
get(
|
245060
|
-
const pair = YAMLMap.findPair(this.items,
|
245059
|
+
get(key4, keepPair) {
|
245060
|
+
const pair = YAMLMap.findPair(this.items, key4);
|
245061
245061
|
return !keepPair && identity2.isPair(pair) ? identity2.isScalar(pair.key) ? pair.key.value : pair.key : pair;
|
245062
245062
|
}
|
245063
|
-
set(
|
245063
|
+
set(key4, value4) {
|
245064
245064
|
if (typeof value4 !== "boolean")
|
245065
245065
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof value4}`);
|
245066
|
-
const prev = YAMLMap.findPair(this.items,
|
245066
|
+
const prev = YAMLMap.findPair(this.items, key4);
|
245067
245067
|
if (prev && !value4) {
|
245068
245068
|
this.items.splice(this.items.indexOf(prev), 1);
|
245069
245069
|
} else if (!prev && value4) {
|
245070
|
-
this.items.push(new Pair.Pair(
|
245070
|
+
this.items.push(new Pair.Pair(key4));
|
245071
245071
|
}
|
245072
245072
|
}
|
245073
245073
|
toJSON(_6, ctx) {
|
@@ -245302,7 +245302,7 @@ var require_tags = __commonJS((exports) => {
|
|
245302
245302
|
if (Array.isArray(customTags))
|
245303
245303
|
tags = [];
|
245304
245304
|
else {
|
245305
|
-
const keys = Array.from(schemas.keys()).filter((
|
245305
|
+
const keys = Array.from(schemas.keys()).filter((key4) => key4 !== "yaml11").map((key4) => JSON.stringify(key4)).join(", ");
|
245306
245306
|
throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
|
245307
245307
|
}
|
245308
245308
|
}
|
@@ -245318,7 +245318,7 @@ var require_tags = __commonJS((exports) => {
|
|
245318
245318
|
const tagObj = typeof tag === "string" ? tagsByName[tag] : tag;
|
245319
245319
|
if (!tagObj) {
|
245320
245320
|
const tagName = JSON.stringify(tag);
|
245321
|
-
const keys = Object.keys(tagsByName).map((
|
245321
|
+
const keys = Object.keys(tagsByName).map((key4) => JSON.stringify(key4)).join(", ");
|
245322
245322
|
throw new Error(`Unknown custom tag ${tagName}; use one of ${keys}`);
|
245323
245323
|
}
|
245324
245324
|
if (!tags2.includes(tagObj))
|
@@ -245553,13 +245553,13 @@ var require_Document = __commonJS((exports) => {
|
|
245553
245553
|
setAnchors();
|
245554
245554
|
return node;
|
245555
245555
|
}
|
245556
|
-
createPair(
|
245557
|
-
const k6 = this.createNode(
|
245556
|
+
createPair(key4, value4, options = {}) {
|
245557
|
+
const k6 = this.createNode(key4, null, options);
|
245558
245558
|
const v7 = this.createNode(value4, null, options);
|
245559
245559
|
return new Pair.Pair(k6, v7);
|
245560
245560
|
}
|
245561
|
-
delete(
|
245562
|
-
return assertCollection(this.contents) ? this.contents.delete(
|
245561
|
+
delete(key4) {
|
245562
|
+
return assertCollection(this.contents) ? this.contents.delete(key4) : false;
|
245563
245563
|
}
|
245564
245564
|
deleteIn(path6) {
|
245565
245565
|
if (Collection.isEmptyPath(path6)) {
|
@@ -245570,27 +245570,27 @@ var require_Document = __commonJS((exports) => {
|
|
245570
245570
|
}
|
245571
245571
|
return assertCollection(this.contents) ? this.contents.deleteIn(path6) : false;
|
245572
245572
|
}
|
245573
|
-
get(
|
245574
|
-
return identity2.isCollection(this.contents) ? this.contents.get(
|
245573
|
+
get(key4, keepScalar) {
|
245574
|
+
return identity2.isCollection(this.contents) ? this.contents.get(key4, keepScalar) : undefined;
|
245575
245575
|
}
|
245576
245576
|
getIn(path6, keepScalar) {
|
245577
245577
|
if (Collection.isEmptyPath(path6))
|
245578
245578
|
return !keepScalar && identity2.isScalar(this.contents) ? this.contents.value : this.contents;
|
245579
245579
|
return identity2.isCollection(this.contents) ? this.contents.getIn(path6, keepScalar) : undefined;
|
245580
245580
|
}
|
245581
|
-
has(
|
245582
|
-
return identity2.isCollection(this.contents) ? this.contents.has(
|
245581
|
+
has(key4) {
|
245582
|
+
return identity2.isCollection(this.contents) ? this.contents.has(key4) : false;
|
245583
245583
|
}
|
245584
245584
|
hasIn(path6) {
|
245585
245585
|
if (Collection.isEmptyPath(path6))
|
245586
245586
|
return this.contents !== undefined;
|
245587
245587
|
return identity2.isCollection(this.contents) ? this.contents.hasIn(path6) : false;
|
245588
245588
|
}
|
245589
|
-
set(
|
245589
|
+
set(key4, value4) {
|
245590
245590
|
if (this.contents == null) {
|
245591
|
-
this.contents = Collection.collectionFromPath(this.schema, [
|
245591
|
+
this.contents = Collection.collectionFromPath(this.schema, [key4], value4);
|
245592
245592
|
} else if (assertCollection(this.contents)) {
|
245593
|
-
this.contents.set(
|
245593
|
+
this.contents.set(key4, value4);
|
245594
245594
|
}
|
245595
245595
|
}
|
245596
245596
|
setIn(path6, value4) {
|
@@ -245874,25 +245874,25 @@ var require_resolve_props = __commonJS((exports) => {
|
|
245874
245874
|
|
245875
245875
|
// ../../node_modules/yaml/dist/compose/util-contains-newline.js
|
245876
245876
|
var require_util_contains_newline = __commonJS((exports) => {
|
245877
|
-
function containsNewline(
|
245878
|
-
if (!
|
245877
|
+
function containsNewline(key4) {
|
245878
|
+
if (!key4)
|
245879
245879
|
return null;
|
245880
|
-
switch (
|
245880
|
+
switch (key4.type) {
|
245881
245881
|
case "alias":
|
245882
245882
|
case "scalar":
|
245883
245883
|
case "double-quoted-scalar":
|
245884
245884
|
case "single-quoted-scalar":
|
245885
|
-
if (
|
245885
|
+
if (key4.source.includes(`
|
245886
245886
|
`))
|
245887
245887
|
return true;
|
245888
|
-
if (
|
245889
|
-
for (const st2 of
|
245888
|
+
if (key4.end) {
|
245889
|
+
for (const st2 of key4.end)
|
245890
245890
|
if (st2.type === "newline")
|
245891
245891
|
return true;
|
245892
245892
|
}
|
245893
245893
|
return false;
|
245894
245894
|
case "flow-collection":
|
245895
|
-
for (const it2 of
|
245895
|
+
for (const it2 of key4.items) {
|
245896
245896
|
for (const st2 of it2.start)
|
245897
245897
|
if (st2.type === "newline")
|
245898
245898
|
return true;
|
@@ -245957,10 +245957,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
245957
245957
|
let offset = bm.offset;
|
245958
245958
|
let commentEnd = null;
|
245959
245959
|
for (const collItem of bm.items) {
|
245960
|
-
const { start: start3, key:
|
245960
|
+
const { start: start3, key: key4, sep: sep3, value: value4 } = collItem;
|
245961
245961
|
const keyProps = resolveProps.resolveProps(start3, {
|
245962
245962
|
indicator: "explicit-key-ind",
|
245963
|
-
next:
|
245963
|
+
next: key4 ?? sep3?.[0],
|
245964
245964
|
offset,
|
245965
245965
|
onError,
|
245966
245966
|
parentIndent: bm.indent,
|
@@ -245968,10 +245968,10 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
245968
245968
|
});
|
245969
245969
|
const implicitKey = !keyProps.found;
|
245970
245970
|
if (implicitKey) {
|
245971
|
-
if (
|
245972
|
-
if (
|
245971
|
+
if (key4) {
|
245972
|
+
if (key4.type === "block-seq")
|
245973
245973
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "A block sequence may not be used as an implicit map key");
|
245974
|
-
else if ("indent" in
|
245974
|
+
else if ("indent" in key4 && key4.indent !== bm.indent)
|
245975
245975
|
onError(offset, "BAD_INDENT", startColMsg);
|
245976
245976
|
}
|
245977
245977
|
if (!keyProps.anchor && !keyProps.tag && !sep3) {
|
@@ -245985,17 +245985,17 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
245985
245985
|
}
|
245986
245986
|
continue;
|
245987
245987
|
}
|
245988
|
-
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(
|
245989
|
-
onError(
|
245988
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key4)) {
|
245989
|
+
onError(key4 ?? start3[start3.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
245990
245990
|
}
|
245991
245991
|
} else if (keyProps.found?.indent !== bm.indent) {
|
245992
245992
|
onError(offset, "BAD_INDENT", startColMsg);
|
245993
245993
|
}
|
245994
245994
|
ctx.atKey = true;
|
245995
245995
|
const keyStart = keyProps.end;
|
245996
|
-
const keyNode =
|
245996
|
+
const keyNode = key4 ? composeNode(ctx, key4, keyProps, onError) : composeEmptyNode(ctx, keyStart, start3, null, keyProps, onError);
|
245997
245997
|
if (ctx.schema.compat)
|
245998
|
-
utilFlowIndentCheck.flowIndentCheck(bm.indent,
|
245998
|
+
utilFlowIndentCheck.flowIndentCheck(bm.indent, key4, onError);
|
245999
245999
|
ctx.atKey = false;
|
246000
246000
|
if (utilMapIncludes.mapIncludes(ctx, map3.items, keyNode))
|
246001
246001
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
@@ -246005,7 +246005,7 @@ var require_resolve_block_map = __commonJS((exports) => {
|
|
246005
246005
|
offset: keyNode.range[2],
|
246006
246006
|
onError,
|
246007
246007
|
parentIndent: bm.indent,
|
246008
|
-
startOnNewline: !
|
246008
|
+
startOnNewline: !key4 || key4.type === "block-scalar"
|
246009
246009
|
});
|
246010
246010
|
offset = valueProps.end;
|
246011
246011
|
if (valueProps.found) {
|
@@ -246161,11 +246161,11 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246161
246161
|
let offset = fc.offset + fc.start.source.length;
|
246162
246162
|
for (let i7 = 0;i7 < fc.items.length; ++i7) {
|
246163
246163
|
const collItem = fc.items[i7];
|
246164
|
-
const { start: start3, key:
|
246164
|
+
const { start: start3, key: key4, sep: sep3, value: value4 } = collItem;
|
246165
246165
|
const props = resolveProps.resolveProps(start3, {
|
246166
246166
|
flow: fcName,
|
246167
246167
|
indicator: "explicit-key-ind",
|
246168
|
-
next:
|
246168
|
+
next: key4 ?? sep3?.[0],
|
246169
246169
|
offset,
|
246170
246170
|
onError,
|
246171
246171
|
parentIndent: fc.indent,
|
@@ -246187,8 +246187,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246187
246187
|
offset = props.end;
|
246188
246188
|
continue;
|
246189
246189
|
}
|
246190
|
-
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(
|
246191
|
-
onError(
|
246190
|
+
if (!isMap && ctx.options.strict && utilContainsNewline.containsNewline(key4))
|
246191
|
+
onError(key4, "MULTILINE_IMPLICIT_KEY", "Implicit keys of flow sequence pairs need to be on a single line");
|
246192
246192
|
}
|
246193
246193
|
if (i7 === 0) {
|
246194
246194
|
if (props.comma)
|
@@ -246233,8 +246233,8 @@ var require_resolve_flow_collection = __commonJS((exports) => {
|
|
246233
246233
|
} else {
|
246234
246234
|
ctx.atKey = true;
|
246235
246235
|
const keyStart = props.end;
|
246236
|
-
const keyNode =
|
246237
|
-
if (isBlock(
|
246236
|
+
const keyNode = key4 ? composeNode(ctx, key4, props, onError) : composeEmptyNode(ctx, keyStart, start3, null, props, onError);
|
246237
|
+
if (isBlock(key4))
|
246238
246238
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
246239
246239
|
ctx.atKey = false;
|
246240
246240
|
const valueProps = resolveProps.resolveProps(sep3 ?? [], {
|
@@ -247046,7 +247046,7 @@ var require_composer = __commonJS((exports) => {
|
|
247046
247046
|
var node_process = __require("node:process");
|
247047
247047
|
var directives4 = require_directives2();
|
247048
247048
|
var Document = require_Document();
|
247049
|
-
var
|
247049
|
+
var errors4 = require_errors3();
|
247050
247050
|
var identity2 = require_identity();
|
247051
247051
|
var composeDoc = require_compose_doc();
|
247052
247052
|
var resolveEnd = require_resolve_end();
|
@@ -247097,9 +247097,9 @@ var require_composer = __commonJS((exports) => {
|
|
247097
247097
|
this.onError = (source, code2, message, warning) => {
|
247098
247098
|
const pos = getErrorPos(source);
|
247099
247099
|
if (warning)
|
247100
|
-
this.warnings.push(new
|
247100
|
+
this.warnings.push(new errors4.YAMLWarning(pos, code2, message));
|
247101
247101
|
else
|
247102
|
-
this.errors.push(new
|
247102
|
+
this.errors.push(new errors4.YAMLParseError(pos, code2, message));
|
247103
247103
|
};
|
247104
247104
|
this.directives = new directives4.Directives({ version: options.version || "1.2" });
|
247105
247105
|
this.options = options;
|
@@ -247183,7 +247183,7 @@ ${cb}` : comment;
|
|
247183
247183
|
break;
|
247184
247184
|
case "error": {
|
247185
247185
|
const msg = token.source ? `${token.message}: ${JSON.stringify(token.source)}` : token.message;
|
247186
|
-
const error5 = new
|
247186
|
+
const error5 = new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg);
|
247187
247187
|
if (this.atDirectives || !this.doc)
|
247188
247188
|
this.errors.push(error5);
|
247189
247189
|
else
|
@@ -247193,7 +247193,7 @@ ${cb}` : comment;
|
|
247193
247193
|
case "doc-end": {
|
247194
247194
|
if (!this.doc) {
|
247195
247195
|
const msg = "Unexpected doc-end without preceding document";
|
247196
|
-
this.errors.push(new
|
247196
|
+
this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", msg));
|
247197
247197
|
break;
|
247198
247198
|
}
|
247199
247199
|
this.doc.directives.docEnd = true;
|
@@ -247208,7 +247208,7 @@ ${end.comment}` : end.comment;
|
|
247208
247208
|
break;
|
247209
247209
|
}
|
247210
247210
|
default:
|
247211
|
-
this.errors.push(new
|
247211
|
+
this.errors.push(new errors4.YAMLParseError(getErrorPos(token), "UNEXPECTED_TOKEN", `Unsupported token ${token.type}`));
|
247212
247212
|
}
|
247213
247213
|
}
|
247214
247214
|
*end(forceDoc = false, endOffset = -1) {
|
@@ -247234,7 +247234,7 @@ ${end.comment}` : end.comment;
|
|
247234
247234
|
var require_cst_scalar = __commonJS((exports) => {
|
247235
247235
|
var resolveBlockScalar = require_resolve_block_scalar();
|
247236
247236
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
247237
|
-
var
|
247237
|
+
var errors4 = require_errors3();
|
247238
247238
|
var stringifyString = require_stringifyString();
|
247239
247239
|
function resolveAsScalar(token, strict = true, onError) {
|
247240
247240
|
if (token) {
|
@@ -247243,7 +247243,7 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247243
247243
|
if (onError)
|
247244
247244
|
onError(offset, code2, message);
|
247245
247245
|
else
|
247246
|
-
throw new
|
247246
|
+
throw new errors4.YAMLParseError([offset, offset + 1], code2, message);
|
247247
247247
|
};
|
247248
247248
|
switch (token.type) {
|
247249
247249
|
case "scalar":
|
@@ -247357,9 +247357,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247357
247357
|
if (!addEndtoBlockProps(props, "end" in token ? token.end : undefined))
|
247358
247358
|
props.push({ type: "newline", offset: -1, indent: indent2, source: `
|
247359
247359
|
` });
|
247360
|
-
for (const
|
247361
|
-
if (
|
247362
|
-
delete token[
|
247360
|
+
for (const key4 of Object.keys(token))
|
247361
|
+
if (key4 !== "type" && key4 !== "offset")
|
247362
|
+
delete token[key4];
|
247363
247363
|
Object.assign(token, { type: "block-scalar", indent: indent2, props, source: body });
|
247364
247364
|
}
|
247365
247365
|
}
|
@@ -247408,9 +247408,9 @@ var require_cst_scalar = __commonJS((exports) => {
|
|
247408
247408
|
default: {
|
247409
247409
|
const indent2 = "indent" in token ? token.indent : -1;
|
247410
247410
|
const end = "end" in token && Array.isArray(token.end) ? token.end.filter((st2) => st2.type === "space" || st2.type === "comment" || st2.type === "newline") : [];
|
247411
|
-
for (const
|
247412
|
-
if (
|
247413
|
-
delete token[
|
247411
|
+
for (const key4 of Object.keys(token))
|
247412
|
+
if (key4 !== "type" && key4 !== "offset")
|
247413
|
+
delete token[key4];
|
247414
247414
|
Object.assign(token, { type: type4, indent: indent2, source, end });
|
247415
247415
|
}
|
247416
247416
|
}
|
@@ -247462,12 +247462,12 @@ var require_cst_stringify = __commonJS((exports) => {
|
|
247462
247462
|
}
|
247463
247463
|
}
|
247464
247464
|
}
|
247465
|
-
function stringifyItem({ start: start3, key:
|
247465
|
+
function stringifyItem({ start: start3, key: key4, sep: sep3, value: value4 }) {
|
247466
247466
|
let res = "";
|
247467
247467
|
for (const st2 of start3)
|
247468
247468
|
res += st2.source;
|
247469
|
-
if (
|
247470
|
-
res += stringifyToken(
|
247469
|
+
if (key4)
|
247470
|
+
res += stringifyToken(key4);
|
247471
247471
|
if (sep3)
|
247472
247472
|
for (const st2 of sep3)
|
247473
247473
|
res += st2.source;
|
@@ -248763,7 +248763,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
248763
248763
|
});
|
248764
248764
|
} else if (isFlowToken(it2.key) && !includesToken(it2.sep, "newline")) {
|
248765
248765
|
const start4 = getFirstKeyStartProps(it2.start);
|
248766
|
-
const
|
248766
|
+
const key4 = it2.key;
|
248767
248767
|
const sep3 = it2.sep;
|
248768
248768
|
sep3.push(this.sourceToken);
|
248769
248769
|
delete it2.key;
|
@@ -248772,7 +248772,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
248772
248772
|
type: "block-map",
|
248773
248773
|
offset: this.offset,
|
248774
248774
|
indent: this.indent,
|
248775
|
-
items: [{ start: start4, key:
|
248775
|
+
items: [{ start: start4, key: key4, sep: sep3 }]
|
248776
248776
|
});
|
248777
248777
|
} else if (start3.length > 0) {
|
248778
248778
|
it2.sep = it2.sep.concat(start3, this.sourceToken);
|
@@ -249095,7 +249095,7 @@ var require_parser2 = __commonJS((exports) => {
|
|
249095
249095
|
var require_public_api = __commonJS((exports) => {
|
249096
249096
|
var composer = require_composer();
|
249097
249097
|
var Document = require_Document();
|
249098
|
-
var
|
249098
|
+
var errors4 = require_errors3();
|
249099
249099
|
var log = require_log();
|
249100
249100
|
var identity2 = require_identity();
|
249101
249101
|
var lineCounter = require_line_counter();
|
@@ -249112,8 +249112,8 @@ var require_public_api = __commonJS((exports) => {
|
|
249112
249112
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
249113
249113
|
if (prettyErrors && lineCounter2)
|
249114
249114
|
for (const doc of docs) {
|
249115
|
-
doc.errors.forEach(
|
249116
|
-
doc.warnings.forEach(
|
249115
|
+
doc.errors.forEach(errors4.prettifyError(source, lineCounter2));
|
249116
|
+
doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
|
249117
249117
|
}
|
249118
249118
|
if (docs.length > 0)
|
249119
249119
|
return docs;
|
@@ -249128,13 +249128,13 @@ var require_public_api = __commonJS((exports) => {
|
|
249128
249128
|
if (!doc)
|
249129
249129
|
doc = _doc;
|
249130
249130
|
else if (doc.options.logLevel !== "silent") {
|
249131
|
-
doc.errors.push(new
|
249131
|
+
doc.errors.push(new errors4.YAMLParseError(_doc.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
|
249132
249132
|
break;
|
249133
249133
|
}
|
249134
249134
|
}
|
249135
249135
|
if (prettyErrors && lineCounter2) {
|
249136
|
-
doc.errors.forEach(
|
249137
|
-
doc.warnings.forEach(
|
249136
|
+
doc.errors.forEach(errors4.prettifyError(source, lineCounter2));
|
249137
|
+
doc.warnings.forEach(errors4.prettifyError(source, lineCounter2));
|
249138
249138
|
}
|
249139
249139
|
return doc;
|
249140
249140
|
}
|
@@ -259517,7 +259517,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
259517
259517
|
var package_default = {
|
259518
259518
|
name: "@settlemint/sdk-cli",
|
259519
259519
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
259520
|
-
version: "1.2.2-
|
259520
|
+
version: "1.2.2-prd7c032b8",
|
259521
259521
|
type: "module",
|
259522
259522
|
private: false,
|
259523
259523
|
license: "FSL-1.1-MIT",
|
@@ -259561,13 +259561,13 @@ var package_default = {
|
|
259561
259561
|
},
|
259562
259562
|
devDependencies: {
|
259563
259563
|
"@commander-js/extra-typings": "11.1.0",
|
259564
|
-
commander: "
|
259565
|
-
"@inquirer/confirm": "5.1.
|
259564
|
+
commander: "13.1.0",
|
259565
|
+
"@inquirer/confirm": "5.1.8",
|
259566
259566
|
"@inquirer/input": "4.1.7",
|
259567
|
-
"@inquirer/password": "4.0.
|
259567
|
+
"@inquirer/password": "4.0.11",
|
259568
259568
|
"@inquirer/select": "4.0.10",
|
259569
|
-
"@settlemint/sdk-js": "1.2.2-
|
259570
|
-
"@settlemint/sdk-utils": "1.2.2-
|
259569
|
+
"@settlemint/sdk-js": "1.2.2-prd7c032b8",
|
259570
|
+
"@settlemint/sdk-utils": "1.2.2-prd7c032b8",
|
259571
259571
|
"@types/node": "22.13.10",
|
259572
259572
|
"@types/semver": "7.5.8",
|
259573
259573
|
"@types/which": "3.0.4",
|
@@ -259656,10 +259656,6 @@ var {
|
|
259656
259656
|
} = import__.default;
|
259657
259657
|
|
259658
259658
|
// ../../node_modules/@inquirer/core/dist/esm/lib/key.js
|
259659
|
-
var isUpKey = (key) => key.name === "up" || key.name === "k" || key.ctrl && key.name === "p";
|
259660
|
-
var isDownKey = (key) => key.name === "down" || key.name === "j" || key.ctrl && key.name === "n";
|
259661
|
-
var isBackspaceKey = (key) => key.name === "backspace";
|
259662
|
-
var isNumberKey = (key) => "123456789".includes(key.name);
|
259663
259659
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
259664
259660
|
// ../../node_modules/@inquirer/core/dist/esm/lib/errors.js
|
259665
259661
|
class AbortPromptError extends Error {
|
@@ -260193,22 +260189,11 @@ function usePrefix({ status = "idle", theme }) {
|
|
260193
260189
|
const iconName = status === "loading" ? "idle" : status;
|
260194
260190
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
260195
260191
|
}
|
260196
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
260197
|
-
function useMemo(fn, dependencies) {
|
260198
|
-
return withPointer((pointer) => {
|
260199
|
-
const prev = pointer.get();
|
260200
|
-
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
|
260201
|
-
const value = fn();
|
260202
|
-
pointer.set({ value, dependencies });
|
260203
|
-
return value;
|
260204
|
-
}
|
260205
|
-
return prev.value;
|
260206
|
-
});
|
260207
|
-
}
|
260208
260192
|
// ../../node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
260209
260193
|
function useRef(val) {
|
260210
260194
|
return useState({ current: val })[0];
|
260211
260195
|
}
|
260196
|
+
|
260212
260197
|
// ../../node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
260213
260198
|
function useKeypress(userHandler) {
|
260214
260199
|
const signal = useRef(userHandler);
|
@@ -260240,95 +260225,6 @@ function readlineWidth() {
|
|
260240
260225
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
260241
260226
|
}
|
260242
260227
|
|
260243
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
260244
|
-
function split(content, width) {
|
260245
|
-
return breakLines(content, width).split(`
|
260246
|
-
`);
|
260247
|
-
}
|
260248
|
-
function rotate(count, items) {
|
260249
|
-
const max = items.length;
|
260250
|
-
const offset = (count % max + max) % max;
|
260251
|
-
return [...items.slice(offset), ...items.slice(0, offset)];
|
260252
|
-
}
|
260253
|
-
function lines({ items, width, renderItem, active, position: requested, pageSize }) {
|
260254
|
-
const layouts = items.map((item, index) => ({
|
260255
|
-
item,
|
260256
|
-
index,
|
260257
|
-
isActive: index === active
|
260258
|
-
}));
|
260259
|
-
const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
|
260260
|
-
const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split(renderItem(layoutsInPage[index]), width);
|
260261
|
-
const pageBuffer = Array.from({ length: pageSize });
|
260262
|
-
const activeItem = renderItemAt(requested).slice(0, pageSize);
|
260263
|
-
const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
|
260264
|
-
pageBuffer.splice(position, activeItem.length, ...activeItem);
|
260265
|
-
let bufferPointer = position + activeItem.length;
|
260266
|
-
let layoutPointer = requested + 1;
|
260267
|
-
while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
|
260268
|
-
for (const line of renderItemAt(layoutPointer)) {
|
260269
|
-
pageBuffer[bufferPointer++] = line;
|
260270
|
-
if (bufferPointer >= pageSize)
|
260271
|
-
break;
|
260272
|
-
}
|
260273
|
-
layoutPointer++;
|
260274
|
-
}
|
260275
|
-
bufferPointer = position - 1;
|
260276
|
-
layoutPointer = requested - 1;
|
260277
|
-
while (bufferPointer >= 0 && layoutPointer >= 0) {
|
260278
|
-
for (const line of renderItemAt(layoutPointer).reverse()) {
|
260279
|
-
pageBuffer[bufferPointer--] = line;
|
260280
|
-
if (bufferPointer < 0)
|
260281
|
-
break;
|
260282
|
-
}
|
260283
|
-
layoutPointer--;
|
260284
|
-
}
|
260285
|
-
return pageBuffer.filter((line) => typeof line === "string");
|
260286
|
-
}
|
260287
|
-
|
260288
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
260289
|
-
function finite({ active, pageSize, total }) {
|
260290
|
-
const middle = Math.floor(pageSize / 2);
|
260291
|
-
if (total <= pageSize || active < middle)
|
260292
|
-
return active;
|
260293
|
-
if (active >= total - middle)
|
260294
|
-
return active + pageSize - total;
|
260295
|
-
return middle;
|
260296
|
-
}
|
260297
|
-
function infinite({ active, lastActive, total, pageSize, pointer }) {
|
260298
|
-
if (total <= pageSize)
|
260299
|
-
return active;
|
260300
|
-
if (lastActive < active && active - lastActive < pageSize) {
|
260301
|
-
return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
|
260302
|
-
}
|
260303
|
-
return pointer;
|
260304
|
-
}
|
260305
|
-
|
260306
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
260307
|
-
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
260308
|
-
const state = useRef({ position: 0, lastActive: 0 });
|
260309
|
-
const position = loop ? infinite({
|
260310
|
-
active,
|
260311
|
-
lastActive: state.current.lastActive,
|
260312
|
-
total: items.length,
|
260313
|
-
pageSize,
|
260314
|
-
pointer: state.current.position
|
260315
|
-
}) : finite({
|
260316
|
-
active,
|
260317
|
-
total: items.length,
|
260318
|
-
pageSize
|
260319
|
-
});
|
260320
|
-
state.current.position = position;
|
260321
|
-
state.current.lastActive = active;
|
260322
|
-
return lines({
|
260323
|
-
items,
|
260324
|
-
width: readlineWidth(),
|
260325
|
-
renderItem,
|
260326
|
-
active,
|
260327
|
-
position,
|
260328
|
-
pageSize
|
260329
|
-
}).join(`
|
260330
|
-
`);
|
260331
|
-
}
|
260332
260228
|
// ../../node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
260333
260229
|
var import_mute_stream = __toESM(require_lib(), 1);
|
260334
260230
|
import * as readline2 from "node:readline";
|
@@ -260708,20 +260604,6 @@ function createPrompt(view) {
|
|
260708
260604
|
};
|
260709
260605
|
return prompt;
|
260710
260606
|
}
|
260711
|
-
// ../../node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
260712
|
-
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
260713
|
-
class Separator {
|
260714
|
-
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
260715
|
-
type = "separator";
|
260716
|
-
constructor(separator) {
|
260717
|
-
if (separator) {
|
260718
|
-
this.separator = separator;
|
260719
|
-
}
|
260720
|
-
}
|
260721
|
-
static isSeparator(choice) {
|
260722
|
-
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
260723
|
-
}
|
260724
|
-
}
|
260725
260607
|
// ../utils/dist/terminal.mjs
|
260726
260608
|
import { spawn } from "node:child_process";
|
260727
260609
|
var import_console_table_printer2 = __toESM(require_dist2(), 1);
|
@@ -265042,23 +264924,477 @@ function sanitizeName(value4, length = 35) {
|
|
265042
264924
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
265043
264925
|
}
|
265044
264926
|
|
264927
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/key.js
|
264928
|
+
var isBackspaceKey = (key2) => key2.name === "backspace";
|
264929
|
+
var isEnterKey2 = (key2) => key2.name === "enter" || key2.name === "return";
|
264930
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
264931
|
+
class AbortPromptError2 extends Error {
|
264932
|
+
name = "AbortPromptError";
|
264933
|
+
message = "Prompt was aborted";
|
264934
|
+
constructor(options) {
|
264935
|
+
super();
|
264936
|
+
this.cause = options?.cause;
|
264937
|
+
}
|
264938
|
+
}
|
264939
|
+
|
264940
|
+
class CancelPromptError2 extends Error {
|
264941
|
+
name = "CancelPromptError";
|
264942
|
+
message = "Prompt was canceled";
|
264943
|
+
}
|
264944
|
+
|
264945
|
+
class ExitPromptError2 extends Error {
|
264946
|
+
name = "ExitPromptError";
|
264947
|
+
}
|
264948
|
+
|
264949
|
+
class HookError2 extends Error {
|
264950
|
+
name = "HookError";
|
264951
|
+
}
|
264952
|
+
|
264953
|
+
class ValidationError2 extends Error {
|
264954
|
+
name = "ValidationError";
|
264955
|
+
}
|
264956
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
264957
|
+
import { AsyncResource as AsyncResource5 } from "node:async_hooks";
|
264958
|
+
|
264959
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
264960
|
+
import { AsyncLocalStorage as AsyncLocalStorage2, AsyncResource as AsyncResource4 } from "node:async_hooks";
|
264961
|
+
var hookStorage2 = new AsyncLocalStorage2;
|
264962
|
+
function createStore2(rl) {
|
264963
|
+
const store = {
|
264964
|
+
rl,
|
264965
|
+
hooks: [],
|
264966
|
+
hooksCleanup: [],
|
264967
|
+
hooksEffect: [],
|
264968
|
+
index: 0,
|
264969
|
+
handleChange() {}
|
264970
|
+
};
|
264971
|
+
return store;
|
264972
|
+
}
|
264973
|
+
function withHooks2(rl, cb) {
|
264974
|
+
const store = createStore2(rl);
|
264975
|
+
return hookStorage2.run(store, () => {
|
264976
|
+
function cycle(render) {
|
264977
|
+
store.handleChange = () => {
|
264978
|
+
store.index = 0;
|
264979
|
+
render();
|
264980
|
+
};
|
264981
|
+
store.handleChange();
|
264982
|
+
}
|
264983
|
+
return cb(cycle);
|
264984
|
+
});
|
264985
|
+
}
|
264986
|
+
function getStore2() {
|
264987
|
+
const store = hookStorage2.getStore();
|
264988
|
+
if (!store) {
|
264989
|
+
throw new HookError2("[Inquirer] Hook functions can only be called from within a prompt");
|
264990
|
+
}
|
264991
|
+
return store;
|
264992
|
+
}
|
264993
|
+
function readline3() {
|
264994
|
+
return getStore2().rl;
|
264995
|
+
}
|
264996
|
+
function withUpdates2(fn) {
|
264997
|
+
const wrapped = (...args) => {
|
264998
|
+
const store = getStore2();
|
264999
|
+
let shouldUpdate = false;
|
265000
|
+
const oldHandleChange = store.handleChange;
|
265001
|
+
store.handleChange = () => {
|
265002
|
+
shouldUpdate = true;
|
265003
|
+
};
|
265004
|
+
const returnValue = fn(...args);
|
265005
|
+
if (shouldUpdate) {
|
265006
|
+
oldHandleChange();
|
265007
|
+
}
|
265008
|
+
store.handleChange = oldHandleChange;
|
265009
|
+
return returnValue;
|
265010
|
+
};
|
265011
|
+
return AsyncResource4.bind(wrapped);
|
265012
|
+
}
|
265013
|
+
function withPointer2(cb) {
|
265014
|
+
const store = getStore2();
|
265015
|
+
const { index } = store;
|
265016
|
+
const pointer = {
|
265017
|
+
get() {
|
265018
|
+
return store.hooks[index];
|
265019
|
+
},
|
265020
|
+
set(value4) {
|
265021
|
+
store.hooks[index] = value4;
|
265022
|
+
},
|
265023
|
+
initialized: index in store.hooks
|
265024
|
+
};
|
265025
|
+
const returnValue = cb(pointer);
|
265026
|
+
store.index++;
|
265027
|
+
return returnValue;
|
265028
|
+
}
|
265029
|
+
function handleChange2() {
|
265030
|
+
getStore2().handleChange();
|
265031
|
+
}
|
265032
|
+
var effectScheduler2 = {
|
265033
|
+
queue(cb) {
|
265034
|
+
const store = getStore2();
|
265035
|
+
const { index } = store;
|
265036
|
+
store.hooksEffect.push(() => {
|
265037
|
+
store.hooksCleanup[index]?.();
|
265038
|
+
const cleanFn = cb(readline3());
|
265039
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
265040
|
+
throw new ValidationError2("useEffect return value must be a cleanup function or nothing.");
|
265041
|
+
}
|
265042
|
+
store.hooksCleanup[index] = cleanFn;
|
265043
|
+
});
|
265044
|
+
},
|
265045
|
+
run() {
|
265046
|
+
const store = getStore2();
|
265047
|
+
withUpdates2(() => {
|
265048
|
+
store.hooksEffect.forEach((effect) => {
|
265049
|
+
effect();
|
265050
|
+
});
|
265051
|
+
store.hooksEffect.length = 0;
|
265052
|
+
})();
|
265053
|
+
},
|
265054
|
+
clearAll() {
|
265055
|
+
const store = getStore2();
|
265056
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
265057
|
+
cleanFn?.();
|
265058
|
+
});
|
265059
|
+
store.hooksEffect.length = 0;
|
265060
|
+
store.hooksCleanup.length = 0;
|
265061
|
+
}
|
265062
|
+
};
|
265063
|
+
|
265064
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
265065
|
+
function useState2(defaultValue) {
|
265066
|
+
return withPointer2((pointer) => {
|
265067
|
+
const setFn = (newValue) => {
|
265068
|
+
if (pointer.get() !== newValue) {
|
265069
|
+
pointer.set(newValue);
|
265070
|
+
handleChange2();
|
265071
|
+
}
|
265072
|
+
};
|
265073
|
+
if (pointer.initialized) {
|
265074
|
+
return [pointer.get(), setFn];
|
265075
|
+
}
|
265076
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
265077
|
+
pointer.set(value4);
|
265078
|
+
return [value4, setFn];
|
265079
|
+
});
|
265080
|
+
}
|
265081
|
+
|
265082
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
265083
|
+
function useEffect2(cb, depArray) {
|
265084
|
+
withPointer2((pointer) => {
|
265085
|
+
const oldDeps = pointer.get();
|
265086
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
265087
|
+
if (hasChanged) {
|
265088
|
+
effectScheduler2.queue(cb);
|
265089
|
+
}
|
265090
|
+
pointer.set(depArray);
|
265091
|
+
});
|
265092
|
+
}
|
265093
|
+
|
265094
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
265095
|
+
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
265096
|
+
var defaultTheme2 = {
|
265097
|
+
prefix: {
|
265098
|
+
idle: import_yoctocolors_cjs2.default.blue("?"),
|
265099
|
+
done: import_yoctocolors_cjs2.default.green(esm_default.tick)
|
265100
|
+
},
|
265101
|
+
spinner: {
|
265102
|
+
interval: 80,
|
265103
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs2.default.yellow(frame))
|
265104
|
+
},
|
265105
|
+
style: {
|
265106
|
+
answer: import_yoctocolors_cjs2.default.cyan,
|
265107
|
+
message: import_yoctocolors_cjs2.default.bold,
|
265108
|
+
error: (text2) => import_yoctocolors_cjs2.default.red(`> ${text2}`),
|
265109
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs2.default.dim(`(${text2})`),
|
265110
|
+
help: import_yoctocolors_cjs2.default.dim,
|
265111
|
+
highlight: import_yoctocolors_cjs2.default.cyan,
|
265112
|
+
key: (text2) => import_yoctocolors_cjs2.default.cyan(import_yoctocolors_cjs2.default.bold(`<${text2}>`))
|
265113
|
+
}
|
265114
|
+
};
|
265115
|
+
|
265116
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
265117
|
+
function isPlainObject3(value4) {
|
265118
|
+
if (typeof value4 !== "object" || value4 === null)
|
265119
|
+
return false;
|
265120
|
+
let proto = value4;
|
265121
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
265122
|
+
proto = Object.getPrototypeOf(proto);
|
265123
|
+
}
|
265124
|
+
return Object.getPrototypeOf(value4) === proto;
|
265125
|
+
}
|
265126
|
+
function deepMerge3(...objects) {
|
265127
|
+
const output = {};
|
265128
|
+
for (const obj of objects) {
|
265129
|
+
for (const [key2, value4] of Object.entries(obj)) {
|
265130
|
+
const prevValue = output[key2];
|
265131
|
+
output[key2] = isPlainObject3(prevValue) && isPlainObject3(value4) ? deepMerge3(prevValue, value4) : value4;
|
265132
|
+
}
|
265133
|
+
}
|
265134
|
+
return output;
|
265135
|
+
}
|
265136
|
+
function makeTheme2(...themes) {
|
265137
|
+
const themesToMerge = [
|
265138
|
+
defaultTheme2,
|
265139
|
+
...themes.filter((theme) => theme != null)
|
265140
|
+
];
|
265141
|
+
return deepMerge3(...themesToMerge);
|
265142
|
+
}
|
265143
|
+
|
265144
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
265145
|
+
function usePrefix2({ status = "idle", theme }) {
|
265146
|
+
const [showLoader, setShowLoader] = useState2(false);
|
265147
|
+
const [tick, setTick] = useState2(0);
|
265148
|
+
const { prefix, spinner: spinner2 } = makeTheme2(theme);
|
265149
|
+
useEffect2(() => {
|
265150
|
+
if (status === "loading") {
|
265151
|
+
let tickInterval;
|
265152
|
+
let inc = -1;
|
265153
|
+
const delayTimeout = setTimeout(AsyncResource5.bind(() => {
|
265154
|
+
setShowLoader(true);
|
265155
|
+
tickInterval = setInterval(AsyncResource5.bind(() => {
|
265156
|
+
inc = inc + 1;
|
265157
|
+
setTick(inc % spinner2.frames.length);
|
265158
|
+
}), spinner2.interval);
|
265159
|
+
}), 300);
|
265160
|
+
return () => {
|
265161
|
+
clearTimeout(delayTimeout);
|
265162
|
+
clearInterval(tickInterval);
|
265163
|
+
};
|
265164
|
+
} else {
|
265165
|
+
setShowLoader(false);
|
265166
|
+
}
|
265167
|
+
}, [status]);
|
265168
|
+
if (showLoader) {
|
265169
|
+
return spinner2.frames[tick];
|
265170
|
+
}
|
265171
|
+
const iconName = status === "loading" ? "idle" : status;
|
265172
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
265173
|
+
}
|
265174
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
265175
|
+
function useRef2(val) {
|
265176
|
+
return useState2({ current: val })[0];
|
265177
|
+
}
|
265178
|
+
|
265179
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
265180
|
+
function useKeypress2(userHandler) {
|
265181
|
+
const signal = useRef2(userHandler);
|
265182
|
+
signal.current = userHandler;
|
265183
|
+
useEffect2((rl) => {
|
265184
|
+
let ignore = false;
|
265185
|
+
const handler = withUpdates2((_input, event) => {
|
265186
|
+
if (ignore)
|
265187
|
+
return;
|
265188
|
+
signal.current(event, rl);
|
265189
|
+
});
|
265190
|
+
rl.input.on("keypress", handler);
|
265191
|
+
return () => {
|
265192
|
+
ignore = true;
|
265193
|
+
rl.input.removeListener("keypress", handler);
|
265194
|
+
};
|
265195
|
+
}, []);
|
265196
|
+
}
|
265197
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
265198
|
+
var import_cli_width2 = __toESM(require_cli_width(), 1);
|
265199
|
+
var import_wrap_ansi2 = __toESM(require_wrap_ansi(), 1);
|
265200
|
+
function breakLines2(content, width) {
|
265201
|
+
return content.split(`
|
265202
|
+
`).flatMap((line) => import_wrap_ansi2.default(line, width, { trim: false, hard: true }).split(`
|
265203
|
+
`).map((str) => str.trimEnd())).join(`
|
265204
|
+
`);
|
265205
|
+
}
|
265206
|
+
function readlineWidth2() {
|
265207
|
+
return import_cli_width2.default({ defaultWidth: 80, output: readline3().output });
|
265208
|
+
}
|
265209
|
+
|
265210
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
265211
|
+
var import_mute_stream2 = __toESM(require_lib(), 1);
|
265212
|
+
import * as readline4 from "node:readline";
|
265213
|
+
import { AsyncResource as AsyncResource6 } from "node:async_hooks";
|
265214
|
+
|
265215
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
265216
|
+
var import_ansi_escapes2 = __toESM(require_ansi_escapes(), 1);
|
265217
|
+
import { stripVTControlCharacters as stripVTControlCharacters3 } from "node:util";
|
265218
|
+
var height2 = (content) => content.split(`
|
265219
|
+
`).length;
|
265220
|
+
var lastLine2 = (content) => content.split(`
|
265221
|
+
`).pop() ?? "";
|
265222
|
+
function cursorDown2(n6) {
|
265223
|
+
return n6 > 0 ? import_ansi_escapes2.default.cursorDown(n6) : "";
|
265224
|
+
}
|
265225
|
+
|
265226
|
+
class ScreenManager2 {
|
265227
|
+
height = 0;
|
265228
|
+
extraLinesUnderPrompt = 0;
|
265229
|
+
cursorPos;
|
265230
|
+
rl;
|
265231
|
+
constructor(rl) {
|
265232
|
+
this.rl = rl;
|
265233
|
+
this.cursorPos = rl.getCursorPos();
|
265234
|
+
}
|
265235
|
+
write(content) {
|
265236
|
+
this.rl.output.unmute();
|
265237
|
+
this.rl.output.write(content);
|
265238
|
+
this.rl.output.mute();
|
265239
|
+
}
|
265240
|
+
render(content, bottomContent = "") {
|
265241
|
+
const promptLine = lastLine2(content);
|
265242
|
+
const rawPromptLine = stripVTControlCharacters3(promptLine);
|
265243
|
+
let prompt = rawPromptLine;
|
265244
|
+
if (this.rl.line.length > 0) {
|
265245
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
265246
|
+
}
|
265247
|
+
this.rl.setPrompt(prompt);
|
265248
|
+
this.cursorPos = this.rl.getCursorPos();
|
265249
|
+
const width = readlineWidth2();
|
265250
|
+
content = breakLines2(content, width);
|
265251
|
+
bottomContent = breakLines2(bottomContent, width);
|
265252
|
+
if (rawPromptLine.length % width === 0) {
|
265253
|
+
content += `
|
265254
|
+
`;
|
265255
|
+
}
|
265256
|
+
let output = content + (bottomContent ? `
|
265257
|
+
` + bottomContent : "");
|
265258
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
265259
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height2(bottomContent) : 0);
|
265260
|
+
if (bottomContentHeight > 0)
|
265261
|
+
output += import_ansi_escapes2.default.cursorUp(bottomContentHeight);
|
265262
|
+
output += import_ansi_escapes2.default.cursorTo(this.cursorPos.cols);
|
265263
|
+
this.write(cursorDown2(this.extraLinesUnderPrompt) + import_ansi_escapes2.default.eraseLines(this.height) + output);
|
265264
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
265265
|
+
this.height = height2(output);
|
265266
|
+
}
|
265267
|
+
checkCursorPos() {
|
265268
|
+
const cursorPos = this.rl.getCursorPos();
|
265269
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
265270
|
+
this.write(import_ansi_escapes2.default.cursorTo(cursorPos.cols));
|
265271
|
+
this.cursorPos = cursorPos;
|
265272
|
+
}
|
265273
|
+
}
|
265274
|
+
done({ clearContent }) {
|
265275
|
+
this.rl.setPrompt("");
|
265276
|
+
let output = cursorDown2(this.extraLinesUnderPrompt);
|
265277
|
+
output += clearContent ? import_ansi_escapes2.default.eraseLines(this.height) : `
|
265278
|
+
`;
|
265279
|
+
output += import_ansi_escapes2.default.cursorShow;
|
265280
|
+
this.write(output);
|
265281
|
+
this.rl.close();
|
265282
|
+
}
|
265283
|
+
}
|
265284
|
+
|
265285
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
265286
|
+
class PromisePolyfill2 extends Promise {
|
265287
|
+
static withResolver() {
|
265288
|
+
let resolve5;
|
265289
|
+
let reject;
|
265290
|
+
const promise = new Promise((res, rej) => {
|
265291
|
+
resolve5 = res;
|
265292
|
+
reject = rej;
|
265293
|
+
});
|
265294
|
+
return { promise, resolve: resolve5, reject };
|
265295
|
+
}
|
265296
|
+
}
|
265297
|
+
|
265298
|
+
// ../../node_modules/@inquirer/input/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
265299
|
+
function getCallSites2() {
|
265300
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
265301
|
+
let result = [];
|
265302
|
+
try {
|
265303
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
265304
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
265305
|
+
result = callSitesWithoutCurrent;
|
265306
|
+
return callSitesWithoutCurrent;
|
265307
|
+
};
|
265308
|
+
new Error().stack;
|
265309
|
+
} catch {
|
265310
|
+
return result;
|
265311
|
+
}
|
265312
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
265313
|
+
return result;
|
265314
|
+
}
|
265315
|
+
function createPrompt2(view) {
|
265316
|
+
const callSites = getCallSites2();
|
265317
|
+
const prompt = (config3, context = {}) => {
|
265318
|
+
const { input = process.stdin, signal } = context;
|
265319
|
+
const cleanups = new Set;
|
265320
|
+
const output = new import_mute_stream2.default;
|
265321
|
+
output.pipe(context.output ?? process.stdout);
|
265322
|
+
const rl = readline4.createInterface({
|
265323
|
+
terminal: true,
|
265324
|
+
input,
|
265325
|
+
output
|
265326
|
+
});
|
265327
|
+
const screen = new ScreenManager2(rl);
|
265328
|
+
const { promise, resolve: resolve5, reject } = PromisePolyfill2.withResolver();
|
265329
|
+
const cancel3 = () => reject(new CancelPromptError2);
|
265330
|
+
if (signal) {
|
265331
|
+
const abort = () => reject(new AbortPromptError2({ cause: signal.reason }));
|
265332
|
+
if (signal.aborted) {
|
265333
|
+
abort();
|
265334
|
+
return Object.assign(promise, { cancel: cancel3 });
|
265335
|
+
}
|
265336
|
+
signal.addEventListener("abort", abort);
|
265337
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
265338
|
+
}
|
265339
|
+
cleanups.add(onExit((code2, signal2) => {
|
265340
|
+
reject(new ExitPromptError2(`User force closed the prompt with ${code2} ${signal2}`));
|
265341
|
+
}));
|
265342
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
265343
|
+
rl.input.on("keypress", checkCursorPos);
|
265344
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
265345
|
+
return withHooks2(rl, (cycle) => {
|
265346
|
+
const hooksCleanup = AsyncResource6.bind(() => effectScheduler2.clearAll());
|
265347
|
+
rl.on("close", hooksCleanup);
|
265348
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
265349
|
+
cycle(() => {
|
265350
|
+
try {
|
265351
|
+
const nextView = view(config3, (value4) => {
|
265352
|
+
setImmediate(() => resolve5(value4));
|
265353
|
+
});
|
265354
|
+
if (nextView === undefined) {
|
265355
|
+
const callerFilename = callSites[1]?.getFileName?.();
|
265356
|
+
throw new Error(`Prompt functions must return a string.
|
265357
|
+
at ${callerFilename}`);
|
265358
|
+
}
|
265359
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
265360
|
+
screen.render(content, bottomContent);
|
265361
|
+
effectScheduler2.run();
|
265362
|
+
} catch (error5) {
|
265363
|
+
reject(error5);
|
265364
|
+
}
|
265365
|
+
});
|
265366
|
+
return Object.assign(promise.then((answer) => {
|
265367
|
+
effectScheduler2.clearAll();
|
265368
|
+
return answer;
|
265369
|
+
}, (error5) => {
|
265370
|
+
effectScheduler2.clearAll();
|
265371
|
+
throw error5;
|
265372
|
+
}).finally(() => {
|
265373
|
+
cleanups.forEach((cleanup) => cleanup());
|
265374
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
265375
|
+
output.end();
|
265376
|
+
}).then(() => promise), { cancel: cancel3 });
|
265377
|
+
});
|
265378
|
+
};
|
265379
|
+
return prompt;
|
265380
|
+
}
|
265045
265381
|
// ../../node_modules/@inquirer/input/dist/esm/index.js
|
265046
265382
|
var inputTheme = {
|
265047
265383
|
validationFailureMode: "keep"
|
265048
265384
|
};
|
265049
|
-
var esm_default2 =
|
265385
|
+
var esm_default2 = createPrompt2((config3, done) => {
|
265050
265386
|
const { required, validate: validate3 = () => true } = config3;
|
265051
|
-
const theme =
|
265052
|
-
const [status, setStatus] =
|
265053
|
-
const [defaultValue = "", setDefaultValue] =
|
265054
|
-
const [errorMsg, setError] =
|
265055
|
-
const [value4, setValue] =
|
265056
|
-
const prefix =
|
265057
|
-
|
265387
|
+
const theme = makeTheme2(inputTheme, config3.theme);
|
265388
|
+
const [status, setStatus] = useState2("idle");
|
265389
|
+
const [defaultValue = "", setDefaultValue] = useState2(config3.default);
|
265390
|
+
const [errorMsg, setError] = useState2();
|
265391
|
+
const [value4, setValue] = useState2("");
|
265392
|
+
const prefix = usePrefix2({ status, theme });
|
265393
|
+
useKeypress2(async (key3, rl) => {
|
265058
265394
|
if (status !== "idle") {
|
265059
265395
|
return;
|
265060
265396
|
}
|
265061
|
-
if (
|
265397
|
+
if (isEnterKey2(key3)) {
|
265062
265398
|
const answer = value4 || defaultValue;
|
265063
265399
|
setStatus("loading");
|
265064
265400
|
const isValid2 = required && !answer ? "You must provide a value" : await validate3(answer);
|
@@ -265075,9 +265411,9 @@ var esm_default2 = createPrompt((config3, done) => {
|
|
265075
265411
|
setError(isValid2 || "You must provide a valid value");
|
265076
265412
|
setStatus("idle");
|
265077
265413
|
}
|
265078
|
-
} else if (isBackspaceKey(
|
265414
|
+
} else if (isBackspaceKey(key3) && !value4) {
|
265079
265415
|
setDefaultValue(undefined);
|
265080
|
-
} else if (
|
265416
|
+
} else if (key3.name === "tab" && !value4) {
|
265081
265417
|
setDefaultValue(undefined);
|
265082
265418
|
rl.clearLine(0);
|
265083
265419
|
rl.write(defaultValue);
|
@@ -265126,14 +265462,585 @@ async function subgraphNamePrompt({
|
|
265126
265462
|
return sanitizeName(subgraphName);
|
265127
265463
|
}
|
265128
265464
|
|
265129
|
-
// ../../node_modules/@inquirer/select/dist/esm/
|
265465
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/key.js
|
265466
|
+
var isUpKey = (key3) => key3.name === "up" || key3.name === "k" || key3.ctrl && key3.name === "p";
|
265467
|
+
var isDownKey = (key3) => key3.name === "down" || key3.name === "j" || key3.ctrl && key3.name === "n";
|
265468
|
+
var isBackspaceKey2 = (key3) => key3.name === "backspace";
|
265469
|
+
var isNumberKey = (key3) => "123456789".includes(key3.name);
|
265470
|
+
var isEnterKey3 = (key3) => key3.name === "enter" || key3.name === "return";
|
265471
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
265472
|
+
class AbortPromptError3 extends Error {
|
265473
|
+
name = "AbortPromptError";
|
265474
|
+
message = "Prompt was aborted";
|
265475
|
+
constructor(options) {
|
265476
|
+
super();
|
265477
|
+
this.cause = options?.cause;
|
265478
|
+
}
|
265479
|
+
}
|
265480
|
+
|
265481
|
+
class CancelPromptError3 extends Error {
|
265482
|
+
name = "CancelPromptError";
|
265483
|
+
message = "Prompt was canceled";
|
265484
|
+
}
|
265485
|
+
|
265486
|
+
class ExitPromptError3 extends Error {
|
265487
|
+
name = "ExitPromptError";
|
265488
|
+
}
|
265489
|
+
|
265490
|
+
class HookError3 extends Error {
|
265491
|
+
name = "HookError";
|
265492
|
+
}
|
265493
|
+
|
265494
|
+
class ValidationError3 extends Error {
|
265495
|
+
name = "ValidationError";
|
265496
|
+
}
|
265497
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
265498
|
+
import { AsyncResource as AsyncResource8 } from "node:async_hooks";
|
265499
|
+
|
265500
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
265501
|
+
import { AsyncLocalStorage as AsyncLocalStorage3, AsyncResource as AsyncResource7 } from "node:async_hooks";
|
265502
|
+
var hookStorage3 = new AsyncLocalStorage3;
|
265503
|
+
function createStore3(rl) {
|
265504
|
+
const store = {
|
265505
|
+
rl,
|
265506
|
+
hooks: [],
|
265507
|
+
hooksCleanup: [],
|
265508
|
+
hooksEffect: [],
|
265509
|
+
index: 0,
|
265510
|
+
handleChange() {}
|
265511
|
+
};
|
265512
|
+
return store;
|
265513
|
+
}
|
265514
|
+
function withHooks3(rl, cb) {
|
265515
|
+
const store = createStore3(rl);
|
265516
|
+
return hookStorage3.run(store, () => {
|
265517
|
+
function cycle(render) {
|
265518
|
+
store.handleChange = () => {
|
265519
|
+
store.index = 0;
|
265520
|
+
render();
|
265521
|
+
};
|
265522
|
+
store.handleChange();
|
265523
|
+
}
|
265524
|
+
return cb(cycle);
|
265525
|
+
});
|
265526
|
+
}
|
265527
|
+
function getStore3() {
|
265528
|
+
const store = hookStorage3.getStore();
|
265529
|
+
if (!store) {
|
265530
|
+
throw new HookError3("[Inquirer] Hook functions can only be called from within a prompt");
|
265531
|
+
}
|
265532
|
+
return store;
|
265533
|
+
}
|
265534
|
+
function readline5() {
|
265535
|
+
return getStore3().rl;
|
265536
|
+
}
|
265537
|
+
function withUpdates3(fn) {
|
265538
|
+
const wrapped = (...args) => {
|
265539
|
+
const store = getStore3();
|
265540
|
+
let shouldUpdate = false;
|
265541
|
+
const oldHandleChange = store.handleChange;
|
265542
|
+
store.handleChange = () => {
|
265543
|
+
shouldUpdate = true;
|
265544
|
+
};
|
265545
|
+
const returnValue = fn(...args);
|
265546
|
+
if (shouldUpdate) {
|
265547
|
+
oldHandleChange();
|
265548
|
+
}
|
265549
|
+
store.handleChange = oldHandleChange;
|
265550
|
+
return returnValue;
|
265551
|
+
};
|
265552
|
+
return AsyncResource7.bind(wrapped);
|
265553
|
+
}
|
265554
|
+
function withPointer3(cb) {
|
265555
|
+
const store = getStore3();
|
265556
|
+
const { index } = store;
|
265557
|
+
const pointer = {
|
265558
|
+
get() {
|
265559
|
+
return store.hooks[index];
|
265560
|
+
},
|
265561
|
+
set(value4) {
|
265562
|
+
store.hooks[index] = value4;
|
265563
|
+
},
|
265564
|
+
initialized: index in store.hooks
|
265565
|
+
};
|
265566
|
+
const returnValue = cb(pointer);
|
265567
|
+
store.index++;
|
265568
|
+
return returnValue;
|
265569
|
+
}
|
265570
|
+
function handleChange3() {
|
265571
|
+
getStore3().handleChange();
|
265572
|
+
}
|
265573
|
+
var effectScheduler3 = {
|
265574
|
+
queue(cb) {
|
265575
|
+
const store = getStore3();
|
265576
|
+
const { index } = store;
|
265577
|
+
store.hooksEffect.push(() => {
|
265578
|
+
store.hooksCleanup[index]?.();
|
265579
|
+
const cleanFn = cb(readline5());
|
265580
|
+
if (cleanFn != null && typeof cleanFn !== "function") {
|
265581
|
+
throw new ValidationError3("useEffect return value must be a cleanup function or nothing.");
|
265582
|
+
}
|
265583
|
+
store.hooksCleanup[index] = cleanFn;
|
265584
|
+
});
|
265585
|
+
},
|
265586
|
+
run() {
|
265587
|
+
const store = getStore3();
|
265588
|
+
withUpdates3(() => {
|
265589
|
+
store.hooksEffect.forEach((effect) => {
|
265590
|
+
effect();
|
265591
|
+
});
|
265592
|
+
store.hooksEffect.length = 0;
|
265593
|
+
})();
|
265594
|
+
},
|
265595
|
+
clearAll() {
|
265596
|
+
const store = getStore3();
|
265597
|
+
store.hooksCleanup.forEach((cleanFn) => {
|
265598
|
+
cleanFn?.();
|
265599
|
+
});
|
265600
|
+
store.hooksEffect.length = 0;
|
265601
|
+
store.hooksCleanup.length = 0;
|
265602
|
+
}
|
265603
|
+
};
|
265604
|
+
|
265605
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
265606
|
+
function useState3(defaultValue) {
|
265607
|
+
return withPointer3((pointer) => {
|
265608
|
+
const setFn = (newValue) => {
|
265609
|
+
if (pointer.get() !== newValue) {
|
265610
|
+
pointer.set(newValue);
|
265611
|
+
handleChange3();
|
265612
|
+
}
|
265613
|
+
};
|
265614
|
+
if (pointer.initialized) {
|
265615
|
+
return [pointer.get(), setFn];
|
265616
|
+
}
|
265617
|
+
const value4 = typeof defaultValue === "function" ? defaultValue() : defaultValue;
|
265618
|
+
pointer.set(value4);
|
265619
|
+
return [value4, setFn];
|
265620
|
+
});
|
265621
|
+
}
|
265622
|
+
|
265623
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
265624
|
+
function useEffect3(cb, depArray) {
|
265625
|
+
withPointer3((pointer) => {
|
265626
|
+
const oldDeps = pointer.get();
|
265627
|
+
const hasChanged = !Array.isArray(oldDeps) || depArray.some((dep, i6) => !Object.is(dep, oldDeps[i6]));
|
265628
|
+
if (hasChanged) {
|
265629
|
+
effectScheduler3.queue(cb);
|
265630
|
+
}
|
265631
|
+
pointer.set(depArray);
|
265632
|
+
});
|
265633
|
+
}
|
265634
|
+
|
265635
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
265130
265636
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
265131
|
-
var
|
265637
|
+
var defaultTheme3 = {
|
265638
|
+
prefix: {
|
265639
|
+
idle: import_yoctocolors_cjs3.default.blue("?"),
|
265640
|
+
done: import_yoctocolors_cjs3.default.green(esm_default.tick)
|
265641
|
+
},
|
265642
|
+
spinner: {
|
265643
|
+
interval: 80,
|
265644
|
+
frames: ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"].map((frame) => import_yoctocolors_cjs3.default.yellow(frame))
|
265645
|
+
},
|
265646
|
+
style: {
|
265647
|
+
answer: import_yoctocolors_cjs3.default.cyan,
|
265648
|
+
message: import_yoctocolors_cjs3.default.bold,
|
265649
|
+
error: (text2) => import_yoctocolors_cjs3.default.red(`> ${text2}`),
|
265650
|
+
defaultAnswer: (text2) => import_yoctocolors_cjs3.default.dim(`(${text2})`),
|
265651
|
+
help: import_yoctocolors_cjs3.default.dim,
|
265652
|
+
highlight: import_yoctocolors_cjs3.default.cyan,
|
265653
|
+
key: (text2) => import_yoctocolors_cjs3.default.cyan(import_yoctocolors_cjs3.default.bold(`<${text2}>`))
|
265654
|
+
}
|
265655
|
+
};
|
265656
|
+
|
265657
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
265658
|
+
function isPlainObject4(value4) {
|
265659
|
+
if (typeof value4 !== "object" || value4 === null)
|
265660
|
+
return false;
|
265661
|
+
let proto = value4;
|
265662
|
+
while (Object.getPrototypeOf(proto) !== null) {
|
265663
|
+
proto = Object.getPrototypeOf(proto);
|
265664
|
+
}
|
265665
|
+
return Object.getPrototypeOf(value4) === proto;
|
265666
|
+
}
|
265667
|
+
function deepMerge4(...objects) {
|
265668
|
+
const output = {};
|
265669
|
+
for (const obj of objects) {
|
265670
|
+
for (const [key3, value4] of Object.entries(obj)) {
|
265671
|
+
const prevValue = output[key3];
|
265672
|
+
output[key3] = isPlainObject4(prevValue) && isPlainObject4(value4) ? deepMerge4(prevValue, value4) : value4;
|
265673
|
+
}
|
265674
|
+
}
|
265675
|
+
return output;
|
265676
|
+
}
|
265677
|
+
function makeTheme3(...themes) {
|
265678
|
+
const themesToMerge = [
|
265679
|
+
defaultTheme3,
|
265680
|
+
...themes.filter((theme) => theme != null)
|
265681
|
+
];
|
265682
|
+
return deepMerge4(...themesToMerge);
|
265683
|
+
}
|
265684
|
+
|
265685
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
265686
|
+
function usePrefix3({ status = "idle", theme }) {
|
265687
|
+
const [showLoader, setShowLoader] = useState3(false);
|
265688
|
+
const [tick, setTick] = useState3(0);
|
265689
|
+
const { prefix, spinner: spinner2 } = makeTheme3(theme);
|
265690
|
+
useEffect3(() => {
|
265691
|
+
if (status === "loading") {
|
265692
|
+
let tickInterval;
|
265693
|
+
let inc = -1;
|
265694
|
+
const delayTimeout = setTimeout(AsyncResource8.bind(() => {
|
265695
|
+
setShowLoader(true);
|
265696
|
+
tickInterval = setInterval(AsyncResource8.bind(() => {
|
265697
|
+
inc = inc + 1;
|
265698
|
+
setTick(inc % spinner2.frames.length);
|
265699
|
+
}), spinner2.interval);
|
265700
|
+
}), 300);
|
265701
|
+
return () => {
|
265702
|
+
clearTimeout(delayTimeout);
|
265703
|
+
clearInterval(tickInterval);
|
265704
|
+
};
|
265705
|
+
} else {
|
265706
|
+
setShowLoader(false);
|
265707
|
+
}
|
265708
|
+
}, [status]);
|
265709
|
+
if (showLoader) {
|
265710
|
+
return spinner2.frames[tick];
|
265711
|
+
}
|
265712
|
+
const iconName = status === "loading" ? "idle" : status;
|
265713
|
+
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
265714
|
+
}
|
265715
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
265716
|
+
function useMemo(fn, dependencies) {
|
265717
|
+
return withPointer3((pointer) => {
|
265718
|
+
const prev = pointer.get();
|
265719
|
+
if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i6) => dep !== dependencies[i6])) {
|
265720
|
+
const value4 = fn();
|
265721
|
+
pointer.set({ value: value4, dependencies });
|
265722
|
+
return value4;
|
265723
|
+
}
|
265724
|
+
return prev.value;
|
265725
|
+
});
|
265726
|
+
}
|
265727
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
265728
|
+
function useRef3(val) {
|
265729
|
+
return useState3({ current: val })[0];
|
265730
|
+
}
|
265731
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
265732
|
+
function useKeypress3(userHandler) {
|
265733
|
+
const signal = useRef3(userHandler);
|
265734
|
+
signal.current = userHandler;
|
265735
|
+
useEffect3((rl) => {
|
265736
|
+
let ignore = false;
|
265737
|
+
const handler = withUpdates3((_input, event) => {
|
265738
|
+
if (ignore)
|
265739
|
+
return;
|
265740
|
+
signal.current(event, rl);
|
265741
|
+
});
|
265742
|
+
rl.input.on("keypress", handler);
|
265743
|
+
return () => {
|
265744
|
+
ignore = true;
|
265745
|
+
rl.input.removeListener("keypress", handler);
|
265746
|
+
};
|
265747
|
+
}, []);
|
265748
|
+
}
|
265749
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
265750
|
+
var import_cli_width3 = __toESM(require_cli_width(), 1);
|
265751
|
+
var import_wrap_ansi3 = __toESM(require_wrap_ansi(), 1);
|
265752
|
+
function breakLines3(content, width) {
|
265753
|
+
return content.split(`
|
265754
|
+
`).flatMap((line) => import_wrap_ansi3.default(line, width, { trim: false, hard: true }).split(`
|
265755
|
+
`).map((str) => str.trimEnd())).join(`
|
265756
|
+
`);
|
265757
|
+
}
|
265758
|
+
function readlineWidth3() {
|
265759
|
+
return import_cli_width3.default({ defaultWidth: 80, output: readline5().output });
|
265760
|
+
}
|
265761
|
+
|
265762
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/lines.js
|
265763
|
+
function split2(content, width) {
|
265764
|
+
return breakLines3(content, width).split(`
|
265765
|
+
`);
|
265766
|
+
}
|
265767
|
+
function rotate(count, items) {
|
265768
|
+
const max = items.length;
|
265769
|
+
const offset = (count % max + max) % max;
|
265770
|
+
return [...items.slice(offset), ...items.slice(0, offset)];
|
265771
|
+
}
|
265772
|
+
function lines({ items, width, renderItem, active, position: requested, pageSize }) {
|
265773
|
+
const layouts = items.map((item, index) => ({
|
265774
|
+
item,
|
265775
|
+
index,
|
265776
|
+
isActive: index === active
|
265777
|
+
}));
|
265778
|
+
const layoutsInPage = rotate(active - requested, layouts).slice(0, pageSize);
|
265779
|
+
const renderItemAt = (index) => layoutsInPage[index] == null ? [] : split2(renderItem(layoutsInPage[index]), width);
|
265780
|
+
const pageBuffer = Array.from({ length: pageSize });
|
265781
|
+
const activeItem = renderItemAt(requested).slice(0, pageSize);
|
265782
|
+
const position = requested + activeItem.length <= pageSize ? requested : pageSize - activeItem.length;
|
265783
|
+
pageBuffer.splice(position, activeItem.length, ...activeItem);
|
265784
|
+
let bufferPointer = position + activeItem.length;
|
265785
|
+
let layoutPointer = requested + 1;
|
265786
|
+
while (bufferPointer < pageSize && layoutPointer < layoutsInPage.length) {
|
265787
|
+
for (const line of renderItemAt(layoutPointer)) {
|
265788
|
+
pageBuffer[bufferPointer++] = line;
|
265789
|
+
if (bufferPointer >= pageSize)
|
265790
|
+
break;
|
265791
|
+
}
|
265792
|
+
layoutPointer++;
|
265793
|
+
}
|
265794
|
+
bufferPointer = position - 1;
|
265795
|
+
layoutPointer = requested - 1;
|
265796
|
+
while (bufferPointer >= 0 && layoutPointer >= 0) {
|
265797
|
+
for (const line of renderItemAt(layoutPointer).reverse()) {
|
265798
|
+
pageBuffer[bufferPointer--] = line;
|
265799
|
+
if (bufferPointer < 0)
|
265800
|
+
break;
|
265801
|
+
}
|
265802
|
+
layoutPointer--;
|
265803
|
+
}
|
265804
|
+
return pageBuffer.filter((line) => typeof line === "string");
|
265805
|
+
}
|
265806
|
+
|
265807
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/position.js
|
265808
|
+
function finite({ active, pageSize, total }) {
|
265809
|
+
const middle = Math.floor(pageSize / 2);
|
265810
|
+
if (total <= pageSize || active < middle)
|
265811
|
+
return active;
|
265812
|
+
if (active >= total - middle)
|
265813
|
+
return active + pageSize - total;
|
265814
|
+
return middle;
|
265815
|
+
}
|
265816
|
+
function infinite({ active, lastActive, total, pageSize, pointer }) {
|
265817
|
+
if (total <= pageSize)
|
265818
|
+
return active;
|
265819
|
+
if (lastActive < active && active - lastActive < pageSize) {
|
265820
|
+
return Math.min(Math.floor(pageSize / 2), pointer + active - lastActive);
|
265821
|
+
}
|
265822
|
+
return pointer;
|
265823
|
+
}
|
265824
|
+
|
265825
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
265826
|
+
function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
265827
|
+
const state = useRef3({ position: 0, lastActive: 0 });
|
265828
|
+
const position = loop ? infinite({
|
265829
|
+
active,
|
265830
|
+
lastActive: state.current.lastActive,
|
265831
|
+
total: items.length,
|
265832
|
+
pageSize,
|
265833
|
+
pointer: state.current.position
|
265834
|
+
}) : finite({
|
265835
|
+
active,
|
265836
|
+
total: items.length,
|
265837
|
+
pageSize
|
265838
|
+
});
|
265839
|
+
state.current.position = position;
|
265840
|
+
state.current.lastActive = active;
|
265841
|
+
return lines({
|
265842
|
+
items,
|
265843
|
+
width: readlineWidth3(),
|
265844
|
+
renderItem,
|
265845
|
+
active,
|
265846
|
+
position,
|
265847
|
+
pageSize
|
265848
|
+
}).join(`
|
265849
|
+
`);
|
265850
|
+
}
|
265851
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
265852
|
+
var import_mute_stream3 = __toESM(require_lib(), 1);
|
265853
|
+
import * as readline6 from "node:readline";
|
265854
|
+
import { AsyncResource as AsyncResource9 } from "node:async_hooks";
|
265855
|
+
|
265856
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
265857
|
+
var import_ansi_escapes3 = __toESM(require_ansi_escapes(), 1);
|
265858
|
+
import { stripVTControlCharacters as stripVTControlCharacters4 } from "node:util";
|
265859
|
+
var height3 = (content) => content.split(`
|
265860
|
+
`).length;
|
265861
|
+
var lastLine3 = (content) => content.split(`
|
265862
|
+
`).pop() ?? "";
|
265863
|
+
function cursorDown3(n6) {
|
265864
|
+
return n6 > 0 ? import_ansi_escapes3.default.cursorDown(n6) : "";
|
265865
|
+
}
|
265866
|
+
|
265867
|
+
class ScreenManager3 {
|
265868
|
+
height = 0;
|
265869
|
+
extraLinesUnderPrompt = 0;
|
265870
|
+
cursorPos;
|
265871
|
+
rl;
|
265872
|
+
constructor(rl) {
|
265873
|
+
this.rl = rl;
|
265874
|
+
this.cursorPos = rl.getCursorPos();
|
265875
|
+
}
|
265876
|
+
write(content) {
|
265877
|
+
this.rl.output.unmute();
|
265878
|
+
this.rl.output.write(content);
|
265879
|
+
this.rl.output.mute();
|
265880
|
+
}
|
265881
|
+
render(content, bottomContent = "") {
|
265882
|
+
const promptLine = lastLine3(content);
|
265883
|
+
const rawPromptLine = stripVTControlCharacters4(promptLine);
|
265884
|
+
let prompt = rawPromptLine;
|
265885
|
+
if (this.rl.line.length > 0) {
|
265886
|
+
prompt = prompt.slice(0, -this.rl.line.length);
|
265887
|
+
}
|
265888
|
+
this.rl.setPrompt(prompt);
|
265889
|
+
this.cursorPos = this.rl.getCursorPos();
|
265890
|
+
const width = readlineWidth3();
|
265891
|
+
content = breakLines3(content, width);
|
265892
|
+
bottomContent = breakLines3(bottomContent, width);
|
265893
|
+
if (rawPromptLine.length % width === 0) {
|
265894
|
+
content += `
|
265895
|
+
`;
|
265896
|
+
}
|
265897
|
+
let output = content + (bottomContent ? `
|
265898
|
+
` + bottomContent : "");
|
265899
|
+
const promptLineUpDiff = Math.floor(rawPromptLine.length / width) - this.cursorPos.rows;
|
265900
|
+
const bottomContentHeight = promptLineUpDiff + (bottomContent ? height3(bottomContent) : 0);
|
265901
|
+
if (bottomContentHeight > 0)
|
265902
|
+
output += import_ansi_escapes3.default.cursorUp(bottomContentHeight);
|
265903
|
+
output += import_ansi_escapes3.default.cursorTo(this.cursorPos.cols);
|
265904
|
+
this.write(cursorDown3(this.extraLinesUnderPrompt) + import_ansi_escapes3.default.eraseLines(this.height) + output);
|
265905
|
+
this.extraLinesUnderPrompt = bottomContentHeight;
|
265906
|
+
this.height = height3(output);
|
265907
|
+
}
|
265908
|
+
checkCursorPos() {
|
265909
|
+
const cursorPos = this.rl.getCursorPos();
|
265910
|
+
if (cursorPos.cols !== this.cursorPos.cols) {
|
265911
|
+
this.write(import_ansi_escapes3.default.cursorTo(cursorPos.cols));
|
265912
|
+
this.cursorPos = cursorPos;
|
265913
|
+
}
|
265914
|
+
}
|
265915
|
+
done({ clearContent }) {
|
265916
|
+
this.rl.setPrompt("");
|
265917
|
+
let output = cursorDown3(this.extraLinesUnderPrompt);
|
265918
|
+
output += clearContent ? import_ansi_escapes3.default.eraseLines(this.height) : `
|
265919
|
+
`;
|
265920
|
+
output += import_ansi_escapes3.default.cursorShow;
|
265921
|
+
this.write(output);
|
265922
|
+
this.rl.close();
|
265923
|
+
}
|
265924
|
+
}
|
265925
|
+
|
265926
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
265927
|
+
class PromisePolyfill3 extends Promise {
|
265928
|
+
static withResolver() {
|
265929
|
+
let resolve5;
|
265930
|
+
let reject;
|
265931
|
+
const promise = new Promise((res, rej) => {
|
265932
|
+
resolve5 = res;
|
265933
|
+
reject = rej;
|
265934
|
+
});
|
265935
|
+
return { promise, resolve: resolve5, reject };
|
265936
|
+
}
|
265937
|
+
}
|
265938
|
+
|
265939
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
265940
|
+
function getCallSites3() {
|
265941
|
+
const _prepareStackTrace = Error.prepareStackTrace;
|
265942
|
+
let result = [];
|
265943
|
+
try {
|
265944
|
+
Error.prepareStackTrace = (_5, callSites) => {
|
265945
|
+
const callSitesWithoutCurrent = callSites.slice(1);
|
265946
|
+
result = callSitesWithoutCurrent;
|
265947
|
+
return callSitesWithoutCurrent;
|
265948
|
+
};
|
265949
|
+
new Error().stack;
|
265950
|
+
} catch {
|
265951
|
+
return result;
|
265952
|
+
}
|
265953
|
+
Error.prepareStackTrace = _prepareStackTrace;
|
265954
|
+
return result;
|
265955
|
+
}
|
265956
|
+
function createPrompt3(view) {
|
265957
|
+
const callSites = getCallSites3();
|
265958
|
+
const prompt = (config3, context = {}) => {
|
265959
|
+
const { input = process.stdin, signal } = context;
|
265960
|
+
const cleanups = new Set;
|
265961
|
+
const output = new import_mute_stream3.default;
|
265962
|
+
output.pipe(context.output ?? process.stdout);
|
265963
|
+
const rl = readline6.createInterface({
|
265964
|
+
terminal: true,
|
265965
|
+
input,
|
265966
|
+
output
|
265967
|
+
});
|
265968
|
+
const screen = new ScreenManager3(rl);
|
265969
|
+
const { promise, resolve: resolve5, reject } = PromisePolyfill3.withResolver();
|
265970
|
+
const cancel3 = () => reject(new CancelPromptError3);
|
265971
|
+
if (signal) {
|
265972
|
+
const abort = () => reject(new AbortPromptError3({ cause: signal.reason }));
|
265973
|
+
if (signal.aborted) {
|
265974
|
+
abort();
|
265975
|
+
return Object.assign(promise, { cancel: cancel3 });
|
265976
|
+
}
|
265977
|
+
signal.addEventListener("abort", abort);
|
265978
|
+
cleanups.add(() => signal.removeEventListener("abort", abort));
|
265979
|
+
}
|
265980
|
+
cleanups.add(onExit((code2, signal2) => {
|
265981
|
+
reject(new ExitPromptError3(`User force closed the prompt with ${code2} ${signal2}`));
|
265982
|
+
}));
|
265983
|
+
const checkCursorPos = () => screen.checkCursorPos();
|
265984
|
+
rl.input.on("keypress", checkCursorPos);
|
265985
|
+
cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
|
265986
|
+
return withHooks3(rl, (cycle) => {
|
265987
|
+
const hooksCleanup = AsyncResource9.bind(() => effectScheduler3.clearAll());
|
265988
|
+
rl.on("close", hooksCleanup);
|
265989
|
+
cleanups.add(() => rl.removeListener("close", hooksCleanup));
|
265990
|
+
cycle(() => {
|
265991
|
+
try {
|
265992
|
+
const nextView = view(config3, (value4) => {
|
265993
|
+
setImmediate(() => resolve5(value4));
|
265994
|
+
});
|
265995
|
+
if (nextView === undefined) {
|
265996
|
+
const callerFilename = callSites[1]?.getFileName?.();
|
265997
|
+
throw new Error(`Prompt functions must return a string.
|
265998
|
+
at ${callerFilename}`);
|
265999
|
+
}
|
266000
|
+
const [content, bottomContent] = typeof nextView === "string" ? [nextView] : nextView;
|
266001
|
+
screen.render(content, bottomContent);
|
266002
|
+
effectScheduler3.run();
|
266003
|
+
} catch (error5) {
|
266004
|
+
reject(error5);
|
266005
|
+
}
|
266006
|
+
});
|
266007
|
+
return Object.assign(promise.then((answer) => {
|
266008
|
+
effectScheduler3.clearAll();
|
266009
|
+
return answer;
|
266010
|
+
}, (error5) => {
|
266011
|
+
effectScheduler3.clearAll();
|
266012
|
+
throw error5;
|
266013
|
+
}).finally(() => {
|
266014
|
+
cleanups.forEach((cleanup) => cleanup());
|
266015
|
+
screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
|
266016
|
+
output.end();
|
266017
|
+
}).then(() => promise), { cancel: cancel3 });
|
266018
|
+
});
|
266019
|
+
};
|
266020
|
+
return prompt;
|
266021
|
+
}
|
266022
|
+
// ../../node_modules/@inquirer/select/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
266023
|
+
var import_yoctocolors_cjs4 = __toESM(require_yoctocolors_cjs(), 1);
|
266024
|
+
class Separator {
|
266025
|
+
separator = import_yoctocolors_cjs4.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
266026
|
+
type = "separator";
|
266027
|
+
constructor(separator) {
|
266028
|
+
if (separator) {
|
266029
|
+
this.separator = separator;
|
266030
|
+
}
|
266031
|
+
}
|
266032
|
+
static isSeparator(choice) {
|
266033
|
+
return Boolean(choice && typeof choice === "object" && "type" in choice && choice.type === "separator");
|
266034
|
+
}
|
266035
|
+
}
|
266036
|
+
// ../../node_modules/@inquirer/select/dist/esm/index.js
|
266037
|
+
var import_yoctocolors_cjs5 = __toESM(require_yoctocolors_cjs(), 1);
|
266038
|
+
var import_ansi_escapes4 = __toESM(require_ansi_escapes(), 1);
|
265132
266039
|
var selectTheme = {
|
265133
266040
|
icon: { cursor: esm_default.pointer },
|
265134
266041
|
style: {
|
265135
|
-
disabled: (text2) =>
|
265136
|
-
description: (text2) =>
|
266042
|
+
disabled: (text2) => import_yoctocolors_cjs5.default.dim(`- ${text2}`),
|
266043
|
+
description: (text2) => import_yoctocolors_cjs5.default.cyan(text2)
|
265137
266044
|
},
|
265138
266045
|
helpMode: "auto"
|
265139
266046
|
};
|
@@ -265162,19 +266069,19 @@ function normalizeChoices(choices) {
|
|
265162
266069
|
};
|
265163
266070
|
});
|
265164
266071
|
}
|
265165
|
-
var esm_default3 =
|
266072
|
+
var esm_default3 = createPrompt3((config3, done) => {
|
265166
266073
|
const { loop = true, pageSize = 7 } = config3;
|
265167
|
-
const firstRender =
|
265168
|
-
const theme =
|
265169
|
-
const [status, setStatus] =
|
265170
|
-
const prefix =
|
265171
|
-
const searchTimeoutRef =
|
266074
|
+
const firstRender = useRef3(true);
|
266075
|
+
const theme = makeTheme3(selectTheme, config3.theme);
|
266076
|
+
const [status, setStatus] = useState3("idle");
|
266077
|
+
const prefix = usePrefix3({ status, theme });
|
266078
|
+
const searchTimeoutRef = useRef3();
|
265172
266079
|
const items = useMemo(() => normalizeChoices(config3.choices), [config3.choices]);
|
265173
266080
|
const bounds = useMemo(() => {
|
265174
266081
|
const first = items.findIndex(isSelectable);
|
265175
266082
|
const last = items.findLastIndex(isSelectable);
|
265176
266083
|
if (first === -1) {
|
265177
|
-
throw new
|
266084
|
+
throw new ValidationError3("[select prompt] No selectable choices. All choices are disabled.");
|
265178
266085
|
}
|
265179
266086
|
return { first, last };
|
265180
266087
|
}, [items]);
|
@@ -265183,31 +266090,31 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
265183
266090
|
return -1;
|
265184
266091
|
return items.findIndex((item) => isSelectable(item) && item.value === config3.default);
|
265185
266092
|
}, [config3.default, items]);
|
265186
|
-
const [active, setActive] =
|
266093
|
+
const [active, setActive] = useState3(defaultItemIndex === -1 ? bounds.first : defaultItemIndex);
|
265187
266094
|
const selectedChoice = items[active];
|
265188
|
-
|
266095
|
+
useKeypress3((key4, rl) => {
|
265189
266096
|
clearTimeout(searchTimeoutRef.current);
|
265190
|
-
if (
|
266097
|
+
if (isEnterKey3(key4)) {
|
265191
266098
|
setStatus("done");
|
265192
266099
|
done(selectedChoice.value);
|
265193
|
-
} else if (isUpKey(
|
266100
|
+
} else if (isUpKey(key4) || isDownKey(key4)) {
|
265194
266101
|
rl.clearLine(0);
|
265195
|
-
if (loop || isUpKey(
|
265196
|
-
const offset = isUpKey(
|
266102
|
+
if (loop || isUpKey(key4) && active !== bounds.first || isDownKey(key4) && active !== bounds.last) {
|
266103
|
+
const offset = isUpKey(key4) ? -1 : 1;
|
265197
266104
|
let next = active;
|
265198
266105
|
do {
|
265199
266106
|
next = (next + offset + items.length) % items.length;
|
265200
266107
|
} while (!isSelectable(items[next]));
|
265201
266108
|
setActive(next);
|
265202
266109
|
}
|
265203
|
-
} else if (isNumberKey(
|
266110
|
+
} else if (isNumberKey(key4)) {
|
265204
266111
|
rl.clearLine(0);
|
265205
|
-
const position = Number(
|
266112
|
+
const position = Number(key4.name) - 1;
|
265206
266113
|
const item = items[position];
|
265207
266114
|
if (item != null && isSelectable(item)) {
|
265208
266115
|
setActive(position);
|
265209
266116
|
}
|
265210
|
-
} else if (
|
266117
|
+
} else if (isBackspaceKey2(key4)) {
|
265211
266118
|
rl.clearLine(0);
|
265212
266119
|
} else {
|
265213
266120
|
const searchTerm = rl.line.toLowerCase();
|
@@ -265224,7 +266131,7 @@ var esm_default3 = createPrompt((config3, done) => {
|
|
265224
266131
|
}, 700);
|
265225
266132
|
}
|
265226
266133
|
});
|
265227
|
-
|
266134
|
+
useEffect3(() => () => {
|
265228
266135
|
clearTimeout(searchTimeoutRef.current);
|
265229
266136
|
}, []);
|
265230
266137
|
const message = theme.style.message(config3.message, status);
|
@@ -265263,7 +266170,7 @@ ${theme.style.help("(Use arrow keys to reveal more choices)")}`;
|
|
265263
266170
|
const choiceDescription = selectedChoice.description ? `
|
265264
266171
|
${theme.style.description(selectedChoice.description)}` : ``;
|
265265
266172
|
return `${[prefix, message, helpTipTop].filter(Boolean).join(" ")}
|
265266
|
-
${page}${helpTipBottom}${choiceDescription}${
|
266173
|
+
${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes4.default.cursorHide}`;
|
265267
266174
|
});
|
265268
266175
|
|
265269
266176
|
// src/prompts/smart-contract-set/subgraph.prompt.ts
|
@@ -265659,13 +266566,13 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
265659
266566
|
const [value4, setValue] = useState("");
|
265660
266567
|
const theme = makeTheme(config3.theme);
|
265661
266568
|
const prefix = usePrefix({ status, theme });
|
265662
|
-
useKeypress((
|
265663
|
-
if (isEnterKey(
|
266569
|
+
useKeypress((key4, rl) => {
|
266570
|
+
if (isEnterKey(key4)) {
|
265664
266571
|
const answer = getBooleanValue(value4, config3.default);
|
265665
266572
|
setValue(transformer(answer));
|
265666
266573
|
setStatus("done");
|
265667
266574
|
done(answer);
|
265668
|
-
} else if (
|
266575
|
+
} else if (key4.name === "tab") {
|
265669
266576
|
const answer = boolToString(!getBooleanValue(value4, config3.default));
|
265670
266577
|
rl.clearLine(0);
|
265671
266578
|
rl.write(answer);
|
@@ -265686,7 +266593,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
265686
266593
|
});
|
265687
266594
|
|
265688
266595
|
// ../../node_modules/@inquirer/password/dist/esm/index.js
|
265689
|
-
var
|
266596
|
+
var import_ansi_escapes5 = __toESM(require_ansi_escapes(), 1);
|
265690
266597
|
var esm_default5 = createPrompt((config3, done) => {
|
265691
266598
|
const { validate: validate3 = () => true } = config3;
|
265692
266599
|
const theme = makeTheme(config3.theme);
|
@@ -265694,11 +266601,11 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
265694
266601
|
const [errorMsg, setError] = useState();
|
265695
266602
|
const [value4, setValue] = useState("");
|
265696
266603
|
const prefix = usePrefix({ status, theme });
|
265697
|
-
useKeypress(async (
|
266604
|
+
useKeypress(async (key4, rl) => {
|
265698
266605
|
if (status !== "idle") {
|
265699
266606
|
return;
|
265700
266607
|
}
|
265701
|
-
if (isEnterKey(
|
266608
|
+
if (isEnterKey(key4)) {
|
265702
266609
|
const answer = value4;
|
265703
266610
|
setStatus("loading");
|
265704
266611
|
const isValid2 = await validate3(answer);
|
@@ -265723,7 +266630,7 @@ var esm_default5 = createPrompt((config3, done) => {
|
|
265723
266630
|
const maskChar = typeof config3.mask === "string" ? config3.mask : "*";
|
265724
266631
|
formattedValue = maskChar.repeat(value4.length);
|
265725
266632
|
} else if (status !== "done") {
|
265726
|
-
helpTip = `${theme.style.help("[input is masked]")}${
|
266633
|
+
helpTip = `${theme.style.help("[input is masked]")}${import_ansi_escapes5.default.cursorHide}`;
|
265727
266634
|
}
|
265728
266635
|
if (status === "done") {
|
265729
266636
|
formattedValue = theme.style.answer(formattedValue);
|
@@ -266811,7 +267718,7 @@ var basename2 = function(p6, extension) {
|
|
266811
267718
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
266812
267719
|
};
|
266813
267720
|
// ../../node_modules/defu/dist/defu.mjs
|
266814
|
-
function
|
267721
|
+
function isPlainObject5(value4) {
|
266815
267722
|
if (value4 === null || typeof value4 !== "object") {
|
266816
267723
|
return false;
|
266817
267724
|
}
|
@@ -266828,27 +267735,27 @@ function isPlainObject3(value4) {
|
|
266828
267735
|
return true;
|
266829
267736
|
}
|
266830
267737
|
function _defu(baseObject, defaults2, namespace = ".", merger) {
|
266831
|
-
if (!
|
267738
|
+
if (!isPlainObject5(defaults2)) {
|
266832
267739
|
return _defu(baseObject, {}, namespace, merger);
|
266833
267740
|
}
|
266834
267741
|
const object = Object.assign({}, defaults2);
|
266835
|
-
for (const
|
266836
|
-
if (
|
267742
|
+
for (const key4 in baseObject) {
|
267743
|
+
if (key4 === "__proto__" || key4 === "constructor") {
|
266837
267744
|
continue;
|
266838
267745
|
}
|
266839
|
-
const value4 = baseObject[
|
267746
|
+
const value4 = baseObject[key4];
|
266840
267747
|
if (value4 === null || value4 === undefined) {
|
266841
267748
|
continue;
|
266842
267749
|
}
|
266843
|
-
if (merger && merger(object,
|
267750
|
+
if (merger && merger(object, key4, value4, namespace)) {
|
266844
267751
|
continue;
|
266845
267752
|
}
|
266846
|
-
if (Array.isArray(value4) && Array.isArray(object[
|
266847
|
-
object[
|
266848
|
-
} else if (
|
266849
|
-
object[
|
267753
|
+
if (Array.isArray(value4) && Array.isArray(object[key4])) {
|
267754
|
+
object[key4] = [...value4, ...object[key4]];
|
267755
|
+
} else if (isPlainObject5(value4) && isPlainObject5(object[key4])) {
|
267756
|
+
object[key4] = _defu(value4, object[key4], (namespace ? `${namespace}.` : "") + key4.toString(), merger);
|
266850
267757
|
} else {
|
266851
|
-
object[
|
267758
|
+
object[key4] = value4;
|
266852
267759
|
}
|
266853
267760
|
}
|
266854
267761
|
return object;
|
@@ -266857,15 +267764,15 @@ function createDefu(merger) {
|
|
266857
267764
|
return (...arguments_4) => arguments_4.reduce((p6, c3) => _defu(p6, c3, "", merger), {});
|
266858
267765
|
}
|
266859
267766
|
var defu = createDefu();
|
266860
|
-
var defuFn = createDefu((object,
|
266861
|
-
if (object[
|
266862
|
-
object[
|
267767
|
+
var defuFn = createDefu((object, key4, currentValue) => {
|
267768
|
+
if (object[key4] !== undefined && typeof currentValue === "function") {
|
267769
|
+
object[key4] = currentValue(object[key4]);
|
266863
267770
|
return true;
|
266864
267771
|
}
|
266865
267772
|
});
|
266866
|
-
var defuArrayFn = createDefu((object,
|
266867
|
-
if (Array.isArray(object[
|
266868
|
-
object[
|
267773
|
+
var defuArrayFn = createDefu((object, key4, currentValue) => {
|
267774
|
+
if (Array.isArray(object[key4]) && typeof currentValue === "function") {
|
267775
|
+
object[key4] = currentValue(object[key4]);
|
266869
267776
|
return true;
|
266870
267777
|
}
|
266871
267778
|
});
|
@@ -269566,11 +270473,11 @@ function cacheDirectory() {
|
|
269566
270473
|
}
|
269567
270474
|
function normalizeHeaders(headers = {}) {
|
269568
270475
|
const normalized = {};
|
269569
|
-
for (const [
|
270476
|
+
for (const [key4, value4] of Object.entries(headers)) {
|
269570
270477
|
if (!value4) {
|
269571
270478
|
continue;
|
269572
270479
|
}
|
269573
|
-
normalized[
|
270480
|
+
normalized[key4.toLowerCase()] = value4;
|
269574
270481
|
}
|
269575
270482
|
return normalized;
|
269576
270483
|
}
|
@@ -271813,7 +272720,7 @@ function jsonOutput(data) {
|
|
271813
272720
|
var composer = require_composer();
|
271814
272721
|
var Document = require_Document();
|
271815
272722
|
var Schema = require_Schema();
|
271816
|
-
var
|
272723
|
+
var errors4 = require_errors3();
|
271817
272724
|
var Alias = require_Alias();
|
271818
272725
|
var identity2 = require_identity();
|
271819
272726
|
var Pair = require_Pair();
|
@@ -271829,9 +272736,9 @@ var visit2 = require_visit();
|
|
271829
272736
|
var $Composer = composer.Composer;
|
271830
272737
|
var $Document = Document.Document;
|
271831
272738
|
var $Schema = Schema.Schema;
|
271832
|
-
var $YAMLError =
|
271833
|
-
var $YAMLParseError =
|
271834
|
-
var $YAMLWarning =
|
272739
|
+
var $YAMLError = errors4.YAMLError;
|
272740
|
+
var $YAMLParseError = errors4.YAMLParseError;
|
272741
|
+
var $YAMLWarning = errors4.YAMLWarning;
|
271835
272742
|
var $Alias = Alias.Alias;
|
271836
272743
|
var $isAlias = identity2.isAlias;
|
271837
272744
|
var $isCollection = identity2.isCollection;
|
@@ -272179,7 +273086,7 @@ async function getServicesAndMapResults({
|
|
272179
273086
|
const application = await settlemint.application.read(applicationUniqueName);
|
272180
273087
|
const services = await servicesSpinner(settlemint, applicationUniqueName, types2);
|
272181
273088
|
const results = (types2 ?? SERVICE_TYPES).filter((serviceType) => !types2 || types2.includes(serviceType)).map((serviceType) => {
|
272182
|
-
const [_6, labels] = Object.entries(LABELS_MAP).find(([
|
273089
|
+
const [_6, labels] = Object.entries(LABELS_MAP).find(([key4, value4]) => value4.command === serviceType) ?? [
|
272183
273090
|
null,
|
272184
273091
|
{ plural: serviceType }
|
272185
273092
|
];
|
@@ -272407,11 +273314,11 @@ function createCommand4() {
|
|
272407
273314
|
|
272408
273315
|
// src/utils/commands/passthrough-options.ts
|
272409
273316
|
function mapPassthroughOptions(options, command) {
|
272410
|
-
const optionArgs = Object.entries(options).map(([
|
273317
|
+
const optionArgs = Object.entries(options).map(([key4, value4]) => {
|
272411
273318
|
if (value4 === true) {
|
272412
|
-
return `--${
|
273319
|
+
return `--${key4}`;
|
272413
273320
|
}
|
272414
|
-
return `--${
|
273321
|
+
return `--${key4}=${value4}`;
|
272415
273322
|
});
|
272416
273323
|
return [...optionArgs, ...command.args];
|
272417
273324
|
}
|
@@ -273422,4 +274329,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
273422
274329
|
// src/cli.ts
|
273423
274330
|
sdkCliCommand();
|
273424
274331
|
|
273425
|
-
//# debugId=
|
274332
|
+
//# debugId=DB03B88AF8C3C18A64756E2164756E21
|