@settlemint/sdk-cli 2.6.2-maine3c69dbb → 2.6.2-maine7172b4e
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 +2417 -595
- package/dist/cli.js.map +49 -4
- package/package.json +9 -9
package/dist/cli.js
CHANGED
|
@@ -41780,6 +41780,1789 @@ var require_lib12 = __commonJS((exports, module) => {
|
|
|
41780
41780
|
module.exports = PackageJson;
|
|
41781
41781
|
});
|
|
41782
41782
|
|
|
41783
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/constants.js
|
|
41784
|
+
var require_constants3 = __commonJS((exports, module) => {
|
|
41785
|
+
var SEMVER_SPEC_VERSION = "2.0.0";
|
|
41786
|
+
var MAX_LENGTH = 256;
|
|
41787
|
+
var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
41788
|
+
var MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
41789
|
+
var MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6;
|
|
41790
|
+
var RELEASE_TYPES = [
|
|
41791
|
+
"major",
|
|
41792
|
+
"premajor",
|
|
41793
|
+
"minor",
|
|
41794
|
+
"preminor",
|
|
41795
|
+
"patch",
|
|
41796
|
+
"prepatch",
|
|
41797
|
+
"prerelease"
|
|
41798
|
+
];
|
|
41799
|
+
module.exports = {
|
|
41800
|
+
MAX_LENGTH,
|
|
41801
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
41802
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
41803
|
+
MAX_SAFE_INTEGER,
|
|
41804
|
+
RELEASE_TYPES,
|
|
41805
|
+
SEMVER_SPEC_VERSION,
|
|
41806
|
+
FLAG_INCLUDE_PRERELEASE: 1,
|
|
41807
|
+
FLAG_LOOSE: 2
|
|
41808
|
+
};
|
|
41809
|
+
});
|
|
41810
|
+
|
|
41811
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
41812
|
+
var require_debug2 = __commonJS((exports, module) => {
|
|
41813
|
+
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
41814
|
+
module.exports = debug;
|
|
41815
|
+
});
|
|
41816
|
+
|
|
41817
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/re.js
|
|
41818
|
+
var require_re2 = __commonJS((exports, module) => {
|
|
41819
|
+
var {
|
|
41820
|
+
MAX_SAFE_COMPONENT_LENGTH,
|
|
41821
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
41822
|
+
MAX_LENGTH
|
|
41823
|
+
} = require_constants3();
|
|
41824
|
+
var debug = require_debug2();
|
|
41825
|
+
exports = module.exports = {};
|
|
41826
|
+
var re = exports.re = [];
|
|
41827
|
+
var safeRe = exports.safeRe = [];
|
|
41828
|
+
var src = exports.src = [];
|
|
41829
|
+
var safeSrc = exports.safeSrc = [];
|
|
41830
|
+
var t3 = exports.t = {};
|
|
41831
|
+
var R2 = 0;
|
|
41832
|
+
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
41833
|
+
var safeRegexReplacements = [
|
|
41834
|
+
["\\s", 1],
|
|
41835
|
+
["\\d", MAX_LENGTH],
|
|
41836
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]
|
|
41837
|
+
];
|
|
41838
|
+
var makeSafeRegex = (value2) => {
|
|
41839
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
41840
|
+
value2 = value2.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
41841
|
+
}
|
|
41842
|
+
return value2;
|
|
41843
|
+
};
|
|
41844
|
+
var createToken = (name2, value2, isGlobal) => {
|
|
41845
|
+
const safe = makeSafeRegex(value2);
|
|
41846
|
+
const index = R2++;
|
|
41847
|
+
debug(name2, index, value2);
|
|
41848
|
+
t3[name2] = index;
|
|
41849
|
+
src[index] = value2;
|
|
41850
|
+
safeSrc[index] = safe;
|
|
41851
|
+
re[index] = new RegExp(value2, isGlobal ? "g" : undefined);
|
|
41852
|
+
safeRe[index] = new RegExp(safe, isGlobal ? "g" : undefined);
|
|
41853
|
+
};
|
|
41854
|
+
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
41855
|
+
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
41856
|
+
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
41857
|
+
createToken("MAINVERSION", `(${src[t3.NUMERICIDENTIFIER]})\\.` + `(${src[t3.NUMERICIDENTIFIER]})\\.` + `(${src[t3.NUMERICIDENTIFIER]})`);
|
|
41858
|
+
createToken("MAINVERSIONLOOSE", `(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t3.NUMERICIDENTIFIERLOOSE]})\\.` + `(${src[t3.NUMERICIDENTIFIERLOOSE]})`);
|
|
41859
|
+
createToken("PRERELEASEIDENTIFIER", `(?:${src[t3.NONNUMERICIDENTIFIER]}|${src[t3.NUMERICIDENTIFIER]})`);
|
|
41860
|
+
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t3.NONNUMERICIDENTIFIER]}|${src[t3.NUMERICIDENTIFIERLOOSE]})`);
|
|
41861
|
+
createToken("PRERELEASE", `(?:-(${src[t3.PRERELEASEIDENTIFIER]}(?:\\.${src[t3.PRERELEASEIDENTIFIER]})*))`);
|
|
41862
|
+
createToken("PRERELEASELOOSE", `(?:-?(${src[t3.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t3.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
41863
|
+
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
41864
|
+
createToken("BUILD", `(?:\\+(${src[t3.BUILDIDENTIFIER]}(?:\\.${src[t3.BUILDIDENTIFIER]})*))`);
|
|
41865
|
+
createToken("FULLPLAIN", `v?${src[t3.MAINVERSION]}${src[t3.PRERELEASE]}?${src[t3.BUILD]}?`);
|
|
41866
|
+
createToken("FULL", `^${src[t3.FULLPLAIN]}$`);
|
|
41867
|
+
createToken("LOOSEPLAIN", `[v=\\s]*${src[t3.MAINVERSIONLOOSE]}${src[t3.PRERELEASELOOSE]}?${src[t3.BUILD]}?`);
|
|
41868
|
+
createToken("LOOSE", `^${src[t3.LOOSEPLAIN]}$`);
|
|
41869
|
+
createToken("GTLT", "((?:<|>)?=?)");
|
|
41870
|
+
createToken("XRANGEIDENTIFIERLOOSE", `${src[t3.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
41871
|
+
createToken("XRANGEIDENTIFIER", `${src[t3.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
41872
|
+
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t3.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t3.XRANGEIDENTIFIER]})` + `(?:\\.(${src[t3.XRANGEIDENTIFIER]})` + `(?:${src[t3.PRERELEASE]})?${src[t3.BUILD]}?` + `)?)?`);
|
|
41873
|
+
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t3.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})` + `(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})` + `(?:${src[t3.PRERELEASELOOSE]})?${src[t3.BUILD]}?` + `)?)?`);
|
|
41874
|
+
createToken("XRANGE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAIN]}$`);
|
|
41875
|
+
createToken("XRANGELOOSE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAINLOOSE]}$`);
|
|
41876
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])" + "(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
|
41877
|
+
createToken("COERCE", `${src[t3.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
41878
|
+
createToken("COERCEFULL", src[t3.COERCEPLAIN] + `(?:${src[t3.PRERELEASE]})?` + `(?:${src[t3.BUILD]})?` + `(?:$|[^\\d])`);
|
|
41879
|
+
createToken("COERCERTL", src[t3.COERCE], true);
|
|
41880
|
+
createToken("COERCERTLFULL", src[t3.COERCEFULL], true);
|
|
41881
|
+
createToken("LONETILDE", "(?:~>?)");
|
|
41882
|
+
createToken("TILDETRIM", `(\\s*)${src[t3.LONETILDE]}\\s+`, true);
|
|
41883
|
+
exports.tildeTrimReplace = "$1~";
|
|
41884
|
+
createToken("TILDE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAIN]}$`);
|
|
41885
|
+
createToken("TILDELOOSE", `^${src[t3.LONETILDE]}${src[t3.XRANGEPLAINLOOSE]}$`);
|
|
41886
|
+
createToken("LONECARET", "(?:\\^)");
|
|
41887
|
+
createToken("CARETTRIM", `(\\s*)${src[t3.LONECARET]}\\s+`, true);
|
|
41888
|
+
exports.caretTrimReplace = "$1^";
|
|
41889
|
+
createToken("CARET", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAIN]}$`);
|
|
41890
|
+
createToken("CARETLOOSE", `^${src[t3.LONECARET]}${src[t3.XRANGEPLAINLOOSE]}$`);
|
|
41891
|
+
createToken("COMPARATORLOOSE", `^${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]})$|^$`);
|
|
41892
|
+
createToken("COMPARATOR", `^${src[t3.GTLT]}\\s*(${src[t3.FULLPLAIN]})$|^$`);
|
|
41893
|
+
createToken("COMPARATORTRIM", `(\\s*)${src[t3.GTLT]}\\s*(${src[t3.LOOSEPLAIN]}|${src[t3.XRANGEPLAIN]})`, true);
|
|
41894
|
+
exports.comparatorTrimReplace = "$1$2$3";
|
|
41895
|
+
createToken("HYPHENRANGE", `^\\s*(${src[t3.XRANGEPLAIN]})` + `\\s+-\\s+` + `(${src[t3.XRANGEPLAIN]})` + `\\s*$`);
|
|
41896
|
+
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t3.XRANGEPLAINLOOSE]})` + `\\s+-\\s+` + `(${src[t3.XRANGEPLAINLOOSE]})` + `\\s*$`);
|
|
41897
|
+
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
41898
|
+
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
41899
|
+
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
41900
|
+
});
|
|
41901
|
+
|
|
41902
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/parse-options.js
|
|
41903
|
+
var require_parse_options2 = __commonJS((exports, module) => {
|
|
41904
|
+
var looseOption = Object.freeze({ loose: true });
|
|
41905
|
+
var emptyOpts = Object.freeze({});
|
|
41906
|
+
var parseOptions = (options) => {
|
|
41907
|
+
if (!options) {
|
|
41908
|
+
return emptyOpts;
|
|
41909
|
+
}
|
|
41910
|
+
if (typeof options !== "object") {
|
|
41911
|
+
return looseOption;
|
|
41912
|
+
}
|
|
41913
|
+
return options;
|
|
41914
|
+
};
|
|
41915
|
+
module.exports = parseOptions;
|
|
41916
|
+
});
|
|
41917
|
+
|
|
41918
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/identifiers.js
|
|
41919
|
+
var require_identifiers2 = __commonJS((exports, module) => {
|
|
41920
|
+
var numeric2 = /^[0-9]+$/;
|
|
41921
|
+
var compareIdentifiers = (a3, b) => {
|
|
41922
|
+
if (typeof a3 === "number" && typeof b === "number") {
|
|
41923
|
+
return a3 === b ? 0 : a3 < b ? -1 : 1;
|
|
41924
|
+
}
|
|
41925
|
+
const anum = numeric2.test(a3);
|
|
41926
|
+
const bnum = numeric2.test(b);
|
|
41927
|
+
if (anum && bnum) {
|
|
41928
|
+
a3 = +a3;
|
|
41929
|
+
b = +b;
|
|
41930
|
+
}
|
|
41931
|
+
return a3 === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a3 < b ? -1 : 1;
|
|
41932
|
+
};
|
|
41933
|
+
var rcompareIdentifiers = (a3, b) => compareIdentifiers(b, a3);
|
|
41934
|
+
module.exports = {
|
|
41935
|
+
compareIdentifiers,
|
|
41936
|
+
rcompareIdentifiers
|
|
41937
|
+
};
|
|
41938
|
+
});
|
|
41939
|
+
|
|
41940
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/classes/semver.js
|
|
41941
|
+
var require_semver3 = __commonJS((exports, module) => {
|
|
41942
|
+
var debug = require_debug2();
|
|
41943
|
+
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants3();
|
|
41944
|
+
var { safeRe: re, t: t3 } = require_re2();
|
|
41945
|
+
var parseOptions = require_parse_options2();
|
|
41946
|
+
var { compareIdentifiers } = require_identifiers2();
|
|
41947
|
+
|
|
41948
|
+
class SemVer {
|
|
41949
|
+
constructor(version2, options) {
|
|
41950
|
+
options = parseOptions(options);
|
|
41951
|
+
if (version2 instanceof SemVer) {
|
|
41952
|
+
if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) {
|
|
41953
|
+
return version2;
|
|
41954
|
+
} else {
|
|
41955
|
+
version2 = version2.version;
|
|
41956
|
+
}
|
|
41957
|
+
} else if (typeof version2 !== "string") {
|
|
41958
|
+
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
|
41959
|
+
}
|
|
41960
|
+
if (version2.length > MAX_LENGTH) {
|
|
41961
|
+
throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
|
41962
|
+
}
|
|
41963
|
+
debug("SemVer", version2, options);
|
|
41964
|
+
this.options = options;
|
|
41965
|
+
this.loose = !!options.loose;
|
|
41966
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
41967
|
+
const m = version2.trim().match(options.loose ? re[t3.LOOSE] : re[t3.FULL]);
|
|
41968
|
+
if (!m) {
|
|
41969
|
+
throw new TypeError(`Invalid Version: ${version2}`);
|
|
41970
|
+
}
|
|
41971
|
+
this.raw = version2;
|
|
41972
|
+
this.major = +m[1];
|
|
41973
|
+
this.minor = +m[2];
|
|
41974
|
+
this.patch = +m[3];
|
|
41975
|
+
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
|
|
41976
|
+
throw new TypeError("Invalid major version");
|
|
41977
|
+
}
|
|
41978
|
+
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
|
|
41979
|
+
throw new TypeError("Invalid minor version");
|
|
41980
|
+
}
|
|
41981
|
+
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
|
|
41982
|
+
throw new TypeError("Invalid patch version");
|
|
41983
|
+
}
|
|
41984
|
+
if (!m[4]) {
|
|
41985
|
+
this.prerelease = [];
|
|
41986
|
+
} else {
|
|
41987
|
+
this.prerelease = m[4].split(".").map((id) => {
|
|
41988
|
+
if (/^[0-9]+$/.test(id)) {
|
|
41989
|
+
const num = +id;
|
|
41990
|
+
if (num >= 0 && num < MAX_SAFE_INTEGER) {
|
|
41991
|
+
return num;
|
|
41992
|
+
}
|
|
41993
|
+
}
|
|
41994
|
+
return id;
|
|
41995
|
+
});
|
|
41996
|
+
}
|
|
41997
|
+
this.build = m[5] ? m[5].split(".") : [];
|
|
41998
|
+
this.format();
|
|
41999
|
+
}
|
|
42000
|
+
format() {
|
|
42001
|
+
this.version = `${this.major}.${this.minor}.${this.patch}`;
|
|
42002
|
+
if (this.prerelease.length) {
|
|
42003
|
+
this.version += `-${this.prerelease.join(".")}`;
|
|
42004
|
+
}
|
|
42005
|
+
return this.version;
|
|
42006
|
+
}
|
|
42007
|
+
toString() {
|
|
42008
|
+
return this.version;
|
|
42009
|
+
}
|
|
42010
|
+
compare(other) {
|
|
42011
|
+
debug("SemVer.compare", this.version, this.options, other);
|
|
42012
|
+
if (!(other instanceof SemVer)) {
|
|
42013
|
+
if (typeof other === "string" && other === this.version) {
|
|
42014
|
+
return 0;
|
|
42015
|
+
}
|
|
42016
|
+
other = new SemVer(other, this.options);
|
|
42017
|
+
}
|
|
42018
|
+
if (other.version === this.version) {
|
|
42019
|
+
return 0;
|
|
42020
|
+
}
|
|
42021
|
+
return this.compareMain(other) || this.comparePre(other);
|
|
42022
|
+
}
|
|
42023
|
+
compareMain(other) {
|
|
42024
|
+
if (!(other instanceof SemVer)) {
|
|
42025
|
+
other = new SemVer(other, this.options);
|
|
42026
|
+
}
|
|
42027
|
+
if (this.major < other.major) {
|
|
42028
|
+
return -1;
|
|
42029
|
+
}
|
|
42030
|
+
if (this.major > other.major) {
|
|
42031
|
+
return 1;
|
|
42032
|
+
}
|
|
42033
|
+
if (this.minor < other.minor) {
|
|
42034
|
+
return -1;
|
|
42035
|
+
}
|
|
42036
|
+
if (this.minor > other.minor) {
|
|
42037
|
+
return 1;
|
|
42038
|
+
}
|
|
42039
|
+
if (this.patch < other.patch) {
|
|
42040
|
+
return -1;
|
|
42041
|
+
}
|
|
42042
|
+
if (this.patch > other.patch) {
|
|
42043
|
+
return 1;
|
|
42044
|
+
}
|
|
42045
|
+
return 0;
|
|
42046
|
+
}
|
|
42047
|
+
comparePre(other) {
|
|
42048
|
+
if (!(other instanceof SemVer)) {
|
|
42049
|
+
other = new SemVer(other, this.options);
|
|
42050
|
+
}
|
|
42051
|
+
if (this.prerelease.length && !other.prerelease.length) {
|
|
42052
|
+
return -1;
|
|
42053
|
+
} else if (!this.prerelease.length && other.prerelease.length) {
|
|
42054
|
+
return 1;
|
|
42055
|
+
} else if (!this.prerelease.length && !other.prerelease.length) {
|
|
42056
|
+
return 0;
|
|
42057
|
+
}
|
|
42058
|
+
let i2 = 0;
|
|
42059
|
+
do {
|
|
42060
|
+
const a3 = this.prerelease[i2];
|
|
42061
|
+
const b = other.prerelease[i2];
|
|
42062
|
+
debug("prerelease compare", i2, a3, b);
|
|
42063
|
+
if (a3 === undefined && b === undefined) {
|
|
42064
|
+
return 0;
|
|
42065
|
+
} else if (b === undefined) {
|
|
42066
|
+
return 1;
|
|
42067
|
+
} else if (a3 === undefined) {
|
|
42068
|
+
return -1;
|
|
42069
|
+
} else if (a3 === b) {
|
|
42070
|
+
continue;
|
|
42071
|
+
} else {
|
|
42072
|
+
return compareIdentifiers(a3, b);
|
|
42073
|
+
}
|
|
42074
|
+
} while (++i2);
|
|
42075
|
+
}
|
|
42076
|
+
compareBuild(other) {
|
|
42077
|
+
if (!(other instanceof SemVer)) {
|
|
42078
|
+
other = new SemVer(other, this.options);
|
|
42079
|
+
}
|
|
42080
|
+
let i2 = 0;
|
|
42081
|
+
do {
|
|
42082
|
+
const a3 = this.build[i2];
|
|
42083
|
+
const b = other.build[i2];
|
|
42084
|
+
debug("build compare", i2, a3, b);
|
|
42085
|
+
if (a3 === undefined && b === undefined) {
|
|
42086
|
+
return 0;
|
|
42087
|
+
} else if (b === undefined) {
|
|
42088
|
+
return 1;
|
|
42089
|
+
} else if (a3 === undefined) {
|
|
42090
|
+
return -1;
|
|
42091
|
+
} else if (a3 === b) {
|
|
42092
|
+
continue;
|
|
42093
|
+
} else {
|
|
42094
|
+
return compareIdentifiers(a3, b);
|
|
42095
|
+
}
|
|
42096
|
+
} while (++i2);
|
|
42097
|
+
}
|
|
42098
|
+
inc(release, identifier, identifierBase) {
|
|
42099
|
+
if (release.startsWith("pre")) {
|
|
42100
|
+
if (!identifier && identifierBase === false) {
|
|
42101
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
42102
|
+
}
|
|
42103
|
+
if (identifier) {
|
|
42104
|
+
const match2 = `-${identifier}`.match(this.options.loose ? re[t3.PRERELEASELOOSE] : re[t3.PRERELEASE]);
|
|
42105
|
+
if (!match2 || match2[1] !== identifier) {
|
|
42106
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
42107
|
+
}
|
|
42108
|
+
}
|
|
42109
|
+
}
|
|
42110
|
+
switch (release) {
|
|
42111
|
+
case "premajor":
|
|
42112
|
+
this.prerelease.length = 0;
|
|
42113
|
+
this.patch = 0;
|
|
42114
|
+
this.minor = 0;
|
|
42115
|
+
this.major++;
|
|
42116
|
+
this.inc("pre", identifier, identifierBase);
|
|
42117
|
+
break;
|
|
42118
|
+
case "preminor":
|
|
42119
|
+
this.prerelease.length = 0;
|
|
42120
|
+
this.patch = 0;
|
|
42121
|
+
this.minor++;
|
|
42122
|
+
this.inc("pre", identifier, identifierBase);
|
|
42123
|
+
break;
|
|
42124
|
+
case "prepatch":
|
|
42125
|
+
this.prerelease.length = 0;
|
|
42126
|
+
this.inc("patch", identifier, identifierBase);
|
|
42127
|
+
this.inc("pre", identifier, identifierBase);
|
|
42128
|
+
break;
|
|
42129
|
+
case "prerelease":
|
|
42130
|
+
if (this.prerelease.length === 0) {
|
|
42131
|
+
this.inc("patch", identifier, identifierBase);
|
|
42132
|
+
}
|
|
42133
|
+
this.inc("pre", identifier, identifierBase);
|
|
42134
|
+
break;
|
|
42135
|
+
case "release":
|
|
42136
|
+
if (this.prerelease.length === 0) {
|
|
42137
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
42138
|
+
}
|
|
42139
|
+
this.prerelease.length = 0;
|
|
42140
|
+
break;
|
|
42141
|
+
case "major":
|
|
42142
|
+
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
42143
|
+
this.major++;
|
|
42144
|
+
}
|
|
42145
|
+
this.minor = 0;
|
|
42146
|
+
this.patch = 0;
|
|
42147
|
+
this.prerelease = [];
|
|
42148
|
+
break;
|
|
42149
|
+
case "minor":
|
|
42150
|
+
if (this.patch !== 0 || this.prerelease.length === 0) {
|
|
42151
|
+
this.minor++;
|
|
42152
|
+
}
|
|
42153
|
+
this.patch = 0;
|
|
42154
|
+
this.prerelease = [];
|
|
42155
|
+
break;
|
|
42156
|
+
case "patch":
|
|
42157
|
+
if (this.prerelease.length === 0) {
|
|
42158
|
+
this.patch++;
|
|
42159
|
+
}
|
|
42160
|
+
this.prerelease = [];
|
|
42161
|
+
break;
|
|
42162
|
+
case "pre": {
|
|
42163
|
+
const base2 = Number(identifierBase) ? 1 : 0;
|
|
42164
|
+
if (this.prerelease.length === 0) {
|
|
42165
|
+
this.prerelease = [base2];
|
|
42166
|
+
} else {
|
|
42167
|
+
let i2 = this.prerelease.length;
|
|
42168
|
+
while (--i2 >= 0) {
|
|
42169
|
+
if (typeof this.prerelease[i2] === "number") {
|
|
42170
|
+
this.prerelease[i2]++;
|
|
42171
|
+
i2 = -2;
|
|
42172
|
+
}
|
|
42173
|
+
}
|
|
42174
|
+
if (i2 === -1) {
|
|
42175
|
+
if (identifier === this.prerelease.join(".") && identifierBase === false) {
|
|
42176
|
+
throw new Error("invalid increment argument: identifier already exists");
|
|
42177
|
+
}
|
|
42178
|
+
this.prerelease.push(base2);
|
|
42179
|
+
}
|
|
42180
|
+
}
|
|
42181
|
+
if (identifier) {
|
|
42182
|
+
let prerelease = [identifier, base2];
|
|
42183
|
+
if (identifierBase === false) {
|
|
42184
|
+
prerelease = [identifier];
|
|
42185
|
+
}
|
|
42186
|
+
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
|
|
42187
|
+
if (isNaN(this.prerelease[1])) {
|
|
42188
|
+
this.prerelease = prerelease;
|
|
42189
|
+
}
|
|
42190
|
+
} else {
|
|
42191
|
+
this.prerelease = prerelease;
|
|
42192
|
+
}
|
|
42193
|
+
}
|
|
42194
|
+
break;
|
|
42195
|
+
}
|
|
42196
|
+
default:
|
|
42197
|
+
throw new Error(`invalid increment argument: ${release}`);
|
|
42198
|
+
}
|
|
42199
|
+
this.raw = this.format();
|
|
42200
|
+
if (this.build.length) {
|
|
42201
|
+
this.raw += `+${this.build.join(".")}`;
|
|
42202
|
+
}
|
|
42203
|
+
return this;
|
|
42204
|
+
}
|
|
42205
|
+
}
|
|
42206
|
+
module.exports = SemVer;
|
|
42207
|
+
});
|
|
42208
|
+
|
|
42209
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/parse.js
|
|
42210
|
+
var require_parse5 = __commonJS((exports, module) => {
|
|
42211
|
+
var SemVer = require_semver3();
|
|
42212
|
+
var parse7 = (version2, options, throwErrors = false) => {
|
|
42213
|
+
if (version2 instanceof SemVer) {
|
|
42214
|
+
return version2;
|
|
42215
|
+
}
|
|
42216
|
+
try {
|
|
42217
|
+
return new SemVer(version2, options);
|
|
42218
|
+
} catch (er) {
|
|
42219
|
+
if (!throwErrors) {
|
|
42220
|
+
return null;
|
|
42221
|
+
}
|
|
42222
|
+
throw er;
|
|
42223
|
+
}
|
|
42224
|
+
};
|
|
42225
|
+
module.exports = parse7;
|
|
42226
|
+
});
|
|
42227
|
+
|
|
42228
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/valid.js
|
|
42229
|
+
var require_valid3 = __commonJS((exports, module) => {
|
|
42230
|
+
var parse7 = require_parse5();
|
|
42231
|
+
var valid = (version2, options) => {
|
|
42232
|
+
const v = parse7(version2, options);
|
|
42233
|
+
return v ? v.version : null;
|
|
42234
|
+
};
|
|
42235
|
+
module.exports = valid;
|
|
42236
|
+
});
|
|
42237
|
+
|
|
42238
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/clean.js
|
|
42239
|
+
var require_clean2 = __commonJS((exports, module) => {
|
|
42240
|
+
var parse7 = require_parse5();
|
|
42241
|
+
var clean = (version2, options) => {
|
|
42242
|
+
const s = parse7(version2.trim().replace(/^[=v]+/, ""), options);
|
|
42243
|
+
return s ? s.version : null;
|
|
42244
|
+
};
|
|
42245
|
+
module.exports = clean;
|
|
42246
|
+
});
|
|
42247
|
+
|
|
42248
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/inc.js
|
|
42249
|
+
var require_inc2 = __commonJS((exports, module) => {
|
|
42250
|
+
var SemVer = require_semver3();
|
|
42251
|
+
var inc = (version2, release, options, identifier, identifierBase) => {
|
|
42252
|
+
if (typeof options === "string") {
|
|
42253
|
+
identifierBase = identifier;
|
|
42254
|
+
identifier = options;
|
|
42255
|
+
options = undefined;
|
|
42256
|
+
}
|
|
42257
|
+
try {
|
|
42258
|
+
return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier, identifierBase).version;
|
|
42259
|
+
} catch (er) {
|
|
42260
|
+
return null;
|
|
42261
|
+
}
|
|
42262
|
+
};
|
|
42263
|
+
module.exports = inc;
|
|
42264
|
+
});
|
|
42265
|
+
|
|
42266
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/diff.js
|
|
42267
|
+
var require_diff2 = __commonJS((exports, module) => {
|
|
42268
|
+
var parse7 = require_parse5();
|
|
42269
|
+
var diff = (version1, version2) => {
|
|
42270
|
+
const v1 = parse7(version1, null, true);
|
|
42271
|
+
const v2 = parse7(version2, null, true);
|
|
42272
|
+
const comparison = v1.compare(v2);
|
|
42273
|
+
if (comparison === 0) {
|
|
42274
|
+
return null;
|
|
42275
|
+
}
|
|
42276
|
+
const v1Higher = comparison > 0;
|
|
42277
|
+
const highVersion = v1Higher ? v1 : v2;
|
|
42278
|
+
const lowVersion = v1Higher ? v2 : v1;
|
|
42279
|
+
const highHasPre = !!highVersion.prerelease.length;
|
|
42280
|
+
const lowHasPre = !!lowVersion.prerelease.length;
|
|
42281
|
+
if (lowHasPre && !highHasPre) {
|
|
42282
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
42283
|
+
return "major";
|
|
42284
|
+
}
|
|
42285
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
42286
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
42287
|
+
return "minor";
|
|
42288
|
+
}
|
|
42289
|
+
return "patch";
|
|
42290
|
+
}
|
|
42291
|
+
}
|
|
42292
|
+
const prefix = highHasPre ? "pre" : "";
|
|
42293
|
+
if (v1.major !== v2.major) {
|
|
42294
|
+
return prefix + "major";
|
|
42295
|
+
}
|
|
42296
|
+
if (v1.minor !== v2.minor) {
|
|
42297
|
+
return prefix + "minor";
|
|
42298
|
+
}
|
|
42299
|
+
if (v1.patch !== v2.patch) {
|
|
42300
|
+
return prefix + "patch";
|
|
42301
|
+
}
|
|
42302
|
+
return "prerelease";
|
|
42303
|
+
};
|
|
42304
|
+
module.exports = diff;
|
|
42305
|
+
});
|
|
42306
|
+
|
|
42307
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/major.js
|
|
42308
|
+
var require_major2 = __commonJS((exports, module) => {
|
|
42309
|
+
var SemVer = require_semver3();
|
|
42310
|
+
var major = (a3, loose) => new SemVer(a3, loose).major;
|
|
42311
|
+
module.exports = major;
|
|
42312
|
+
});
|
|
42313
|
+
|
|
42314
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/minor.js
|
|
42315
|
+
var require_minor2 = __commonJS((exports, module) => {
|
|
42316
|
+
var SemVer = require_semver3();
|
|
42317
|
+
var minor = (a3, loose) => new SemVer(a3, loose).minor;
|
|
42318
|
+
module.exports = minor;
|
|
42319
|
+
});
|
|
42320
|
+
|
|
42321
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/patch.js
|
|
42322
|
+
var require_patch2 = __commonJS((exports, module) => {
|
|
42323
|
+
var SemVer = require_semver3();
|
|
42324
|
+
var patch = (a3, loose) => new SemVer(a3, loose).patch;
|
|
42325
|
+
module.exports = patch;
|
|
42326
|
+
});
|
|
42327
|
+
|
|
42328
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/prerelease.js
|
|
42329
|
+
var require_prerelease2 = __commonJS((exports, module) => {
|
|
42330
|
+
var parse7 = require_parse5();
|
|
42331
|
+
var prerelease = (version2, options) => {
|
|
42332
|
+
const parsed = parse7(version2, options);
|
|
42333
|
+
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
|
42334
|
+
};
|
|
42335
|
+
module.exports = prerelease;
|
|
42336
|
+
});
|
|
42337
|
+
|
|
42338
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/compare.js
|
|
42339
|
+
var require_compare2 = __commonJS((exports, module) => {
|
|
42340
|
+
var SemVer = require_semver3();
|
|
42341
|
+
var compare = (a3, b, loose) => new SemVer(a3, loose).compare(new SemVer(b, loose));
|
|
42342
|
+
module.exports = compare;
|
|
42343
|
+
});
|
|
42344
|
+
|
|
42345
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/rcompare.js
|
|
42346
|
+
var require_rcompare2 = __commonJS((exports, module) => {
|
|
42347
|
+
var compare = require_compare2();
|
|
42348
|
+
var rcompare = (a3, b, loose) => compare(b, a3, loose);
|
|
42349
|
+
module.exports = rcompare;
|
|
42350
|
+
});
|
|
42351
|
+
|
|
42352
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/compare-loose.js
|
|
42353
|
+
var require_compare_loose2 = __commonJS((exports, module) => {
|
|
42354
|
+
var compare = require_compare2();
|
|
42355
|
+
var compareLoose = (a3, b) => compare(a3, b, true);
|
|
42356
|
+
module.exports = compareLoose;
|
|
42357
|
+
});
|
|
42358
|
+
|
|
42359
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/compare-build.js
|
|
42360
|
+
var require_compare_build2 = __commonJS((exports, module) => {
|
|
42361
|
+
var SemVer = require_semver3();
|
|
42362
|
+
var compareBuild = (a3, b, loose) => {
|
|
42363
|
+
const versionA = new SemVer(a3, loose);
|
|
42364
|
+
const versionB = new SemVer(b, loose);
|
|
42365
|
+
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
|
42366
|
+
};
|
|
42367
|
+
module.exports = compareBuild;
|
|
42368
|
+
});
|
|
42369
|
+
|
|
42370
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/sort.js
|
|
42371
|
+
var require_sort3 = __commonJS((exports, module) => {
|
|
42372
|
+
var compareBuild = require_compare_build2();
|
|
42373
|
+
var sort = (list2, loose) => list2.sort((a3, b) => compareBuild(a3, b, loose));
|
|
42374
|
+
module.exports = sort;
|
|
42375
|
+
});
|
|
42376
|
+
|
|
42377
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/rsort.js
|
|
42378
|
+
var require_rsort2 = __commonJS((exports, module) => {
|
|
42379
|
+
var compareBuild = require_compare_build2();
|
|
42380
|
+
var rsort = (list2, loose) => list2.sort((a3, b) => compareBuild(b, a3, loose));
|
|
42381
|
+
module.exports = rsort;
|
|
42382
|
+
});
|
|
42383
|
+
|
|
42384
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/gt.js
|
|
42385
|
+
var require_gt2 = __commonJS((exports, module) => {
|
|
42386
|
+
var compare = require_compare2();
|
|
42387
|
+
var gt = (a3, b, loose) => compare(a3, b, loose) > 0;
|
|
42388
|
+
module.exports = gt;
|
|
42389
|
+
});
|
|
42390
|
+
|
|
42391
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/lt.js
|
|
42392
|
+
var require_lt2 = __commonJS((exports, module) => {
|
|
42393
|
+
var compare = require_compare2();
|
|
42394
|
+
var lt2 = (a3, b, loose) => compare(a3, b, loose) < 0;
|
|
42395
|
+
module.exports = lt2;
|
|
42396
|
+
});
|
|
42397
|
+
|
|
42398
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/eq.js
|
|
42399
|
+
var require_eq2 = __commonJS((exports, module) => {
|
|
42400
|
+
var compare = require_compare2();
|
|
42401
|
+
var eq = (a3, b, loose) => compare(a3, b, loose) === 0;
|
|
42402
|
+
module.exports = eq;
|
|
42403
|
+
});
|
|
42404
|
+
|
|
42405
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/neq.js
|
|
42406
|
+
var require_neq2 = __commonJS((exports, module) => {
|
|
42407
|
+
var compare = require_compare2();
|
|
42408
|
+
var neq = (a3, b, loose) => compare(a3, b, loose) !== 0;
|
|
42409
|
+
module.exports = neq;
|
|
42410
|
+
});
|
|
42411
|
+
|
|
42412
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/gte.js
|
|
42413
|
+
var require_gte2 = __commonJS((exports, module) => {
|
|
42414
|
+
var compare = require_compare2();
|
|
42415
|
+
var gte2 = (a3, b, loose) => compare(a3, b, loose) >= 0;
|
|
42416
|
+
module.exports = gte2;
|
|
42417
|
+
});
|
|
42418
|
+
|
|
42419
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/lte.js
|
|
42420
|
+
var require_lte2 = __commonJS((exports, module) => {
|
|
42421
|
+
var compare = require_compare2();
|
|
42422
|
+
var lte2 = (a3, b, loose) => compare(a3, b, loose) <= 0;
|
|
42423
|
+
module.exports = lte2;
|
|
42424
|
+
});
|
|
42425
|
+
|
|
42426
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/cmp.js
|
|
42427
|
+
var require_cmp2 = __commonJS((exports, module) => {
|
|
42428
|
+
var eq = require_eq2();
|
|
42429
|
+
var neq = require_neq2();
|
|
42430
|
+
var gt = require_gt2();
|
|
42431
|
+
var gte2 = require_gte2();
|
|
42432
|
+
var lt2 = require_lt2();
|
|
42433
|
+
var lte2 = require_lte2();
|
|
42434
|
+
var cmp = (a3, op, b, loose) => {
|
|
42435
|
+
switch (op) {
|
|
42436
|
+
case "===":
|
|
42437
|
+
if (typeof a3 === "object") {
|
|
42438
|
+
a3 = a3.version;
|
|
42439
|
+
}
|
|
42440
|
+
if (typeof b === "object") {
|
|
42441
|
+
b = b.version;
|
|
42442
|
+
}
|
|
42443
|
+
return a3 === b;
|
|
42444
|
+
case "!==":
|
|
42445
|
+
if (typeof a3 === "object") {
|
|
42446
|
+
a3 = a3.version;
|
|
42447
|
+
}
|
|
42448
|
+
if (typeof b === "object") {
|
|
42449
|
+
b = b.version;
|
|
42450
|
+
}
|
|
42451
|
+
return a3 !== b;
|
|
42452
|
+
case "":
|
|
42453
|
+
case "=":
|
|
42454
|
+
case "==":
|
|
42455
|
+
return eq(a3, b, loose);
|
|
42456
|
+
case "!=":
|
|
42457
|
+
return neq(a3, b, loose);
|
|
42458
|
+
case ">":
|
|
42459
|
+
return gt(a3, b, loose);
|
|
42460
|
+
case ">=":
|
|
42461
|
+
return gte2(a3, b, loose);
|
|
42462
|
+
case "<":
|
|
42463
|
+
return lt2(a3, b, loose);
|
|
42464
|
+
case "<=":
|
|
42465
|
+
return lte2(a3, b, loose);
|
|
42466
|
+
default:
|
|
42467
|
+
throw new TypeError(`Invalid operator: ${op}`);
|
|
42468
|
+
}
|
|
42469
|
+
};
|
|
42470
|
+
module.exports = cmp;
|
|
42471
|
+
});
|
|
42472
|
+
|
|
42473
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/coerce.js
|
|
42474
|
+
var require_coerce2 = __commonJS((exports, module) => {
|
|
42475
|
+
var SemVer = require_semver3();
|
|
42476
|
+
var parse7 = require_parse5();
|
|
42477
|
+
var { safeRe: re, t: t3 } = require_re2();
|
|
42478
|
+
var coerce = (version2, options) => {
|
|
42479
|
+
if (version2 instanceof SemVer) {
|
|
42480
|
+
return version2;
|
|
42481
|
+
}
|
|
42482
|
+
if (typeof version2 === "number") {
|
|
42483
|
+
version2 = String(version2);
|
|
42484
|
+
}
|
|
42485
|
+
if (typeof version2 !== "string") {
|
|
42486
|
+
return null;
|
|
42487
|
+
}
|
|
42488
|
+
options = options || {};
|
|
42489
|
+
let match2 = null;
|
|
42490
|
+
if (!options.rtl) {
|
|
42491
|
+
match2 = version2.match(options.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
|
|
42492
|
+
} else {
|
|
42493
|
+
const coerceRtlRegex = options.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
|
|
42494
|
+
let next;
|
|
42495
|
+
while ((next = coerceRtlRegex.exec(version2)) && (!match2 || match2.index + match2[0].length !== version2.length)) {
|
|
42496
|
+
if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
|
|
42497
|
+
match2 = next;
|
|
42498
|
+
}
|
|
42499
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
42500
|
+
}
|
|
42501
|
+
coerceRtlRegex.lastIndex = -1;
|
|
42502
|
+
}
|
|
42503
|
+
if (match2 === null) {
|
|
42504
|
+
return null;
|
|
42505
|
+
}
|
|
42506
|
+
const major = match2[2];
|
|
42507
|
+
const minor = match2[3] || "0";
|
|
42508
|
+
const patch = match2[4] || "0";
|
|
42509
|
+
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
42510
|
+
const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
42511
|
+
return parse7(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
|
42512
|
+
};
|
|
42513
|
+
module.exports = coerce;
|
|
42514
|
+
});
|
|
42515
|
+
|
|
42516
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/internal/lrucache.js
|
|
42517
|
+
var require_lrucache2 = __commonJS((exports, module) => {
|
|
42518
|
+
class LRUCache2 {
|
|
42519
|
+
constructor() {
|
|
42520
|
+
this.max = 1000;
|
|
42521
|
+
this.map = new Map;
|
|
42522
|
+
}
|
|
42523
|
+
get(key2) {
|
|
42524
|
+
const value2 = this.map.get(key2);
|
|
42525
|
+
if (value2 === undefined) {
|
|
42526
|
+
return;
|
|
42527
|
+
} else {
|
|
42528
|
+
this.map.delete(key2);
|
|
42529
|
+
this.map.set(key2, value2);
|
|
42530
|
+
return value2;
|
|
42531
|
+
}
|
|
42532
|
+
}
|
|
42533
|
+
delete(key2) {
|
|
42534
|
+
return this.map.delete(key2);
|
|
42535
|
+
}
|
|
42536
|
+
set(key2, value2) {
|
|
42537
|
+
const deleted = this.delete(key2);
|
|
42538
|
+
if (!deleted && value2 !== undefined) {
|
|
42539
|
+
if (this.map.size >= this.max) {
|
|
42540
|
+
const firstKey = this.map.keys().next().value;
|
|
42541
|
+
this.delete(firstKey);
|
|
42542
|
+
}
|
|
42543
|
+
this.map.set(key2, value2);
|
|
42544
|
+
}
|
|
42545
|
+
return this;
|
|
42546
|
+
}
|
|
42547
|
+
}
|
|
42548
|
+
module.exports = LRUCache2;
|
|
42549
|
+
});
|
|
42550
|
+
|
|
42551
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/classes/range.js
|
|
42552
|
+
var require_range2 = __commonJS((exports, module) => {
|
|
42553
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
42554
|
+
|
|
42555
|
+
class Range {
|
|
42556
|
+
constructor(range2, options) {
|
|
42557
|
+
options = parseOptions(options);
|
|
42558
|
+
if (range2 instanceof Range) {
|
|
42559
|
+
if (range2.loose === !!options.loose && range2.includePrerelease === !!options.includePrerelease) {
|
|
42560
|
+
return range2;
|
|
42561
|
+
} else {
|
|
42562
|
+
return new Range(range2.raw, options);
|
|
42563
|
+
}
|
|
42564
|
+
}
|
|
42565
|
+
if (range2 instanceof Comparator) {
|
|
42566
|
+
this.raw = range2.value;
|
|
42567
|
+
this.set = [[range2]];
|
|
42568
|
+
this.formatted = undefined;
|
|
42569
|
+
return this;
|
|
42570
|
+
}
|
|
42571
|
+
this.options = options;
|
|
42572
|
+
this.loose = !!options.loose;
|
|
42573
|
+
this.includePrerelease = !!options.includePrerelease;
|
|
42574
|
+
this.raw = range2.trim().replace(SPACE_CHARACTERS, " ");
|
|
42575
|
+
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
42576
|
+
if (!this.set.length) {
|
|
42577
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
42578
|
+
}
|
|
42579
|
+
if (this.set.length > 1) {
|
|
42580
|
+
const first = this.set[0];
|
|
42581
|
+
this.set = this.set.filter((c) => !isNullSet(c[0]));
|
|
42582
|
+
if (this.set.length === 0) {
|
|
42583
|
+
this.set = [first];
|
|
42584
|
+
} else if (this.set.length > 1) {
|
|
42585
|
+
for (const c of this.set) {
|
|
42586
|
+
if (c.length === 1 && isAny(c[0])) {
|
|
42587
|
+
this.set = [c];
|
|
42588
|
+
break;
|
|
42589
|
+
}
|
|
42590
|
+
}
|
|
42591
|
+
}
|
|
42592
|
+
}
|
|
42593
|
+
this.formatted = undefined;
|
|
42594
|
+
}
|
|
42595
|
+
get range() {
|
|
42596
|
+
if (this.formatted === undefined) {
|
|
42597
|
+
this.formatted = "";
|
|
42598
|
+
for (let i2 = 0;i2 < this.set.length; i2++) {
|
|
42599
|
+
if (i2 > 0) {
|
|
42600
|
+
this.formatted += "||";
|
|
42601
|
+
}
|
|
42602
|
+
const comps = this.set[i2];
|
|
42603
|
+
for (let k = 0;k < comps.length; k++) {
|
|
42604
|
+
if (k > 0) {
|
|
42605
|
+
this.formatted += " ";
|
|
42606
|
+
}
|
|
42607
|
+
this.formatted += comps[k].toString().trim();
|
|
42608
|
+
}
|
|
42609
|
+
}
|
|
42610
|
+
}
|
|
42611
|
+
return this.formatted;
|
|
42612
|
+
}
|
|
42613
|
+
format() {
|
|
42614
|
+
return this.range;
|
|
42615
|
+
}
|
|
42616
|
+
toString() {
|
|
42617
|
+
return this.range;
|
|
42618
|
+
}
|
|
42619
|
+
parseRange(range2) {
|
|
42620
|
+
const memoOpts = (this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE);
|
|
42621
|
+
const memoKey = memoOpts + ":" + range2;
|
|
42622
|
+
const cached2 = cache.get(memoKey);
|
|
42623
|
+
if (cached2) {
|
|
42624
|
+
return cached2;
|
|
42625
|
+
}
|
|
42626
|
+
const loose = this.options.loose;
|
|
42627
|
+
const hr = loose ? re[t3.HYPHENRANGELOOSE] : re[t3.HYPHENRANGE];
|
|
42628
|
+
range2 = range2.replace(hr, hyphenReplace(this.options.includePrerelease));
|
|
42629
|
+
debug("hyphen replace", range2);
|
|
42630
|
+
range2 = range2.replace(re[t3.COMPARATORTRIM], comparatorTrimReplace);
|
|
42631
|
+
debug("comparator trim", range2);
|
|
42632
|
+
range2 = range2.replace(re[t3.TILDETRIM], tildeTrimReplace);
|
|
42633
|
+
debug("tilde trim", range2);
|
|
42634
|
+
range2 = range2.replace(re[t3.CARETTRIM], caretTrimReplace);
|
|
42635
|
+
debug("caret trim", range2);
|
|
42636
|
+
let rangeList = range2.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
|
42637
|
+
if (loose) {
|
|
42638
|
+
rangeList = rangeList.filter((comp) => {
|
|
42639
|
+
debug("loose invalid filter", comp, this.options);
|
|
42640
|
+
return !!comp.match(re[t3.COMPARATORLOOSE]);
|
|
42641
|
+
});
|
|
42642
|
+
}
|
|
42643
|
+
debug("range list", rangeList);
|
|
42644
|
+
const rangeMap = new Map;
|
|
42645
|
+
const comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
|
42646
|
+
for (const comp of comparators) {
|
|
42647
|
+
if (isNullSet(comp)) {
|
|
42648
|
+
return [comp];
|
|
42649
|
+
}
|
|
42650
|
+
rangeMap.set(comp.value, comp);
|
|
42651
|
+
}
|
|
42652
|
+
if (rangeMap.size > 1 && rangeMap.has("")) {
|
|
42653
|
+
rangeMap.delete("");
|
|
42654
|
+
}
|
|
42655
|
+
const result = [...rangeMap.values()];
|
|
42656
|
+
cache.set(memoKey, result);
|
|
42657
|
+
return result;
|
|
42658
|
+
}
|
|
42659
|
+
intersects(range2, options) {
|
|
42660
|
+
if (!(range2 instanceof Range)) {
|
|
42661
|
+
throw new TypeError("a Range is required");
|
|
42662
|
+
}
|
|
42663
|
+
return this.set.some((thisComparators) => {
|
|
42664
|
+
return isSatisfiable(thisComparators, options) && range2.set.some((rangeComparators) => {
|
|
42665
|
+
return isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => {
|
|
42666
|
+
return rangeComparators.every((rangeComparator) => {
|
|
42667
|
+
return thisComparator.intersects(rangeComparator, options);
|
|
42668
|
+
});
|
|
42669
|
+
});
|
|
42670
|
+
});
|
|
42671
|
+
});
|
|
42672
|
+
}
|
|
42673
|
+
test(version2) {
|
|
42674
|
+
if (!version2) {
|
|
42675
|
+
return false;
|
|
42676
|
+
}
|
|
42677
|
+
if (typeof version2 === "string") {
|
|
42678
|
+
try {
|
|
42679
|
+
version2 = new SemVer(version2, this.options);
|
|
42680
|
+
} catch (er) {
|
|
42681
|
+
return false;
|
|
42682
|
+
}
|
|
42683
|
+
}
|
|
42684
|
+
for (let i2 = 0;i2 < this.set.length; i2++) {
|
|
42685
|
+
if (testSet(this.set[i2], version2, this.options)) {
|
|
42686
|
+
return true;
|
|
42687
|
+
}
|
|
42688
|
+
}
|
|
42689
|
+
return false;
|
|
42690
|
+
}
|
|
42691
|
+
}
|
|
42692
|
+
module.exports = Range;
|
|
42693
|
+
var LRU = require_lrucache2();
|
|
42694
|
+
var cache = new LRU;
|
|
42695
|
+
var parseOptions = require_parse_options2();
|
|
42696
|
+
var Comparator = require_comparator2();
|
|
42697
|
+
var debug = require_debug2();
|
|
42698
|
+
var SemVer = require_semver3();
|
|
42699
|
+
var {
|
|
42700
|
+
safeRe: re,
|
|
42701
|
+
t: t3,
|
|
42702
|
+
comparatorTrimReplace,
|
|
42703
|
+
tildeTrimReplace,
|
|
42704
|
+
caretTrimReplace
|
|
42705
|
+
} = require_re2();
|
|
42706
|
+
var { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants3();
|
|
42707
|
+
var isNullSet = (c) => c.value === "<0.0.0-0";
|
|
42708
|
+
var isAny = (c) => c.value === "";
|
|
42709
|
+
var isSatisfiable = (comparators, options) => {
|
|
42710
|
+
let result = true;
|
|
42711
|
+
const remainingComparators = comparators.slice();
|
|
42712
|
+
let testComparator = remainingComparators.pop();
|
|
42713
|
+
while (result && remainingComparators.length) {
|
|
42714
|
+
result = remainingComparators.every((otherComparator) => {
|
|
42715
|
+
return testComparator.intersects(otherComparator, options);
|
|
42716
|
+
});
|
|
42717
|
+
testComparator = remainingComparators.pop();
|
|
42718
|
+
}
|
|
42719
|
+
return result;
|
|
42720
|
+
};
|
|
42721
|
+
var parseComparator = (comp, options) => {
|
|
42722
|
+
comp = comp.replace(re[t3.BUILD], "");
|
|
42723
|
+
debug("comp", comp, options);
|
|
42724
|
+
comp = replaceCarets(comp, options);
|
|
42725
|
+
debug("caret", comp);
|
|
42726
|
+
comp = replaceTildes(comp, options);
|
|
42727
|
+
debug("tildes", comp);
|
|
42728
|
+
comp = replaceXRanges(comp, options);
|
|
42729
|
+
debug("xrange", comp);
|
|
42730
|
+
comp = replaceStars(comp, options);
|
|
42731
|
+
debug("stars", comp);
|
|
42732
|
+
return comp;
|
|
42733
|
+
};
|
|
42734
|
+
var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
|
|
42735
|
+
var replaceTildes = (comp, options) => {
|
|
42736
|
+
return comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" ");
|
|
42737
|
+
};
|
|
42738
|
+
var replaceTilde = (comp, options) => {
|
|
42739
|
+
const r = options.loose ? re[t3.TILDELOOSE] : re[t3.TILDE];
|
|
42740
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
42741
|
+
debug("tilde", comp, _, M, m, p, pr);
|
|
42742
|
+
let ret;
|
|
42743
|
+
if (isX(M)) {
|
|
42744
|
+
ret = "";
|
|
42745
|
+
} else if (isX(m)) {
|
|
42746
|
+
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
42747
|
+
} else if (isX(p)) {
|
|
42748
|
+
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
42749
|
+
} else if (pr) {
|
|
42750
|
+
debug("replaceTilde pr", pr);
|
|
42751
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
42752
|
+
} else {
|
|
42753
|
+
ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
|
|
42754
|
+
}
|
|
42755
|
+
debug("tilde return", ret);
|
|
42756
|
+
return ret;
|
|
42757
|
+
});
|
|
42758
|
+
};
|
|
42759
|
+
var replaceCarets = (comp, options) => {
|
|
42760
|
+
return comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" ");
|
|
42761
|
+
};
|
|
42762
|
+
var replaceCaret = (comp, options) => {
|
|
42763
|
+
debug("caret", comp, options);
|
|
42764
|
+
const r = options.loose ? re[t3.CARETLOOSE] : re[t3.CARET];
|
|
42765
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
42766
|
+
return comp.replace(r, (_, M, m, p, pr) => {
|
|
42767
|
+
debug("caret", comp, _, M, m, p, pr);
|
|
42768
|
+
let ret;
|
|
42769
|
+
if (isX(M)) {
|
|
42770
|
+
ret = "";
|
|
42771
|
+
} else if (isX(m)) {
|
|
42772
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
42773
|
+
} else if (isX(p)) {
|
|
42774
|
+
if (M === "0") {
|
|
42775
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
42776
|
+
} else {
|
|
42777
|
+
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
|
|
42778
|
+
}
|
|
42779
|
+
} else if (pr) {
|
|
42780
|
+
debug("replaceCaret pr", pr);
|
|
42781
|
+
if (M === "0") {
|
|
42782
|
+
if (m === "0") {
|
|
42783
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
|
|
42784
|
+
} else {
|
|
42785
|
+
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
42786
|
+
}
|
|
42787
|
+
} else {
|
|
42788
|
+
ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
|
|
42789
|
+
}
|
|
42790
|
+
} else {
|
|
42791
|
+
debug("no pr");
|
|
42792
|
+
if (M === "0") {
|
|
42793
|
+
if (m === "0") {
|
|
42794
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
|
|
42795
|
+
} else {
|
|
42796
|
+
ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
|
|
42797
|
+
}
|
|
42798
|
+
} else {
|
|
42799
|
+
ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
|
|
42800
|
+
}
|
|
42801
|
+
}
|
|
42802
|
+
debug("caret return", ret);
|
|
42803
|
+
return ret;
|
|
42804
|
+
});
|
|
42805
|
+
};
|
|
42806
|
+
var replaceXRanges = (comp, options) => {
|
|
42807
|
+
debug("replaceXRanges", comp, options);
|
|
42808
|
+
return comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ");
|
|
42809
|
+
};
|
|
42810
|
+
var replaceXRange = (comp, options) => {
|
|
42811
|
+
comp = comp.trim();
|
|
42812
|
+
const r = options.loose ? re[t3.XRANGELOOSE] : re[t3.XRANGE];
|
|
42813
|
+
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
|
42814
|
+
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
|
42815
|
+
const xM = isX(M);
|
|
42816
|
+
const xm = xM || isX(m);
|
|
42817
|
+
const xp = xm || isX(p);
|
|
42818
|
+
const anyX = xp;
|
|
42819
|
+
if (gtlt === "=" && anyX) {
|
|
42820
|
+
gtlt = "";
|
|
42821
|
+
}
|
|
42822
|
+
pr = options.includePrerelease ? "-0" : "";
|
|
42823
|
+
if (xM) {
|
|
42824
|
+
if (gtlt === ">" || gtlt === "<") {
|
|
42825
|
+
ret = "<0.0.0-0";
|
|
42826
|
+
} else {
|
|
42827
|
+
ret = "*";
|
|
42828
|
+
}
|
|
42829
|
+
} else if (gtlt && anyX) {
|
|
42830
|
+
if (xm) {
|
|
42831
|
+
m = 0;
|
|
42832
|
+
}
|
|
42833
|
+
p = 0;
|
|
42834
|
+
if (gtlt === ">") {
|
|
42835
|
+
gtlt = ">=";
|
|
42836
|
+
if (xm) {
|
|
42837
|
+
M = +M + 1;
|
|
42838
|
+
m = 0;
|
|
42839
|
+
p = 0;
|
|
42840
|
+
} else {
|
|
42841
|
+
m = +m + 1;
|
|
42842
|
+
p = 0;
|
|
42843
|
+
}
|
|
42844
|
+
} else if (gtlt === "<=") {
|
|
42845
|
+
gtlt = "<";
|
|
42846
|
+
if (xm) {
|
|
42847
|
+
M = +M + 1;
|
|
42848
|
+
} else {
|
|
42849
|
+
m = +m + 1;
|
|
42850
|
+
}
|
|
42851
|
+
}
|
|
42852
|
+
if (gtlt === "<") {
|
|
42853
|
+
pr = "-0";
|
|
42854
|
+
}
|
|
42855
|
+
ret = `${gtlt + M}.${m}.${p}${pr}`;
|
|
42856
|
+
} else if (xm) {
|
|
42857
|
+
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
|
|
42858
|
+
} else if (xp) {
|
|
42859
|
+
ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
|
|
42860
|
+
}
|
|
42861
|
+
debug("xRange return", ret);
|
|
42862
|
+
return ret;
|
|
42863
|
+
});
|
|
42864
|
+
};
|
|
42865
|
+
var replaceStars = (comp, options) => {
|
|
42866
|
+
debug("replaceStars", comp, options);
|
|
42867
|
+
return comp.trim().replace(re[t3.STAR], "");
|
|
42868
|
+
};
|
|
42869
|
+
var replaceGTE0 = (comp, options) => {
|
|
42870
|
+
debug("replaceGTE0", comp, options);
|
|
42871
|
+
return comp.trim().replace(re[options.includePrerelease ? t3.GTE0PRE : t3.GTE0], "");
|
|
42872
|
+
};
|
|
42873
|
+
var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
|
42874
|
+
if (isX(fM)) {
|
|
42875
|
+
from = "";
|
|
42876
|
+
} else if (isX(fm)) {
|
|
42877
|
+
from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
|
|
42878
|
+
} else if (isX(fp)) {
|
|
42879
|
+
from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
|
|
42880
|
+
} else if (fpr) {
|
|
42881
|
+
from = `>=${from}`;
|
|
42882
|
+
} else {
|
|
42883
|
+
from = `>=${from}${incPr ? "-0" : ""}`;
|
|
42884
|
+
}
|
|
42885
|
+
if (isX(tM)) {
|
|
42886
|
+
to = "";
|
|
42887
|
+
} else if (isX(tm)) {
|
|
42888
|
+
to = `<${+tM + 1}.0.0-0`;
|
|
42889
|
+
} else if (isX(tp)) {
|
|
42890
|
+
to = `<${tM}.${+tm + 1}.0-0`;
|
|
42891
|
+
} else if (tpr) {
|
|
42892
|
+
to = `<=${tM}.${tm}.${tp}-${tpr}`;
|
|
42893
|
+
} else if (incPr) {
|
|
42894
|
+
to = `<${tM}.${tm}.${+tp + 1}-0`;
|
|
42895
|
+
} else {
|
|
42896
|
+
to = `<=${to}`;
|
|
42897
|
+
}
|
|
42898
|
+
return `${from} ${to}`.trim();
|
|
42899
|
+
};
|
|
42900
|
+
var testSet = (set2, version2, options) => {
|
|
42901
|
+
for (let i2 = 0;i2 < set2.length; i2++) {
|
|
42902
|
+
if (!set2[i2].test(version2)) {
|
|
42903
|
+
return false;
|
|
42904
|
+
}
|
|
42905
|
+
}
|
|
42906
|
+
if (version2.prerelease.length && !options.includePrerelease) {
|
|
42907
|
+
for (let i2 = 0;i2 < set2.length; i2++) {
|
|
42908
|
+
debug(set2[i2].semver);
|
|
42909
|
+
if (set2[i2].semver === Comparator.ANY) {
|
|
42910
|
+
continue;
|
|
42911
|
+
}
|
|
42912
|
+
if (set2[i2].semver.prerelease.length > 0) {
|
|
42913
|
+
const allowed = set2[i2].semver;
|
|
42914
|
+
if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) {
|
|
42915
|
+
return true;
|
|
42916
|
+
}
|
|
42917
|
+
}
|
|
42918
|
+
}
|
|
42919
|
+
return false;
|
|
42920
|
+
}
|
|
42921
|
+
return true;
|
|
42922
|
+
};
|
|
42923
|
+
});
|
|
42924
|
+
|
|
42925
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/classes/comparator.js
|
|
42926
|
+
var require_comparator2 = __commonJS((exports, module) => {
|
|
42927
|
+
var ANY = Symbol("SemVer ANY");
|
|
42928
|
+
|
|
42929
|
+
class Comparator {
|
|
42930
|
+
static get ANY() {
|
|
42931
|
+
return ANY;
|
|
42932
|
+
}
|
|
42933
|
+
constructor(comp, options) {
|
|
42934
|
+
options = parseOptions(options);
|
|
42935
|
+
if (comp instanceof Comparator) {
|
|
42936
|
+
if (comp.loose === !!options.loose) {
|
|
42937
|
+
return comp;
|
|
42938
|
+
} else {
|
|
42939
|
+
comp = comp.value;
|
|
42940
|
+
}
|
|
42941
|
+
}
|
|
42942
|
+
comp = comp.trim().split(/\s+/).join(" ");
|
|
42943
|
+
debug("comparator", comp, options);
|
|
42944
|
+
this.options = options;
|
|
42945
|
+
this.loose = !!options.loose;
|
|
42946
|
+
this.parse(comp);
|
|
42947
|
+
if (this.semver === ANY) {
|
|
42948
|
+
this.value = "";
|
|
42949
|
+
} else {
|
|
42950
|
+
this.value = this.operator + this.semver.version;
|
|
42951
|
+
}
|
|
42952
|
+
debug("comp", this);
|
|
42953
|
+
}
|
|
42954
|
+
parse(comp) {
|
|
42955
|
+
const r = this.options.loose ? re[t3.COMPARATORLOOSE] : re[t3.COMPARATOR];
|
|
42956
|
+
const m = comp.match(r);
|
|
42957
|
+
if (!m) {
|
|
42958
|
+
throw new TypeError(`Invalid comparator: ${comp}`);
|
|
42959
|
+
}
|
|
42960
|
+
this.operator = m[1] !== undefined ? m[1] : "";
|
|
42961
|
+
if (this.operator === "=") {
|
|
42962
|
+
this.operator = "";
|
|
42963
|
+
}
|
|
42964
|
+
if (!m[2]) {
|
|
42965
|
+
this.semver = ANY;
|
|
42966
|
+
} else {
|
|
42967
|
+
this.semver = new SemVer(m[2], this.options.loose);
|
|
42968
|
+
}
|
|
42969
|
+
}
|
|
42970
|
+
toString() {
|
|
42971
|
+
return this.value;
|
|
42972
|
+
}
|
|
42973
|
+
test(version2) {
|
|
42974
|
+
debug("Comparator.test", version2, this.options.loose);
|
|
42975
|
+
if (this.semver === ANY || version2 === ANY) {
|
|
42976
|
+
return true;
|
|
42977
|
+
}
|
|
42978
|
+
if (typeof version2 === "string") {
|
|
42979
|
+
try {
|
|
42980
|
+
version2 = new SemVer(version2, this.options);
|
|
42981
|
+
} catch (er) {
|
|
42982
|
+
return false;
|
|
42983
|
+
}
|
|
42984
|
+
}
|
|
42985
|
+
return cmp(version2, this.operator, this.semver, this.options);
|
|
42986
|
+
}
|
|
42987
|
+
intersects(comp, options) {
|
|
42988
|
+
if (!(comp instanceof Comparator)) {
|
|
42989
|
+
throw new TypeError("a Comparator is required");
|
|
42990
|
+
}
|
|
42991
|
+
if (this.operator === "") {
|
|
42992
|
+
if (this.value === "") {
|
|
42993
|
+
return true;
|
|
42994
|
+
}
|
|
42995
|
+
return new Range(comp.value, options).test(this.value);
|
|
42996
|
+
} else if (comp.operator === "") {
|
|
42997
|
+
if (comp.value === "") {
|
|
42998
|
+
return true;
|
|
42999
|
+
}
|
|
43000
|
+
return new Range(this.value, options).test(comp.semver);
|
|
43001
|
+
}
|
|
43002
|
+
options = parseOptions(options);
|
|
43003
|
+
if (options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0")) {
|
|
43004
|
+
return false;
|
|
43005
|
+
}
|
|
43006
|
+
if (!options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0"))) {
|
|
43007
|
+
return false;
|
|
43008
|
+
}
|
|
43009
|
+
if (this.operator.startsWith(">") && comp.operator.startsWith(">")) {
|
|
43010
|
+
return true;
|
|
43011
|
+
}
|
|
43012
|
+
if (this.operator.startsWith("<") && comp.operator.startsWith("<")) {
|
|
43013
|
+
return true;
|
|
43014
|
+
}
|
|
43015
|
+
if (this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=")) {
|
|
43016
|
+
return true;
|
|
43017
|
+
}
|
|
43018
|
+
if (cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<")) {
|
|
43019
|
+
return true;
|
|
43020
|
+
}
|
|
43021
|
+
if (cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")) {
|
|
43022
|
+
return true;
|
|
43023
|
+
}
|
|
43024
|
+
return false;
|
|
43025
|
+
}
|
|
43026
|
+
}
|
|
43027
|
+
module.exports = Comparator;
|
|
43028
|
+
var parseOptions = require_parse_options2();
|
|
43029
|
+
var { safeRe: re, t: t3 } = require_re2();
|
|
43030
|
+
var cmp = require_cmp2();
|
|
43031
|
+
var debug = require_debug2();
|
|
43032
|
+
var SemVer = require_semver3();
|
|
43033
|
+
var Range = require_range2();
|
|
43034
|
+
});
|
|
43035
|
+
|
|
43036
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/functions/satisfies.js
|
|
43037
|
+
var require_satisfies2 = __commonJS((exports, module) => {
|
|
43038
|
+
var Range = require_range2();
|
|
43039
|
+
var satisfies = (version2, range2, options) => {
|
|
43040
|
+
try {
|
|
43041
|
+
range2 = new Range(range2, options);
|
|
43042
|
+
} catch (er) {
|
|
43043
|
+
return false;
|
|
43044
|
+
}
|
|
43045
|
+
return range2.test(version2);
|
|
43046
|
+
};
|
|
43047
|
+
module.exports = satisfies;
|
|
43048
|
+
});
|
|
43049
|
+
|
|
43050
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/to-comparators.js
|
|
43051
|
+
var require_to_comparators2 = __commonJS((exports, module) => {
|
|
43052
|
+
var Range = require_range2();
|
|
43053
|
+
var toComparators = (range2, options) => new Range(range2, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
|
43054
|
+
module.exports = toComparators;
|
|
43055
|
+
});
|
|
43056
|
+
|
|
43057
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/max-satisfying.js
|
|
43058
|
+
var require_max_satisfying2 = __commonJS((exports, module) => {
|
|
43059
|
+
var SemVer = require_semver3();
|
|
43060
|
+
var Range = require_range2();
|
|
43061
|
+
var maxSatisfying = (versions2, range2, options) => {
|
|
43062
|
+
let max = null;
|
|
43063
|
+
let maxSV = null;
|
|
43064
|
+
let rangeObj = null;
|
|
43065
|
+
try {
|
|
43066
|
+
rangeObj = new Range(range2, options);
|
|
43067
|
+
} catch (er) {
|
|
43068
|
+
return null;
|
|
43069
|
+
}
|
|
43070
|
+
versions2.forEach((v) => {
|
|
43071
|
+
if (rangeObj.test(v)) {
|
|
43072
|
+
if (!max || maxSV.compare(v) === -1) {
|
|
43073
|
+
max = v;
|
|
43074
|
+
maxSV = new SemVer(max, options);
|
|
43075
|
+
}
|
|
43076
|
+
}
|
|
43077
|
+
});
|
|
43078
|
+
return max;
|
|
43079
|
+
};
|
|
43080
|
+
module.exports = maxSatisfying;
|
|
43081
|
+
});
|
|
43082
|
+
|
|
43083
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/min-satisfying.js
|
|
43084
|
+
var require_min_satisfying2 = __commonJS((exports, module) => {
|
|
43085
|
+
var SemVer = require_semver3();
|
|
43086
|
+
var Range = require_range2();
|
|
43087
|
+
var minSatisfying = (versions2, range2, options) => {
|
|
43088
|
+
let min = null;
|
|
43089
|
+
let minSV = null;
|
|
43090
|
+
let rangeObj = null;
|
|
43091
|
+
try {
|
|
43092
|
+
rangeObj = new Range(range2, options);
|
|
43093
|
+
} catch (er) {
|
|
43094
|
+
return null;
|
|
43095
|
+
}
|
|
43096
|
+
versions2.forEach((v) => {
|
|
43097
|
+
if (rangeObj.test(v)) {
|
|
43098
|
+
if (!min || minSV.compare(v) === 1) {
|
|
43099
|
+
min = v;
|
|
43100
|
+
minSV = new SemVer(min, options);
|
|
43101
|
+
}
|
|
43102
|
+
}
|
|
43103
|
+
});
|
|
43104
|
+
return min;
|
|
43105
|
+
};
|
|
43106
|
+
module.exports = minSatisfying;
|
|
43107
|
+
});
|
|
43108
|
+
|
|
43109
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/min-version.js
|
|
43110
|
+
var require_min_version2 = __commonJS((exports, module) => {
|
|
43111
|
+
var SemVer = require_semver3();
|
|
43112
|
+
var Range = require_range2();
|
|
43113
|
+
var gt = require_gt2();
|
|
43114
|
+
var minVersion = (range2, loose) => {
|
|
43115
|
+
range2 = new Range(range2, loose);
|
|
43116
|
+
let minver = new SemVer("0.0.0");
|
|
43117
|
+
if (range2.test(minver)) {
|
|
43118
|
+
return minver;
|
|
43119
|
+
}
|
|
43120
|
+
minver = new SemVer("0.0.0-0");
|
|
43121
|
+
if (range2.test(minver)) {
|
|
43122
|
+
return minver;
|
|
43123
|
+
}
|
|
43124
|
+
minver = null;
|
|
43125
|
+
for (let i2 = 0;i2 < range2.set.length; ++i2) {
|
|
43126
|
+
const comparators = range2.set[i2];
|
|
43127
|
+
let setMin = null;
|
|
43128
|
+
comparators.forEach((comparator) => {
|
|
43129
|
+
const compver = new SemVer(comparator.semver.version);
|
|
43130
|
+
switch (comparator.operator) {
|
|
43131
|
+
case ">":
|
|
43132
|
+
if (compver.prerelease.length === 0) {
|
|
43133
|
+
compver.patch++;
|
|
43134
|
+
} else {
|
|
43135
|
+
compver.prerelease.push(0);
|
|
43136
|
+
}
|
|
43137
|
+
compver.raw = compver.format();
|
|
43138
|
+
case "":
|
|
43139
|
+
case ">=":
|
|
43140
|
+
if (!setMin || gt(compver, setMin)) {
|
|
43141
|
+
setMin = compver;
|
|
43142
|
+
}
|
|
43143
|
+
break;
|
|
43144
|
+
case "<":
|
|
43145
|
+
case "<=":
|
|
43146
|
+
break;
|
|
43147
|
+
default:
|
|
43148
|
+
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
|
43149
|
+
}
|
|
43150
|
+
});
|
|
43151
|
+
if (setMin && (!minver || gt(minver, setMin))) {
|
|
43152
|
+
minver = setMin;
|
|
43153
|
+
}
|
|
43154
|
+
}
|
|
43155
|
+
if (minver && range2.test(minver)) {
|
|
43156
|
+
return minver;
|
|
43157
|
+
}
|
|
43158
|
+
return null;
|
|
43159
|
+
};
|
|
43160
|
+
module.exports = minVersion;
|
|
43161
|
+
});
|
|
43162
|
+
|
|
43163
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/valid.js
|
|
43164
|
+
var require_valid4 = __commonJS((exports, module) => {
|
|
43165
|
+
var Range = require_range2();
|
|
43166
|
+
var validRange = (range2, options) => {
|
|
43167
|
+
try {
|
|
43168
|
+
return new Range(range2, options).range || "*";
|
|
43169
|
+
} catch (er) {
|
|
43170
|
+
return null;
|
|
43171
|
+
}
|
|
43172
|
+
};
|
|
43173
|
+
module.exports = validRange;
|
|
43174
|
+
});
|
|
43175
|
+
|
|
43176
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/outside.js
|
|
43177
|
+
var require_outside2 = __commonJS((exports, module) => {
|
|
43178
|
+
var SemVer = require_semver3();
|
|
43179
|
+
var Comparator = require_comparator2();
|
|
43180
|
+
var { ANY } = Comparator;
|
|
43181
|
+
var Range = require_range2();
|
|
43182
|
+
var satisfies = require_satisfies2();
|
|
43183
|
+
var gt = require_gt2();
|
|
43184
|
+
var lt2 = require_lt2();
|
|
43185
|
+
var lte2 = require_lte2();
|
|
43186
|
+
var gte2 = require_gte2();
|
|
43187
|
+
var outside = (version2, range2, hilo, options) => {
|
|
43188
|
+
version2 = new SemVer(version2, options);
|
|
43189
|
+
range2 = new Range(range2, options);
|
|
43190
|
+
let gtfn, ltefn, ltfn, comp, ecomp;
|
|
43191
|
+
switch (hilo) {
|
|
43192
|
+
case ">":
|
|
43193
|
+
gtfn = gt;
|
|
43194
|
+
ltefn = lte2;
|
|
43195
|
+
ltfn = lt2;
|
|
43196
|
+
comp = ">";
|
|
43197
|
+
ecomp = ">=";
|
|
43198
|
+
break;
|
|
43199
|
+
case "<":
|
|
43200
|
+
gtfn = lt2;
|
|
43201
|
+
ltefn = gte2;
|
|
43202
|
+
ltfn = gt;
|
|
43203
|
+
comp = "<";
|
|
43204
|
+
ecomp = "<=";
|
|
43205
|
+
break;
|
|
43206
|
+
default:
|
|
43207
|
+
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
43208
|
+
}
|
|
43209
|
+
if (satisfies(version2, range2, options)) {
|
|
43210
|
+
return false;
|
|
43211
|
+
}
|
|
43212
|
+
for (let i2 = 0;i2 < range2.set.length; ++i2) {
|
|
43213
|
+
const comparators = range2.set[i2];
|
|
43214
|
+
let high = null;
|
|
43215
|
+
let low = null;
|
|
43216
|
+
comparators.forEach((comparator) => {
|
|
43217
|
+
if (comparator.semver === ANY) {
|
|
43218
|
+
comparator = new Comparator(">=0.0.0");
|
|
43219
|
+
}
|
|
43220
|
+
high = high || comparator;
|
|
43221
|
+
low = low || comparator;
|
|
43222
|
+
if (gtfn(comparator.semver, high.semver, options)) {
|
|
43223
|
+
high = comparator;
|
|
43224
|
+
} else if (ltfn(comparator.semver, low.semver, options)) {
|
|
43225
|
+
low = comparator;
|
|
43226
|
+
}
|
|
43227
|
+
});
|
|
43228
|
+
if (high.operator === comp || high.operator === ecomp) {
|
|
43229
|
+
return false;
|
|
43230
|
+
}
|
|
43231
|
+
if ((!low.operator || low.operator === comp) && ltefn(version2, low.semver)) {
|
|
43232
|
+
return false;
|
|
43233
|
+
} else if (low.operator === ecomp && ltfn(version2, low.semver)) {
|
|
43234
|
+
return false;
|
|
43235
|
+
}
|
|
43236
|
+
}
|
|
43237
|
+
return true;
|
|
43238
|
+
};
|
|
43239
|
+
module.exports = outside;
|
|
43240
|
+
});
|
|
43241
|
+
|
|
43242
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/gtr.js
|
|
43243
|
+
var require_gtr2 = __commonJS((exports, module) => {
|
|
43244
|
+
var outside = require_outside2();
|
|
43245
|
+
var gtr = (version2, range2, options) => outside(version2, range2, ">", options);
|
|
43246
|
+
module.exports = gtr;
|
|
43247
|
+
});
|
|
43248
|
+
|
|
43249
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/ltr.js
|
|
43250
|
+
var require_ltr2 = __commonJS((exports, module) => {
|
|
43251
|
+
var outside = require_outside2();
|
|
43252
|
+
var ltr = (version2, range2, options) => outside(version2, range2, "<", options);
|
|
43253
|
+
module.exports = ltr;
|
|
43254
|
+
});
|
|
43255
|
+
|
|
43256
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/intersects.js
|
|
43257
|
+
var require_intersects2 = __commonJS((exports, module) => {
|
|
43258
|
+
var Range = require_range2();
|
|
43259
|
+
var intersects = (r1, r2, options) => {
|
|
43260
|
+
r1 = new Range(r1, options);
|
|
43261
|
+
r2 = new Range(r2, options);
|
|
43262
|
+
return r1.intersects(r2, options);
|
|
43263
|
+
};
|
|
43264
|
+
module.exports = intersects;
|
|
43265
|
+
});
|
|
43266
|
+
|
|
43267
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/simplify.js
|
|
43268
|
+
var require_simplify2 = __commonJS((exports, module) => {
|
|
43269
|
+
var satisfies = require_satisfies2();
|
|
43270
|
+
var compare = require_compare2();
|
|
43271
|
+
module.exports = (versions2, range2, options) => {
|
|
43272
|
+
const set2 = [];
|
|
43273
|
+
let first = null;
|
|
43274
|
+
let prev = null;
|
|
43275
|
+
const v = versions2.sort((a3, b) => compare(a3, b, options));
|
|
43276
|
+
for (const version2 of v) {
|
|
43277
|
+
const included = satisfies(version2, range2, options);
|
|
43278
|
+
if (included) {
|
|
43279
|
+
prev = version2;
|
|
43280
|
+
if (!first) {
|
|
43281
|
+
first = version2;
|
|
43282
|
+
}
|
|
43283
|
+
} else {
|
|
43284
|
+
if (prev) {
|
|
43285
|
+
set2.push([first, prev]);
|
|
43286
|
+
}
|
|
43287
|
+
prev = null;
|
|
43288
|
+
first = null;
|
|
43289
|
+
}
|
|
43290
|
+
}
|
|
43291
|
+
if (first) {
|
|
43292
|
+
set2.push([first, null]);
|
|
43293
|
+
}
|
|
43294
|
+
const ranges = [];
|
|
43295
|
+
for (const [min, max] of set2) {
|
|
43296
|
+
if (min === max) {
|
|
43297
|
+
ranges.push(min);
|
|
43298
|
+
} else if (!max && min === v[0]) {
|
|
43299
|
+
ranges.push("*");
|
|
43300
|
+
} else if (!max) {
|
|
43301
|
+
ranges.push(`>=${min}`);
|
|
43302
|
+
} else if (min === v[0]) {
|
|
43303
|
+
ranges.push(`<=${max}`);
|
|
43304
|
+
} else {
|
|
43305
|
+
ranges.push(`${min} - ${max}`);
|
|
43306
|
+
}
|
|
43307
|
+
}
|
|
43308
|
+
const simplified = ranges.join(" || ");
|
|
43309
|
+
const original = typeof range2.raw === "string" ? range2.raw : String(range2);
|
|
43310
|
+
return simplified.length < original.length ? simplified : range2;
|
|
43311
|
+
};
|
|
43312
|
+
});
|
|
43313
|
+
|
|
43314
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/ranges/subset.js
|
|
43315
|
+
var require_subset2 = __commonJS((exports, module) => {
|
|
43316
|
+
var Range = require_range2();
|
|
43317
|
+
var Comparator = require_comparator2();
|
|
43318
|
+
var { ANY } = Comparator;
|
|
43319
|
+
var satisfies = require_satisfies2();
|
|
43320
|
+
var compare = require_compare2();
|
|
43321
|
+
var subset = (sub, dom, options = {}) => {
|
|
43322
|
+
if (sub === dom) {
|
|
43323
|
+
return true;
|
|
43324
|
+
}
|
|
43325
|
+
sub = new Range(sub, options);
|
|
43326
|
+
dom = new Range(dom, options);
|
|
43327
|
+
let sawNonNull = false;
|
|
43328
|
+
OUTER:
|
|
43329
|
+
for (const simpleSub of sub.set) {
|
|
43330
|
+
for (const simpleDom of dom.set) {
|
|
43331
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options);
|
|
43332
|
+
sawNonNull = sawNonNull || isSub !== null;
|
|
43333
|
+
if (isSub) {
|
|
43334
|
+
continue OUTER;
|
|
43335
|
+
}
|
|
43336
|
+
}
|
|
43337
|
+
if (sawNonNull) {
|
|
43338
|
+
return false;
|
|
43339
|
+
}
|
|
43340
|
+
}
|
|
43341
|
+
return true;
|
|
43342
|
+
};
|
|
43343
|
+
var minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")];
|
|
43344
|
+
var minimumVersion = [new Comparator(">=0.0.0")];
|
|
43345
|
+
var simpleSubset = (sub, dom, options) => {
|
|
43346
|
+
if (sub === dom) {
|
|
43347
|
+
return true;
|
|
43348
|
+
}
|
|
43349
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
43350
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
43351
|
+
return true;
|
|
43352
|
+
} else if (options.includePrerelease) {
|
|
43353
|
+
sub = minimumVersionWithPreRelease;
|
|
43354
|
+
} else {
|
|
43355
|
+
sub = minimumVersion;
|
|
43356
|
+
}
|
|
43357
|
+
}
|
|
43358
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
43359
|
+
if (options.includePrerelease) {
|
|
43360
|
+
return true;
|
|
43361
|
+
} else {
|
|
43362
|
+
dom = minimumVersion;
|
|
43363
|
+
}
|
|
43364
|
+
}
|
|
43365
|
+
const eqSet = new Set;
|
|
43366
|
+
let gt, lt2;
|
|
43367
|
+
for (const c of sub) {
|
|
43368
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
43369
|
+
gt = higherGT(gt, c, options);
|
|
43370
|
+
} else if (c.operator === "<" || c.operator === "<=") {
|
|
43371
|
+
lt2 = lowerLT(lt2, c, options);
|
|
43372
|
+
} else {
|
|
43373
|
+
eqSet.add(c.semver);
|
|
43374
|
+
}
|
|
43375
|
+
}
|
|
43376
|
+
if (eqSet.size > 1) {
|
|
43377
|
+
return null;
|
|
43378
|
+
}
|
|
43379
|
+
let gtltComp;
|
|
43380
|
+
if (gt && lt2) {
|
|
43381
|
+
gtltComp = compare(gt.semver, lt2.semver, options);
|
|
43382
|
+
if (gtltComp > 0) {
|
|
43383
|
+
return null;
|
|
43384
|
+
} else if (gtltComp === 0 && (gt.operator !== ">=" || lt2.operator !== "<=")) {
|
|
43385
|
+
return null;
|
|
43386
|
+
}
|
|
43387
|
+
}
|
|
43388
|
+
for (const eq of eqSet) {
|
|
43389
|
+
if (gt && !satisfies(eq, String(gt), options)) {
|
|
43390
|
+
return null;
|
|
43391
|
+
}
|
|
43392
|
+
if (lt2 && !satisfies(eq, String(lt2), options)) {
|
|
43393
|
+
return null;
|
|
43394
|
+
}
|
|
43395
|
+
for (const c of dom) {
|
|
43396
|
+
if (!satisfies(eq, String(c), options)) {
|
|
43397
|
+
return false;
|
|
43398
|
+
}
|
|
43399
|
+
}
|
|
43400
|
+
return true;
|
|
43401
|
+
}
|
|
43402
|
+
let higher, lower;
|
|
43403
|
+
let hasDomLT, hasDomGT;
|
|
43404
|
+
let needDomLTPre = lt2 && !options.includePrerelease && lt2.semver.prerelease.length ? lt2.semver : false;
|
|
43405
|
+
let needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
|
43406
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt2.operator === "<" && needDomLTPre.prerelease[0] === 0) {
|
|
43407
|
+
needDomLTPre = false;
|
|
43408
|
+
}
|
|
43409
|
+
for (const c of dom) {
|
|
43410
|
+
hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
|
|
43411
|
+
hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
|
|
43412
|
+
if (gt) {
|
|
43413
|
+
if (needDomGTPre) {
|
|
43414
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
|
|
43415
|
+
needDomGTPre = false;
|
|
43416
|
+
}
|
|
43417
|
+
}
|
|
43418
|
+
if (c.operator === ">" || c.operator === ">=") {
|
|
43419
|
+
higher = higherGT(gt, c, options);
|
|
43420
|
+
if (higher === c && higher !== gt) {
|
|
43421
|
+
return false;
|
|
43422
|
+
}
|
|
43423
|
+
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) {
|
|
43424
|
+
return false;
|
|
43425
|
+
}
|
|
43426
|
+
}
|
|
43427
|
+
if (lt2) {
|
|
43428
|
+
if (needDomLTPre) {
|
|
43429
|
+
if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
|
|
43430
|
+
needDomLTPre = false;
|
|
43431
|
+
}
|
|
43432
|
+
}
|
|
43433
|
+
if (c.operator === "<" || c.operator === "<=") {
|
|
43434
|
+
lower = lowerLT(lt2, c, options);
|
|
43435
|
+
if (lower === c && lower !== lt2) {
|
|
43436
|
+
return false;
|
|
43437
|
+
}
|
|
43438
|
+
} else if (lt2.operator === "<=" && !satisfies(lt2.semver, String(c), options)) {
|
|
43439
|
+
return false;
|
|
43440
|
+
}
|
|
43441
|
+
}
|
|
43442
|
+
if (!c.operator && (lt2 || gt) && gtltComp !== 0) {
|
|
43443
|
+
return false;
|
|
43444
|
+
}
|
|
43445
|
+
}
|
|
43446
|
+
if (gt && hasDomLT && !lt2 && gtltComp !== 0) {
|
|
43447
|
+
return false;
|
|
43448
|
+
}
|
|
43449
|
+
if (lt2 && hasDomGT && !gt && gtltComp !== 0) {
|
|
43450
|
+
return false;
|
|
43451
|
+
}
|
|
43452
|
+
if (needDomGTPre || needDomLTPre) {
|
|
43453
|
+
return false;
|
|
43454
|
+
}
|
|
43455
|
+
return true;
|
|
43456
|
+
};
|
|
43457
|
+
var higherGT = (a3, b, options) => {
|
|
43458
|
+
if (!a3) {
|
|
43459
|
+
return b;
|
|
43460
|
+
}
|
|
43461
|
+
const comp = compare(a3.semver, b.semver, options);
|
|
43462
|
+
return comp > 0 ? a3 : comp < 0 ? b : b.operator === ">" && a3.operator === ">=" ? b : a3;
|
|
43463
|
+
};
|
|
43464
|
+
var lowerLT = (a3, b, options) => {
|
|
43465
|
+
if (!a3) {
|
|
43466
|
+
return b;
|
|
43467
|
+
}
|
|
43468
|
+
const comp = compare(a3.semver, b.semver, options);
|
|
43469
|
+
return comp < 0 ? a3 : comp > 0 ? b : b.operator === "<" && a3.operator === "<=" ? b : a3;
|
|
43470
|
+
};
|
|
43471
|
+
module.exports = subset;
|
|
43472
|
+
});
|
|
43473
|
+
|
|
43474
|
+
// ../../node_modules/.bun/semver@7.7.3/node_modules/semver/index.js
|
|
43475
|
+
var require_semver4 = __commonJS((exports, module) => {
|
|
43476
|
+
var internalRe = require_re2();
|
|
43477
|
+
var constants = require_constants3();
|
|
43478
|
+
var SemVer = require_semver3();
|
|
43479
|
+
var identifiers = require_identifiers2();
|
|
43480
|
+
var parse7 = require_parse5();
|
|
43481
|
+
var valid = require_valid3();
|
|
43482
|
+
var clean = require_clean2();
|
|
43483
|
+
var inc = require_inc2();
|
|
43484
|
+
var diff = require_diff2();
|
|
43485
|
+
var major = require_major2();
|
|
43486
|
+
var minor = require_minor2();
|
|
43487
|
+
var patch = require_patch2();
|
|
43488
|
+
var prerelease = require_prerelease2();
|
|
43489
|
+
var compare = require_compare2();
|
|
43490
|
+
var rcompare = require_rcompare2();
|
|
43491
|
+
var compareLoose = require_compare_loose2();
|
|
43492
|
+
var compareBuild = require_compare_build2();
|
|
43493
|
+
var sort = require_sort3();
|
|
43494
|
+
var rsort = require_rsort2();
|
|
43495
|
+
var gt = require_gt2();
|
|
43496
|
+
var lt2 = require_lt2();
|
|
43497
|
+
var eq = require_eq2();
|
|
43498
|
+
var neq = require_neq2();
|
|
43499
|
+
var gte2 = require_gte2();
|
|
43500
|
+
var lte2 = require_lte2();
|
|
43501
|
+
var cmp = require_cmp2();
|
|
43502
|
+
var coerce = require_coerce2();
|
|
43503
|
+
var Comparator = require_comparator2();
|
|
43504
|
+
var Range = require_range2();
|
|
43505
|
+
var satisfies = require_satisfies2();
|
|
43506
|
+
var toComparators = require_to_comparators2();
|
|
43507
|
+
var maxSatisfying = require_max_satisfying2();
|
|
43508
|
+
var minSatisfying = require_min_satisfying2();
|
|
43509
|
+
var minVersion = require_min_version2();
|
|
43510
|
+
var validRange = require_valid4();
|
|
43511
|
+
var outside = require_outside2();
|
|
43512
|
+
var gtr = require_gtr2();
|
|
43513
|
+
var ltr = require_ltr2();
|
|
43514
|
+
var intersects = require_intersects2();
|
|
43515
|
+
var simplifyRange = require_simplify2();
|
|
43516
|
+
var subset = require_subset2();
|
|
43517
|
+
module.exports = {
|
|
43518
|
+
parse: parse7,
|
|
43519
|
+
valid,
|
|
43520
|
+
clean,
|
|
43521
|
+
inc,
|
|
43522
|
+
diff,
|
|
43523
|
+
major,
|
|
43524
|
+
minor,
|
|
43525
|
+
patch,
|
|
43526
|
+
prerelease,
|
|
43527
|
+
compare,
|
|
43528
|
+
rcompare,
|
|
43529
|
+
compareLoose,
|
|
43530
|
+
compareBuild,
|
|
43531
|
+
sort,
|
|
43532
|
+
rsort,
|
|
43533
|
+
gt,
|
|
43534
|
+
lt: lt2,
|
|
43535
|
+
eq,
|
|
43536
|
+
neq,
|
|
43537
|
+
gte: gte2,
|
|
43538
|
+
lte: lte2,
|
|
43539
|
+
cmp,
|
|
43540
|
+
coerce,
|
|
43541
|
+
Comparator,
|
|
43542
|
+
Range,
|
|
43543
|
+
satisfies,
|
|
43544
|
+
toComparators,
|
|
43545
|
+
maxSatisfying,
|
|
43546
|
+
minSatisfying,
|
|
43547
|
+
minVersion,
|
|
43548
|
+
validRange,
|
|
43549
|
+
outside,
|
|
43550
|
+
gtr,
|
|
43551
|
+
ltr,
|
|
43552
|
+
intersects,
|
|
43553
|
+
simplifyRange,
|
|
43554
|
+
subset,
|
|
43555
|
+
SemVer,
|
|
43556
|
+
re: internalRe.re,
|
|
43557
|
+
src: internalRe.src,
|
|
43558
|
+
tokens: internalRe.t,
|
|
43559
|
+
SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION,
|
|
43560
|
+
RELEASE_TYPES: constants.RELEASE_TYPES,
|
|
43561
|
+
compareIdentifiers: identifiers.compareIdentifiers,
|
|
43562
|
+
rcompareIdentifiers: identifiers.rcompareIdentifiers
|
|
43563
|
+
};
|
|
43564
|
+
});
|
|
43565
|
+
|
|
41783
43566
|
// ../../node_modules/.bun/source-map@0.6.1/node_modules/source-map/lib/base64.js
|
|
41784
43567
|
var require_base64 = __commonJS((exports) => {
|
|
41785
43568
|
var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
@@ -231646,12 +233429,12 @@ function split2(lst, le4 = false) {
|
|
|
231646
233429
|
let Ah = new Uint32Array(len);
|
|
231647
233430
|
let Al = new Uint32Array(len);
|
|
231648
233431
|
for (let i7 = 0;i7 < len; i7++) {
|
|
231649
|
-
const { h:
|
|
231650
|
-
[Ah[i7], Al[i7]] = [
|
|
233432
|
+
const { h: h7, l: l4 } = fromBig(lst[i7], le4);
|
|
233433
|
+
[Ah[i7], Al[i7]] = [h7, l4];
|
|
231651
233434
|
}
|
|
231652
233435
|
return [Ah, Al];
|
|
231653
233436
|
}
|
|
231654
|
-
var U32_MASK64, _32n, rotlSH = (
|
|
233437
|
+
var U32_MASK64, _32n, rotlSH = (h7, l4, s7) => h7 << s7 | l4 >>> 32 - s7, rotlSL = (h7, l4, s7) => l4 << s7 | h7 >>> 32 - s7, rotlBH = (h7, l4, s7) => l4 << s7 - 32 | h7 >>> 64 - s7, rotlBL = (h7, l4, s7) => h7 << s7 - 32 | l4 >>> 64 - s7;
|
|
231655
233438
|
var init__u64 = __esm(() => {
|
|
231656
233439
|
U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
|
|
231657
233440
|
_32n = /* @__PURE__ */ BigInt(32);
|
|
@@ -231678,11 +233461,11 @@ function abytes(b4, ...lengths) {
|
|
|
231678
233461
|
if (lengths.length > 0 && !lengths.includes(b4.length))
|
|
231679
233462
|
throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b4.length);
|
|
231680
233463
|
}
|
|
231681
|
-
function ahash(
|
|
231682
|
-
if (typeof
|
|
233464
|
+
function ahash(h7) {
|
|
233465
|
+
if (typeof h7 !== "function" || typeof h7.create !== "function")
|
|
231683
233466
|
throw new Error("Hash should be wrapped by utils.createHasher");
|
|
231684
|
-
anumber(
|
|
231685
|
-
anumber(
|
|
233467
|
+
anumber(h7.outputLen);
|
|
233468
|
+
anumber(h7.blockLen);
|
|
231686
233469
|
}
|
|
231687
233470
|
function aexists(instance, checkFinished = true) {
|
|
231688
233471
|
if (instance.destroyed)
|
|
@@ -231815,7 +233598,7 @@ function keccakP(s7, rounds = 24) {
|
|
|
231815
233598
|
}
|
|
231816
233599
|
clean(B4);
|
|
231817
233600
|
}
|
|
231818
|
-
var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH = (
|
|
233601
|
+
var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH = (h7, l4, s7) => s7 > 32 ? rotlBH(h7, l4, s7) : rotlSH(h7, l4, s7), rotlL = (h7, l4, s7) => s7 > 32 ? rotlBL(h7, l4, s7) : rotlSL(h7, l4, s7), Keccak, gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen)), keccak_256;
|
|
231819
233602
|
var init_sha3 = __esm(() => {
|
|
231820
233603
|
init__u64();
|
|
231821
233604
|
init_utils2();
|
|
@@ -234118,9 +235901,9 @@ function setBigUint64(view, byteOffset, value5, isLE2) {
|
|
|
234118
235901
|
const _u32_max = BigInt(4294967295);
|
|
234119
235902
|
const wh = Number(value5 >> _32n2 & _u32_max);
|
|
234120
235903
|
const wl = Number(value5 & _u32_max);
|
|
234121
|
-
const
|
|
235904
|
+
const h7 = isLE2 ? 4 : 0;
|
|
234122
235905
|
const l4 = isLE2 ? 0 : 4;
|
|
234123
|
-
view.setUint32(byteOffset +
|
|
235906
|
+
view.setUint32(byteOffset + h7, wh, isLE2);
|
|
234124
235907
|
view.setUint32(byteOffset + l4, wl, isLE2);
|
|
234125
235908
|
}
|
|
234126
235909
|
function Chi(a8, b4, c3) {
|
|
@@ -234589,14 +236372,14 @@ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
|
|
|
234589
236372
|
k5.fill(0);
|
|
234590
236373
|
i7 = 0;
|
|
234591
236374
|
};
|
|
234592
|
-
const
|
|
236375
|
+
const h7 = (...b4) => hmacFn(k5, v6, ...b4);
|
|
234593
236376
|
const reseed = (seed = u8n(0)) => {
|
|
234594
|
-
k5 =
|
|
234595
|
-
v6 =
|
|
236377
|
+
k5 = h7(u8fr([0]), seed);
|
|
236378
|
+
v6 = h7();
|
|
234596
236379
|
if (seed.length === 0)
|
|
234597
236380
|
return;
|
|
234598
|
-
k5 =
|
|
234599
|
-
v6 =
|
|
236381
|
+
k5 = h7(u8fr([1]), seed);
|
|
236382
|
+
v6 = h7();
|
|
234600
236383
|
};
|
|
234601
236384
|
const gen2 = () => {
|
|
234602
236385
|
if (i7++ >= 1000)
|
|
@@ -234604,7 +236387,7 @@ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
|
|
|
234604
236387
|
let len = 0;
|
|
234605
236388
|
const out = [];
|
|
234606
236389
|
while (len < qByteLen) {
|
|
234607
|
-
v6 =
|
|
236390
|
+
v6 = h7();
|
|
234608
236391
|
const sl = v6.slice();
|
|
234609
236392
|
out.push(sl);
|
|
234610
236393
|
len += v6.length;
|
|
@@ -235449,16 +237232,16 @@ function weierstrassPoints(opts) {
|
|
|
235449
237232
|
multiplyUnsafe(sc) {
|
|
235450
237233
|
const { endo: endo2, n: N6 } = CURVE;
|
|
235451
237234
|
aInRange("scalar", sc, _0n5, N6);
|
|
235452
|
-
const
|
|
237235
|
+
const I7 = Point.ZERO;
|
|
235453
237236
|
if (sc === _0n5)
|
|
235454
|
-
return
|
|
237237
|
+
return I7;
|
|
235455
237238
|
if (this.is0() || sc === _1n5)
|
|
235456
237239
|
return this;
|
|
235457
237240
|
if (!endo2 || wnaf.hasPrecomputes(this))
|
|
235458
237241
|
return wnaf.wNAFCachedUnsafe(this, sc, Point.normalizeZ);
|
|
235459
237242
|
let { k1neg, k1, k2neg, k2: k22 } = endo2.splitScalar(sc);
|
|
235460
|
-
let k1p =
|
|
235461
|
-
let k2p =
|
|
237243
|
+
let k1p = I7;
|
|
237244
|
+
let k2p = I7;
|
|
235462
237245
|
let d6 = this;
|
|
235463
237246
|
while (k1 > _0n5 || k22 > _0n5) {
|
|
235464
237247
|
if (k1 & _1n5)
|
|
@@ -235646,7 +237429,7 @@ function weierstrass(curveDef) {
|
|
|
235646
237429
|
}
|
|
235647
237430
|
recoverPublicKey(msgHash) {
|
|
235648
237431
|
const { r: r7, s: s7, recovery: rec } = this;
|
|
235649
|
-
const
|
|
237432
|
+
const h7 = bits2int_modN(ensureBytes("msgHash", msgHash));
|
|
235650
237433
|
if (rec == null || ![0, 1, 2, 3].includes(rec))
|
|
235651
237434
|
throw new Error("recovery id invalid");
|
|
235652
237435
|
const radj = rec === 2 || rec === 3 ? r7 + CURVE.n : r7;
|
|
@@ -235655,7 +237438,7 @@ function weierstrass(curveDef) {
|
|
|
235655
237438
|
const prefix = (rec & 1) === 0 ? "02" : "03";
|
|
235656
237439
|
const R7 = Point.fromHex(prefix + numToSizedHex(radj, Fp.BYTES));
|
|
235657
237440
|
const ir2 = invN(radj);
|
|
235658
|
-
const u1 = modN(-
|
|
237441
|
+
const u1 = modN(-h7 * ir2);
|
|
235659
237442
|
const u22 = modN(s7 * ir2);
|
|
235660
237443
|
const Q4 = Point.BASE.multiplyAndAddUnsafe(R7, u1, u22);
|
|
235661
237444
|
if (!Q4)
|
|
@@ -235837,9 +237620,9 @@ function weierstrass(curveDef) {
|
|
|
235837
237620
|
if (prehash)
|
|
235838
237621
|
msgHash = CURVE.hash(msgHash);
|
|
235839
237622
|
const { r: r7, s: s7 } = _sig;
|
|
235840
|
-
const
|
|
237623
|
+
const h7 = bits2int_modN(msgHash);
|
|
235841
237624
|
const is = invN(s7);
|
|
235842
|
-
const u1 = modN(
|
|
237625
|
+
const u1 = modN(h7 * is);
|
|
235843
237626
|
const u22 = modN(r7 * is);
|
|
235844
237627
|
const R7 = Point.BASE.multiplyAndAddUnsafe(P5, u1, u22)?.toAffine();
|
|
235845
237628
|
if (!R7)
|
|
@@ -245657,14 +247440,14 @@ var {
|
|
|
245657
247440
|
Help
|
|
245658
247441
|
} = import__.default;
|
|
245659
247442
|
|
|
245660
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247443
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/key.js
|
|
245661
247444
|
var isUpKey = (key) => key.name === "up";
|
|
245662
247445
|
var isDownKey = (key) => key.name === "down";
|
|
245663
247446
|
var isBackspaceKey = (key) => key.name === "backspace";
|
|
245664
247447
|
var isTabKey = (key) => key.name === "tab";
|
|
245665
247448
|
var isNumberKey = (key) => "1234567890".includes(key.name);
|
|
245666
247449
|
var isEnterKey = (key) => key.name === "enter" || key.name === "return";
|
|
245667
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247450
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/errors.js
|
|
245668
247451
|
class AbortPromptError extends Error {
|
|
245669
247452
|
name = "AbortPromptError";
|
|
245670
247453
|
message = "Prompt was aborted";
|
|
@@ -245690,10 +247473,10 @@ class HookError extends Error {
|
|
|
245690
247473
|
class ValidationError extends Error {
|
|
245691
247474
|
name = "ValidationError";
|
|
245692
247475
|
}
|
|
245693
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247476
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
245694
247477
|
import { AsyncResource as AsyncResource2 } from "node:async_hooks";
|
|
245695
247478
|
|
|
245696
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247479
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/hook-engine.js
|
|
245697
247480
|
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
|
|
245698
247481
|
var hookStorage = new AsyncLocalStorage;
|
|
245699
247482
|
function createStore(rl) {
|
|
@@ -245798,7 +247581,7 @@ var effectScheduler = {
|
|
|
245798
247581
|
}
|
|
245799
247582
|
};
|
|
245800
247583
|
|
|
245801
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247584
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-state.js
|
|
245802
247585
|
function useState(defaultValue) {
|
|
245803
247586
|
return withPointer((pointer) => {
|
|
245804
247587
|
const setState = AsyncResource2.bind(function setState(newValue) {
|
|
@@ -245816,7 +247599,7 @@ function useState(defaultValue) {
|
|
|
245816
247599
|
});
|
|
245817
247600
|
}
|
|
245818
247601
|
|
|
245819
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247602
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-effect.js
|
|
245820
247603
|
function useEffect(cb, depArray) {
|
|
245821
247604
|
withPointer((pointer) => {
|
|
245822
247605
|
const oldDeps = pointer.get();
|
|
@@ -245828,7 +247611,7 @@ function useEffect(cb, depArray) {
|
|
|
245828
247611
|
});
|
|
245829
247612
|
}
|
|
245830
247613
|
|
|
245831
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247614
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
245832
247615
|
var import_yoctocolors_cjs = __toESM(require_yoctocolors_cjs(), 1);
|
|
245833
247616
|
|
|
245834
247617
|
// ../../node_modules/.bun/@inquirer+figures@1.0.13/node_modules/@inquirer/figures/dist/esm/index.js
|
|
@@ -246117,7 +247900,7 @@ var figures = shouldUseMain ? mainSymbols : fallbackSymbols;
|
|
|
246117
247900
|
var esm_default = figures;
|
|
246118
247901
|
var replacements = Object.entries(specialMainSymbols);
|
|
246119
247902
|
|
|
246120
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247903
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/theme.js
|
|
246121
247904
|
var defaultTheme = {
|
|
246122
247905
|
prefix: {
|
|
246123
247906
|
idle: import_yoctocolors_cjs.default.blue("?"),
|
|
@@ -246138,7 +247921,7 @@ var defaultTheme = {
|
|
|
246138
247921
|
}
|
|
246139
247922
|
};
|
|
246140
247923
|
|
|
246141
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247924
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/make-theme.js
|
|
246142
247925
|
function isPlainObject(value) {
|
|
246143
247926
|
if (typeof value !== "object" || value === null)
|
|
246144
247927
|
return false;
|
|
@@ -246166,7 +247949,7 @@ function makeTheme(...themes) {
|
|
|
246166
247949
|
return deepMerge(...themesToMerge);
|
|
246167
247950
|
}
|
|
246168
247951
|
|
|
246169
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247952
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-prefix.js
|
|
246170
247953
|
function usePrefix({ status = "idle", theme }) {
|
|
246171
247954
|
const [showLoader, setShowLoader] = useState(false);
|
|
246172
247955
|
const [tick, setTick] = useState(0);
|
|
@@ -246196,7 +247979,7 @@ function usePrefix({ status = "idle", theme }) {
|
|
|
246196
247979
|
const iconName = status === "loading" ? "idle" : status;
|
|
246197
247980
|
return typeof prefix === "string" ? prefix : prefix[iconName] ?? prefix["idle"];
|
|
246198
247981
|
}
|
|
246199
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247982
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-memo.js
|
|
246200
247983
|
function useMemo(fn, dependencies) {
|
|
246201
247984
|
return withPointer((pointer) => {
|
|
246202
247985
|
const prev = pointer.get();
|
|
@@ -246208,11 +247991,11 @@ function useMemo(fn, dependencies) {
|
|
|
246208
247991
|
return prev.value;
|
|
246209
247992
|
});
|
|
246210
247993
|
}
|
|
246211
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247994
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-ref.js
|
|
246212
247995
|
function useRef(val) {
|
|
246213
247996
|
return useState({ current: val })[0];
|
|
246214
247997
|
}
|
|
246215
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
247998
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/use-keypress.js
|
|
246216
247999
|
function useKeypress(userHandler) {
|
|
246217
248000
|
const signal = useRef(userHandler);
|
|
246218
248001
|
signal.current = userHandler;
|
|
@@ -246230,7 +248013,7 @@ function useKeypress(userHandler) {
|
|
|
246230
248013
|
};
|
|
246231
248014
|
}, []);
|
|
246232
248015
|
}
|
|
246233
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248016
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/utils.js
|
|
246234
248017
|
var import_cli_width = __toESM(require_cli_width(), 1);
|
|
246235
248018
|
var import_wrap_ansi = __toESM(require_wrap_ansi(), 1);
|
|
246236
248019
|
function breakLines(content, width) {
|
|
@@ -246243,7 +248026,7 @@ function readlineWidth() {
|
|
|
246243
248026
|
return import_cli_width.default({ defaultWidth: 80, output: readline().output });
|
|
246244
248027
|
}
|
|
246245
248028
|
|
|
246246
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248029
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/pagination/use-pagination.js
|
|
246247
248030
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
246248
248031
|
const state = useRef({
|
|
246249
248032
|
lastPointer: active,
|
|
@@ -246309,7 +248092,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
246309
248092
|
return pageBuffer.filter((line) => typeof line === "string").join(`
|
|
246310
248093
|
`);
|
|
246311
248094
|
}
|
|
246312
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248095
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
246313
248096
|
var import_mute_stream = __toESM(require_lib(), 1);
|
|
246314
248097
|
import * as readline2 from "node:readline";
|
|
246315
248098
|
import { AsyncResource as AsyncResource3 } from "node:async_hooks";
|
|
@@ -246522,7 +248305,7 @@ var {
|
|
|
246522
248305
|
unload
|
|
246523
248306
|
} = signalExitWrap(processOk(process3) ? new SignalExit(process3) : new SignalExitFallback);
|
|
246524
248307
|
|
|
246525
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248308
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
246526
248309
|
import { stripVTControlCharacters } from "node:util";
|
|
246527
248310
|
|
|
246528
248311
|
// ../../node_modules/.bun/@inquirer+ansi@1.0.0/node_modules/@inquirer/ansi/dist/esm/index.js
|
|
@@ -246541,7 +248324,7 @@ var cursorTo = (x, y) => {
|
|
|
246541
248324
|
var eraseLine = ESC + "2K";
|
|
246542
248325
|
var eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + eraseLine + cursorLeft : "";
|
|
246543
248326
|
|
|
246544
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248327
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/screen-manager.js
|
|
246545
248328
|
var height = (content) => content.split(`
|
|
246546
248329
|
`).length;
|
|
246547
248330
|
var lastLine = (content) => content.split(`
|
|
@@ -246606,7 +248389,7 @@ class ScreenManager {
|
|
|
246606
248389
|
}
|
|
246607
248390
|
}
|
|
246608
248391
|
|
|
246609
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248392
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/promise-polyfill.js
|
|
246610
248393
|
class PromisePolyfill extends Promise {
|
|
246611
248394
|
static withResolver() {
|
|
246612
248395
|
let resolve;
|
|
@@ -246619,7 +248402,7 @@ class PromisePolyfill extends Promise {
|
|
|
246619
248402
|
}
|
|
246620
248403
|
}
|
|
246621
248404
|
|
|
246622
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248405
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/create-prompt.js
|
|
246623
248406
|
function getCallSites() {
|
|
246624
248407
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
246625
248408
|
let result = [];
|
|
@@ -246705,7 +248488,7 @@ function createPrompt(view) {
|
|
|
246705
248488
|
};
|
|
246706
248489
|
return prompt;
|
|
246707
248490
|
}
|
|
246708
|
-
// ../../node_modules/.bun/@inquirer+core@10.2.2+
|
|
248491
|
+
// ../../node_modules/.bun/@inquirer+core@10.2.2+5561211e8fe04dc6/node_modules/@inquirer/core/dist/esm/lib/Separator.js
|
|
246709
248492
|
var import_yoctocolors_cjs2 = __toESM(require_yoctocolors_cjs(), 1);
|
|
246710
248493
|
class Separator {
|
|
246711
248494
|
separator = import_yoctocolors_cjs2.default.dim(Array.from({ length: 15 }).join(esm_default.line));
|
|
@@ -265918,7 +267701,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
265918
267701
|
var package_default = {
|
|
265919
267702
|
name: "@settlemint/sdk-cli",
|
|
265920
267703
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
265921
|
-
version: "2.6.2-
|
|
267704
|
+
version: "2.6.2-maine7172b4e",
|
|
265922
267705
|
type: "module",
|
|
265923
267706
|
private: false,
|
|
265924
267707
|
license: "FSL-1.1-MIT",
|
|
@@ -265972,17 +267755,17 @@ var package_default = {
|
|
|
265972
267755
|
"@inquirer/input": "4.2.4",
|
|
265973
267756
|
"@inquirer/password": "4.0.20",
|
|
265974
267757
|
"@inquirer/select": "4.3.4",
|
|
265975
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
|
265976
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
265977
|
-
"@settlemint/sdk-utils": "2.6.2-
|
|
265978
|
-
"@settlemint/sdk-viem": "2.6.2-
|
|
265979
|
-
"@types/node": "24.7.
|
|
267758
|
+
"@settlemint/sdk-hasura": "2.6.2-maine7172b4e",
|
|
267759
|
+
"@settlemint/sdk-js": "2.6.2-maine7172b4e",
|
|
267760
|
+
"@settlemint/sdk-utils": "2.6.2-maine7172b4e",
|
|
267761
|
+
"@settlemint/sdk-viem": "2.6.2-maine7172b4e",
|
|
267762
|
+
"@types/node": "24.7.1",
|
|
265980
267763
|
"@types/semver": "7.7.1",
|
|
265981
267764
|
"@types/which": "3.0.4",
|
|
265982
|
-
"get-tsconfig": "4.
|
|
267765
|
+
"get-tsconfig": "4.12.0",
|
|
265983
267766
|
giget: "2.0.0",
|
|
265984
267767
|
"is-in-ci": "2.0.0",
|
|
265985
|
-
semver: "7.7.
|
|
267768
|
+
semver: "7.7.3",
|
|
265986
267769
|
slugify: "1.6.6",
|
|
265987
267770
|
viem: "2.38.0",
|
|
265988
267771
|
which: "5.0.0",
|
|
@@ -265992,7 +267775,7 @@ var package_default = {
|
|
|
265992
267775
|
},
|
|
265993
267776
|
peerDependencies: {
|
|
265994
267777
|
hardhat: "<= 4",
|
|
265995
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267778
|
+
"@settlemint/sdk-js": "2.6.2-maine7172b4e"
|
|
265996
267779
|
},
|
|
265997
267780
|
peerDependenciesMeta: {
|
|
265998
267781
|
hardhat: {
|
|
@@ -270021,7 +271804,7 @@ async function setName(name2, path5) {
|
|
|
270021
271804
|
}
|
|
270022
271805
|
|
|
270023
271806
|
// src/utils/sdk-version.ts
|
|
270024
|
-
var semver = __toESM(
|
|
271807
|
+
var semver = __toESM(require_semver4(), 1);
|
|
270025
271808
|
|
|
270026
271809
|
// src/utils/config.ts
|
|
270027
271810
|
import { mkdir, readFile as readFile4, writeFile as writeFile2 } from "node:fs/promises";
|
|
@@ -270742,10 +272525,10 @@ ${schema}`;
|
|
|
270742
272525
|
// src/commands/codegen/codegen-tsconfig.ts
|
|
270743
272526
|
import { writeFile as writeFile6 } from "node:fs/promises";
|
|
270744
272527
|
|
|
270745
|
-
// ../../node_modules/.bun/get-tsconfig@4.
|
|
272528
|
+
// ../../node_modules/.bun/get-tsconfig@4.12.0/node_modules/get-tsconfig/dist/index.mjs
|
|
270746
272529
|
import m6 from "node:path";
|
|
270747
|
-
import
|
|
270748
|
-
import
|
|
272530
|
+
import le3 from "node:fs";
|
|
272531
|
+
import Fe2 from "node:module";
|
|
270749
272532
|
|
|
270750
272533
|
// ../../node_modules/.bun/resolve-pkg-maps@1.0.0/node_modules/resolve-pkg-maps/dist/index.mjs
|
|
270751
272534
|
var A4 = (r7) => r7 !== null && typeof r7 == "object";
|
|
@@ -270818,26 +272601,28 @@ var v5 = (r7, t9, e11) => {
|
|
|
270818
272601
|
return n7;
|
|
270819
272602
|
};
|
|
270820
272603
|
|
|
270821
|
-
// ../../node_modules/.bun/get-tsconfig@4.
|
|
270822
|
-
import
|
|
270823
|
-
|
|
270824
|
-
|
|
272604
|
+
// ../../node_modules/.bun/get-tsconfig@4.12.0/node_modules/get-tsconfig/dist/index.mjs
|
|
272605
|
+
import he3 from "fs";
|
|
272606
|
+
import Ee3 from "os";
|
|
272607
|
+
import Be2 from "path";
|
|
272608
|
+
var je2 = Object.defineProperty;
|
|
272609
|
+
var o7 = (e11, t9) => je2(e11, "name", { value: t9, configurable: true });
|
|
270825
272610
|
function E5(e11) {
|
|
270826
272611
|
return e11.startsWith("\\\\?\\") ? e11 : e11.replace(/\\/g, "/");
|
|
270827
272612
|
}
|
|
270828
272613
|
o7(E5, "slash");
|
|
270829
|
-
var
|
|
270830
|
-
const t9 =
|
|
272614
|
+
var z3 = o7((e11) => {
|
|
272615
|
+
const t9 = le3[e11];
|
|
270831
272616
|
return (s7, ...n7) => {
|
|
270832
272617
|
const l4 = `${e11}:${n7.join(":")}`;
|
|
270833
272618
|
let i7 = s7 == null ? undefined : s7.get(l4);
|
|
270834
|
-
return i7 === undefined && (i7 = Reflect.apply(t9,
|
|
272619
|
+
return i7 === undefined && (i7 = Reflect.apply(t9, le3, n7), s7 == null || s7.set(l4, i7)), i7;
|
|
270835
272620
|
};
|
|
270836
272621
|
}, "cacheFs");
|
|
270837
|
-
var B3 =
|
|
270838
|
-
var
|
|
270839
|
-
var P4 =
|
|
270840
|
-
var
|
|
272622
|
+
var B3 = z3("existsSync");
|
|
272623
|
+
var Le2 = z3("readFileSync");
|
|
272624
|
+
var P4 = z3("statSync");
|
|
272625
|
+
var ie3 = o7((e11, t9, s7) => {
|
|
270841
272626
|
for (;; ) {
|
|
270842
272627
|
const n7 = m6.posix.join(e11, t9);
|
|
270843
272628
|
if (B3(s7, n7))
|
|
@@ -270848,73 +272633,73 @@ var se3 = o7((e11, t9, s7) => {
|
|
|
270848
272633
|
e11 = l4;
|
|
270849
272634
|
}
|
|
270850
272635
|
}, "findUp");
|
|
270851
|
-
var
|
|
270852
|
-
var
|
|
272636
|
+
var G3 = /^\.{1,2}(\/.*)?$/;
|
|
272637
|
+
var Q3 = o7((e11) => {
|
|
270853
272638
|
const t9 = E5(e11);
|
|
270854
|
-
return
|
|
272639
|
+
return G3.test(t9) ? t9 : `./${t9}`;
|
|
270855
272640
|
}, "normalizeRelativePath");
|
|
270856
|
-
function
|
|
272641
|
+
function $e2(e11, t9 = false) {
|
|
270857
272642
|
const s7 = e11.length;
|
|
270858
|
-
let n7 = 0, l4 = "", i7 = 0,
|
|
270859
|
-
function _5(c3,
|
|
270860
|
-
let
|
|
270861
|
-
for (;
|
|
270862
|
-
let
|
|
270863
|
-
if (
|
|
270864
|
-
|
|
270865
|
-
else if (
|
|
270866
|
-
|
|
270867
|
-
else if (
|
|
270868
|
-
|
|
272643
|
+
let n7 = 0, l4 = "", i7 = 0, r7 = 16, f5 = 0, u6 = 0, g5 = 0, w5 = 0, b4 = 0;
|
|
272644
|
+
function _5(c3, y4) {
|
|
272645
|
+
let D3 = 0, T4 = 0;
|
|
272646
|
+
for (;D3 < c3; ) {
|
|
272647
|
+
let p5 = e11.charCodeAt(n7);
|
|
272648
|
+
if (p5 >= 48 && p5 <= 57)
|
|
272649
|
+
T4 = T4 * 16 + p5 - 48;
|
|
272650
|
+
else if (p5 >= 65 && p5 <= 70)
|
|
272651
|
+
T4 = T4 * 16 + p5 - 65 + 10;
|
|
272652
|
+
else if (p5 >= 97 && p5 <= 102)
|
|
272653
|
+
T4 = T4 * 16 + p5 - 97 + 10;
|
|
270869
272654
|
else
|
|
270870
272655
|
break;
|
|
270871
|
-
n7++,
|
|
272656
|
+
n7++, D3++;
|
|
270872
272657
|
}
|
|
270873
|
-
return
|
|
272658
|
+
return D3 < c3 && (T4 = -1), T4;
|
|
270874
272659
|
}
|
|
270875
272660
|
o7(_5, "scanHexDigits");
|
|
270876
272661
|
function d6(c3) {
|
|
270877
|
-
n7 = c3, l4 = "", i7 = 0,
|
|
272662
|
+
n7 = c3, l4 = "", i7 = 0, r7 = 16, b4 = 0;
|
|
270878
272663
|
}
|
|
270879
272664
|
o7(d6, "setPosition");
|
|
270880
|
-
function
|
|
272665
|
+
function j3() {
|
|
270881
272666
|
let c3 = n7;
|
|
270882
272667
|
if (e11.charCodeAt(n7) === 48)
|
|
270883
272668
|
n7++;
|
|
270884
272669
|
else
|
|
270885
|
-
for (n7++;n7 < e11.length &&
|
|
272670
|
+
for (n7++;n7 < e11.length && I6(e11.charCodeAt(n7)); )
|
|
270886
272671
|
n7++;
|
|
270887
272672
|
if (n7 < e11.length && e11.charCodeAt(n7) === 46)
|
|
270888
|
-
if (n7++, n7 < e11.length &&
|
|
270889
|
-
for (n7++;n7 < e11.length &&
|
|
272673
|
+
if (n7++, n7 < e11.length && I6(e11.charCodeAt(n7)))
|
|
272674
|
+
for (n7++;n7 < e11.length && I6(e11.charCodeAt(n7)); )
|
|
270890
272675
|
n7++;
|
|
270891
272676
|
else
|
|
270892
272677
|
return b4 = 3, e11.substring(c3, n7);
|
|
270893
|
-
let
|
|
272678
|
+
let y4 = n7;
|
|
270894
272679
|
if (n7 < e11.length && (e11.charCodeAt(n7) === 69 || e11.charCodeAt(n7) === 101))
|
|
270895
|
-
if (n7++, (n7 < e11.length && e11.charCodeAt(n7) === 43 || e11.charCodeAt(n7) === 45) && n7++, n7 < e11.length &&
|
|
270896
|
-
for (n7++;n7 < e11.length &&
|
|
272680
|
+
if (n7++, (n7 < e11.length && e11.charCodeAt(n7) === 43 || e11.charCodeAt(n7) === 45) && n7++, n7 < e11.length && I6(e11.charCodeAt(n7))) {
|
|
272681
|
+
for (n7++;n7 < e11.length && I6(e11.charCodeAt(n7)); )
|
|
270897
272682
|
n7++;
|
|
270898
|
-
|
|
272683
|
+
y4 = n7;
|
|
270899
272684
|
} else
|
|
270900
272685
|
b4 = 3;
|
|
270901
|
-
return e11.substring(c3,
|
|
272686
|
+
return e11.substring(c3, y4);
|
|
270902
272687
|
}
|
|
270903
|
-
o7(
|
|
270904
|
-
function
|
|
270905
|
-
let c3 = "",
|
|
272688
|
+
o7(j3, "scanNumber");
|
|
272689
|
+
function v6() {
|
|
272690
|
+
let c3 = "", y4 = n7;
|
|
270906
272691
|
for (;; ) {
|
|
270907
272692
|
if (n7 >= s7) {
|
|
270908
|
-
c3 += e11.substring(
|
|
272693
|
+
c3 += e11.substring(y4, n7), b4 = 2;
|
|
270909
272694
|
break;
|
|
270910
272695
|
}
|
|
270911
|
-
const
|
|
270912
|
-
if (
|
|
270913
|
-
c3 += e11.substring(
|
|
272696
|
+
const D3 = e11.charCodeAt(n7);
|
|
272697
|
+
if (D3 === 34) {
|
|
272698
|
+
c3 += e11.substring(y4, n7), n7++;
|
|
270914
272699
|
break;
|
|
270915
272700
|
}
|
|
270916
|
-
if (
|
|
270917
|
-
if (c3 += e11.substring(
|
|
272701
|
+
if (D3 === 92) {
|
|
272702
|
+
if (c3 += e11.substring(y4, n7), n7++, n7 >= s7) {
|
|
270918
272703
|
b4 = 2;
|
|
270919
272704
|
break;
|
|
270920
272705
|
}
|
|
@@ -270945,18 +272730,18 @@ function je2(e11, t9 = false) {
|
|
|
270945
272730
|
c3 += "\t";
|
|
270946
272731
|
break;
|
|
270947
272732
|
case 117:
|
|
270948
|
-
const
|
|
270949
|
-
|
|
272733
|
+
const p5 = _5(4);
|
|
272734
|
+
p5 >= 0 ? c3 += String.fromCharCode(p5) : b4 = 4;
|
|
270950
272735
|
break;
|
|
270951
272736
|
default:
|
|
270952
272737
|
b4 = 5;
|
|
270953
272738
|
}
|
|
270954
|
-
|
|
272739
|
+
y4 = n7;
|
|
270955
272740
|
continue;
|
|
270956
272741
|
}
|
|
270957
|
-
if (
|
|
270958
|
-
if (x5(
|
|
270959
|
-
c3 += e11.substring(
|
|
272742
|
+
if (D3 >= 0 && D3 <= 31)
|
|
272743
|
+
if (x5(D3)) {
|
|
272744
|
+
c3 += e11.substring(y4, n7), b4 = 2;
|
|
270960
272745
|
break;
|
|
270961
272746
|
} else
|
|
270962
272747
|
b4 = 6;
|
|
@@ -270964,60 +272749,60 @@ function je2(e11, t9 = false) {
|
|
|
270964
272749
|
}
|
|
270965
272750
|
return c3;
|
|
270966
272751
|
}
|
|
270967
|
-
o7(
|
|
270968
|
-
function
|
|
270969
|
-
if (l4 = "", b4 = 0, i7 = n7,
|
|
270970
|
-
return i7 = s7,
|
|
272752
|
+
o7(v6, "scanString");
|
|
272753
|
+
function A5() {
|
|
272754
|
+
if (l4 = "", b4 = 0, i7 = n7, u6 = f5, w5 = g5, n7 >= s7)
|
|
272755
|
+
return i7 = s7, r7 = 17;
|
|
270971
272756
|
let c3 = e11.charCodeAt(n7);
|
|
270972
|
-
if (
|
|
272757
|
+
if (H3(c3)) {
|
|
270973
272758
|
do
|
|
270974
272759
|
n7++, l4 += String.fromCharCode(c3), c3 = e11.charCodeAt(n7);
|
|
270975
|
-
while (
|
|
270976
|
-
return
|
|
272760
|
+
while (H3(c3));
|
|
272761
|
+
return r7 = 15;
|
|
270977
272762
|
}
|
|
270978
272763
|
if (x5(c3))
|
|
270979
272764
|
return n7++, l4 += String.fromCharCode(c3), c3 === 13 && e11.charCodeAt(n7) === 10 && (n7++, l4 += `
|
|
270980
|
-
`), f5++, g5 = n7,
|
|
272765
|
+
`), f5++, g5 = n7, r7 = 14;
|
|
270981
272766
|
switch (c3) {
|
|
270982
272767
|
case 123:
|
|
270983
|
-
return n7++,
|
|
272768
|
+
return n7++, r7 = 1;
|
|
270984
272769
|
case 125:
|
|
270985
|
-
return n7++,
|
|
272770
|
+
return n7++, r7 = 2;
|
|
270986
272771
|
case 91:
|
|
270987
|
-
return n7++,
|
|
272772
|
+
return n7++, r7 = 3;
|
|
270988
272773
|
case 93:
|
|
270989
|
-
return n7++,
|
|
272774
|
+
return n7++, r7 = 4;
|
|
270990
272775
|
case 58:
|
|
270991
|
-
return n7++,
|
|
272776
|
+
return n7++, r7 = 6;
|
|
270992
272777
|
case 44:
|
|
270993
|
-
return n7++,
|
|
272778
|
+
return n7++, r7 = 5;
|
|
270994
272779
|
case 34:
|
|
270995
|
-
return n7++, l4 =
|
|
272780
|
+
return n7++, l4 = v6(), r7 = 10;
|
|
270996
272781
|
case 47:
|
|
270997
|
-
const
|
|
272782
|
+
const y4 = n7 - 1;
|
|
270998
272783
|
if (e11.charCodeAt(n7 + 1) === 47) {
|
|
270999
272784
|
for (n7 += 2;n7 < s7 && !x5(e11.charCodeAt(n7)); )
|
|
271000
272785
|
n7++;
|
|
271001
|
-
return l4 = e11.substring(
|
|
272786
|
+
return l4 = e11.substring(y4, n7), r7 = 12;
|
|
271002
272787
|
}
|
|
271003
272788
|
if (e11.charCodeAt(n7 + 1) === 42) {
|
|
271004
272789
|
n7 += 2;
|
|
271005
|
-
const
|
|
271006
|
-
let
|
|
271007
|
-
for (;n7 <
|
|
271008
|
-
const
|
|
271009
|
-
if (
|
|
271010
|
-
n7 += 2,
|
|
272790
|
+
const D3 = s7 - 1;
|
|
272791
|
+
let T4 = false;
|
|
272792
|
+
for (;n7 < D3; ) {
|
|
272793
|
+
const p5 = e11.charCodeAt(n7);
|
|
272794
|
+
if (p5 === 42 && e11.charCodeAt(n7 + 1) === 47) {
|
|
272795
|
+
n7 += 2, T4 = true;
|
|
271011
272796
|
break;
|
|
271012
272797
|
}
|
|
271013
|
-
n7++, x5(
|
|
272798
|
+
n7++, x5(p5) && (p5 === 13 && e11.charCodeAt(n7) === 10 && n7++, f5++, g5 = n7);
|
|
271014
272799
|
}
|
|
271015
|
-
return
|
|
272800
|
+
return T4 || (n7++, b4 = 1), l4 = e11.substring(y4, n7), r7 = 13;
|
|
271016
272801
|
}
|
|
271017
|
-
return l4 += String.fromCharCode(c3), n7++,
|
|
272802
|
+
return l4 += String.fromCharCode(c3), n7++, r7 = 16;
|
|
271018
272803
|
case 45:
|
|
271019
|
-
if (l4 += String.fromCharCode(c3), n7++, n7 === s7 || !
|
|
271020
|
-
return
|
|
272804
|
+
if (l4 += String.fromCharCode(c3), n7++, n7 === s7 || !I6(e11.charCodeAt(n7)))
|
|
272805
|
+
return r7 = 16;
|
|
271021
272806
|
case 48:
|
|
271022
272807
|
case 49:
|
|
271023
272808
|
case 50:
|
|
@@ -271028,27 +272813,27 @@ function je2(e11, t9 = false) {
|
|
|
271028
272813
|
case 55:
|
|
271029
272814
|
case 56:
|
|
271030
272815
|
case 57:
|
|
271031
|
-
return l4 +=
|
|
272816
|
+
return l4 += j3(), r7 = 11;
|
|
271032
272817
|
default:
|
|
271033
|
-
for (;n7 < s7 &&
|
|
272818
|
+
for (;n7 < s7 && h7(c3); )
|
|
271034
272819
|
n7++, c3 = e11.charCodeAt(n7);
|
|
271035
272820
|
if (i7 !== n7) {
|
|
271036
272821
|
switch (l4 = e11.substring(i7, n7), l4) {
|
|
271037
272822
|
case "true":
|
|
271038
|
-
return
|
|
272823
|
+
return r7 = 8;
|
|
271039
272824
|
case "false":
|
|
271040
|
-
return
|
|
272825
|
+
return r7 = 9;
|
|
271041
272826
|
case "null":
|
|
271042
|
-
return
|
|
272827
|
+
return r7 = 7;
|
|
271043
272828
|
}
|
|
271044
|
-
return
|
|
272829
|
+
return r7 = 16;
|
|
271045
272830
|
}
|
|
271046
|
-
return l4 += String.fromCharCode(c3), n7++,
|
|
272831
|
+
return l4 += String.fromCharCode(c3), n7++, r7 = 16;
|
|
271047
272832
|
}
|
|
271048
272833
|
}
|
|
271049
|
-
o7(
|
|
271050
|
-
function
|
|
271051
|
-
if (
|
|
272834
|
+
o7(A5, "scanNext");
|
|
272835
|
+
function h7(c3) {
|
|
272836
|
+
if (H3(c3) || x5(c3))
|
|
271052
272837
|
return false;
|
|
271053
272838
|
switch (c3) {
|
|
271054
272839
|
case 125:
|
|
@@ -271063,88 +272848,97 @@ function je2(e11, t9 = false) {
|
|
|
271063
272848
|
}
|
|
271064
272849
|
return true;
|
|
271065
272850
|
}
|
|
271066
|
-
o7(
|
|
272851
|
+
o7(h7, "isUnknownContentCharacter");
|
|
271067
272852
|
function L5() {
|
|
271068
272853
|
let c3;
|
|
271069
272854
|
do
|
|
271070
|
-
c3 =
|
|
272855
|
+
c3 = A5();
|
|
271071
272856
|
while (c3 >= 12 && c3 <= 15);
|
|
271072
272857
|
return c3;
|
|
271073
272858
|
}
|
|
271074
|
-
return o7(L5, "scanNextNonTrivia"), { setPosition: d6, getPosition: o7(() => n7, "getPosition"), scan: t9 ? L5 :
|
|
272859
|
+
return o7(L5, "scanNextNonTrivia"), { setPosition: d6, getPosition: o7(() => n7, "getPosition"), scan: t9 ? L5 : A5, getToken: o7(() => r7, "getToken"), getTokenValue: o7(() => l4, "getTokenValue"), getTokenOffset: o7(() => i7, "getTokenOffset"), getTokenLength: o7(() => n7 - i7, "getTokenLength"), getTokenStartLine: o7(() => u6, "getTokenStartLine"), getTokenStartCharacter: o7(() => i7 - w5, "getTokenStartCharacter"), getTokenError: o7(() => b4, "getTokenError") };
|
|
271075
272860
|
}
|
|
271076
|
-
o7(
|
|
271077
|
-
function
|
|
272861
|
+
o7($e2, "createScanner");
|
|
272862
|
+
function H3(e11) {
|
|
271078
272863
|
return e11 === 32 || e11 === 9;
|
|
271079
272864
|
}
|
|
271080
|
-
o7(
|
|
272865
|
+
o7(H3, "isWhiteSpace");
|
|
271081
272866
|
function x5(e11) {
|
|
271082
272867
|
return e11 === 10 || e11 === 13;
|
|
271083
272868
|
}
|
|
271084
272869
|
o7(x5, "isLineBreak");
|
|
271085
|
-
function
|
|
272870
|
+
function I6(e11) {
|
|
271086
272871
|
return e11 >= 48 && e11 <= 57;
|
|
271087
272872
|
}
|
|
271088
|
-
o7(
|
|
271089
|
-
var
|
|
272873
|
+
o7(I6, "isDigit");
|
|
272874
|
+
var oe3;
|
|
271090
272875
|
(function(e11) {
|
|
271091
272876
|
e11[e11.lineFeed = 10] = "lineFeed", e11[e11.carriageReturn = 13] = "carriageReturn", e11[e11.space = 32] = "space", e11[e11._0 = 48] = "_0", e11[e11._1 = 49] = "_1", e11[e11._2 = 50] = "_2", e11[e11._3 = 51] = "_3", e11[e11._4 = 52] = "_4", e11[e11._5 = 53] = "_5", e11[e11._6 = 54] = "_6", e11[e11._7 = 55] = "_7", e11[e11._8 = 56] = "_8", e11[e11._9 = 57] = "_9", e11[e11.a = 97] = "a", e11[e11.b = 98] = "b", e11[e11.c = 99] = "c", e11[e11.d = 100] = "d", e11[e11.e = 101] = "e", e11[e11.f = 102] = "f", e11[e11.g = 103] = "g", e11[e11.h = 104] = "h", e11[e11.i = 105] = "i", e11[e11.j = 106] = "j", e11[e11.k = 107] = "k", e11[e11.l = 108] = "l", e11[e11.m = 109] = "m", e11[e11.n = 110] = "n", e11[e11.o = 111] = "o", e11[e11.p = 112] = "p", e11[e11.q = 113] = "q", e11[e11.r = 114] = "r", e11[e11.s = 115] = "s", e11[e11.t = 116] = "t", e11[e11.u = 117] = "u", e11[e11.v = 118] = "v", e11[e11.w = 119] = "w", e11[e11.x = 120] = "x", e11[e11.y = 121] = "y", e11[e11.z = 122] = "z", e11[e11.A = 65] = "A", e11[e11.B = 66] = "B", e11[e11.C = 67] = "C", e11[e11.D = 68] = "D", e11[e11.E = 69] = "E", e11[e11.F = 70] = "F", e11[e11.G = 71] = "G", e11[e11.H = 72] = "H", e11[e11.I = 73] = "I", e11[e11.J = 74] = "J", e11[e11.K = 75] = "K", e11[e11.L = 76] = "L", e11[e11.M = 77] = "M", e11[e11.N = 78] = "N", e11[e11.O = 79] = "O", e11[e11.P = 80] = "P", e11[e11.Q = 81] = "Q", e11[e11.R = 82] = "R", e11[e11.S = 83] = "S", e11[e11.T = 84] = "T", e11[e11.U = 85] = "U", e11[e11.V = 86] = "V", e11[e11.W = 87] = "W", e11[e11.X = 88] = "X", e11[e11.Y = 89] = "Y", e11[e11.Z = 90] = "Z", e11[e11.asterisk = 42] = "asterisk", e11[e11.backslash = 92] = "backslash", e11[e11.closeBrace = 125] = "closeBrace", e11[e11.closeBracket = 93] = "closeBracket", e11[e11.colon = 58] = "colon", e11[e11.comma = 44] = "comma", e11[e11.dot = 46] = "dot", e11[e11.doubleQuote = 34] = "doubleQuote", e11[e11.minus = 45] = "minus", e11[e11.openBrace = 123] = "openBrace", e11[e11.openBracket = 91] = "openBracket", e11[e11.plus = 43] = "plus", e11[e11.slash = 47] = "slash", e11[e11.formFeed = 12] = "formFeed", e11[e11.tab = 9] = "tab";
|
|
271092
|
-
})(
|
|
271093
|
-
var
|
|
271094
|
-
new Array(
|
|
271095
|
-
` + " ".repeat(t9)), new Array(
|
|
271096
|
-
` + " ".repeat(t9)), new Array(
|
|
271097
|
-
` + "\t".repeat(t9)), new Array(
|
|
272877
|
+
})(oe3 || (oe3 = {})), new Array(20).fill(0).map((e11, t9) => " ".repeat(t9));
|
|
272878
|
+
var U5 = 200;
|
|
272879
|
+
new Array(U5).fill(0).map((e11, t9) => `
|
|
272880
|
+
` + " ".repeat(t9)), new Array(U5).fill(0).map((e11, t9) => "\r" + " ".repeat(t9)), new Array(U5).fill(0).map((e11, t9) => `\r
|
|
272881
|
+
` + " ".repeat(t9)), new Array(U5).fill(0).map((e11, t9) => `
|
|
272882
|
+
` + "\t".repeat(t9)), new Array(U5).fill(0).map((e11, t9) => "\r" + "\t".repeat(t9)), new Array(U5).fill(0).map((e11, t9) => `\r
|
|
271098
272883
|
` + "\t".repeat(t9));
|
|
271099
272884
|
var R6;
|
|
271100
272885
|
(function(e11) {
|
|
271101
272886
|
e11.DEFAULT = { allowTrailingComma: false };
|
|
271102
272887
|
})(R6 || (R6 = {}));
|
|
271103
|
-
function
|
|
272888
|
+
function Ie2(e11, t9 = [], s7 = R6.DEFAULT) {
|
|
271104
272889
|
let n7 = null, l4 = [];
|
|
271105
272890
|
const i7 = [];
|
|
271106
|
-
function u6
|
|
271107
|
-
Array.isArray(l4) ? l4.push(
|
|
271108
|
-
}
|
|
271109
|
-
return o7(
|
|
271110
|
-
const
|
|
271111
|
-
u6
|
|
271112
|
-
}, "onObjectBegin"), onObjectProperty: o7((
|
|
271113
|
-
n7 =
|
|
272891
|
+
function r7(u6) {
|
|
272892
|
+
Array.isArray(l4) ? l4.push(u6) : n7 !== null && (l4[n7] = u6);
|
|
272893
|
+
}
|
|
272894
|
+
return o7(r7, "onValue"), Ue2(e11, { onObjectBegin: o7(() => {
|
|
272895
|
+
const u6 = {};
|
|
272896
|
+
r7(u6), i7.push(l4), l4 = u6, n7 = null;
|
|
272897
|
+
}, "onObjectBegin"), onObjectProperty: o7((u6) => {
|
|
272898
|
+
n7 = u6;
|
|
271114
272899
|
}, "onObjectProperty"), onObjectEnd: o7(() => {
|
|
271115
272900
|
l4 = i7.pop();
|
|
271116
272901
|
}, "onObjectEnd"), onArrayBegin: o7(() => {
|
|
271117
|
-
const
|
|
271118
|
-
u6
|
|
272902
|
+
const u6 = [];
|
|
272903
|
+
r7(u6), i7.push(l4), l4 = u6, n7 = null;
|
|
271119
272904
|
}, "onArrayBegin"), onArrayEnd: o7(() => {
|
|
271120
272905
|
l4 = i7.pop();
|
|
271121
|
-
}, "onArrayEnd"), onLiteralValue:
|
|
271122
|
-
t9.push({ error:
|
|
272906
|
+
}, "onArrayEnd"), onLiteralValue: r7, onError: o7((u6, g5, w5) => {
|
|
272907
|
+
t9.push({ error: u6, offset: g5, length: w5 });
|
|
271123
272908
|
}, "onError") }, s7), l4[0];
|
|
271124
272909
|
}
|
|
271125
|
-
o7(
|
|
271126
|
-
function
|
|
271127
|
-
const n7 =
|
|
271128
|
-
|
|
271129
|
-
|
|
271130
|
-
|
|
271131
|
-
o7(i7, "toNoArgVisit");
|
|
271132
|
-
function u6(v6) {
|
|
271133
|
-
return v6 ? () => v6(n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter(), () => l4.slice()) : () => true;
|
|
272910
|
+
o7(Ie2, "parse$1");
|
|
272911
|
+
function Ue2(e11, t9, s7 = R6.DEFAULT) {
|
|
272912
|
+
const n7 = $e2(e11, false), l4 = [];
|
|
272913
|
+
let i7 = 0;
|
|
272914
|
+
function r7(k5) {
|
|
272915
|
+
return k5 ? () => i7 === 0 && k5(n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter()) : () => true;
|
|
271134
272916
|
}
|
|
271135
|
-
o7(
|
|
271136
|
-
function f5(
|
|
271137
|
-
return
|
|
272917
|
+
o7(r7, "toNoArgVisit");
|
|
272918
|
+
function f5(k5) {
|
|
272919
|
+
return k5 ? (F3) => i7 === 0 && k5(F3, n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter()) : () => true;
|
|
271138
272920
|
}
|
|
271139
272921
|
o7(f5, "toOneArgVisit");
|
|
271140
|
-
function
|
|
271141
|
-
return
|
|
271142
|
-
}
|
|
271143
|
-
o7(
|
|
271144
|
-
|
|
271145
|
-
|
|
272922
|
+
function u6(k5) {
|
|
272923
|
+
return k5 ? (F3) => i7 === 0 && k5(F3, n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter(), () => l4.slice()) : () => true;
|
|
272924
|
+
}
|
|
272925
|
+
o7(u6, "toOneArgVisitWithPath");
|
|
272926
|
+
function g5(k5) {
|
|
272927
|
+
return k5 ? () => {
|
|
272928
|
+
i7 > 0 ? i7++ : k5(n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter(), () => l4.slice()) === false && (i7 = 1);
|
|
272929
|
+
} : () => true;
|
|
272930
|
+
}
|
|
272931
|
+
o7(g5, "toBeginVisit");
|
|
272932
|
+
function w5(k5) {
|
|
272933
|
+
return k5 ? () => {
|
|
272934
|
+
i7 > 0 && i7--, i7 === 0 && k5(n7.getTokenOffset(), n7.getTokenLength(), n7.getTokenStartLine(), n7.getTokenStartCharacter());
|
|
272935
|
+
} : () => true;
|
|
272936
|
+
}
|
|
272937
|
+
o7(w5, "toEndVisit");
|
|
272938
|
+
const b4 = g5(t9.onObjectBegin), _5 = u6(t9.onObjectProperty), d6 = w5(t9.onObjectEnd), j3 = g5(t9.onArrayBegin), v6 = w5(t9.onArrayEnd), A5 = u6(t9.onLiteralValue), h7 = f5(t9.onSeparator), L5 = r7(t9.onComment), c3 = f5(t9.onError), y4 = s7 && s7.disallowComments, D3 = s7 && s7.allowTrailingComma;
|
|
272939
|
+
function T4() {
|
|
271146
272940
|
for (;; ) {
|
|
271147
|
-
const
|
|
272941
|
+
const k5 = n7.scan();
|
|
271148
272942
|
switch (n7.getTokenError()) {
|
|
271149
272943
|
case 4:
|
|
271150
272944
|
p5(14);
|
|
@@ -271156,7 +272950,7 @@ function Fe2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
271156
272950
|
p5(13);
|
|
271157
272951
|
break;
|
|
271158
272952
|
case 1:
|
|
271159
|
-
|
|
272953
|
+
y4 || p5(11);
|
|
271160
272954
|
break;
|
|
271161
272955
|
case 2:
|
|
271162
272956
|
p5(12);
|
|
@@ -271165,10 +272959,10 @@ function Fe2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
271165
272959
|
p5(16);
|
|
271166
272960
|
break;
|
|
271167
272961
|
}
|
|
271168
|
-
switch (
|
|
272962
|
+
switch (k5) {
|
|
271169
272963
|
case 12:
|
|
271170
272964
|
case 13:
|
|
271171
|
-
|
|
272965
|
+
y4 ? p5(10) : L5();
|
|
271172
272966
|
break;
|
|
271173
272967
|
case 16:
|
|
271174
272968
|
p5(1);
|
|
@@ -271177,36 +272971,36 @@ function Fe2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
271177
272971
|
case 14:
|
|
271178
272972
|
break;
|
|
271179
272973
|
default:
|
|
271180
|
-
return
|
|
272974
|
+
return k5;
|
|
271181
272975
|
}
|
|
271182
272976
|
}
|
|
271183
272977
|
}
|
|
271184
|
-
o7(
|
|
271185
|
-
function p5(
|
|
271186
|
-
if (
|
|
271187
|
-
let
|
|
271188
|
-
for (;
|
|
271189
|
-
if (
|
|
271190
|
-
|
|
272978
|
+
o7(T4, "scanNext");
|
|
272979
|
+
function p5(k5, F3 = [], se3 = []) {
|
|
272980
|
+
if (c3(k5), F3.length + se3.length > 0) {
|
|
272981
|
+
let N6 = n7.getToken();
|
|
272982
|
+
for (;N6 !== 17; ) {
|
|
272983
|
+
if (F3.indexOf(N6) !== -1) {
|
|
272984
|
+
T4();
|
|
271191
272985
|
break;
|
|
271192
|
-
} else if (
|
|
272986
|
+
} else if (se3.indexOf(N6) !== -1)
|
|
271193
272987
|
break;
|
|
271194
|
-
|
|
272988
|
+
N6 = T4();
|
|
271195
272989
|
}
|
|
271196
272990
|
}
|
|
271197
272991
|
}
|
|
271198
272992
|
o7(p5, "handleError");
|
|
271199
|
-
function
|
|
271200
|
-
const
|
|
271201
|
-
return
|
|
272993
|
+
function a8(k5) {
|
|
272994
|
+
const F3 = n7.getTokenValue();
|
|
272995
|
+
return k5 ? A5(F3) : (_5(F3), l4.push(F3)), T4(), true;
|
|
271202
272996
|
}
|
|
271203
|
-
o7(
|
|
271204
|
-
function
|
|
272997
|
+
o7(a8, "parseString");
|
|
272998
|
+
function S4() {
|
|
271205
272999
|
switch (n7.getToken()) {
|
|
271206
273000
|
case 11:
|
|
271207
|
-
const
|
|
271208
|
-
let
|
|
271209
|
-
isNaN(
|
|
273001
|
+
const k5 = n7.getTokenValue();
|
|
273002
|
+
let F3 = Number(k5);
|
|
273003
|
+
isNaN(F3) && (p5(2), F3 = 0), A5(F3);
|
|
271210
273004
|
break;
|
|
271211
273005
|
case 7:
|
|
271212
273006
|
A5(null);
|
|
@@ -271220,100 +273014,100 @@ function Fe2(e11, t9, s7 = R6.DEFAULT) {
|
|
|
271220
273014
|
default:
|
|
271221
273015
|
return false;
|
|
271222
273016
|
}
|
|
271223
|
-
return
|
|
273017
|
+
return T4(), true;
|
|
271224
273018
|
}
|
|
271225
|
-
o7(
|
|
271226
|
-
function
|
|
271227
|
-
return n7.getToken() !== 10 ? (p5(3, [], [2, 5]), false) : (
|
|
273019
|
+
o7(S4, "parseLiteral");
|
|
273020
|
+
function Ae2() {
|
|
273021
|
+
return n7.getToken() !== 10 ? (p5(3, [], [2, 5]), false) : (a8(false), n7.getToken() === 6 ? (h7(":"), T4(), O5() || p5(4, [], [2, 5])) : p5(5, [], [2, 5]), l4.pop(), true);
|
|
271228
273022
|
}
|
|
271229
|
-
o7(
|
|
271230
|
-
function
|
|
271231
|
-
|
|
271232
|
-
let
|
|
273023
|
+
o7(Ae2, "parseProperty");
|
|
273024
|
+
function ye2() {
|
|
273025
|
+
b4(), T4();
|
|
273026
|
+
let k5 = false;
|
|
271233
273027
|
for (;n7.getToken() !== 2 && n7.getToken() !== 17; ) {
|
|
271234
273028
|
if (n7.getToken() === 5) {
|
|
271235
|
-
if (
|
|
273029
|
+
if (k5 || p5(4, [], []), h7(","), T4(), n7.getToken() === 2 && D3)
|
|
271236
273030
|
break;
|
|
271237
273031
|
} else
|
|
271238
|
-
|
|
271239
|
-
|
|
273032
|
+
k5 && p5(6, [], []);
|
|
273033
|
+
Ae2() || p5(4, [], [2, 5]), k5 = true;
|
|
271240
273034
|
}
|
|
271241
|
-
return
|
|
273035
|
+
return d6(), n7.getToken() !== 2 ? p5(7, [2], []) : T4(), true;
|
|
271242
273036
|
}
|
|
271243
|
-
o7(
|
|
271244
|
-
function
|
|
271245
|
-
|
|
271246
|
-
let
|
|
273037
|
+
o7(ye2, "parseObject");
|
|
273038
|
+
function _e2() {
|
|
273039
|
+
j3(), T4();
|
|
273040
|
+
let k5 = true, F3 = false;
|
|
271247
273041
|
for (;n7.getToken() !== 4 && n7.getToken() !== 17; ) {
|
|
271248
273042
|
if (n7.getToken() === 5) {
|
|
271249
|
-
if (
|
|
273043
|
+
if (F3 || p5(4, [], []), h7(","), T4(), n7.getToken() === 4 && D3)
|
|
271250
273044
|
break;
|
|
271251
273045
|
} else
|
|
271252
|
-
|
|
271253
|
-
|
|
273046
|
+
F3 && p5(6, [], []);
|
|
273047
|
+
k5 ? (l4.push(0), k5 = false) : l4[l4.length - 1]++, O5() || p5(4, [], [4, 5]), F3 = true;
|
|
271254
273048
|
}
|
|
271255
|
-
return
|
|
273049
|
+
return v6(), k5 || l4.pop(), n7.getToken() !== 4 ? p5(8, [4], []) : T4(), true;
|
|
271256
273050
|
}
|
|
271257
|
-
o7(
|
|
271258
|
-
function
|
|
273051
|
+
o7(_e2, "parseArray");
|
|
273052
|
+
function O5() {
|
|
271259
273053
|
switch (n7.getToken()) {
|
|
271260
273054
|
case 3:
|
|
271261
|
-
return
|
|
273055
|
+
return _e2();
|
|
271262
273056
|
case 1:
|
|
271263
|
-
return
|
|
273057
|
+
return ye2();
|
|
271264
273058
|
case 10:
|
|
271265
|
-
return
|
|
273059
|
+
return a8(true);
|
|
271266
273060
|
default:
|
|
271267
|
-
return
|
|
273061
|
+
return S4();
|
|
271268
273062
|
}
|
|
271269
273063
|
}
|
|
271270
|
-
return o7(
|
|
273064
|
+
return o7(O5, "parseValue"), T4(), n7.getToken() === 17 ? s7.allowEmptyContent ? true : (p5(4, [], []), false) : O5() ? (n7.getToken() !== 17 && p5(9, [], []), true) : (p5(4, [], []), false);
|
|
271271
273065
|
}
|
|
271272
|
-
o7(
|
|
271273
|
-
var
|
|
273066
|
+
o7(Ue2, "visit");
|
|
273067
|
+
var re3;
|
|
271274
273068
|
(function(e11) {
|
|
271275
273069
|
e11[e11.None = 0] = "None", e11[e11.UnexpectedEndOfComment = 1] = "UnexpectedEndOfComment", e11[e11.UnexpectedEndOfString = 2] = "UnexpectedEndOfString", e11[e11.UnexpectedEndOfNumber = 3] = "UnexpectedEndOfNumber", e11[e11.InvalidUnicode = 4] = "InvalidUnicode", e11[e11.InvalidEscapeCharacter = 5] = "InvalidEscapeCharacter", e11[e11.InvalidCharacter = 6] = "InvalidCharacter";
|
|
271276
|
-
})(
|
|
271277
|
-
var
|
|
273070
|
+
})(re3 || (re3 = {}));
|
|
273071
|
+
var ue3;
|
|
271278
273072
|
(function(e11) {
|
|
271279
273073
|
e11[e11.OpenBraceToken = 1] = "OpenBraceToken", e11[e11.CloseBraceToken = 2] = "CloseBraceToken", e11[e11.OpenBracketToken = 3] = "OpenBracketToken", e11[e11.CloseBracketToken = 4] = "CloseBracketToken", e11[e11.CommaToken = 5] = "CommaToken", e11[e11.ColonToken = 6] = "ColonToken", e11[e11.NullKeyword = 7] = "NullKeyword", e11[e11.TrueKeyword = 8] = "TrueKeyword", e11[e11.FalseKeyword = 9] = "FalseKeyword", e11[e11.StringLiteral = 10] = "StringLiteral", e11[e11.NumericLiteral = 11] = "NumericLiteral", e11[e11.LineCommentTrivia = 12] = "LineCommentTrivia", e11[e11.BlockCommentTrivia = 13] = "BlockCommentTrivia", e11[e11.LineBreakTrivia = 14] = "LineBreakTrivia", e11[e11.Trivia = 15] = "Trivia", e11[e11.Unknown = 16] = "Unknown", e11[e11.EOF = 17] = "EOF";
|
|
271280
|
-
})(
|
|
271281
|
-
var
|
|
271282
|
-
var
|
|
273074
|
+
})(ue3 || (ue3 = {}));
|
|
273075
|
+
var xe3 = Ie2;
|
|
273076
|
+
var fe4;
|
|
271283
273077
|
(function(e11) {
|
|
271284
273078
|
e11[e11.InvalidSymbol = 1] = "InvalidSymbol", e11[e11.InvalidNumberFormat = 2] = "InvalidNumberFormat", e11[e11.PropertyNameExpected = 3] = "PropertyNameExpected", e11[e11.ValueExpected = 4] = "ValueExpected", e11[e11.ColonExpected = 5] = "ColonExpected", e11[e11.CommaExpected = 6] = "CommaExpected", e11[e11.CloseBraceExpected = 7] = "CloseBraceExpected", e11[e11.CloseBracketExpected = 8] = "CloseBracketExpected", e11[e11.EndOfFileExpected = 9] = "EndOfFileExpected", e11[e11.InvalidCommentToken = 10] = "InvalidCommentToken", e11[e11.UnexpectedEndOfComment = 11] = "UnexpectedEndOfComment", e11[e11.UnexpectedEndOfString = 12] = "UnexpectedEndOfString", e11[e11.UnexpectedEndOfNumber = 13] = "UnexpectedEndOfNumber", e11[e11.InvalidUnicode = 14] = "InvalidUnicode", e11[e11.InvalidEscapeCharacter = 15] = "InvalidEscapeCharacter", e11[e11.InvalidCharacter = 16] = "InvalidCharacter";
|
|
271285
|
-
})(
|
|
271286
|
-
var
|
|
271287
|
-
var
|
|
273079
|
+
})(fe4 || (fe4 = {}));
|
|
273080
|
+
var ce3 = o7((e11, t9) => xe3(Le2(t9, e11, "utf8")), "readJsonc");
|
|
273081
|
+
var X4 = Symbol("implicitBaseUrl");
|
|
271288
273082
|
var $4 = "${configDir}";
|
|
271289
|
-
var
|
|
271290
|
-
const { findPnpApi: e11 } =
|
|
273083
|
+
var Se2 = o7(() => {
|
|
273084
|
+
const { findPnpApi: e11 } = Fe2;
|
|
271291
273085
|
return e11 && e11(process.cwd());
|
|
271292
273086
|
}, "getPnpApi");
|
|
271293
|
-
var
|
|
273087
|
+
var Y3 = o7((e11, t9, s7, n7) => {
|
|
271294
273088
|
const l4 = `resolveFromPackageJsonPath:${e11}:${t9}:${s7}`;
|
|
271295
273089
|
if (n7 != null && n7.has(l4))
|
|
271296
273090
|
return n7.get(l4);
|
|
271297
|
-
const i7 =
|
|
273091
|
+
const i7 = ce3(e11, n7);
|
|
271298
273092
|
if (!i7)
|
|
271299
273093
|
return;
|
|
271300
|
-
let
|
|
273094
|
+
let r7 = t9 || "tsconfig.json";
|
|
271301
273095
|
if (!s7 && i7.exports)
|
|
271302
273096
|
try {
|
|
271303
273097
|
const [f5] = v5(i7.exports, t9, ["require", "types"]);
|
|
271304
|
-
|
|
273098
|
+
r7 = f5;
|
|
271305
273099
|
} catch {
|
|
271306
273100
|
return false;
|
|
271307
273101
|
}
|
|
271308
273102
|
else
|
|
271309
|
-
!t9 && i7.tsconfig && (
|
|
271310
|
-
return
|
|
273103
|
+
!t9 && i7.tsconfig && (r7 = i7.tsconfig);
|
|
273104
|
+
return r7 = m6.join(e11, "..", r7), n7 == null || n7.set(l4, r7), r7;
|
|
271311
273105
|
}, "resolveFromPackageJsonPath");
|
|
271312
|
-
var
|
|
271313
|
-
var
|
|
271314
|
-
var
|
|
273106
|
+
var Z3 = "package.json";
|
|
273107
|
+
var q5 = "tsconfig.json";
|
|
273108
|
+
var Ne2 = o7((e11, t9, s7) => {
|
|
271315
273109
|
let n7 = e11;
|
|
271316
|
-
if (e11 === ".." && (n7 = m6.join(n7,
|
|
273110
|
+
if (e11 === ".." && (n7 = m6.join(n7, q5)), e11[0] === "." && (n7 = m6.resolve(t9, n7)), m6.isAbsolute(n7)) {
|
|
271317
273111
|
if (B3(s7, n7)) {
|
|
271318
273112
|
if (P4(s7, n7).isFile())
|
|
271319
273113
|
return n7;
|
|
@@ -271324,35 +273118,35 @@ var Be2 = o7((e11, t9, s7) => {
|
|
|
271324
273118
|
}
|
|
271325
273119
|
return;
|
|
271326
273120
|
}
|
|
271327
|
-
const [l4, ...i7] = e11.split("/"),
|
|
271328
|
-
if (
|
|
271329
|
-
const { resolveRequest: d6 } =
|
|
273121
|
+
const [l4, ...i7] = e11.split("/"), r7 = l4[0] === "@" ? `${l4}/${i7.shift()}` : l4, f5 = i7.join("/"), u6 = Se2();
|
|
273122
|
+
if (u6) {
|
|
273123
|
+
const { resolveRequest: d6 } = u6;
|
|
271330
273124
|
try {
|
|
271331
|
-
if (
|
|
271332
|
-
const
|
|
271333
|
-
if (
|
|
271334
|
-
const
|
|
271335
|
-
if (
|
|
271336
|
-
return
|
|
273125
|
+
if (r7 === e11) {
|
|
273126
|
+
const j3 = d6(m6.join(r7, Z3), t9);
|
|
273127
|
+
if (j3) {
|
|
273128
|
+
const v6 = Y3(j3, f5, false, s7);
|
|
273129
|
+
if (v6 && B3(s7, v6))
|
|
273130
|
+
return v6;
|
|
271337
273131
|
}
|
|
271338
273132
|
} else {
|
|
271339
|
-
let
|
|
273133
|
+
let j3;
|
|
271340
273134
|
try {
|
|
271341
|
-
|
|
273135
|
+
j3 = d6(e11, t9, { extensions: [".json"] });
|
|
271342
273136
|
} catch {
|
|
271343
|
-
|
|
273137
|
+
j3 = d6(m6.join(e11, q5), t9);
|
|
271344
273138
|
}
|
|
271345
|
-
if (
|
|
271346
|
-
return
|
|
273139
|
+
if (j3)
|
|
273140
|
+
return j3;
|
|
271347
273141
|
}
|
|
271348
273142
|
} catch {}
|
|
271349
273143
|
}
|
|
271350
|
-
const g5 =
|
|
273144
|
+
const g5 = ie3(m6.resolve(t9), m6.join("node_modules", r7), s7);
|
|
271351
273145
|
if (!g5 || !P4(s7, g5).isDirectory())
|
|
271352
273146
|
return;
|
|
271353
|
-
const
|
|
271354
|
-
if (B3(s7,
|
|
271355
|
-
const d6 =
|
|
273147
|
+
const w5 = m6.join(g5, Z3);
|
|
273148
|
+
if (B3(s7, w5)) {
|
|
273149
|
+
const d6 = Y3(w5, f5, false, s7);
|
|
271356
273150
|
if (d6 === false)
|
|
271357
273151
|
return;
|
|
271358
273152
|
if (d6 && B3(s7, d6) && P4(s7, d6).isFile())
|
|
@@ -271366,48 +273160,59 @@ var Be2 = o7((e11, t9, s7) => {
|
|
|
271366
273160
|
}
|
|
271367
273161
|
if (B3(s7, b4)) {
|
|
271368
273162
|
if (P4(s7, b4).isDirectory()) {
|
|
271369
|
-
const d6 = m6.join(b4,
|
|
273163
|
+
const d6 = m6.join(b4, Z3);
|
|
271370
273164
|
if (B3(s7, d6)) {
|
|
271371
|
-
const
|
|
271372
|
-
if (
|
|
271373
|
-
return
|
|
273165
|
+
const v6 = Y3(d6, "", true, s7);
|
|
273166
|
+
if (v6 && B3(s7, v6))
|
|
273167
|
+
return v6;
|
|
271374
273168
|
}
|
|
271375
|
-
const
|
|
271376
|
-
if (B3(s7,
|
|
271377
|
-
return
|
|
273169
|
+
const j3 = m6.join(b4, q5);
|
|
273170
|
+
if (B3(s7, j3))
|
|
273171
|
+
return j3;
|
|
271378
273172
|
} else if (_5)
|
|
271379
273173
|
return b4;
|
|
271380
273174
|
}
|
|
271381
273175
|
}, "resolveExtendsPath");
|
|
271382
|
-
var
|
|
271383
|
-
var
|
|
271384
|
-
var
|
|
271385
|
-
const l4 =
|
|
273176
|
+
var K3 = o7((e11, t9) => Q3(m6.relative(e11, t9)), "pathRelative");
|
|
273177
|
+
var ae3 = ["files", "include", "exclude"];
|
|
273178
|
+
var ge3 = o7((e11, t9, s7) => {
|
|
273179
|
+
const n7 = m6.join(t9, s7), l4 = m6.relative(e11, n7);
|
|
273180
|
+
return E5(l4) || "./";
|
|
273181
|
+
}, "resolveAndRelativize");
|
|
273182
|
+
var Pe2 = o7((e11, t9, s7) => {
|
|
273183
|
+
const n7 = m6.relative(e11, t9);
|
|
273184
|
+
if (!n7)
|
|
273185
|
+
return s7;
|
|
273186
|
+
const l4 = s7.startsWith("./") ? s7.slice(2) : s7;
|
|
273187
|
+
return E5(`${n7}/${l4}`);
|
|
273188
|
+
}, "prefixPattern");
|
|
273189
|
+
var Re2 = o7((e11, t9, s7, n7) => {
|
|
273190
|
+
const l4 = Ne2(e11, t9, n7);
|
|
271386
273191
|
if (!l4)
|
|
271387
273192
|
throw new Error(`File '${e11}' not found.`);
|
|
271388
273193
|
if (s7.has(l4))
|
|
271389
273194
|
throw new Error(`Circularity detected while resolving configuration: ${l4}`);
|
|
271390
273195
|
s7.add(l4);
|
|
271391
|
-
const i7 = m6.dirname(l4),
|
|
271392
|
-
delete
|
|
271393
|
-
const { compilerOptions: f5 } =
|
|
273196
|
+
const i7 = m6.dirname(l4), r7 = pe3(l4, n7, s7);
|
|
273197
|
+
delete r7.references;
|
|
273198
|
+
const { compilerOptions: f5 } = r7;
|
|
271394
273199
|
if (f5) {
|
|
271395
|
-
const { baseUrl:
|
|
271396
|
-
|
|
271397
|
-
|
|
271398
|
-
g5 &&
|
|
273200
|
+
const { baseUrl: u6 } = f5;
|
|
273201
|
+
u6 && !u6.startsWith($4) && (f5.baseUrl = ge3(t9, i7, u6));
|
|
273202
|
+
const { outDir: g5 } = f5;
|
|
273203
|
+
g5 && !g5.startsWith($4) && (f5.outDir = ge3(t9, i7, g5));
|
|
271399
273204
|
}
|
|
271400
|
-
for (const
|
|
271401
|
-
const g5 = u6
|
|
271402
|
-
g5 && (u6
|
|
273205
|
+
for (const u6 of ae3) {
|
|
273206
|
+
const g5 = r7[u6];
|
|
273207
|
+
g5 && (r7[u6] = g5.map((w5) => w5.startsWith($4) ? w5 : Pe2(t9, i7, w5)));
|
|
271403
273208
|
}
|
|
271404
|
-
return
|
|
273209
|
+
return r7;
|
|
271405
273210
|
}, "resolveExtends");
|
|
271406
|
-
var
|
|
271407
|
-
var
|
|
273211
|
+
var We2 = ["outDir", "declarationDir"];
|
|
273212
|
+
var pe3 = o7((e11, t9, s7 = new Set) => {
|
|
271408
273213
|
let n7;
|
|
271409
273214
|
try {
|
|
271410
|
-
n7 =
|
|
273215
|
+
n7 = ce3(e11, t9) || {};
|
|
271411
273216
|
} catch {
|
|
271412
273217
|
throw new Error(`Cannot resolve tsconfig at path: ${e11}`);
|
|
271413
273218
|
}
|
|
@@ -271416,34 +273221,34 @@ var ce3 = o7((e11, t9, s7 = new Set) => {
|
|
|
271416
273221
|
const l4 = m6.dirname(e11);
|
|
271417
273222
|
if (n7.compilerOptions) {
|
|
271418
273223
|
const { compilerOptions: i7 } = n7;
|
|
271419
|
-
i7.paths && !i7.baseUrl && (i7[
|
|
273224
|
+
i7.paths && !i7.baseUrl && (i7[X4] = l4);
|
|
271420
273225
|
}
|
|
271421
273226
|
if (n7.extends) {
|
|
271422
273227
|
const i7 = Array.isArray(n7.extends) ? n7.extends : [n7.extends];
|
|
271423
273228
|
delete n7.extends;
|
|
271424
|
-
for (const
|
|
271425
|
-
const f5 =
|
|
271426
|
-
f5.watchOptions && (
|
|
273229
|
+
for (const r7 of i7.reverse()) {
|
|
273230
|
+
const f5 = Re2(r7, l4, new Set(s7), t9), u6 = { ...f5, ...n7, compilerOptions: { ...f5.compilerOptions, ...n7.compilerOptions } };
|
|
273231
|
+
f5.watchOptions && (u6.watchOptions = { ...f5.watchOptions, ...n7.watchOptions }), n7 = u6;
|
|
271427
273232
|
}
|
|
271428
273233
|
}
|
|
271429
273234
|
if (n7.compilerOptions) {
|
|
271430
|
-
const { compilerOptions: i7 } = n7,
|
|
271431
|
-
for (const f5 of
|
|
271432
|
-
const
|
|
271433
|
-
if (
|
|
271434
|
-
const g5 = m6.resolve(l4,
|
|
271435
|
-
i7[f5] =
|
|
273235
|
+
const { compilerOptions: i7 } = n7, r7 = ["baseUrl", "rootDir"];
|
|
273236
|
+
for (const f5 of r7) {
|
|
273237
|
+
const u6 = i7[f5];
|
|
273238
|
+
if (u6 && !u6.startsWith($4)) {
|
|
273239
|
+
const g5 = m6.resolve(l4, u6), w5 = K3(l4, g5);
|
|
273240
|
+
i7[f5] = w5;
|
|
271436
273241
|
}
|
|
271437
273242
|
}
|
|
271438
|
-
for (const f5 of
|
|
271439
|
-
let
|
|
271440
|
-
|
|
273243
|
+
for (const f5 of We2) {
|
|
273244
|
+
let u6 = i7[f5];
|
|
273245
|
+
u6 && (Array.isArray(n7.exclude) || (n7.exclude = []), n7.exclude.includes(u6) || n7.exclude.push(u6), u6.startsWith($4) || (u6 = Q3(u6)), i7[f5] = u6);
|
|
271441
273246
|
}
|
|
271442
273247
|
} else
|
|
271443
273248
|
n7.compilerOptions = {};
|
|
271444
|
-
if (n7.include ? (n7.include = n7.include.map(E5), n7.files && delete n7.files) : n7.files && (n7.files = n7.files.map((i7) => i7.startsWith($4) ? i7 :
|
|
273249
|
+
if (n7.include ? (n7.include = n7.include.map(E5), n7.files && delete n7.files) : n7.files && (n7.files = n7.files.map((i7) => i7.startsWith($4) ? i7 : Q3(i7))), n7.watchOptions) {
|
|
271445
273250
|
const { watchOptions: i7 } = n7;
|
|
271446
|
-
i7.excludeDirectories && (i7.excludeDirectories = i7.excludeDirectories.map((
|
|
273251
|
+
i7.excludeDirectories && (i7.excludeDirectories = i7.excludeDirectories.map((r7) => E5(m6.resolve(l4, r7))));
|
|
271447
273252
|
}
|
|
271448
273253
|
return n7;
|
|
271449
273254
|
}, "_parseTsconfig");
|
|
@@ -271451,13 +273256,13 @@ var W4 = o7((e11, t9) => {
|
|
|
271451
273256
|
if (e11.startsWith($4))
|
|
271452
273257
|
return E5(m6.join(t9, e11.slice($4.length)));
|
|
271453
273258
|
}, "interpolateConfigDir");
|
|
271454
|
-
var
|
|
271455
|
-
var
|
|
271456
|
-
var t9, s7, n7, l4, i7,
|
|
273259
|
+
var Ve2 = ["outDir", "declarationDir", "outFile", "rootDir", "baseUrl", "tsBuildInfoFile"];
|
|
273260
|
+
var Me2 = o7((e11) => {
|
|
273261
|
+
var t9, s7, n7, l4, i7, r7, f5, u6, g5, w5, b4, _5, d6, j3, v6, A5, h7, L5, c3, y4, D3, T4, p5;
|
|
271457
273262
|
if (e11.strict) {
|
|
271458
273263
|
const a8 = ["noImplicitAny", "noImplicitThis", "strictNullChecks", "strictFunctionTypes", "strictBindCallApply", "strictPropertyInitialization", "strictBuiltinIteratorReturn", "alwaysStrict", "useUnknownInCatchVariables"];
|
|
271459
|
-
for (const
|
|
271460
|
-
e11[
|
|
273264
|
+
for (const S4 of a8)
|
|
273265
|
+
e11[S4] === undefined && (e11[S4] = true);
|
|
271461
273266
|
}
|
|
271462
273267
|
if (e11.target) {
|
|
271463
273268
|
let a8 = e11.target.toLowerCase();
|
|
@@ -271465,170 +273270,187 @@ var Ue2 = o7((e11) => {
|
|
|
271465
273270
|
}
|
|
271466
273271
|
if (e11.module) {
|
|
271467
273272
|
let a8 = e11.module.toLowerCase();
|
|
271468
|
-
a8 === "es2015" && (a8 = "es6"), e11.module = a8, (a8 === "es6" || a8 === "es2020" || a8 === "es2022" || a8 === "esnext" || a8 === "none" || a8 === "system" || a8 === "umd" || a8 === "amd") && ((i7 = e11.moduleResolution) != null || (e11.moduleResolution = "classic")), a8 === "system" && ((
|
|
273273
|
+
a8 === "es2015" && (a8 = "es6"), e11.module = a8, (a8 === "es6" || a8 === "es2020" || a8 === "es2022" || a8 === "esnext" || a8 === "none" || a8 === "system" || a8 === "umd" || a8 === "amd") && ((i7 = e11.moduleResolution) != null || (e11.moduleResolution = "classic")), a8 === "system" && ((r7 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), (a8 === "node16" || a8 === "nodenext" || a8 === "preserve") && ((f5 = e11.esModuleInterop) != null || (e11.esModuleInterop = true), (u6 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), (a8 === "node16" || a8 === "nodenext") && ((g5 = e11.moduleDetection) != null || (e11.moduleDetection = "force"), (w5 = e11.useDefineForClassFields) != null || (e11.useDefineForClassFields = true)), a8 === "node16" && ((b4 = e11.target) != null || (e11.target = "es2022"), (_5 = e11.moduleResolution) != null || (e11.moduleResolution = "node16")), a8 === "nodenext" && ((d6 = e11.target) != null || (e11.target = "esnext"), (j3 = e11.moduleResolution) != null || (e11.moduleResolution = "nodenext")), a8 === "preserve" && ((v6 = e11.moduleResolution) != null || (e11.moduleResolution = "bundler"));
|
|
271469
273274
|
}
|
|
271470
273275
|
if (e11.moduleResolution) {
|
|
271471
273276
|
let a8 = e11.moduleResolution.toLowerCase();
|
|
271472
|
-
a8 === "node" && (a8 = "node10"), e11.moduleResolution = a8, (a8 === "node16" || a8 === "nodenext" || a8 === "bundler") && ((
|
|
273277
|
+
a8 === "node" && (a8 = "node10"), e11.moduleResolution = a8, (a8 === "node16" || a8 === "nodenext" || a8 === "bundler") && ((A5 = e11.resolvePackageJsonExports) != null || (e11.resolvePackageJsonExports = true), (h7 = e11.resolvePackageJsonImports) != null || (e11.resolvePackageJsonImports = true)), a8 === "bundler" && ((L5 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true), (c3 = e11.resolveJsonModule) != null || (e11.resolveJsonModule = true));
|
|
271473
273278
|
}
|
|
271474
|
-
e11.esModuleInterop && ((
|
|
273279
|
+
e11.esModuleInterop && ((y4 = e11.allowSyntheticDefaultImports) != null || (e11.allowSyntheticDefaultImports = true)), e11.verbatimModuleSyntax && ((D3 = e11.isolatedModules) != null || (e11.isolatedModules = true), (T4 = e11.preserveConstEnums) != null || (e11.preserveConstEnums = true)), e11.isolatedModules && ((p5 = e11.preserveConstEnums) != null || (e11.preserveConstEnums = true));
|
|
271475
273280
|
}, "normalizeCompilerOptions");
|
|
271476
|
-
var
|
|
271477
|
-
const s7 = m6.resolve(e11), n7 =
|
|
273281
|
+
var me3 = o7((e11, t9 = new Map) => {
|
|
273282
|
+
const s7 = m6.resolve(e11), n7 = pe3(s7, t9), l4 = m6.dirname(s7), { compilerOptions: i7 } = n7;
|
|
271478
273283
|
if (i7) {
|
|
271479
|
-
for (const f5 of
|
|
271480
|
-
const
|
|
271481
|
-
if (
|
|
271482
|
-
const g5 = W4(
|
|
271483
|
-
i7[f5] = g5 ?
|
|
273284
|
+
for (const f5 of Ve2) {
|
|
273285
|
+
const u6 = i7[f5];
|
|
273286
|
+
if (u6) {
|
|
273287
|
+
const g5 = W4(u6, l4);
|
|
273288
|
+
i7[f5] = g5 ? K3(l4, g5) : u6;
|
|
271484
273289
|
}
|
|
271485
273290
|
}
|
|
271486
273291
|
for (const f5 of ["rootDirs", "typeRoots"]) {
|
|
271487
|
-
const
|
|
271488
|
-
|
|
271489
|
-
const
|
|
271490
|
-
return
|
|
273292
|
+
const u6 = i7[f5];
|
|
273293
|
+
u6 && (i7[f5] = u6.map((g5) => {
|
|
273294
|
+
const w5 = W4(g5, l4);
|
|
273295
|
+
return w5 ? K3(l4, w5) : g5;
|
|
271491
273296
|
}));
|
|
271492
273297
|
}
|
|
271493
|
-
const { paths:
|
|
271494
|
-
if (
|
|
271495
|
-
for (const f5 of Object.keys(
|
|
271496
|
-
|
|
273298
|
+
const { paths: r7 } = i7;
|
|
273299
|
+
if (r7)
|
|
273300
|
+
for (const f5 of Object.keys(r7))
|
|
273301
|
+
r7[f5] = r7[f5].map((u6) => {
|
|
271497
273302
|
var g5;
|
|
271498
|
-
return (g5 = W4(
|
|
273303
|
+
return (g5 = W4(u6, l4)) != null ? g5 : u6;
|
|
271499
273304
|
});
|
|
271500
|
-
|
|
273305
|
+
Me2(i7);
|
|
271501
273306
|
}
|
|
271502
|
-
for (const
|
|
271503
|
-
const f5 = n7[
|
|
271504
|
-
f5 && (n7[
|
|
273307
|
+
for (const r7 of ae3) {
|
|
273308
|
+
const f5 = n7[r7];
|
|
273309
|
+
f5 && (n7[r7] = f5.map((u6) => {
|
|
271505
273310
|
var g5;
|
|
271506
|
-
return (g5 = W4(
|
|
273311
|
+
return (g5 = W4(u6, l4)) != null ? g5 : u6;
|
|
271507
273312
|
}));
|
|
271508
273313
|
}
|
|
271509
273314
|
return n7;
|
|
271510
273315
|
}, "parseTsconfig");
|
|
271511
|
-
var
|
|
271512
|
-
const n7 =
|
|
273316
|
+
var Je2 = o7((e11 = process.cwd(), t9 = "tsconfig.json", s7 = new Map) => {
|
|
273317
|
+
const n7 = ie3(E5(e11), t9, s7);
|
|
271513
273318
|
if (!n7)
|
|
271514
273319
|
return null;
|
|
271515
|
-
const l4 =
|
|
273320
|
+
const l4 = me3(n7, s7);
|
|
271516
273321
|
return { path: n7, config: l4 };
|
|
271517
273322
|
}, "getTsconfig");
|
|
271518
|
-
var
|
|
271519
|
-
var
|
|
271520
|
-
const s7 = e11.match(
|
|
273323
|
+
var Oe2 = /\*/g;
|
|
273324
|
+
var ke2 = o7((e11, t9) => {
|
|
273325
|
+
const s7 = e11.match(Oe2);
|
|
271521
273326
|
if (s7 && s7.length > 1)
|
|
271522
273327
|
throw new Error(t9);
|
|
271523
273328
|
}, "assertStarCount");
|
|
271524
|
-
var
|
|
273329
|
+
var ze2 = o7((e11) => {
|
|
271525
273330
|
if (e11.includes("*")) {
|
|
271526
273331
|
const [t9, s7] = e11.split("*");
|
|
271527
273332
|
return { prefix: t9, suffix: s7 };
|
|
271528
273333
|
}
|
|
271529
273334
|
return e11;
|
|
271530
273335
|
}, "parsePattern");
|
|
271531
|
-
var
|
|
271532
|
-
var
|
|
271533
|
-
if (
|
|
273336
|
+
var Ge2 = o7(({ prefix: e11, suffix: t9 }, s7) => s7.startsWith(e11) && s7.endsWith(t9), "isPatternMatch");
|
|
273337
|
+
var Qe2 = o7((e11, t9, s7) => Object.entries(e11).map(([n7, l4]) => (ke2(n7, `Pattern '${n7}' can have at most one '*' character.`), { pattern: ze2(n7), substitutions: l4.map((i7) => {
|
|
273338
|
+
if (ke2(i7, `Substitution '${i7}' in pattern '${n7}' can have at most one '*' character.`), !t9 && !G3.test(i7))
|
|
271534
273339
|
throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");
|
|
271535
273340
|
return m6.resolve(s7, i7);
|
|
271536
273341
|
}) })), "parsePaths");
|
|
271537
|
-
var
|
|
273342
|
+
var He2 = o7((e11) => {
|
|
271538
273343
|
const { compilerOptions: t9 } = e11.config;
|
|
271539
273344
|
if (!t9)
|
|
271540
273345
|
return null;
|
|
271541
273346
|
const { baseUrl: s7, paths: n7 } = t9;
|
|
271542
273347
|
if (!s7 && !n7)
|
|
271543
273348
|
return null;
|
|
271544
|
-
const l4 =
|
|
273349
|
+
const l4 = X4 in t9 && t9[X4], i7 = m6.resolve(m6.dirname(e11.path), s7 || l4 || "."), r7 = n7 ? Qe2(n7, s7, i7) : [];
|
|
271545
273350
|
return (f5) => {
|
|
271546
|
-
if (
|
|
273351
|
+
if (G3.test(f5))
|
|
271547
273352
|
return [];
|
|
271548
|
-
const
|
|
271549
|
-
for (const _5 of
|
|
273353
|
+
const u6 = [];
|
|
273354
|
+
for (const _5 of r7) {
|
|
271550
273355
|
if (_5.pattern === f5)
|
|
271551
273356
|
return _5.substitutions.map(E5);
|
|
271552
|
-
typeof _5.pattern != "string" &&
|
|
273357
|
+
typeof _5.pattern != "string" && u6.push(_5);
|
|
271553
273358
|
}
|
|
271554
|
-
let g5,
|
|
271555
|
-
for (const _5 of
|
|
271556
|
-
|
|
273359
|
+
let g5, w5 = -1;
|
|
273360
|
+
for (const _5 of u6)
|
|
273361
|
+
Ge2(_5.pattern, f5) && _5.pattern.prefix.length > w5 && (w5 = _5.pattern.prefix.length, g5 = _5);
|
|
271557
273362
|
if (!g5)
|
|
271558
273363
|
return s7 ? [E5(m6.join(i7, f5))] : [];
|
|
271559
273364
|
const b4 = f5.slice(g5.pattern.prefix.length, f5.length - g5.pattern.suffix.length);
|
|
271560
273365
|
return g5.substitutions.map((_5) => E5(_5.replace("*", b4)));
|
|
271561
273366
|
};
|
|
271562
273367
|
}, "createPathsMatcher");
|
|
271563
|
-
var
|
|
273368
|
+
var Xe2 = Object.defineProperty;
|
|
273369
|
+
var V4 = o7((e11, t9) => Xe2(e11, "name", { value: t9, configurable: true }), "s");
|
|
273370
|
+
var we3 = V4((e11) => {
|
|
271564
273371
|
let t9 = "";
|
|
271565
273372
|
for (let s7 = 0;s7 < e11.length; s7 += 1) {
|
|
271566
273373
|
const n7 = e11[s7], l4 = n7.toUpperCase();
|
|
271567
273374
|
t9 += n7 === l4 ? n7.toLowerCase() : l4;
|
|
271568
273375
|
}
|
|
271569
273376
|
return t9;
|
|
271570
|
-
}, "
|
|
271571
|
-
var
|
|
271572
|
-
var
|
|
271573
|
-
|
|
271574
|
-
|
|
271575
|
-
|
|
271576
|
-
|
|
271577
|
-
|
|
271578
|
-
|
|
271579
|
-
|
|
271580
|
-
|
|
271581
|
-
|
|
271582
|
-
|
|
271583
|
-
|
|
273377
|
+
}, "invertCase");
|
|
273378
|
+
var C3 = new Map;
|
|
273379
|
+
var be3 = V4((e11, t9) => {
|
|
273380
|
+
const s7 = Be2.join(e11, `.is-fs-case-sensitive-test-${process.pid}`);
|
|
273381
|
+
try {
|
|
273382
|
+
return t9.writeFileSync(s7, ""), !t9.existsSync(we3(s7));
|
|
273383
|
+
} finally {
|
|
273384
|
+
try {
|
|
273385
|
+
t9.unlinkSync(s7);
|
|
273386
|
+
} catch {}
|
|
273387
|
+
}
|
|
273388
|
+
}, "checkDirectoryCaseWithWrite");
|
|
273389
|
+
var Ye2 = V4((e11, t9, s7) => {
|
|
273390
|
+
try {
|
|
273391
|
+
return be3(e11, s7);
|
|
273392
|
+
} catch (n7) {
|
|
273393
|
+
if (t9 === undefined)
|
|
273394
|
+
return be3(Ee3.tmpdir(), s7);
|
|
273395
|
+
throw n7;
|
|
273396
|
+
}
|
|
273397
|
+
}, "checkDirectoryCaseWithFallback");
|
|
273398
|
+
var Ze2 = V4((e11, t9 = he3, s7 = true) => {
|
|
273399
|
+
const n7 = e11 != null ? e11 : process.cwd();
|
|
273400
|
+
if (s7 && C3.has(n7))
|
|
273401
|
+
return C3.get(n7);
|
|
273402
|
+
let l4;
|
|
273403
|
+
const i7 = we3(n7);
|
|
273404
|
+
return i7 !== n7 && t9.existsSync(n7) ? l4 = !t9.existsSync(i7) : l4 = Ye2(n7, e11, t9), s7 && C3.set(n7, l4), l4;
|
|
273405
|
+
}, "isFsCaseSensitive");
|
|
271584
273406
|
var { join: M4 } = m6.posix;
|
|
271585
|
-
var
|
|
271586
|
-
var
|
|
271587
|
-
const t9 = [...
|
|
273407
|
+
var ee3 = { ts: [".ts", ".tsx", ".d.ts"], cts: [".cts", ".d.cts"], mts: [".mts", ".d.mts"] };
|
|
273408
|
+
var qe2 = o7((e11) => {
|
|
273409
|
+
const t9 = [...ee3.ts], s7 = [...ee3.cts], n7 = [...ee3.mts];
|
|
271588
273410
|
return e11 != null && e11.allowJs && (t9.push(".js", ".jsx"), s7.push(".cjs"), n7.push(".mjs")), [...t9, ...s7, ...n7];
|
|
271589
273411
|
}, "getSupportedExtensions");
|
|
271590
|
-
var
|
|
273412
|
+
var Ke2 = o7((e11) => {
|
|
271591
273413
|
const t9 = [];
|
|
271592
273414
|
if (!e11)
|
|
271593
273415
|
return t9;
|
|
271594
273416
|
const { outDir: s7, declarationDir: n7 } = e11;
|
|
271595
273417
|
return s7 && t9.push(s7), n7 && t9.push(n7), t9;
|
|
271596
273418
|
}, "getDefaultExcludeSpec");
|
|
271597
|
-
var
|
|
271598
|
-
var
|
|
271599
|
-
var
|
|
271600
|
-
var
|
|
271601
|
-
var
|
|
271602
|
-
var
|
|
271603
|
-
var
|
|
271604
|
-
var
|
|
271605
|
-
var
|
|
273419
|
+
var de3 = o7((e11) => e11.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`), "escapeForRegexp");
|
|
273420
|
+
var Ce2 = ["node_modules", "bower_components", "jspm_packages"];
|
|
273421
|
+
var ne3 = `(?!(${Ce2.join("|")})(/|$))`;
|
|
273422
|
+
var en = /(?:^|\/)[^.*?]+$/;
|
|
273423
|
+
var ve3 = "**/*";
|
|
273424
|
+
var J3 = "[^/]";
|
|
273425
|
+
var te3 = "[^./]";
|
|
273426
|
+
var Te2 = process.platform === "win32";
|
|
273427
|
+
var nn = o7(({ config: e11, path: t9 }, s7 = Ze2()) => {
|
|
271606
273428
|
if ("extends" in e11)
|
|
271607
273429
|
throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");
|
|
271608
273430
|
if (!m6.isAbsolute(t9))
|
|
271609
273431
|
throw new Error("The tsconfig path must be absolute");
|
|
271610
|
-
|
|
271611
|
-
const n7 = m6.dirname(t9), { files: l4, include: i7, exclude:
|
|
271612
|
-
const
|
|
271613
|
-
return new RegExp(`^${
|
|
271614
|
-
}), d6 = l4 || i7 ? i7 : [
|
|
271615
|
-
let
|
|
271616
|
-
|
|
271617
|
-
const
|
|
271618
|
-
const
|
|
271619
|
-
return c3 ? `/${
|
|
273432
|
+
Te2 && (t9 = E5(t9));
|
|
273433
|
+
const n7 = m6.dirname(t9), { files: l4, include: i7, exclude: r7, compilerOptions: f5 } = e11, u6 = l4 == null ? undefined : l4.map((v6) => M4(n7, v6)), g5 = qe2(f5), w5 = s7 ? "" : "i", _5 = (r7 || Ke2(f5)).map((v6) => {
|
|
273434
|
+
const A5 = M4(n7, v6), h7 = de3(A5).replaceAll(String.raw`\*\*/`, "(.+/)?").replaceAll(String.raw`\*`, `${J3}*`).replaceAll(String.raw`\?`, J3);
|
|
273435
|
+
return new RegExp(`^${h7}($|/)`, w5);
|
|
273436
|
+
}), d6 = l4 || i7 ? i7 : [ve3], j3 = d6 ? d6.map((v6) => {
|
|
273437
|
+
let A5 = M4(n7, v6);
|
|
273438
|
+
en.test(A5) && (A5 = M4(A5, ve3));
|
|
273439
|
+
const h7 = de3(A5).replaceAll(String.raw`/\*\*`, `(/${ne3}${te3}${J3}*)*?`).replaceAll(/(\/)?\\\*/g, (L5, c3) => {
|
|
273440
|
+
const y4 = `(${te3}|(\\.(?!min\\.js$))?)*`;
|
|
273441
|
+
return c3 ? `/${ne3}${te3}${y4}` : y4;
|
|
271620
273442
|
}).replaceAll(/(\/)?\\\?/g, (L5, c3) => {
|
|
271621
|
-
const
|
|
271622
|
-
return c3 ? `/${
|
|
273443
|
+
const y4 = J3;
|
|
273444
|
+
return c3 ? `/${ne3}${y4}` : y4;
|
|
271623
273445
|
});
|
|
271624
|
-
return new RegExp(`^${
|
|
273446
|
+
return new RegExp(`^${h7}$`, w5);
|
|
271625
273447
|
}) : undefined;
|
|
271626
|
-
return (
|
|
271627
|
-
if (!m6.isAbsolute(
|
|
273448
|
+
return (v6) => {
|
|
273449
|
+
if (!m6.isAbsolute(v6))
|
|
271628
273450
|
throw new Error("filePath must be absolute");
|
|
271629
|
-
if (
|
|
273451
|
+
if (Te2 && (v6 = E5(v6)), u6 != null && u6.includes(v6))
|
|
271630
273452
|
return e11;
|
|
271631
|
-
if (!(!g5.some((
|
|
273453
|
+
if (!(!g5.some((A5) => v6.endsWith(A5)) || _5.some((A5) => A5.test(v6))) && j3 && j3.some((A5) => A5.test(v6)))
|
|
271632
273454
|
return e11;
|
|
271633
273455
|
};
|
|
271634
273456
|
}, "createFilesMatcher");
|
|
@@ -271674,7 +273496,7 @@ async function testGqlEndpoint({
|
|
|
271674
273496
|
|
|
271675
273497
|
// src/commands/codegen/codegen-tsconfig.ts
|
|
271676
273498
|
async function codegenTsconfig(env2, thegraphSubgraphNames) {
|
|
271677
|
-
const tsconfig =
|
|
273499
|
+
const tsconfig = Je2();
|
|
271678
273500
|
if (!tsconfig?.config) {
|
|
271679
273501
|
note("No tsconfig found, skipping codegen for hasura, portal, thegraph and blockscout", "warn");
|
|
271680
273502
|
return {
|
|
@@ -271810,7 +273632,7 @@ function sanitizeName(value5, length = 35) {
|
|
|
271810
273632
|
}).slice(0, length).replaceAll(/(^\d*)/g, "").replaceAll(/(-$)/g, "").replaceAll(/(^-)/g, "");
|
|
271811
273633
|
}
|
|
271812
273634
|
|
|
271813
|
-
// ../../node_modules/.bun/@inquirer+input@4.2.4+
|
|
273635
|
+
// ../../node_modules/.bun/@inquirer+input@4.2.4+5561211e8fe04dc6/node_modules/@inquirer/input/dist/esm/index.js
|
|
271814
273636
|
var inputTheme = {
|
|
271815
273637
|
validationFailureMode: "keep"
|
|
271816
273638
|
};
|
|
@@ -271900,7 +273722,7 @@ async function subgraphNamePrompt({
|
|
|
271900
273722
|
return sanitizeName(subgraphName);
|
|
271901
273723
|
}
|
|
271902
273724
|
|
|
271903
|
-
// ../../node_modules/.bun/@inquirer+select@4.3.4+
|
|
273725
|
+
// ../../node_modules/.bun/@inquirer+select@4.3.4+5561211e8fe04dc6/node_modules/@inquirer/select/dist/esm/index.js
|
|
271904
273726
|
var import_yoctocolors_cjs3 = __toESM(require_yoctocolors_cjs(), 1);
|
|
271905
273727
|
var selectTheme = {
|
|
271906
273728
|
icon: { cursor: esm_default.pointer },
|
|
@@ -297249,7 +299071,7 @@ function extractInfoFromBody(body) {
|
|
|
297249
299071
|
}
|
|
297250
299072
|
}
|
|
297251
299073
|
|
|
297252
|
-
// ../../node_modules/.bun/@inquirer+confirm@5.1.18+
|
|
299074
|
+
// ../../node_modules/.bun/@inquirer+confirm@5.1.18+5561211e8fe04dc6/node_modules/@inquirer/confirm/dist/esm/index.js
|
|
297253
299075
|
function getBooleanValue(value5, defaultValue) {
|
|
297254
299076
|
let answer = defaultValue !== false;
|
|
297255
299077
|
if (/^(y|yes)/i.test(value5))
|
|
@@ -297295,7 +299117,7 @@ var esm_default4 = createPrompt((config3, done) => {
|
|
|
297295
299117
|
return `${prefix} ${message}${defaultValue} ${formattedValue}`;
|
|
297296
299118
|
});
|
|
297297
299119
|
|
|
297298
|
-
// ../../node_modules/.bun/@inquirer+password@4.0.20+
|
|
299120
|
+
// ../../node_modules/.bun/@inquirer+password@4.0.20+5561211e8fe04dc6/node_modules/@inquirer/password/dist/esm/index.js
|
|
297299
299121
|
var esm_default5 = createPrompt((config3, done) => {
|
|
297300
299122
|
const { validate: validate8 = () => true } = config3;
|
|
297301
299123
|
const theme = makeTheme(config3.theme);
|
|
@@ -299330,7 +301152,7 @@ function w$1() {
|
|
|
299330
301152
|
var a8 = e11 & 255;
|
|
299331
301153
|
e11 = Math.floor(e11 / 256), o8 ? r7[s7 - 1] = l4(a8) : a8 === 0 ? r7[s7 - 1] = 0 : (o8 = true, r7[s7 - 1] = c3(a8));
|
|
299332
301154
|
}
|
|
299333
|
-
},
|
|
301155
|
+
}, h7 = (e11) => {
|
|
299334
301156
|
const r7 = e11[0], o8 = r7 === 128 ? d6(e11.slice(1, e11.length)) : r7 === 255 ? x6(e11) : null;
|
|
299335
301157
|
if (o8 === null)
|
|
299336
301158
|
throw Error("invalid base256 encoding");
|
|
@@ -299350,7 +301172,7 @@ function w$1() {
|
|
|
299350
301172
|
}
|
|
299351
301173
|
return o8;
|
|
299352
301174
|
}, l4 = (e11) => (255 ^ e11) & 255, c3 = (e11) => (255 ^ e11) + 1 & 255;
|
|
299353
|
-
return f$3 = { encode: v6, parse:
|
|
301175
|
+
return f$3 = { encode: v6, parse: h7 }, f$3;
|
|
299354
301176
|
}
|
|
299355
301177
|
var k5;
|
|
299356
301178
|
var w5;
|
|
@@ -299361,13 +301183,13 @@ function E6() {
|
|
|
299361
301183
|
const u6 = n$3(), x6 = H$2.posix, y4 = w$1(), P6 = Symbol("slurp"), a8 = Symbol("type");
|
|
299362
301184
|
|
|
299363
301185
|
class B4 {
|
|
299364
|
-
constructor(e11, t9, i7,
|
|
299365
|
-
this.cksumValid = false, this.needPax = false, this.nullBlock = false, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[a8] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(e11) ? this.decode(e11, t9 || 0, i7,
|
|
301186
|
+
constructor(e11, t9, i7, h7) {
|
|
301187
|
+
this.cksumValid = false, this.needPax = false, this.nullBlock = false, this.block = null, this.path = null, this.mode = null, this.uid = null, this.gid = null, this.size = null, this.mtime = null, this.cksum = null, this[a8] = "0", this.linkpath = null, this.uname = null, this.gname = null, this.devmaj = 0, this.devmin = 0, this.atime = null, this.ctime = null, Buffer.isBuffer(e11) ? this.decode(e11, t9 || 0, i7, h7) : e11 && this.set(e11);
|
|
299366
301188
|
}
|
|
299367
|
-
decode(e11, t9, i7,
|
|
301189
|
+
decode(e11, t9, i7, h7) {
|
|
299368
301190
|
if (t9 || (t9 = 0), !e11 || !(e11.length >= t9 + 512))
|
|
299369
301191
|
throw new Error("need 512 bytes for header");
|
|
299370
|
-
if (this.path = d6(e11, t9, 100), this.mode = r7(e11, t9 + 100, 8), this.uid = r7(e11, t9 + 108, 8), this.gid = r7(e11, t9 + 116, 8), this.size = r7(e11, t9 + 124, 12), this.mtime = o8(e11, t9 + 136, 12), this.cksum = r7(e11, t9 + 148, 12), this[P6](i7), this[P6](
|
|
301192
|
+
if (this.path = d6(e11, t9, 100), this.mode = r7(e11, t9 + 100, 8), this.uid = r7(e11, t9 + 108, 8), this.gid = r7(e11, t9 + 116, 8), this.size = r7(e11, t9 + 124, 12), this.mtime = o8(e11, t9 + 136, 12), this.cksum = r7(e11, t9 + 148, 12), this[P6](i7), this[P6](h7, true), this[a8] = d6(e11, t9 + 156, 1), this[a8] === "" && (this[a8] = "0"), this[a8] === "0" && this.path.slice(-1) === "/" && (this[a8] = "5"), this[a8] === "5" && (this.size = 0), this.linkpath = d6(e11, t9 + 157, 100), e11.slice(t9 + 257, t9 + 265).toString() === "ustar\x0000")
|
|
299371
301193
|
if (this.uname = d6(e11, t9 + 265, 32), this.gname = d6(e11, t9 + 297, 32), this.devmaj = r7(e11, t9 + 329, 8), this.devmin = r7(e11, t9 + 337, 8), e11[t9 + 475] !== 0) {
|
|
299372
301194
|
const n7 = d6(e11, t9 + 345, 155);
|
|
299373
301195
|
this.path = n7 + "/" + this.path;
|
|
@@ -299389,8 +301211,8 @@ function E6() {
|
|
|
299389
301211
|
encode(e11, t9) {
|
|
299390
301212
|
if (e11 || (e11 = this.block = Buffer.alloc(512), t9 = 0), t9 || (t9 = 0), !(e11.length >= t9 + 512))
|
|
299391
301213
|
throw new Error("need 512 bytes for header");
|
|
299392
|
-
const i7 = this.ctime || this.atime ? 130 : 155,
|
|
299393
|
-
this.needPax =
|
|
301214
|
+
const i7 = this.ctime || this.atime ? 130 : 155, h7 = L5(this.path || "", i7), l4 = h7[0], n7 = h7[1];
|
|
301215
|
+
this.needPax = h7[2], this.needPax = m7(e11, t9, 100, l4) || this.needPax, this.needPax = c3(e11, t9 + 100, 8, this.mode) || this.needPax, this.needPax = c3(e11, t9 + 108, 8, this.uid) || this.needPax, this.needPax = c3(e11, t9 + 116, 8, this.gid) || this.needPax, this.needPax = c3(e11, t9 + 124, 12, this.size) || this.needPax, this.needPax = g5(e11, t9 + 136, 12, this.mtime) || this.needPax, e11[t9 + 156] = this[a8].charCodeAt(0), this.needPax = m7(e11, t9 + 157, 100, this.linkpath) || this.needPax, e11.write("ustar\x0000", t9 + 257, 8), this.needPax = m7(e11, t9 + 265, 32, this.uname) || this.needPax, this.needPax = m7(e11, t9 + 297, 32, this.gname) || this.needPax, this.needPax = c3(e11, t9 + 329, 8, this.devmaj) || this.needPax, this.needPax = c3(e11, t9 + 337, 8, this.devmin) || this.needPax, this.needPax = m7(e11, t9 + 345, i7, n7) || this.needPax, e11[t9 + 475] !== 0 ? this.needPax = m7(e11, t9 + 345, 155, n7) || this.needPax : (this.needPax = m7(e11, t9 + 345, 130, n7) || this.needPax, this.needPax = g5(e11, t9 + 476, 12, this.atime) || this.needPax, this.needPax = g5(e11, t9 + 488, 12, this.ctime) || this.needPax);
|
|
299394
301216
|
let S4 = 8 * 32;
|
|
299395
301217
|
for (let p5 = t9;p5 < t9 + 148; p5++)
|
|
299396
301218
|
S4 += e11[p5];
|
|
@@ -299413,15 +301235,15 @@ function E6() {
|
|
|
299413
301235
|
}
|
|
299414
301236
|
}
|
|
299415
301237
|
const L5 = (s7, e11) => {
|
|
299416
|
-
let i7 = s7,
|
|
301238
|
+
let i7 = s7, h7 = "", l4;
|
|
299417
301239
|
const n7 = x6.parse(s7).root || ".";
|
|
299418
301240
|
if (Buffer.byteLength(i7) < 100)
|
|
299419
|
-
l4 = [i7,
|
|
301241
|
+
l4 = [i7, h7, false];
|
|
299420
301242
|
else {
|
|
299421
|
-
|
|
301243
|
+
h7 = x6.dirname(i7), i7 = x6.basename(i7);
|
|
299422
301244
|
do
|
|
299423
|
-
Buffer.byteLength(i7) <= 100 && Buffer.byteLength(
|
|
299424
|
-
while (
|
|
301245
|
+
Buffer.byteLength(i7) <= 100 && Buffer.byteLength(h7) <= e11 ? l4 = [i7, h7, false] : Buffer.byteLength(i7) > 100 && Buffer.byteLength(h7) <= e11 ? l4 = [i7.slice(0, 99), h7, true] : (i7 = x6.join(x6.basename(h7), i7), h7 = x6.dirname(h7));
|
|
301246
|
+
while (h7 !== n7 && !l4);
|
|
299425
301247
|
l4 || (l4 = [s7.slice(0, 99), "", true]);
|
|
299426
301248
|
}
|
|
299427
301249
|
return l4;
|
|
@@ -299451,7 +301273,7 @@ function c$3() {
|
|
|
299451
301273
|
i7.push(n7);
|
|
299452
301274
|
});
|
|
299453
301275
|
else if (arguments.length > 0)
|
|
299454
|
-
for (var e11 = 0,
|
|
301276
|
+
for (var e11 = 0, h7 = arguments.length;e11 < h7; e11++)
|
|
299455
301277
|
i7.push(arguments[e11]);
|
|
299456
301278
|
return i7;
|
|
299457
301279
|
}
|
|
@@ -299492,12 +301314,12 @@ function c$3() {
|
|
|
299492
301314
|
}
|
|
299493
301315
|
}, r7.prototype.forEach = function(t9, i7) {
|
|
299494
301316
|
i7 = i7 || this;
|
|
299495
|
-
for (var e11 = this.head,
|
|
299496
|
-
t9.call(i7, e11.value,
|
|
301317
|
+
for (var e11 = this.head, h7 = 0;e11 !== null; h7++)
|
|
301318
|
+
t9.call(i7, e11.value, h7, this), e11 = e11.next;
|
|
299497
301319
|
}, r7.prototype.forEachReverse = function(t9, i7) {
|
|
299498
301320
|
i7 = i7 || this;
|
|
299499
|
-
for (var e11 = this.tail,
|
|
299500
|
-
t9.call(i7, e11.value,
|
|
301321
|
+
for (var e11 = this.tail, h7 = this.length - 1;e11 !== null; h7--)
|
|
301322
|
+
t9.call(i7, e11.value, h7, this), e11 = e11.prev;
|
|
299501
301323
|
}, r7.prototype.get = function(t9) {
|
|
299502
301324
|
for (var i7 = 0, e11 = this.head;e11 !== null && i7 < t9; i7++)
|
|
299503
301325
|
e11 = e11.next;
|
|
@@ -299510,35 +301332,35 @@ function c$3() {
|
|
|
299510
301332
|
return e11.value;
|
|
299511
301333
|
}, r7.prototype.map = function(t9, i7) {
|
|
299512
301334
|
i7 = i7 || this;
|
|
299513
|
-
for (var e11 = new r7,
|
|
299514
|
-
e11.push(t9.call(i7,
|
|
301335
|
+
for (var e11 = new r7, h7 = this.head;h7 !== null; )
|
|
301336
|
+
e11.push(t9.call(i7, h7.value, this)), h7 = h7.next;
|
|
299515
301337
|
return e11;
|
|
299516
301338
|
}, r7.prototype.mapReverse = function(t9, i7) {
|
|
299517
301339
|
i7 = i7 || this;
|
|
299518
|
-
for (var e11 = new r7,
|
|
299519
|
-
e11.push(t9.call(i7,
|
|
301340
|
+
for (var e11 = new r7, h7 = this.tail;h7 !== null; )
|
|
301341
|
+
e11.push(t9.call(i7, h7.value, this)), h7 = h7.prev;
|
|
299520
301342
|
return e11;
|
|
299521
301343
|
}, r7.prototype.reduce = function(t9, i7) {
|
|
299522
|
-
var e11,
|
|
301344
|
+
var e11, h7 = this.head;
|
|
299523
301345
|
if (arguments.length > 1)
|
|
299524
301346
|
e11 = i7;
|
|
299525
301347
|
else if (this.head)
|
|
299526
|
-
|
|
301348
|
+
h7 = this.head.next, e11 = this.head.value;
|
|
299527
301349
|
else
|
|
299528
301350
|
throw new TypeError("Reduce of empty list with no initial value");
|
|
299529
|
-
for (var n7 = 0;
|
|
299530
|
-
e11 = t9(e11,
|
|
301351
|
+
for (var n7 = 0;h7 !== null; n7++)
|
|
301352
|
+
e11 = t9(e11, h7.value, n7), h7 = h7.next;
|
|
299531
301353
|
return e11;
|
|
299532
301354
|
}, r7.prototype.reduceReverse = function(t9, i7) {
|
|
299533
|
-
var e11,
|
|
301355
|
+
var e11, h7 = this.tail;
|
|
299534
301356
|
if (arguments.length > 1)
|
|
299535
301357
|
e11 = i7;
|
|
299536
301358
|
else if (this.tail)
|
|
299537
|
-
|
|
301359
|
+
h7 = this.tail.prev, e11 = this.tail.value;
|
|
299538
301360
|
else
|
|
299539
301361
|
throw new TypeError("Reduce of empty list with no initial value");
|
|
299540
|
-
for (var n7 = this.length - 1;
|
|
299541
|
-
e11 = t9(e11,
|
|
301362
|
+
for (var n7 = this.length - 1;h7 !== null; n7--)
|
|
301363
|
+
e11 = t9(e11, h7.value, n7), h7 = h7.prev;
|
|
299542
301364
|
return e11;
|
|
299543
301365
|
}, r7.prototype.toArray = function() {
|
|
299544
301366
|
for (var t9 = new Array(this.length), i7 = 0, e11 = this.head;e11 !== null; i7++)
|
|
@@ -299554,9 +301376,9 @@ function c$3() {
|
|
|
299554
301376
|
if (i7 < t9 || i7 < 0)
|
|
299555
301377
|
return e11;
|
|
299556
301378
|
t9 < 0 && (t9 = 0), i7 > this.length && (i7 = this.length);
|
|
299557
|
-
for (var
|
|
301379
|
+
for (var h7 = 0, n7 = this.head;n7 !== null && h7 < t9; h7++)
|
|
299558
301380
|
n7 = n7.next;
|
|
299559
|
-
for (;n7 !== null &&
|
|
301381
|
+
for (;n7 !== null && h7 < i7; h7++, n7 = n7.next)
|
|
299560
301382
|
e11.push(n7.value);
|
|
299561
301383
|
return e11;
|
|
299562
301384
|
}, r7.prototype.sliceReverse = function(t9, i7) {
|
|
@@ -299565,31 +301387,31 @@ function c$3() {
|
|
|
299565
301387
|
if (i7 < t9 || i7 < 0)
|
|
299566
301388
|
return e11;
|
|
299567
301389
|
t9 < 0 && (t9 = 0), i7 > this.length && (i7 = this.length);
|
|
299568
|
-
for (var
|
|
301390
|
+
for (var h7 = this.length, n7 = this.tail;n7 !== null && h7 > i7; h7--)
|
|
299569
301391
|
n7 = n7.prev;
|
|
299570
|
-
for (;n7 !== null &&
|
|
301392
|
+
for (;n7 !== null && h7 > t9; h7--, n7 = n7.prev)
|
|
299571
301393
|
e11.push(n7.value);
|
|
299572
301394
|
return e11;
|
|
299573
301395
|
}, r7.prototype.splice = function(t9, i7, ...e11) {
|
|
299574
301396
|
t9 > this.length && (t9 = this.length - 1), t9 < 0 && (t9 = this.length + t9);
|
|
299575
|
-
for (var
|
|
301397
|
+
for (var h7 = 0, n7 = this.head;n7 !== null && h7 < t9; h7++)
|
|
299576
301398
|
n7 = n7.next;
|
|
299577
|
-
for (var l4 = [],
|
|
301399
|
+
for (var l4 = [], h7 = 0;n7 && h7 < i7; h7++)
|
|
299578
301400
|
l4.push(n7.value), n7 = this.removeNode(n7);
|
|
299579
301401
|
n7 === null && (n7 = this.tail), n7 !== this.head && n7 !== this.tail && (n7 = n7.prev);
|
|
299580
|
-
for (var
|
|
299581
|
-
n7 = v6(this, n7, e11[
|
|
301402
|
+
for (var h7 = 0;h7 < e11.length; h7++)
|
|
301403
|
+
n7 = v6(this, n7, e11[h7]);
|
|
299582
301404
|
return l4;
|
|
299583
301405
|
}, r7.prototype.reverse = function() {
|
|
299584
301406
|
for (var t9 = this.head, i7 = this.tail, e11 = t9;e11 !== null; e11 = e11.prev) {
|
|
299585
|
-
var
|
|
299586
|
-
e11.prev = e11.next, e11.next =
|
|
301407
|
+
var h7 = e11.prev;
|
|
301408
|
+
e11.prev = e11.next, e11.next = h7;
|
|
299587
301409
|
}
|
|
299588
301410
|
return this.head = i7, this.tail = t9, this;
|
|
299589
301411
|
};
|
|
299590
301412
|
function v6(t9, i7, e11) {
|
|
299591
|
-
var
|
|
299592
|
-
return
|
|
301413
|
+
var h7 = i7 === t9.head ? new s7(e11, null, i7, t9) : new s7(e11, i7, i7.next, t9);
|
|
301414
|
+
return h7.next === null && (t9.tail = h7), h7.prev === null && (t9.head = h7), t9.length++, h7;
|
|
299593
301415
|
}
|
|
299594
301416
|
function f5(t9, i7) {
|
|
299595
301417
|
t9.tail = new s7(i7, t9.tail, null, t9), t9.head || (t9.head = t9.tail), t9.length++;
|
|
@@ -299597,10 +301419,10 @@ function c$3() {
|
|
|
299597
301419
|
function o8(t9, i7) {
|
|
299598
301420
|
t9.head = new s7(i7, null, t9.head, t9), t9.tail || (t9.tail = t9.head), t9.length++;
|
|
299599
301421
|
}
|
|
299600
|
-
function s7(t9, i7, e11,
|
|
301422
|
+
function s7(t9, i7, e11, h7) {
|
|
299601
301423
|
if (!(this instanceof s7))
|
|
299602
|
-
return new s7(t9, i7, e11,
|
|
299603
|
-
this.list =
|
|
301424
|
+
return new s7(t9, i7, e11, h7);
|
|
301425
|
+
this.list = h7, this.value = t9, i7 ? (i7.next = this, this.prev = i7) : this.prev = null, e11 ? (e11.prev = this, this.next = e11) : this.next = null;
|
|
299604
301426
|
}
|
|
299605
301427
|
try {
|
|
299606
301428
|
i$4()(r7);
|
|
@@ -299613,7 +301435,7 @@ function ft2() {
|
|
|
299613
301435
|
if (X$1)
|
|
299614
301436
|
return s$5;
|
|
299615
301437
|
X$1 = 1;
|
|
299616
|
-
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q6 = ot2, G4 = ht3.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R7 = Symbol("emittingEnd"), g5 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $5 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b4 = Symbol("resume"), i7 = Symbol("buffer"), a8 = Symbol("pipes"), n7 = Symbol("bufferLength"), j3 = Symbol("bufferPush"),
|
|
301438
|
+
const H4 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Z4 = nt2, q6 = ot2, G4 = ht3.StringDecoder, m7 = Symbol("EOF"), d6 = Symbol("maybeEmitEnd"), y4 = Symbol("emittedEnd"), R7 = Symbol("emittingEnd"), g5 = Symbol("emittedError"), B4 = Symbol("closed"), Y4 = Symbol("read"), T4 = Symbol("flush"), $5 = Symbol("flushChunk"), f5 = Symbol("encoding"), c3 = Symbol("decoder"), M5 = Symbol("flowing"), S4 = Symbol("paused"), b4 = Symbol("resume"), i7 = Symbol("buffer"), a8 = Symbol("pipes"), n7 = Symbol("bufferLength"), j3 = Symbol("bufferPush"), I7 = Symbol("bufferShift"), o8 = Symbol("objectMode"), r7 = Symbol("destroyed"), P6 = Symbol("error"), x6 = Symbol("emitData"), V6 = Symbol("emitEnd"), N6 = Symbol("emitEnd2"), p5 = Symbol("async"), _5 = Symbol("abort"), O5 = Symbol("aborted"), E7 = Symbol("signal"), w6 = (h7) => Promise.resolve().then(h7), J4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", K4 = J4 && Symbol.asyncIterator || Symbol("asyncIterator not implemented"), W5 = J4 && Symbol.iterator || Symbol("iterator not implemented"), k6 = (h7) => h7 === "end" || h7 === "finish" || h7 === "prefinish", tt2 = (h7) => h7 instanceof ArrayBuffer || typeof h7 == "object" && h7.constructor && h7.constructor.name === "ArrayBuffer" && h7.byteLength >= 0, et3 = (h7) => !Buffer.isBuffer(h7) && ArrayBuffer.isView(h7);
|
|
299617
301439
|
|
|
299618
301440
|
class z4 {
|
|
299619
301441
|
constructor(t9, e11, s7) {
|
|
@@ -299639,7 +301461,7 @@ function ft2() {
|
|
|
299639
301461
|
|
|
299640
301462
|
class F3 extends q6 {
|
|
299641
301463
|
constructor(t9) {
|
|
299642
|
-
super(), this[M5] = false, this[S4] = false, this[a8] = [], this[i7] = [], this[o8] = t9 && t9.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t9 && t9.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t9 && !!t9.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R7] = false, this[B4] = false, this[g5] = null, this.writable = true, this.readable = true, this[n7] = 0, this[r7] = false, t9 && t9.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i7] }), t9 && t9.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a8] }), this[E7] = t9 && t9.signal, this[
|
|
301464
|
+
super(), this[M5] = false, this[S4] = false, this[a8] = [], this[i7] = [], this[o8] = t9 && t9.objectMode || false, this[o8] ? this[f5] = null : this[f5] = t9 && t9.encoding || null, this[f5] === "buffer" && (this[f5] = null), this[p5] = t9 && !!t9.async || false, this[c3] = this[f5] ? new G4(this[f5]) : null, this[m7] = false, this[y4] = false, this[R7] = false, this[B4] = false, this[g5] = null, this.writable = true, this.readable = true, this[n7] = 0, this[r7] = false, t9 && t9.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[i7] }), t9 && t9.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[a8] }), this[E7] = t9 && t9.signal, this[O5] = false, this[E7] && (this[E7].addEventListener("abort", () => this[_5]()), this[E7].aborted && this[_5]());
|
|
299643
301465
|
}
|
|
299644
301466
|
get bufferLength() {
|
|
299645
301467
|
return this[n7];
|
|
@@ -299670,14 +301492,14 @@ function ft2() {
|
|
|
299670
301492
|
this[p5] = this[p5] || !!t9;
|
|
299671
301493
|
}
|
|
299672
301494
|
[_5]() {
|
|
299673
|
-
this[
|
|
301495
|
+
this[O5] = true, this.emit("abort", this[E7].reason), this.destroy(this[E7].reason);
|
|
299674
301496
|
}
|
|
299675
301497
|
get aborted() {
|
|
299676
|
-
return this[
|
|
301498
|
+
return this[O5];
|
|
299677
301499
|
}
|
|
299678
301500
|
set aborted(t9) {}
|
|
299679
301501
|
write(t9, e11, s7) {
|
|
299680
|
-
if (this[
|
|
301502
|
+
if (this[O5])
|
|
299681
301503
|
return false;
|
|
299682
301504
|
if (this[m7])
|
|
299683
301505
|
throw new Error("write after end");
|
|
@@ -299697,7 +301519,7 @@ function ft2() {
|
|
|
299697
301519
|
return this[d6](), e11;
|
|
299698
301520
|
}
|
|
299699
301521
|
[Y4](t9, e11) {
|
|
299700
|
-
return t9 === e11.length || t9 === null ? this[
|
|
301522
|
+
return t9 === e11.length || t9 === null ? this[I7]() : (this[i7][0] = e11.slice(t9), e11 = e11.slice(0, t9), this[n7] -= t9), this.emit("data", e11), !this[i7].length && !this[m7] && this.emit("drain"), e11;
|
|
299701
301523
|
}
|
|
299702
301524
|
end(t9, e11, s7) {
|
|
299703
301525
|
return typeof t9 == "function" && (s7 = t9, t9 = null), typeof e11 == "function" && (s7 = e11, e11 = "utf8"), t9 && this.write(t9, e11), s7 && this.once("end", s7), this[m7] = true, this.writable = false, (this.flowing || !this[S4]) && this[d6](), this;
|
|
@@ -299723,13 +301545,13 @@ function ft2() {
|
|
|
299723
301545
|
[j3](t9) {
|
|
299724
301546
|
this[o8] ? this[n7] += 1 : this[n7] += t9.length, this[i7].push(t9);
|
|
299725
301547
|
}
|
|
299726
|
-
[
|
|
301548
|
+
[I7]() {
|
|
299727
301549
|
return this[o8] ? this[n7] -= 1 : this[n7] -= this[i7][0].length, this[i7].shift();
|
|
299728
301550
|
}
|
|
299729
301551
|
[T4](t9) {
|
|
299730
301552
|
do
|
|
299731
301553
|
;
|
|
299732
|
-
while (this[$5](this[
|
|
301554
|
+
while (this[$5](this[I7]()) && this[i7].length);
|
|
299733
301555
|
!t9 && !this[i7].length && !this[m7] && this.emit("drain");
|
|
299734
301556
|
}
|
|
299735
301557
|
[$5](t9) {
|
|
@@ -299930,7 +301752,7 @@ function f$2() {
|
|
|
299930
301752
|
a$5 = 1;
|
|
299931
301753
|
const c3 = E6(), d6 = H$2;
|
|
299932
301754
|
|
|
299933
|
-
class
|
|
301755
|
+
class h7 {
|
|
299934
301756
|
constructor(e11, n7) {
|
|
299935
301757
|
this.atime = e11.atime || null, this.charset = e11.charset || null, this.comment = e11.comment || null, this.ctime = e11.ctime || null, this.gid = e11.gid || null, this.gname = e11.gname || null, this.linkpath = e11.linkpath || null, this.mtime = e11.mtime || null, this.path = e11.path || null, this.size = e11.size || null, this.uid = e11.uid || null, this.uname = e11.uname || null, this.dev = e11.dev || null, this.ino = e11.ino || null, this.nlink = e11.nlink || null, this.global = n7 || false;
|
|
299936
301758
|
}
|
|
@@ -299958,7 +301780,7 @@ function f$2() {
|
|
|
299958
301780
|
return i7 + t9 >= Math.pow(10, t9) && (t9 += 1), t9 + i7 + l4;
|
|
299959
301781
|
}
|
|
299960
301782
|
}
|
|
299961
|
-
|
|
301783
|
+
h7.parse = (s7, e11, n7) => new h7(o8(u6(s7), e11), n7);
|
|
299962
301784
|
const o8 = (s7, e11) => e11 ? Object.keys(s7).reduce((n7, l4) => (n7[l4] = s7[l4], n7), e11) : s7, u6 = (s7) => s7.replace(/\n$/, "").split(`
|
|
299963
301785
|
`).reduce(m7, Object.create(null)), m7 = (s7, e11) => {
|
|
299964
301786
|
const n7 = parseInt(e11, 10);
|
|
@@ -299971,7 +301793,7 @@ function f$2() {
|
|
|
299971
301793
|
const t9 = l4.join("=");
|
|
299972
301794
|
return s7[i7] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(i7) ? new Date(t9 * 1000) : /^[0-9]+$/.test(t9) ? +t9 : t9, s7;
|
|
299973
301795
|
};
|
|
299974
|
-
return r$2 =
|
|
301796
|
+
return r$2 = h7, r$2;
|
|
299975
301797
|
}
|
|
299976
301798
|
var i$3 = {};
|
|
299977
301799
|
var _5;
|
|
@@ -299989,7 +301811,7 @@ function tt2() {
|
|
|
299989
301811
|
if (H$1)
|
|
299990
301812
|
return j3;
|
|
299991
301813
|
H$1 = 1;
|
|
299992
|
-
const
|
|
301814
|
+
const I7 = typeof process == "object" && process ? process : { stdout: null, stderr: null }, Y4 = nt2, x6 = ot2, N6 = ht3.StringDecoder, u6 = Symbol("EOF"), a8 = Symbol("maybeEmitEnd"), c3 = Symbol("emittedEnd"), S4 = Symbol("emittingEnd"), E7 = Symbol("emittedError"), w6 = Symbol("closed"), P6 = Symbol("read"), L5 = Symbol("flush"), _6 = Symbol("flushChunk"), h7 = Symbol("encoding"), m7 = Symbol("decoder"), M5 = Symbol("flowing"), y4 = Symbol("paused"), p5 = Symbol("resume"), s7 = Symbol("bufferLength"), T5 = Symbol("bufferPush"), B4 = Symbol("bufferShift"), r7 = Symbol("objectMode"), n7 = Symbol("destroyed"), D3 = Symbol("emitData"), F3 = Symbol("emitEnd"), R7 = Symbol("emitEnd2"), d6 = Symbol("async"), b4 = (o8) => Promise.resolve().then(o8), C4 = commonjsGlobal._MP_NO_ITERATOR_SYMBOLS_ !== "1", $5 = 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, J4 = (o8) => !Buffer.isBuffer(o8) && ArrayBuffer.isView(o8);
|
|
299993
301815
|
|
|
299994
301816
|
class U6 {
|
|
299995
301817
|
constructor(t9, e11, i7) {
|
|
@@ -300014,20 +301836,20 @@ function tt2() {
|
|
|
300014
301836
|
}
|
|
300015
301837
|
return j3 = class q6 extends x6 {
|
|
300016
301838
|
constructor(t9) {
|
|
300017
|
-
super(), this[M5] = false, this[y4] = false, this.pipes = [], this.buffer = [], this[r7] = t9 && t9.objectMode || false, this[r7] ? this[
|
|
301839
|
+
super(), this[M5] = false, this[y4] = false, this.pipes = [], this.buffer = [], this[r7] = t9 && t9.objectMode || false, this[r7] ? this[h7] = null : this[h7] = t9 && t9.encoding || null, this[h7] === "buffer" && (this[h7] = null), this[d6] = t9 && !!t9.async || false, this[m7] = this[h7] ? new N6(this[h7]) : null, this[u6] = false, this[c3] = false, this[S4] = false, this[w6] = false, this[E7] = null, this.writable = true, this.readable = true, this[s7] = 0, this[n7] = false;
|
|
300018
301840
|
}
|
|
300019
301841
|
get bufferLength() {
|
|
300020
301842
|
return this[s7];
|
|
300021
301843
|
}
|
|
300022
301844
|
get encoding() {
|
|
300023
|
-
return this[
|
|
301845
|
+
return this[h7];
|
|
300024
301846
|
}
|
|
300025
301847
|
set encoding(t9) {
|
|
300026
301848
|
if (this[r7])
|
|
300027
301849
|
throw new Error("cannot set encoding in objectMode");
|
|
300028
|
-
if (this[
|
|
301850
|
+
if (this[h7] && t9 !== this[h7] && (this[m7] && this[m7].lastNeed || this[s7]))
|
|
300029
301851
|
throw new Error("cannot change encoding");
|
|
300030
|
-
this[
|
|
301852
|
+
this[h7] !== t9 && (this[m7] = t9 ? new N6(t9) : null, this.buffer.length && (this.buffer = this.buffer.map((e11) => this[m7].write(e11)))), this[h7] = t9;
|
|
300031
301853
|
}
|
|
300032
301854
|
setEncoding(t9) {
|
|
300033
301855
|
this.encoding = t9;
|
|
@@ -300051,7 +301873,7 @@ function tt2() {
|
|
|
300051
301873
|
return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
|
|
300052
301874
|
typeof e11 == "function" && (i7 = e11, e11 = "utf8"), e11 || (e11 = "utf8");
|
|
300053
301875
|
const l4 = this[d6] ? b4 : (f5) => f5();
|
|
300054
|
-
return !this[r7] && !Buffer.isBuffer(t9) && (
|
|
301876
|
+
return !this[r7] && !Buffer.isBuffer(t9) && (J4(t9) ? t9 = Buffer.from(t9.buffer, t9.byteOffset, t9.byteLength) : v6(t9) ? t9 = Buffer.from(t9) : typeof t9 != "string" && (this.objectMode = true)), this[r7] ? (this.flowing && this[s7] !== 0 && this[L5](true), this.flowing ? this.emit("data", t9) : this[T5](t9), this[s7] !== 0 && this.emit("readable"), i7 && l4(i7), this.flowing) : t9.length ? (typeof t9 == "string" && !(e11 === this[h7] && !this[m7].lastNeed) && (t9 = Buffer.from(t9, e11)), Buffer.isBuffer(t9) && this[h7] && (t9 = this[m7].write(t9)), this.flowing && this[s7] !== 0 && this[L5](true), this.flowing ? this.emit("data", t9) : this[T5](t9), this[s7] !== 0 && this.emit("readable"), i7 && l4(i7), this.flowing) : (this[s7] !== 0 && this.emit("readable"), i7 && l4(i7), this.flowing);
|
|
300055
301877
|
}
|
|
300056
301878
|
read(t9) {
|
|
300057
301879
|
if (this[n7])
|
|
@@ -300105,7 +301927,7 @@ function tt2() {
|
|
|
300105
301927
|
if (this[n7])
|
|
300106
301928
|
return;
|
|
300107
301929
|
const i7 = this[c3];
|
|
300108
|
-
return e11 = e11 || {}, t9 ===
|
|
301930
|
+
return e11 = e11 || {}, t9 === I7.stdout || t9 === I7.stderr ? e11.end = false : e11.end = e11.end !== false, e11.proxyErrors = !!e11.proxyErrors, i7 ? e11.end && t9.end() : (this.pipes.push(e11.proxyErrors ? new K4(this, t9, e11) : new U6(this, t9, e11)), this[d6] ? b4(() => this[p5]()) : this[p5]()), t9;
|
|
300109
301931
|
}
|
|
300110
301932
|
unpipe(t9) {
|
|
300111
301933
|
const e11 = this.pipes.find((i7) => i7.dest === t9);
|
|
@@ -300182,7 +302004,7 @@ function tt2() {
|
|
|
300182
302004
|
}), e11.then(() => t9);
|
|
300183
302005
|
}
|
|
300184
302006
|
concat() {
|
|
300185
|
-
return this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this.collect().then((t9) => this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this[
|
|
302007
|
+
return this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this.collect().then((t9) => this[r7] ? Promise.reject(new Error("cannot concat in objectMode")) : this[h7] ? t9.join("") : Buffer.concat(t9, t9.dataLength));
|
|
300186
302008
|
}
|
|
300187
302009
|
promise() {
|
|
300188
302010
|
return new Promise((t9, e11) => {
|
|
@@ -300198,14 +302020,14 @@ function tt2() {
|
|
|
300198
302020
|
return Promise.resolve({ done: true });
|
|
300199
302021
|
let i7 = null, l4 = null;
|
|
300200
302022
|
const f5 = (g5) => {
|
|
300201
|
-
this.removeListener("data", A5), this.removeListener("end",
|
|
302023
|
+
this.removeListener("data", A5), this.removeListener("end", O5), l4(g5);
|
|
300202
302024
|
}, A5 = (g5) => {
|
|
300203
|
-
this.removeListener("error", f5), this.removeListener("end",
|
|
300204
|
-
},
|
|
302025
|
+
this.removeListener("error", f5), this.removeListener("end", O5), this.pause(), i7({ value: g5, done: !!this[u6] });
|
|
302026
|
+
}, O5 = () => {
|
|
300205
302027
|
this.removeListener("error", f5), this.removeListener("data", A5), i7({ done: true });
|
|
300206
302028
|
}, W5 = () => f5(new Error("stream destroyed"));
|
|
300207
302029
|
return new Promise((g5, z4) => {
|
|
300208
|
-
l4 = z4, i7 = g5, this.once(n7, W5), this.once("error", f5), this.once("end",
|
|
302030
|
+
l4 = z4, i7 = g5, this.once(n7, W5), this.once("error", f5), this.once("end", O5), this.once("data", A5);
|
|
300209
302031
|
});
|
|
300210
302032
|
} };
|
|
300211
302033
|
}
|
|
@@ -300224,7 +302046,7 @@ function tt2() {
|
|
|
300224
302046
|
}, j3;
|
|
300225
302047
|
}
|
|
300226
302048
|
var C4;
|
|
300227
|
-
function
|
|
302049
|
+
function J4() {
|
|
300228
302050
|
if (C4)
|
|
300229
302051
|
return i$3;
|
|
300230
302052
|
C4 = 1;
|
|
@@ -300238,13 +302060,13 @@ function J3() {
|
|
|
300238
302060
|
return "ZlibError";
|
|
300239
302061
|
}
|
|
300240
302062
|
}
|
|
300241
|
-
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"),
|
|
302063
|
+
const Z4 = Symbol("opts"), p5 = Symbol("flushFlag"), I7 = Symbol("finishFlushFlag"), y4 = Symbol("fullFlushFlag"), t9 = Symbol("handle"), _6 = Symbol("onError"), f5 = Symbol("sawError"), F3 = Symbol("level"), S4 = Symbol("strategy"), g5 = Symbol("ended");
|
|
300242
302064
|
|
|
300243
302065
|
class x6 extends L5 {
|
|
300244
302066
|
constructor(s7, e11) {
|
|
300245
302067
|
if (!s7 || typeof s7 != "object")
|
|
300246
302068
|
throw new TypeError("invalid options for ZlibBase constructor");
|
|
300247
|
-
super(s7), this[f5] = false, this[g5] = false, this[Z4] = s7, this[p5] = s7.flush, this[
|
|
302069
|
+
super(s7), this[f5] = false, this[g5] = false, this[Z4] = s7, this[p5] = s7.flush, this[I7] = s7.finishFlush;
|
|
300248
302070
|
try {
|
|
300249
302071
|
this[t9] = new z4[e11](s7);
|
|
300250
302072
|
} catch (i7) {
|
|
@@ -300265,7 +302087,7 @@ function J3() {
|
|
|
300265
302087
|
this.ended || (typeof s7 != "number" && (s7 = this[y4]), this.write(Object.assign(n7.alloc(0), { [p5]: s7 })));
|
|
300266
302088
|
}
|
|
300267
302089
|
end(s7, e11, i7) {
|
|
300268
|
-
return s7 && this.write(s7, e11), this.flush(this[
|
|
302090
|
+
return s7 && this.write(s7, e11), this.flush(this[I7]), this[g5] = true, super.end(null, null, i7);
|
|
300269
302091
|
}
|
|
300270
302092
|
get ended() {
|
|
300271
302093
|
return this[g5];
|
|
@@ -300278,10 +302100,10 @@ function J3() {
|
|
|
300278
302100
|
m7.close = () => {};
|
|
300279
302101
|
const G4 = this[t9].close;
|
|
300280
302102
|
this[t9].close = () => {}, n7.concat = (l4) => l4;
|
|
300281
|
-
let
|
|
302103
|
+
let h7;
|
|
300282
302104
|
try {
|
|
300283
302105
|
const l4 = typeof s7[p5] == "number" ? s7[p5] : this[p5];
|
|
300284
|
-
|
|
302106
|
+
h7 = this[t9]._processChunk(s7, l4), n7.concat = E7;
|
|
300285
302107
|
} catch (l4) {
|
|
300286
302108
|
n7.concat = E7, this[_6](new d6(l4));
|
|
300287
302109
|
} finally {
|
|
@@ -300289,13 +302111,13 @@ function J3() {
|
|
|
300289
302111
|
}
|
|
300290
302112
|
this[t9] && this[t9].on("error", (l4) => this[_6](new d6(l4)));
|
|
300291
302113
|
let b4;
|
|
300292
|
-
if (
|
|
300293
|
-
if (Array.isArray(
|
|
300294
|
-
b4 = this[c3](n7.from(
|
|
300295
|
-
for (let l4 = 1;l4 <
|
|
300296
|
-
b4 = this[c3](
|
|
302114
|
+
if (h7)
|
|
302115
|
+
if (Array.isArray(h7) && h7.length > 0) {
|
|
302116
|
+
b4 = this[c3](n7.from(h7[0]));
|
|
302117
|
+
for (let l4 = 1;l4 < h7.length; l4++)
|
|
302118
|
+
b4 = this[c3](h7[l4]);
|
|
300297
302119
|
} else
|
|
300298
|
-
b4 = this[c3](n7.from(
|
|
302120
|
+
b4 = this[c3](n7.from(h7));
|
|
300299
302121
|
return i7 && i7(), b4;
|
|
300300
302122
|
}
|
|
300301
302123
|
[c3](s7) {
|
|
@@ -300375,19 +302197,19 @@ function J3() {
|
|
|
300375
302197
|
}
|
|
300376
302198
|
}
|
|
300377
302199
|
|
|
300378
|
-
class
|
|
302200
|
+
class O5 extends x6 {
|
|
300379
302201
|
constructor(s7, e11) {
|
|
300380
302202
|
s7 = s7 || {}, s7.flush = s7.flush || u6.BROTLI_OPERATION_PROCESS, s7.finishFlush = s7.finishFlush || u6.BROTLI_OPERATION_FINISH, super(s7, e11), this[y4] = u6.BROTLI_OPERATION_FLUSH;
|
|
300381
302203
|
}
|
|
300382
302204
|
}
|
|
300383
302205
|
|
|
300384
|
-
class v6 extends
|
|
302206
|
+
class v6 extends O5 {
|
|
300385
302207
|
constructor(s7) {
|
|
300386
302208
|
super(s7, "BrotliCompress");
|
|
300387
302209
|
}
|
|
300388
302210
|
}
|
|
300389
302211
|
|
|
300390
|
-
class A5 extends
|
|
302212
|
+
class A5 extends O5 {
|
|
300391
302213
|
constructor(s7) {
|
|
300392
302214
|
super(s7, "BrotliDecompress");
|
|
300393
302215
|
}
|
|
@@ -300404,16 +302226,16 @@ function rt3() {
|
|
|
300404
302226
|
if (F$2)
|
|
300405
302227
|
return O$1;
|
|
300406
302228
|
F$2 = 1;
|
|
300407
|
-
const P6 = c$4(), $5 = E6(), v6 = nt2, W5 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C5 = f$2(), x6 =
|
|
302229
|
+
const P6 = c$4(), $5 = E6(), v6 = nt2, W5 = c$3(), G4 = 1024 * 1024, k6 = u$3(), C5 = f$2(), x6 = J4(), { nextTick: j4 } = nt$1, B4 = Buffer.from([31, 139]), h7 = Symbol("state"), d6 = Symbol("writeEntry"), a8 = Symbol("readEntry"), I7 = Symbol("nextEntry"), U6 = Symbol("processEntry"), l4 = Symbol("extendedHeader"), y4 = Symbol("globalExtendedHeader"), c3 = Symbol("meta"), H4 = Symbol("emitMeta"), n7 = Symbol("buffer"), f5 = Symbol("queue"), u6 = Symbol("ended"), L5 = Symbol("emittedEnd"), b4 = Symbol("emit"), r7 = Symbol("unzip"), _6 = Symbol("consumeChunk"), g5 = Symbol("consumeChunkSub"), q6 = Symbol("consumeBody"), z4 = Symbol("consumeMeta"), Y4 = Symbol("consumeHeader"), N6 = Symbol("consuming"), D3 = Symbol("bufferConcat"), M5 = Symbol("maybeEnd"), S4 = Symbol("writing"), m7 = Symbol("aborted"), T5 = Symbol("onDone"), E$1 = Symbol("sawValidEntry"), R7 = Symbol("sawNullBlock"), A5 = Symbol("sawEOF"), V6 = Symbol("closeStream"), K4 = (X5) => true;
|
|
300408
302230
|
return O$1 = P6(class extends v6 {
|
|
300409
302231
|
constructor(t9) {
|
|
300410
302232
|
t9 = t9 || {}, super(t9), this.file = t9.file || "", this[E$1] = null, this.on(T5, (s7) => {
|
|
300411
|
-
(this[
|
|
302233
|
+
(this[h7] === "begin" || this[E$1] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
|
|
300412
302234
|
}), t9.ondone ? this.on(T5, t9.ondone) : this.on(T5, (s7) => {
|
|
300413
302235
|
this.emit("prefinish"), this.emit("finish"), this.emit("end");
|
|
300414
302236
|
}), this.strict = !!t9.strict, this.maxMetaEntrySize = t9.maxMetaEntrySize || G4, this.filter = typeof t9.filter == "function" ? t9.filter : K4;
|
|
300415
302237
|
const i7 = t9.file && (t9.file.endsWith(".tar.br") || t9.file.endsWith(".tbr"));
|
|
300416
|
-
this.brotli = !t9.gzip && t9.brotli !== undefined ? t9.brotli : i7 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W5, this[n7] = null, this[a8] = null, this[d6] = null, this[
|
|
302238
|
+
this.brotli = !t9.gzip && t9.brotli !== undefined ? t9.brotli : i7 ? undefined : false, this.writable = true, this.readable = false, this[f5] = new W5, this[n7] = null, this[a8] = null, this[d6] = null, this[h7] = "begin", this[c3] = "", this[l4] = null, this[y4] = null, this[u6] = false, this[r7] = null, this[m7] = false, this[R7] = false, this[A5] = false, this.on("end", () => this[V6]()), typeof t9.onwarn == "function" && this.on("warn", t9.onwarn), typeof t9.onentry == "function" && this.on("entry", t9.onentry);
|
|
300417
302239
|
}
|
|
300418
302240
|
[Y4](t9, i7) {
|
|
300419
302241
|
this[E$1] === null && (this[E$1] = false);
|
|
@@ -300424,7 +302246,7 @@ function rt3() {
|
|
|
300424
302246
|
return this.warn("TAR_ENTRY_INVALID", o8);
|
|
300425
302247
|
}
|
|
300426
302248
|
if (s7.nullBlock)
|
|
300427
|
-
this[R7] ? (this[A5] = true, this[
|
|
302249
|
+
this[R7] ? (this[A5] = true, this[h7] === "begin" && (this[h7] = "header"), this[b4]("eof")) : (this[R7] = true, this[b4]("nullBlock"));
|
|
300428
302250
|
else if (this[R7] = false, !s7.cksumValid)
|
|
300429
302251
|
this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: s7 });
|
|
300430
302252
|
else if (!s7.path)
|
|
@@ -300445,7 +302267,7 @@ function rt3() {
|
|
|
300445
302267
|
e11.on("end", w6);
|
|
300446
302268
|
} else
|
|
300447
302269
|
this[E$1] = true;
|
|
300448
|
-
e11.meta ? e11.size > this.maxMetaEntrySize ? (e11.ignore = true, this[b4]("ignoredEntry", e11), this[
|
|
302270
|
+
e11.meta ? e11.size > this.maxMetaEntrySize ? (e11.ignore = true, this[b4]("ignoredEntry", e11), this[h7] = "ignore", e11.resume()) : e11.size > 0 && (this[c3] = "", e11.on("data", (w6) => this[c3] += w6), this[h7] = "meta") : (this[l4] = null, e11.ignore = e11.ignore || !this.filter(e11.path, e11), e11.ignore ? (this[b4]("ignoredEntry", e11), this[h7] = e11.remain ? "ignore" : "header", e11.resume()) : (e11.remain ? this[h7] = "body" : (this[h7] = "header", e11.end()), this[a8] ? this[f5].push(e11) : (this[f5].push(e11), this[I7]())));
|
|
300449
302271
|
}
|
|
300450
302272
|
}
|
|
300451
302273
|
}
|
|
@@ -300454,9 +302276,9 @@ function rt3() {
|
|
|
300454
302276
|
}
|
|
300455
302277
|
[U6](t9) {
|
|
300456
302278
|
let i7 = true;
|
|
300457
|
-
return t9 ? Array.isArray(t9) ? this.emit.apply(this, t9) : (this[a8] = t9, this.emit("entry", t9), t9.emittedEnd || (t9.on("end", (s7) => this[
|
|
302279
|
+
return t9 ? Array.isArray(t9) ? this.emit.apply(this, t9) : (this[a8] = t9, this.emit("entry", t9), t9.emittedEnd || (t9.on("end", (s7) => this[I7]()), i7 = false)) : (this[a8] = null, i7 = false), i7;
|
|
300458
302280
|
}
|
|
300459
|
-
[
|
|
302281
|
+
[I7]() {
|
|
300460
302282
|
do
|
|
300461
302283
|
;
|
|
300462
302284
|
while (this[U6](this[f5].shift()));
|
|
@@ -300467,7 +302289,7 @@ function rt3() {
|
|
|
300467
302289
|
}
|
|
300468
302290
|
[q6](t9, i7) {
|
|
300469
302291
|
const s7 = this[d6], o8 = s7.blockRemain, e11 = o8 >= t9.length && i7 === 0 ? t9 : t9.slice(i7, i7 + o8);
|
|
300470
|
-
return s7.write(e11), s7.blockRemain || (this[
|
|
302292
|
+
return s7.write(e11), s7.blockRemain || (this[h7] = "header", this[d6] = null, s7.end()), e11.length;
|
|
300471
302293
|
}
|
|
300472
302294
|
[z4](t9, i7) {
|
|
300473
302295
|
const s7 = this[d6], o8 = this[q6](t9, i7);
|
|
@@ -300571,7 +302393,7 @@ function rt3() {
|
|
|
300571
302393
|
let i7 = 0;
|
|
300572
302394
|
const s7 = t9.length;
|
|
300573
302395
|
for (;i7 + 512 <= s7 && !this[m7] && !this[A5]; )
|
|
300574
|
-
switch (this[
|
|
302396
|
+
switch (this[h7]) {
|
|
300575
302397
|
case "begin":
|
|
300576
302398
|
case "header":
|
|
300577
302399
|
this[Y4](t9, i7), i7 += 512;
|
|
@@ -300584,7 +302406,7 @@ function rt3() {
|
|
|
300584
302406
|
i7 += this[z4](t9, i7);
|
|
300585
302407
|
break;
|
|
300586
302408
|
default:
|
|
300587
|
-
throw new Error("invalid state: " + this[
|
|
302409
|
+
throw new Error("invalid state: " + this[h7]);
|
|
300588
302410
|
}
|
|
300589
302411
|
i7 < s7 && (this[n7] ? this[n7] = Buffer.concat([t9.slice(i7), this[n7]]) : this[n7] = t9.slice(i7));
|
|
300590
302412
|
}
|
|
@@ -300599,16 +302421,16 @@ function X5() {
|
|
|
300599
302421
|
if (v$1)
|
|
300600
302422
|
return s$4;
|
|
300601
302423
|
v$1 = 1;
|
|
300602
|
-
const H4 = tt2(),
|
|
302424
|
+
const H4 = tt2(), I7 = nt2.EventEmitter, r7 = V5;
|
|
300603
302425
|
let R7 = r7.writev;
|
|
300604
302426
|
if (!R7) {
|
|
300605
302427
|
const c3 = process.binding("fs"), t9 = c3.FSReqWrap || c3.FSReqCallback;
|
|
300606
302428
|
R7 = (e11, i7, $5, A5) => {
|
|
300607
|
-
const G4 = (
|
|
302429
|
+
const G4 = (J5, K4) => A5(J5, K4, i7), j4 = new t9;
|
|
300608
302430
|
j4.oncomplete = G4, c3.writeBuffers(e11, i7, $5, j4);
|
|
300609
302431
|
};
|
|
300610
302432
|
}
|
|
300611
|
-
const m7 = Symbol("_autoClose"),
|
|
302433
|
+
const m7 = Symbol("_autoClose"), h7 = Symbol("_close"), g5 = Symbol("_ended"), s7 = Symbol("_fd"), B4 = Symbol("_finished"), o8 = Symbol("_flags"), x6 = Symbol("_flush"), z4 = Symbol("_handleChunk"), T5 = Symbol("_makeBuf"), q6 = Symbol("_mode"), E7 = Symbol("_needDrain"), d6 = Symbol("_onerror"), y4 = Symbol("_onopen"), W5 = Symbol("_onread"), _6 = Symbol("_onwrite"), a8 = Symbol("_open"), l4 = Symbol("_path"), u6 = Symbol("_pos"), n7 = Symbol("_queue"), S4 = Symbol("_read"), M5 = Symbol("_readSize"), f5 = Symbol("_reading"), k6 = Symbol("_remain"), N6 = Symbol("_size"), C5 = Symbol("_write"), b4 = Symbol("_writing"), F3 = Symbol("_defaultFlag"), p5 = Symbol("_errored");
|
|
300612
302434
|
|
|
300613
302435
|
class D3 extends H4 {
|
|
300614
302436
|
constructor(t9, e11) {
|
|
@@ -300649,18 +302471,18 @@ function X5() {
|
|
|
300649
302471
|
[W5](t9, e11, i7) {
|
|
300650
302472
|
this[f5] = false, t9 ? this[d6](t9) : this[z4](e11, i7) && this[S4]();
|
|
300651
302473
|
}
|
|
300652
|
-
[
|
|
302474
|
+
[h7]() {
|
|
300653
302475
|
if (this[m7] && typeof this[s7] == "number") {
|
|
300654
302476
|
const t9 = this[s7];
|
|
300655
302477
|
this[s7] = null, r7.close(t9, (e11) => e11 ? this.emit("error", e11) : this.emit("close"));
|
|
300656
302478
|
}
|
|
300657
302479
|
}
|
|
300658
302480
|
[d6](t9) {
|
|
300659
|
-
this[f5] = true, this[
|
|
302481
|
+
this[f5] = true, this[h7](), this.emit("error", t9);
|
|
300660
302482
|
}
|
|
300661
302483
|
[z4](t9, e11) {
|
|
300662
302484
|
let i7 = false;
|
|
300663
|
-
return this[k6] -= t9, t9 > 0 && (i7 = super.write(t9 < e11.length ? e11.slice(0, t9) : e11)), (t9 === 0 || this[k6] <= 0) && (i7 = false, this[
|
|
302485
|
+
return this[k6] -= t9, t9 > 0 && (i7 = super.write(t9 < e11.length ? e11.slice(0, t9) : e11)), (t9 === 0 || this[k6] <= 0) && (i7 = false, this[h7](), super.end()), i7;
|
|
300664
302486
|
}
|
|
300665
302487
|
emit(t9, e11) {
|
|
300666
302488
|
switch (t9) {
|
|
@@ -300684,7 +302506,7 @@ function X5() {
|
|
|
300684
302506
|
try {
|
|
300685
302507
|
this[y4](null, r7.openSync(this[l4], "r")), t9 = false;
|
|
300686
302508
|
} finally {
|
|
300687
|
-
t9 && this[
|
|
302509
|
+
t9 && this[h7]();
|
|
300688
302510
|
}
|
|
300689
302511
|
}
|
|
300690
302512
|
[S4]() {
|
|
@@ -300701,10 +302523,10 @@ function X5() {
|
|
|
300701
302523
|
}
|
|
300702
302524
|
t9 = false;
|
|
300703
302525
|
} finally {
|
|
300704
|
-
t9 && this[
|
|
302526
|
+
t9 && this[h7]();
|
|
300705
302527
|
}
|
|
300706
302528
|
}
|
|
300707
|
-
[
|
|
302529
|
+
[h7]() {
|
|
300708
302530
|
if (this[m7] && typeof this[s7] == "number") {
|
|
300709
302531
|
const t9 = this[s7];
|
|
300710
302532
|
this[s7] = null, r7.closeSync(t9), this.emit("close");
|
|
@@ -300712,7 +302534,7 @@ function X5() {
|
|
|
300712
302534
|
}
|
|
300713
302535
|
}
|
|
300714
302536
|
|
|
300715
|
-
class
|
|
302537
|
+
class O5 extends I7 {
|
|
300716
302538
|
constructor(t9, e11) {
|
|
300717
302539
|
e11 = e11 || {}, super(e11), this.readable = false, this.writable = true, this[p5] = false, this[b4] = false, this[g5] = false, this[E7] = false, this[n7] = [], this[l4] = t9, this[s7] = typeof e11.fd == "number" ? e11.fd : null, this[q6] = e11.mode === undefined ? 438 : e11.mode, this[u6] = typeof e11.start == "number" ? e11.start : null, this[m7] = typeof e11.autoClose == "boolean" ? e11.autoClose : true;
|
|
300718
302540
|
const i7 = this[u6] !== null ? "r+" : "w";
|
|
@@ -300733,7 +302555,7 @@ function X5() {
|
|
|
300733
302555
|
return this[l4];
|
|
300734
302556
|
}
|
|
300735
302557
|
[d6](t9) {
|
|
300736
|
-
this[
|
|
302558
|
+
this[h7](), this[b4] = true, this.emit("error", t9);
|
|
300737
302559
|
}
|
|
300738
302560
|
[a8]() {
|
|
300739
302561
|
r7.open(this[l4], this[o8], this[q6], (t9, e11) => this[y4](t9, e11));
|
|
@@ -300751,7 +302573,7 @@ function X5() {
|
|
|
300751
302573
|
r7.write(this[s7], t9, 0, t9.length, this[u6], (e11, i7) => this[_6](e11, i7));
|
|
300752
302574
|
}
|
|
300753
302575
|
[_6](t9, e11) {
|
|
300754
|
-
t9 ? this[d6](t9) : (this[u6] !== null && (this[u6] += e11), this[n7].length ? this[x6]() : (this[b4] = false, this[g5] && !this[B4] ? (this[B4] = true, this[
|
|
302576
|
+
t9 ? this[d6](t9) : (this[u6] !== null && (this[u6] += e11), this[n7].length ? this[x6]() : (this[b4] = false, this[g5] && !this[B4] ? (this[B4] = true, this[h7](), this.emit("finish")) : this[E7] && (this[E7] = false, this.emit("drain"))));
|
|
300755
302577
|
}
|
|
300756
302578
|
[x6]() {
|
|
300757
302579
|
if (this[n7].length === 0)
|
|
@@ -300763,7 +302585,7 @@ function X5() {
|
|
|
300763
302585
|
this[n7] = [], R7(this[s7], t9, this[u6], (e11, i7) => this[_6](e11, i7));
|
|
300764
302586
|
}
|
|
300765
302587
|
}
|
|
300766
|
-
[
|
|
302588
|
+
[h7]() {
|
|
300767
302589
|
if (this[m7] && typeof this[s7] == "number") {
|
|
300768
302590
|
const t9 = this[s7];
|
|
300769
302591
|
this[s7] = null, r7.close(t9, (e11) => e11 ? this.emit("error", e11) : this.emit("close"));
|
|
@@ -300771,7 +302593,7 @@ function X5() {
|
|
|
300771
302593
|
}
|
|
300772
302594
|
}
|
|
300773
302595
|
|
|
300774
|
-
class U6 extends
|
|
302596
|
+
class U6 extends O5 {
|
|
300775
302597
|
[a8]() {
|
|
300776
302598
|
let t9;
|
|
300777
302599
|
if (this[F3] && this[o8] === "r+")
|
|
@@ -300786,7 +302608,7 @@ function X5() {
|
|
|
300786
302608
|
t9 = r7.openSync(this[l4], this[o8], this[q6]);
|
|
300787
302609
|
this[y4](null, t9);
|
|
300788
302610
|
}
|
|
300789
|
-
[
|
|
302611
|
+
[h7]() {
|
|
300790
302612
|
if (this[m7] && typeof this[s7] == "number") {
|
|
300791
302613
|
const t9 = this[s7];
|
|
300792
302614
|
this[s7] = null, r7.closeSync(t9), this.emit("close");
|
|
@@ -300799,12 +302621,12 @@ function X5() {
|
|
|
300799
302621
|
} finally {
|
|
300800
302622
|
if (e11)
|
|
300801
302623
|
try {
|
|
300802
|
-
this[
|
|
302624
|
+
this[h7]();
|
|
300803
302625
|
} catch {}
|
|
300804
302626
|
}
|
|
300805
302627
|
}
|
|
300806
302628
|
}
|
|
300807
|
-
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream =
|
|
302629
|
+
return s$4.ReadStream = D3, s$4.ReadStreamSync = P6, s$4.WriteStream = O5, s$4.WriteStreamSync = U6, s$4;
|
|
300808
302630
|
}
|
|
300809
302631
|
var r$1 = { exports: {} };
|
|
300810
302632
|
var i$2;
|
|
@@ -300957,14 +302779,14 @@ function S4() {
|
|
|
300957
302779
|
return n7.sync = d6, n7.native = (e11, r7) => a8(u6(e11), i7(r7)), n7.manual = (e11, r7) => o8(u6(e11), i7(r7)), n7.nativeSync = (e11, r7) => c3(u6(e11), i7(r7)), n7.manualSync = (e11, r7) => q6(u6(e11), i7(r7)), m7 = n7, m7;
|
|
300958
302780
|
}
|
|
300959
302781
|
var y$12;
|
|
300960
|
-
var
|
|
302782
|
+
var O5;
|
|
300961
302783
|
function F$1() {
|
|
300962
|
-
if (
|
|
302784
|
+
if (O5)
|
|
300963
302785
|
return y$12;
|
|
300964
|
-
|
|
300965
|
-
const c3 = V5, a8 = H$2, T5 = c3.lchown ? "lchown" : "chown",
|
|
302786
|
+
O5 = 1;
|
|
302787
|
+
const c3 = V5, a8 = H$2, T5 = c3.lchown ? "lchown" : "chown", I7 = c3.lchownSync ? "lchownSync" : "chownSync", i7 = c3.lchown && !process.version.match(/v1[1-9]+\./) && !process.version.match(/v10\.[6-9]/), u6 = (r7, e11, n7) => {
|
|
300966
302788
|
try {
|
|
300967
|
-
return c3[
|
|
302789
|
+
return c3[I7](r7, e11, n7);
|
|
300968
302790
|
} catch (t10) {
|
|
300969
302791
|
if (t10.code !== "ENOENT")
|
|
300970
302792
|
throw t10;
|
|
@@ -300989,7 +302811,7 @@ function F$1() {
|
|
|
300989
302811
|
} : (r7, e11, n7) => u6(r7, e11, n7), R7 = process.version;
|
|
300990
302812
|
let N6 = (r7, e11, n7) => c3.readdir(r7, e11, n7), q6 = (r7, e11) => c3.readdirSync(r7, e11);
|
|
300991
302813
|
/^v4\./.test(R7) && (N6 = (r7, e11, n7) => c3.readdir(r7, n7));
|
|
300992
|
-
const
|
|
302814
|
+
const h7 = (r7, e11, n7, t10) => {
|
|
300993
302815
|
c3[T5](r7, e11, n7, _6(r7, e11, n7, (o8) => {
|
|
300994
302816
|
t10(o8 && o8.code !== "ENOENT" ? o8 : null);
|
|
300995
302817
|
}));
|
|
@@ -301005,11 +302827,11 @@ function F$1() {
|
|
|
301005
302827
|
if (s7)
|
|
301006
302828
|
return o8(s7);
|
|
301007
302829
|
const f5 = a8.resolve(r7, e11.name);
|
|
301008
|
-
|
|
302830
|
+
h7(f5, n7, t10, o8);
|
|
301009
302831
|
});
|
|
301010
302832
|
else {
|
|
301011
302833
|
const s7 = a8.resolve(r7, e11.name);
|
|
301012
|
-
|
|
302834
|
+
h7(s7, n7, t10, o8);
|
|
301013
302835
|
}
|
|
301014
302836
|
}, E7 = (r7, e11, n7, t10) => {
|
|
301015
302837
|
N6(r7, { withFileTypes: true }, (o8, s7) => {
|
|
@@ -301020,14 +302842,14 @@ function F$1() {
|
|
|
301020
302842
|
return t10(o8);
|
|
301021
302843
|
}
|
|
301022
302844
|
if (o8 || !s7.length)
|
|
301023
|
-
return
|
|
302845
|
+
return h7(r7, e11, n7, t10);
|
|
301024
302846
|
let f5 = s7.length, v6 = null;
|
|
301025
302847
|
const H4 = (l4) => {
|
|
301026
302848
|
if (!v6) {
|
|
301027
302849
|
if (l4)
|
|
301028
302850
|
return t10(v6 = l4);
|
|
301029
302851
|
if (--f5 === 0)
|
|
301030
|
-
return
|
|
302852
|
+
return h7(r7, e11, n7, t10);
|
|
301031
302853
|
}
|
|
301032
302854
|
};
|
|
301033
302855
|
s7.forEach((l4) => S5(r7, l4, e11, n7, H4));
|
|
@@ -301082,24 +302904,24 @@ function H4() {
|
|
|
301082
302904
|
return "CwdError";
|
|
301083
302905
|
}
|
|
301084
302906
|
}
|
|
301085
|
-
const v6 = (n7, e11) => n7.get(y4(e11)), q6 = (n7, e11, s7) => n7.set(y4(e11), s7),
|
|
302907
|
+
const v6 = (n7, e11) => n7.get(y4(e11)), q6 = (n7, e11, s7) => n7.set(y4(e11), s7), I7 = (n7, e11) => {
|
|
301086
302908
|
l4.stat(n7, (s7, r7) => {
|
|
301087
302909
|
(s7 || !r7.isDirectory()) && (s7 = new E7(n7, s7 && s7.code || "ENOTDIR")), e11(s7);
|
|
301088
302910
|
});
|
|
301089
302911
|
};
|
|
301090
302912
|
r$1.exports = (n7, e11, s7) => {
|
|
301091
302913
|
n7 = y4(n7);
|
|
301092
|
-
const r7 = e11.umask, c3 = e11.mode | 448, f5 = (c3 & r7) !== 0, t10 = e11.uid, i7 = e11.gid, a8 = typeof t10 == "number" && typeof i7 == "number" && (t10 !== e11.processUid || i7 !== e11.processGid), u6 = e11.preserve, m8 = e11.unlink,
|
|
301093
|
-
k6 ? s7(k6) : (q6(
|
|
302914
|
+
const r7 = e11.umask, c3 = e11.mode | 448, f5 = (c3 & r7) !== 0, t10 = e11.uid, i7 = e11.gid, a8 = typeof t10 == "number" && typeof i7 == "number" && (t10 !== e11.processUid || i7 !== e11.processGid), u6 = e11.preserve, m8 = e11.unlink, h7 = e11.cache, d6 = y4(e11.cwd), w6 = (k6, o8) => {
|
|
302915
|
+
k6 ? s7(k6) : (q6(h7, n7, true), o8 && a8 ? x6(o8, t10, i7, (G4) => w6(G4)) : f5 ? l4.chmod(n7, c3, s7) : s7());
|
|
301094
302916
|
};
|
|
301095
|
-
if (
|
|
302917
|
+
if (h7 && v6(h7, n7) === true)
|
|
301096
302918
|
return w6();
|
|
301097
302919
|
if (n7 === d6)
|
|
301098
|
-
return
|
|
302920
|
+
return I7(n7, w6);
|
|
301099
302921
|
if (u6)
|
|
301100
302922
|
return g5(n7, { mode: c3 }).then((k6) => w6(null, k6), w6);
|
|
301101
302923
|
const S5 = y4(p5.relative(d6, n7)).split("/");
|
|
301102
|
-
C5(d6, S5, c3,
|
|
302924
|
+
C5(d6, S5, c3, h7, m8, d6, null, w6);
|
|
301103
302925
|
};
|
|
301104
302926
|
const C5 = (n7, e11, s7, r7, c3, f5, t10, i7) => {
|
|
301105
302927
|
if (!e11.length)
|
|
@@ -301115,9 +302937,9 @@ function H4() {
|
|
|
301115
302937
|
else if (m8.isDirectory())
|
|
301116
302938
|
C5(n7, e11, s7, r7, c3, f5, t10, i7);
|
|
301117
302939
|
else if (c3)
|
|
301118
|
-
l4.unlink(n7, (
|
|
301119
|
-
if (
|
|
301120
|
-
return i7(
|
|
302940
|
+
l4.unlink(n7, (h7) => {
|
|
302941
|
+
if (h7)
|
|
302942
|
+
return i7(h7);
|
|
301121
302943
|
l4.mkdir(n7, s7, j4(n7, e11, s7, r7, c3, f5, t10, i7));
|
|
301122
302944
|
});
|
|
301123
302945
|
else {
|
|
@@ -301139,18 +302961,18 @@ function H4() {
|
|
|
301139
302961
|
};
|
|
301140
302962
|
return r$1.exports.sync = (n7, e11) => {
|
|
301141
302963
|
n7 = y4(n7);
|
|
301142
|
-
const s7 = e11.umask, r7 = e11.mode | 448, c3 = (r7 & s7) !== 0, f5 = e11.uid, t10 = e11.gid, i7 = typeof f5 == "number" && typeof t10 == "number" && (f5 !== e11.processUid || t10 !== e11.processGid), a8 = e11.preserve, u6 = e11.unlink, m8 = e11.cache,
|
|
302964
|
+
const s7 = e11.umask, r7 = e11.mode | 448, c3 = (r7 & s7) !== 0, f5 = e11.uid, t10 = e11.gid, i7 = typeof f5 == "number" && typeof t10 == "number" && (f5 !== e11.processUid || t10 !== e11.processGid), a8 = e11.preserve, u6 = e11.unlink, m8 = e11.cache, h7 = y4(e11.cwd), d6 = (k6) => {
|
|
301143
302965
|
q6(m8, n7, true), k6 && i7 && x6.sync(k6, f5, t10), c3 && l4.chmodSync(n7, r7);
|
|
301144
302966
|
};
|
|
301145
302967
|
if (m8 && v6(m8, n7) === true)
|
|
301146
302968
|
return d6();
|
|
301147
|
-
if (n7 ===
|
|
301148
|
-
return L5(
|
|
302969
|
+
if (n7 === h7)
|
|
302970
|
+
return L5(h7), d6();
|
|
301149
302971
|
if (a8)
|
|
301150
302972
|
return d6(g5.sync(n7, r7));
|
|
301151
|
-
const $5 = y4(p5.relative(
|
|
302973
|
+
const $5 = y4(p5.relative(h7, n7)).split("/");
|
|
301152
302974
|
let S5 = null;
|
|
301153
|
-
for (let k6 = $5.shift(), o8 =
|
|
302975
|
+
for (let k6 = $5.shift(), o8 = h7;k6 && (o8 += "/" + k6); k6 = $5.shift())
|
|
301154
302976
|
if (o8 = y4(p5.resolve(o8)), !v6(m8, o8))
|
|
301155
302977
|
try {
|
|
301156
302978
|
l4.mkdirSync(o8, r7), S5 = S5 || o8, q6(m8, o8, true);
|
|
@@ -301209,10 +303031,10 @@ function z4() {
|
|
|
301209
303031
|
if (!s8)
|
|
301210
303032
|
throw new Error("function does not have any path reservations");
|
|
301211
303033
|
return { paths: s8.paths.map((o8) => i8.get(o8)), dirs: [...s8.dirs].map((o8) => i8.get(o8)) };
|
|
301212
|
-
},
|
|
303034
|
+
}, h7 = (e11) => {
|
|
301213
303035
|
const { paths: s8, dirs: o8 } = w6(e11);
|
|
301214
303036
|
return s8.every((r7) => r7[0] === e11) && o8.every((r7) => r7[0] instanceof Set && r7[0].has(e11));
|
|
301215
|
-
}, p6 = (e11) => a9.has(e11) || !
|
|
303037
|
+
}, p6 = (e11) => a9.has(e11) || !h7(e11) ? false : (a9.add(e11), e11(() => S5(e11)), true), S5 = (e11) => {
|
|
301216
303038
|
if (!a9.has(e11))
|
|
301217
303039
|
return false;
|
|
301218
303040
|
const { paths: s8, dirs: o8 } = c3.get(e11), r7 = new Set;
|
|
@@ -301224,7 +303046,7 @@ function z4() {
|
|
|
301224
303046
|
l5(n8[0] instanceof Set), n8[0].size === 1 && n8.length === 1 ? i8.delete(t10) : n8[0].size === 1 ? (n8.shift(), r7.add(n8[0])) : n8[0].delete(e11);
|
|
301225
303047
|
}), a9.delete(e11), r7.forEach((t10) => p6(t10)), true;
|
|
301226
303048
|
};
|
|
301227
|
-
return { check:
|
|
303049
|
+
return { check: h7, reserve: (e11, s8) => {
|
|
301228
303050
|
e11 = q6 ? ["win32 parallelization disabled"] : e11.map((r7) => g5(d6(m8(r7))).toLowerCase());
|
|
301229
303051
|
const o8 = new Set(e11.map((r7) => v6(r7)).reduce((r7, t10) => r7.concat(t10)));
|
|
301230
303052
|
return c3.set(s8, { dirs: o8, paths: e11 }), e11.forEach((r7) => {
|
|
@@ -301268,7 +303090,7 @@ function Os() {
|
|
|
301268
303090
|
if (y4)
|
|
301269
303091
|
return G4;
|
|
301270
303092
|
y4 = 1;
|
|
301271
|
-
const ss = j$1, is = rt3(), r7 = V5, es = X5(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q6 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N6 = Symbol("isReusable"), d6 = Symbol("makeFs"), U6 = Symbol("file"), F$12 = Symbol("directory"),
|
|
303093
|
+
const ss = j$1, is = rt3(), r7 = V5, es = X5(), w6 = H$2, M5 = H4(), K4 = p5(), ts = z4(), os = c3(), l5 = a$7(), rs = s7(), hs = a$12(), H$12 = Symbol("onEntry"), q6 = Symbol("checkFs"), Y4 = Symbol("checkFs2"), v6 = Symbol("pruneCache"), N6 = Symbol("isReusable"), d6 = Symbol("makeFs"), U6 = Symbol("file"), F$12 = Symbol("directory"), O6 = Symbol("link"), B4 = Symbol("symlink"), z$1 = Symbol("hardlink"), W5 = Symbol("unsupported"), j4 = Symbol("checkPath"), b4 = Symbol("mkdir"), m8 = Symbol("onError"), $5 = Symbol("pending"), V$1 = Symbol("pend"), S5 = Symbol("unpend"), P6 = Symbol("ended"), A5 = Symbol("maybeClose"), x6 = Symbol("skip"), E7 = Symbol("doChown"), R8 = Symbol("uid"), _6 = Symbol("gid"), g5 = Symbol("checkedCwd"), X$12 = Ds, J5 = F3(), C5 = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === "win32", cs = 1024, as = (a9, s8) => {
|
|
301272
303094
|
if (!C5)
|
|
301273
303095
|
return r7.unlink(a9, s8);
|
|
301274
303096
|
const i8 = a9 + ".DELETE." + X$12.randomBytes(16).toString("hex");
|
|
@@ -301383,7 +303205,7 @@ function Os() {
|
|
|
301383
303205
|
return Q4(this.gid, s8.gid, this.processGid);
|
|
301384
303206
|
}
|
|
301385
303207
|
[U6](s8, i8) {
|
|
301386
|
-
const e12 = s8.mode & 4095 || this.fmode, t10 = new es.WriteStream(s8.absolute, { flags:
|
|
303208
|
+
const e12 = s8.mode & 4095 || this.fmode, t10 = new es.WriteStream(s8.absolute, { flags: J5(s8.size), mode: e12, autoClose: false });
|
|
301387
303209
|
t10.on("error", (c4) => {
|
|
301388
303210
|
t10.fd && r7.close(t10.fd, () => {}), t10.write = () => true, this[m8](c4, s8), i8();
|
|
301389
303211
|
});
|
|
@@ -301402,19 +303224,19 @@ function Os() {
|
|
|
301402
303224
|
if (s8.mtime && !this.noMtime) {
|
|
301403
303225
|
o9++;
|
|
301404
303226
|
const f5 = s8.atime || new Date, k6 = s8.mtime;
|
|
301405
|
-
r7.futimes(p6, f5, k6, (D3) => D3 ? r7.utimes(n8, f5, k6, (
|
|
303227
|
+
r7.futimes(p6, f5, k6, (D3) => D3 ? r7.utimes(n8, f5, k6, (I7) => u7(I7 && D3)) : u7());
|
|
301406
303228
|
}
|
|
301407
303229
|
if (this[E7](s8)) {
|
|
301408
303230
|
o9++;
|
|
301409
303231
|
const f5 = this[R8](s8), k6 = this[_6](s8);
|
|
301410
|
-
r7.fchown(p6, f5, k6, (D3) => D3 ? r7.chown(n8, f5, k6, (
|
|
303232
|
+
r7.fchown(p6, f5, k6, (D3) => D3 ? r7.chown(n8, f5, k6, (I7) => u7(I7 && D3)) : u7());
|
|
301411
303233
|
}
|
|
301412
303234
|
u7();
|
|
301413
303235
|
});
|
|
301414
|
-
const
|
|
301415
|
-
|
|
303236
|
+
const h7 = this.transform && this.transform(s8) || s8;
|
|
303237
|
+
h7 !== s8 && (h7.on("error", (c4) => {
|
|
301416
303238
|
this[m8](c4, s8), i8();
|
|
301417
|
-
}), s8.pipe(
|
|
303239
|
+
}), s8.pipe(h7)), h7.pipe(t10);
|
|
301418
303240
|
}
|
|
301419
303241
|
[F$12](s8, i8) {
|
|
301420
303242
|
const e12 = s8.mode & 4095 || this.dmode;
|
|
@@ -301424,7 +303246,7 @@ function Os() {
|
|
|
301424
303246
|
return;
|
|
301425
303247
|
}
|
|
301426
303248
|
let o9 = 1;
|
|
301427
|
-
const u7 = (
|
|
303249
|
+
const u7 = (h7) => {
|
|
301428
303250
|
--o9 === 0 && (i8(), this[S5](), s8.resume());
|
|
301429
303251
|
};
|
|
301430
303252
|
s8.mtime && !this.noMtime && (o9++, r7.utimes(s8.absolute, s8.atime || new Date, s8.mtime, u7)), this[E7](s8) && (o9++, r7.chown(s8.absolute, this[R8](s8), this[_6](s8), u7)), u7();
|
|
@@ -301434,11 +303256,11 @@ function Os() {
|
|
|
301434
303256
|
s8.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${s8.type}`, { entry: s8 }), s8.resume();
|
|
301435
303257
|
}
|
|
301436
303258
|
[B4](s8, i8) {
|
|
301437
|
-
this[
|
|
303259
|
+
this[O6](s8, s8.linkpath, "symlink", i8);
|
|
301438
303260
|
}
|
|
301439
303261
|
[z$1](s8, i8) {
|
|
301440
303262
|
const e12 = l5(w6.resolve(this.cwd, s8.linkpath));
|
|
301441
|
-
this[
|
|
303263
|
+
this[O6](s8, e12, "link", i8);
|
|
301442
303264
|
}
|
|
301443
303265
|
[V$1]() {
|
|
301444
303266
|
this[$5]++;
|
|
@@ -301462,21 +303284,21 @@ function Os() {
|
|
|
301462
303284
|
}
|
|
301463
303285
|
[Y4](s8, i8) {
|
|
301464
303286
|
this[v6](s8);
|
|
301465
|
-
const e12 = (
|
|
301466
|
-
this[v6](s8), i8(
|
|
303287
|
+
const e12 = (h7) => {
|
|
303288
|
+
this[v6](s8), i8(h7);
|
|
301467
303289
|
}, t10 = () => {
|
|
301468
|
-
this[b4](this.cwd, this.dmode, (
|
|
301469
|
-
if (
|
|
301470
|
-
this[m8](
|
|
303290
|
+
this[b4](this.cwd, this.dmode, (h7) => {
|
|
303291
|
+
if (h7) {
|
|
303292
|
+
this[m8](h7, s8), e12();
|
|
301471
303293
|
return;
|
|
301472
303294
|
}
|
|
301473
303295
|
this[g5] = true, o9();
|
|
301474
303296
|
});
|
|
301475
303297
|
}, o9 = () => {
|
|
301476
303298
|
if (s8.absolute !== this.cwd) {
|
|
301477
|
-
const
|
|
301478
|
-
if (
|
|
301479
|
-
return this[b4](
|
|
303299
|
+
const h7 = l5(w6.dirname(s8.absolute));
|
|
303300
|
+
if (h7 !== this.cwd)
|
|
303301
|
+
return this[b4](h7, this.dmode, (c4) => {
|
|
301480
303302
|
if (c4) {
|
|
301481
303303
|
this[m8](c4, s8), e12();
|
|
301482
303304
|
return;
|
|
@@ -301486,12 +303308,12 @@ function Os() {
|
|
|
301486
303308
|
}
|
|
301487
303309
|
u7();
|
|
301488
303310
|
}, u7 = () => {
|
|
301489
|
-
r7.lstat(s8.absolute, (
|
|
303311
|
+
r7.lstat(s8.absolute, (h7, c4) => {
|
|
301490
303312
|
if (c4 && (this.keep || this.newer && c4.mtime > s8.mtime)) {
|
|
301491
303313
|
this[x6](s8), e12();
|
|
301492
303314
|
return;
|
|
301493
303315
|
}
|
|
301494
|
-
if (
|
|
303316
|
+
if (h7 || this[N6](s8, c4))
|
|
301495
303317
|
return this[d6](null, s8, e12);
|
|
301496
303318
|
if (c4.isDirectory()) {
|
|
301497
303319
|
if (s8.type === "Directory") {
|
|
@@ -301527,7 +303349,7 @@ function Os() {
|
|
|
301527
303349
|
return this[F$12](i8, e12);
|
|
301528
303350
|
}
|
|
301529
303351
|
}
|
|
301530
|
-
[
|
|
303352
|
+
[O6](s8, i8, e12, t10) {
|
|
301531
303353
|
r7[e12](i8, s8.absolute, (o9) => {
|
|
301532
303354
|
o9 ? this[m8](o9, s8) : (this[S5](), s8.resume()), t10();
|
|
301533
303355
|
});
|
|
@@ -301567,10 +303389,10 @@ function Os() {
|
|
|
301567
303389
|
return this[d6](null, s8);
|
|
301568
303390
|
if (e12.isDirectory()) {
|
|
301569
303391
|
if (s8.type === "Directory") {
|
|
301570
|
-
const u7 = !this.noChmod && s8.mode && (e12.mode & 4095) !== s8.mode, [
|
|
303392
|
+
const u7 = !this.noChmod && s8.mode && (e12.mode & 4095) !== s8.mode, [h7] = u7 ? T5(() => {
|
|
301571
303393
|
r7.chmodSync(s8.absolute, s8.mode);
|
|
301572
303394
|
}) : [];
|
|
301573
|
-
return this[d6](
|
|
303395
|
+
return this[d6](h7, s8);
|
|
301574
303396
|
}
|
|
301575
303397
|
const [o9] = T5(() => r7.rmdirSync(s8.absolute));
|
|
301576
303398
|
this[d6](o9, s8);
|
|
@@ -301579,29 +303401,29 @@ function Os() {
|
|
|
301579
303401
|
this[d6](t10, s8);
|
|
301580
303402
|
}
|
|
301581
303403
|
[U6](s8, i8) {
|
|
301582
|
-
const e12 = s8.mode & 4095 || this.fmode, t10 = (
|
|
303404
|
+
const e12 = s8.mode & 4095 || this.fmode, t10 = (h7) => {
|
|
301583
303405
|
let c4;
|
|
301584
303406
|
try {
|
|
301585
303407
|
r7.closeSync(o9);
|
|
301586
303408
|
} catch (n8) {
|
|
301587
303409
|
c4 = n8;
|
|
301588
303410
|
}
|
|
301589
|
-
(
|
|
303411
|
+
(h7 || c4) && this[m8](h7 || c4, s8), i8();
|
|
301590
303412
|
};
|
|
301591
303413
|
let o9;
|
|
301592
303414
|
try {
|
|
301593
|
-
o9 = r7.openSync(s8.absolute,
|
|
301594
|
-
} catch (
|
|
301595
|
-
return t10(
|
|
303415
|
+
o9 = r7.openSync(s8.absolute, J5(s8.size), e12);
|
|
303416
|
+
} catch (h7) {
|
|
303417
|
+
return t10(h7);
|
|
301596
303418
|
}
|
|
301597
303419
|
const u7 = this.transform && this.transform(s8) || s8;
|
|
301598
|
-
u7 !== s8 && (u7.on("error", (
|
|
303420
|
+
u7 !== s8 && (u7.on("error", (h7) => this[m8](h7, s8)), s8.pipe(u7)), u7.on("data", (h7) => {
|
|
301599
303421
|
try {
|
|
301600
|
-
r7.writeSync(o9,
|
|
303422
|
+
r7.writeSync(o9, h7, 0, h7.length);
|
|
301601
303423
|
} catch (c4) {
|
|
301602
303424
|
t10(c4);
|
|
301603
303425
|
}
|
|
301604
|
-
}), u7.on("end", (
|
|
303426
|
+
}), u7.on("end", (h7) => {
|
|
301605
303427
|
let c4 = null;
|
|
301606
303428
|
if (s8.mtime && !this.noMtime) {
|
|
301607
303429
|
const n8 = s8.atime || new Date, p6 = s8.mtime;
|
|
@@ -301653,7 +303475,7 @@ function Os() {
|
|
|
301653
303475
|
return e12;
|
|
301654
303476
|
}
|
|
301655
303477
|
}
|
|
301656
|
-
[
|
|
303478
|
+
[O6](s8, i8, e12, t10) {
|
|
301657
303479
|
try {
|
|
301658
303480
|
r7[e12 + "Sync"](i8, s8.absolute), t10(), s8.resume();
|
|
301659
303481
|
} catch (o9) {
|
|
@@ -301677,7 +303499,7 @@ function v6() {
|
|
|
301677
303499
|
throw new TypeError("callback not supported for sync tar functions");
|
|
301678
303500
|
if (!t10.file && typeof o9 == "function")
|
|
301679
303501
|
throw new TypeError("callback only supported with file option");
|
|
301680
|
-
return e12.length && d6(t10, e12), t10.file && t10.sync ? $5(t10) : t10.file ?
|
|
303502
|
+
return e12.length && d6(t10, e12), t10.file && t10.sync ? $5(t10) : t10.file ? h7(t10, o9) : t10.sync ? x6(t10) : z5(t10);
|
|
301681
303503
|
};
|
|
301682
303504
|
const d6 = (r7, e12) => {
|
|
301683
303505
|
const o9 = new Map(e12.map((n8) => [m8(n8), true])), t10 = r7.filter, s8 = (n8, i8) => {
|
|
@@ -301688,7 +303510,7 @@ function v6() {
|
|
|
301688
303510
|
}, $5 = (r7) => {
|
|
301689
303511
|
const e12 = new u7.Sync(r7), o9 = r7.file, t10 = p6.statSync(o9), s8 = r7.maxReadSize || 16 * 1024 * 1024;
|
|
301690
303512
|
new y5.ReadStreamSync(o9, { readSize: s8, size: t10.size }).pipe(e12);
|
|
301691
|
-
},
|
|
303513
|
+
}, h7 = (r7, e12) => {
|
|
301692
303514
|
const o9 = new u7(r7), t10 = r7.maxReadSize || 16 * 1024 * 1024, s8 = r7.file, n8 = new Promise((i8, a9) => {
|
|
301693
303515
|
o9.on("error", a9), o9.on("close", i8), p6.stat(s8, (c4, R8) => {
|
|
301694
303516
|
if (c4)
|
|
@@ -306386,7 +308208,7 @@ async function fixPackageJson(packageJsonDir, requiresCodegenScript = true) {
|
|
|
306386
308208
|
|
|
306387
308209
|
// src/utils/subgraph/setup.ts
|
|
306388
308210
|
import { rm as rm4 } from "node:fs/promises";
|
|
306389
|
-
var import_semver = __toESM(
|
|
308211
|
+
var import_semver = __toESM(require_semver4(), 1);
|
|
306390
308212
|
var SETTLEMINT_NETWORK = "settlemint";
|
|
306391
308213
|
async function subgraphSetup({ network }) {
|
|
306392
308214
|
const generated = await isGenerated();
|
|
@@ -306908,4 +308730,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
306908
308730
|
// src/cli.ts
|
|
306909
308731
|
sdkCliCommand();
|
|
306910
308732
|
|
|
306911
|
-
//# debugId=
|
|
308733
|
+
//# debugId=E588F3CDCA85BFC464756E2164756E21
|