@settlemint/sdk-cli 2.3.2-pr6c3d348a → 2.3.2-pr9f276c3a
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 +363 -530
- package/dist/cli.js.map +14 -16
- package/package.json +4 -3
package/dist/cli.js
CHANGED
@@ -232319,7 +232319,7 @@ var init_toBytes = __esm(() => {
|
|
232319
232319
|
};
|
232320
232320
|
});
|
232321
232321
|
|
232322
|
-
// ../../node_modules
|
232322
|
+
// ../../node_modules/@noble/hashes/esm/_assert.js
|
232323
232323
|
function anumber(n6) {
|
232324
232324
|
if (!Number.isSafeInteger(n6) || n6 < 0)
|
232325
232325
|
throw new Error("positive integer expected, got " + n6);
|
@@ -232354,7 +232354,7 @@ function aoutput(out, instance) {
|
|
232354
232354
|
}
|
232355
232355
|
var init__assert = () => {};
|
232356
232356
|
|
232357
|
-
// ../../node_modules
|
232357
|
+
// ../../node_modules/@noble/hashes/esm/_u64.js
|
232358
232358
|
function fromBig(n6, le4 = false) {
|
232359
232359
|
if (le4)
|
232360
232360
|
return { h: Number(n6 & U32_MASK64), l: Number(n6 >> _32n & U32_MASK64) };
|
@@ -232375,14 +232375,14 @@ var init__u64 = __esm(() => {
|
|
232375
232375
|
_32n = /* @__PURE__ */ BigInt(32);
|
232376
232376
|
});
|
232377
232377
|
|
232378
|
-
// ../../node_modules
|
232378
|
+
// ../../node_modules/@noble/hashes/esm/cryptoNode.js
|
232379
232379
|
import * as nc from "node:crypto";
|
232380
232380
|
var crypto2;
|
232381
232381
|
var init_cryptoNode = __esm(() => {
|
232382
232382
|
crypto2 = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && ("randomBytes" in nc) ? nc : undefined;
|
232383
232383
|
});
|
232384
232384
|
|
232385
|
-
// ../../node_modules
|
232385
|
+
// ../../node_modules/@noble/hashes/esm/utils.js
|
232386
232386
|
function u32(arr) {
|
232387
232387
|
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
232388
232388
|
}
|
@@ -232466,7 +232466,7 @@ var init_utils2 = __esm(() => {
|
|
232466
232466
|
hasHexBuiltin = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
|
232467
232467
|
});
|
232468
232468
|
|
232469
|
-
// ../../node_modules
|
232469
|
+
// ../../node_modules/@noble/hashes/esm/sha3.js
|
232470
232470
|
function keccakP(s7, rounds = 24) {
|
232471
232471
|
const B4 = new Uint32Array(5 * 2);
|
232472
232472
|
for (let round = 24 - rounds;round < 24; round++) {
|
@@ -234796,7 +234796,7 @@ var init_rpc = __esm(() => {
|
|
234796
234796
|
};
|
234797
234797
|
});
|
234798
234798
|
|
234799
|
-
// ../../node_modules
|
234799
|
+
// ../../node_modules/@noble/hashes/esm/_md.js
|
234800
234800
|
function setBigUint64(view, byteOffset, value4, isLE2) {
|
234801
234801
|
if (typeof view.setBigUint64 === "function")
|
234802
234802
|
return view.setBigUint64(byteOffset, value4, isLE2);
|
@@ -234907,7 +234907,7 @@ var init__md = __esm(() => {
|
|
234907
234907
|
};
|
234908
234908
|
});
|
234909
234909
|
|
234910
|
-
// ../../node_modules
|
234910
|
+
// ../../node_modules/@noble/hashes/esm/sha256.js
|
234911
234911
|
var SHA256_K, SHA256_IV, SHA256_W, SHA256, sha256;
|
234912
234912
|
var init_sha256 = __esm(() => {
|
234913
234913
|
init__md();
|
@@ -235061,12 +235061,12 @@ var init_sha256 = __esm(() => {
|
|
235061
235061
|
sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256);
|
235062
235062
|
});
|
235063
235063
|
|
235064
|
-
// ../../node_modules
|
235064
|
+
// ../../node_modules/@noble/hashes/esm/sha2.js
|
235065
235065
|
var init_sha2 = __esm(() => {
|
235066
235066
|
init_sha256();
|
235067
235067
|
});
|
235068
235068
|
|
235069
|
-
// ../../node_modules
|
235069
|
+
// ../../node_modules/@noble/hashes/esm/hmac.js
|
235070
235070
|
var HMAC, hmac = (hash2, key2, message) => new HMAC(hash2, key2).update(message).digest();
|
235071
235071
|
var init_hmac = __esm(() => {
|
235072
235072
|
init__assert();
|
@@ -235135,7 +235135,7 @@ var init_hmac = __esm(() => {
|
|
235135
235135
|
hmac.create = (hash2, key2) => new HMAC(hash2, key2);
|
235136
235136
|
});
|
235137
235137
|
|
235138
|
-
// ../../node_modules
|
235138
|
+
// ../../node_modules/@noble/curves/esm/abstract/utils.js
|
235139
235139
|
function isBytes2(a7) {
|
235140
235140
|
return a7 instanceof Uint8Array || ArrayBuffer.isView(a7) && a7.constructor.name === "Uint8Array";
|
235141
235141
|
}
|
@@ -235358,7 +235358,7 @@ var init_utils3 = __esm(() => {
|
|
235358
235358
|
};
|
235359
235359
|
});
|
235360
235360
|
|
235361
|
-
// ../../node_modules
|
235361
|
+
// ../../node_modules/@noble/curves/esm/abstract/modular.js
|
235362
235362
|
function mod(a7, b4) {
|
235363
235363
|
const result = a7 % b4;
|
235364
235364
|
return result >= _0n3 ? result : b4 + result;
|
@@ -235635,7 +235635,7 @@ var init_modular = __esm(() => {
|
|
235635
235635
|
];
|
235636
235636
|
});
|
235637
235637
|
|
235638
|
-
// ../../node_modules
|
235638
|
+
// ../../node_modules/@noble/curves/esm/abstract/curve.js
|
235639
235639
|
function constTimeNegate(condition, item) {
|
235640
235640
|
const neg = item.negate();
|
235641
235641
|
return condition ? neg : item;
|
@@ -235836,7 +235836,7 @@ var init_curve = __esm(() => {
|
|
235836
235836
|
pointWindowSizes = new WeakMap;
|
235837
235837
|
});
|
235838
235838
|
|
235839
|
-
// ../../node_modules
|
235839
|
+
// ../../node_modules/@noble/curves/esm/abstract/weierstrass.js
|
235840
235840
|
function validateSigVerOpts(opts) {
|
235841
235841
|
if (opts.lowS !== undefined)
|
235842
235842
|
abool("lowS", opts.lowS);
|
@@ -236733,7 +236733,7 @@ var init_weierstrass = __esm(() => {
|
|
236733
236733
|
_4n2 = BigInt(4);
|
236734
236734
|
});
|
236735
236735
|
|
236736
|
-
// ../../node_modules
|
236736
|
+
// ../../node_modules/@noble/curves/esm/_shortw_utils.js
|
236737
236737
|
function getHash(hash2) {
|
236738
236738
|
return {
|
236739
236739
|
hash: hash2,
|
@@ -236752,7 +236752,7 @@ var init__shortw_utils = __esm(() => {
|
|
236752
236752
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
236753
236753
|
});
|
236754
236754
|
|
236755
|
-
// ../../node_modules
|
236755
|
+
// ../../node_modules/@noble/curves/esm/abstract/hash-to-curve.js
|
236756
236756
|
function i2osp(value4, length) {
|
236757
236757
|
anum(value4);
|
236758
236758
|
anum(length);
|
@@ -236896,7 +236896,7 @@ var init_hash_to_curve = __esm(() => {
|
|
236896
236896
|
os2ip = bytesToNumberBE;
|
236897
236897
|
});
|
236898
236898
|
|
236899
|
-
// ../../node_modules
|
236899
|
+
// ../../node_modules/@noble/curves/esm/secp256k1.js
|
236900
236900
|
var exports_secp256k1 = {};
|
236901
236901
|
__export(exports_secp256k1, {
|
236902
236902
|
secp256k1: () => secp256k1,
|
@@ -240012,7 +240012,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
240012
240012
|
else
|
240013
240013
|
end = lineWidth - indentAtStart;
|
240014
240014
|
}
|
240015
|
-
let
|
240015
|
+
let split4 = undefined;
|
240016
240016
|
let prev = undefined;
|
240017
240017
|
let overflow = false;
|
240018
240018
|
let i7 = -1;
|
@@ -240046,20 +240046,20 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
240046
240046
|
if (mode === FOLD_BLOCK)
|
240047
240047
|
i7 = consumeMoreIndentedLines(text2, i7, indent2.length);
|
240048
240048
|
end = i7 + indent2.length + endStep;
|
240049
|
-
|
240049
|
+
split4 = undefined;
|
240050
240050
|
} else {
|
240051
240051
|
if (ch === " " && prev && prev !== " " && prev !== `
|
240052
240052
|
` && prev !== "\t") {
|
240053
240053
|
const next = text2[i7 + 1];
|
240054
240054
|
if (next && next !== " " && next !== `
|
240055
240055
|
` && next !== "\t")
|
240056
|
-
|
240056
|
+
split4 = i7;
|
240057
240057
|
}
|
240058
240058
|
if (i7 >= end) {
|
240059
|
-
if (
|
240060
|
-
folds.push(
|
240061
|
-
end =
|
240062
|
-
|
240059
|
+
if (split4) {
|
240060
|
+
folds.push(split4);
|
240061
|
+
end = split4 + endStep;
|
240062
|
+
split4 = undefined;
|
240063
240063
|
} else if (mode === FOLD_QUOTED) {
|
240064
240064
|
while (prev === " " || prev === "\t") {
|
240065
240065
|
prev = ch;
|
@@ -240072,7 +240072,7 @@ var require_foldFlowLines = __commonJS((exports) => {
|
|
240072
240072
|
folds.push(j4);
|
240073
240073
|
escapedFolds[j4] = true;
|
240074
240074
|
end = j4 + endStep;
|
240075
|
-
|
240075
|
+
split4 = undefined;
|
240076
240076
|
} else {
|
240077
240077
|
overflow = true;
|
240078
240078
|
}
|
@@ -242163,7 +242163,7 @@ var require_Schema = __commonJS((exports) => {
|
|
242163
242163
|
var seq = require_seq();
|
242164
242164
|
var string4 = require_string();
|
242165
242165
|
var tags = require_tags();
|
242166
|
-
var sortMapEntriesByKey = (a8,
|
242166
|
+
var sortMapEntriesByKey = (a8, b5) => a8.key < b5.key ? -1 : a8.key > b5.key ? 1 : 0;
|
242167
242167
|
|
242168
242168
|
class Schema {
|
242169
242169
|
constructor({ compat: compat2, customTags, merge: merge4, resolveKnownTags, schema, sortMapEntries, toStringDefaults }) {
|
@@ -242758,7 +242758,7 @@ var require_util_map_includes = __commonJS((exports) => {
|
|
242758
242758
|
const { uniqueKeys } = ctx.options;
|
242759
242759
|
if (uniqueKeys === false)
|
242760
242760
|
return false;
|
242761
|
-
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a8,
|
242761
|
+
const isEqual = typeof uniqueKeys === "function" ? uniqueKeys : (a8, b5) => a8 === b5 || identity2.isScalar(a8) && identity2.isScalar(b5) && a8.value === b5.value;
|
242762
242762
|
return items.some((pair) => isEqual(pair.key, search));
|
242763
242763
|
}
|
242764
242764
|
exports.mapIncludes = mapIncludes;
|
@@ -243393,13 +243393,13 @@ var require_resolve_block_scalar = __commonJS((exports) => {
|
|
243393
243393
|
return { mode, indent: indent2, chomp, comment, length };
|
243394
243394
|
}
|
243395
243395
|
function splitLines(source) {
|
243396
|
-
const
|
243397
|
-
const first =
|
243396
|
+
const split4 = source.split(/\n( *)/);
|
243397
|
+
const first = split4[0];
|
243398
243398
|
const m8 = first.match(/^( *)/);
|
243399
243399
|
const line0 = m8?.[1] ? [m8[1], first.slice(m8[1].length)] : ["", first];
|
243400
243400
|
const lines2 = [line0];
|
243401
|
-
for (let i7 = 1;i7 <
|
243402
|
-
lines2.push([
|
243401
|
+
for (let i7 = 1;i7 < split4.length; i7 += 2)
|
243402
|
+
lines2.push([split4[i7], split4[i7 + 1]]);
|
243403
243403
|
return lines2;
|
243404
243404
|
}
|
243405
243405
|
exports.resolveBlockScalar = resolveBlockScalar;
|
@@ -262458,7 +262458,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
262458
262458
|
var package_default = {
|
262459
262459
|
name: "@settlemint/sdk-cli",
|
262460
262460
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
262461
|
-
version: "2.3.2-
|
262461
|
+
version: "2.3.2-pr9f276c3a",
|
262462
262462
|
type: "module",
|
262463
262463
|
private: false,
|
262464
262464
|
license: "FSL-1.1-MIT",
|
@@ -262507,8 +262507,8 @@ var package_default = {
|
|
262507
262507
|
"@inquirer/input": "4.1.10",
|
262508
262508
|
"@inquirer/password": "4.0.13",
|
262509
262509
|
"@inquirer/select": "4.2.1",
|
262510
|
-
"@settlemint/sdk-js": "2.3.2-
|
262511
|
-
"@settlemint/sdk-utils": "2.3.2-
|
262510
|
+
"@settlemint/sdk-js": "2.3.2-pr9f276c3a",
|
262511
|
+
"@settlemint/sdk-utils": "2.3.2-pr9f276c3a",
|
262512
262512
|
"@types/node": "22.15.21",
|
262513
262513
|
"@types/semver": "7.7.0",
|
262514
262514
|
"@types/which": "3.0.4",
|
@@ -262517,6 +262517,7 @@ var package_default = {
|
|
262517
262517
|
"is-in-ci": "1.0.0",
|
262518
262518
|
semver: "7.7.2",
|
262519
262519
|
slugify: "1.6.6",
|
262520
|
+
viem: "2.30.0",
|
262520
262521
|
which: "5.0.0",
|
262521
262522
|
yaml: "2.8.0",
|
262522
262523
|
yoctocolors: "2.1.1"
|
@@ -263885,6 +263886,20 @@ async function graphqlFetchWithRetry(input, init, maxRetries = 5, initialSleepTi
|
|
263885
263886
|
return json2.data;
|
263886
263887
|
}, maxRetries, initialSleepTime);
|
263887
263888
|
}
|
263889
|
+
function appendHeaders(headers, additionalHeaders) {
|
263890
|
+
const defaultHeaders = typeof headers === "function" ? headers() : headers;
|
263891
|
+
const filteredAdditionalHeaders = Object.entries(additionalHeaders).filter(([_, value]) => value !== undefined);
|
263892
|
+
if (Array.isArray(defaultHeaders)) {
|
263893
|
+
return [...defaultHeaders, ...filteredAdditionalHeaders];
|
263894
|
+
}
|
263895
|
+
if (defaultHeaders instanceof Headers) {
|
263896
|
+
return new Headers([...defaultHeaders, ...filteredAdditionalHeaders]);
|
263897
|
+
}
|
263898
|
+
return {
|
263899
|
+
...defaultHeaders,
|
263900
|
+
...Object.fromEntries(filteredAdditionalHeaders)
|
263901
|
+
};
|
263902
|
+
}
|
263888
263903
|
|
263889
263904
|
// ../../node_modules/environment/index.js
|
263890
263905
|
var isBrowser = globalThis.window?.document !== undefined;
|
@@ -266138,6 +266153,9 @@ function getPincodeVerificationChallengeResponse({
|
|
266138
266153
|
}
|
266139
266154
|
function createSettleMintClient(options) {
|
266140
266155
|
ensureServer();
|
266156
|
+
if (options.instance === STANDALONE_INSTANCE2) {
|
266157
|
+
throw new Error("Standalone instances cannot connect to the SettleMint platform");
|
266158
|
+
}
|
266141
266159
|
const validatedOptions = options.anonymous ? validate2(exports_external.object({
|
266142
266160
|
...ClientOptionsSchema.shape,
|
266143
266161
|
accessToken: exports_external.literal("")
|
@@ -267229,7 +267247,9 @@ async function validateSdkVersionFromCommand(command, interval = 5 * 60 * 1000)
|
|
267229
267247
|
}
|
267230
267248
|
await setLastSdkVersionCheck(new Date(now).toJSON());
|
267231
267249
|
const instance = await getInstanceFromCommand(command);
|
267232
|
-
|
267250
|
+
if (instance !== "STANDALONE") {
|
267251
|
+
await validateSdkVersion(instance);
|
267252
|
+
}
|
267233
267253
|
}
|
267234
267254
|
async function validateSdkVersion(instance) {
|
267235
267255
|
const settlemint = createSettleMintClient({
|
@@ -272854,297 +272874,13 @@ async function simulateBlocks(client, parameters) {
|
|
272854
272874
|
init_exports();
|
272855
272875
|
init_Errors();
|
272856
272876
|
|
272857
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/_assert.js
|
272858
|
-
function anumber2(n6) {
|
272859
|
-
if (!Number.isSafeInteger(n6) || n6 < 0)
|
272860
|
-
throw new Error("positive integer expected, got " + n6);
|
272861
|
-
}
|
272862
|
-
function isBytes3(a7) {
|
272863
|
-
return a7 instanceof Uint8Array || ArrayBuffer.isView(a7) && a7.constructor.name === "Uint8Array";
|
272864
|
-
}
|
272865
|
-
function abytes3(b4, ...lengths) {
|
272866
|
-
if (!isBytes3(b4))
|
272867
|
-
throw new Error("Uint8Array expected");
|
272868
|
-
if (lengths.length > 0 && !lengths.includes(b4.length))
|
272869
|
-
throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b4.length);
|
272870
|
-
}
|
272871
|
-
function aexists2(instance, checkFinished = true) {
|
272872
|
-
if (instance.destroyed)
|
272873
|
-
throw new Error("Hash instance has been destroyed");
|
272874
|
-
if (checkFinished && instance.finished)
|
272875
|
-
throw new Error("Hash#digest() has already been called");
|
272876
|
-
}
|
272877
|
-
function aoutput2(out, instance) {
|
272878
|
-
abytes3(out);
|
272879
|
-
const min = instance.outputLen;
|
272880
|
-
if (out.length < min) {
|
272881
|
-
throw new Error("digestInto() expects output buffer of length at least " + min);
|
272882
|
-
}
|
272883
|
-
}
|
272884
|
-
|
272885
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/utils.js
|
272886
|
-
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
272887
|
-
function u322(arr) {
|
272888
|
-
return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
|
272889
|
-
}
|
272890
|
-
var isLE2 = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
|
272891
|
-
function byteSwap2(word2) {
|
272892
|
-
return word2 << 24 & 4278190080 | word2 << 8 & 16711680 | word2 >>> 8 & 65280 | word2 >>> 24 & 255;
|
272893
|
-
}
|
272894
|
-
function byteSwap322(arr) {
|
272895
|
-
for (let i6 = 0;i6 < arr.length; i6++) {
|
272896
|
-
arr[i6] = byteSwap2(arr[i6]);
|
272897
|
-
}
|
272898
|
-
}
|
272899
|
-
var hasHexBuiltin3 = typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function";
|
272900
|
-
function utf8ToBytes3(str) {
|
272901
|
-
if (typeof str !== "string")
|
272902
|
-
throw new Error("utf8ToBytes expected string, got " + typeof str);
|
272903
|
-
return new Uint8Array(new TextEncoder().encode(str));
|
272904
|
-
}
|
272905
|
-
function toBytes3(data) {
|
272906
|
-
if (typeof data === "string")
|
272907
|
-
data = utf8ToBytes3(data);
|
272908
|
-
abytes3(data);
|
272909
|
-
return data;
|
272910
|
-
}
|
272911
|
-
class Hash2 {
|
272912
|
-
clone() {
|
272913
|
-
return this._cloneInto();
|
272914
|
-
}
|
272915
|
-
}
|
272916
|
-
function wrapConstructor2(hashCons) {
|
272917
|
-
const hashC = (msg) => hashCons().update(toBytes3(msg)).digest();
|
272918
|
-
const tmp = hashCons();
|
272919
|
-
hashC.outputLen = tmp.outputLen;
|
272920
|
-
hashC.blockLen = tmp.blockLen;
|
272921
|
-
hashC.create = () => hashCons();
|
272922
|
-
return hashC;
|
272923
|
-
}
|
272924
|
-
function wrapXOFConstructorWithOpts2(hashCons) {
|
272925
|
-
const hashC = (msg, opts) => hashCons(opts).update(toBytes3(msg)).digest();
|
272926
|
-
const tmp = hashCons({});
|
272927
|
-
hashC.outputLen = tmp.outputLen;
|
272928
|
-
hashC.blockLen = tmp.blockLen;
|
272929
|
-
hashC.create = (opts) => hashCons(opts);
|
272930
|
-
return hashC;
|
272931
|
-
}
|
272932
|
-
|
272933
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/_u64.js
|
272934
|
-
var U32_MASK642 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
272935
|
-
var _32n2 = /* @__PURE__ */ BigInt(32);
|
272936
|
-
function fromBig2(n6, le4 = false) {
|
272937
|
-
if (le4)
|
272938
|
-
return { h: Number(n6 & U32_MASK642), l: Number(n6 >> _32n2 & U32_MASK642) };
|
272939
|
-
return { h: Number(n6 >> _32n2 & U32_MASK642) | 0, l: Number(n6 & U32_MASK642) | 0 };
|
272940
|
-
}
|
272941
|
-
function split4(lst, le4 = false) {
|
272942
|
-
let Ah = new Uint32Array(lst.length);
|
272943
|
-
let Al = new Uint32Array(lst.length);
|
272944
|
-
for (let i6 = 0;i6 < lst.length; i6++) {
|
272945
|
-
const { h: h8, l: l3 } = fromBig2(lst[i6], le4);
|
272946
|
-
[Ah[i6], Al[i6]] = [h8, l3];
|
272947
|
-
}
|
272948
|
-
return [Ah, Al];
|
272949
|
-
}
|
272950
|
-
var rotlSH2 = (h8, l3, s7) => h8 << s7 | l3 >>> 32 - s7;
|
272951
|
-
var rotlSL2 = (h8, l3, s7) => l3 << s7 | h8 >>> 32 - s7;
|
272952
|
-
var rotlBH2 = (h8, l3, s7) => l3 << s7 - 32 | h8 >>> 64 - s7;
|
272953
|
-
var rotlBL2 = (h8, l3, s7) => h8 << s7 - 32 | l3 >>> 64 - s7;
|
272954
|
-
|
272955
|
-
// ../../node_modules/ox/node_modules/@noble/hashes/esm/sha3.js
|
272956
|
-
var SHA3_PI2 = [];
|
272957
|
-
var SHA3_ROTL2 = [];
|
272958
|
-
var _SHA3_IOTA2 = [];
|
272959
|
-
var _0n7 = /* @__PURE__ */ BigInt(0);
|
272960
|
-
var _1n7 = /* @__PURE__ */ BigInt(1);
|
272961
|
-
var _2n5 = /* @__PURE__ */ BigInt(2);
|
272962
|
-
var _7n2 = /* @__PURE__ */ BigInt(7);
|
272963
|
-
var _256n2 = /* @__PURE__ */ BigInt(256);
|
272964
|
-
var _0x71n2 = /* @__PURE__ */ BigInt(113);
|
272965
|
-
for (let round = 0, R7 = _1n7, x6 = 1, y4 = 0;round < 24; round++) {
|
272966
|
-
[x6, y4] = [y4, (2 * x6 + 3 * y4) % 5];
|
272967
|
-
SHA3_PI2.push(2 * (5 * y4 + x6));
|
272968
|
-
SHA3_ROTL2.push((round + 1) * (round + 2) / 2 % 64);
|
272969
|
-
let t8 = _0n7;
|
272970
|
-
for (let j3 = 0;j3 < 7; j3++) {
|
272971
|
-
R7 = (R7 << _1n7 ^ (R7 >> _7n2) * _0x71n2) % _256n2;
|
272972
|
-
if (R7 & _2n5)
|
272973
|
-
t8 ^= _1n7 << (_1n7 << /* @__PURE__ */ BigInt(j3)) - _1n7;
|
272974
|
-
}
|
272975
|
-
_SHA3_IOTA2.push(t8);
|
272976
|
-
}
|
272977
|
-
var [SHA3_IOTA_H2, SHA3_IOTA_L2] = /* @__PURE__ */ split4(_SHA3_IOTA2, true);
|
272978
|
-
var rotlH2 = (h8, l3, s7) => s7 > 32 ? rotlBH2(h8, l3, s7) : rotlSH2(h8, l3, s7);
|
272979
|
-
var rotlL2 = (h8, l3, s7) => s7 > 32 ? rotlBL2(h8, l3, s7) : rotlSL2(h8, l3, s7);
|
272980
|
-
function keccakP2(s7, rounds = 24) {
|
272981
|
-
const B4 = new Uint32Array(5 * 2);
|
272982
|
-
for (let round = 24 - rounds;round < 24; round++) {
|
272983
|
-
for (let x6 = 0;x6 < 10; x6++)
|
272984
|
-
B4[x6] = s7[x6] ^ s7[x6 + 10] ^ s7[x6 + 20] ^ s7[x6 + 30] ^ s7[x6 + 40];
|
272985
|
-
for (let x6 = 0;x6 < 10; x6 += 2) {
|
272986
|
-
const idx1 = (x6 + 8) % 10;
|
272987
|
-
const idx0 = (x6 + 2) % 10;
|
272988
|
-
const B0 = B4[idx0];
|
272989
|
-
const B1 = B4[idx0 + 1];
|
272990
|
-
const Th = rotlH2(B0, B1, 1) ^ B4[idx1];
|
272991
|
-
const Tl = rotlL2(B0, B1, 1) ^ B4[idx1 + 1];
|
272992
|
-
for (let y4 = 0;y4 < 50; y4 += 10) {
|
272993
|
-
s7[x6 + y4] ^= Th;
|
272994
|
-
s7[x6 + y4 + 1] ^= Tl;
|
272995
|
-
}
|
272996
|
-
}
|
272997
|
-
let curH = s7[2];
|
272998
|
-
let curL = s7[3];
|
272999
|
-
for (let t8 = 0;t8 < 24; t8++) {
|
273000
|
-
const shift = SHA3_ROTL2[t8];
|
273001
|
-
const Th = rotlH2(curH, curL, shift);
|
273002
|
-
const Tl = rotlL2(curH, curL, shift);
|
273003
|
-
const PI = SHA3_PI2[t8];
|
273004
|
-
curH = s7[PI];
|
273005
|
-
curL = s7[PI + 1];
|
273006
|
-
s7[PI] = Th;
|
273007
|
-
s7[PI + 1] = Tl;
|
273008
|
-
}
|
273009
|
-
for (let y4 = 0;y4 < 50; y4 += 10) {
|
273010
|
-
for (let x6 = 0;x6 < 10; x6++)
|
273011
|
-
B4[x6] = s7[y4 + x6];
|
273012
|
-
for (let x6 = 0;x6 < 10; x6++)
|
273013
|
-
s7[y4 + x6] ^= ~B4[(x6 + 2) % 10] & B4[(x6 + 4) % 10];
|
273014
|
-
}
|
273015
|
-
s7[0] ^= SHA3_IOTA_H2[round];
|
273016
|
-
s7[1] ^= SHA3_IOTA_L2[round];
|
273017
|
-
}
|
273018
|
-
B4.fill(0);
|
273019
|
-
}
|
273020
|
-
|
273021
|
-
class Keccak2 extends Hash2 {
|
273022
|
-
constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
|
273023
|
-
super();
|
273024
|
-
this.pos = 0;
|
273025
|
-
this.posOut = 0;
|
273026
|
-
this.finished = false;
|
273027
|
-
this.destroyed = false;
|
273028
|
-
this.enableXOF = false;
|
273029
|
-
this.blockLen = blockLen;
|
273030
|
-
this.suffix = suffix;
|
273031
|
-
this.outputLen = outputLen;
|
273032
|
-
this.enableXOF = enableXOF;
|
273033
|
-
this.rounds = rounds;
|
273034
|
-
anumber2(outputLen);
|
273035
|
-
if (0 >= this.blockLen || this.blockLen >= 200)
|
273036
|
-
throw new Error("Sha3 supports only keccak-f1600 function");
|
273037
|
-
this.state = new Uint8Array(200);
|
273038
|
-
this.state32 = u322(this.state);
|
273039
|
-
}
|
273040
|
-
keccak() {
|
273041
|
-
if (!isLE2)
|
273042
|
-
byteSwap322(this.state32);
|
273043
|
-
keccakP2(this.state32, this.rounds);
|
273044
|
-
if (!isLE2)
|
273045
|
-
byteSwap322(this.state32);
|
273046
|
-
this.posOut = 0;
|
273047
|
-
this.pos = 0;
|
273048
|
-
}
|
273049
|
-
update(data) {
|
273050
|
-
aexists2(this);
|
273051
|
-
const { blockLen, state } = this;
|
273052
|
-
data = toBytes3(data);
|
273053
|
-
const len = data.length;
|
273054
|
-
for (let pos = 0;pos < len; ) {
|
273055
|
-
const take2 = Math.min(blockLen - this.pos, len - pos);
|
273056
|
-
for (let i6 = 0;i6 < take2; i6++)
|
273057
|
-
state[this.pos++] ^= data[pos++];
|
273058
|
-
if (this.pos === blockLen)
|
273059
|
-
this.keccak();
|
273060
|
-
}
|
273061
|
-
return this;
|
273062
|
-
}
|
273063
|
-
finish() {
|
273064
|
-
if (this.finished)
|
273065
|
-
return;
|
273066
|
-
this.finished = true;
|
273067
|
-
const { state, suffix, pos, blockLen } = this;
|
273068
|
-
state[pos] ^= suffix;
|
273069
|
-
if ((suffix & 128) !== 0 && pos === blockLen - 1)
|
273070
|
-
this.keccak();
|
273071
|
-
state[blockLen - 1] ^= 128;
|
273072
|
-
this.keccak();
|
273073
|
-
}
|
273074
|
-
writeInto(out) {
|
273075
|
-
aexists2(this, false);
|
273076
|
-
abytes3(out);
|
273077
|
-
this.finish();
|
273078
|
-
const bufferOut = this.state;
|
273079
|
-
const { blockLen } = this;
|
273080
|
-
for (let pos = 0, len = out.length;pos < len; ) {
|
273081
|
-
if (this.posOut >= blockLen)
|
273082
|
-
this.keccak();
|
273083
|
-
const take2 = Math.min(blockLen - this.posOut, len - pos);
|
273084
|
-
out.set(bufferOut.subarray(this.posOut, this.posOut + take2), pos);
|
273085
|
-
this.posOut += take2;
|
273086
|
-
pos += take2;
|
273087
|
-
}
|
273088
|
-
return out;
|
273089
|
-
}
|
273090
|
-
xofInto(out) {
|
273091
|
-
if (!this.enableXOF)
|
273092
|
-
throw new Error("XOF is not possible for this instance");
|
273093
|
-
return this.writeInto(out);
|
273094
|
-
}
|
273095
|
-
xof(bytes) {
|
273096
|
-
anumber2(bytes);
|
273097
|
-
return this.xofInto(new Uint8Array(bytes));
|
273098
|
-
}
|
273099
|
-
digestInto(out) {
|
273100
|
-
aoutput2(out, this);
|
273101
|
-
if (this.finished)
|
273102
|
-
throw new Error("digest() was already called");
|
273103
|
-
this.writeInto(out);
|
273104
|
-
this.destroy();
|
273105
|
-
return out;
|
273106
|
-
}
|
273107
|
-
digest() {
|
273108
|
-
return this.digestInto(new Uint8Array(this.outputLen));
|
273109
|
-
}
|
273110
|
-
destroy() {
|
273111
|
-
this.destroyed = true;
|
273112
|
-
this.state.fill(0);
|
273113
|
-
}
|
273114
|
-
_cloneInto(to) {
|
273115
|
-
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
273116
|
-
to || (to = new Keccak2(blockLen, suffix, outputLen, enableXOF, rounds));
|
273117
|
-
to.state32.set(this.state32);
|
273118
|
-
to.pos = this.pos;
|
273119
|
-
to.posOut = this.posOut;
|
273120
|
-
to.finished = this.finished;
|
273121
|
-
to.rounds = rounds;
|
273122
|
-
to.suffix = suffix;
|
273123
|
-
to.outputLen = outputLen;
|
273124
|
-
to.enableXOF = enableXOF;
|
273125
|
-
to.destroyed = this.destroyed;
|
273126
|
-
return to;
|
273127
|
-
}
|
273128
|
-
}
|
273129
|
-
var gen2 = (suffix, blockLen, outputLen) => wrapConstructor2(() => new Keccak2(blockLen, suffix, outputLen));
|
273130
|
-
var sha3_2242 = /* @__PURE__ */ gen2(6, 144, 224 / 8);
|
273131
|
-
var sha3_2562 = /* @__PURE__ */ gen2(6, 136, 256 / 8);
|
273132
|
-
var sha3_3842 = /* @__PURE__ */ gen2(6, 104, 384 / 8);
|
273133
|
-
var sha3_5122 = /* @__PURE__ */ gen2(6, 72, 512 / 8);
|
273134
|
-
var keccak_2242 = /* @__PURE__ */ gen2(1, 144, 224 / 8);
|
273135
|
-
var keccak_2562 = /* @__PURE__ */ gen2(1, 136, 256 / 8);
|
273136
|
-
var keccak_3842 = /* @__PURE__ */ gen2(1, 104, 384 / 8);
|
273137
|
-
var keccak_5122 = /* @__PURE__ */ gen2(1, 72, 512 / 8);
|
273138
|
-
var genShake2 = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts2((opts = {}) => new Keccak2(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true));
|
273139
|
-
var shake1282 = /* @__PURE__ */ genShake2(31, 168, 128 / 8);
|
273140
|
-
var shake2562 = /* @__PURE__ */ genShake2(31, 136, 256 / 8);
|
273141
|
-
|
273142
272877
|
// ../../node_modules/ox/_esm/core/Hash.js
|
272878
|
+
init_sha3();
|
273143
272879
|
init_Bytes();
|
273144
272880
|
init_Hex();
|
273145
272881
|
function keccak2562(value4, options = {}) {
|
273146
272882
|
const { as = typeof value4 === "string" ? "Hex" : "Bytes" } = options;
|
273147
|
-
const bytes =
|
272883
|
+
const bytes = keccak_256(from(value4));
|
273148
272884
|
if (as === "Bytes")
|
273149
272885
|
return bytes;
|
273150
272886
|
return fromBytes(bytes);
|
@@ -275032,15 +274768,18 @@ function createPublicClient(parameters) {
|
|
275032
274768
|
});
|
275033
274769
|
return client.extend(publicActions);
|
275034
274770
|
}
|
274771
|
+
// ../../node_modules/viem/_esm/index.js
|
274772
|
+
init_isAddress();
|
274773
|
+
|
275035
274774
|
// ../viem/dist/viem.mjs
|
275036
|
-
var
|
275037
|
-
var
|
275038
|
-
var
|
275039
|
-
var
|
275040
|
-
async function
|
274775
|
+
var u6 = ((r6) => (r6.PINCODE = "PINCODE", r6.OTP = "OTP", r6.SECRET_CODES = "SECRET_CODES", r6))(u6 || {});
|
274776
|
+
var g5 = ((i6) => (i6.SHA1 = "SHA1", i6.SHA224 = "SHA224", i6.SHA256 = "SHA256", i6.SHA384 = "SHA384", i6.SHA512 = "SHA512", i6.SHA3_224 = "SHA3-224", i6.SHA3_256 = "SHA3-256", i6.SHA3_384 = "SHA3-384", i6.SHA3_512 = "SHA3-512", i6))(g5 || {});
|
274777
|
+
var R7 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), chainId: exports_external.string().optional(), chainName: exports_external.string(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
|
274778
|
+
var b4 = exports_external.object({ accessToken: ApplicationAccessTokenSchema2.optional(), rpcUrl: UrlOrPathSchema2, httpTransportConfig: exports_external.any().optional() });
|
274779
|
+
async function ae4(t8) {
|
275041
274780
|
ensureServer();
|
275042
|
-
let e10 = validate2(
|
275043
|
-
return createPublicClient({ transport: http(e10.rpcUrl, { fetchOptions: { headers: e10
|
274781
|
+
let e10 = validate2(b4, t8);
|
274782
|
+
return createPublicClient({ transport: http(e10.rpcUrl, { ...e10.httpTransportConfig, fetchOptions: { ...e10?.httpTransportConfig?.fetchOptions, headers: appendHeaders(e10?.httpTransportConfig?.fetchOptions?.headers, { "x-auth-token": e10.accessToken }) } }) }).getChainId();
|
275044
274783
|
}
|
275045
274784
|
|
275046
274785
|
// src/commands/codegen/codegen-viem.ts
|
@@ -275052,7 +274791,7 @@ async function codegenViem(env2) {
|
|
275052
274791
|
note("[Codegen] No RPC endpoints found, skipping Viem resources generation", "warn");
|
275053
274792
|
return;
|
275054
274793
|
}
|
275055
|
-
const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await
|
274794
|
+
const chainId = env2.SETTLEMINT_BLOCKCHAIN_NETWORK_CHAIN_ID ?? await ae4({
|
275056
274795
|
accessToken: env2.SETTLEMINT_ACCESS_TOKEN,
|
275057
274796
|
rpcUrl: env2.SETTLEMINT_BLOCKCHAIN_NODE_OR_LOAD_BALANCER_JSON_RPC_ENDPOINT
|
275058
274797
|
});
|
@@ -275811,7 +275550,7 @@ async function serviceSecretPrompt({
|
|
275811
275550
|
return defaultSecret;
|
275812
275551
|
}
|
275813
275552
|
if (isCi) {
|
275814
|
-
return defaultSecret
|
275553
|
+
return defaultSecret;
|
275815
275554
|
}
|
275816
275555
|
if (defaultSecret) {
|
275817
275556
|
const keep = await esm_default4({
|
@@ -275838,10 +275577,10 @@ async function serviceUrlPrompt({
|
|
275838
275577
|
}) {
|
275839
275578
|
const autoAccept = !!accept || isCi;
|
275840
275579
|
if (autoAccept && defaultUrl) {
|
275841
|
-
return
|
275580
|
+
return new URL(defaultUrl).toString();
|
275842
275581
|
}
|
275843
275582
|
if (isCi) {
|
275844
|
-
return
|
275583
|
+
return defaultUrl ? new URL(defaultUrl).toString() : undefined;
|
275845
275584
|
}
|
275846
275585
|
const serviceUrl = await esm_default2({
|
275847
275586
|
message: example ? `${message} (eg ${example})` : message,
|
@@ -275943,7 +275682,7 @@ async function workspaceSpinner(settlemint) {
|
|
275943
275682
|
}
|
275944
275683
|
|
275945
275684
|
// src/spinners/write-env.spinner.ts
|
275946
|
-
async function writeEnvSpinner(prod, env2) {
|
275685
|
+
async function writeEnvSpinner(prod, env2, cwd) {
|
275947
275686
|
return spinner({
|
275948
275687
|
startMessage: "Saving .env and .env.local files",
|
275949
275688
|
stopMessage: "Written .env and .env.local file",
|
@@ -275957,7 +275696,8 @@ async function writeEnvSpinner(prod, env2) {
|
|
275957
275696
|
await writeEnv({
|
275958
275697
|
prod,
|
275959
275698
|
env: updatedSecrets,
|
275960
|
-
secrets: true
|
275699
|
+
secrets: true,
|
275700
|
+
cwd
|
275961
275701
|
});
|
275962
275702
|
const updatedEnv = {
|
275963
275703
|
SETTLEMINT_INSTANCE: env2.SETTLEMINT_INSTANCE,
|
@@ -275999,7 +275739,8 @@ async function writeEnvSpinner(prod, env2) {
|
|
275999
275739
|
await writeEnv({
|
276000
275740
|
prod,
|
276001
275741
|
env: updatedEnv,
|
276002
|
-
secrets: false
|
275742
|
+
secrets: false,
|
275743
|
+
cwd
|
276003
275744
|
});
|
276004
275745
|
}
|
276005
275746
|
});
|
@@ -276122,9 +275863,68 @@ function getHdPrivateKeyEnv(service) {
|
|
276122
275863
|
};
|
276123
275864
|
}
|
276124
275865
|
|
275866
|
+
// ../utils/dist/logging.mjs
|
275867
|
+
var maskTokens4 = (output) => {
|
275868
|
+
return output.replace(/sm_(pat|aat|sat)_[0-9a-zA-Z]+/g, "***");
|
275869
|
+
};
|
275870
|
+
function createLogger(options = {}) {
|
275871
|
+
const { level = "warn", prefix = "" } = options;
|
275872
|
+
const logLevels = {
|
275873
|
+
debug: 0,
|
275874
|
+
info: 1,
|
275875
|
+
warn: 2,
|
275876
|
+
error: 3,
|
275877
|
+
none: 4
|
275878
|
+
};
|
275879
|
+
const currentLevelValue = logLevels[level];
|
275880
|
+
const formatArgs = (args) => {
|
275881
|
+
if (args.length === 0 || args.every((arg) => arg === undefined || arg === null)) {
|
275882
|
+
return "";
|
275883
|
+
}
|
275884
|
+
const formatted = args.map((arg) => {
|
275885
|
+
if (arg instanceof Error) {
|
275886
|
+
return `
|
275887
|
+
${arg.stack || arg.message}`;
|
275888
|
+
}
|
275889
|
+
if (typeof arg === "object" && arg !== null) {
|
275890
|
+
return `
|
275891
|
+
${JSON.stringify(arg, null, 2)}`;
|
275892
|
+
}
|
275893
|
+
return ` ${String(arg)}`;
|
275894
|
+
}).join("");
|
275895
|
+
return `, args:${formatted}`;
|
275896
|
+
};
|
275897
|
+
const shouldLog = (level2) => {
|
275898
|
+
return logLevels[level2] >= currentLevelValue;
|
275899
|
+
};
|
275900
|
+
return {
|
275901
|
+
debug: (message, ...args) => {
|
275902
|
+
if (shouldLog("debug")) {
|
275903
|
+
console.debug(`\x1B[32m${prefix}[DEBUG] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275904
|
+
}
|
275905
|
+
},
|
275906
|
+
info: (message, ...args) => {
|
275907
|
+
if (shouldLog("info")) {
|
275908
|
+
console.info(`\x1B[34m${prefix}[INFO] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275909
|
+
}
|
275910
|
+
},
|
275911
|
+
warn: (message, ...args) => {
|
275912
|
+
if (shouldLog("warn")) {
|
275913
|
+
console.warn(`\x1B[33m${prefix}[WARN] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275914
|
+
}
|
275915
|
+
},
|
275916
|
+
error: (message, ...args) => {
|
275917
|
+
if (shouldLog("error")) {
|
275918
|
+
console.error(`\x1B[31m${prefix}[ERROR] ${maskTokens4(message)}${maskTokens4(formatArgs(args))}\x1B[0m`);
|
275919
|
+
}
|
275920
|
+
}
|
275921
|
+
};
|
275922
|
+
}
|
275923
|
+
var logger = createLogger();
|
275924
|
+
|
276125
275925
|
// src/commands/connect.ts
|
276126
275926
|
function connectCommand() {
|
276127
|
-
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file). Use 'standalone' if your resources are not
|
275927
|
+
return new Command("connect").option("--prod", "Connect to your production environment").option("-a, --accept-defaults", "Accept the default and previously set values").option("-i, --instance <instance>", "The instance to connect to (defaults to the instance in the .env file). Use 'standalone' if your resources are not deployed on the SettleMint platform").description("Connects your dApp to your application").usage(createExamples([
|
276128
275928
|
{
|
276129
275929
|
description: "Connect to your environment",
|
276130
275930
|
command: "connect"
|
@@ -276136,6 +275936,10 @@ function connectCommand() {
|
|
276136
275936
|
{
|
276137
275937
|
description: "Connect to your production environment",
|
276138
275938
|
command: "connect --prod"
|
275939
|
+
},
|
275940
|
+
{
|
275941
|
+
description: "Connect to a standalone environment (when not using the SettleMint platform)",
|
275942
|
+
command: "connect --instance standalone"
|
276139
275943
|
}
|
276140
275944
|
])).action(async ({ acceptDefaults, prod, instance }) => {
|
276141
275945
|
intro("Connecting your dApp");
|
@@ -276146,7 +275950,7 @@ function connectCommand() {
|
|
276146
275950
|
} else {
|
276147
275951
|
await connectToPlatform(env2, selectedInstance, acceptDefaults, prod);
|
276148
275952
|
}
|
276149
|
-
outro("
|
275953
|
+
outro("dApp connected");
|
276150
275954
|
});
|
276151
275955
|
}
|
276152
275956
|
async function connectToPlatform(env2, selectedInstance, acceptDefaults, prod) {
|
@@ -276448,11 +276252,23 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
|
|
276448
276252
|
});
|
276449
276253
|
selectedServices[id] = {
|
276450
276254
|
label: prompt.label,
|
276451
|
-
result
|
276255
|
+
result,
|
276256
|
+
isSecret
|
276452
276257
|
};
|
276453
276258
|
}
|
276454
276259
|
if (acceptDefaults) {
|
276455
|
-
table("Selected services", Object.values(selectedServices).
|
276260
|
+
table("Selected services", Object.values(selectedServices).map((item) => {
|
276261
|
+
if (item.isSecret) {
|
276262
|
+
return {
|
276263
|
+
...item,
|
276264
|
+
result: "********"
|
276265
|
+
};
|
276266
|
+
}
|
276267
|
+
return {
|
276268
|
+
...item,
|
276269
|
+
result: item.result ? maskTokens4(item.result) : undefined
|
276270
|
+
};
|
276271
|
+
}).filter(Boolean));
|
276456
276272
|
}
|
276457
276273
|
await writeEnvSpinner(!!prod, {
|
276458
276274
|
SETTLEMINT_INSTANCE: STANDALONE_INSTANCE2,
|
@@ -276461,8 +276277,8 @@ async function connectToStandalone(env2, acceptDefaults, prod) {
|
|
276461
276277
|
SETTLEMINT_HASURA_ENDPOINT: selectedServices.hasuraEndpoint?.result,
|
276462
276278
|
SETTLEMINT_HASURA_ADMIN_SECRET: selectedServices.hasuraAdminSecret?.result,
|
276463
276279
|
SETTLEMINT_HASURA_DATABASE_URL: selectedServices.hasuraDatabaseUrl?.result,
|
276464
|
-
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: selectedServices.theGraphEndpoint ? [selectedServices.theGraphEndpoint.result] : [],
|
276465
|
-
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: selectedServices.theGraphEndpoint ? getSubgraphName(selectedServices.theGraphEndpoint.result) : undefined,
|
276280
|
+
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: selectedServices.theGraphEndpoint?.result ? [selectedServices.theGraphEndpoint.result] : [],
|
276281
|
+
SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: selectedServices.theGraphEndpoint?.result ? getSubgraphName(selectedServices.theGraphEndpoint.result) : undefined,
|
276466
276282
|
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: selectedServices.portalGraphqlEndpoint?.result,
|
276467
276283
|
SETTLEMINT_MINIO_ENDPOINT: selectedServices.minioEndpoint?.result,
|
276468
276284
|
SETTLEMINT_MINIO_ACCESS_KEY: selectedServices.minioAccessKey?.result,
|
@@ -276504,7 +276320,7 @@ async function templatePrompt(platformConfig, argument) {
|
|
276504
276320
|
...kits.map((template2) => ({
|
276505
276321
|
name: template2.name,
|
276506
276322
|
value: template2
|
276507
|
-
})).sort((a7,
|
276323
|
+
})).sort((a7, b5) => a7.name.localeCompare(b5.name))
|
276508
276324
|
]
|
276509
276325
|
});
|
276510
276326
|
return template;
|
@@ -276888,12 +276704,12 @@ var U6 = l3((Ae3, G4) => {
|
|
276888
276704
|
}
|
276889
276705
|
});
|
276890
276706
|
var et3 = l3((Re3, tt2) => {
|
276891
|
-
var
|
276892
|
-
let n6 = e10.colon || Bt2, r6 = t8.match(/\//) ||
|
276893
|
-
...
|
276707
|
+
var g6 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y4 = h8("path"), Bt2 = g6 ? ";" : ":", V5 = U6(), J3 = (t8) => Object.assign(new Error(`not found: ${t8}`), { code: "ENOENT" }), Q4 = (t8, e10) => {
|
276708
|
+
let n6 = e10.colon || Bt2, r6 = t8.match(/\//) || g6 && t8.match(/\\/) ? [""] : [
|
276709
|
+
...g6 ? [process.cwd()] : [],
|
276894
276710
|
...(e10.path || process.env.PATH || "").split(n6)
|
276895
|
-
], s7 =
|
276896
|
-
return
|
276711
|
+
], s7 = g6 ? e10.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", o8 = g6 ? s7.split(n6) : [""];
|
276712
|
+
return g6 && t8.indexOf(".") !== -1 && o8[0] !== "" && o8.unshift(""), {
|
276897
276713
|
pathEnv: r6,
|
276898
276714
|
pathExt: o8,
|
276899
276715
|
pathExtExe: s7
|
@@ -276903,14 +276719,14 @@ var et3 = l3((Re3, tt2) => {
|
|
276903
276719
|
let { pathEnv: r6, pathExt: s7, pathExtExe: o8 } = Q4(t8, e10), i6 = [], a7 = (u7) => new Promise((f5, p5) => {
|
276904
276720
|
if (u7 === r6.length)
|
276905
276721
|
return e10.all && i6.length ? f5(i6) : p5(J3(t8));
|
276906
|
-
let d6 = r6[u7], w5 = /^".*"$/.test(d6) ? d6.slice(1, -1) : d6, m7 = Y4.join(w5, t8),
|
276907
|
-
f5(c3(
|
276722
|
+
let d6 = r6[u7], w5 = /^".*"$/.test(d6) ? d6.slice(1, -1) : d6, m7 = Y4.join(w5, t8), b5 = !w5 && /^\.[\\\/]/.test(t8) ? t8.slice(0, 2) + m7 : m7;
|
276723
|
+
f5(c3(b5, u7, 0));
|
276908
276724
|
}), c3 = (u7, f5, p5) => new Promise((d6, w5) => {
|
276909
276725
|
if (p5 === s7.length)
|
276910
276726
|
return d6(a7(f5 + 1));
|
276911
276727
|
let m7 = s7[p5];
|
276912
|
-
V5(u7 + m7, { pathExt: o8 }, (
|
276913
|
-
if (!
|
276728
|
+
V5(u7 + m7, { pathExt: o8 }, (b5, Ot2) => {
|
276729
|
+
if (!b5 && Ot2)
|
276914
276730
|
if (e10.all)
|
276915
276731
|
i6.push(u7 + m7);
|
276916
276732
|
else
|
@@ -276977,12 +276793,12 @@ var ct3 = l3((Ne3, it2) => {
|
|
276977
276793
|
it2.exports = Yt2;
|
276978
276794
|
});
|
276979
276795
|
var ut3 = l3((qe2, P5) => {
|
276980
|
-
var
|
276796
|
+
var C4 = /([()\][%!^"`<>&|;, *?])/g;
|
276981
276797
|
function Vt2(t8) {
|
276982
|
-
return t8 = t8.replace(
|
276798
|
+
return t8 = t8.replace(C4, "^$1"), t8;
|
276983
276799
|
}
|
276984
276800
|
function Jt2(t8, e10) {
|
276985
|
-
return t8 = `${t8}`, t8 = t8.replace(/(\\*)"/g, "$1$1\\\""), t8 = t8.replace(/(\\*)$/, "$1$1"), t8 = `"${t8}"`, t8 = t8.replace(
|
276801
|
+
return t8 = `${t8}`, t8 = t8.replace(/(\\*)"/g, "$1$1\\\""), t8 = t8.replace(/(\\*)$/, "$1$1"), t8 = `"${t8}"`, t8 = t8.replace(C4, "^$1"), e10 && (t8 = t8.replace(C4, "^$1")), t8;
|
276986
276802
|
}
|
276987
276803
|
P5.exports.command = Vt2;
|
276988
276804
|
P5.exports.argument = Jt2;
|
@@ -277001,11 +276817,11 @@ var dt3 = l3((Le3, pt2) => {
|
|
277001
276817
|
};
|
277002
276818
|
});
|
277003
276819
|
var ht3 = l3((je3, ft2) => {
|
277004
|
-
var
|
276820
|
+
var O6 = h8("fs"), Zt2 = dt3();
|
277005
276821
|
function te4(t8) {
|
277006
276822
|
let n6 = Buffer.alloc(150), r6;
|
277007
276823
|
try {
|
277008
|
-
r6 =
|
276824
|
+
r6 = O6.openSync(t8, "r"), O6.readSync(r6, n6, 0, 150, 0), O6.closeSync(r6);
|
277009
276825
|
} catch {}
|
277010
276826
|
return Zt2(n6.toString());
|
277011
276827
|
}
|
@@ -277013,7 +276829,7 @@ var ht3 = l3((je3, ft2) => {
|
|
277013
276829
|
});
|
277014
276830
|
var wt3 = l3((Fe3, Et2) => {
|
277015
276831
|
var ee4 = h8("path"), mt2 = ct3(), gt3 = ut3(), ne3 = ht3(), re4 = process.platform === "win32", se4 = /\.(?:com|exe)$/i, oe4 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
277016
|
-
function
|
276832
|
+
function ie4(t8) {
|
277017
276833
|
t8.file = mt2(t8);
|
277018
276834
|
let e10 = t8.file && ne3(t8.file);
|
277019
276835
|
return e10 ? (t8.args.unshift(t8.file), t8.command = e10, mt2(t8)) : t8.file;
|
@@ -277021,7 +276837,7 @@ var wt3 = l3((Fe3, Et2) => {
|
|
277021
276837
|
function ce3(t8) {
|
277022
276838
|
if (!re4)
|
277023
276839
|
return t8;
|
277024
|
-
let e10 =
|
276840
|
+
let e10 = ie4(t8), n6 = !se4.test(e10);
|
277025
276841
|
if (t8.options.forceShell || n6) {
|
277026
276842
|
let r6 = oe4.test(e10);
|
277027
276843
|
t8.command = ee4.normalize(t8.command), t8.command = gt3.command(t8.command), t8.args = t8.args.map((o8) => gt3.argument(o8, r6));
|
@@ -277057,7 +276873,7 @@ var bt3 = l3((ze3, vt2) => {
|
|
277057
276873
|
spawnargs: t8.args
|
277058
276874
|
});
|
277059
276875
|
}
|
277060
|
-
function
|
276876
|
+
function ae5(t8, e10) {
|
277061
276877
|
if (!S4)
|
277062
276878
|
return;
|
277063
276879
|
let n6 = t8.emit;
|
@@ -277077,27 +276893,27 @@ var bt3 = l3((ze3, vt2) => {
|
|
277077
276893
|
return S4 && t8 === 1 && !e10.file ? k5(e10.original, "spawnSync") : null;
|
277078
276894
|
}
|
277079
276895
|
vt2.exports = {
|
277080
|
-
hookChildProcess:
|
276896
|
+
hookChildProcess: ae5,
|
277081
276897
|
verifyENOENT: xt2,
|
277082
276898
|
verifyENOENTSync: le4,
|
277083
276899
|
notFoundError: k5
|
277084
276900
|
};
|
277085
276901
|
});
|
277086
276902
|
var Ct3 = l3((He3, E6) => {
|
277087
|
-
var yt2 = h8("child_process"), T4 = wt3(),
|
276903
|
+
var yt2 = h8("child_process"), T4 = wt3(), A5 = bt3();
|
277088
276904
|
function _t2(t8, e10, n6) {
|
277089
276905
|
let r6 = T4(t8, e10, n6), s7 = yt2.spawn(r6.command, r6.args, r6.options);
|
277090
|
-
return
|
276906
|
+
return A5.hookChildProcess(s7, r6), s7;
|
277091
276907
|
}
|
277092
276908
|
function pe4(t8, e10, n6) {
|
277093
276909
|
let r6 = T4(t8, e10, n6), s7 = yt2.spawnSync(r6.command, r6.args, r6.options);
|
277094
|
-
return s7.error = s7.error ||
|
276910
|
+
return s7.error = s7.error || A5.verifyENOENTSync(s7.status, r6), s7;
|
277095
276911
|
}
|
277096
276912
|
E6.exports = _t2;
|
277097
276913
|
E6.exports.spawn = _t2;
|
277098
276914
|
E6.exports.sync = pe4;
|
277099
276915
|
E6.exports._parse = T4;
|
277100
|
-
E6.exports._enoent =
|
276916
|
+
E6.exports._enoent = A5;
|
277101
276917
|
});
|
277102
276918
|
var Lt3 = /^path$/i;
|
277103
276919
|
var q6 = { key: "PATH", value: "" };
|
@@ -277171,7 +276987,7 @@ function xe4(t8) {
|
|
277171
276987
|
}
|
277172
276988
|
return e10.signal;
|
277173
276989
|
}
|
277174
|
-
var
|
276990
|
+
var R8 = class {
|
277175
276991
|
_process;
|
277176
276992
|
_aborted = false;
|
277177
276993
|
_options;
|
@@ -277285,7 +277101,7 @@ var R7 = class {
|
|
277285
277101
|
};
|
277286
277102
|
};
|
277287
277103
|
var ve4 = (t8, e10, n6) => {
|
277288
|
-
let r6 = new
|
277104
|
+
let r6 = new R8(t8, e10, n6);
|
277289
277105
|
return r6.spawn(), r6;
|
277290
277106
|
};
|
277291
277107
|
var be3 = ve4;
|
@@ -277523,7 +277339,7 @@ function w$1() {
|
|
277523
277339
|
i$5 = 1;
|
277524
277340
|
const v6 = (e10, r6) => {
|
277525
277341
|
if (Number.isSafeInteger(e10))
|
277526
|
-
e10 < 0 ?
|
277342
|
+
e10 < 0 ? g6(e10, r6) : p5(e10, r6);
|
277527
277343
|
else
|
277528
277344
|
throw Error("cannot encode number outside of javascript safe integer range");
|
277529
277345
|
return r6;
|
@@ -277531,7 +277347,7 @@ function w$1() {
|
|
277531
277347
|
r6[0] = 128;
|
277532
277348
|
for (var o8 = r6.length;o8 > 1; o8--)
|
277533
277349
|
r6[o8 - 1] = e10 & 255, e10 = Math.floor(e10 / 256);
|
277534
|
-
},
|
277350
|
+
}, g6 = (e10, r6) => {
|
277535
277351
|
r6[0] = 255;
|
277536
277352
|
var o8 = false;
|
277537
277353
|
e10 = e10 * -1;
|
@@ -277599,7 +277415,7 @@ function E6() {
|
|
277599
277415
|
if (e10 || (e10 = this.block = Buffer.alloc(512), t8 = 0), t8 || (t8 = 0), !(e10.length >= t8 + 512))
|
277600
277416
|
throw new Error("need 512 bytes for header");
|
277601
277417
|
const i6 = this.ctime || this.atime ? 130 : 155, h9 = L6(this.path || "", i6), l4 = h9[0], n6 = h9[1];
|
277602
|
-
this.needPax = h9[2], this.needPax = m7(e10, t8, 100, l4) || this.needPax, this.needPax = c3(e10, t8 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e10, t8 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e10, t8 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e10, t8 + 124, 12, this.size) || this.needPax, this.needPax =
|
277418
|
+
this.needPax = h9[2], this.needPax = m7(e10, t8, 100, l4) || this.needPax, this.needPax = c3(e10, t8 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e10, t8 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e10, t8 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e10, t8 + 124, 12, this.size) || this.needPax, this.needPax = g6(e10, t8 + 136, 12, this.mtime) || this.needPax, e10[t8 + 156] = this[a7].charCodeAt(0), this.needPax = m7(e10, t8 + 157, 100, this.linkpath) || this.needPax, e10.write("ustar\x0000", t8 + 257, 8), this.needPax = m7(e10, t8 + 265, 32, this.uname) || this.needPax, this.needPax = m7(e10, t8 + 297, 32, this.gname) || this.needPax, this.needPax = c3(e10, t8 + 329, 8, this.devmaj) || this.needPax, this.needPax = c3(e10, t8 + 337, 8, this.devmin) || this.needPax, this.needPax = m7(e10, t8 + 345, i6, n6) || this.needPax, e10[t8 + 475] !== 0 ? this.needPax = m7(e10, t8 + 345, 155, n6) || this.needPax : (this.needPax = m7(e10, t8 + 345, 130, n6) || this.needPax, this.needPax = g6(e10, t8 + 476, 12, this.atime) || this.needPax, this.needPax = g6(e10, t8 + 488, 12, this.ctime) || this.needPax);
|
277603
277419
|
let S4 = 8 * 32;
|
277604
277420
|
for (let p5 = t8;p5 < t8 + 148; p5++)
|
277605
277421
|
S4 += e10[p5];
|
@@ -277634,7 +277450,7 @@ function E6() {
|
|
277634
277450
|
l4 || (l4 = [s7.slice(0, 99), "", true]);
|
277635
277451
|
}
|
277636
277452
|
return l4;
|
277637
|
-
}, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00",
|
277453
|
+
}, d6 = (s7, e10, t8) => s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*/, ""), o8 = (s7, e10, t8) => N7(r6(s7, e10, t8)), N7 = (s7) => s7 === null ? null : new Date(s7 * 1000), r6 = (s7, e10, t8) => s7[e10] & 128 ? y4.parse(s7.slice(e10, e10 + t8)) : j3(s7, e10, t8), q7 = (s7) => isNaN(s7) ? null : s7, j3 = (s7, e10, t8) => q7(parseInt(s7.slice(e10, e10 + t8).toString("utf8").replace(/\0.*$/, "").trim(), 8)), v6 = { 12: 8589934591, 8: 2097151 }, c3 = (s7, e10, t8, i6) => i6 === null ? false : i6 > v6[t8] || i6 < 0 ? (y4.encode(i6, s7.slice(e10, e10 + t8)), true) : ($6(s7, e10, t8, i6), false), $6 = (s7, e10, t8, i6) => s7.write(_5(i6, t8), e10, t8, "ascii"), _5 = (s7, e10) => z4(Math.floor(s7).toString(8), e10), z4 = (s7, e10) => (s7.length === e10 - 1 ? s7 : new Array(e10 - s7.length - 1).join("0") + s7 + " ") + "\x00", g6 = (s7, e10, t8, i6) => i6 === null ? false : c3(s7, e10, t8, i6.getTime() / 1000), A5 = new Array(156).join("\x00"), m7 = (s7, e10, t8, i6) => i6 === null ? false : (s7.write(i6 + A5, e10, t8, "utf8"), i6.length !== Buffer.byteLength(i6) || i6.length > t8);
|
277638
277454
|
return k5 = B4, k5;
|
277639
277455
|
}
|
277640
277456
|
var e$3;
|
@@ -277822,11 +277638,11 @@ function ft2() {
|
|
277822
277638
|
if (X$1)
|
277823
277639
|
return s$5;
|
277824
277640
|
X$1 = 1;
|
277825
|
-
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"),
|
277641
|
+
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q7 = ot2, G4 = ht4.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R9 = Symbol("emittingEnd"), g6 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $6 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b5 = Symbol("resume"), i6 = Symbol("buffer"), a7 = Symbol("pipes"), n6 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r6 = Symbol("destroyed"), P6 = Symbol("error"), x7 = Symbol("emitData"), V6 = Symbol("emitEnd"), N7 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O6 = Symbol("aborted"), E7 = Symbol("signal"), w6 = (h9) => Promise.resolve().then(h9), J3 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J3 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W6 = J3 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h9) => h9 === "end" || h9 === "finish" || h9 === "prefinish", tt2 = (h9) => h9 instanceof ArrayBuffer || typeof h9 == "object" && h9.constructor && h9.constructor.name === "ArrayBuffer" && h9.byteLength >= 0, et4 = (h9) => !Buffer.isBuffer(h9) && ArrayBuffer.isView(h9);
|
277826
277642
|
|
277827
277643
|
class z4 {
|
277828
277644
|
constructor(t8, e10, s7) {
|
277829
|
-
this.src = t8, this.dest = e10, this.opts = s7, this.ondrain = () => t8[
|
277645
|
+
this.src = t8, this.dest = e10, this.opts = s7, this.ondrain = () => t8[b5](), e10.on("drain", this.ondrain);
|
277830
277646
|
}
|
277831
277647
|
unpipe() {
|
277832
277648
|
this.dest.removeListener("drain", this.ondrain);
|
@@ -277848,7 +277664,7 @@ function ft2() {
|
|
277848
277664
|
|
277849
277665
|
class F3 extends q7 {
|
277850
277666
|
constructor(t8) {
|
277851
|
-
super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[
|
277667
|
+
super(), this[M5] = false, this[S4] = false, this[a7] = [], this[i6] = [], this[o8] = t8 && t8.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t8 && t8.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t8 && !!t8.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R9] = false, this[B4] = false, this[g6] = null, this.writable = true, this.readable = true, this[n6] = 0, this[r6] = false, t8 && t8.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i6] }), t8 && t8.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a7] }), this[E7] = t8 && t8.signal, this[O6] = false, this[E7] && (this[E7].addEventListener("abort", () => this[_5]()), this[E7].aborted && this[_5]());
|
277852
277668
|
}
|
277853
277669
|
get bufferLength() {
|
277854
277670
|
return this[n6];
|
@@ -277879,14 +277695,14 @@ function ft2() {
|
|
277879
277695
|
this[p5] = this[p5] || !!t8;
|
277880
277696
|
}
|
277881
277697
|
[_5]() {
|
277882
|
-
this[
|
277698
|
+
this[O6] = true, this.emit("abort", this[E7].reason), this.destroy(this[E7].reason);
|
277883
277699
|
}
|
277884
277700
|
get aborted() {
|
277885
|
-
return this[
|
277701
|
+
return this[O6];
|
277886
277702
|
}
|
277887
277703
|
set aborted(t8) {}
|
277888
277704
|
write(t8, e10, s7) {
|
277889
|
-
if (this[
|
277705
|
+
if (this[O6])
|
277890
277706
|
return false;
|
277891
277707
|
if (this[m7])
|
277892
277708
|
throw new Error("write after end");
|
@@ -277911,11 +277727,11 @@ function ft2() {
|
|
277911
277727
|
end(t8, e10, s7) {
|
277912
277728
|
return typeof t8 == "function" && (s7 = t8, t8 = null), typeof e10 == "function" && (s7 = e10, e10 = "utf8"), t8 && this.write(t8, e10), s7 && this.once("end", s7), this[m7] = true, this.writable = false, (this.flowing || !this[S4]) && this[d6](), this;
|
277913
277729
|
}
|
277914
|
-
[
|
277730
|
+
[b5]() {
|
277915
277731
|
this[r6] || (this[S4] = false, this[M5] = true, this.emit("resume"), this[i6].length ? this[T4]() : this[m7] ? this[d6]() : this.emit("drain"));
|
277916
277732
|
}
|
277917
277733
|
resume() {
|
277918
|
-
return this[
|
277734
|
+
return this[b5]();
|
277919
277735
|
}
|
277920
277736
|
pause() {
|
277921
277737
|
this[M5] = false, this[S4] = true;
|
@@ -277948,7 +277764,7 @@ function ft2() {
|
|
277948
277764
|
if (this[r6])
|
277949
277765
|
return;
|
277950
277766
|
const s7 = this[y4];
|
277951
|
-
return e10 = e10 || {}, t8 === H4.stdout || t8 === H4.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, s7 ? e10.end && t8.end() : (this[a7].push(e10.proxyErrors ? new st2(this, t8, e10) : new z4(this, t8, e10)), this[p5] ? w6(() => this[
|
277767
|
+
return e10 = e10 || {}, t8 === H4.stdout || t8 === H4.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, s7 ? e10.end && t8.end() : (this[a7].push(e10.proxyErrors ? new st2(this, t8, e10) : new z4(this, t8, e10)), this[p5] ? w6(() => this[b5]()) : this[b5]()), t8;
|
277952
277768
|
}
|
277953
277769
|
unpipe(t8) {
|
277954
277770
|
const e10 = this[a7].find((s7) => s7.dest === t8);
|
@@ -277959,13 +277775,13 @@ function ft2() {
|
|
277959
277775
|
}
|
277960
277776
|
on(t8, e10) {
|
277961
277777
|
const s7 = super.on(t8, e10);
|
277962
|
-
return t8 === "data" && !this[a7].length && !this.flowing ? this[
|
277778
|
+
return t8 === "data" && !this[a7].length && !this.flowing ? this[b5]() : t8 === "readable" && this[n6] !== 0 ? super.emit("readable") : k6(t8) && this[y4] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[g6] && (this[p5] ? w6(() => e10.call(this, this[g6])) : e10.call(this, this[g6])), s7;
|
277963
277779
|
}
|
277964
277780
|
get emittedEnd() {
|
277965
277781
|
return this[y4];
|
277966
277782
|
}
|
277967
277783
|
[d6]() {
|
277968
|
-
!this[
|
277784
|
+
!this[R9] && !this[y4] && !this[r6] && this[i6].length === 0 && this[m7] && (this[R9] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[B4] && this.emit("close"), this[R9] = false);
|
277969
277785
|
}
|
277970
277786
|
emit(t8, e10, ...s7) {
|
277971
277787
|
if (t8 !== "error" && t8 !== "close" && t8 !== r6 && this[r6])
|
@@ -277980,7 +277796,7 @@ function ft2() {
|
|
277980
277796
|
const u7 = super.emit("close");
|
277981
277797
|
return this.removeAllListeners("close"), u7;
|
277982
277798
|
} else if (t8 === "error") {
|
277983
|
-
this[
|
277799
|
+
this[g6] = e10, super.emit(P6, e10);
|
277984
277800
|
const u7 = !this[E7] || this.listeners("error").length ? super.emit("error", e10) : false;
|
277985
277801
|
return this[d6](), u7;
|
277986
277802
|
} else if (t8 === "resume") {
|
@@ -278044,15 +277860,15 @@ function ft2() {
|
|
278044
277860
|
if (this[m7])
|
278045
277861
|
return e10();
|
278046
277862
|
let u7 = null, Q4 = null;
|
278047
|
-
const
|
278048
|
-
this.removeListener("data", U7), this.removeListener("end",
|
277863
|
+
const A5 = (L6) => {
|
277864
|
+
this.removeListener("data", U7), this.removeListener("end", C4), this.removeListener(r6, D3), e10(), Q4(L6);
|
278049
277865
|
}, U7 = (L6) => {
|
278050
|
-
this.removeListener("error",
|
278051
|
-
},
|
278052
|
-
this.removeListener("error",
|
278053
|
-
}, D3 = () =>
|
277866
|
+
this.removeListener("error", A5), this.removeListener("end", C4), this.removeListener(r6, D3), this.pause(), u7({ value: L6, done: !!this[m7] });
|
277867
|
+
}, C4 = () => {
|
277868
|
+
this.removeListener("error", A5), this.removeListener("data", U7), this.removeListener(r6, D3), e10(), u7({ done: true });
|
277869
|
+
}, D3 = () => A5(new Error("stream destroyed"));
|
278054
277870
|
return new Promise((L6, it2) => {
|
278055
|
-
Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error",
|
277871
|
+
Q4 = it2, u7 = L6, this.once(r6, D3), this.once("error", A5), this.once("end", C4), this.once("data", U7);
|
278056
277872
|
});
|
278057
277873
|
}, throw: e10, return: e10, [K4]() {
|
278058
277874
|
return this;
|
@@ -278198,7 +278014,7 @@ function tt2() {
|
|
278198
278014
|
if (H$1)
|
278199
278015
|
return j3;
|
278200
278016
|
H$1 = 1;
|
278201
|
-
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"),
|
278017
|
+
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x7 = ot2, N7 = ht4.StringDecoder, u7 = Symbol("EOF"), a7 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L6 = Symbol("flush"), _6 = Symbol("flushChunk"), h9 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r6 = Symbol("objectMode"), n6 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R9 = Symbol("emitEnd2"), d6 = Symbol("async"), b5 = (o8) => Promise.resolve().then(o8), C4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $6 = C4 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), G4 = C4 && Symbol.iterator || Symbol("iterator not implemented"), V6 = (o8) => o8 === "end" || o8 === "finish" || o8 === "prefinish", v6 = (o8) => o8 instanceof ArrayBuffer || typeof o8 == "object" && o8.constructor && o8.constructor.name === "ArrayBuffer" && o8.byteLength >= 0, J3 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
|
278202
278018
|
|
278203
278019
|
class U7 {
|
278204
278020
|
constructor(t8, e10, i6) {
|
@@ -278259,7 +278075,7 @@ function tt2() {
|
|
278259
278075
|
if (this[n6])
|
278260
278076
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
278261
278077
|
typeof e10 == "function" && (i6 = e10, e10 = "utf8"), e10 || (e10 = "utf8");
|
278262
|
-
const l4 = this[d6] ?
|
278078
|
+
const l4 = this[d6] ? b5 : (f5) => f5();
|
278263
278079
|
return !this[r6] && !Buffer.isBuffer(t8) && (J3(t8) ? t8 = Buffer.from(t8.buffer, t8.byteOffset, t8.byteLength) : v6(t8) ? t8 = Buffer.from(t8) : typeof t8 != "string" && (this.objectMode = true)), this[r6] ? (this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t8) : this[T5](t8), this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing) : t8.length ? (typeof t8 == "string" && !(e10 === this[h9] && !this[m7].lastNeed) && (t8 = Buffer.from(t8, e10)), Buffer.isBuffer(t8) && this[h9] && (t8 = this[m7].write(t8)), this.flowing && this[s7] !== 0 && this[L6](true), this.flowing ? this.emit("data", t8) : this[T5](t8), this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing) : (this[s7] !== 0 && this.emit("readable"), i6 && l4(i6), this.flowing);
|
278264
278080
|
}
|
278265
278081
|
read(t8) {
|
@@ -278314,7 +278130,7 @@ function tt2() {
|
|
278314
278130
|
if (this[n6])
|
278315
278131
|
return;
|
278316
278132
|
const i6 = this[c3];
|
278317
|
-
return e10 = e10 || {}, t8 === I7.stdout || t8 === I7.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, i6 ? e10.end && t8.end() : (this.pipes.push(e10.proxyErrors ? new K4(this, t8, e10) : new U7(this, t8, e10)), this[d6] ?
|
278133
|
+
return e10 = e10 || {}, t8 === I7.stdout || t8 === I7.stderr ? e10.end = false : e10.end = e10.end !== false, e10.proxyErrors = !!e10.proxyErrors, i6 ? e10.end && t8.end() : (this.pipes.push(e10.proxyErrors ? new K4(this, t8, e10) : new U7(this, t8, e10)), this[d6] ? b5(() => this[p5]()) : this[p5]()), t8;
|
278318
278134
|
}
|
278319
278135
|
unpipe(t8) {
|
278320
278136
|
const e10 = this.pipes.find((i6) => i6.dest === t8);
|
@@ -278325,7 +278141,7 @@ function tt2() {
|
|
278325
278141
|
}
|
278326
278142
|
on(t8, e10) {
|
278327
278143
|
const i6 = super.on(t8, e10);
|
278328
|
-
return t8 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t8 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t8) && this[c3] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[E7] && (this[d6] ?
|
278144
|
+
return t8 === "data" && !this.pipes.length && !this.flowing ? this[p5]() : t8 === "readable" && this[s7] !== 0 ? super.emit("readable") : V6(t8) && this[c3] ? (super.emit(t8), this.removeAllListeners(t8)) : t8 === "error" && this[E7] && (this[d6] ? b5(() => e10.call(this, this[E7])) : e10.call(this, this[E7])), i6;
|
278329
278145
|
}
|
278330
278146
|
get emittedEnd() {
|
278331
278147
|
return this[c3];
|
@@ -278337,7 +278153,7 @@ function tt2() {
|
|
278337
278153
|
if (t8 !== "error" && t8 !== "close" && t8 !== n6 && this[n6])
|
278338
278154
|
return;
|
278339
278155
|
if (t8 === "data")
|
278340
|
-
return e10 ? this[d6] ?
|
278156
|
+
return e10 ? this[d6] ? b5(() => this[D3](e10)) : this[D3](e10) : false;
|
278341
278157
|
if (t8 === "end")
|
278342
278158
|
return this[F3]();
|
278343
278159
|
if (t8 === "close") {
|
@@ -278366,9 +278182,9 @@ function tt2() {
|
|
278366
278182
|
return this[a7](), e10;
|
278367
278183
|
}
|
278368
278184
|
[F3]() {
|
278369
|
-
this[c3] || (this[c3] = true, this.readable = false, this[d6] ?
|
278185
|
+
this[c3] || (this[c3] = true, this.readable = false, this[d6] ? b5(() => this[R9]()) : this[R9]());
|
278370
278186
|
}
|
278371
|
-
[
|
278187
|
+
[R9]() {
|
278372
278188
|
if (this[m7]) {
|
278373
278189
|
const e10 = this[m7].end();
|
278374
278190
|
if (e10) {
|
@@ -278406,15 +278222,15 @@ function tt2() {
|
|
278406
278222
|
if (this[u7])
|
278407
278223
|
return Promise.resolve({ done: true });
|
278408
278224
|
let i6 = null, l4 = null;
|
278409
|
-
const f5 = (
|
278410
|
-
this.removeListener("data",
|
278411
|
-
},
|
278412
|
-
this.removeListener("error", f5), this.removeListener("end",
|
278413
|
-
},
|
278414
|
-
this.removeListener("error", f5), this.removeListener("data",
|
278225
|
+
const f5 = (g6) => {
|
278226
|
+
this.removeListener("data", A5), this.removeListener("end", O6), l4(g6);
|
278227
|
+
}, A5 = (g6) => {
|
278228
|
+
this.removeListener("error", f5), this.removeListener("end", O6), this.pause(), i6({ value: g6, done: !!this[u7] });
|
278229
|
+
}, O6 = () => {
|
278230
|
+
this.removeListener("error", f5), this.removeListener("data", A5), i6({ done: true });
|
278415
278231
|
}, W6 = () => f5(new Error("stream destroyed"));
|
278416
|
-
return new Promise((
|
278417
|
-
l4 = z4, i6 =
|
278232
|
+
return new Promise((g6, z4) => {
|
278233
|
+
l4 = z4, i6 = g6, this.once(n6, W6), this.once("error", f5), this.once("end", O6), this.once("data", A5);
|
278418
278234
|
});
|
278419
278235
|
} };
|
278420
278236
|
}
|
@@ -278432,11 +278248,11 @@ function tt2() {
|
|
278432
278248
|
}
|
278433
278249
|
}, j3;
|
278434
278250
|
}
|
278435
|
-
var
|
278251
|
+
var C4;
|
278436
278252
|
function J3() {
|
278437
|
-
if (
|
278253
|
+
if (C4)
|
278438
278254
|
return i$3;
|
278439
|
-
|
278255
|
+
C4 = 1;
|
278440
278256
|
const w6 = j$1, n6 = P5.Buffer, z4 = O$2, u7 = i$3.constants = T4(), L6 = tt2(), E7 = n6.concat, c3 = Symbol("_superWrite");
|
278441
278257
|
|
278442
278258
|
class d6 extends Error {
|
@@ -278447,13 +278263,13 @@ function J3() {
|
|
278447
278263
|
return "ZlibError";
|
278448
278264
|
}
|
278449
278265
|
}
|
278450
|
-
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t8 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"),
|
278266
|
+
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t8 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"), g6 = Symbol("ended");
|
278451
278267
|
|
278452
278268
|
class x7 extends L6 {
|
278453
278269
|
constructor(s7, e10) {
|
278454
278270
|
if (!s7 || typeof s7 != "object")
|
278455
278271
|
throw new TypeError("invalid options for ZlibBase constructor");
|
278456
|
-
super(s7), this[f5] = false, this[
|
278272
|
+
super(s7), this[f5] = false, this[g6] = false, this[Z4] = s7, this[p5] = s7.flush, this[I7] = s7.finishFlush;
|
278457
278273
|
try {
|
278458
278274
|
this[t8] = new z4[e10](s7);
|
278459
278275
|
} catch (i6) {
|
@@ -278474,16 +278290,16 @@ function J3() {
|
|
278474
278290
|
this.ended || (typeof s7 != "number" && (s7 = this[y4]), this.write(Object.assign(n6.alloc(0), { [p5]: s7 })));
|
278475
278291
|
}
|
278476
278292
|
end(s7, e10, i6) {
|
278477
|
-
return s7 && this.write(s7, e10), this.flush(this[I7]), this[
|
278293
|
+
return s7 && this.write(s7, e10), this.flush(this[I7]), this[g6] = true, super.end(null, null, i6);
|
278478
278294
|
}
|
278479
278295
|
get ended() {
|
278480
|
-
return this[
|
278296
|
+
return this[g6];
|
278481
278297
|
}
|
278482
278298
|
write(s7, e10, i6) {
|
278483
278299
|
if (typeof e10 == "function" && (i6 = e10, e10 = "utf8"), typeof s7 == "string" && (s7 = n6.from(s7, e10)), this[f5])
|
278484
278300
|
return;
|
278485
278301
|
w6(this[t8], "zlib binding closed");
|
278486
|
-
const m7 = this[t8]._handle,
|
278302
|
+
const m7 = this[t8]._handle, R9 = m7.close;
|
278487
278303
|
m7.close = () => {};
|
278488
278304
|
const G4 = this[t8].close;
|
278489
278305
|
this[t8].close = () => {}, n6.concat = (l4) => l4;
|
@@ -278494,18 +278310,18 @@ function J3() {
|
|
278494
278310
|
} catch (l4) {
|
278495
278311
|
n6.concat = E7, this[_6](new d6(l4));
|
278496
278312
|
} finally {
|
278497
|
-
this[t8] && (this[t8]._handle = m7, m7.close =
|
278313
|
+
this[t8] && (this[t8]._handle = m7, m7.close = R9, this[t8].close = G4, this[t8].removeAllListeners("error"));
|
278498
278314
|
}
|
278499
278315
|
this[t8] && this[t8].on("error", (l4) => this[_6](new d6(l4)));
|
278500
|
-
let
|
278316
|
+
let b5;
|
278501
278317
|
if (h9)
|
278502
278318
|
if (Array.isArray(h9) && h9.length > 0) {
|
278503
|
-
|
278319
|
+
b5 = this[c3](n6.from(h9[0]));
|
278504
278320
|
for (let l4 = 1;l4 < h9.length; l4++)
|
278505
|
-
|
278321
|
+
b5 = this[c3](h9[l4]);
|
278506
278322
|
} else
|
278507
|
-
|
278508
|
-
return i6 && i6(),
|
278323
|
+
b5 = this[c3](n6.from(h9));
|
278324
|
+
return i6 && i6(), b5;
|
278509
278325
|
}
|
278510
278326
|
[c3](s7) {
|
278511
278327
|
return super.write(s7);
|
@@ -278525,8 +278341,8 @@ function J3() {
|
|
278525
278341
|
if (this[F3] !== s7 || this[S4] !== e10) {
|
278526
278342
|
this.flush(u7.Z_SYNC_FLUSH), w6(this[t8], "zlib binding closed");
|
278527
278343
|
const i6 = this[t8].flush;
|
278528
|
-
this[t8].flush = (m7,
|
278529
|
-
this.flush(m7),
|
278344
|
+
this[t8].flush = (m7, R9) => {
|
278345
|
+
this.flush(m7), R9();
|
278530
278346
|
};
|
278531
278347
|
try {
|
278532
278348
|
this[t8].params(s7, e10);
|
@@ -278584,24 +278400,24 @@ function J3() {
|
|
278584
278400
|
}
|
278585
278401
|
}
|
278586
278402
|
|
278587
|
-
class
|
278403
|
+
class O6 extends x7 {
|
278588
278404
|
constructor(s7, e10) {
|
278589
278405
|
s7 = s7 || {}, s7.flush = s7.flush || u7.BROTLI_OPERATION_PROCESS, s7.finishFlush = s7.finishFlush || u7.BROTLI_OPERATION_FINISH, super(s7, e10), this[y4] = u7.BROTLI_OPERATION_FLUSH;
|
278590
278406
|
}
|
278591
278407
|
}
|
278592
278408
|
|
278593
|
-
class v6 extends
|
278409
|
+
class v6 extends O6 {
|
278594
278410
|
constructor(s7) {
|
278595
278411
|
super(s7, "BrotliCompress");
|
278596
278412
|
}
|
278597
278413
|
}
|
278598
278414
|
|
278599
|
-
class
|
278415
|
+
class A5 extends O6 {
|
278600
278416
|
constructor(s7) {
|
278601
278417
|
super(s7, "BrotliDecompress");
|
278602
278418
|
}
|
278603
278419
|
}
|
278604
|
-
return i$3.Deflate = q7, i$3.Inflate = D3, i$3.Gzip = $6, i$3.Gunzip = N7, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U7, typeof z4.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress =
|
278420
|
+
return i$3.Deflate = q7, i$3.Inflate = D3, i$3.Gzip = $6, i$3.Gunzip = N7, i$3.DeflateRaw = H4, i$3.InflateRaw = T$1, i$3.Unzip = U7, typeof z4.BrotliCompress == "function" ? (i$3.BrotliCompress = v6, i$3.BrotliDecompress = A5) : i$3.BrotliCompress = i$3.BrotliDecompress = class {
|
278605
278421
|
constructor() {
|
278606
278422
|
throw new Error("Brotli is not supported in this version of Node.js");
|
278607
278423
|
}
|
@@ -278613,7 +278429,7 @@ function rt4() {
|
|
278613
278429
|
if (F$2)
|
278614
278430
|
return O$1;
|
278615
278431
|
F$2 = 1;
|
278616
|
-
const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(),
|
278432
|
+
const P6 = c$4(), $6 = E6(), v6 = nt2, W6 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C5 = f$2(), x7 = J3(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h9 = Symbol("state"), d6 = Symbol("writeEntry"), a7 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U7 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n6 = Symbol("buffer"), f5 = Symbol("queue"), u7 = Symbol("ended"), L6 = Symbol("emittedEnd"), b5 = Symbol("emit"), r6 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g6 = Symbol("consumeChunkSub"), q7 = Symbol("consumeBody"), z4 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N7 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S4 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R9 = Symbol("sawNullBlock"), A5 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X6) => true;
|
278617
278433
|
return O$1 = P6(class extends v6 {
|
278618
278434
|
constructor(t8) {
|
278619
278435
|
t8 = t8 || {}, super(t8), this.file = t8.file || "", this[E$1] = null, this.on(T5, (s7) => {
|
@@ -278622,7 +278438,7 @@ function rt4() {
|
|
278622
278438
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
278623
278439
|
}), this.strict = !!t8.strict, this.maxMetaEntrySize = t8.maxMetaEntrySize || G4, this.filter = typeof t8.filter == "function" ? t8.filter : K4;
|
278624
278440
|
const i6 = t8.file && (t8.file.endsWith(".tar.br") || t8.file.endsWith(".tbr"));
|
278625
|
-
this.brotli = !t8.gzip && t8.brotli !== undefined ? t8.brotli : i6 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W6, this[n6] = null, this[a7] = null, this[d6] = null, this[h9] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u7] = false, this[r6] = null, this[m7] = false, this[
|
278441
|
+
this.brotli = !t8.gzip && t8.brotli !== undefined ? t8.brotli : i6 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W6, this[n6] = null, this[a7] = null, this[d6] = null, this[h9] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u7] = false, this[r6] = null, this[m7] = false, this[R9] = false, this[A5] = false, this.on("end", () => this[V6]()), typeof t8.onwarn == "function" && this.on("warn", t8.onwarn), typeof t8.onentry == "function" && this.on("entry", t8.onentry);
|
278626
278442
|
}
|
278627
278443
|
[Y4](t8, i6) {
|
278628
278444
|
this[E$1] === null && (this[E$1] = false);
|
@@ -278633,8 +278449,8 @@ function rt4() {
|
|
278633
278449
|
return this.warn("TAR_ENTRY_INVALID", o8);
|
278634
278450
|
}
|
278635
278451
|
if (s7.nullBlock)
|
278636
|
-
this[
|
278637
|
-
else if (this[
|
278452
|
+
this[R9] ? (this[A5] = true, this[h9] === "begin" && (this[h9] = "header"), this[b5]("eof")) : (this[R9] = true, this[b5]("nullBlock"));
|
278453
|
+
else if (this[R9] = false, !s7.cksumValid)
|
278638
278454
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s7 });
|
278639
278455
|
else if (!s7.path)
|
278640
278456
|
this.warn("TAR_ENTRY_INVALID", "path is required", { header: s7 });
|
@@ -278654,7 +278470,7 @@ function rt4() {
|
|
278654
278470
|
e10.on("end", w6);
|
278655
278471
|
} else
|
278656
278472
|
this[E$1] = true;
|
278657
|
-
e10.meta ? e10.size > this.maxMetaEntrySize ? (e10.ignore = true, this[
|
278473
|
+
e10.meta ? e10.size > this.maxMetaEntrySize ? (e10.ignore = true, this[b5]("ignoredEntry", e10), this[h9] = "ignore", e10.resume()) : e10.size > 0 && (this[c3] = "", e10.on("data", (w6) => this[c3] += w6), this[h9] = "meta") : (this[l4] = null, e10.ignore = e10.ignore || !this.filter(e10.path, e10), e10.ignore ? (this[b5]("ignoredEntry", e10), this[h9] = e10.remain ? "ignore" : "header", e10.resume()) : (e10.remain ? this[h9] = "body" : (this[h9] = "header", e10.end()), this[a7] ? this[f5].push(e10) : (this[f5].push(e10), this[I7]())));
|
278658
278474
|
}
|
278659
278475
|
}
|
278660
278476
|
}
|
@@ -278682,17 +278498,17 @@ function rt4() {
|
|
278682
278498
|
const s7 = this[d6], o8 = this[q7](t8, i6);
|
278683
278499
|
return this[d6] || this[H4](s7), o8;
|
278684
278500
|
}
|
278685
|
-
[
|
278501
|
+
[b5](t8, i6, s7) {
|
278686
278502
|
!this[f5].length && !this[a7] ? this.emit(t8, i6, s7) : this[f5].push([t8, i6, s7]);
|
278687
278503
|
}
|
278688
278504
|
[H4](t8) {
|
278689
|
-
switch (this[
|
278505
|
+
switch (this[b5]("meta", this[c3]), t8.type) {
|
278690
278506
|
case "ExtendedHeader":
|
278691
278507
|
case "OldExtendedHeader":
|
278692
|
-
this[l4] =
|
278508
|
+
this[l4] = C5.parse(this[c3], this[l4], false);
|
278693
278509
|
break;
|
278694
278510
|
case "GlobalExtendedHeader":
|
278695
|
-
this[y4] =
|
278511
|
+
this[y4] = C5.parse(this[c3], this[y4], true);
|
278696
278512
|
break;
|
278697
278513
|
case "NextFileHasLongPath":
|
278698
278514
|
case "OldGnuLongPath":
|
@@ -278753,7 +278569,7 @@ function rt4() {
|
|
278753
278569
|
const i6 = this[n6] ? this[n6].length : 0;
|
278754
278570
|
this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t8.blockRemain} more bytes, only ${i6} available)`, { entry: t8 }), this[n6] && t8.write(this[n6]), t8.end();
|
278755
278571
|
}
|
278756
|
-
this[
|
278572
|
+
this[b5](T5);
|
278757
278573
|
}
|
278758
278574
|
}
|
278759
278575
|
[_6](t8) {
|
@@ -278765,21 +278581,21 @@ function rt4() {
|
|
278765
278581
|
if (this[N7] = true, this[n6]) {
|
278766
278582
|
this[D3](t8);
|
278767
278583
|
const i6 = this[n6];
|
278768
|
-
this[n6] = null, this[
|
278584
|
+
this[n6] = null, this[g6](i6);
|
278769
278585
|
} else
|
278770
|
-
this[
|
278771
|
-
for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[
|
278586
|
+
this[g6](t8);
|
278587
|
+
for (;this[n6] && this[n6].length >= 512 && !this[m7] && !this[A5]; ) {
|
278772
278588
|
const i6 = this[n6];
|
278773
|
-
this[n6] = null, this[
|
278589
|
+
this[n6] = null, this[g6](i6);
|
278774
278590
|
}
|
278775
278591
|
this[N7] = false;
|
278776
278592
|
}
|
278777
278593
|
(!this[n6] || this[u7]) && this[M5]();
|
278778
278594
|
}
|
278779
|
-
[
|
278595
|
+
[g6](t8) {
|
278780
278596
|
let i6 = 0;
|
278781
278597
|
const s7 = t8.length;
|
278782
|
-
for (;i6 + 512 <= s7 && !this[m7] && !this[
|
278598
|
+
for (;i6 + 512 <= s7 && !this[m7] && !this[A5]; )
|
278783
278599
|
switch (this[h9]) {
|
278784
278600
|
case "begin":
|
278785
278601
|
case "header":
|
@@ -278809,15 +278625,15 @@ function X6() {
|
|
278809
278625
|
return s$4;
|
278810
278626
|
v$1 = 1;
|
278811
278627
|
const H4 = tt2(), I7 = nt2.EventEmitter, r6 = V5;
|
278812
|
-
let
|
278813
|
-
if (!
|
278628
|
+
let R9 = r6.writev;
|
278629
|
+
if (!R9) {
|
278814
278630
|
const c3 = process.binding("fs"), t8 = c3.FSReqWrap || c3.FSReqCallback;
|
278815
|
-
|
278816
|
-
const G4 = (J4, K4) =>
|
278631
|
+
R9 = (e10, i6, $6, A5) => {
|
278632
|
+
const G4 = (J4, K4) => A5(J4, K4, i6), j4 = new t8;
|
278817
278633
|
j4.oncomplete = G4, c3.writeBuffers(e10, i6, $6, j4);
|
278818
278634
|
};
|
278819
278635
|
}
|
278820
|
-
const m7 = Symbol("_autoClose"), h9 = Symbol("_close"),
|
278636
|
+
const m7 = Symbol("_autoClose"), h9 = Symbol("_close"), g6 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x7 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q7 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W6 = Symbol("_onread"), _6 = Symbol("_onwrite"), a7 = Symbol("_open"), l4 = Symbol("_path"), u7 = Symbol("_pos"), n6 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N7 = Symbol("_size"), C5 = Symbol("_write"), b5 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
|
278821
278637
|
|
278822
278638
|
class D3 extends H4 {
|
278823
278639
|
constructor(t8, e10) {
|
@@ -278921,9 +278737,9 @@ function X6() {
|
|
278921
278737
|
}
|
278922
278738
|
}
|
278923
278739
|
|
278924
|
-
class
|
278740
|
+
class O6 extends I7 {
|
278925
278741
|
constructor(t8, e10) {
|
278926
|
-
e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[
|
278742
|
+
e10 = e10 || {}, super(e10), this.readable = false, this.writable = true, this[p5] = false, this[b5] = false, this[g6] = false, this[E7] = false, this[n6] = [], this[l4] = t8, this[s7] = typeof e10.fd == "number" ? e10.fd : null, this[q7] = e10.mode === undefined ? 438 : e10.mode, this[u7] = typeof e10.start == "number" ? e10.start : null, this[m7] = typeof e10.autoClose == "boolean" ? e10.autoClose : true;
|
278927
278743
|
const i6 = this[u7] !== null ? "r+" : "w";
|
278928
278744
|
this[F3] = e10.flags === undefined, this[o8] = this[F3] ? i6 : e10.flags, this[s7] === null && this[a7]();
|
278929
278745
|
}
|
@@ -278942,7 +278758,7 @@ function X6() {
|
|
278942
278758
|
return this[l4];
|
278943
278759
|
}
|
278944
278760
|
[d6](t8) {
|
278945
|
-
this[h9](), this[
|
278761
|
+
this[h9](), this[b5] = true, this.emit("error", t8);
|
278946
278762
|
}
|
278947
278763
|
[a7]() {
|
278948
278764
|
r6.open(this[l4], this[o8], this[q7], (t8, e10) => this[y4](t8, e10));
|
@@ -278951,25 +278767,25 @@ function X6() {
|
|
278951
278767
|
this[F3] && this[o8] === "r+" && t8 && t8.code === "ENOENT" ? (this[o8] = "w", this[a7]()) : t8 ? this[d6](t8) : (this[s7] = e10, this.emit("open", e10), this[x7]());
|
278952
278768
|
}
|
278953
278769
|
end(t8, e10) {
|
278954
|
-
return t8 && this.write(t8, e10), this[
|
278770
|
+
return t8 && this.write(t8, e10), this[g6] = true, !this[b5] && !this[n6].length && typeof this[s7] == "number" && this[_6](null, 0), this;
|
278955
278771
|
}
|
278956
278772
|
write(t8, e10) {
|
278957
|
-
return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[
|
278773
|
+
return typeof t8 == "string" && (t8 = Buffer.from(t8, e10)), this[g6] ? (this.emit("error", new Error("write() after end()")), false) : this[s7] === null || this[b5] || this[n6].length ? (this[n6].push(t8), this[E7] = true, false) : (this[b5] = true, this[C5](t8), true);
|
278958
278774
|
}
|
278959
|
-
[
|
278775
|
+
[C5](t8) {
|
278960
278776
|
r6.write(this[s7], t8, 0, t8.length, this[u7], (e10, i6) => this[_6](e10, i6));
|
278961
278777
|
}
|
278962
278778
|
[_6](t8, e10) {
|
278963
|
-
t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[
|
278779
|
+
t8 ? this[d6](t8) : (this[u7] !== null && (this[u7] += e10), this[n6].length ? this[x7]() : (this[b5] = false, this[g6] && !this[B4] ? (this[B4] = true, this[h9](), this.emit("finish")) : this[E7] && (this[E7] = false, this.emit("drain"))));
|
278964
278780
|
}
|
278965
278781
|
[x7]() {
|
278966
278782
|
if (this[n6].length === 0)
|
278967
|
-
this[
|
278783
|
+
this[g6] && this[_6](null, 0);
|
278968
278784
|
else if (this[n6].length === 1)
|
278969
|
-
this[
|
278785
|
+
this[C5](this[n6].pop());
|
278970
278786
|
else {
|
278971
278787
|
const t8 = this[n6];
|
278972
|
-
this[n6] = [],
|
278788
|
+
this[n6] = [], R9(this[s7], t8, this[u7], (e10, i6) => this[_6](e10, i6));
|
278973
278789
|
}
|
278974
278790
|
}
|
278975
278791
|
[h9]() {
|
@@ -278980,7 +278796,7 @@ function X6() {
|
|
278980
278796
|
}
|
278981
278797
|
}
|
278982
278798
|
|
278983
|
-
class U7 extends
|
278799
|
+
class U7 extends O6 {
|
278984
278800
|
[a7]() {
|
278985
278801
|
let t8;
|
278986
278802
|
if (this[F3] && this[o8] === "r+")
|
@@ -279001,7 +278817,7 @@ function X6() {
|
|
279001
278817
|
this[s7] = null, r6.closeSync(t8), this.emit("close");
|
279002
278818
|
}
|
279003
278819
|
}
|
279004
|
-
[
|
278820
|
+
[C5](t8) {
|
279005
278821
|
let e10 = true;
|
279006
278822
|
try {
|
279007
278823
|
this[_6](null, r6.writeSync(this[s7], t8, 0, t8.length, this[u7])), e10 = false;
|
@@ -279013,7 +278829,7 @@ function X6() {
|
|
279013
278829
|
}
|
279014
278830
|
}
|
279015
278831
|
}
|
279016
|
-
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream =
|
278832
|
+
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream = O6, s$4.WriteStreamSync = U7, s$4;
|
279017
278833
|
}
|
279018
278834
|
var r$1 = { exports: {} };
|
279019
278835
|
var i$2;
|
@@ -279166,11 +278982,11 @@ function S4() {
|
|
279166
278982
|
return n6.sync = d6, n6.native = (e10, r6) => a7(u7(e10), i6(r6)), n6.manual = (e10, r6) => o8(u7(e10), i6(r6)), n6.nativeSync = (e10, r6) => c3(u7(e10), i6(r6)), n6.manualSync = (e10, r6) => q7(u7(e10), i6(r6)), m7 = n6, m7;
|
279167
278983
|
}
|
279168
278984
|
var y$12;
|
279169
|
-
var
|
278985
|
+
var O6;
|
279170
278986
|
function F$1() {
|
279171
|
-
if (
|
278987
|
+
if (O6)
|
279172
278988
|
return y$12;
|
279173
|
-
|
278989
|
+
O6 = 1;
|
279174
278990
|
const c3 = V5, a7 = H$2, T5 = c3.lchown ? "lchown" : "chown", I7 = c3.lchownSync ? "lchownSync" : "chownSync", i6 = c3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u7 = (r6, e10, n6) => {
|
279175
278991
|
try {
|
279176
278992
|
return c3[I7](r6, e10, n6);
|
@@ -279195,9 +279011,9 @@ function F$1() {
|
|
279195
279011
|
throw t9;
|
279196
279012
|
D3(r6, e10, n6);
|
279197
279013
|
}
|
279198
|
-
} : (r6, e10, n6) => u7(r6, e10, n6),
|
279014
|
+
} : (r6, e10, n6) => u7(r6, e10, n6), R9 = process.version;
|
279199
279015
|
let N7 = (r6, e10, n6) => c3.readdir(r6, e10, n6), q7 = (r6, e10) => c3.readdirSync(r6, e10);
|
279200
|
-
/^v4\./.test(
|
279016
|
+
/^v4\./.test(R9) && (N7 = (r6, e10, n6) => c3.readdir(r6, n6));
|
279201
279017
|
const h9 = (r6, e10, n6, t9) => {
|
279202
279018
|
c3[T5](r6, e10, n6, _6(r6, e10, n6, (o8) => {
|
279203
279019
|
t9(o8 && o8.code !== "ENOENT" ? o8 : null);
|
@@ -279241,7 +279057,7 @@ function F$1() {
|
|
279241
279057
|
};
|
279242
279058
|
s7.forEach((l4) => S5(r6, l4, e10, n6, H4));
|
279243
279059
|
});
|
279244
|
-
},
|
279060
|
+
}, C5 = (r6, e10, n6, t9) => {
|
279245
279061
|
if (typeof e10 == "string")
|
279246
279062
|
try {
|
279247
279063
|
const o8 = c3.lstatSync(a7.resolve(r6, e10));
|
@@ -279263,16 +279079,16 @@ function F$1() {
|
|
279263
279079
|
return w6(r6, e10, n6);
|
279264
279080
|
throw o8;
|
279265
279081
|
}
|
279266
|
-
return t9 && t9.length && t9.forEach((o8) =>
|
279082
|
+
return t9 && t9.length && t9.forEach((o8) => C5(r6, o8, e10, n6)), w6(r6, e10, n6);
|
279267
279083
|
};
|
279268
279084
|
return y$12 = E7, E7.sync = m8, y$12;
|
279269
279085
|
}
|
279270
|
-
var
|
279086
|
+
var R9;
|
279271
279087
|
function H4() {
|
279272
|
-
if (
|
279088
|
+
if (R9)
|
279273
279089
|
return r$1.exports;
|
279274
|
-
|
279275
|
-
const
|
279090
|
+
R9 = 1;
|
279091
|
+
const g6 = S4(), l4 = V5, p5 = H$2, x7 = F$1(), y4 = a$7();
|
279276
279092
|
|
279277
279093
|
class D3 extends Error {
|
279278
279094
|
constructor(e10, s7) {
|
@@ -279306,23 +279122,23 @@ function H4() {
|
|
279306
279122
|
if (n6 === d6)
|
279307
279123
|
return I7(n6, w6);
|
279308
279124
|
if (u7)
|
279309
|
-
return
|
279125
|
+
return g6(n6, { mode: c3 }).then((k6) => w6(null, k6), w6);
|
279310
279126
|
const S5 = y4(p5.relative(d6, n6)).split("/");
|
279311
|
-
|
279127
|
+
C5(d6, S5, c3, h9, m8, d6, null, w6);
|
279312
279128
|
};
|
279313
|
-
const
|
279129
|
+
const C5 = (n6, e10, s7, r6, c3, f5, t9, i6) => {
|
279314
279130
|
if (!e10.length)
|
279315
279131
|
return i6(null, t9);
|
279316
279132
|
const a7 = e10.shift(), u7 = y4(p5.resolve(n6 + "/" + a7));
|
279317
279133
|
if (v6(r6, u7))
|
279318
|
-
return
|
279134
|
+
return C5(u7, e10, s7, r6, c3, f5, t9, i6);
|
279319
279135
|
l4.mkdir(u7, s7, j4(u7, e10, s7, r6, c3, f5, t9, i6));
|
279320
279136
|
}, j4 = (n6, e10, s7, r6, c3, f5, t9, i6) => (a7) => {
|
279321
279137
|
a7 ? l4.lstat(n6, (u7, m8) => {
|
279322
279138
|
if (u7)
|
279323
279139
|
u7.path = u7.path && y4(u7.path), i6(u7);
|
279324
279140
|
else if (m8.isDirectory())
|
279325
|
-
|
279141
|
+
C5(n6, e10, s7, r6, c3, f5, t9, i6);
|
279326
279142
|
else if (c3)
|
279327
279143
|
l4.unlink(n6, (h9) => {
|
279328
279144
|
if (h9)
|
@@ -279334,7 +279150,7 @@ function H4() {
|
|
279334
279150
|
return i6(new D3(n6, n6 + "/" + e10.join("/")));
|
279335
279151
|
i6(a7);
|
279336
279152
|
}
|
279337
|
-
}) : (t9 = t9 || n6,
|
279153
|
+
}) : (t9 = t9 || n6, C5(n6, e10, s7, r6, c3, f5, t9, i6));
|
279338
279154
|
}, L6 = (n6) => {
|
279339
279155
|
let e10 = false, s7 = "ENOTDIR";
|
279340
279156
|
try {
|
@@ -279356,7 +279172,7 @@ function H4() {
|
|
279356
279172
|
if (n6 === h9)
|
279357
279173
|
return L6(h9), d6();
|
279358
279174
|
if (a7)
|
279359
|
-
return d6(
|
279175
|
+
return d6(g6.sync(n6, r6));
|
279360
279176
|
const $6 = y4(p5.relative(h9, n6)).split("/");
|
279361
279177
|
let S5 = null;
|
279362
279178
|
for (let k6 = $6.shift(), o8 = h9;k6 && (o8 += "/" + k6); k6 = $6.shift())
|
@@ -279411,7 +279227,7 @@ function z4() {
|
|
279411
279227
|
if (f$1)
|
279412
279228
|
return u$1;
|
279413
279229
|
f$1 = 1;
|
279414
|
-
const l5 = j$1, m8 = a$12(),
|
279230
|
+
const l5 = j$1, m8 = a$12(), g6 = s7(), { join: d6 } = H$2, q7 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32";
|
279415
279231
|
return u$1 = () => {
|
279416
279232
|
const i7 = new Map, c3 = new Map, v6 = (e10) => e10.split("/").slice(0, -1).reduce((o8, r6) => (o8.length && (r6 = d6(o8[o8.length - 1], r6)), o8.push(r6 || "/"), o8), []), a8 = new Set, w6 = (e10) => {
|
279417
279233
|
const s8 = c3.get(e10);
|
@@ -279434,7 +279250,7 @@ function z4() {
|
|
279434
279250
|
}), a8.delete(e10), r6.forEach((t9) => p6(t9)), true;
|
279435
279251
|
};
|
279436
279252
|
return { check: h9, reserve: (e10, s8) => {
|
279437
|
-
e10 = q7 ? ["win32 parallelization disabled"] : e10.map((r6) =>
|
279253
|
+
e10 = q7 ? ["win32 parallelization disabled"] : e10.map((r6) => g6(d6(m8(r6))).toLowerCase());
|
279438
279254
|
const o8 = new Set(e10.map((r6) => v6(r6)).reduce((r6, t9) => r6.concat(t9)));
|
279439
279255
|
return c3.set(s8, { dirs: o8, paths: e10 }), e10.forEach((r6) => {
|
279440
279256
|
const t9 = i7.get(r6);
|
@@ -279477,8 +279293,8 @@ function Os() {
|
|
279477
279293
|
if (y4)
|
279478
279294
|
return G4;
|
279479
279295
|
y4 = 1;
|
279480
|
-
const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"),
|
279481
|
-
if (!
|
279296
|
+
const ss = j$1, is = rt4(), r6 = V5, es = X6(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q7 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N7 = Symbol("isReusable"), d6 = Symbol("makeFs"), U7 = Symbol("file"), F$12 = Symbol("directory"), O7 = Symbol("link"), B4 = Symbol("symlink"), z$1 = Symbol("hardlink"), W6 = Symbol("unsupported"), j4 = Symbol("checkPath"), b5 = Symbol("mkdir"), m8 = Symbol("onError"), $6 = Symbol("pending"), V$1 = Symbol("pend"), S5 = Symbol("unpend"), P6 = Symbol("ended"), A5 = Symbol("maybeClose"), x7 = Symbol("skip"), E7 = Symbol("doChown"), R10 = Symbol("uid"), _6 = Symbol("gid"), g6 = Symbol("checkedCwd"), X$12 = Ds, J4 = F3(), C5 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a8, s8) => {
|
279297
|
+
if (!C5)
|
279482
279298
|
return r6.unlink(a8, s8);
|
279483
279299
|
const i7 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
279484
279300
|
r6.rename(a8, i7, (e11) => {
|
@@ -279487,7 +279303,7 @@ function Os() {
|
|
279487
279303
|
r6.unlink(i7, s8);
|
279488
279304
|
});
|
279489
279305
|
}, us = (a8) => {
|
279490
|
-
if (!
|
279306
|
+
if (!C5)
|
279491
279307
|
return r6.unlinkSync(a8);
|
279492
279308
|
const s8 = a8 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
279493
279309
|
r6.renameSync(a8, s8), r6.unlinkSync(s8);
|
@@ -279505,8 +279321,8 @@ function Os() {
|
|
279505
279321
|
class L6 extends is {
|
279506
279322
|
constructor(s8) {
|
279507
279323
|
if (s8 || (s8 = {}), s8.ondone = (i7) => {
|
279508
|
-
this[P6] = true, this[
|
279509
|
-
}, super(s8), this[
|
279324
|
+
this[P6] = true, this[A5]();
|
279325
|
+
}, super(s8), this[g6] = false, this.reservations = ts(), this.transform = typeof s8.transform == "function" ? s8.transform : null, this.writable = true, this.readable = false, this[$6] = 0, this[P6] = false, this.dirCache = s8.dirCache || new Map, typeof s8.uid == "number" || typeof s8.gid == "number") {
|
279510
279326
|
if (typeof s8.uid != "number" || typeof s8.gid != "number")
|
279511
279327
|
throw new TypeError("cannot set owner without number uid and gid");
|
279512
279328
|
if (s8.preserveOwner)
|
@@ -279514,12 +279330,12 @@ function Os() {
|
|
279514
279330
|
this.uid = s8.uid, this.gid = s8.gid, this.setOwner = true;
|
279515
279331
|
} else
|
279516
279332
|
this.uid = null, this.gid = null, this.setOwner = false;
|
279517
|
-
s8.preserveOwner === undefined && typeof s8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s8.maxDepth == "number" ? s8.maxDepth : cs, this.forceChown = s8.forceChown === true, this.win32 = !!s8.win32 ||
|
279333
|
+
s8.preserveOwner === undefined && typeof s8.uid != "number" ? this.preserveOwner = process.getuid && process.getuid() === 0 : this.preserveOwner = !!s8.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : null, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : null, this.maxDepth = typeof s8.maxDepth == "number" ? s8.maxDepth : cs, this.forceChown = s8.forceChown === true, this.win32 = !!s8.win32 || C5, this.newer = !!s8.newer, this.keep = !!s8.keep, this.noMtime = !!s8.noMtime, this.preservePaths = !!s8.preservePaths, this.unlink = !!s8.unlink, this.cwd = l5(w6.resolve(s8.cwd || process.cwd())), this.strip = +s8.strip || 0, this.processUmask = s8.noChmod ? 0 : process.umask(), this.umask = typeof s8.umask == "number" ? s8.umask : this.processUmask, this.dmode = s8.dmode || 511 & ~this.umask, this.fmode = s8.fmode || 438 & ~this.umask, this.on("entry", (i7) => this[H$12](i7));
|
279518
279334
|
}
|
279519
279335
|
warn(s8, i7, e11 = {}) {
|
279520
279336
|
return (s8 === "TAR_BAD_ARCHIVE" || s8 === "TAR_ABORT") && (e11.recoverable = false), super.warn(s8, i7, e11);
|
279521
279337
|
}
|
279522
|
-
[
|
279338
|
+
[A5]() {
|
279523
279339
|
this[P6] && this[$6] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
|
279524
279340
|
}
|
279525
279341
|
[j4](s8) {
|
@@ -279539,7 +279355,7 @@ function Os() {
|
|
279539
279355
|
if (isFinite(this.maxDepth) && e11.length > this.maxDepth)
|
279540
279356
|
return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: s8, path: i7, depth: e11.length, maxDepth: this.maxDepth }), false;
|
279541
279357
|
if (!this.preservePaths) {
|
279542
|
-
if (e11.includes("..") ||
|
279358
|
+
if (e11.includes("..") || C5 && /^[a-z]:\.\.$/i.test(e11[0]))
|
279543
279359
|
return this.warn("TAR_ENTRY_ERROR", "path contains '..'", { entry: s8, path: i7 }), false;
|
279544
279360
|
const [t9, o9] = os(i7);
|
279545
279361
|
t9 && (s8.path = o9, this.warn("TAR_ENTRY_INFO", `stripping ${t9} from absolute path`, { entry: s8, path: i7 }));
|
@@ -279579,13 +279395,13 @@ function Os() {
|
|
279579
279395
|
[m8](s8, i7) {
|
279580
279396
|
s8.name === "CwdError" ? this.emit("error", s8) : (this.warn("TAR_ENTRY_ERROR", s8, { entry: i7 }), this[S5](), i7.resume());
|
279581
279397
|
}
|
279582
|
-
[
|
279398
|
+
[b5](s8, i7, e11) {
|
279583
279399
|
M5(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i7, noChmod: this.noChmod }, e11);
|
279584
279400
|
}
|
279585
279401
|
[E7](s8) {
|
279586
279402
|
return this.forceChown || this.preserveOwner && (typeof s8.uid == "number" && s8.uid !== this.processUid || typeof s8.gid == "number" && s8.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
|
279587
279403
|
}
|
279588
|
-
[
|
279404
|
+
[R10](s8) {
|
279589
279405
|
return Q4(this.uid, s8.uid, this.processUid);
|
279590
279406
|
}
|
279591
279407
|
[_6](s8) {
|
@@ -279615,7 +279431,7 @@ function Os() {
|
|
279615
279431
|
}
|
279616
279432
|
if (this[E7](s8)) {
|
279617
279433
|
o9++;
|
279618
|
-
const f5 = this[
|
279434
|
+
const f5 = this[R10](s8), k6 = this[_6](s8);
|
279619
279435
|
r6.fchown(p6, f5, k6, (D3) => D3 ? r6.chown(n7, f5, k6, (I7) => u8(I7 && D3)) : u8());
|
279620
279436
|
}
|
279621
279437
|
u8();
|
@@ -279627,7 +279443,7 @@ function Os() {
|
|
279627
279443
|
}
|
279628
279444
|
[F$12](s8, i7) {
|
279629
279445
|
const e11 = s8.mode & 4095 || this.dmode;
|
279630
|
-
this[
|
279446
|
+
this[b5](s8.absolute, e11, (t9) => {
|
279631
279447
|
if (t9) {
|
279632
279448
|
this[m8](t9, s8), i7();
|
279633
279449
|
return;
|
@@ -279636,30 +279452,30 @@ function Os() {
|
|
279636
279452
|
const u8 = (h9) => {
|
279637
279453
|
--o9 === 0 && (i7(), this[S5](), s8.resume());
|
279638
279454
|
};
|
279639
|
-
s8.mtime && !this.noMtime && (o9++, r6.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u8)), this[E7](s8) && (o9++, r6.chown(s8.absolute, this[
|
279455
|
+
s8.mtime && !this.noMtime && (o9++, r6.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u8)), this[E7](s8) && (o9++, r6.chown(s8.absolute, this[R10](s8), this[_6](s8), u8)), u8();
|
279640
279456
|
});
|
279641
279457
|
}
|
279642
279458
|
[W6](s8) {
|
279643
279459
|
s8.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s8.type}`, { entry: s8 }), s8.resume();
|
279644
279460
|
}
|
279645
279461
|
[B4](s8, i7) {
|
279646
|
-
this[
|
279462
|
+
this[O7](s8, s8.linkpath, "symlink", i7);
|
279647
279463
|
}
|
279648
279464
|
[z$1](s8, i7) {
|
279649
279465
|
const e11 = l5(w6.resolve(this.cwd, s8.linkpath));
|
279650
|
-
this[
|
279466
|
+
this[O7](s8, e11, "link", i7);
|
279651
279467
|
}
|
279652
279468
|
[V$1]() {
|
279653
279469
|
this[$6]++;
|
279654
279470
|
}
|
279655
279471
|
[S5]() {
|
279656
|
-
this[$6]--, this[
|
279472
|
+
this[$6]--, this[A5]();
|
279657
279473
|
}
|
279658
279474
|
[x7](s8) {
|
279659
279475
|
this[S5](), s8.resume();
|
279660
279476
|
}
|
279661
279477
|
[N7](s8, i7) {
|
279662
|
-
return s8.type === "File" && !this.unlink && i7.isFile() && i7.nlink <= 1 && !
|
279478
|
+
return s8.type === "File" && !this.unlink && i7.isFile() && i7.nlink <= 1 && !C5;
|
279663
279479
|
}
|
279664
279480
|
[q7](s8) {
|
279665
279481
|
this[V$1]();
|
@@ -279674,18 +279490,18 @@ function Os() {
|
|
279674
279490
|
const e11 = (h9) => {
|
279675
279491
|
this[v6](s8), i7(h9);
|
279676
279492
|
}, t9 = () => {
|
279677
|
-
this[
|
279493
|
+
this[b5](this.cwd, this.dmode, (h9) => {
|
279678
279494
|
if (h9) {
|
279679
279495
|
this[m8](h9, s8), e11();
|
279680
279496
|
return;
|
279681
279497
|
}
|
279682
|
-
this[
|
279498
|
+
this[g6] = true, o9();
|
279683
279499
|
});
|
279684
279500
|
}, o9 = () => {
|
279685
279501
|
if (s8.absolute !== this.cwd) {
|
279686
279502
|
const h9 = l5(w6.dirname(s8.absolute));
|
279687
279503
|
if (h9 !== this.cwd)
|
279688
|
-
return this[
|
279504
|
+
return this[b5](h9, this.dmode, (c4) => {
|
279689
279505
|
if (c4) {
|
279690
279506
|
this[m8](c4, s8), e11();
|
279691
279507
|
return;
|
@@ -279715,7 +279531,7 @@ function Os() {
|
|
279715
279531
|
as(s8.absolute, (n7) => this[d6](n7, s8, e11));
|
279716
279532
|
});
|
279717
279533
|
};
|
279718
|
-
this[
|
279534
|
+
this[g6] ? o9() : t9();
|
279719
279535
|
}
|
279720
279536
|
[d6](s8, i7, e11) {
|
279721
279537
|
if (s8) {
|
@@ -279736,7 +279552,7 @@ function Os() {
|
|
279736
279552
|
return this[F$12](i7, e11);
|
279737
279553
|
}
|
279738
279554
|
}
|
279739
|
-
[
|
279555
|
+
[O7](s8, i7, e11, t9) {
|
279740
279556
|
r6[e11](i7, s8.absolute, (o9) => {
|
279741
279557
|
o9 ? this[m8](o9, s8) : (this[S5](), s8.resume()), t9();
|
279742
279558
|
});
|
@@ -279755,16 +279571,16 @@ function Os() {
|
|
279755
279571
|
return super[d6](s8, i7, () => {});
|
279756
279572
|
}
|
279757
279573
|
[q7](s8) {
|
279758
|
-
if (this[v6](s8), !this[
|
279759
|
-
const o9 = this[
|
279574
|
+
if (this[v6](s8), !this[g6]) {
|
279575
|
+
const o9 = this[b5](this.cwd, this.dmode);
|
279760
279576
|
if (o9)
|
279761
279577
|
return this[m8](o9, s8);
|
279762
|
-
this[
|
279578
|
+
this[g6] = true;
|
279763
279579
|
}
|
279764
279580
|
if (s8.absolute !== this.cwd) {
|
279765
279581
|
const o9 = l5(w6.dirname(s8.absolute));
|
279766
279582
|
if (o9 !== this.cwd) {
|
279767
|
-
const u8 = this[
|
279583
|
+
const u8 = this[b5](o9, this.dmode);
|
279768
279584
|
if (u8)
|
279769
279585
|
return this[m8](u8, s8);
|
279770
279586
|
}
|
@@ -279825,7 +279641,7 @@ function Os() {
|
|
279825
279641
|
}
|
279826
279642
|
}
|
279827
279643
|
if (this[E7](s8)) {
|
279828
|
-
const n7 = this[
|
279644
|
+
const n7 = this[R10](s8), p6 = this[_6](s8);
|
279829
279645
|
try {
|
279830
279646
|
r6.fchownSync(o9, n7, p6);
|
279831
279647
|
} catch (f5) {
|
@@ -279840,7 +279656,7 @@ function Os() {
|
|
279840
279656
|
});
|
279841
279657
|
}
|
279842
279658
|
[F$12](s8, i7) {
|
279843
|
-
const e11 = s8.mode & 4095 || this.dmode, t9 = this[
|
279659
|
+
const e11 = s8.mode & 4095 || this.dmode, t9 = this[b5](s8.absolute, e11);
|
279844
279660
|
if (t9) {
|
279845
279661
|
this[m8](t9, s8), i7();
|
279846
279662
|
return;
|
@@ -279851,18 +279667,18 @@ function Os() {
|
|
279851
279667
|
} catch {}
|
279852
279668
|
if (this[E7](s8))
|
279853
279669
|
try {
|
279854
|
-
r6.chownSync(s8.absolute, this[
|
279670
|
+
r6.chownSync(s8.absolute, this[R10](s8), this[_6](s8));
|
279855
279671
|
} catch {}
|
279856
279672
|
i7(), s8.resume();
|
279857
279673
|
}
|
279858
|
-
[
|
279674
|
+
[b5](s8, i7) {
|
279859
279675
|
try {
|
279860
279676
|
return M5.sync(l5(s8), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cache: this.dirCache, cwd: this.cwd, mode: i7 });
|
279861
279677
|
} catch (e11) {
|
279862
279678
|
return e11;
|
279863
279679
|
}
|
279864
279680
|
}
|
279865
|
-
[
|
279681
|
+
[O7](s8, i7, e11, t9) {
|
279866
279682
|
try {
|
279867
279683
|
r6[e11 + "Sync"](i7, s8.absolute), t9(), s8.resume();
|
279868
279684
|
} catch (o9) {
|
@@ -279899,11 +279715,11 @@ function v6() {
|
|
279899
279715
|
new y5.ReadStreamSync(o9, { readSize: s8, size: t9.size }).pipe(e11);
|
279900
279716
|
}, h9 = (r6, e11) => {
|
279901
279717
|
const o9 = new u8(r6), t9 = r6.maxReadSize || 16 * 1024 * 1024, s8 = r6.file, n7 = new Promise((i7, a8) => {
|
279902
|
-
o9.on("error", a8), o9.on("close", i7), p6.stat(s8, (c4,
|
279718
|
+
o9.on("error", a8), o9.on("close", i7), p6.stat(s8, (c4, R10) => {
|
279903
279719
|
if (c4)
|
279904
279720
|
a8(c4);
|
279905
279721
|
else {
|
279906
|
-
const S5 = new y5.ReadStream(s8, { readSize: t9, size:
|
279722
|
+
const S5 = new y5.ReadStream(s8, { readSize: t9, size: R10.size });
|
279907
279723
|
S5.on("error", a8), S5.pipe(o9);
|
279908
279724
|
}
|
279909
279725
|
});
|
@@ -280809,7 +280625,7 @@ async function providerPrompt(platformConfig, argument) {
|
|
280809
280625
|
choices: platformConfig.deploymentEngineTargets.map((target) => ({
|
280810
280626
|
name: target.name,
|
280811
280627
|
value: target.id
|
280812
|
-
})).sort((a8,
|
280628
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name))
|
280813
280629
|
});
|
280814
280630
|
return platformConfig.deploymentEngineTargets.find((target) => target.id === provider);
|
280815
280631
|
}
|
@@ -280840,7 +280656,7 @@ async function regionPrompt(provider, argument) {
|
|
280840
280656
|
choices: provider.clusters.map((cluster) => ({
|
280841
280657
|
name: cluster.name,
|
280842
280658
|
value: cluster.id
|
280843
|
-
})).sort((a8,
|
280659
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name))
|
280844
280660
|
});
|
280845
280661
|
return provider.clusters.find((cluster) => cluster.id === region);
|
280846
280662
|
}
|
@@ -282727,19 +282543,19 @@ function configCommand() {
|
|
282727
282543
|
useCases: useCases.map((useCase) => ({
|
282728
282544
|
id: useCase.id,
|
282729
282545
|
name: useCase.name
|
282730
|
-
})).sort((a8,
|
282546
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name)),
|
282731
282547
|
kits: kits.map((kit) => ({
|
282732
282548
|
id: kit.id,
|
282733
282549
|
name: kit.name,
|
282734
282550
|
description: kit.description,
|
282735
282551
|
npmPackage: kit.npmPackageName
|
282736
|
-
})).sort((a8,
|
282552
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name)),
|
282737
282553
|
deploymentEngineTargets: platformConfig.deploymentEngineTargets.filter((provider) => !provider.disabled).flatMap((provider) => provider.clusters.filter((cluster) => !cluster.disabled).map((region) => ({
|
282738
282554
|
providerId: provider.id,
|
282739
282555
|
regionId: getRegionId(region.id),
|
282740
282556
|
providerName: provider.name,
|
282741
282557
|
regionName: region.name
|
282742
|
-
}))).sort((a8,
|
282558
|
+
}))).sort((a8, b5) => a8.providerId.localeCompare(b5.providerId) || a8.regionId.localeCompare(b5.regionId)),
|
282743
282559
|
preDeployedAbis: platformConfig.preDeployedAbis.filter(({ featureflagged }) => !featureflagged).flatMap(({ abis }) => abis).sort()
|
282744
282560
|
};
|
282745
282561
|
if (output === "json") {
|
@@ -283179,7 +282995,7 @@ async function useCasePrompt(platformConfig, argument) {
|
|
283179
282995
|
choices: selectableUseCases.map((useCase2) => ({
|
283180
282996
|
name: formatUseCaseName(useCase2.name),
|
283181
282997
|
value: useCase2.id
|
283182
|
-
})).sort((a8,
|
282998
|
+
})).sort((a8, b5) => a8.name.localeCompare(b5.name))
|
283183
282999
|
});
|
283184
283000
|
return platformConfig.smartContractSets.sets.find((set2) => set2.id === useCase);
|
283185
283001
|
}
|
@@ -283518,6 +283334,17 @@ async function addressPrompt({
|
|
283518
283334
|
node,
|
283519
283335
|
hardhatConfig
|
283520
283336
|
}) {
|
283337
|
+
if (!node) {
|
283338
|
+
return esm_default2({
|
283339
|
+
message: "Which private key address do you want to deploy from?",
|
283340
|
+
validate: (value4) => {
|
283341
|
+
if (!isAddress(value4)) {
|
283342
|
+
return "Invalid address";
|
283343
|
+
}
|
283344
|
+
return true;
|
283345
|
+
}
|
283346
|
+
});
|
283347
|
+
}
|
283521
283348
|
const possiblePrivateKeys = node.privateKeys?.filter(isValidPrivateKey) ?? [];
|
283522
283349
|
const defaultAddress = hardhatConfig.networks?.btp?.from ?? possiblePrivateKeys[0]?.address;
|
283523
283350
|
const defaultPossible = accept && defaultAddress;
|
@@ -283616,19 +283443,25 @@ function hardhatDeployRemoteCommand() {
|
|
283616
283443
|
await validateIfRequiredPackagesAreInstalled(["hardhat"]);
|
283617
283444
|
const autoAccept = !!acceptDefaults || is_in_ci_default;
|
283618
283445
|
const env2 = await loadEnv(false, !!prod);
|
283446
|
+
let node;
|
283447
|
+
let envHardhatConfig = {};
|
283619
283448
|
const instance = await instancePrompt(env2, true);
|
283620
|
-
|
283621
|
-
|
283622
|
-
|
283623
|
-
|
283624
|
-
|
283625
|
-
|
283626
|
-
|
283627
|
-
|
283628
|
-
|
283629
|
-
|
283630
|
-
|
283631
|
-
|
283449
|
+
if (instance === STANDALONE_INSTANCE2) {
|
283450
|
+
envHardhatConfig.BTP_RPC_URL = env2.SETTLEMINT_BLOCKCHAIN_NODE_JSON_RPC_ENDPOINT ?? "";
|
283451
|
+
} else {
|
283452
|
+
const accessToken = await getApplicationOrPersonalAccessToken({
|
283453
|
+
env: env2,
|
283454
|
+
instance,
|
283455
|
+
prefer: "application"
|
283456
|
+
});
|
283457
|
+
const settlemint = createSettleMintClient({
|
283458
|
+
accessToken,
|
283459
|
+
instance
|
283460
|
+
});
|
283461
|
+
const node2 = await selectTargetNode({ env: env2, blockchainNodeUniqueName, autoAccept, settlemint });
|
283462
|
+
envHardhatConfig = await settlemint.foundry.env(node2.uniqueName);
|
283463
|
+
}
|
283464
|
+
const hardhatConfig = await getHardhatConfigData(envHardhatConfig);
|
283632
283465
|
if (verify && !hardhatConfig?.etherscan?.apiKey) {
|
283633
283466
|
cancel2("It is not possible to verify the deployment on this network unless you supply an Etherscan API key in the hardhat.config.ts file");
|
283634
283467
|
}
|
@@ -283656,7 +283489,7 @@ function hardhatDeployRemoteCommand() {
|
|
283656
283489
|
"--default-sender",
|
283657
283490
|
address,
|
283658
283491
|
module ?? "ignition/modules/main.ts"
|
283659
|
-
].filter(Boolean), { env:
|
283492
|
+
].filter(Boolean), { env: envHardhatConfig });
|
283660
283493
|
const outputStr = output.join(`
|
283661
283494
|
`);
|
283662
283495
|
if (!outputStr.includes("Deploy cancelled")) {
|
@@ -284302,4 +284135,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
284302
284135
|
// src/cli.ts
|
284303
284136
|
sdkCliCommand();
|
284304
284137
|
|
284305
|
-
//# debugId=
|
284138
|
+
//# debugId=E0EA193AC0171C6E64756E2164756E21
|