@stablyai/playwright-test 2.1.7 → 2.1.8
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/{index-CfBVZ27r.cjs → index-CFruORhJ.cjs} +1097 -1084
- package/dist/index-CFruORhJ.cjs.map +1 -0
- package/dist/{index-CyV-2Mfg.mjs → index-DsxNMv2-.mjs} +1097 -1084
- package/dist/index-DsxNMv2-.mjs.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/{index.d-BYzcguUj.d.cts → index.d-Cdd7-KS-.d.cts} +3 -1
- package/dist/{index.d-BYzcguUj.d.cts.map → index.d-Cdd7-KS-.d.cts.map} +1 -1
- package/dist/{index.d-BYzcguUj.d.ts → index.d-Cdd7-KS-.d.mts} +3 -1
- package/dist/{index.d-BYzcguUj.d.mts.map → index.d-Cdd7-KS-.d.mts.map} +1 -1
- package/dist/{index.d-BYzcguUj.d.mts → index.d-Cdd7-KS-.d.ts} +3 -1
- package/dist/{index.d-BYzcguUj.d.ts.map → index.d-Cdd7-KS-.d.ts.map} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/reporter.cjs +1 -1
- package/dist/reporter.d.cts +1 -1
- package/dist/reporter.d.mts +1 -1
- package/dist/reporter.mjs +1 -1
- package/package.json +4 -4
- package/dist/index-CfBVZ27r.cjs.map +0 -1
- package/dist/index-CyV-2Mfg.mjs.map +0 -1
|
@@ -17,7 +17,7 @@ var g = require('node:readline');
|
|
|
17
17
|
require('node:stream');
|
|
18
18
|
var Et = require('os');
|
|
19
19
|
var require$$7 = require('url');
|
|
20
|
-
var
|
|
20
|
+
var jn = require('util');
|
|
21
21
|
var require$$0$4 = require('events');
|
|
22
22
|
var require$$1$1 = require('https');
|
|
23
23
|
var require$$2 = require('http');
|
|
@@ -6735,17 +6735,17 @@ var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
|
|
|
6735
6735
|
|
|
6736
6736
|
var Bn = Object.defineProperty;
|
|
6737
6737
|
var a = (e, t) => Bn(e, "name", { value: t, configurable: true });
|
|
6738
|
-
const rt = BigInt(2 ** 32 - 1),
|
|
6738
|
+
const rt = BigInt(2 ** 32 - 1), dr = BigInt(32);
|
|
6739
6739
|
function Jn(e, t = false) {
|
|
6740
|
-
return t ? { h: Number(e & rt), l: Number(e >>
|
|
6740
|
+
return t ? { h: Number(e & rt), l: Number(e >> dr & rt) } : { h: Number(e >> dr & rt) | 0, l: Number(e & rt) | 0 };
|
|
6741
6741
|
}
|
|
6742
6742
|
a(Jn, "fromBig");
|
|
6743
6743
|
function zn(e, t = false) {
|
|
6744
6744
|
const r = e.length;
|
|
6745
6745
|
let n = new Uint32Array(r), i = new Uint32Array(r);
|
|
6746
|
-
for (let
|
|
6747
|
-
const { h: c, l } = Jn(e[
|
|
6748
|
-
[n[
|
|
6746
|
+
for (let s = 0; s < r; s++) {
|
|
6747
|
+
const { h: c, l } = Jn(e[s], t);
|
|
6748
|
+
[n[s], i[s]] = [c, l];
|
|
6749
6749
|
}
|
|
6750
6750
|
return [n, i];
|
|
6751
6751
|
}
|
|
@@ -6756,13 +6756,13 @@ function ti(e) {
|
|
|
6756
6756
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
|
|
6757
6757
|
}
|
|
6758
6758
|
a(ti, "isBytes");
|
|
6759
|
-
function
|
|
6759
|
+
function pr(e, t = "") {
|
|
6760
6760
|
if (!Number.isSafeInteger(e) || e < 0) {
|
|
6761
6761
|
const r = t && `"${t}" `;
|
|
6762
6762
|
throw new Error(`${r}expected integer >= 0, got ${e}`);
|
|
6763
6763
|
}
|
|
6764
6764
|
}
|
|
6765
|
-
a(
|
|
6765
|
+
a(pr, "anumber");
|
|
6766
6766
|
function _t(e, t, r = "") {
|
|
6767
6767
|
const n = ti(e), i = e?.length;
|
|
6768
6768
|
if (!n || t !== void 0) {
|
|
@@ -6772,11 +6772,11 @@ function _t(e, t, r = "") {
|
|
|
6772
6772
|
return e;
|
|
6773
6773
|
}
|
|
6774
6774
|
a(_t, "abytes");
|
|
6775
|
-
function
|
|
6775
|
+
function mr(e, t = true) {
|
|
6776
6776
|
if (e.destroyed) throw new Error("Hash instance has been destroyed");
|
|
6777
6777
|
if (t && e.finished) throw new Error("Hash#digest() has already been called");
|
|
6778
6778
|
}
|
|
6779
|
-
a(
|
|
6779
|
+
a(mr, "aexists");
|
|
6780
6780
|
function ri(e, t) {
|
|
6781
6781
|
_t(e, void 0, "digestInto() output");
|
|
6782
6782
|
const r = t.outputLen;
|
|
@@ -6787,46 +6787,46 @@ function ni(e) {
|
|
|
6787
6787
|
return new Uint32Array(e.buffer, e.byteOffset, Math.floor(e.byteLength / 4));
|
|
6788
6788
|
}
|
|
6789
6789
|
a(ni, "u32");
|
|
6790
|
-
function
|
|
6790
|
+
function Er(...e) {
|
|
6791
6791
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
6792
6792
|
}
|
|
6793
|
-
a(
|
|
6793
|
+
a(Er, "clean");
|
|
6794
6794
|
const ii = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
|
|
6795
|
-
function
|
|
6795
|
+
function si(e) {
|
|
6796
6796
|
return e << 24 & 4278190080 | e << 8 & 16711680 | e >>> 8 & 65280 | e >>> 24 & 255;
|
|
6797
6797
|
}
|
|
6798
|
-
a(
|
|
6799
|
-
function
|
|
6800
|
-
for (let t = 0; t < e.length; t++) e[t] =
|
|
6798
|
+
a(si, "byteSwap");
|
|
6799
|
+
function oi(e) {
|
|
6800
|
+
for (let t = 0; t < e.length; t++) e[t] = si(e[t]);
|
|
6801
6801
|
return e;
|
|
6802
6802
|
}
|
|
6803
|
-
a(
|
|
6804
|
-
const
|
|
6803
|
+
a(oi, "byteSwap32");
|
|
6804
|
+
const gr = ii ? (e) => e : oi;
|
|
6805
6805
|
function ai(e, t = {}) {
|
|
6806
|
-
const r = a((i,
|
|
6806
|
+
const r = a((i, s) => e(s).update(i).digest(), "hashC"), n = e(void 0);
|
|
6807
6807
|
return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => e(i), Object.assign(r, t), Object.freeze(r);
|
|
6808
6808
|
}
|
|
6809
6809
|
a(ai, "createHasher");
|
|
6810
|
-
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0), Ve = BigInt(1), li = BigInt(2), fi = BigInt(7), hi = BigInt(256), di = BigInt(113),
|
|
6810
|
+
const ci = a((e) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, e]) }), "oidNist"), ui = BigInt(0), Ve = BigInt(1), li = BigInt(2), fi = BigInt(7), hi = BigInt(256), di = BigInt(113), _r = [], Ir = [], Sr = [];
|
|
6811
6811
|
for (let e = 0, t = Ve, r = 1, n = 0; e < 24; e++) {
|
|
6812
|
-
[r, n] = [n, (2 * r + 3 * n) % 5],
|
|
6812
|
+
[r, n] = [n, (2 * r + 3 * n) % 5], _r.push(2 * (5 * n + r)), Ir.push((e + 1) * (e + 2) / 2 % 64);
|
|
6813
6813
|
let i = ui;
|
|
6814
|
-
for (let
|
|
6815
|
-
|
|
6814
|
+
for (let s = 0; s < 7; s++) t = (t << Ve ^ (t >> fi) * di) % hi, t & li && (i ^= Ve << (Ve << BigInt(s)) - Ve);
|
|
6815
|
+
Sr.push(i);
|
|
6816
6816
|
}
|
|
6817
|
-
const
|
|
6817
|
+
const Rr = zn(Sr, true), pi = Rr[0], mi = Rr[1], Tr = a((e, t, r) => r > 32 ? Zn(e, t, r) : Qn(e, t, r), "rotlH"), yr = a((e, t, r) => r > 32 ? ei(e, t, r) : Xn(e, t, r), "rotlL");
|
|
6818
6818
|
function Ei(e, t = 24) {
|
|
6819
6819
|
const r = new Uint32Array(10);
|
|
6820
6820
|
for (let n = 24 - t; n < 24; n++) {
|
|
6821
6821
|
for (let c = 0; c < 10; c++) r[c] = e[c] ^ e[c + 10] ^ e[c + 20] ^ e[c + 30] ^ e[c + 40];
|
|
6822
6822
|
for (let c = 0; c < 10; c += 2) {
|
|
6823
|
-
const l = (c + 8) % 10, p = (c + 2) % 10, E = r[p], h = r[p + 1],
|
|
6824
|
-
for (let C = 0; C < 50; C += 10) e[c + C] ^=
|
|
6823
|
+
const l = (c + 8) % 10, p = (c + 2) % 10, E = r[p], h = r[p + 1], _ = Tr(E, h, 1) ^ r[l], v = yr(E, h, 1) ^ r[l + 1];
|
|
6824
|
+
for (let C = 0; C < 50; C += 10) e[c + C] ^= _, e[c + C + 1] ^= v;
|
|
6825
6825
|
}
|
|
6826
|
-
let i = e[2],
|
|
6826
|
+
let i = e[2], s = e[3];
|
|
6827
6827
|
for (let c = 0; c < 24; c++) {
|
|
6828
|
-
const l =
|
|
6829
|
-
i = e[h],
|
|
6828
|
+
const l = Ir[c], p = Tr(i, s, l), E = yr(i, s, l), h = _r[c];
|
|
6829
|
+
i = e[h], s = e[h + 1], e[h] = p, e[h + 1] = E;
|
|
6830
6830
|
}
|
|
6831
6831
|
for (let c = 0; c < 50; c += 10) {
|
|
6832
6832
|
for (let l = 0; l < 10; l++) r[l] = e[c + l];
|
|
@@ -6834,10 +6834,10 @@ function Ei(e, t = 24) {
|
|
|
6834
6834
|
}
|
|
6835
6835
|
e[0] ^= pi[n], e[1] ^= mi[n];
|
|
6836
6836
|
}
|
|
6837
|
-
|
|
6837
|
+
Er(r);
|
|
6838
6838
|
}
|
|
6839
6839
|
a(Ei, "keccakP");
|
|
6840
|
-
class
|
|
6840
|
+
class sr {
|
|
6841
6841
|
static {
|
|
6842
6842
|
a(this, "Keccak");
|
|
6843
6843
|
}
|
|
@@ -6852,22 +6852,22 @@ class ir {
|
|
|
6852
6852
|
outputLen;
|
|
6853
6853
|
enableXOF = false;
|
|
6854
6854
|
rounds;
|
|
6855
|
-
constructor(t, r, n, i = false,
|
|
6856
|
-
if (this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds =
|
|
6855
|
+
constructor(t, r, n, i = false, s = 24) {
|
|
6856
|
+
if (this.blockLen = t, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, pr(n, "outputLen"), !(0 < t && t < 200)) throw new Error("only keccak-f1600 function is supported");
|
|
6857
6857
|
this.state = new Uint8Array(200), this.state32 = ni(this.state);
|
|
6858
6858
|
}
|
|
6859
6859
|
clone() {
|
|
6860
6860
|
return this._cloneInto();
|
|
6861
6861
|
}
|
|
6862
6862
|
keccak() {
|
|
6863
|
-
|
|
6863
|
+
gr(this.state32), Ei(this.state32, this.rounds), gr(this.state32), this.posOut = 0, this.pos = 0;
|
|
6864
6864
|
}
|
|
6865
6865
|
update(t) {
|
|
6866
|
-
|
|
6866
|
+
mr(this), _t(t);
|
|
6867
6867
|
const { blockLen: r, state: n } = this, i = t.length;
|
|
6868
|
-
for (let
|
|
6869
|
-
const c = Math.min(r - this.pos, i -
|
|
6870
|
-
for (let l = 0; l < c; l++) n[this.pos++] ^= t[
|
|
6868
|
+
for (let s = 0; s < i; ) {
|
|
6869
|
+
const c = Math.min(r - this.pos, i - s);
|
|
6870
|
+
for (let l = 0; l < c; l++) n[this.pos++] ^= t[s++];
|
|
6871
6871
|
this.pos === r && this.keccak();
|
|
6872
6872
|
}
|
|
6873
6873
|
return this;
|
|
@@ -6879,11 +6879,11 @@ class ir {
|
|
|
6879
6879
|
t[n] ^= r, (r & 128) !== 0 && n === i - 1 && this.keccak(), t[i - 1] ^= 128, this.keccak();
|
|
6880
6880
|
}
|
|
6881
6881
|
writeInto(t) {
|
|
6882
|
-
|
|
6882
|
+
mr(this, false), _t(t), this.finish();
|
|
6883
6883
|
const r = this.state, { blockLen: n } = this;
|
|
6884
|
-
for (let i = 0,
|
|
6884
|
+
for (let i = 0, s = t.length; i < s; ) {
|
|
6885
6885
|
this.posOut >= n && this.keccak();
|
|
6886
|
-
const c = Math.min(n - this.posOut,
|
|
6886
|
+
const c = Math.min(n - this.posOut, s - i);
|
|
6887
6887
|
t.set(r.subarray(this.posOut, this.posOut + c), i), this.posOut += c, i += c;
|
|
6888
6888
|
}
|
|
6889
6889
|
return t;
|
|
@@ -6893,7 +6893,7 @@ class ir {
|
|
|
6893
6893
|
return this.writeInto(t);
|
|
6894
6894
|
}
|
|
6895
6895
|
xof(t) {
|
|
6896
|
-
return
|
|
6896
|
+
return pr(t), this.xofInto(new Uint8Array(t));
|
|
6897
6897
|
}
|
|
6898
6898
|
digestInto(t) {
|
|
6899
6899
|
if (ri(t, this), this.finished) throw new Error("digest() was already called");
|
|
@@ -6903,338 +6903,338 @@ class ir {
|
|
|
6903
6903
|
return this.digestInto(new Uint8Array(this.outputLen));
|
|
6904
6904
|
}
|
|
6905
6905
|
destroy() {
|
|
6906
|
-
this.destroyed = true,
|
|
6906
|
+
this.destroyed = true, Er(this.state);
|
|
6907
6907
|
}
|
|
6908
6908
|
_cloneInto(t) {
|
|
6909
|
-
const { blockLen: r, suffix: n, outputLen: i, rounds:
|
|
6910
|
-
return t ||= new
|
|
6909
|
+
const { blockLen: r, suffix: n, outputLen: i, rounds: s, enableXOF: c } = this;
|
|
6910
|
+
return t ||= new sr(r, n, i, c, s), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = s, t.suffix = n, t.outputLen = i, t.enableXOF = c, t.destroyed = this.destroyed, t;
|
|
6911
6911
|
}
|
|
6912
6912
|
}
|
|
6913
|
-
const gi = a((e, t, r, n = {}) => ai(() => new
|
|
6914
|
-
var Ii = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, ue = Math.floor,
|
|
6915
|
-
function
|
|
6916
|
-
var t, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null },
|
|
6917
|
-
function w(
|
|
6918
|
-
var f,
|
|
6919
|
-
if (!(
|
|
6913
|
+
const gi = a((e, t, r, n = {}) => ai(() => new sr(t, e, r), n), "genKeccak"), _i = gi(6, 72, 64, ci(10));
|
|
6914
|
+
var Ii = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, It = Math.ceil, ue = Math.floor, se = "[BigNumber Error] ", wr = se + "Number primitive has more than 15 significant digits: ", pe = 1e14, G = 14, St = 9007199254740991, Rt = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], Ce = 1e7, ee = 1e9;
|
|
6915
|
+
function Ar(e) {
|
|
6916
|
+
var t, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null }, s = new w(1), c = 20, l = 4, p = -7, E = 21, h = -1e7, _ = 1e7, v = false, C = 1, O = 0, M = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
|
|
6917
|
+
function w(o, u) {
|
|
6918
|
+
var f, I, m, S, y, d, g, R, T = this;
|
|
6919
|
+
if (!(T instanceof w)) return new w(o, u);
|
|
6920
6920
|
if (u == null) {
|
|
6921
|
-
if (
|
|
6922
|
-
|
|
6921
|
+
if (o && o._isBigNumber === true) {
|
|
6922
|
+
T.s = o.s, !o.c || o.e > _ ? T.c = T.e = null : o.e < h ? T.c = [T.e = 0] : (T.e = o.e, T.c = o.c.slice());
|
|
6923
6923
|
return;
|
|
6924
6924
|
}
|
|
6925
|
-
if ((d = typeof
|
|
6926
|
-
if (
|
|
6927
|
-
for (
|
|
6928
|
-
|
|
6925
|
+
if ((d = typeof o == "number") && o * 0 == 0) {
|
|
6926
|
+
if (T.s = 1 / o < 0 ? (o = -o, -1) : 1, o === ~~o) {
|
|
6927
|
+
for (S = 0, y = o; y >= 10; y /= 10, S++) ;
|
|
6928
|
+
S > _ ? T.c = T.e = null : (T.e = S, T.c = [o]);
|
|
6929
6929
|
return;
|
|
6930
6930
|
}
|
|
6931
|
-
|
|
6931
|
+
R = String(o);
|
|
6932
6932
|
} else {
|
|
6933
|
-
if (!Ii.test(
|
|
6934
|
-
|
|
6933
|
+
if (!Ii.test(R = String(o))) return n(T, R, d);
|
|
6934
|
+
T.s = R.charCodeAt(0) == 45 ? (R = R.slice(1), -1) : 1;
|
|
6935
6935
|
}
|
|
6936
|
-
(
|
|
6936
|
+
(S = R.indexOf(".")) > -1 && (R = R.replace(".", "")), (y = R.search(/e/i)) > 0 ? (S < 0 && (S = y), S += +R.slice(y + 1), R = R.substring(0, y)) : S < 0 && (S = R.length);
|
|
6937
6937
|
} else {
|
|
6938
|
-
if (J(u, 2, b.length, "Base"), u == 10 && P) return
|
|
6939
|
-
if (
|
|
6940
|
-
if (
|
|
6941
|
-
if (
|
|
6942
|
-
} else
|
|
6943
|
-
for (f = b.slice(0, u),
|
|
6944
|
-
if (
|
|
6945
|
-
if (y >
|
|
6946
|
-
|
|
6938
|
+
if (J(u, 2, b.length, "Base"), u == 10 && P) return T = new w(o), k(T, c + T.e + 1, l);
|
|
6939
|
+
if (R = String(o), d = typeof o == "number") {
|
|
6940
|
+
if (o * 0 != 0) return n(T, R, d, u);
|
|
6941
|
+
if (T.s = 1 / o < 0 ? (R = R.slice(1), -1) : 1, w.DEBUG && R.replace(/^0\.0*|\./, "").length > 15) throw Error(wr + o);
|
|
6942
|
+
} else T.s = R.charCodeAt(0) === 45 ? (R = R.slice(1), -1) : 1;
|
|
6943
|
+
for (f = b.slice(0, u), S = y = 0, g = R.length; y < g; y++) if (f.indexOf(I = R.charAt(y)) < 0) {
|
|
6944
|
+
if (I == ".") {
|
|
6945
|
+
if (y > S) {
|
|
6946
|
+
S = g;
|
|
6947
6947
|
continue;
|
|
6948
6948
|
}
|
|
6949
|
-
} else if (!m && (
|
|
6950
|
-
m = true, y = -1,
|
|
6949
|
+
} else if (!m && (R == R.toUpperCase() && (R = R.toLowerCase()) || R == R.toLowerCase() && (R = R.toUpperCase()))) {
|
|
6950
|
+
m = true, y = -1, S = 0;
|
|
6951
6951
|
continue;
|
|
6952
6952
|
}
|
|
6953
|
-
return n(
|
|
6953
|
+
return n(T, String(o), d, u);
|
|
6954
6954
|
}
|
|
6955
|
-
d = false,
|
|
6956
|
-
}
|
|
6957
|
-
for (y = 0;
|
|
6958
|
-
for (g =
|
|
6959
|
-
if (
|
|
6960
|
-
if (g -= y, d && w.DEBUG && g > 15 && (
|
|
6961
|
-
if ((
|
|
6962
|
-
else if (
|
|
6955
|
+
d = false, R = r(R, u, 10, T.s), (S = R.indexOf(".")) > -1 ? R = R.replace(".", "") : S = R.length;
|
|
6956
|
+
}
|
|
6957
|
+
for (y = 0; R.charCodeAt(y) === 48; y++) ;
|
|
6958
|
+
for (g = R.length; R.charCodeAt(--g) === 48; ) ;
|
|
6959
|
+
if (R = R.slice(y, ++g)) {
|
|
6960
|
+
if (g -= y, d && w.DEBUG && g > 15 && (o > St || o !== ue(o))) throw Error(wr + T.s * o);
|
|
6961
|
+
if ((S = S - y - 1) > _) T.c = T.e = null;
|
|
6962
|
+
else if (S < h) T.c = [T.e = 0];
|
|
6963
6963
|
else {
|
|
6964
|
-
if (
|
|
6965
|
-
for (y &&
|
|
6966
|
-
y = G - (
|
|
6964
|
+
if (T.e = S, T.c = [], y = (S + 1) % G, S < 0 && (y += G), y < g) {
|
|
6965
|
+
for (y && T.c.push(+R.slice(0, y)), g -= G; y < g; ) T.c.push(+R.slice(y, y += G));
|
|
6966
|
+
y = G - (R = R.slice(y)).length;
|
|
6967
6967
|
} else y -= g;
|
|
6968
|
-
for (; y--;
|
|
6969
|
-
|
|
6968
|
+
for (; y--; R += "0") ;
|
|
6969
|
+
T.c.push(+R);
|
|
6970
6970
|
}
|
|
6971
|
-
} else
|
|
6971
|
+
} else T.c = [T.e = 0];
|
|
6972
6972
|
}
|
|
6973
|
-
a(w, "BigNumber2"), w.clone =
|
|
6973
|
+
a(w, "BigNumber2"), w.clone = Ar, w.ROUND_UP = 0, w.ROUND_DOWN = 1, w.ROUND_CEIL = 2, w.ROUND_FLOOR = 3, w.ROUND_HALF_UP = 4, w.ROUND_HALF_DOWN = 5, w.ROUND_HALF_EVEN = 6, w.ROUND_HALF_CEIL = 7, w.ROUND_HALF_FLOOR = 8, w.EUCLID = 9, w.config = w.set = function(o) {
|
|
6974
6974
|
var u, f;
|
|
6975
|
-
if (
|
|
6976
|
-
if (
|
|
6977
|
-
else if (J(f, -ee, ee, u), f) h = -(
|
|
6978
|
-
else throw Error(
|
|
6979
|
-
if (
|
|
6980
|
-
else throw v = !f, Error(
|
|
6975
|
+
if (o != null) if (typeof o == "object") {
|
|
6976
|
+
if (o.hasOwnProperty(u = "DECIMAL_PLACES") && (f = o[u], J(f, 0, ee, u), c = f), o.hasOwnProperty(u = "ROUNDING_MODE") && (f = o[u], J(f, 0, 8, u), l = f), o.hasOwnProperty(u = "EXPONENTIAL_AT") && (f = o[u], f && f.pop ? (J(f[0], -ee, 0, u), J(f[1], 0, ee, u), p = f[0], E = f[1]) : (J(f, -ee, ee, u), p = -(E = f < 0 ? -f : f))), o.hasOwnProperty(u = "RANGE")) if (f = o[u], f && f.pop) J(f[0], -ee, -1, u), J(f[1], 1, ee, u), h = f[0], _ = f[1];
|
|
6977
|
+
else if (J(f, -ee, ee, u), f) h = -(_ = f < 0 ? -f : f);
|
|
6978
|
+
else throw Error(se + u + " cannot be zero: " + f);
|
|
6979
|
+
if (o.hasOwnProperty(u = "CRYPTO")) if (f = o[u], f === !!f) if (f) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) v = f;
|
|
6980
|
+
else throw v = !f, Error(se + "crypto unavailable");
|
|
6981
6981
|
else v = f;
|
|
6982
|
-
else throw Error(
|
|
6983
|
-
if (
|
|
6984
|
-
else throw Error(
|
|
6985
|
-
if (
|
|
6986
|
-
else throw Error(
|
|
6987
|
-
} else throw Error(
|
|
6988
|
-
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [p, E], RANGE: [h,
|
|
6989
|
-
}, w.isBigNumber = function(
|
|
6990
|
-
if (!
|
|
6982
|
+
else throw Error(se + u + " not true or false: " + f);
|
|
6983
|
+
if (o.hasOwnProperty(u = "MODULO_MODE") && (f = o[u], J(f, 0, 9, u), C = f), o.hasOwnProperty(u = "POW_PRECISION") && (f = o[u], J(f, 0, ee, u), O = f), o.hasOwnProperty(u = "FORMAT")) if (f = o[u], typeof f == "object") M = f;
|
|
6984
|
+
else throw Error(se + u + " not an object: " + f);
|
|
6985
|
+
if (o.hasOwnProperty(u = "ALPHABET")) if (f = o[u], typeof f == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(f)) P = f.slice(0, 10) == "0123456789", b = f;
|
|
6986
|
+
else throw Error(se + u + " invalid: " + f);
|
|
6987
|
+
} else throw Error(se + "Object expected: " + o);
|
|
6988
|
+
return { DECIMAL_PLACES: c, ROUNDING_MODE: l, EXPONENTIAL_AT: [p, E], RANGE: [h, _], CRYPTO: v, MODULO_MODE: C, POW_PRECISION: O, FORMAT: M, ALPHABET: b };
|
|
6989
|
+
}, w.isBigNumber = function(o) {
|
|
6990
|
+
if (!o || o._isBigNumber !== true) return false;
|
|
6991
6991
|
if (!w.DEBUG) return true;
|
|
6992
|
-
var u, f,
|
|
6993
|
-
e: if ({}.toString.call(
|
|
6994
|
-
if ((
|
|
6995
|
-
if (
|
|
6996
|
-
if (m === 0 &&
|
|
6992
|
+
var u, f, I = o.c, m = o.e, S = o.s;
|
|
6993
|
+
e: if ({}.toString.call(I) == "[object Array]") {
|
|
6994
|
+
if ((S === 1 || S === -1) && m >= -ee && m <= ee && m === ue(m)) {
|
|
6995
|
+
if (I[0] === 0) {
|
|
6996
|
+
if (m === 0 && I.length === 1) return true;
|
|
6997
6997
|
break e;
|
|
6998
6998
|
}
|
|
6999
|
-
if (u = (m + 1) % G, u < 1 && (u += G), String(
|
|
7000
|
-
for (u = 0; u <
|
|
6999
|
+
if (u = (m + 1) % G, u < 1 && (u += G), String(I[0]).length == u) {
|
|
7000
|
+
for (u = 0; u < I.length; u++) if (f = I[u], f < 0 || f >= pe || f !== ue(f)) break e;
|
|
7001
7001
|
if (f !== 0) return true;
|
|
7002
7002
|
}
|
|
7003
7003
|
}
|
|
7004
|
-
} else if (
|
|
7005
|
-
throw Error(
|
|
7004
|
+
} else if (I === null && m === null && (S === null || S === 1 || S === -1)) return true;
|
|
7005
|
+
throw Error(se + "Invalid BigNumber: " + o);
|
|
7006
7006
|
}, w.maximum = w.max = function() {
|
|
7007
7007
|
return x(arguments, -1);
|
|
7008
7008
|
}, w.minimum = w.min = function() {
|
|
7009
7009
|
return x(arguments, 1);
|
|
7010
7010
|
}, w.random = (function() {
|
|
7011
|
-
var
|
|
7012
|
-
return ue(Math.random() *
|
|
7011
|
+
var o = 9007199254740992, u = Math.random() * o & 2097151 ? function() {
|
|
7012
|
+
return ue(Math.random() * o);
|
|
7013
7013
|
} : function() {
|
|
7014
7014
|
return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
|
|
7015
7015
|
};
|
|
7016
7016
|
return function(f) {
|
|
7017
|
-
var
|
|
7017
|
+
var I, m, S, y, d, g = 0, R = [], T = new w(s);
|
|
7018
7018
|
if (f == null ? f = c : J(f, 0, ee), y = It(f / G), v) if (crypto.getRandomValues) {
|
|
7019
|
-
for (
|
|
7019
|
+
for (I = crypto.getRandomValues(new Uint32Array(y *= 2)); g < y; ) d = I[g] * 131072 + (I[g + 1] >>> 11), d >= 9e15 ? (m = crypto.getRandomValues(new Uint32Array(2)), I[g] = m[0], I[g + 1] = m[1]) : (R.push(d % 1e14), g += 2);
|
|
7020
7020
|
g = y / 2;
|
|
7021
7021
|
} else if (crypto.randomBytes) {
|
|
7022
|
-
for (
|
|
7022
|
+
for (I = crypto.randomBytes(y *= 7); g < y; ) d = (I[g] & 31) * 281474976710656 + I[g + 1] * 1099511627776 + I[g + 2] * 4294967296 + I[g + 3] * 16777216 + (I[g + 4] << 16) + (I[g + 5] << 8) + I[g + 6], d >= 9e15 ? crypto.randomBytes(7).copy(I, g) : (R.push(d % 1e14), g += 7);
|
|
7023
7023
|
g = y / 7;
|
|
7024
|
-
} else throw v = false, Error(
|
|
7025
|
-
if (!v) for (; g < y; ) d = u(), d < 9e15 && (
|
|
7026
|
-
for (y =
|
|
7027
|
-
if (g < 0)
|
|
7024
|
+
} else throw v = false, Error(se + "crypto unavailable");
|
|
7025
|
+
if (!v) for (; g < y; ) d = u(), d < 9e15 && (R[g++] = d % 1e14);
|
|
7026
|
+
for (y = R[--g], f %= G, y && f && (d = Rt[G - f], R[g] = ue(y / d) * d); R[g] === 0; R.pop(), g--) ;
|
|
7027
|
+
if (g < 0) R = [S = 0];
|
|
7028
7028
|
else {
|
|
7029
|
-
for (
|
|
7030
|
-
for (g = 1, d =
|
|
7031
|
-
g < G && (
|
|
7029
|
+
for (S = -1; R[0] === 0; R.splice(0, 1), S -= G) ;
|
|
7030
|
+
for (g = 1, d = R[0]; d >= 10; d /= 10, g++) ;
|
|
7031
|
+
g < G && (S -= G - g);
|
|
7032
7032
|
}
|
|
7033
|
-
return
|
|
7033
|
+
return T.e = S, T.c = R, T;
|
|
7034
7034
|
};
|
|
7035
7035
|
})(), w.sum = function() {
|
|
7036
|
-
for (var
|
|
7036
|
+
for (var o = 1, u = arguments, f = new w(u[0]); o < u.length; ) f = f.plus(u[o++]);
|
|
7037
7037
|
return f;
|
|
7038
7038
|
}, r = (function() {
|
|
7039
|
-
var
|
|
7040
|
-
function u(f,
|
|
7041
|
-
for (var y, d = [0], g,
|
|
7042
|
-
for (g = d.length; g--; d[g] *=
|
|
7043
|
-
for (d[0] +=
|
|
7039
|
+
var o = "0123456789";
|
|
7040
|
+
function u(f, I, m, S) {
|
|
7041
|
+
for (var y, d = [0], g, R = 0, T = f.length; R < T; ) {
|
|
7042
|
+
for (g = d.length; g--; d[g] *= I) ;
|
|
7043
|
+
for (d[0] += S.indexOf(f.charAt(R++)), y = 0; y < d.length; y++) d[y] > m - 1 && (d[y + 1] == null && (d[y + 1] = 0), d[y + 1] += d[y] / m | 0, d[y] %= m);
|
|
7044
7044
|
}
|
|
7045
7045
|
return d.reverse();
|
|
7046
7046
|
}
|
|
7047
|
-
return a(u, "toBaseOut"), function(f,
|
|
7048
|
-
var d, g,
|
|
7049
|
-
for (
|
|
7047
|
+
return a(u, "toBaseOut"), function(f, I, m, S, y) {
|
|
7048
|
+
var d, g, R, T, A, N, B, $, F = f.indexOf("."), q = c, D = l;
|
|
7049
|
+
for (F >= 0 && (T = O, O = 0, f = f.replace(".", ""), $ = new w(I), N = $.pow(f.length - F), O = T, $.c = u(ye(fe(N.c), N.e, "0"), 10, m, o), $.e = $.c.length), B = u(f, I, m, y ? (d = b, o) : (d = o, b)), R = T = B.length; B[--T] == 0; B.pop()) ;
|
|
7050
7050
|
if (!B[0]) return d.charAt(0);
|
|
7051
|
-
if (
|
|
7051
|
+
if (F < 0 ? --R : (N.c = B, N.e = R, N.s = S, N = t(N, $, q, D, m), B = N.c, A = N.r, R = N.e), g = R + q + 1, F = B[g], T = m / 2, A = A || g < 0 || B[g + 1] != null, A = D < 4 ? (F != null || A) && (D == 0 || D == (N.s < 0 ? 3 : 2)) : F > T || F == T && (D == 4 || A || D == 6 && B[g - 1] & 1 || D == (N.s < 0 ? 8 : 7)), g < 1 || !B[0]) f = A ? ye(d.charAt(1), -q, d.charAt(0)) : d.charAt(0);
|
|
7052
7052
|
else {
|
|
7053
|
-
if (B.length = g, A) for (--m; ++B[--g] > m; ) B[g] = 0, g || (++
|
|
7054
|
-
for (
|
|
7055
|
-
for (
|
|
7056
|
-
f = ye(f,
|
|
7053
|
+
if (B.length = g, A) for (--m; ++B[--g] > m; ) B[g] = 0, g || (++R, B = [1].concat(B));
|
|
7054
|
+
for (T = B.length; !B[--T]; ) ;
|
|
7055
|
+
for (F = 0, f = ""; F <= T; f += d.charAt(B[F++])) ;
|
|
7056
|
+
f = ye(f, R, d.charAt(0));
|
|
7057
7057
|
}
|
|
7058
7058
|
return f;
|
|
7059
7059
|
};
|
|
7060
7060
|
})(), t = (function() {
|
|
7061
|
-
function
|
|
7062
|
-
var y, d, g,
|
|
7063
|
-
for (
|
|
7064
|
-
return
|
|
7061
|
+
function o(I, m, S) {
|
|
7062
|
+
var y, d, g, R, T = 0, A = I.length, N = m % Ce, B = m / Ce | 0;
|
|
7063
|
+
for (I = I.slice(); A--; ) g = I[A] % Ce, R = I[A] / Ce | 0, y = B * g + R * N, d = N * g + y % Ce * Ce + T, T = (d / S | 0) + (y / Ce | 0) + B * R, I[A] = d % S;
|
|
7064
|
+
return T && (I = [T].concat(I)), I;
|
|
7065
7065
|
}
|
|
7066
|
-
a(
|
|
7067
|
-
function u(
|
|
7066
|
+
a(o, "multiply");
|
|
7067
|
+
function u(I, m, S, y) {
|
|
7068
7068
|
var d, g;
|
|
7069
|
-
if (
|
|
7070
|
-
else for (d = g = 0; d <
|
|
7071
|
-
g =
|
|
7069
|
+
if (S != y) g = S > y ? 1 : -1;
|
|
7070
|
+
else for (d = g = 0; d < S; d++) if (I[d] != m[d]) {
|
|
7071
|
+
g = I[d] > m[d] ? 1 : -1;
|
|
7072
7072
|
break;
|
|
7073
7073
|
}
|
|
7074
7074
|
return g;
|
|
7075
7075
|
}
|
|
7076
7076
|
a(u, "compare2");
|
|
7077
|
-
function f(
|
|
7078
|
-
for (var d = 0;
|
|
7079
|
-
for (; !
|
|
7080
|
-
}
|
|
7081
|
-
return a(f, "subtract"), function(
|
|
7082
|
-
var g,
|
|
7083
|
-
if (!Z || !Z[0] || !z || !z[0]) return new w(!
|
|
7084
|
-
for (
|
|
7085
|
-
if (z[
|
|
7077
|
+
function f(I, m, S, y) {
|
|
7078
|
+
for (var d = 0; S--; ) I[S] -= d, d = I[S] < m[S] ? 1 : 0, I[S] = d * y + I[S] - m[S];
|
|
7079
|
+
for (; !I[0] && I.length > 1; I.splice(0, 1)) ;
|
|
7080
|
+
}
|
|
7081
|
+
return a(f, "subtract"), function(I, m, S, y, d) {
|
|
7082
|
+
var g, R, T, A, N, B, $, F, q, D, H, Y, he, be, ve, re, de, X = I.s == m.s ? 1 : -1, Z = I.c, z = m.c;
|
|
7083
|
+
if (!Z || !Z[0] || !z || !z[0]) return new w(!I.s || !m.s || (Z ? z && Z[0] == z[0] : !z) ? NaN : Z && Z[0] == 0 || !z ? X * 0 : X / 0);
|
|
7084
|
+
for (F = new w(X), q = F.c = [], R = I.e - m.e, X = S + R + 1, d || (d = pe, R = le(I.e / G) - le(m.e / G), X = X / G | 0), T = 0; z[T] == (Z[T] || 0); T++) ;
|
|
7085
|
+
if (z[T] > (Z[T] || 0) && R--, X < 0) q.push(1), A = true;
|
|
7086
7086
|
else {
|
|
7087
|
-
for (be = Z.length, re = z.length,
|
|
7087
|
+
for (be = Z.length, re = z.length, T = 0, X += 2, N = ue(d / (z[0] + 1)), N > 1 && (z = o(z, N, d), Z = o(Z, N, d), re = z.length, be = Z.length), he = re, D = Z.slice(0, re), H = D.length; H < re; D[H++] = 0) ;
|
|
7088
7088
|
de = z.slice(), de = [0].concat(de), ve = z[0], z[1] >= d / 2 && ve++;
|
|
7089
7089
|
do {
|
|
7090
|
-
if (
|
|
7091
|
-
if (Y =
|
|
7092
|
-
else
|
|
7093
|
-
if ($ < H && (B = [0].concat(B)), f(
|
|
7094
|
-
} else g === 0 && (
|
|
7095
|
-
q[
|
|
7096
|
-
} while ((he++ < be ||
|
|
7097
|
-
A =
|
|
7090
|
+
if (N = 0, g = u(z, D, re, H), g < 0) {
|
|
7091
|
+
if (Y = D[0], re != H && (Y = Y * d + (D[1] || 0)), N = ue(Y / ve), N > 1) for (N >= d && (N = d - 1), B = o(z, N, d), $ = B.length, H = D.length; u(B, D, $, H) == 1; ) N--, f(B, re < $ ? de : z, $, d), $ = B.length, g = 1;
|
|
7092
|
+
else N == 0 && (g = N = 1), B = z.slice(), $ = B.length;
|
|
7093
|
+
if ($ < H && (B = [0].concat(B)), f(D, B, H, d), H = D.length, g == -1) for (; u(z, D, re, H) < 1; ) N++, f(D, re < H ? de : z, H, d), H = D.length;
|
|
7094
|
+
} else g === 0 && (N++, D = [0]);
|
|
7095
|
+
q[T++] = N, D[0] ? D[H++] = Z[he] || 0 : (D = [Z[he]], H = 1);
|
|
7096
|
+
} while ((he++ < be || D[0] != null) && X--);
|
|
7097
|
+
A = D[0] != null, q[0] || q.splice(0, 1);
|
|
7098
7098
|
}
|
|
7099
7099
|
if (d == pe) {
|
|
7100
|
-
for (
|
|
7101
|
-
k(
|
|
7102
|
-
} else
|
|
7103
|
-
return
|
|
7100
|
+
for (T = 1, X = q[0]; X >= 10; X /= 10, T++) ;
|
|
7101
|
+
k(F, S + (F.e = T + R * G - 1) + 1, y, A);
|
|
7102
|
+
} else F.e = R, F.r = +A;
|
|
7103
|
+
return F;
|
|
7104
7104
|
};
|
|
7105
7105
|
})();
|
|
7106
|
-
function L(
|
|
7107
|
-
var m,
|
|
7108
|
-
if (f == null ? f = l : J(f, 0, 8), !
|
|
7109
|
-
if (m =
|
|
7110
|
-
else if (
|
|
7106
|
+
function L(o, u, f, I) {
|
|
7107
|
+
var m, S, y, d, g;
|
|
7108
|
+
if (f == null ? f = l : J(f, 0, 8), !o.c) return o.toString();
|
|
7109
|
+
if (m = o.c[0], y = o.e, u == null) g = fe(o.c), g = I == 1 || I == 2 && (y <= p || y >= E) ? it(g, y) : ye(g, y, "0");
|
|
7110
|
+
else if (o = k(new w(o), u, f), S = o.e, g = fe(o.c), d = g.length, I == 1 || I == 2 && (u <= S || S <= p)) {
|
|
7111
7111
|
for (; d < u; g += "0", d++) ;
|
|
7112
|
-
g = it(g,
|
|
7113
|
-
} else if (u -= y + (
|
|
7112
|
+
g = it(g, S);
|
|
7113
|
+
} else if (u -= y + (I === 2 && S > y), g = ye(g, S, "0"), S + 1 > d) {
|
|
7114
7114
|
if (--u > 0) for (g += "."; u--; g += "0") ;
|
|
7115
|
-
} else if (u +=
|
|
7116
|
-
return
|
|
7115
|
+
} else if (u += S - d, u > 0) for (S + 1 == d && (g += "."); u--; g += "0") ;
|
|
7116
|
+
return o.s < 0 && m ? "-" + g : g;
|
|
7117
7117
|
}
|
|
7118
7118
|
a(L, "format");
|
|
7119
|
-
function x(
|
|
7120
|
-
for (var f,
|
|
7121
|
-
return
|
|
7119
|
+
function x(o, u) {
|
|
7120
|
+
for (var f, I, m = 1, S = new w(o[0]); m < o.length; m++) I = new w(o[m]), (!I.s || (f = Me(S, I)) === u || f === 0 && S.s === u) && (S = I);
|
|
7121
|
+
return S;
|
|
7122
7122
|
}
|
|
7123
7123
|
a(x, "maxOrMin");
|
|
7124
|
-
function U(
|
|
7125
|
-
for (var
|
|
7126
|
-
for (m = u[0]; m >= 10; m /= 10,
|
|
7127
|
-
return (f =
|
|
7124
|
+
function U(o, u, f) {
|
|
7125
|
+
for (var I = 1, m = u.length; !u[--m]; u.pop()) ;
|
|
7126
|
+
for (m = u[0]; m >= 10; m /= 10, I++) ;
|
|
7127
|
+
return (f = I + f * G - 1) > _ ? o.c = o.e = null : f < h ? o.c = [o.e = 0] : (o.e = f, o.c = u), o;
|
|
7128
7128
|
}
|
|
7129
7129
|
a(U, "normalise"), n = /* @__PURE__ */ (function() {
|
|
7130
|
-
var
|
|
7131
|
-
return function(
|
|
7132
|
-
var
|
|
7133
|
-
if (
|
|
7130
|
+
var o = /^(-?)0([xbo])(?=\w[\w.]*$)/i, u = /^([^.]+)\.$/, f = /^\.([^.]+)$/, I = /^-?(Infinity|NaN)$/, m = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
|
|
7131
|
+
return function(S, y, d, g) {
|
|
7132
|
+
var R, T = d ? y : y.replace(m, "");
|
|
7133
|
+
if (I.test(T)) S.s = isNaN(T) ? null : T < 0 ? -1 : 1;
|
|
7134
7134
|
else {
|
|
7135
|
-
if (!d && (
|
|
7136
|
-
return
|
|
7137
|
-
}), g && (
|
|
7138
|
-
if (w.DEBUG) throw Error(
|
|
7139
|
-
|
|
7135
|
+
if (!d && (T = T.replace(o, function(A, N, B) {
|
|
7136
|
+
return R = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !g || g == R ? N : A;
|
|
7137
|
+
}), g && (R = g, T = T.replace(u, "$1").replace(f, "0.$1")), y != T)) return new w(T, R);
|
|
7138
|
+
if (w.DEBUG) throw Error(se + "Not a" + (g ? " base " + g : "") + " number: " + y);
|
|
7139
|
+
S.s = null;
|
|
7140
7140
|
}
|
|
7141
|
-
|
|
7141
|
+
S.c = S.e = null;
|
|
7142
7142
|
};
|
|
7143
7143
|
})();
|
|
7144
|
-
function k(
|
|
7145
|
-
var m,
|
|
7144
|
+
function k(o, u, f, I) {
|
|
7145
|
+
var m, S, y, d, g, R, T, A = o.c, N = Rt;
|
|
7146
7146
|
if (A) {
|
|
7147
7147
|
e: {
|
|
7148
7148
|
for (m = 1, d = A[0]; d >= 10; d /= 10, m++) ;
|
|
7149
|
-
if (
|
|
7150
|
-
else if (
|
|
7151
|
-
for (; A.length <=
|
|
7152
|
-
g =
|
|
7149
|
+
if (S = u - m, S < 0) S += G, y = u, g = A[R = 0], T = ue(g / N[m - y - 1] % 10);
|
|
7150
|
+
else if (R = It((S + 1) / G), R >= A.length) if (I) {
|
|
7151
|
+
for (; A.length <= R; A.push(0)) ;
|
|
7152
|
+
g = T = 0, m = 1, S %= G, y = S - G + 1;
|
|
7153
7153
|
} else break e;
|
|
7154
7154
|
else {
|
|
7155
|
-
for (g = d = A[
|
|
7156
|
-
|
|
7155
|
+
for (g = d = A[R], m = 1; d >= 10; d /= 10, m++) ;
|
|
7156
|
+
S %= G, y = S - G + m, T = y < 0 ? 0 : ue(g / N[m - y - 1] % 10);
|
|
7157
7157
|
}
|
|
7158
|
-
if (
|
|
7159
|
-
if (
|
|
7160
|
-
for (
|
|
7158
|
+
if (I = I || u < 0 || A[R + 1] != null || (y < 0 ? g : g % N[m - y - 1]), I = f < 4 ? (T || I) && (f == 0 || f == (o.s < 0 ? 3 : 2)) : T > 5 || T == 5 && (f == 4 || I || f == 6 && (S > 0 ? y > 0 ? g / N[m - y] : 0 : A[R - 1]) % 10 & 1 || f == (o.s < 0 ? 8 : 7)), u < 1 || !A[0]) return A.length = 0, I ? (u -= o.e + 1, A[0] = N[(G - u % G) % G], o.e = -u || 0) : A[0] = o.e = 0, o;
|
|
7159
|
+
if (S == 0 ? (A.length = R, d = 1, R--) : (A.length = R + 1, d = N[G - S], A[R] = y > 0 ? ue(g / N[m - y] % N[y]) * d : 0), I) for (; ; ) if (R == 0) {
|
|
7160
|
+
for (S = 1, y = A[0]; y >= 10; y /= 10, S++) ;
|
|
7161
7161
|
for (y = A[0] += d, d = 1; y >= 10; y /= 10, d++) ;
|
|
7162
|
-
|
|
7162
|
+
S != d && (o.e++, A[0] == pe && (A[0] = 1));
|
|
7163
7163
|
break;
|
|
7164
7164
|
} else {
|
|
7165
|
-
if (A[
|
|
7166
|
-
A[
|
|
7165
|
+
if (A[R] += d, A[R] != pe) break;
|
|
7166
|
+
A[R--] = 0, d = 1;
|
|
7167
7167
|
}
|
|
7168
|
-
for (
|
|
7168
|
+
for (S = A.length; A[--S] === 0; A.pop()) ;
|
|
7169
7169
|
}
|
|
7170
|
-
|
|
7170
|
+
o.e > _ ? o.c = o.e = null : o.e < h && (o.c = [o.e = 0]);
|
|
7171
7171
|
}
|
|
7172
|
-
return
|
|
7172
|
+
return o;
|
|
7173
7173
|
}
|
|
7174
7174
|
a(k, "round");
|
|
7175
|
-
function
|
|
7176
|
-
var u, f =
|
|
7177
|
-
return f === null ?
|
|
7178
|
-
}
|
|
7179
|
-
return a(
|
|
7180
|
-
var
|
|
7181
|
-
return
|
|
7182
|
-
}, i.comparedTo = function(
|
|
7183
|
-
return Me(this, new w(
|
|
7184
|
-
}, i.decimalPlaces = i.dp = function(
|
|
7185
|
-
var f,
|
|
7186
|
-
if (
|
|
7187
|
-
if (!(f =
|
|
7188
|
-
if (
|
|
7189
|
-
return
|
|
7190
|
-
}, i.dividedBy = i.div = function(
|
|
7191
|
-
return t(this, new w(
|
|
7192
|
-
}, i.dividedToIntegerBy = i.idiv = function(
|
|
7193
|
-
return t(this, new w(
|
|
7194
|
-
}, i.exponentiatedBy = i.pow = function(
|
|
7195
|
-
var f,
|
|
7196
|
-
if (
|
|
7197
|
-
if (u != null && (u = new w(u)), d =
|
|
7198
|
-
if (g =
|
|
7175
|
+
function j(o) {
|
|
7176
|
+
var u, f = o.e;
|
|
7177
|
+
return f === null ? o.toString() : (u = fe(o.c), u = f <= p || f >= E ? it(u, f) : ye(u, f, "0"), o.s < 0 ? "-" + u : u);
|
|
7178
|
+
}
|
|
7179
|
+
return a(j, "valueOf"), i.absoluteValue = i.abs = function() {
|
|
7180
|
+
var o = new w(this);
|
|
7181
|
+
return o.s < 0 && (o.s = 1), o;
|
|
7182
|
+
}, i.comparedTo = function(o, u) {
|
|
7183
|
+
return Me(this, new w(o, u));
|
|
7184
|
+
}, i.decimalPlaces = i.dp = function(o, u) {
|
|
7185
|
+
var f, I, m, S = this;
|
|
7186
|
+
if (o != null) return J(o, 0, ee), u == null ? u = l : J(u, 0, 8), k(new w(S), o + S.e + 1, u);
|
|
7187
|
+
if (!(f = S.c)) return null;
|
|
7188
|
+
if (I = ((m = f.length - 1) - le(this.e / G)) * G, m = f[m]) for (; m % 10 == 0; m /= 10, I--) ;
|
|
7189
|
+
return I < 0 && (I = 0), I;
|
|
7190
|
+
}, i.dividedBy = i.div = function(o, u) {
|
|
7191
|
+
return t(this, new w(o, u), c, l);
|
|
7192
|
+
}, i.dividedToIntegerBy = i.idiv = function(o, u) {
|
|
7193
|
+
return t(this, new w(o, u), 0, 1);
|
|
7194
|
+
}, i.exponentiatedBy = i.pow = function(o, u) {
|
|
7195
|
+
var f, I, m, S, y, d, g, R, T, A = this;
|
|
7196
|
+
if (o = new w(o), o.c && !o.isInteger()) throw Error(se + "Exponent not an integer: " + j(o));
|
|
7197
|
+
if (u != null && (u = new w(u)), d = o.e > 14, !A.c || !A.c[0] || A.c[0] == 1 && !A.e && A.c.length == 1 || !o.c || !o.c[0]) return T = new w(Math.pow(+j(A), d ? o.s * (2 - nt(o)) : +j(o))), u ? T.mod(u) : T;
|
|
7198
|
+
if (g = o.s < 0, u) {
|
|
7199
7199
|
if (u.c ? !u.c[0] : !u.s) return new w(NaN);
|
|
7200
|
-
|
|
7200
|
+
I = !g && A.isInteger() && u.isInteger(), I && (A = A.mod(u));
|
|
7201
7201
|
} else {
|
|
7202
|
-
if (
|
|
7203
|
-
|
|
7202
|
+
if (o.e > 9 && (A.e > 0 || A.e < -1 || (A.e == 0 ? A.c[0] > 1 || d && A.c[1] >= 24e7 : A.c[0] < 8e13 || d && A.c[0] <= 9999975e7))) return S = A.s < 0 && nt(o) ? -0 : 0, A.e > -1 && (S = 1 / S), new w(g ? 1 / S : S);
|
|
7203
|
+
O && (S = It(O / G + 2));
|
|
7204
7204
|
}
|
|
7205
|
-
for (d ? (f = new w(0.5), g && (
|
|
7206
|
-
if (
|
|
7207
|
-
if (
|
|
7208
|
-
|
|
7205
|
+
for (d ? (f = new w(0.5), g && (o.s = 1), R = nt(o)) : (m = Math.abs(+j(o)), R = m % 2), T = new w(s); ; ) {
|
|
7206
|
+
if (R) {
|
|
7207
|
+
if (T = T.times(A), !T.c) break;
|
|
7208
|
+
S ? T.c.length > S && (T.c.length = S) : I && (T = T.mod(u));
|
|
7209
7209
|
}
|
|
7210
7210
|
if (m) {
|
|
7211
7211
|
if (m = ue(m / 2), m === 0) break;
|
|
7212
|
-
|
|
7213
|
-
} else if (
|
|
7212
|
+
R = m % 2;
|
|
7213
|
+
} else if (o = o.times(f), k(o, o.e + 1, 1), o.e > 14) R = nt(o);
|
|
7214
7214
|
else {
|
|
7215
|
-
if (m = +
|
|
7216
|
-
|
|
7215
|
+
if (m = +j(o), m === 0) break;
|
|
7216
|
+
R = m % 2;
|
|
7217
7217
|
}
|
|
7218
|
-
A = A.times(A),
|
|
7218
|
+
A = A.times(A), S ? A.c && A.c.length > S && (A.c.length = S) : I && (A = A.mod(u));
|
|
7219
7219
|
}
|
|
7220
|
-
return
|
|
7221
|
-
}, i.integerValue = function(
|
|
7220
|
+
return I ? T : (g && (T = s.div(T)), u ? T.mod(u) : S ? k(T, O, l, y) : T);
|
|
7221
|
+
}, i.integerValue = function(o) {
|
|
7222
7222
|
var u = new w(this);
|
|
7223
|
-
return
|
|
7224
|
-
}, i.isEqualTo = i.eq = function(
|
|
7225
|
-
return Me(this, new w(
|
|
7223
|
+
return o == null ? o = l : J(o, 0, 8), k(u, u.e + 1, o);
|
|
7224
|
+
}, i.isEqualTo = i.eq = function(o, u) {
|
|
7225
|
+
return Me(this, new w(o, u)) === 0;
|
|
7226
7226
|
}, i.isFinite = function() {
|
|
7227
7227
|
return !!this.c;
|
|
7228
|
-
}, i.isGreaterThan = i.gt = function(
|
|
7229
|
-
return Me(this, new w(
|
|
7230
|
-
}, i.isGreaterThanOrEqualTo = i.gte = function(
|
|
7231
|
-
return (u = Me(this, new w(
|
|
7228
|
+
}, i.isGreaterThan = i.gt = function(o, u) {
|
|
7229
|
+
return Me(this, new w(o, u)) > 0;
|
|
7230
|
+
}, i.isGreaterThanOrEqualTo = i.gte = function(o, u) {
|
|
7231
|
+
return (u = Me(this, new w(o, u))) === 1 || u === 0;
|
|
7232
7232
|
}, i.isInteger = function() {
|
|
7233
7233
|
return !!this.c && le(this.e / G) > this.c.length - 2;
|
|
7234
|
-
}, i.isLessThan = i.lt = function(
|
|
7235
|
-
return Me(this, new w(
|
|
7236
|
-
}, i.isLessThanOrEqualTo = i.lte = function(
|
|
7237
|
-
return (u = Me(this, new w(
|
|
7234
|
+
}, i.isLessThan = i.lt = function(o, u) {
|
|
7235
|
+
return Me(this, new w(o, u)) < 0;
|
|
7236
|
+
}, i.isLessThanOrEqualTo = i.lte = function(o, u) {
|
|
7237
|
+
return (u = Me(this, new w(o, u))) === -1 || u === 0;
|
|
7238
7238
|
}, i.isNaN = function() {
|
|
7239
7239
|
return !this.s;
|
|
7240
7240
|
}, i.isNegative = function() {
|
|
@@ -7243,151 +7243,151 @@ function wr(e) {
|
|
|
7243
7243
|
return this.s > 0;
|
|
7244
7244
|
}, i.isZero = function() {
|
|
7245
7245
|
return !!this.c && this.c[0] == 0;
|
|
7246
|
-
}, i.minus = function(
|
|
7247
|
-
var f,
|
|
7248
|
-
if (
|
|
7249
|
-
if (d != u) return
|
|
7250
|
-
var g = y.e / G,
|
|
7251
|
-
if (!g || !
|
|
7252
|
-
if (!
|
|
7253
|
-
if (!
|
|
7254
|
-
}
|
|
7255
|
-
if (g = le(g),
|
|
7256
|
-
for ((
|
|
7246
|
+
}, i.minus = function(o, u) {
|
|
7247
|
+
var f, I, m, S, y = this, d = y.s;
|
|
7248
|
+
if (o = new w(o, u), u = o.s, !d || !u) return new w(NaN);
|
|
7249
|
+
if (d != u) return o.s = -u, y.plus(o);
|
|
7250
|
+
var g = y.e / G, R = o.e / G, T = y.c, A = o.c;
|
|
7251
|
+
if (!g || !R) {
|
|
7252
|
+
if (!T || !A) return T ? (o.s = -u, o) : new w(A ? y : NaN);
|
|
7253
|
+
if (!T[0] || !A[0]) return A[0] ? (o.s = -u, o) : new w(T[0] ? y : l == 3 ? -0 : 0);
|
|
7254
|
+
}
|
|
7255
|
+
if (g = le(g), R = le(R), T = T.slice(), d = g - R) {
|
|
7256
|
+
for ((S = d < 0) ? (d = -d, m = T) : (R = g, m = A), m.reverse(), u = d; u--; m.push(0)) ;
|
|
7257
7257
|
m.reverse();
|
|
7258
|
-
} else for (
|
|
7259
|
-
|
|
7258
|
+
} else for (I = (S = (d = T.length) < (u = A.length)) ? d : u, d = u = 0; u < I; u++) if (T[u] != A[u]) {
|
|
7259
|
+
S = T[u] < A[u];
|
|
7260
7260
|
break;
|
|
7261
7261
|
}
|
|
7262
|
-
if (
|
|
7263
|
-
for (u = pe - 1;
|
|
7264
|
-
if (
|
|
7265
|
-
for (f =
|
|
7266
|
-
--
|
|
7262
|
+
if (S && (m = T, T = A, A = m, o.s = -o.s), u = (I = A.length) - (f = T.length), u > 0) for (; u--; T[f++] = 0) ;
|
|
7263
|
+
for (u = pe - 1; I > d; ) {
|
|
7264
|
+
if (T[--I] < A[I]) {
|
|
7265
|
+
for (f = I; f && !T[--f]; T[f] = u) ;
|
|
7266
|
+
--T[f], T[I] += pe;
|
|
7267
7267
|
}
|
|
7268
|
-
|
|
7269
|
-
}
|
|
7270
|
-
for (;
|
|
7271
|
-
return
|
|
7272
|
-
}, i.modulo = i.mod = function(
|
|
7273
|
-
var f,
|
|
7274
|
-
return
|
|
7275
|
-
}, i.multipliedBy = i.times = function(
|
|
7276
|
-
var f,
|
|
7277
|
-
if (!H || !Y || !H[0] || !Y[0]) return !
|
|
7278
|
-
for (
|
|
7279
|
-
for (
|
|
7280
|
-
for (f = 0,
|
|
7281
|
-
$[
|
|
7282
|
-
}
|
|
7283
|
-
return f ? ++
|
|
7268
|
+
T[I] -= A[I];
|
|
7269
|
+
}
|
|
7270
|
+
for (; T[0] == 0; T.splice(0, 1), --R) ;
|
|
7271
|
+
return T[0] ? U(o, T, R) : (o.s = l == 3 ? -1 : 1, o.c = [o.e = 0], o);
|
|
7272
|
+
}, i.modulo = i.mod = function(o, u) {
|
|
7273
|
+
var f, I, m = this;
|
|
7274
|
+
return o = new w(o, u), !m.c || !o.s || o.c && !o.c[0] ? new w(NaN) : !o.c || m.c && !m.c[0] ? new w(m) : (C == 9 ? (I = o.s, o.s = 1, f = t(m, o, 0, 3), o.s = I, f.s *= I) : f = t(m, o, 0, C), o = m.minus(f.times(o)), !o.c[0] && C == 1 && (o.s = m.s), o);
|
|
7275
|
+
}, i.multipliedBy = i.times = function(o, u) {
|
|
7276
|
+
var f, I, m, S, y, d, g, R, T, A, N, B, $, F, q, D = this, H = D.c, Y = (o = new w(o, u)).c;
|
|
7277
|
+
if (!H || !Y || !H[0] || !Y[0]) return !D.s || !o.s || H && !H[0] && !Y || Y && !Y[0] && !H ? o.c = o.e = o.s = null : (o.s *= D.s, !H || !Y ? o.c = o.e = null : (o.c = [0], o.e = 0)), o;
|
|
7278
|
+
for (I = le(D.e / G) + le(o.e / G), o.s *= D.s, g = H.length, A = Y.length, g < A && ($ = H, H = Y, Y = $, m = g, g = A, A = m), m = g + A, $ = []; m--; $.push(0)) ;
|
|
7279
|
+
for (F = pe, q = Ce, m = A; --m >= 0; ) {
|
|
7280
|
+
for (f = 0, N = Y[m] % q, B = Y[m] / q | 0, y = g, S = m + y; S > m; ) R = H[--y] % q, T = H[y] / q | 0, d = B * R + T * N, R = N * R + d % q * q + $[S] + f, f = (R / F | 0) + (d / q | 0) + B * T, $[S--] = R % F;
|
|
7281
|
+
$[S] = f;
|
|
7282
|
+
}
|
|
7283
|
+
return f ? ++I : $.splice(0, 1), U(o, $, I);
|
|
7284
7284
|
}, i.negated = function() {
|
|
7285
|
-
var
|
|
7286
|
-
return
|
|
7287
|
-
}, i.plus = function(
|
|
7288
|
-
var f,
|
|
7289
|
-
if (
|
|
7290
|
-
if (m != u) return
|
|
7291
|
-
var
|
|
7292
|
-
if (!
|
|
7285
|
+
var o = new w(this);
|
|
7286
|
+
return o.s = -o.s || null, o;
|
|
7287
|
+
}, i.plus = function(o, u) {
|
|
7288
|
+
var f, I = this, m = I.s;
|
|
7289
|
+
if (o = new w(o, u), u = o.s, !m || !u) return new w(NaN);
|
|
7290
|
+
if (m != u) return o.s = -u, I.minus(o);
|
|
7291
|
+
var S = I.e / G, y = o.e / G, d = I.c, g = o.c;
|
|
7292
|
+
if (!S || !y) {
|
|
7293
7293
|
if (!d || !g) return new w(m / 0);
|
|
7294
|
-
if (!d[0] || !g[0]) return g[0] ?
|
|
7294
|
+
if (!d[0] || !g[0]) return g[0] ? o : new w(d[0] ? I : m * 0);
|
|
7295
7295
|
}
|
|
7296
|
-
if (
|
|
7297
|
-
for (m > 0 ? (y =
|
|
7296
|
+
if (S = le(S), y = le(y), d = d.slice(), m = S - y) {
|
|
7297
|
+
for (m > 0 ? (y = S, f = g) : (m = -m, f = d), f.reverse(); m--; f.push(0)) ;
|
|
7298
7298
|
f.reverse();
|
|
7299
7299
|
}
|
|
7300
7300
|
for (m = d.length, u = g.length, m - u < 0 && (f = g, g = d, d = f, u = m), m = 0; u; ) m = (d[--u] = d[u] + g[u] + m) / pe | 0, d[u] = pe === d[u] ? 0 : d[u] % pe;
|
|
7301
|
-
return m && (d = [m].concat(d), ++y), U(
|
|
7302
|
-
}, i.precision = i.sd = function(
|
|
7303
|
-
var f,
|
|
7304
|
-
if (
|
|
7305
|
-
if (!(f =
|
|
7306
|
-
if (m = f.length - 1,
|
|
7307
|
-
for (; m % 10 == 0; m /= 10,
|
|
7308
|
-
for (m = f[0]; m >= 10; m /= 10,
|
|
7309
|
-
}
|
|
7310
|
-
return
|
|
7311
|
-
}, i.shiftedBy = function(
|
|
7312
|
-
return J(
|
|
7301
|
+
return m && (d = [m].concat(d), ++y), U(o, d, y);
|
|
7302
|
+
}, i.precision = i.sd = function(o, u) {
|
|
7303
|
+
var f, I, m, S = this;
|
|
7304
|
+
if (o != null && o !== !!o) return J(o, 1, ee), u == null ? u = l : J(u, 0, 8), k(new w(S), o, u);
|
|
7305
|
+
if (!(f = S.c)) return null;
|
|
7306
|
+
if (m = f.length - 1, I = m * G + 1, m = f[m]) {
|
|
7307
|
+
for (; m % 10 == 0; m /= 10, I--) ;
|
|
7308
|
+
for (m = f[0]; m >= 10; m /= 10, I++) ;
|
|
7309
|
+
}
|
|
7310
|
+
return o && S.e + 1 > I && (I = S.e + 1), I;
|
|
7311
|
+
}, i.shiftedBy = function(o) {
|
|
7312
|
+
return J(o, -St, St), this.times("1e" + o);
|
|
7313
7313
|
}, i.squareRoot = i.sqrt = function() {
|
|
7314
|
-
var
|
|
7315
|
-
if (d !== 1 || !y || !y[0]) return new w(!d || d < 0 && (!y || y[0]) ? NaN : y ?
|
|
7316
|
-
if (d = Math.sqrt(+
|
|
7317
|
-
for (g = f.e, d = g +
|
|
7318
|
-
if (!
|
|
7314
|
+
var o, u, f, I, m, S = this, y = S.c, d = S.s, g = S.e, R = c + 4, T = new w("0.5");
|
|
7315
|
+
if (d !== 1 || !y || !y[0]) return new w(!d || d < 0 && (!y || y[0]) ? NaN : y ? S : 1 / 0);
|
|
7316
|
+
if (d = Math.sqrt(+j(S)), d == 0 || d == 1 / 0 ? (u = fe(y), (u.length + g) % 2 == 0 && (u += "0"), d = Math.sqrt(+u), g = le((g + 1) / 2) - (g < 0 || g % 2), d == 1 / 0 ? u = "5e" + g : (u = d.toExponential(), u = u.slice(0, u.indexOf("e") + 1) + g), f = new w(u)) : f = new w(d + ""), f.c[0]) {
|
|
7317
|
+
for (g = f.e, d = g + R, d < 3 && (d = 0); ; ) if (m = f, f = T.times(m.plus(t(S, m, R, 1))), fe(m.c).slice(0, d) === (u = fe(f.c)).slice(0, d)) if (f.e < g && --d, u = u.slice(d - 3, d + 1), u == "9999" || !I && u == "4999") {
|
|
7318
|
+
if (!I && (k(m, m.e + c + 2, 0), m.times(m).eq(S))) {
|
|
7319
7319
|
f = m;
|
|
7320
7320
|
break;
|
|
7321
7321
|
}
|
|
7322
|
-
|
|
7322
|
+
R += 4, d += 4, I = 1;
|
|
7323
7323
|
} else {
|
|
7324
|
-
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (k(f, f.e + c + 2, 1),
|
|
7324
|
+
(!+u || !+u.slice(1) && u.charAt(0) == "5") && (k(f, f.e + c + 2, 1), o = !f.times(f).eq(S));
|
|
7325
7325
|
break;
|
|
7326
7326
|
}
|
|
7327
7327
|
}
|
|
7328
|
-
return k(f, f.e + c + 1, l,
|
|
7329
|
-
}, i.toExponential = function(
|
|
7330
|
-
return
|
|
7331
|
-
}, i.toFixed = function(
|
|
7332
|
-
return
|
|
7333
|
-
}, i.toFormat = function(
|
|
7334
|
-
var
|
|
7335
|
-
if (f == null)
|
|
7336
|
-
else if (typeof f != "object") throw Error(
|
|
7337
|
-
if (
|
|
7338
|
-
var
|
|
7339
|
-
if (g && (
|
|
7340
|
-
for (
|
|
7341
|
-
g > 0 && (
|
|
7328
|
+
return k(f, f.e + c + 1, l, o);
|
|
7329
|
+
}, i.toExponential = function(o, u) {
|
|
7330
|
+
return o != null && (J(o, 0, ee), o++), L(this, o, u, 1);
|
|
7331
|
+
}, i.toFixed = function(o, u) {
|
|
7332
|
+
return o != null && (J(o, 0, ee), o = o + this.e + 1), L(this, o, u);
|
|
7333
|
+
}, i.toFormat = function(o, u, f) {
|
|
7334
|
+
var I, m = this;
|
|
7335
|
+
if (f == null) o != null && u && typeof u == "object" ? (f = u, u = null) : o && typeof o == "object" ? (f = o, o = u = null) : f = M;
|
|
7336
|
+
else if (typeof f != "object") throw Error(se + "Argument not an object: " + f);
|
|
7337
|
+
if (I = m.toFixed(o, u), m.c) {
|
|
7338
|
+
var S, y = I.split("."), d = +f.groupSize, g = +f.secondaryGroupSize, R = f.groupSeparator || "", T = y[0], A = y[1], N = m.s < 0, B = N ? T.slice(1) : T, $ = B.length;
|
|
7339
|
+
if (g && (S = d, d = g, g = S, $ -= S), d > 0 && $ > 0) {
|
|
7340
|
+
for (S = $ % d || d, T = B.substr(0, S); S < $; S += d) T += R + B.substr(S, d);
|
|
7341
|
+
g > 0 && (T += R + B.slice(S)), N && (T = "-" + T);
|
|
7342
7342
|
}
|
|
7343
|
-
|
|
7343
|
+
I = A ? T + (f.decimalSeparator || "") + ((g = +f.fractionGroupSize) ? A.replace(new RegExp("\\d{" + g + "}\\B", "g"), "$&" + (f.fractionGroupSeparator || "")) : A) : T;
|
|
7344
7344
|
}
|
|
7345
|
-
return (f.prefix || "") +
|
|
7346
|
-
}, i.toFraction = function(
|
|
7347
|
-
var u, f,
|
|
7348
|
-
if (
|
|
7345
|
+
return (f.prefix || "") + I + (f.suffix || "");
|
|
7346
|
+
}, i.toFraction = function(o) {
|
|
7347
|
+
var u, f, I, m, S, y, d, g, R, T, A, N, B = this, $ = B.c;
|
|
7348
|
+
if (o != null && (d = new w(o), !d.isInteger() && (d.c || d.s !== 1) || d.lt(s))) throw Error(se + "Argument " + (d.isInteger() ? "out of range: " : "not an integer: ") + j(d));
|
|
7349
7349
|
if (!$) return new w(B);
|
|
7350
|
-
for (u = new w(
|
|
7351
|
-
return m = t(
|
|
7350
|
+
for (u = new w(s), R = f = new w(s), I = g = new w(s), N = fe($), S = u.e = N.length - B.e - 1, u.c[0] = Rt[(y = S % G) < 0 ? G + y : y], o = !o || d.comparedTo(u) > 0 ? S > 0 ? u : R : d, y = _, _ = 1 / 0, d = new w(N), g.c[0] = 0; T = t(d, u, 0, 1), m = f.plus(T.times(I)), m.comparedTo(o) != 1; ) f = I, I = m, R = g.plus(T.times(m = R)), g = m, u = d.minus(T.times(m = u)), d = m;
|
|
7351
|
+
return m = t(o.minus(f), I, 0, 1), g = g.plus(m.times(R)), f = f.plus(m.times(I)), g.s = R.s = B.s, S = S * 2, A = t(R, I, S, l).minus(B).abs().comparedTo(t(g, f, S, l).minus(B).abs()) < 1 ? [R, I] : [g, f], _ = y, A;
|
|
7352
7352
|
}, i.toNumber = function() {
|
|
7353
|
-
return +
|
|
7354
|
-
}, i.toPrecision = function(
|
|
7355
|
-
return
|
|
7356
|
-
}, i.toString = function(
|
|
7357
|
-
var u, f = this,
|
|
7358
|
-
return m === null ?
|
|
7353
|
+
return +j(this);
|
|
7354
|
+
}, i.toPrecision = function(o, u) {
|
|
7355
|
+
return o != null && J(o, 1, ee), L(this, o, u, 2);
|
|
7356
|
+
}, i.toString = function(o) {
|
|
7357
|
+
var u, f = this, I = f.s, m = f.e;
|
|
7358
|
+
return m === null ? I ? (u = "Infinity", I < 0 && (u = "-" + u)) : u = "NaN" : (o == null ? u = m <= p || m >= E ? it(fe(f.c), m) : ye(fe(f.c), m, "0") : o === 10 && P ? (f = k(new w(f), c + m + 1, l), u = ye(fe(f.c), f.e, "0")) : (J(o, 2, b.length, "Base"), u = r(ye(fe(f.c), m, "0"), 10, o, I, true)), I < 0 && f.c[0] && (u = "-" + u)), u;
|
|
7359
7359
|
}, i.valueOf = i.toJSON = function() {
|
|
7360
|
-
return
|
|
7360
|
+
return j(this);
|
|
7361
7361
|
}, i._isBigNumber = true, i[Symbol.toStringTag] = "BigNumber", i[Symbol.for("nodejs.util.inspect.custom")] = i.valueOf, e != null && w.set(e), w;
|
|
7362
7362
|
}
|
|
7363
|
-
a(
|
|
7363
|
+
a(Ar, "clone");
|
|
7364
7364
|
function le(e) {
|
|
7365
7365
|
var t = e | 0;
|
|
7366
7366
|
return e > 0 || e === t ? t : t - 1;
|
|
7367
7367
|
}
|
|
7368
7368
|
a(le, "bitFloor");
|
|
7369
7369
|
function fe(e) {
|
|
7370
|
-
for (var t, r, n = 1, i = e.length,
|
|
7370
|
+
for (var t, r, n = 1, i = e.length, s = e[0] + ""; n < i; ) {
|
|
7371
7371
|
for (t = e[n++] + "", r = G - t.length; r--; t = "0" + t) ;
|
|
7372
|
-
|
|
7372
|
+
s += t;
|
|
7373
7373
|
}
|
|
7374
|
-
for (i =
|
|
7375
|
-
return
|
|
7374
|
+
for (i = s.length; s.charCodeAt(--i) === 48; ) ;
|
|
7375
|
+
return s.slice(0, i + 1 || 1);
|
|
7376
7376
|
}
|
|
7377
7377
|
a(fe, "coeffToString");
|
|
7378
7378
|
function Me(e, t) {
|
|
7379
|
-
var r, n, i = e.c,
|
|
7379
|
+
var r, n, i = e.c, s = t.c, c = e.s, l = t.s, p = e.e, E = t.e;
|
|
7380
7380
|
if (!c || !l) return null;
|
|
7381
|
-
if (r = i && !i[0], n =
|
|
7381
|
+
if (r = i && !i[0], n = s && !s[0], r || n) return r ? n ? 0 : -l : c;
|
|
7382
7382
|
if (c != l) return c;
|
|
7383
|
-
if (r = c < 0, n = p == E, !i || !
|
|
7383
|
+
if (r = c < 0, n = p == E, !i || !s) return n ? 0 : !i ^ r ? 1 : -1;
|
|
7384
7384
|
if (!n) return p > E ^ r ? 1 : -1;
|
|
7385
|
-
for (l = (p = i.length) < (E =
|
|
7385
|
+
for (l = (p = i.length) < (E = s.length) ? p : E, c = 0; c < l; c++) if (i[c] != s[c]) return i[c] > s[c] ^ r ? 1 : -1;
|
|
7386
7386
|
return p == E ? 0 : p > E ^ r ? 1 : -1;
|
|
7387
7387
|
}
|
|
7388
7388
|
a(Me, "compare");
|
|
7389
7389
|
function J(e, t, r, n) {
|
|
7390
|
-
if (e < t || e > r || e !== ue(e)) throw Error(
|
|
7390
|
+
if (e < t || e > r || e !== ue(e)) throw Error(se + (n || "Argument") + (typeof e == "number" ? e < t || e > r ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(e));
|
|
7391
7391
|
}
|
|
7392
7392
|
a(J, "intCheck");
|
|
7393
7393
|
function nt(e) {
|
|
@@ -7411,7 +7411,7 @@ function ye(e, t, r) {
|
|
|
7411
7411
|
return e;
|
|
7412
7412
|
}
|
|
7413
7413
|
a(ye, "toFixedPoint");
|
|
7414
|
-
var Si =
|
|
7414
|
+
var Si = Ar();
|
|
7415
7415
|
const Ri = 24, We = 32, Ti = a(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
|
|
7416
7416
|
const e = new Uint32Array(1);
|
|
7417
7417
|
return globalThis.crypto.getRandomValues(e), e[0] / 4294967296;
|
|
@@ -7426,17 +7426,17 @@ function yi(e) {
|
|
|
7426
7426
|
return t;
|
|
7427
7427
|
}
|
|
7428
7428
|
a(yi, "bufToBigInt");
|
|
7429
|
-
const
|
|
7429
|
+
const br = a((e = "") => {
|
|
7430
7430
|
const t = new TextEncoder();
|
|
7431
7431
|
return yi(_i(t.encode(e))).toString(36).slice(1);
|
|
7432
|
-
}, "hash"),
|
|
7432
|
+
}, "hash"), vr = Array.from({ length: 26 }, (e, t) => String.fromCharCode(t + 97)), wi = a((e) => vr[Math.floor(e() * vr.length)], "randomLetter"), Ai = a(({ globalObj: e = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: t = Tt } = {}) => {
|
|
7433
7433
|
const r = Object.keys(e).toString(), n = r.length ? r + yt(We, t) : yt(We, t);
|
|
7434
|
-
return
|
|
7434
|
+
return br(n).substring(0, We);
|
|
7435
7435
|
}, "createFingerprint"), bi = a((e) => () => e++, "createCounter"), vi = 476782367, Ci = a(({ random: e = Tt, counter: t = bi(Math.floor(e() * vi)), length: r = Ri, fingerprint: n = Ai({ random: e }) } = {}) => {
|
|
7436
7436
|
if (r > We) throw new Error(`Length must be between 2 and ${We}. Received: ${r}`);
|
|
7437
7437
|
return a(function() {
|
|
7438
|
-
const
|
|
7439
|
-
return `${
|
|
7438
|
+
const s = wi(e), c = Date.now().toString(36), l = t().toString(36), p = yt(r, e), E = `${c + p + l + n}`;
|
|
7439
|
+
return `${s + br(E).substring(1, r)}`;
|
|
7440
7440
|
}, "cuid2");
|
|
7441
7441
|
}, "init"), Ye = Ui(Ci);
|
|
7442
7442
|
function Ui(e) {
|
|
@@ -7445,15 +7445,15 @@ function Ui(e) {
|
|
|
7445
7445
|
}
|
|
7446
7446
|
a(Ui, "lazy");
|
|
7447
7447
|
var Bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7448
|
-
function
|
|
7448
|
+
function Cr(e) {
|
|
7449
7449
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7450
7450
|
}
|
|
7451
|
-
a(
|
|
7452
|
-
var xe = {},
|
|
7451
|
+
a(Cr, "getDefaultExportFromCjs");
|
|
7452
|
+
var xe = {}, Ur;
|
|
7453
7453
|
function Pi() {
|
|
7454
|
-
if (
|
|
7455
|
-
|
|
7456
|
-
const e = qe, t =
|
|
7454
|
+
if (Ur) return xe;
|
|
7455
|
+
Ur = 1, Object.defineProperty(xe, "__esModule", { value: true }), xe.isBinaryFileSync = xe.isBinaryFile = void 0;
|
|
7456
|
+
const e = qe, t = jn, r = (0, t.promisify)(e.stat), n = (0, t.promisify)(e.open), i = (0, t.promisify)(e.close), s = 512, c = 3;
|
|
7457
7457
|
class l {
|
|
7458
7458
|
static {
|
|
7459
7459
|
a(this, "Reader");
|
|
@@ -7520,16 +7520,16 @@ function Pi() {
|
|
|
7520
7520
|
return L > 0;
|
|
7521
7521
|
}
|
|
7522
7522
|
a(h, "isBinaryProto");
|
|
7523
|
-
async function
|
|
7524
|
-
if (
|
|
7523
|
+
async function _(b, P) {
|
|
7524
|
+
if (O(b)) {
|
|
7525
7525
|
const w = await r(b);
|
|
7526
7526
|
M(w);
|
|
7527
|
-
const L = await n(b, "r"), x = Buffer.alloc(
|
|
7527
|
+
const L = await n(b, "r"), x = Buffer.alloc(s + c);
|
|
7528
7528
|
return new Promise((U, k) => {
|
|
7529
|
-
e.read(L, x, 0,
|
|
7530
|
-
if (i(L),
|
|
7529
|
+
e.read(L, x, 0, s + c, 0, (j, o, u) => {
|
|
7530
|
+
if (i(L), j) k(j);
|
|
7531
7531
|
else try {
|
|
7532
|
-
U(C(x,
|
|
7532
|
+
U(C(x, o));
|
|
7533
7533
|
} catch (f) {
|
|
7534
7534
|
k(f);
|
|
7535
7535
|
}
|
|
@@ -7537,12 +7537,12 @@ function Pi() {
|
|
|
7537
7537
|
});
|
|
7538
7538
|
} else return P === void 0 && (P = b.length), C(b, P);
|
|
7539
7539
|
}
|
|
7540
|
-
a(
|
|
7540
|
+
a(_, "isBinaryFile"), xe.isBinaryFile = _;
|
|
7541
7541
|
function v(b, P) {
|
|
7542
|
-
if (
|
|
7542
|
+
if (O(b)) {
|
|
7543
7543
|
const w = e.statSync(b);
|
|
7544
7544
|
M(w);
|
|
7545
|
-
const L = e.openSync(b, "r"), x = Buffer.alloc(
|
|
7545
|
+
const L = e.openSync(b, "r"), x = Buffer.alloc(s + c), U = e.readSync(L, x, 0, s + c, 0);
|
|
7546
7546
|
return e.closeSync(L), C(x, U);
|
|
7547
7547
|
} else return P === void 0 && (P = b.length), C(b, P);
|
|
7548
7548
|
}
|
|
@@ -7550,7 +7550,7 @@ function Pi() {
|
|
|
7550
7550
|
function C(b, P) {
|
|
7551
7551
|
if (P === 0) return false;
|
|
7552
7552
|
let w = 0;
|
|
7553
|
-
const L = Math.min(P,
|
|
7553
|
+
const L = Math.min(P, s + c), x = Math.min(L, s);
|
|
7554
7554
|
if (P >= 3 && b[0] === 239 && b[1] === 187 && b[2] === 191 || P >= 4 && b[0] === 0 && b[1] === 0 && b[2] === 254 && b[3] === 255 || P >= 4 && b[0] === 255 && b[1] === 254 && b[2] === 0 && b[3] === 0 || P >= 4 && b[0] === 132 && b[1] === 49 && b[2] === 149 && b[3] === 51) return false;
|
|
7555
7555
|
if (L >= 5 && b.slice(0, 5).toString() === "%PDF-") return true;
|
|
7556
7556
|
if (P >= 2 && b[0] === 254 && b[1] === 255 || P >= 2 && b[0] === 255 && b[1] === 254) return false;
|
|
@@ -7574,35 +7574,35 @@ function Pi() {
|
|
|
7574
7574
|
return !!(w * 100 / x > 10 || w > 1 && h(b, x));
|
|
7575
7575
|
}
|
|
7576
7576
|
a(C, "isBinaryCheck");
|
|
7577
|
-
function
|
|
7577
|
+
function O(b) {
|
|
7578
7578
|
return typeof b == "string";
|
|
7579
7579
|
}
|
|
7580
|
-
a(
|
|
7580
|
+
a(O, "isString");
|
|
7581
7581
|
function M(b) {
|
|
7582
7582
|
if (!b.isFile()) throw new Error("Path provided was not a file!");
|
|
7583
7583
|
}
|
|
7584
7584
|
return a(M, "isStatFile"), xe;
|
|
7585
7585
|
}
|
|
7586
7586
|
a(Pi, "requireLib");
|
|
7587
|
-
var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array,
|
|
7587
|
+
var Li = Pi(), Q = Uint8Array, ae = Uint16Array, wt = Int32Array, st = new Q([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0, 0]), ot = new Q([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 0, 0]), At = new Q([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Br = a(function(e, t) {
|
|
7588
7588
|
for (var r = new ae(31), n = 0; n < 31; ++n) r[n] = t += 1 << e[n - 1];
|
|
7589
|
-
for (var i = new wt(r[30]), n = 1; n < 30; ++n) for (var
|
|
7589
|
+
for (var i = new wt(r[30]), n = 1; n < 30; ++n) for (var s = r[n]; s < r[n + 1]; ++s) i[s] = s - r[n] << 5 | n;
|
|
7590
7590
|
return { b: r, r: i };
|
|
7591
|
-
}, "freb"),
|
|
7592
|
-
|
|
7593
|
-
for (var
|
|
7591
|
+
}, "freb"), Pr = Br(st, 2), Lr = Pr.b, bt = Pr.r;
|
|
7592
|
+
Lr[28] = 258, bt[258] = 28;
|
|
7593
|
+
for (var Nr = Br(ot, 0), Ni = Nr.b, Or = Nr.r, vt = new ae(32768), V = 0; V < 32768; ++V) {
|
|
7594
7594
|
var Ue = (V & 43690) >> 1 | (V & 21845) << 1;
|
|
7595
7595
|
Ue = (Ue & 52428) >> 2 | (Ue & 13107) << 2, Ue = (Ue & 61680) >> 4 | (Ue & 3855) << 4, vt[V] = ((Ue & 65280) >> 8 | (Ue & 255) << 8) >> 1;
|
|
7596
7596
|
}
|
|
7597
7597
|
for (var _e = a((function(e, t, r) {
|
|
7598
|
-
for (var n = e.length, i = 0,
|
|
7598
|
+
for (var n = e.length, i = 0, s = new ae(t); i < n; ++i) e[i] && ++s[e[i] - 1];
|
|
7599
7599
|
var c = new ae(t);
|
|
7600
|
-
for (i = 1; i < t; ++i) c[i] = c[i - 1] +
|
|
7600
|
+
for (i = 1; i < t; ++i) c[i] = c[i - 1] + s[i - 1] << 1;
|
|
7601
7601
|
var l;
|
|
7602
7602
|
if (r) {
|
|
7603
7603
|
l = new ae(1 << t);
|
|
7604
7604
|
var p = 15 - t;
|
|
7605
|
-
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i],
|
|
7605
|
+
for (i = 0; i < n; ++i) if (e[i]) for (var E = i << 4 | e[i], h = t - e[i], _ = c[e[i] - 1]++ << h, v = _ | (1 << h) - 1; _ <= v; ++_) l[vt[_] >> p] = E;
|
|
7606
7606
|
} else for (l = new ae(n), i = 0; i < n; ++i) e[i] && (l[i] = vt[c[e[i] - 1]++] >> 15 - e[i]);
|
|
7607
7607
|
return l;
|
|
7608
7608
|
}), "hMap"), Be = new Q(288), V = 0; V < 144; ++V) Be[V] = 8;
|
|
@@ -7610,7 +7610,7 @@ for (var V = 144; V < 256; ++V) Be[V] = 9;
|
|
|
7610
7610
|
for (var V = 256; V < 280; ++V) Be[V] = 7;
|
|
7611
7611
|
for (var V = 280; V < 288; ++V) Be[V] = 8;
|
|
7612
7612
|
for (var Je = new Q(32), V = 0; V < 32; ++V) Je[V] = 5;
|
|
7613
|
-
var
|
|
7613
|
+
var Oi = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1), Ct = a(function(e) {
|
|
7614
7614
|
for (var t = e[0], r = 1; r < e.length; ++r) e[r] > t && (t = e[r]);
|
|
7615
7615
|
return t;
|
|
7616
7616
|
}, "max"), me = a(function(e, t, r) {
|
|
@@ -7628,7 +7628,7 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7628
7628
|
if (n.code = e, Error.captureStackTrace && Error.captureStackTrace(n, ne), !r) throw n;
|
|
7629
7629
|
return n;
|
|
7630
7630
|
}, "err"), $i = a(function(e, t, r, n) {
|
|
7631
|
-
var i = e.length,
|
|
7631
|
+
var i = e.length, s = n ? n.length : 0;
|
|
7632
7632
|
if (!i || t.f && !t.l) return r || new Q(0);
|
|
7633
7633
|
var c = !r, l = c || t.i != 2, p = t.i;
|
|
7634
7634
|
c && (r = new Q(i * 3));
|
|
@@ -7638,82 +7638,82 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7638
7638
|
var X = new Q(Math.max(de * 2, re));
|
|
7639
7639
|
X.set(r), r = X;
|
|
7640
7640
|
}
|
|
7641
|
-
}, "cbuf"), h = t.f || 0,
|
|
7641
|
+
}, "cbuf"), h = t.f || 0, _ = t.p || 0, v = t.b || 0, C = t.l, O = t.d, M = t.m, b = t.n, P = i * 8;
|
|
7642
7642
|
do {
|
|
7643
7643
|
if (!C) {
|
|
7644
|
-
h = me(e,
|
|
7645
|
-
var w = me(e,
|
|
7646
|
-
if (
|
|
7644
|
+
h = me(e, _, 1);
|
|
7645
|
+
var w = me(e, _ + 1, 3);
|
|
7646
|
+
if (_ += 3, w) if (w == 1) C = Di, O = xi, M = 9, b = 5;
|
|
7647
7647
|
else if (w == 2) {
|
|
7648
|
-
var k = me(e,
|
|
7649
|
-
|
|
7650
|
-
for (var u = new Q(
|
|
7651
|
-
|
|
7652
|
-
for (var m = Ct(f),
|
|
7653
|
-
var d = y[me(e,
|
|
7654
|
-
|
|
7648
|
+
var k = me(e, _, 31) + 257, j = me(e, _ + 10, 15) + 4, o = k + me(e, _ + 5, 31) + 1;
|
|
7649
|
+
_ += 14;
|
|
7650
|
+
for (var u = new Q(o), f = new Q(19), I = 0; I < j; ++I) f[At[I]] = me(e, _ + I * 3, 7);
|
|
7651
|
+
_ += j * 3;
|
|
7652
|
+
for (var m = Ct(f), S = (1 << m) - 1, y = _e(f, m, 1), I = 0; I < o; ) {
|
|
7653
|
+
var d = y[me(e, _, S)];
|
|
7654
|
+
_ += d & 15;
|
|
7655
7655
|
var L = d >> 4;
|
|
7656
|
-
if (L < 16) u[
|
|
7656
|
+
if (L < 16) u[I++] = L;
|
|
7657
7657
|
else {
|
|
7658
|
-
var g = 0,
|
|
7659
|
-
for (L == 16 ? (
|
|
7658
|
+
var g = 0, R = 0;
|
|
7659
|
+
for (L == 16 ? (R = 3 + me(e, _, 3), _ += 2, g = u[I - 1]) : L == 17 ? (R = 3 + me(e, _, 7), _ += 3) : L == 18 && (R = 11 + me(e, _, 127), _ += 7); R--; ) u[I++] = g;
|
|
7660
7660
|
}
|
|
7661
7661
|
}
|
|
7662
|
-
var
|
|
7663
|
-
M = Ct(
|
|
7662
|
+
var T = u.subarray(0, k), A = u.subarray(k);
|
|
7663
|
+
M = Ct(T), b = Ct(A), C = _e(T, M, 1), O = _e(A, b, 1);
|
|
7664
7664
|
} else ne(1);
|
|
7665
7665
|
else {
|
|
7666
|
-
var L = Bt(
|
|
7666
|
+
var L = Bt(_) + 4, x = e[L - 4] | e[L - 3] << 8, U = L + x;
|
|
7667
7667
|
if (U > i) {
|
|
7668
7668
|
p && ne(0);
|
|
7669
7669
|
break;
|
|
7670
7670
|
}
|
|
7671
|
-
l && E(v + x), r.set(e.subarray(L, U), v), t.b = v += x, t.p =
|
|
7671
|
+
l && E(v + x), r.set(e.subarray(L, U), v), t.b = v += x, t.p = _ = U * 8, t.f = h;
|
|
7672
7672
|
continue;
|
|
7673
7673
|
}
|
|
7674
|
-
if (
|
|
7674
|
+
if (_ > P) {
|
|
7675
7675
|
p && ne(0);
|
|
7676
7676
|
break;
|
|
7677
7677
|
}
|
|
7678
7678
|
}
|
|
7679
7679
|
l && E(v + 131072);
|
|
7680
|
-
for (var
|
|
7681
|
-
var g = C[Ut(e,
|
|
7682
|
-
if (
|
|
7680
|
+
for (var N = (1 << M) - 1, B = (1 << b) - 1, $ = _; ; $ = _) {
|
|
7681
|
+
var g = C[Ut(e, _) & N], F = g >> 4;
|
|
7682
|
+
if (_ += g & 15, _ > P) {
|
|
7683
7683
|
p && ne(0);
|
|
7684
7684
|
break;
|
|
7685
7685
|
}
|
|
7686
|
-
if (g || ne(2),
|
|
7687
|
-
else if (
|
|
7688
|
-
$ =
|
|
7686
|
+
if (g || ne(2), F < 256) r[v++] = F;
|
|
7687
|
+
else if (F == 256) {
|
|
7688
|
+
$ = _, C = null;
|
|
7689
7689
|
break;
|
|
7690
7690
|
} else {
|
|
7691
|
-
var q =
|
|
7692
|
-
if (
|
|
7693
|
-
var
|
|
7694
|
-
q = me(e,
|
|
7691
|
+
var q = F - 254;
|
|
7692
|
+
if (F > 264) {
|
|
7693
|
+
var I = F - 257, D = st[I];
|
|
7694
|
+
q = me(e, _, (1 << D) - 1) + Lr[I], _ += D;
|
|
7695
7695
|
}
|
|
7696
|
-
var H =
|
|
7697
|
-
H || ne(3),
|
|
7698
|
-
var A =
|
|
7696
|
+
var H = O[Ut(e, _) & B], Y = H >> 4;
|
|
7697
|
+
H || ne(3), _ += H & 15;
|
|
7698
|
+
var A = Ni[Y];
|
|
7699
7699
|
if (Y > 3) {
|
|
7700
|
-
var
|
|
7701
|
-
A += Ut(e,
|
|
7700
|
+
var D = ot[Y];
|
|
7701
|
+
A += Ut(e, _) & (1 << D) - 1, _ += D;
|
|
7702
7702
|
}
|
|
7703
|
-
if (
|
|
7703
|
+
if (_ > P) {
|
|
7704
7704
|
p && ne(0);
|
|
7705
7705
|
break;
|
|
7706
7706
|
}
|
|
7707
7707
|
l && E(v + 131072);
|
|
7708
7708
|
var he = v + q;
|
|
7709
7709
|
if (v < A) {
|
|
7710
|
-
var be =
|
|
7710
|
+
var be = s - A, ve = Math.min(A, he);
|
|
7711
7711
|
for (be + v < 0 && ne(3); v < ve; ++v) r[v] = n[be + v];
|
|
7712
7712
|
}
|
|
7713
7713
|
for (; v < he; ++v) r[v] = r[v - A];
|
|
7714
7714
|
}
|
|
7715
7715
|
}
|
|
7716
|
-
t.l = C, t.p = $, t.b = v, t.f = h, C && (h = 1, t.m = M, t.d =
|
|
7716
|
+
t.l = C, t.p = $, t.b = v, t.f = h, C && (h = 1, t.m = M, t.d = O, t.n = b);
|
|
7717
7717
|
} while (!h);
|
|
7718
7718
|
return v != r.length && c ? ze(r, 0, v) : r.subarray(0, v);
|
|
7719
7719
|
}, "inflt"), we = a(function(e, t, r) {
|
|
@@ -7726,8 +7726,8 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7726
7726
|
e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
|
|
7727
7727
|
}, "wbits16"), Pt = a(function(e, t) {
|
|
7728
7728
|
for (var r = [], n = 0; n < e.length; ++n) e[n] && r.push({ s: n, f: e[n] });
|
|
7729
|
-
var i = r.length,
|
|
7730
|
-
if (!i) return { t:
|
|
7729
|
+
var i = r.length, s = r.slice();
|
|
7730
|
+
if (!i) return { t: Gr, l: 0 };
|
|
7731
7731
|
if (i == 1) {
|
|
7732
7732
|
var c = new Q(r[0].s + 1);
|
|
7733
7733
|
return c[r[0].s] = 1, { t: c, l: 1 };
|
|
@@ -7735,109 +7735,109 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7735
7735
|
r.sort(function(U, k) {
|
|
7736
7736
|
return U.f - k.f;
|
|
7737
7737
|
}), r.push({ s: -1, f: 25001 });
|
|
7738
|
-
var l = r[0], p = r[1], E = 0, h = 1,
|
|
7739
|
-
for (r[0] = { s: -1, f: l.f + p.f, l, r: p }; h != i - 1; ) l = r[r[E].f < r[
|
|
7740
|
-
for (var v =
|
|
7741
|
-
var C = new ae(v + 1),
|
|
7742
|
-
if (
|
|
7743
|
-
var n = 0, M = 0, b =
|
|
7744
|
-
for (
|
|
7745
|
-
return C[
|
|
7738
|
+
var l = r[0], p = r[1], E = 0, h = 1, _ = 2;
|
|
7739
|
+
for (r[0] = { s: -1, f: l.f + p.f, l, r: p }; h != i - 1; ) l = r[r[E].f < r[_].f ? E++ : _++], p = r[E != h && r[E].f < r[_].f ? E++ : _++], r[h++] = { s: -1, f: l.f + p.f, l, r: p };
|
|
7740
|
+
for (var v = s[0].s, n = 1; n < i; ++n) s[n].s > v && (v = s[n].s);
|
|
7741
|
+
var C = new ae(v + 1), O = Lt(r[h - 1], C, 0);
|
|
7742
|
+
if (O > t) {
|
|
7743
|
+
var n = 0, M = 0, b = O - t, P = 1 << b;
|
|
7744
|
+
for (s.sort(function(k, j) {
|
|
7745
|
+
return C[j.s] - C[k.s] || k.f - j.f;
|
|
7746
7746
|
}); n < i; ++n) {
|
|
7747
|
-
var w =
|
|
7748
|
-
if (C[w] > t) M += P - (1 <<
|
|
7747
|
+
var w = s[n].s;
|
|
7748
|
+
if (C[w] > t) M += P - (1 << O - C[w]), C[w] = t;
|
|
7749
7749
|
else break;
|
|
7750
7750
|
}
|
|
7751
7751
|
for (M >>= b; M > 0; ) {
|
|
7752
|
-
var L =
|
|
7752
|
+
var L = s[n].s;
|
|
7753
7753
|
C[L] < t ? M -= 1 << t - C[L]++ - 1 : ++n;
|
|
7754
7754
|
}
|
|
7755
7755
|
for (; n >= 0 && M; --n) {
|
|
7756
|
-
var x =
|
|
7756
|
+
var x = s[n].s;
|
|
7757
7757
|
C[x] == t && (--C[x], ++M);
|
|
7758
7758
|
}
|
|
7759
|
-
|
|
7759
|
+
O = t;
|
|
7760
7760
|
}
|
|
7761
|
-
return { t: new Q(C), l:
|
|
7761
|
+
return { t: new Q(C), l: O };
|
|
7762
7762
|
}, "hTree"), Lt = a(function(e, t, r) {
|
|
7763
7763
|
return e.s == -1 ? Math.max(Lt(e.l, t, r + 1), Lt(e.r, t, r + 1)) : t[e.s] = r;
|
|
7764
|
-
}, "ln"),
|
|
7764
|
+
}, "ln"), Dr = a(function(e) {
|
|
7765
7765
|
for (var t = e.length; t && !e[--t]; ) ;
|
|
7766
|
-
for (var r = new ae(++t), n = 0, i = e[0],
|
|
7766
|
+
for (var r = new ae(++t), n = 0, i = e[0], s = 1, c = a(function(p) {
|
|
7767
7767
|
r[n++] = p;
|
|
7768
|
-
}, "w"), l = 1; l <= t; ++l) if (e[l] == i && l != t) ++
|
|
7768
|
+
}, "w"), l = 1; l <= t; ++l) if (e[l] == i && l != t) ++s;
|
|
7769
7769
|
else {
|
|
7770
|
-
if (!i &&
|
|
7771
|
-
for (;
|
|
7772
|
-
|
|
7773
|
-
} else if (
|
|
7774
|
-
for (c(i), --
|
|
7775
|
-
|
|
7770
|
+
if (!i && s > 2) {
|
|
7771
|
+
for (; s > 138; s -= 138) c(32754);
|
|
7772
|
+
s > 2 && (c(s > 10 ? s - 11 << 5 | 28690 : s - 3 << 5 | 12305), s = 0);
|
|
7773
|
+
} else if (s > 3) {
|
|
7774
|
+
for (c(i), --s; s > 6; s -= 6) c(8304);
|
|
7775
|
+
s > 2 && (c(s - 3 << 5 | 8208), s = 0);
|
|
7776
7776
|
}
|
|
7777
|
-
for (;
|
|
7778
|
-
|
|
7777
|
+
for (; s--; ) c(i);
|
|
7778
|
+
s = 1, i = e[l];
|
|
7779
7779
|
}
|
|
7780
7780
|
return { c: r.subarray(0, n), n: t };
|
|
7781
7781
|
}, "lc"), Xe = a(function(e, t) {
|
|
7782
7782
|
for (var r = 0, n = 0; n < t.length; ++n) r += e[n] * t[n];
|
|
7783
7783
|
return r;
|
|
7784
|
-
}, "clen"),
|
|
7784
|
+
}, "clen"), Mr = a(function(e, t, r) {
|
|
7785
7785
|
var n = r.length, i = Bt(t + 2);
|
|
7786
7786
|
e[i] = n & 255, e[i + 1] = n >> 8, e[i + 2] = e[i] ^ 255, e[i + 3] = e[i + 1] ^ 255;
|
|
7787
|
-
for (var
|
|
7787
|
+
for (var s = 0; s < n; ++s) e[i + s + 4] = r[s];
|
|
7788
7788
|
return (i + 4 + n) * 8;
|
|
7789
|
-
}, "wfblk"),
|
|
7789
|
+
}, "wfblk"), xr = a(function(e, t, r, n, i, s, c, l, p, E, h) {
|
|
7790
7790
|
we(t, h++, r), ++i[256];
|
|
7791
|
-
for (var
|
|
7792
|
-
for (var
|
|
7793
|
-
for (var u = Pt(
|
|
7794
|
-
var
|
|
7795
|
-
if (p >= 0 &&
|
|
7796
|
-
var g,
|
|
7791
|
+
for (var _ = Pt(i, 15), v = _.t, C = _.l, O = Pt(s, 15), M = O.t, b = O.l, P = Dr(v), w = P.c, L = P.n, x = Dr(M), U = x.c, k = x.n, j = new ae(19), o = 0; o < w.length; ++o) ++j[w[o] & 31];
|
|
7792
|
+
for (var o = 0; o < U.length; ++o) ++j[U[o] & 31];
|
|
7793
|
+
for (var u = Pt(j, 7), f = u.t, I = u.l, m = 19; m > 4 && !f[At[m - 1]]; --m) ;
|
|
7794
|
+
var S = E + 5 << 3, y = Xe(i, Be) + Xe(s, Je) + c, d = Xe(i, v) + Xe(s, M) + c + 14 + 3 * m + Xe(j, f) + 2 * j[16] + 3 * j[17] + 7 * j[18];
|
|
7795
|
+
if (p >= 0 && S <= y && S <= d) return Mr(t, h, e.subarray(p, p + E));
|
|
7796
|
+
var g, R, T, A;
|
|
7797
7797
|
if (we(t, h, 1 + (d < y)), h += 2, d < y) {
|
|
7798
|
-
g = _e(v, C, 0),
|
|
7799
|
-
var
|
|
7798
|
+
g = _e(v, C, 0), R = v, T = _e(M, b, 0), A = M;
|
|
7799
|
+
var N = _e(f, I, 0);
|
|
7800
7800
|
we(t, h, L - 257), we(t, h + 5, k - 1), we(t, h + 10, m - 4), h += 14;
|
|
7801
|
-
for (var
|
|
7801
|
+
for (var o = 0; o < m; ++o) we(t, h + 3 * o, f[At[o]]);
|
|
7802
7802
|
h += 3 * m;
|
|
7803
|
-
for (var B = [w, U], $ = 0; $ < 2; ++$) for (var
|
|
7804
|
-
var q =
|
|
7805
|
-
we(t, h,
|
|
7806
|
-
}
|
|
7807
|
-
} else g =
|
|
7808
|
-
for (var
|
|
7809
|
-
var
|
|
7810
|
-
if (
|
|
7811
|
-
var q =
|
|
7812
|
-
Qe(t, h, g[q + 257]), h +=
|
|
7813
|
-
var H =
|
|
7814
|
-
Qe(t, h,
|
|
7815
|
-
} else Qe(t, h, g[
|
|
7816
|
-
}
|
|
7817
|
-
return Qe(t, h, g[256]), h +
|
|
7818
|
-
}, "wblk"), ki = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]),
|
|
7819
|
-
var c =
|
|
7803
|
+
for (var B = [w, U], $ = 0; $ < 2; ++$) for (var F = B[$], o = 0; o < F.length; ++o) {
|
|
7804
|
+
var q = F[o] & 31;
|
|
7805
|
+
we(t, h, N[q]), h += f[q], q > 15 && (we(t, h, F[o] >> 5 & 127), h += F[o] >> 12);
|
|
7806
|
+
}
|
|
7807
|
+
} else g = Oi, R = Be, T = Mi, A = Je;
|
|
7808
|
+
for (var o = 0; o < l; ++o) {
|
|
7809
|
+
var D = n[o];
|
|
7810
|
+
if (D > 255) {
|
|
7811
|
+
var q = D >> 18 & 31;
|
|
7812
|
+
Qe(t, h, g[q + 257]), h += R[q + 257], q > 7 && (we(t, h, D >> 23 & 31), h += st[q]);
|
|
7813
|
+
var H = D & 31;
|
|
7814
|
+
Qe(t, h, T[H]), h += A[H], H > 3 && (Qe(t, h, D >> 5 & 8191), h += ot[H]);
|
|
7815
|
+
} else Qe(t, h, g[D]), h += R[D];
|
|
7816
|
+
}
|
|
7817
|
+
return Qe(t, h, g[256]), h + R[256];
|
|
7818
|
+
}, "wblk"), ki = new wt([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new Q(0), Hi = a(function(e, t, r, n, i, s) {
|
|
7819
|
+
var c = s.z || e.length, l = new Q(n + c + 5 * (1 + Math.ceil(c / 7e3)) + i), p = l.subarray(n, l.length - i), E = s.l, h = (s.r || 0) & 7;
|
|
7820
7820
|
if (t) {
|
|
7821
|
-
h && (p[0] =
|
|
7822
|
-
for (var
|
|
7823
|
-
return (e[Z] ^ e[Z + 1] << P ^ e[Z + 2] << w) &
|
|
7824
|
-
}, "hsh"), x = new wt(25e3), U = new ae(288), k = new ae(32),
|
|
7825
|
-
var
|
|
7826
|
-
if (M[y] = d, b[
|
|
7821
|
+
h && (p[0] = s.r >> 3);
|
|
7822
|
+
for (var _ = ki[t - 1], v = _ >> 13, C = _ & 8191, O = (1 << r) - 1, M = s.p || new ae(32768), b = s.h || new ae(O + 1), P = Math.ceil(r / 3), w = 2 * P, L = a(function(Z) {
|
|
7823
|
+
return (e[Z] ^ e[Z + 1] << P ^ e[Z + 2] << w) & O;
|
|
7824
|
+
}, "hsh"), x = new wt(25e3), U = new ae(288), k = new ae(32), j = 0, o = 0, u = s.i || 0, f = 0, I = s.w || 0, m = 0; u + 2 < c; ++u) {
|
|
7825
|
+
var S = L(u), y = u & 32767, d = b[S];
|
|
7826
|
+
if (M[y] = d, b[S] = y, I <= u) {
|
|
7827
7827
|
var g = c - u;
|
|
7828
|
-
if ((
|
|
7829
|
-
h =
|
|
7830
|
-
for (var
|
|
7831
|
-
for (var
|
|
7828
|
+
if ((j > 7e3 || f > 24576) && (g > 423 || !E)) {
|
|
7829
|
+
h = xr(e, p, 0, x, U, k, o, f, m, u - m, h), f = j = o = 0, m = u;
|
|
7830
|
+
for (var R = 0; R < 286; ++R) U[R] = 0;
|
|
7831
|
+
for (var R = 0; R < 30; ++R) k[R] = 0;
|
|
7832
7832
|
}
|
|
7833
|
-
var
|
|
7834
|
-
if (g > 2 &&
|
|
7835
|
-
if (e[u +
|
|
7836
|
-
for (var
|
|
7837
|
-
if (
|
|
7838
|
-
if (
|
|
7839
|
-
for (var H = Math.min(B,
|
|
7840
|
-
var he = u - B +
|
|
7833
|
+
var T = 2, A = 0, N = C, B = y - d & 32767;
|
|
7834
|
+
if (g > 2 && S == L(u - B)) for (var $ = Math.min(v, g) - 1, F = Math.min(32767, u), q = Math.min(258, g); B <= F && --N && y != d; ) {
|
|
7835
|
+
if (e[u + T] == e[u + T - B]) {
|
|
7836
|
+
for (var D = 0; D < q && e[u + D] == e[u + D - B]; ++D) ;
|
|
7837
|
+
if (D > T) {
|
|
7838
|
+
if (T = D, A = B, D > $) break;
|
|
7839
|
+
for (var H = Math.min(B, D - 2), Y = 0, R = 0; R < H; ++R) {
|
|
7840
|
+
var he = u - B + R & 32767, be = M[he], ve = he - be & 32767;
|
|
7841
7841
|
ve > Y && (Y = ve, d = he);
|
|
7842
7842
|
}
|
|
7843
7843
|
}
|
|
@@ -7845,43 +7845,43 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7845
7845
|
y = d, d = M[y], B += y - d & 32767;
|
|
7846
7846
|
}
|
|
7847
7847
|
if (A) {
|
|
7848
|
-
x[f++] = 268435456 | bt[
|
|
7849
|
-
var re = bt[
|
|
7850
|
-
|
|
7848
|
+
x[f++] = 268435456 | bt[T] << 18 | Or[A];
|
|
7849
|
+
var re = bt[T] & 31, de = Or[A] & 31;
|
|
7850
|
+
o += st[re] + ot[de], ++U[257 + re], ++k[de], I = u + T, ++j;
|
|
7851
7851
|
} else x[f++] = e[u], ++U[e[u]];
|
|
7852
7852
|
}
|
|
7853
7853
|
}
|
|
7854
|
-
for (u = Math.max(u,
|
|
7855
|
-
h =
|
|
7854
|
+
for (u = Math.max(u, I); u < c; ++u) x[f++] = e[u], ++U[e[u]];
|
|
7855
|
+
h = xr(e, p, E, x, U, k, o, f, m, u - m, h), E || (s.r = h & 7 | p[h / 8 | 0] << 3, h -= 7, s.h = b, s.p = M, s.i = u, s.w = I);
|
|
7856
7856
|
} else {
|
|
7857
|
-
for (var u =
|
|
7857
|
+
for (var u = s.w || 0; u < c + E; u += 65535) {
|
|
7858
7858
|
var X = u + 65535;
|
|
7859
|
-
X >= c && (p[h / 8 | 0] = E, X = c), h =
|
|
7859
|
+
X >= c && (p[h / 8 | 0] = E, X = c), h = Mr(p, h + 1, e.subarray(u, X));
|
|
7860
7860
|
}
|
|
7861
|
-
|
|
7861
|
+
s.i = c;
|
|
7862
7862
|
}
|
|
7863
7863
|
return ze(l, 0, n + Bt(h) + i);
|
|
7864
|
-
}, "dflt"),
|
|
7864
|
+
}, "dflt"), ji = (function() {
|
|
7865
7865
|
for (var e = new Int32Array(256), t = 0; t < 256; ++t) {
|
|
7866
7866
|
for (var r = t, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
|
|
7867
7867
|
e[t] = r;
|
|
7868
7868
|
}
|
|
7869
7869
|
return e;
|
|
7870
|
-
})(),
|
|
7870
|
+
})(), Fi = a(function() {
|
|
7871
7871
|
var e = -1;
|
|
7872
7872
|
return { p: a(function(t) {
|
|
7873
|
-
for (var r = e, n = 0; n < t.length; ++n) r =
|
|
7873
|
+
for (var r = e, n = 0; n < t.length; ++n) r = ji[r & 255 ^ t[n]] ^ r >>> 8;
|
|
7874
7874
|
e = r;
|
|
7875
7875
|
}, "p"), d: a(function() {
|
|
7876
7876
|
return ~e;
|
|
7877
7877
|
}, "d") };
|
|
7878
7878
|
}, "crc"), qi = a(function(e, t, r, n, i) {
|
|
7879
7879
|
if (!i && (i = { l: 1 }, t.dictionary)) {
|
|
7880
|
-
var
|
|
7881
|
-
c.set(
|
|
7880
|
+
var s = t.dictionary.subarray(-32768), c = new Q(s.length + e.length);
|
|
7881
|
+
c.set(s), c.set(e, s.length), e = c, i.w = s.length;
|
|
7882
7882
|
}
|
|
7883
7883
|
return Hi(e, t.level == null ? 6 : t.level, t.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, r, n, i);
|
|
7884
|
-
}, "dopt"),
|
|
7884
|
+
}, "dopt"), $r = a(function(e, t) {
|
|
7885
7885
|
var r = {};
|
|
7886
7886
|
for (var n in e) r[n] = e[n];
|
|
7887
7887
|
for (var n in t) r[n] = t[n];
|
|
@@ -7890,7 +7890,7 @@ var Ni = _e(Be, 9, 0), Di = _e(Be, 9, 1), Mi = _e(Je, 5, 0), xi = _e(Je, 5, 1),
|
|
|
7890
7890
|
return e[t] | e[t + 1] << 8;
|
|
7891
7891
|
}, "b2"), Ee = a(function(e, t) {
|
|
7892
7892
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
|
|
7893
|
-
}, "b4"),
|
|
7893
|
+
}, "b4"), Nt = a(function(e, t) {
|
|
7894
7894
|
return Ee(e, t) + Ee(e, t + 4) * 4294967296;
|
|
7895
7895
|
}, "b8"), te = a(function(e, t, r) {
|
|
7896
7896
|
for (; r; ++t) e[t] = r, r >>>= 8;
|
|
@@ -7903,14 +7903,14 @@ function Vi(e, t) {
|
|
|
7903
7903
|
return $i(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
7904
7904
|
}
|
|
7905
7905
|
a(Vi, "inflateSync");
|
|
7906
|
-
var
|
|
7906
|
+
var kr = a(function(e, t, r, n) {
|
|
7907
7907
|
for (var i in e) {
|
|
7908
|
-
var
|
|
7909
|
-
Array.isArray(
|
|
7908
|
+
var s = e[i], c = t + i, l = n;
|
|
7909
|
+
Array.isArray(s) && (l = $r(n, s[1]), s = s[0]), s instanceof Q ? r[c] = [s, l] : (r[c += "/"] = [new Q(0), l], kr(s, c, r, n));
|
|
7910
7910
|
}
|
|
7911
|
-
}, "fltn"),
|
|
7911
|
+
}, "fltn"), Hr = typeof TextEncoder < "u" && new TextEncoder(), Ot = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
|
|
7912
7912
|
try {
|
|
7913
|
-
|
|
7913
|
+
Ot.decode(Gr, { stream: true }), Wi = 1;
|
|
7914
7914
|
} catch {
|
|
7915
7915
|
}
|
|
7916
7916
|
var Yi = a(function(e) {
|
|
@@ -7920,41 +7920,41 @@ var Yi = a(function(e) {
|
|
|
7920
7920
|
i ? i == 3 ? (n = ((n & 15) << 18 | (e[r++] & 63) << 12 | (e[r++] & 63) << 6 | e[r++] & 63) - 65536, t += String.fromCharCode(55296 | n >> 10, 56320 | n & 1023)) : i & 1 ? t += String.fromCharCode((n & 31) << 6 | e[r++] & 63) : t += String.fromCharCode((n & 15) << 12 | (e[r++] & 63) << 6 | e[r++] & 63) : t += String.fromCharCode(n);
|
|
7921
7921
|
}
|
|
7922
7922
|
}, "dutf8");
|
|
7923
|
-
function
|
|
7923
|
+
function jr(e, t) {
|
|
7924
7924
|
var r;
|
|
7925
|
-
if (
|
|
7926
|
-
for (var n = e.length, i = new Q(e.length + (e.length >> 1)),
|
|
7927
|
-
i[
|
|
7925
|
+
if (Hr) return Hr.encode(e);
|
|
7926
|
+
for (var n = e.length, i = new Q(e.length + (e.length >> 1)), s = 0, c = a(function(E) {
|
|
7927
|
+
i[s++] = E;
|
|
7928
7928
|
}, "w"), r = 0; r < n; ++r) {
|
|
7929
|
-
if (
|
|
7930
|
-
var l = new Q(
|
|
7929
|
+
if (s + 5 > i.length) {
|
|
7930
|
+
var l = new Q(s + 8 + (n - r << 1));
|
|
7931
7931
|
l.set(i), i = l;
|
|
7932
7932
|
}
|
|
7933
7933
|
var p = e.charCodeAt(r);
|
|
7934
7934
|
p < 128 || t ? c(p) : p < 2048 ? (c(192 | p >> 6), c(128 | p & 63)) : p > 55295 && p < 57344 ? (p = 65536 + (p & 1047552) | e.charCodeAt(++r) & 1023, c(240 | p >> 18), c(128 | p >> 12 & 63), c(128 | p >> 6 & 63), c(128 | p & 63)) : (c(224 | p >> 12), c(128 | p >> 6 & 63), c(128 | p & 63));
|
|
7935
7935
|
}
|
|
7936
|
-
return ze(i, 0,
|
|
7936
|
+
return ze(i, 0, s);
|
|
7937
7937
|
}
|
|
7938
|
-
a(
|
|
7938
|
+
a(jr, "strToU8");
|
|
7939
7939
|
function Ji(e, t) {
|
|
7940
7940
|
if (t) {
|
|
7941
7941
|
for (var r = "", n = 0; n < e.length; n += 16384) r += String.fromCharCode.apply(null, e.subarray(n, n + 16384));
|
|
7942
7942
|
return r;
|
|
7943
7943
|
} else {
|
|
7944
|
-
if (
|
|
7945
|
-
var i = Yi(e),
|
|
7946
|
-
return r.length && ne(8),
|
|
7944
|
+
if (Ot) return Ot.decode(e);
|
|
7945
|
+
var i = Yi(e), s = i.s, r = i.r;
|
|
7946
|
+
return r.length && ne(8), s;
|
|
7947
7947
|
}
|
|
7948
7948
|
}
|
|
7949
7949
|
a(Ji, "strFromU8");
|
|
7950
7950
|
var zi = a(function(e, t) {
|
|
7951
7951
|
return t + 30 + Ie(e, t + 26) + Ie(e, t + 28);
|
|
7952
7952
|
}, "slzh"), Qi = a(function(e, t, r) {
|
|
7953
|
-
var n = Ie(e, t + 28), i = Ji(e.subarray(t + 46, t + 46 + n), !(Ie(e, t + 8) & 2048)),
|
|
7954
|
-
return [Ie(e, t + 10), p, E, i,
|
|
7953
|
+
var n = Ie(e, t + 28), i = Ji(e.subarray(t + 46, t + 46 + n), !(Ie(e, t + 8) & 2048)), s = t + 46 + n, c = Ee(e, t + 20), l = r && c == 4294967295 ? Xi(e, s) : [c, Ee(e, t + 24), Ee(e, t + 42)], p = l[0], E = l[1], h = l[2];
|
|
7954
|
+
return [Ie(e, t + 10), p, E, i, s + Ie(e, t + 30) + Ie(e, t + 32), h];
|
|
7955
7955
|
}, "zh"), Xi = a(function(e, t) {
|
|
7956
7956
|
for (; Ie(e, t) != 1; t += 4 + Ie(e, t + 2)) ;
|
|
7957
|
-
return [
|
|
7957
|
+
return [Nt(e, t + 12), Nt(e, t + 4), Nt(e, t + 20)];
|
|
7958
7958
|
}, "z64e"), Dt = a(function(e) {
|
|
7959
7959
|
var t = 0;
|
|
7960
7960
|
if (e) for (var r in e) {
|
|
@@ -7962,85 +7962,85 @@ var zi = a(function(e, t) {
|
|
|
7962
7962
|
n > 65535 && ne(9), t += n + 4;
|
|
7963
7963
|
}
|
|
7964
7964
|
return t;
|
|
7965
|
-
}, "exfl"), Fr = a(function(e, t, r, n, i,
|
|
7966
|
-
var p = n.length, E = r.extra, h = l && l.length,
|
|
7967
|
-
te(e, t, c != null ? 33639248 : 67324752), t += 4, c != null && (e[t++] = 20, e[t++] = r.os), e[t] = 20, t += 2, e[t++] = r.flag << 1 | (
|
|
7965
|
+
}, "exfl"), Fr = a(function(e, t, r, n, i, s, c, l) {
|
|
7966
|
+
var p = n.length, E = r.extra, h = l && l.length, _ = Dt(E);
|
|
7967
|
+
te(e, t, c != null ? 33639248 : 67324752), t += 4, c != null && (e[t++] = 20, e[t++] = r.os), e[t] = 20, t += 2, e[t++] = r.flag << 1 | (s < 0 && 8), e[t++] = i && 8, e[t++] = r.compression & 255, e[t++] = r.compression >> 8;
|
|
7968
7968
|
var v = new Date(r.mtime == null ? Date.now() : r.mtime), C = v.getFullYear() - 1980;
|
|
7969
|
-
if ((C < 0 || C > 119) && ne(10), te(e, t, C << 25 | v.getMonth() + 1 << 21 | v.getDate() << 16 | v.getHours() << 11 | v.getMinutes() << 5 | v.getSeconds() >> 1), t += 4,
|
|
7970
|
-
var M = E[
|
|
7971
|
-
te(e, t, +
|
|
7969
|
+
if ((C < 0 || C > 119) && ne(10), te(e, t, C << 25 | v.getMonth() + 1 << 21 | v.getDate() << 16 | v.getHours() << 11 | v.getMinutes() << 5 | v.getSeconds() >> 1), t += 4, s != -1 && (te(e, t, r.crc), te(e, t + 4, s < 0 ? -s - 2 : s), te(e, t + 8, r.size)), te(e, t + 12, p), te(e, t + 14, _), t += 16, c != null && (te(e, t, h), te(e, t + 6, r.attrs), te(e, t + 10, c), t += 14), e.set(n, t), t += p, _) for (var O in E) {
|
|
7970
|
+
var M = E[O], b = M.length;
|
|
7971
|
+
te(e, t, +O), te(e, t + 2, b), e.set(M, t + 4), t += 4 + b;
|
|
7972
7972
|
}
|
|
7973
7973
|
return h && (e.set(l, t), t += h), t;
|
|
7974
7974
|
}, "wzh"), Zi = a(function(e, t, r, n, i) {
|
|
7975
7975
|
te(e, t, 101010256), te(e, t + 8, r), te(e, t + 10, r), te(e, t + 12, n), te(e, t + 16, i);
|
|
7976
7976
|
}, "wzf");
|
|
7977
|
-
function
|
|
7977
|
+
function es(e, t) {
|
|
7978
7978
|
t || (t = {});
|
|
7979
7979
|
var r = {}, n = [];
|
|
7980
|
-
|
|
7981
|
-
var i = 0,
|
|
7980
|
+
kr(e, "", r, t);
|
|
7981
|
+
var i = 0, s = 0;
|
|
7982
7982
|
for (var c in r) {
|
|
7983
|
-
var l = r[c], p = l[0], E = l[1], h = E.level == 0 ? 0 : 8,
|
|
7983
|
+
var l = r[c], p = l[0], E = l[1], h = E.level == 0 ? 0 : 8, _ = jr(c), v = _.length, C = E.comment, O = C && jr(C), M = O && O.length, b = Dt(E.extra);
|
|
7984
7984
|
v > 65535 && ne(11);
|
|
7985
|
-
var P = h ? Ki(p, E) : p, w = P.length, L =
|
|
7986
|
-
L.p(p), n.push(
|
|
7985
|
+
var P = h ? Ki(p, E) : p, w = P.length, L = Fi();
|
|
7986
|
+
L.p(p), n.push($r(E, { size: p.length, crc: L.d(), c: P, f: _, m: O, u: v != c.length || O && C.length != M, o: i, compression: h })), i += 30 + v + b + w, s += 76 + 2 * (v + b) + (M || 0) + w;
|
|
7987
7987
|
}
|
|
7988
|
-
for (var x = new Q(
|
|
7989
|
-
var
|
|
7990
|
-
Fr(x,
|
|
7991
|
-
var
|
|
7992
|
-
x.set(
|
|
7988
|
+
for (var x = new Q(s + 22), U = i, k = s - i, j = 0; j < n.length; ++j) {
|
|
7989
|
+
var _ = n[j];
|
|
7990
|
+
Fr(x, _.o, _, _.f, _.u, _.c.length);
|
|
7991
|
+
var o = 30 + _.f.length + Dt(_.extra);
|
|
7992
|
+
x.set(_.c, _.o + o), Fr(x, i, _, _.f, _.u, _.c.length, _.o, _.m), i += 16 + o + (_.m ? _.m.length : 0);
|
|
7993
7993
|
}
|
|
7994
7994
|
return Zi(x, i, n.length, k, U), x;
|
|
7995
7995
|
}
|
|
7996
|
-
a(
|
|
7997
|
-
function
|
|
7996
|
+
a(es, "zipSync");
|
|
7997
|
+
function ts(e, t) {
|
|
7998
7998
|
for (var r = {}, n = e.length - 22; Ee(e, n) != 101010256; --n) (!n || e.length - n > 65558) && ne(13);
|
|
7999
7999
|
var i = Ie(e, n + 8);
|
|
8000
8000
|
if (!i) return {};
|
|
8001
|
-
var
|
|
8001
|
+
var s = Ee(e, n + 16), c = s == 4294967295 || i == 65535;
|
|
8002
8002
|
if (c) {
|
|
8003
8003
|
var l = Ee(e, n - 12);
|
|
8004
|
-
c = Ee(e, l) == 101075792, c && (i = Ee(e, l + 32),
|
|
8004
|
+
c = Ee(e, l) == 101075792, c && (i = Ee(e, l + 32), s = Ee(e, l + 48));
|
|
8005
8005
|
}
|
|
8006
8006
|
for (var p = 0; p < i; ++p) {
|
|
8007
|
-
var E = Qi(e,
|
|
8008
|
-
|
|
8007
|
+
var E = Qi(e, s, c), h = E[0], _ = E[1], v = E[2], C = E[3], O = E[4], M = E[5], b = zi(e, M);
|
|
8008
|
+
s = O, h ? h == 8 ? r[C] = Vi(e.subarray(b, b + _), { out: new Q(v) }) : ne(14, "unknown compression type " + h) : r[C] = ze(e, b, b + _);
|
|
8009
8009
|
}
|
|
8010
8010
|
return r;
|
|
8011
8011
|
}
|
|
8012
|
-
a(
|
|
8013
|
-
const
|
|
8014
|
-
function
|
|
8015
|
-
return e.filter((t) => !(t.length <
|
|
8012
|
+
a(ts, "unzipSync");
|
|
8013
|
+
const rs = [/^\/$/, /^\*+$/, /^[0-9]+$/], ns = ["/artifact/", "https://", "http://", "*********"], is = 3;
|
|
8014
|
+
function qr(e) {
|
|
8015
|
+
return e.filter((t) => !(t.length < is || rs.some((r) => r.test(t)) || ns.some((r) => t.includes(r))));
|
|
8016
8016
|
}
|
|
8017
|
-
a(
|
|
8018
|
-
const Ae = Symbol.for("@ts-pattern/matcher"),
|
|
8017
|
+
a(qr, "filterSensitiveValues");
|
|
8018
|
+
const Ae = Symbol.for("@ts-pattern/matcher"), ss = Symbol.for("@ts-pattern/isVariadic"), at = "@ts-pattern/anonymous-select-key", Mt = a((e) => !!(e && typeof e == "object"), "r"), ct = a((e) => e && !!e[Ae], "i"), Se = a((e, t, r) => {
|
|
8019
8019
|
if (ct(e)) {
|
|
8020
|
-
const n = e[Ae](), { matched: i, selections:
|
|
8021
|
-
return i &&
|
|
8020
|
+
const n = e[Ae](), { matched: i, selections: s } = n.match(t);
|
|
8021
|
+
return i && s && Object.keys(s).forEach((c) => r(c, s[c])), i;
|
|
8022
8022
|
}
|
|
8023
8023
|
if (Mt(e)) {
|
|
8024
8024
|
if (!Mt(t)) return false;
|
|
8025
8025
|
if (Array.isArray(e)) {
|
|
8026
8026
|
if (!Array.isArray(t)) return false;
|
|
8027
|
-
let n = [], i = [],
|
|
8027
|
+
let n = [], i = [], s = [];
|
|
8028
8028
|
for (const c of e.keys()) {
|
|
8029
8029
|
const l = e[c];
|
|
8030
|
-
ct(l) && l[
|
|
8030
|
+
ct(l) && l[ss] ? s.push(l) : s.length ? i.push(l) : n.push(l);
|
|
8031
8031
|
}
|
|
8032
|
-
if (
|
|
8033
|
-
if (
|
|
8032
|
+
if (s.length) {
|
|
8033
|
+
if (s.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
8034
8034
|
if (t.length < n.length + i.length) return false;
|
|
8035
8035
|
const c = t.slice(0, n.length), l = i.length === 0 ? [] : t.slice(-i.length), p = t.slice(n.length, i.length === 0 ? 1 / 0 : -i.length);
|
|
8036
|
-
return n.every((E, h) => Se(E, c[h], r)) && i.every((E, h) => Se(E, l[h], r)) && (
|
|
8036
|
+
return n.every((E, h) => Se(E, c[h], r)) && i.every((E, h) => Se(E, l[h], r)) && (s.length === 0 || Se(s[0], p, r));
|
|
8037
8037
|
}
|
|
8038
8038
|
return e.length === t.length && e.every((c, l) => Se(c, t[l], r));
|
|
8039
8039
|
}
|
|
8040
8040
|
return Reflect.ownKeys(e).every((n) => {
|
|
8041
8041
|
const i = e[n];
|
|
8042
|
-
return (n in t || ct(
|
|
8043
|
-
var
|
|
8042
|
+
return (n in t || ct(s = i) && s[Ae]().matcherType === "optional") && Se(i, t[n], r);
|
|
8043
|
+
var s;
|
|
8044
8044
|
});
|
|
8045
8045
|
}
|
|
8046
8046
|
return Object.is(t, e);
|
|
@@ -8049,57 +8049,57 @@ const Ae = Symbol.for("@ts-pattern/matcher"), oo = Symbol.for("@ts-pattern/isVar
|
|
|
8049
8049
|
return Mt(e) ? ct(e) ? (t = (r = (n = e[Ae]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? t : [] : Array.isArray(e) ? Ze(e, Pe) : Ze(Object.values(e), Pe) : [];
|
|
8050
8050
|
}, "s"), Ze = a((e, t) => e.reduce((r, n) => r.concat(t(n)), []), "c");
|
|
8051
8051
|
function ce(e) {
|
|
8052
|
-
return Object.assign(e, { optional: a(() =>
|
|
8052
|
+
return Object.assign(e, { optional: a(() => os(e), "optional"), and: a((t) => W(e, t), "and"), or: a((t) => as(e, t), "or"), select: a((t) => t === void 0 ? Kr(e) : Kr(t, e), "select") });
|
|
8053
8053
|
}
|
|
8054
8054
|
a(ce, "a");
|
|
8055
|
-
function
|
|
8055
|
+
function os(e) {
|
|
8056
8056
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8057
8057
|
let r = {};
|
|
8058
|
-
const n = a((i,
|
|
8059
|
-
r[i] =
|
|
8058
|
+
const n = a((i, s) => {
|
|
8059
|
+
r[i] = s;
|
|
8060
8060
|
}, "r2");
|
|
8061
8061
|
return t === void 0 ? (Pe(e).forEach((i) => n(i, void 0)), { matched: true, selections: r }) : { matched: Se(e, t, n), selections: r };
|
|
8062
8062
|
}, "match"), getSelectionKeys: a(() => Pe(e), "getSelectionKeys"), matcherType: "optional" }) });
|
|
8063
8063
|
}
|
|
8064
|
-
a(
|
|
8064
|
+
a(os, "h");
|
|
8065
8065
|
function W(...e) {
|
|
8066
8066
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8067
8067
|
let r = {};
|
|
8068
|
-
const n = a((i,
|
|
8069
|
-
r[i] =
|
|
8068
|
+
const n = a((i, s) => {
|
|
8069
|
+
r[i] = s;
|
|
8070
8070
|
}, "r2");
|
|
8071
8071
|
return { matched: e.every((i) => Se(i, t, n)), selections: r };
|
|
8072
8072
|
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "and" }) });
|
|
8073
8073
|
}
|
|
8074
8074
|
a(W, "d");
|
|
8075
|
-
function
|
|
8075
|
+
function as(...e) {
|
|
8076
8076
|
return ce({ [Ae]: () => ({ match: a((t) => {
|
|
8077
8077
|
let r = {};
|
|
8078
|
-
const n = a((i,
|
|
8079
|
-
r[i] =
|
|
8078
|
+
const n = a((i, s) => {
|
|
8079
|
+
r[i] = s;
|
|
8080
8080
|
}, "r2");
|
|
8081
8081
|
return Ze(e, Pe).forEach((i) => n(i, void 0)), { matched: e.some((i) => Se(i, t, n)), selections: r };
|
|
8082
8082
|
}, "match"), getSelectionKeys: a(() => Ze(e, Pe), "getSelectionKeys"), matcherType: "or" }) });
|
|
8083
8083
|
}
|
|
8084
|
-
a(
|
|
8084
|
+
a(as, "y");
|
|
8085
8085
|
function K(e) {
|
|
8086
8086
|
return { [Ae]: () => ({ match: a((t) => ({ matched: !!e(t) }), "match") }) };
|
|
8087
8087
|
}
|
|
8088
8088
|
a(K, "p");
|
|
8089
|
-
function
|
|
8089
|
+
function Kr(...e) {
|
|
8090
8090
|
const t = typeof e[0] == "string" ? e[0] : void 0, r = e.length === 2 ? e[1] : typeof e[0] == "string" ? void 0 : e[0];
|
|
8091
8091
|
return ce({ [Ae]: () => ({ match: a((n) => {
|
|
8092
8092
|
let i = { [t ?? at]: n };
|
|
8093
|
-
return { matched: r === void 0 || Se(r, n, (
|
|
8094
|
-
i[
|
|
8093
|
+
return { matched: r === void 0 || Se(r, n, (s, c) => {
|
|
8094
|
+
i[s] = c;
|
|
8095
8095
|
}), selections: i };
|
|
8096
8096
|
}, "match"), getSelectionKeys: a(() => [t ?? at].concat(r === void 0 ? [] : Pe(r)), "getSelectionKeys") }) });
|
|
8097
8097
|
}
|
|
8098
|
-
a(
|
|
8099
|
-
function
|
|
8098
|
+
a(Kr, "v");
|
|
8099
|
+
function Vr(e) {
|
|
8100
8100
|
return true;
|
|
8101
8101
|
}
|
|
8102
|
-
a(
|
|
8102
|
+
a(Vr, "b");
|
|
8103
8103
|
function Re(e) {
|
|
8104
8104
|
return typeof e == "number";
|
|
8105
8105
|
}
|
|
@@ -8108,28 +8108,28 @@ function Le(e) {
|
|
|
8108
8108
|
return typeof e == "string";
|
|
8109
8109
|
}
|
|
8110
8110
|
a(Le, "S");
|
|
8111
|
-
function
|
|
8111
|
+
function Ne(e) {
|
|
8112
8112
|
return typeof e == "bigint";
|
|
8113
8113
|
}
|
|
8114
|
-
a(
|
|
8115
|
-
const
|
|
8116
|
-
return
|
|
8114
|
+
a(Ne, "j"), ce(K(Vr)), ce(K(Vr));
|
|
8115
|
+
const Oe = a((e) => Object.assign(ce(e), { startsWith: a((t) => {
|
|
8116
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && n.startsWith(r)))));
|
|
8117
8117
|
var r;
|
|
8118
8118
|
}, "startsWith"), endsWith: a((t) => {
|
|
8119
|
-
return
|
|
8119
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && n.endsWith(r)))));
|
|
8120
8120
|
var r;
|
|
8121
|
-
}, "endsWith"), minLength: a((t) =>
|
|
8122
|
-
return
|
|
8121
|
+
}, "endsWith"), minLength: a((t) => Oe(W(e, ((r) => K((n) => Le(n) && n.length >= r))(t))), "minLength"), length: a((t) => Oe(W(e, ((r) => K((n) => Le(n) && n.length === r))(t))), "length"), maxLength: a((t) => Oe(W(e, ((r) => K((n) => Le(n) && n.length <= r))(t))), "maxLength"), includes: a((t) => {
|
|
8122
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && n.includes(r)))));
|
|
8123
8123
|
var r;
|
|
8124
8124
|
}, "includes"), regex: a((t) => {
|
|
8125
|
-
return
|
|
8125
|
+
return Oe(W(e, (r = t, K((n) => Le(n) && !!n.match(r)))));
|
|
8126
8126
|
var r;
|
|
8127
8127
|
}, "regex") }), "x");
|
|
8128
|
-
|
|
8129
|
-
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(W(e, ((n, i) => K((
|
|
8128
|
+
Oe(K(Le));
|
|
8129
|
+
const Te = a((e) => Object.assign(ce(e), { between: a((t, r) => Te(W(e, ((n, i) => K((s) => Re(s) && n <= s && i >= s))(t, r))), "between"), lt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n < r))(t))), "lt"), gt: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n > r))(t))), "gt"), lte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n <= r))(t))), "lte"), gte: a((t) => Te(W(e, ((r) => K((n) => Re(n) && n >= r))(t))), "gte"), int: a(() => Te(W(e, K((t) => Re(t) && Number.isInteger(t)))), "int"), finite: a(() => Te(W(e, K((t) => Re(t) && Number.isFinite(t)))), "finite"), positive: a(() => Te(W(e, K((t) => Re(t) && t > 0))), "positive"), negative: a(() => Te(W(e, K((t) => Re(t) && t < 0))), "negative") }), "N");
|
|
8130
8130
|
Te(K(Re));
|
|
8131
|
-
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(W(e, ((n, i) => K((
|
|
8132
|
-
De(K(
|
|
8131
|
+
const De = a((e) => Object.assign(ce(e), { between: a((t, r) => De(W(e, ((n, i) => K((s) => Ne(s) && n <= s && i >= s))(t, r))), "between"), lt: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n < r))(t))), "lt"), gt: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n > r))(t))), "gt"), lte: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n <= r))(t))), "lte"), gte: a((t) => De(W(e, ((r) => K((n) => Ne(n) && n >= r))(t))), "gte"), positive: a(() => De(W(e, K((t) => Ne(t) && t > 0))), "positive"), negative: a(() => De(W(e, K((t) => Ne(t) && t < 0))), "negative") }), "k");
|
|
8132
|
+
De(K(Ne)), ce(K(function(e) {
|
|
8133
8133
|
return typeof e == "boolean";
|
|
8134
8134
|
})), ce(K(function(e) {
|
|
8135
8135
|
return typeof e == "symbol";
|
|
@@ -8138,7 +8138,7 @@ De(K(Oe)), ce(K(function(e) {
|
|
|
8138
8138
|
})), ce(K(function(e) {
|
|
8139
8139
|
return e != null;
|
|
8140
8140
|
}));
|
|
8141
|
-
class
|
|
8141
|
+
class cs extends Error {
|
|
8142
8142
|
static {
|
|
8143
8143
|
a(this, "I");
|
|
8144
8144
|
}
|
|
@@ -8153,10 +8153,10 @@ class co extends Error {
|
|
|
8153
8153
|
}
|
|
8154
8154
|
}
|
|
8155
8155
|
const xt = { matched: false, value: void 0 };
|
|
8156
|
-
function
|
|
8156
|
+
function us(e) {
|
|
8157
8157
|
return new mt(e, xt);
|
|
8158
8158
|
}
|
|
8159
|
-
a(
|
|
8159
|
+
a(us, "M");
|
|
8160
8160
|
class mt {
|
|
8161
8161
|
static {
|
|
8162
8162
|
a(this, "R");
|
|
@@ -8169,10 +8169,10 @@ class mt {
|
|
|
8169
8169
|
const r = t[t.length - 1], n = [t[0]];
|
|
8170
8170
|
let i;
|
|
8171
8171
|
t.length === 3 && typeof t[1] == "function" ? i = t[1] : t.length > 2 && n.push(...t.slice(1, t.length - 1));
|
|
8172
|
-
let
|
|
8172
|
+
let s = false, c = {};
|
|
8173
8173
|
const l = a((E, h) => {
|
|
8174
|
-
|
|
8175
|
-
}, "u2"), p = !n.some((E) => Se(E, this.input, l)) || i && !i(this.input) ? xt : { matched: true, value: r(
|
|
8174
|
+
s = true, c[E] = h;
|
|
8175
|
+
}, "u2"), p = !n.some((E) => Se(E, this.input, l)) || i && !i(this.input) ? xt : { matched: true, value: r(s ? at in c ? c[at] : c : this.input, this.input) };
|
|
8176
8176
|
return new mt(this.input, p);
|
|
8177
8177
|
}
|
|
8178
8178
|
when(t, r) {
|
|
@@ -8183,7 +8183,7 @@ class mt {
|
|
|
8183
8183
|
otherwise(t) {
|
|
8184
8184
|
return this.state.matched ? this.state.value : t(this.input);
|
|
8185
8185
|
}
|
|
8186
|
-
exhaustive(t =
|
|
8186
|
+
exhaustive(t = ls) {
|
|
8187
8187
|
return this.state.matched ? this.state.value : t(this.input);
|
|
8188
8188
|
}
|
|
8189
8189
|
run() {
|
|
@@ -8196,91 +8196,91 @@ class mt {
|
|
|
8196
8196
|
return this;
|
|
8197
8197
|
}
|
|
8198
8198
|
}
|
|
8199
|
-
function
|
|
8200
|
-
throw new
|
|
8199
|
+
function ls(e) {
|
|
8200
|
+
throw new cs(e);
|
|
8201
8201
|
}
|
|
8202
|
-
a(
|
|
8203
|
-
const
|
|
8204
|
-
function
|
|
8205
|
-
return e.reduce((r, n) => r.replaceAll(n,
|
|
8202
|
+
a(ls, "F");
|
|
8203
|
+
const fs = "[REDACTED]", hs = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
|
|
8204
|
+
function oe({ sensitiveValues: e, str: t }) {
|
|
8205
|
+
return e.reduce((r, n) => r.replaceAll(n, fs), t);
|
|
8206
8206
|
}
|
|
8207
|
-
a(
|
|
8208
|
-
function
|
|
8207
|
+
a(oe, "scrubString");
|
|
8208
|
+
function ds(e) {
|
|
8209
8209
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
8210
8210
|
}
|
|
8211
|
-
a(
|
|
8211
|
+
a(ds, "isRecord");
|
|
8212
8212
|
function et({ sensitiveValues: e, value: t }) {
|
|
8213
|
-
return typeof t == "string" ?
|
|
8213
|
+
return typeof t == "string" ? oe({ sensitiveValues: e, str: t }) : Array.isArray(t) ? t.map((r) => et({ sensitiveValues: e, value: r })) : ds(t) ? Ge({ obj: t, sensitiveValues: e }) : t;
|
|
8214
8214
|
}
|
|
8215
8215
|
a(et, "scrubValue");
|
|
8216
|
-
function
|
|
8217
|
-
return
|
|
8216
|
+
function ps(e) {
|
|
8217
|
+
return hs.has(e) ? true : e.toLowerCase().endsWith("sha1");
|
|
8218
8218
|
}
|
|
8219
|
-
a(
|
|
8219
|
+
a(ps, "shouldPreserveKey");
|
|
8220
8220
|
function Ge({ obj: e, sensitiveValues: t }) {
|
|
8221
|
-
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r,
|
|
8221
|
+
return Object.fromEntries(Object.entries(e).map(([r, n]) => [r, ps(r) ? n : et({ sensitiveValues: t, value: n })]));
|
|
8222
8222
|
}
|
|
8223
8223
|
a(Ge, "scrubObject");
|
|
8224
|
-
function
|
|
8225
|
-
return e ? { ...e, message:
|
|
8224
|
+
function Wr({ error: e, sensitiveValues: t }) {
|
|
8225
|
+
return e ? { ...e, message: oe({ sensitiveValues: t, str: e.message }) } : void 0;
|
|
8226
8226
|
}
|
|
8227
|
-
a(
|
|
8228
|
-
function
|
|
8229
|
-
return
|
|
8227
|
+
a(Wr, "scrubError");
|
|
8228
|
+
function ms({ event: e, sensitiveValues: t }) {
|
|
8229
|
+
return us(e).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: oe({ sensitiveValues: t, str: n.preview }), value: et({ sensitiveValues: t, value: n.value }) })), text: oe({ sensitiveValues: t, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: Wr({ error: r.error, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: Wr({ error: r.error, sensitiveValues: t }), params: Ge({ obj: r.params, sensitiveValues: t }), result: r.result !== void 0 ? et({ sensitiveValues: t, value: r.result }) : void 0, title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Ge({ obj: r.params, sensitiveValues: t }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? oe({ sensitiveValues: t, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: oe({ sensitiveValues: t, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Ge({ obj: r.options, sensitiveValues: t }), title: r.title ? oe({ sensitiveValues: t, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Ge({ obj: r.snapshot, sensitiveValues: t }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
|
|
8230
8230
|
}
|
|
8231
|
-
a(
|
|
8232
|
-
function
|
|
8231
|
+
a(ms, "scrubTraceEvent");
|
|
8232
|
+
function Es({ content: e, sensitiveValues: t }) {
|
|
8233
8233
|
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), c = r.decode(e).split(`
|
|
8234
8234
|
`).map((l) => {
|
|
8235
8235
|
if (!l.trim()) return l;
|
|
8236
8236
|
try {
|
|
8237
|
-
const p = JSON.parse(l), E =
|
|
8237
|
+
const p = JSON.parse(l), E = ms({ event: p, sensitiveValues: t });
|
|
8238
8238
|
return JSON.stringify(E);
|
|
8239
8239
|
} catch {
|
|
8240
|
-
return
|
|
8240
|
+
return oe({ sensitiveValues: t, str: l });
|
|
8241
8241
|
}
|
|
8242
8242
|
});
|
|
8243
8243
|
return n.encode(c.join(`
|
|
8244
8244
|
`));
|
|
8245
8245
|
}
|
|
8246
|
-
a(
|
|
8247
|
-
function
|
|
8248
|
-
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i =
|
|
8246
|
+
a(Es, "scrubJsonLinesFile");
|
|
8247
|
+
function Yr({ content: e, sensitiveValues: t }) {
|
|
8248
|
+
const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i = oe({ sensitiveValues: t, str: r.decode(e) });
|
|
8249
8249
|
return n.encode(i);
|
|
8250
8250
|
}
|
|
8251
|
-
a(
|
|
8251
|
+
a(Yr, "scrubTextFile");
|
|
8252
8252
|
async function Gt({ sensitiveValues: e, traceBuffer: t }) {
|
|
8253
|
-
const r =
|
|
8253
|
+
const r = qr(e);
|
|
8254
8254
|
if (r.length === 0) return new Uint8Array(t);
|
|
8255
|
-
const n = [...r].sort((p, E) => E.length - p.length), i =
|
|
8256
|
-
return
|
|
8255
|
+
const n = [...r].sort((p, E) => E.length - p.length), i = ts(new Uint8Array(t)), s = Object.entries(i), c = await Promise.all(s.map(async ([p, E]) => [p, await gs({ content: E, filename: p, sensitiveValues: n })])), l = Object.fromEntries(c);
|
|
8256
|
+
return es(l);
|
|
8257
8257
|
}
|
|
8258
8258
|
a(Gt, "scrubTrace");
|
|
8259
|
-
async function
|
|
8259
|
+
async function gs({ content: e, filename: t, sensitiveValues: r }) {
|
|
8260
8260
|
const n = t.toLowerCase();
|
|
8261
|
-
return n.endsWith(".trace") || n.endsWith(".network") ?
|
|
8261
|
+
return n.endsWith(".trace") || n.endsWith(".network") ? Es({ content: e, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Yr({ content: e, sensitiveValues: r }) : n.startsWith("resources/") ? _s({ content: e, sensitiveValues: r }) : e;
|
|
8262
8262
|
}
|
|
8263
|
-
a(
|
|
8264
|
-
async function
|
|
8265
|
-
return await Li.isBinaryFile(Buffer.from(e)) ? e :
|
|
8263
|
+
a(gs, "scrubFile");
|
|
8264
|
+
async function _s({ content: e, sensitiveValues: t }) {
|
|
8265
|
+
return await Li.isBinaryFile(Buffer.from(e)) ? e : Yr({ content: e, sensitiveValues: t });
|
|
8266
8266
|
}
|
|
8267
|
-
a(
|
|
8268
|
-
async function
|
|
8267
|
+
a(_s, "scrubResourceFile");
|
|
8268
|
+
async function Is({ sensitiveValues: e, tracePath: t }) {
|
|
8269
8269
|
const r = [], n = node_fs.createReadStream(t);
|
|
8270
|
-
for await (const
|
|
8270
|
+
for await (const s of n) r.push(Uint8Array.from(s));
|
|
8271
8271
|
const i = new Uint8Array(Buffer.concat(r));
|
|
8272
8272
|
return Gt({ sensitiveValues: e, traceBuffer: i });
|
|
8273
8273
|
}
|
|
8274
|
-
a(
|
|
8275
|
-
async function
|
|
8274
|
+
a(Is, "scrubTraceFromPath");
|
|
8275
|
+
async function Ss({ sensitiveValues: e, traceFd: t, tracePath: r }) {
|
|
8276
8276
|
const n = [], i = node_fs.createReadStream(r, { autoClose: true, fd: t });
|
|
8277
8277
|
for await (const c of i) n.push(Uint8Array.from(c));
|
|
8278
|
-
const
|
|
8279
|
-
return Gt({ sensitiveValues: e, traceBuffer:
|
|
8278
|
+
const s = new Uint8Array(Buffer.concat(n));
|
|
8279
|
+
return Gt({ sensitiveValues: e, traceBuffer: s });
|
|
8280
8280
|
}
|
|
8281
|
-
a(
|
|
8282
|
-
const
|
|
8283
|
-
class
|
|
8281
|
+
a(Ss, "scrubTraceFromFd");
|
|
8282
|
+
const Jr = { AUTHENTICATION_FAILED: 1008 }, Rs = 2e4, Ts = 5e4, ys = 3e4;
|
|
8283
|
+
class ws {
|
|
8284
8284
|
static {
|
|
8285
8285
|
a(this, "WebSocketClient");
|
|
8286
8286
|
}
|
|
@@ -8301,8 +8301,8 @@ class Ao {
|
|
|
8301
8301
|
authenticationFailed = false;
|
|
8302
8302
|
pingIntervalTimer;
|
|
8303
8303
|
lastPongAt = 0;
|
|
8304
|
-
constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage:
|
|
8305
|
-
this.url = p, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage =
|
|
8304
|
+
constructor({ apiKey: t, maxBufferSize: r = 1e3, maxReconnectAttempts: n = 3, onError: i, onMessage: s, projectId: c, reconnectDelay: l = 2e3, url: p }) {
|
|
8305
|
+
this.url = p, this.apiKey = t, this.projectId = c, this.maxBufferSize = r, this.reconnectDelay = l, this.maxReconnectAttempts = n, this.onMessage = s, this.onError = i, this.connect();
|
|
8306
8306
|
}
|
|
8307
8307
|
connect() {
|
|
8308
8308
|
try {
|
|
@@ -8316,7 +8316,7 @@ class Ao {
|
|
|
8316
8316
|
} catch {
|
|
8317
8317
|
}
|
|
8318
8318
|
}), this.socket.on("close", (r, n) => {
|
|
8319
|
-
this.isAuthenticated = false, this.clearPingInterval(), r ===
|
|
8319
|
+
this.isAuthenticated = false, this.clearPingInterval(), r === Jr.AUTHENTICATION_FAILED && (this.authenticationFailed = true, this.onError && this.onError({ code: r, message: n.toString() || "Authentication failed", reason: n.toString() })), !this.isManualClose && !this.authenticationFailed && this.reconnectAttempts < this.maxReconnectAttempts && this.scheduleReconnect();
|
|
8320
8320
|
}), this.socket.on("error", () => {
|
|
8321
8321
|
});
|
|
8322
8322
|
} catch {
|
|
@@ -8325,19 +8325,19 @@ class Ao {
|
|
|
8325
8325
|
}
|
|
8326
8326
|
scheduleReconnect() {
|
|
8327
8327
|
this.reconnectTimer && clearTimeout(this.reconnectTimer);
|
|
8328
|
-
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts),
|
|
8328
|
+
const t = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), ys);
|
|
8329
8329
|
this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
|
|
8330
8330
|
this.connect();
|
|
8331
8331
|
}, t), this.reconnectTimer.unref();
|
|
8332
8332
|
}
|
|
8333
8333
|
startPingInterval() {
|
|
8334
8334
|
this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
|
|
8335
|
-
if (Date.now() - this.lastPongAt >
|
|
8335
|
+
if (Date.now() - this.lastPongAt > Ts) {
|
|
8336
8336
|
this.clearPingInterval(), this.socket?.terminate();
|
|
8337
8337
|
return;
|
|
8338
8338
|
}
|
|
8339
8339
|
this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
|
|
8340
|
-
},
|
|
8340
|
+
}, Rs), this.pingIntervalTimer.unref();
|
|
8341
8341
|
}
|
|
8342
8342
|
clearPingInterval() {
|
|
8343
8343
|
this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
|
|
@@ -8365,9 +8365,9 @@ class Ao {
|
|
|
8365
8365
|
return;
|
|
8366
8366
|
}
|
|
8367
8367
|
const n = JSON.stringify(t);
|
|
8368
|
-
await new Promise((i,
|
|
8368
|
+
await new Promise((i, s) => {
|
|
8369
8369
|
r.send(n, (c) => {
|
|
8370
|
-
c ? (this.bufferEvent(t),
|
|
8370
|
+
c ? (this.bufferEvent(t), s(c)) : i();
|
|
8371
8371
|
});
|
|
8372
8372
|
});
|
|
8373
8373
|
}
|
|
@@ -8384,108 +8384,108 @@ class Ao {
|
|
|
8384
8384
|
return [...this.buffer];
|
|
8385
8385
|
}
|
|
8386
8386
|
}
|
|
8387
|
-
var
|
|
8387
|
+
var As = { detect({ env: e }) {
|
|
8388
8388
|
return !!e.APPVEYOR;
|
|
8389
8389
|
}, configuration({ env: e }) {
|
|
8390
8390
|
const t = e.APPVEYOR_PULL_REQUEST_NUMBER, r = !!t;
|
|
8391
8391
|
return { name: "Appveyor", service: "appveyor", commit: e.APPVEYOR_REPO_COMMIT, tag: e.APPVEYOR_REPO_TAG_NAME, build: e.APPVEYOR_BUILD_NUMBER, buildUrl: `https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/${e.APPVEYOR_BUILD_VERSION}`, branch: e.APPVEYOR_REPO_BRANCH, job: e.APPVEYOR_JOB_NUMBER, jobUrl: `https://ci.appveyor.com/project/${e.APPVEYOR_PROJECT_SLUG}/build/job/${e.APPVEYOR_JOB_ID}`, pr: t, isPr: r, prBranch: e.APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH, slug: e.APPVEYOR_REPO_NAME, root: e.APPVEYOR_BUILD_FOLDER };
|
|
8392
8392
|
} };
|
|
8393
|
-
function
|
|
8393
|
+
function zr(e) {
|
|
8394
8394
|
return (/\d+(?!.*\d+)/.exec(e) || [])[0];
|
|
8395
8395
|
}
|
|
8396
|
-
a(
|
|
8396
|
+
a(zr, "prNumber");
|
|
8397
8397
|
function tt(e) {
|
|
8398
8398
|
return e ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(e)[1] : void 0;
|
|
8399
8399
|
}
|
|
8400
8400
|
a(tt, "parseBranch");
|
|
8401
|
-
var
|
|
8401
|
+
var bs = { detect({ env: e }) {
|
|
8402
8402
|
return !!e.BUILD_BUILDURI;
|
|
8403
8403
|
}, configuration({ env: e }) {
|
|
8404
8404
|
const t = e.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!t;
|
|
8405
8405
|
return { name: "Azure Pipelines", service: "azurePipelines", commit: e.BUILD_SOURCEVERSION, build: e.BUILD_BUILDNUMBER, branch: tt(r ? e.SYSTEM_PULLREQUEST_TARGETBRANCH : e.BUILD_SOURCEBRANCH), pr: t, isPr: r, prBranch: tt(r ? e.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: e.BUILD_REPOSITORY_LOCALPATH };
|
|
8406
|
-
} },
|
|
8406
|
+
} }, vs = { detect({ env: e }) {
|
|
8407
8407
|
return !!e.bamboo_agentId;
|
|
8408
8408
|
}, configuration({ env: e }) {
|
|
8409
8409
|
return { name: "Bamboo", service: "bamboo", commit: e.bamboo_planRepository_1_revision, build: e.bamboo_buildNumber, buildUrl: e.bamboo_buildResultsUrl, branch: e.bamboo_planRepository_1_branchName, job: e.bamboo_buildKey, root: e.bamboo_build_working_directory };
|
|
8410
|
-
} },
|
|
8410
|
+
} }, Cs = { detect({ env: e }) {
|
|
8411
8411
|
return !!e.BITBUCKET_BUILD_NUMBER;
|
|
8412
8412
|
}, configuration({ env: e }) {
|
|
8413
8413
|
return { name: "Bitbucket Pipelines", service: "bitbucket", commit: e.BITBUCKET_COMMIT, tag: e.BITBUCKET_TAG, build: e.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${e.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${e.BITBUCKET_BUILD_NUMBER}`, branch: e.BITBUCKET_BRANCH, slug: e.BITBUCKET_REPO_FULL_NAME, root: e.BITBUCKET_CLONE_DIR };
|
|
8414
|
-
} },
|
|
8414
|
+
} }, Us = { detect({ env: e }) {
|
|
8415
8415
|
return !!e.BITRISE_IO;
|
|
8416
8416
|
}, configuration({ env: e }) {
|
|
8417
8417
|
const t = e.BITRISE_PULL_REQUEST === "false" ? void 0 : e.BITRISE_PULL_REQUEST, r = !!t;
|
|
8418
8418
|
return { name: "Bitrise", service: "bitrise", commit: e.BITRISE_GIT_COMMIT, tag: e.BITRISE_GIT_TAG, build: e.BITRISE_BUILD_NUMBER, buildUrl: e.BITRISE_BUILD_URL, branch: r ? e.BITRISEIO_GIT_BRANCH_DEST : e.BITRISE_GIT_BRANCH, pr: t, isPr: r, prBranch: r ? e.BITRISE_GIT_BRANCH : void 0, slug: e.BITRISE_APP_SLUG };
|
|
8419
|
-
} },
|
|
8419
|
+
} }, Bs = { detect({ env: e }) {
|
|
8420
8420
|
return !!e.BUDDY_WORKSPACE_ID;
|
|
8421
8421
|
}, configuration({ env: e }) {
|
|
8422
|
-
const t =
|
|
8422
|
+
const t = zr(e.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!t;
|
|
8423
8423
|
return { name: "Buddy", service: "buddy", commit: e.BUDDY_EXECUTION_REVISION, tag: e.BUDDY_EXECUTION_TAG, build: e.BUDDY_EXECUTION_ID, buildUrl: e.BUDDY_EXECUTION_URL, branch: r ? e.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : e.BUDDY_EXECUTION_BRANCH, pr: t, isPr: r, slug: e.BUDDY_REPO_SLUG };
|
|
8424
|
-
} }, $e = { exports: {} }, $t,
|
|
8425
|
-
function
|
|
8426
|
-
if (
|
|
8427
|
-
|
|
8424
|
+
} }, $e = { exports: {} }, $t, Qr;
|
|
8425
|
+
function Ps() {
|
|
8426
|
+
if (Qr) return $t;
|
|
8427
|
+
Qr = 1, $t = n, n.sync = i;
|
|
8428
8428
|
var e = qe;
|
|
8429
|
-
function t(
|
|
8429
|
+
function t(s, c) {
|
|
8430
8430
|
var l = c.pathExt !== void 0 ? c.pathExt : process.env.PATHEXT;
|
|
8431
8431
|
if (!l || (l = l.split(";"), l.indexOf("") !== -1)) return true;
|
|
8432
8432
|
for (var p = 0; p < l.length; p++) {
|
|
8433
8433
|
var E = l[p].toLowerCase();
|
|
8434
|
-
if (E &&
|
|
8434
|
+
if (E && s.substr(-E.length).toLowerCase() === E) return true;
|
|
8435
8435
|
}
|
|
8436
8436
|
return false;
|
|
8437
8437
|
}
|
|
8438
8438
|
a(t, "checkPathExt");
|
|
8439
|
-
function r(
|
|
8440
|
-
return !
|
|
8439
|
+
function r(s, c, l) {
|
|
8440
|
+
return !s.isSymbolicLink() && !s.isFile() ? false : t(c, l);
|
|
8441
8441
|
}
|
|
8442
8442
|
a(r, "checkStat");
|
|
8443
|
-
function n(
|
|
8444
|
-
e.stat(
|
|
8445
|
-
l(p, p ? false : r(E,
|
|
8443
|
+
function n(s, c, l) {
|
|
8444
|
+
e.stat(s, function(p, E) {
|
|
8445
|
+
l(p, p ? false : r(E, s, c));
|
|
8446
8446
|
});
|
|
8447
8447
|
}
|
|
8448
8448
|
a(n, "isexe");
|
|
8449
|
-
function i(
|
|
8450
|
-
return r(e.statSync(
|
|
8449
|
+
function i(s, c) {
|
|
8450
|
+
return r(e.statSync(s), s, c);
|
|
8451
8451
|
}
|
|
8452
8452
|
return a(i, "sync"), $t;
|
|
8453
8453
|
}
|
|
8454
|
-
a(
|
|
8455
|
-
var kt,
|
|
8456
|
-
function
|
|
8457
|
-
if (
|
|
8458
|
-
|
|
8454
|
+
a(Ps, "requireWindows");
|
|
8455
|
+
var kt, Xr;
|
|
8456
|
+
function Ls() {
|
|
8457
|
+
if (Xr) return kt;
|
|
8458
|
+
Xr = 1, kt = t, t.sync = r;
|
|
8459
8459
|
var e = qe;
|
|
8460
|
-
function t(
|
|
8461
|
-
e.stat(
|
|
8460
|
+
function t(s, c, l) {
|
|
8461
|
+
e.stat(s, function(p, E) {
|
|
8462
8462
|
l(p, p ? false : n(E, c));
|
|
8463
8463
|
});
|
|
8464
8464
|
}
|
|
8465
8465
|
a(t, "isexe");
|
|
8466
|
-
function r(
|
|
8467
|
-
return n(e.statSync(
|
|
8466
|
+
function r(s, c) {
|
|
8467
|
+
return n(e.statSync(s), c);
|
|
8468
8468
|
}
|
|
8469
8469
|
a(r, "sync");
|
|
8470
|
-
function n(
|
|
8471
|
-
return
|
|
8470
|
+
function n(s, c) {
|
|
8471
|
+
return s.isFile() && i(s, c);
|
|
8472
8472
|
}
|
|
8473
8473
|
a(n, "checkStat");
|
|
8474
|
-
function i(
|
|
8475
|
-
var l =
|
|
8474
|
+
function i(s, c) {
|
|
8475
|
+
var l = s.mode, p = s.uid, E = s.gid, h = c.uid !== void 0 ? c.uid : process.getuid && process.getuid(), _ = c.gid !== void 0 ? c.gid : process.getgid && process.getgid(), v = parseInt("100", 8), C = parseInt("010", 8), O = parseInt("001", 8), M = v | C, b = l & O || l & C && E === _ || l & v && p === h || l & M && h === 0;
|
|
8476
8476
|
return b;
|
|
8477
8477
|
}
|
|
8478
8478
|
return a(i, "checkMode"), kt;
|
|
8479
8479
|
}
|
|
8480
|
-
a(
|
|
8481
|
-
var Ht,
|
|
8482
|
-
function
|
|
8483
|
-
if (
|
|
8484
|
-
|
|
8480
|
+
a(Ls, "requireMode");
|
|
8481
|
+
var Ht, Zr;
|
|
8482
|
+
function Ns() {
|
|
8483
|
+
if (Zr) return Ht;
|
|
8484
|
+
Zr = 1;
|
|
8485
8485
|
var e;
|
|
8486
|
-
process.platform === "win32" || Bi.TESTING_WINDOWS ? e =
|
|
8487
|
-
function t(n, i,
|
|
8488
|
-
if (typeof i == "function" && (
|
|
8486
|
+
process.platform === "win32" || Bi.TESTING_WINDOWS ? e = Ps() : e = Ls(), Ht = t, t.sync = r;
|
|
8487
|
+
function t(n, i, s) {
|
|
8488
|
+
if (typeof i == "function" && (s = i, i = {}), !s) {
|
|
8489
8489
|
if (typeof Promise != "function") throw new TypeError("callback not provided");
|
|
8490
8490
|
return new Promise(function(c, l) {
|
|
8491
8491
|
t(n, i || {}, function(p, E) {
|
|
@@ -8494,39 +8494,39 @@ function No() {
|
|
|
8494
8494
|
});
|
|
8495
8495
|
}
|
|
8496
8496
|
e(n, i || {}, function(c, l) {
|
|
8497
|
-
c && (c.code === "EACCES" || i && i.ignoreErrors) && (c = null, l = false),
|
|
8497
|
+
c && (c.code === "EACCES" || i && i.ignoreErrors) && (c = null, l = false), s(c, l);
|
|
8498
8498
|
});
|
|
8499
8499
|
}
|
|
8500
8500
|
a(t, "isexe");
|
|
8501
8501
|
function r(n, i) {
|
|
8502
8502
|
try {
|
|
8503
8503
|
return e.sync(n, i || {});
|
|
8504
|
-
} catch (
|
|
8505
|
-
if (i && i.ignoreErrors ||
|
|
8506
|
-
throw
|
|
8504
|
+
} catch (s) {
|
|
8505
|
+
if (i && i.ignoreErrors || s.code === "EACCES") return false;
|
|
8506
|
+
throw s;
|
|
8507
8507
|
}
|
|
8508
8508
|
}
|
|
8509
8509
|
return a(r, "sync"), Ht;
|
|
8510
8510
|
}
|
|
8511
|
-
a(
|
|
8512
|
-
var
|
|
8513
|
-
function
|
|
8514
|
-
if (
|
|
8515
|
-
|
|
8516
|
-
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n =
|
|
8517
|
-
const h = E.colon || r,
|
|
8518
|
-
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv:
|
|
8511
|
+
a(Ns, "requireIsexe");
|
|
8512
|
+
var jt, en;
|
|
8513
|
+
function Os() {
|
|
8514
|
+
if (en) return jt;
|
|
8515
|
+
en = 1;
|
|
8516
|
+
const e = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", t = Ke, r = e ? ";" : ":", n = Ns(), i = a((p) => Object.assign(new Error(`not found: ${p}`), { code: "ENOENT" }), "getNotFoundError"), s = a((p, E) => {
|
|
8517
|
+
const h = E.colon || r, _ = p.match(/\//) || e && p.match(/\\/) ? [""] : [...e ? [process.cwd()] : [], ...(E.path || process.env.PATH || "").split(h)], v = e ? E.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", C = e ? v.split(h) : [""];
|
|
8518
|
+
return e && p.indexOf(".") !== -1 && C[0] !== "" && C.unshift(""), { pathEnv: _, pathExt: C, pathExtExe: v };
|
|
8519
8519
|
}, "getPathInfo"), c = a((p, E, h) => {
|
|
8520
8520
|
typeof E == "function" && (h = E, E = {}), E || (E = {});
|
|
8521
|
-
const { pathEnv:
|
|
8522
|
-
if (P ===
|
|
8523
|
-
const x =
|
|
8524
|
-
w(b(
|
|
8521
|
+
const { pathEnv: _, pathExt: v, pathExtExe: C } = s(p, E), O = [], M = a((P) => new Promise((w, L) => {
|
|
8522
|
+
if (P === _.length) return E.all && O.length ? w(O) : L(i(p));
|
|
8523
|
+
const x = _[P], U = /^".*"$/.test(x) ? x.slice(1, -1) : x, k = t.join(U, p), j = !U && /^\.[\\\/]/.test(p) ? p.slice(0, 2) + k : k;
|
|
8524
|
+
w(b(j, P, 0));
|
|
8525
8525
|
}), "step"), b = a((P, w, L) => new Promise((x, U) => {
|
|
8526
8526
|
if (L === v.length) return x(M(w + 1));
|
|
8527
8527
|
const k = v[L];
|
|
8528
|
-
n(P + k, { pathExt: C }, (
|
|
8529
|
-
if (!
|
|
8528
|
+
n(P + k, { pathExt: C }, (j, o) => {
|
|
8529
|
+
if (!j && o) if (E.all) O.push(P + k);
|
|
8530
8530
|
else return x(P + k);
|
|
8531
8531
|
return x(b(P, w, L + 1));
|
|
8532
8532
|
});
|
|
@@ -8534,11 +8534,11 @@ function Do() {
|
|
|
8534
8534
|
return h ? M(0).then((P) => h(null, P), h) : M(0);
|
|
8535
8535
|
}, "which"), l = a((p, E) => {
|
|
8536
8536
|
E = E || {};
|
|
8537
|
-
const { pathEnv: h, pathExt:
|
|
8538
|
-
for (let
|
|
8539
|
-
const M = h[
|
|
8540
|
-
for (let L = 0; L <
|
|
8541
|
-
const x = w +
|
|
8537
|
+
const { pathEnv: h, pathExt: _, pathExtExe: v } = s(p, E), C = [];
|
|
8538
|
+
for (let O = 0; O < h.length; O++) {
|
|
8539
|
+
const M = h[O], b = /^".*"$/.test(M) ? M.slice(1, -1) : M, P = t.join(b, p), w = !b && /^\.[\\\/]/.test(p) ? p.slice(0, 2) + P : P;
|
|
8540
|
+
for (let L = 0; L < _.length; L++) {
|
|
8541
|
+
const x = w + _[L];
|
|
8542
8542
|
try {
|
|
8543
8543
|
if (n.sync(x, { pathExt: v })) if (E.all) C.push(x);
|
|
8544
8544
|
else return x;
|
|
@@ -8550,51 +8550,51 @@ function Do() {
|
|
|
8550
8550
|
if (E.nothrow) return null;
|
|
8551
8551
|
throw i(p);
|
|
8552
8552
|
}, "whichSync");
|
|
8553
|
-
return
|
|
8553
|
+
return jt = c, c.sync = l, jt;
|
|
8554
8554
|
}
|
|
8555
|
-
a(
|
|
8556
|
-
var ut = { exports: {} },
|
|
8557
|
-
function
|
|
8558
|
-
if (
|
|
8559
|
-
|
|
8555
|
+
a(Os, "requireWhich");
|
|
8556
|
+
var ut = { exports: {} }, tn;
|
|
8557
|
+
function Ds() {
|
|
8558
|
+
if (tn) return ut.exports;
|
|
8559
|
+
tn = 1;
|
|
8560
8560
|
const e = a((t = {}) => {
|
|
8561
8561
|
const r = t.env || process.env;
|
|
8562
8562
|
return (t.platform || process.platform) !== "win32" ? "PATH" : Object.keys(r).reverse().find((i) => i.toUpperCase() === "PATH") || "Path";
|
|
8563
8563
|
}, "pathKey");
|
|
8564
8564
|
return ut.exports = e, ut.exports.default = e, ut.exports;
|
|
8565
8565
|
}
|
|
8566
|
-
a(
|
|
8567
|
-
var
|
|
8568
|
-
function
|
|
8569
|
-
if (
|
|
8570
|
-
|
|
8571
|
-
const e = Ke, t =
|
|
8572
|
-
function n(
|
|
8573
|
-
const l =
|
|
8566
|
+
a(Ds, "requirePathKey");
|
|
8567
|
+
var Ft, rn;
|
|
8568
|
+
function Ms() {
|
|
8569
|
+
if (rn) return Ft;
|
|
8570
|
+
rn = 1;
|
|
8571
|
+
const e = Ke, t = Os(), r = Ds();
|
|
8572
|
+
function n(s, c) {
|
|
8573
|
+
const l = s.options.env || process.env, p = process.cwd(), E = s.options.cwd != null, h = E && process.chdir !== void 0 && !process.chdir.disabled;
|
|
8574
8574
|
if (h) try {
|
|
8575
|
-
process.chdir(
|
|
8575
|
+
process.chdir(s.options.cwd);
|
|
8576
8576
|
} catch {
|
|
8577
8577
|
}
|
|
8578
|
-
let
|
|
8578
|
+
let _;
|
|
8579
8579
|
try {
|
|
8580
|
-
|
|
8580
|
+
_ = t.sync(s.command, { path: l[r({ env: l })], pathExt: c ? e.delimiter : void 0 });
|
|
8581
8581
|
} catch {
|
|
8582
8582
|
} finally {
|
|
8583
8583
|
h && process.chdir(p);
|
|
8584
8584
|
}
|
|
8585
|
-
return
|
|
8585
|
+
return _ && (_ = e.resolve(E ? s.options.cwd : "", _)), _;
|
|
8586
8586
|
}
|
|
8587
8587
|
a(n, "resolveCommandAttempt");
|
|
8588
|
-
function i(
|
|
8589
|
-
return n(
|
|
8588
|
+
function i(s) {
|
|
8589
|
+
return n(s) || n(s, true);
|
|
8590
8590
|
}
|
|
8591
|
-
return a(i, "resolveCommand"),
|
|
8591
|
+
return a(i, "resolveCommand"), Ft = i, Ft;
|
|
8592
8592
|
}
|
|
8593
|
-
a(
|
|
8594
|
-
var lt = {},
|
|
8595
|
-
function
|
|
8596
|
-
if (
|
|
8597
|
-
|
|
8593
|
+
a(Ms, "requireResolveCommand");
|
|
8594
|
+
var lt = {}, nn;
|
|
8595
|
+
function xs() {
|
|
8596
|
+
if (nn) return lt;
|
|
8597
|
+
nn = 1;
|
|
8598
8598
|
const e = /([()\][%!^"`<>&|;, *?])/g;
|
|
8599
8599
|
function t(n) {
|
|
8600
8600
|
return n = n.replace(e, "^$1"), n;
|
|
@@ -8605,190 +8605,190 @@ function Go() {
|
|
|
8605
8605
|
}
|
|
8606
8606
|
return a(r, "escapeArgument"), lt.command = t, lt.argument = r, lt;
|
|
8607
8607
|
}
|
|
8608
|
-
a(
|
|
8609
|
-
var qt,
|
|
8610
|
-
function
|
|
8611
|
-
return
|
|
8608
|
+
a(xs, "require_escape");
|
|
8609
|
+
var qt, sn;
|
|
8610
|
+
function Gs() {
|
|
8611
|
+
return sn || (sn = 1, qt = /^#!(.*)/), qt;
|
|
8612
8612
|
}
|
|
8613
|
-
a(
|
|
8613
|
+
a(Gs, "requireShebangRegex");
|
|
8614
8614
|
var Kt, on;
|
|
8615
|
-
function
|
|
8615
|
+
function $s() {
|
|
8616
8616
|
if (on) return Kt;
|
|
8617
8617
|
on = 1;
|
|
8618
|
-
const e =
|
|
8618
|
+
const e = Gs();
|
|
8619
8619
|
return Kt = a((t = "") => {
|
|
8620
8620
|
const r = t.match(e);
|
|
8621
8621
|
if (!r) return null;
|
|
8622
|
-
const [n, i] = r[0].replace(/#! ?/, "").split(" "),
|
|
8623
|
-
return
|
|
8622
|
+
const [n, i] = r[0].replace(/#! ?/, "").split(" "), s = n.split("/").pop();
|
|
8623
|
+
return s === "env" ? i : i ? `${s} ${i}` : s;
|
|
8624
8624
|
}, "shebangCommand"), Kt;
|
|
8625
8625
|
}
|
|
8626
|
-
a(
|
|
8627
|
-
var Vt,
|
|
8628
|
-
function
|
|
8629
|
-
if (
|
|
8630
|
-
|
|
8631
|
-
const e = qe, t =
|
|
8626
|
+
a($s, "requireShebangCommand");
|
|
8627
|
+
var Vt, an;
|
|
8628
|
+
function ks() {
|
|
8629
|
+
if (an) return Vt;
|
|
8630
|
+
an = 1;
|
|
8631
|
+
const e = qe, t = $s();
|
|
8632
8632
|
function r(n) {
|
|
8633
|
-
const
|
|
8633
|
+
const s = Buffer.alloc(150);
|
|
8634
8634
|
let c;
|
|
8635
8635
|
try {
|
|
8636
|
-
c = e.openSync(n, "r"), e.readSync(c,
|
|
8636
|
+
c = e.openSync(n, "r"), e.readSync(c, s, 0, 150, 0), e.closeSync(c);
|
|
8637
8637
|
} catch {
|
|
8638
8638
|
}
|
|
8639
|
-
return t(
|
|
8639
|
+
return t(s.toString());
|
|
8640
8640
|
}
|
|
8641
8641
|
return a(r, "readShebang"), Vt = r, Vt;
|
|
8642
8642
|
}
|
|
8643
|
-
a(
|
|
8644
|
-
var Wt,
|
|
8645
|
-
function
|
|
8646
|
-
if (
|
|
8647
|
-
|
|
8648
|
-
const e = Ke, t =
|
|
8643
|
+
a(ks, "requireReadShebang");
|
|
8644
|
+
var Wt, cn;
|
|
8645
|
+
function Hs() {
|
|
8646
|
+
if (cn) return Wt;
|
|
8647
|
+
cn = 1;
|
|
8648
|
+
const e = Ke, t = Ms(), r = xs(), n = ks(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
8649
8649
|
function l(h) {
|
|
8650
8650
|
h.file = t(h);
|
|
8651
|
-
const
|
|
8652
|
-
return
|
|
8651
|
+
const _ = h.file && n(h.file);
|
|
8652
|
+
return _ ? (h.args.unshift(h.file), h.command = _, t(h)) : h.file;
|
|
8653
8653
|
}
|
|
8654
8654
|
a(l, "detectShebang");
|
|
8655
8655
|
function p(h) {
|
|
8656
8656
|
if (!i) return h;
|
|
8657
|
-
const
|
|
8657
|
+
const _ = l(h), v = !s.test(_);
|
|
8658
8658
|
if (h.options.forceShell || v) {
|
|
8659
|
-
const C = c.test(
|
|
8659
|
+
const C = c.test(_);
|
|
8660
8660
|
h.command = e.normalize(h.command), h.command = r.command(h.command), h.args = h.args.map((M) => r.argument(M, C));
|
|
8661
|
-
const
|
|
8662
|
-
h.args = ["/d", "/s", "/c", `"${
|
|
8661
|
+
const O = [h.command].concat(h.args).join(" ");
|
|
8662
|
+
h.args = ["/d", "/s", "/c", `"${O}"`], h.command = process.env.comspec || "cmd.exe", h.options.windowsVerbatimArguments = true;
|
|
8663
8663
|
}
|
|
8664
8664
|
return h;
|
|
8665
8665
|
}
|
|
8666
8666
|
a(p, "parseNonShell");
|
|
8667
|
-
function E(h,
|
|
8668
|
-
|
|
8669
|
-
const C = { command: h, args:
|
|
8667
|
+
function E(h, _, v) {
|
|
8668
|
+
_ && !Array.isArray(_) && (v = _, _ = null), _ = _ ? _.slice(0) : [], v = Object.assign({}, v);
|
|
8669
|
+
const C = { command: h, args: _, options: v, file: void 0, original: { command: h, args: _ } };
|
|
8670
8670
|
return v.shell ? C : p(C);
|
|
8671
8671
|
}
|
|
8672
8672
|
return a(E, "parse"), Wt = E, Wt;
|
|
8673
8673
|
}
|
|
8674
|
-
a(
|
|
8675
|
-
var Yt,
|
|
8676
|
-
function
|
|
8677
|
-
if (
|
|
8678
|
-
|
|
8674
|
+
a(Hs, "requireParse");
|
|
8675
|
+
var Yt, un;
|
|
8676
|
+
function js() {
|
|
8677
|
+
if (un) return Yt;
|
|
8678
|
+
un = 1;
|
|
8679
8679
|
const e = process.platform === "win32";
|
|
8680
|
-
function t(
|
|
8681
|
-
return Object.assign(new Error(`${c} ${
|
|
8680
|
+
function t(s, c) {
|
|
8681
|
+
return Object.assign(new Error(`${c} ${s.command} ENOENT`), { code: "ENOENT", errno: "ENOENT", syscall: `${c} ${s.command}`, path: s.command, spawnargs: s.args });
|
|
8682
8682
|
}
|
|
8683
8683
|
a(t, "notFoundError");
|
|
8684
|
-
function r(
|
|
8684
|
+
function r(s, c) {
|
|
8685
8685
|
if (!e) return;
|
|
8686
|
-
const l =
|
|
8687
|
-
|
|
8686
|
+
const l = s.emit;
|
|
8687
|
+
s.emit = function(p, E) {
|
|
8688
8688
|
if (p === "exit") {
|
|
8689
8689
|
const h = n(E, c);
|
|
8690
|
-
if (h) return l.call(
|
|
8690
|
+
if (h) return l.call(s, "error", h);
|
|
8691
8691
|
}
|
|
8692
|
-
return l.apply(
|
|
8692
|
+
return l.apply(s, arguments);
|
|
8693
8693
|
};
|
|
8694
8694
|
}
|
|
8695
8695
|
a(r, "hookChildProcess");
|
|
8696
|
-
function n(
|
|
8697
|
-
return e &&
|
|
8696
|
+
function n(s, c) {
|
|
8697
|
+
return e && s === 1 && !c.file ? t(c.original, "spawn") : null;
|
|
8698
8698
|
}
|
|
8699
8699
|
a(n, "verifyENOENT");
|
|
8700
|
-
function i(
|
|
8701
|
-
return e &&
|
|
8700
|
+
function i(s, c) {
|
|
8701
|
+
return e && s === 1 && !c.file ? t(c.original, "spawnSync") : null;
|
|
8702
8702
|
}
|
|
8703
8703
|
return a(i, "verifyENOENTSync"), Yt = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: t }, Yt;
|
|
8704
8704
|
}
|
|
8705
|
-
a(
|
|
8706
|
-
var
|
|
8707
|
-
function
|
|
8708
|
-
if (
|
|
8709
|
-
|
|
8710
|
-
const e = require$$0$2, t =
|
|
8711
|
-
function n(
|
|
8712
|
-
const p = t(
|
|
8705
|
+
a(js, "requireEnoent");
|
|
8706
|
+
var ln;
|
|
8707
|
+
function Fs() {
|
|
8708
|
+
if (ln) return $e.exports;
|
|
8709
|
+
ln = 1;
|
|
8710
|
+
const e = require$$0$2, t = Hs(), r = js();
|
|
8711
|
+
function n(s, c, l) {
|
|
8712
|
+
const p = t(s, c, l), E = e.spawn(p.command, p.args, p.options);
|
|
8713
8713
|
return r.hookChildProcess(E, p), E;
|
|
8714
8714
|
}
|
|
8715
8715
|
a(n, "spawn");
|
|
8716
|
-
function i(
|
|
8717
|
-
const p = t(
|
|
8716
|
+
function i(s, c, l) {
|
|
8717
|
+
const p = t(s, c, l), E = e.spawnSync(p.command, p.args, p.options);
|
|
8718
8718
|
return E.error = E.error || r.verifyENOENTSync(E.status, p), E;
|
|
8719
8719
|
}
|
|
8720
8720
|
return a(i, "spawnSync"), $e.exports = n, $e.exports.spawn = n, $e.exports.sync = i, $e.exports._parse = t, $e.exports._enoent = r, $e.exports;
|
|
8721
8721
|
}
|
|
8722
|
-
a(
|
|
8723
|
-
var
|
|
8724
|
-
function
|
|
8722
|
+
a(Fs, "requireCrossSpawn");
|
|
8723
|
+
var qs = Fs(), Ks = Cr(qs);
|
|
8724
|
+
function Vs(e) {
|
|
8725
8725
|
const t = typeof e == "string" ? `
|
|
8726
8726
|
` : 10, r = typeof e == "string" ? "\r" : 13;
|
|
8727
8727
|
return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === r && (e = e.slice(0, -1)), e;
|
|
8728
8728
|
}
|
|
8729
|
-
a(
|
|
8730
|
-
function
|
|
8729
|
+
a(Vs, "stripFinalNewline");
|
|
8730
|
+
function fn(e = {}) {
|
|
8731
8731
|
const { env: t = process.env, platform: r = process.platform } = e;
|
|
8732
8732
|
return r !== "win32" ? "PATH" : Object.keys(t).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
|
|
8733
8733
|
}
|
|
8734
|
-
a(
|
|
8735
|
-
const
|
|
8736
|
-
const
|
|
8737
|
-
return r &&
|
|
8738
|
-
}, "npmRunPath"),
|
|
8734
|
+
a(fn, "pathKey");
|
|
8735
|
+
const Ws = a(({ cwd: e = y.cwd(), path: t = y.env[fn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
|
|
8736
|
+
const s = e instanceof URL ? node_url.fileURLToPath(e) : e, c = path.resolve(s), l = [];
|
|
8737
|
+
return r && Ys(l, c), i && Js(l, n, c), [...l, t].join(path.delimiter);
|
|
8738
|
+
}, "npmRunPath"), Ys = a((e, t) => {
|
|
8739
8739
|
let r;
|
|
8740
8740
|
for (; r !== t; ) e.push(path.join(t, "node_modules/.bin")), r = t, t = path.resolve(t, "..");
|
|
8741
|
-
}, "applyPreferLocal"),
|
|
8741
|
+
}, "applyPreferLocal"), Js = a((e, t, r) => {
|
|
8742
8742
|
const n = t instanceof URL ? node_url.fileURLToPath(t) : t;
|
|
8743
8743
|
e.push(path.resolve(r, n, ".."));
|
|
8744
|
-
}, "applyExecPath"),
|
|
8744
|
+
}, "applyExecPath"), zs = a(({ env: e = y.env, ...t } = {}) => {
|
|
8745
8745
|
e = { ...e };
|
|
8746
|
-
const r =
|
|
8747
|
-
return t.path = e[r], e[r] =
|
|
8748
|
-
}, "npmRunPathEnv"),
|
|
8749
|
-
const e =
|
|
8750
|
-
return Array.from({ length: e },
|
|
8751
|
-
}, "getRealtimeSignals"),
|
|
8752
|
-
const e =
|
|
8753
|
-
return [...
|
|
8754
|
-
}, "getSignals"),
|
|
8746
|
+
const r = fn({ env: e });
|
|
8747
|
+
return t.path = e[r], e[r] = Ws(t), e;
|
|
8748
|
+
}, "npmRunPathEnv"), Qs = a(() => {
|
|
8749
|
+
const e = dn - hn + 1;
|
|
8750
|
+
return Array.from({ length: e }, Xs);
|
|
8751
|
+
}, "getRealtimeSignals"), Xs = a((e, t) => ({ name: `SIGRT${t + 1}`, number: hn + t, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), hn = 34, dn = 64, Zs = [{ name: "SIGHUP", number: 1, action: "terminate", description: "Terminal closed", standard: "posix" }, { name: "SIGINT", number: 2, action: "terminate", description: "User interruption with CTRL-C", standard: "ansi" }, { name: "SIGQUIT", number: 3, action: "core", description: "User interruption with CTRL-\\", standard: "posix" }, { name: "SIGILL", number: 4, action: "core", description: "Invalid machine instruction", standard: "ansi" }, { name: "SIGTRAP", number: 5, action: "core", description: "Debugger breakpoint", standard: "posix" }, { name: "SIGABRT", number: 6, action: "core", description: "Aborted", standard: "ansi" }, { name: "SIGIOT", number: 6, action: "core", description: "Aborted", standard: "bsd" }, { name: "SIGBUS", number: 7, action: "core", description: "Bus error due to misaligned, non-existing address or paging error", standard: "bsd" }, { name: "SIGEMT", number: 7, action: "terminate", description: "Command should be emulated but is not implemented", standard: "other" }, { name: "SIGFPE", number: 8, action: "core", description: "Floating point arithmetic error", standard: "ansi" }, { name: "SIGKILL", number: 9, action: "terminate", description: "Forced termination", standard: "posix", forced: true }, { name: "SIGUSR1", number: 10, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGSEGV", number: 11, action: "core", description: "Segmentation fault", standard: "ansi" }, { name: "SIGUSR2", number: 12, action: "terminate", description: "Application-specific signal", standard: "posix" }, { name: "SIGPIPE", number: 13, action: "terminate", description: "Broken pipe or socket", standard: "posix" }, { name: "SIGALRM", number: 14, action: "terminate", description: "Timeout or timer", standard: "posix" }, { name: "SIGTERM", number: 15, action: "terminate", description: "Termination", standard: "ansi" }, { name: "SIGSTKFLT", number: 16, action: "terminate", description: "Stack is empty or overflowed", standard: "other" }, { name: "SIGCHLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "posix" }, { name: "SIGCLD", number: 17, action: "ignore", description: "Child process terminated, paused or unpaused", standard: "other" }, { name: "SIGCONT", number: 18, action: "unpause", description: "Unpaused", standard: "posix", forced: true }, { name: "SIGSTOP", number: 19, action: "pause", description: "Paused", standard: "posix", forced: true }, { name: "SIGTSTP", number: 20, action: "pause", description: 'Paused using CTRL-Z or "suspend"', standard: "posix" }, { name: "SIGTTIN", number: 21, action: "pause", description: "Background process cannot read terminal input", standard: "posix" }, { name: "SIGBREAK", number: 21, action: "terminate", description: "User interruption with CTRL-BREAK", standard: "other" }, { name: "SIGTTOU", number: 22, action: "pause", description: "Background process cannot write to terminal output", standard: "posix" }, { name: "SIGURG", number: 23, action: "ignore", description: "Socket received out-of-band data", standard: "bsd" }, { name: "SIGXCPU", number: 24, action: "core", description: "Process timed out", standard: "bsd" }, { name: "SIGXFSZ", number: 25, action: "core", description: "File too big", standard: "bsd" }, { name: "SIGVTALRM", number: 26, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGPROF", number: 27, action: "terminate", description: "Timeout or timer", standard: "bsd" }, { name: "SIGWINCH", number: 28, action: "ignore", description: "Terminal window size changed", standard: "bsd" }, { name: "SIGIO", number: 29, action: "terminate", description: "I/O is available", standard: "other" }, { name: "SIGPOLL", number: 29, action: "terminate", description: "Watched event", standard: "other" }, { name: "SIGINFO", number: 29, action: "ignore", description: "Request for process information", standard: "other" }, { name: "SIGPWR", number: 30, action: "terminate", description: "Device running out of power", standard: "systemv" }, { name: "SIGSYS", number: 31, action: "core", description: "Invalid system call", standard: "other" }, { name: "SIGUNUSED", number: 31, action: "terminate", description: "Invalid system call", standard: "other" }], pn = a(() => {
|
|
8752
|
+
const e = Qs();
|
|
8753
|
+
return [...Zs, ...e].map(eo);
|
|
8754
|
+
}, "getSignals"), eo = a(({ name: e, number: t, description: r, action: n, forced: i = false, standard: s }) => {
|
|
8755
8755
|
const { signals: { [e]: c } } = node_os.constants, l = c !== void 0;
|
|
8756
|
-
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard:
|
|
8757
|
-
}, "normalizeSignal"),
|
|
8758
|
-
const e =
|
|
8759
|
-
return Object.fromEntries(e.map(
|
|
8760
|
-
}, "getSignalsByName"),
|
|
8761
|
-
const e =
|
|
8756
|
+
return { name: e, number: l ? c : t, description: r, supported: l, action: n, forced: i, standard: s };
|
|
8757
|
+
}, "normalizeSignal"), to = a(() => {
|
|
8758
|
+
const e = pn();
|
|
8759
|
+
return Object.fromEntries(e.map(ro));
|
|
8760
|
+
}, "getSignalsByName"), ro = a(({ name: e, number: t, description: r, supported: n, action: i, forced: s, standard: c }) => [e, { name: e, number: t, description: r, supported: n, action: i, forced: s, standard: c }], "getSignalByName"), no = to(), io = a(() => {
|
|
8761
|
+
const e = pn(), t = dn + 1, r = Array.from({ length: t }, (n, i) => so(i, e));
|
|
8762
8762
|
return Object.assign({}, ...r);
|
|
8763
|
-
}, "getSignalsByNumber"),
|
|
8764
|
-
const r =
|
|
8763
|
+
}, "getSignalsByNumber"), so = a((e, t) => {
|
|
8764
|
+
const r = oo(e, t);
|
|
8765
8765
|
if (r === void 0) return {};
|
|
8766
|
-
const { name: n, description: i, supported:
|
|
8767
|
-
return { [e]: { name: n, number: e, description: i, supported:
|
|
8768
|
-
}, "getSignalByNumber"),
|
|
8766
|
+
const { name: n, description: i, supported: s, action: c, forced: l, standard: p } = r;
|
|
8767
|
+
return { [e]: { name: n, number: e, description: i, supported: s, action: c, forced: l, standard: p } };
|
|
8768
|
+
}, "getSignalByNumber"), oo = a((e, t) => {
|
|
8769
8769
|
const r = t.find(({ name: n }) => node_os.constants.signals[n] === e);
|
|
8770
8770
|
return r !== void 0 ? r : t.find((n) => n.number === e);
|
|
8771
8771
|
}, "findSignalByNumber");
|
|
8772
|
-
|
|
8773
|
-
const
|
|
8774
|
-
|
|
8775
|
-
const C = i === void 0 ? void 0 :
|
|
8772
|
+
io();
|
|
8773
|
+
const ao = a(({ timedOut: e, timeout: t, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: c }) => e ? `timed out after ${t} milliseconds` : r !== void 0 ? `failed with ${r}` : n !== void 0 ? `was killed with ${n} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), mn = a(({ stdout: e, stderr: t, all: r, error: n, signal: i, exitCode: s, command: c, escapedCommand: l, timedOut: p, isCanceled: E, killed: h, parsed: { options: { timeout: _, cwd: v = y.cwd() } } }) => {
|
|
8774
|
+
s = s === null ? void 0 : s, i = i === null ? void 0 : i;
|
|
8775
|
+
const C = i === void 0 ? void 0 : no[i].description, O = n && n.code, b = `Command ${ao({ timedOut: p, timeout: _, errorCode: O, signal: i, signalDescription: C, exitCode: s, isCanceled: E })}: ${c}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
|
|
8776
8776
|
${n.message}` : b, L = [w, t, e].filter(Boolean).join(`
|
|
8777
8777
|
`);
|
|
8778
|
-
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode =
|
|
8779
|
-
}, "makeError"), ft = ["stdin", "stdout", "stderr"],
|
|
8778
|
+
return P ? (n.originalMessage = n.message, n.message = L) : n = new Error(L), n.shortMessage = w, n.command = c, n.escapedCommand = l, n.exitCode = s, n.signal = i, n.signalDescription = C, n.stdout = e, n.stderr = t, n.cwd = v, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!p, n.isCanceled = E, n.killed = h && !p, n;
|
|
8779
|
+
}, "makeError"), ft = ["stdin", "stdout", "stderr"], co = a((e) => ft.some((t) => e[t] !== void 0), "hasAlias"), uo = a((e) => {
|
|
8780
8780
|
if (!e) return;
|
|
8781
8781
|
const { stdio: t } = e;
|
|
8782
8782
|
if (t === void 0) return ft.map((n) => e[n]);
|
|
8783
|
-
if (
|
|
8783
|
+
if (co(e)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ft.map((n) => `\`${n}\``).join(", ")}`);
|
|
8784
8784
|
if (typeof t == "string") return t;
|
|
8785
8785
|
if (!Array.isArray(t)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
|
|
8786
8786
|
const r = Math.max(t.length, ft.length);
|
|
8787
8787
|
return Array.from({ length: r }, (n, i) => t[i]);
|
|
8788
|
-
}, "normalizeStdio"),
|
|
8789
|
-
|
|
8790
|
-
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis,
|
|
8791
|
-
class
|
|
8788
|
+
}, "normalizeStdio"), Fe = [];
|
|
8789
|
+
Fe.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Fe.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Fe.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
8790
|
+
const ht = a((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), Jt = Symbol.for("signal-exit emitter"), zt = globalThis, lo = Object.defineProperty.bind(Object);
|
|
8791
|
+
class fo {
|
|
8792
8792
|
static {
|
|
8793
8793
|
a(this, "Emitter");
|
|
8794
8794
|
}
|
|
@@ -8798,7 +8798,7 @@ class hs {
|
|
|
8798
8798
|
id = Math.random();
|
|
8799
8799
|
constructor() {
|
|
8800
8800
|
if (zt[Jt]) return zt[Jt];
|
|
8801
|
-
|
|
8801
|
+
lo(zt, Jt, { value: this, writable: false, enumerable: false, configurable: false });
|
|
8802
8802
|
}
|
|
8803
8803
|
on(t, r) {
|
|
8804
8804
|
this.listeners[t].push(r);
|
|
@@ -8811,23 +8811,23 @@ class hs {
|
|
|
8811
8811
|
if (this.emitted[t]) return false;
|
|
8812
8812
|
this.emitted[t] = true;
|
|
8813
8813
|
let i = false;
|
|
8814
|
-
for (const
|
|
8814
|
+
for (const s of this.listeners[t]) i = s(r, n) === true || i;
|
|
8815
8815
|
return t === "exit" && (i = this.emit("afterExit", r, n) || i), i;
|
|
8816
8816
|
}
|
|
8817
8817
|
}
|
|
8818
|
-
class
|
|
8818
|
+
class En {
|
|
8819
8819
|
static {
|
|
8820
8820
|
a(this, "SignalExitBase");
|
|
8821
8821
|
}
|
|
8822
8822
|
}
|
|
8823
|
-
const
|
|
8823
|
+
const ho = a((e) => ({ onExit(t, r) {
|
|
8824
8824
|
return e.onExit(t, r);
|
|
8825
8825
|
}, load() {
|
|
8826
8826
|
return e.load();
|
|
8827
8827
|
}, unload() {
|
|
8828
8828
|
return e.unload();
|
|
8829
8829
|
} }), "signalExitWrap");
|
|
8830
|
-
class
|
|
8830
|
+
class po extends En {
|
|
8831
8831
|
static {
|
|
8832
8832
|
a(this, "SignalExitFallback");
|
|
8833
8833
|
}
|
|
@@ -8840,30 +8840,30 @@ class ps extends mn {
|
|
|
8840
8840
|
unload() {
|
|
8841
8841
|
}
|
|
8842
8842
|
}
|
|
8843
|
-
class
|
|
8843
|
+
class mo extends En {
|
|
8844
8844
|
static {
|
|
8845
8845
|
a(this, "SignalExit");
|
|
8846
8846
|
}
|
|
8847
|
-
#
|
|
8848
|
-
#t = new
|
|
8847
|
+
#o = Qt.platform === "win32" ? "SIGINT" : "SIGHUP";
|
|
8848
|
+
#t = new fo();
|
|
8849
8849
|
#e;
|
|
8850
8850
|
#i;
|
|
8851
|
-
#
|
|
8851
|
+
#s;
|
|
8852
8852
|
#n = {};
|
|
8853
8853
|
#r = false;
|
|
8854
8854
|
constructor(t) {
|
|
8855
8855
|
super(), this.#e = t, this.#n = {};
|
|
8856
|
-
for (const r of
|
|
8856
|
+
for (const r of Fe) this.#n[r] = () => {
|
|
8857
8857
|
const n = this.#e.listeners(r);
|
|
8858
8858
|
let { count: i } = this.#t;
|
|
8859
|
-
const
|
|
8860
|
-
if (typeof
|
|
8859
|
+
const s = t;
|
|
8860
|
+
if (typeof s.__signal_exit_emitter__ == "object" && typeof s.__signal_exit_emitter__.count == "number" && (i += s.__signal_exit_emitter__.count), n.length === i) {
|
|
8861
8861
|
this.unload();
|
|
8862
|
-
const c = this.#t.emit("exit", null, r), l = r === "SIGHUP" ? this.#
|
|
8862
|
+
const c = this.#t.emit("exit", null, r), l = r === "SIGHUP" ? this.#o : r;
|
|
8863
8863
|
c || t.kill(t.pid, l);
|
|
8864
8864
|
}
|
|
8865
8865
|
};
|
|
8866
|
-
this.#
|
|
8866
|
+
this.#s = t.reallyExit, this.#i = t.emit;
|
|
8867
8867
|
}
|
|
8868
8868
|
onExit(t, r) {
|
|
8869
8869
|
if (!ht(this.#e)) return () => {
|
|
@@ -8877,7 +8877,7 @@ class ms extends mn {
|
|
|
8877
8877
|
load() {
|
|
8878
8878
|
if (!this.#r) {
|
|
8879
8879
|
this.#r = true, this.#t.count += 1;
|
|
8880
|
-
for (const t of
|
|
8880
|
+
for (const t of Fe) try {
|
|
8881
8881
|
const r = this.#n[t];
|
|
8882
8882
|
r && this.#e.on(t, r);
|
|
8883
8883
|
} catch {
|
|
@@ -8886,17 +8886,17 @@ class ms extends mn {
|
|
|
8886
8886
|
}
|
|
8887
8887
|
}
|
|
8888
8888
|
unload() {
|
|
8889
|
-
this.#r && (this.#r = false,
|
|
8889
|
+
this.#r && (this.#r = false, Fe.forEach((t) => {
|
|
8890
8890
|
const r = this.#n[t];
|
|
8891
8891
|
if (!r) throw new Error("Listener not defined for signal: " + t);
|
|
8892
8892
|
try {
|
|
8893
8893
|
this.#e.removeListener(t, r);
|
|
8894
8894
|
} catch {
|
|
8895
8895
|
}
|
|
8896
|
-
}), this.#e.emit = this.#i, this.#e.reallyExit = this.#
|
|
8896
|
+
}), this.#e.emit = this.#i, this.#e.reallyExit = this.#s, this.#t.count -= 1);
|
|
8897
8897
|
}
|
|
8898
8898
|
#a(t) {
|
|
8899
|
-
return ht(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#
|
|
8899
|
+
return ht(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#s.call(this.#e, this.#e.exitCode)) : 0;
|
|
8900
8900
|
}
|
|
8901
8901
|
#c(t, ...r) {
|
|
8902
8902
|
const n = this.#i;
|
|
@@ -8908,72 +8908,72 @@ class ms extends mn {
|
|
|
8908
8908
|
}
|
|
8909
8909
|
}
|
|
8910
8910
|
const Qt = globalThis.process;
|
|
8911
|
-
|
|
8912
|
-
function
|
|
8911
|
+
ho(ht(Qt) ? new mo(Qt) : new po());
|
|
8912
|
+
function Eo(e) {
|
|
8913
8913
|
return e !== null && typeof e == "object" && typeof e.pipe == "function";
|
|
8914
8914
|
}
|
|
8915
|
-
a(
|
|
8916
|
-
var Xt,
|
|
8917
|
-
function
|
|
8918
|
-
if (
|
|
8919
|
-
|
|
8915
|
+
a(Eo, "isStream"), new TextEncoder();
|
|
8916
|
+
var Xt, gn;
|
|
8917
|
+
function go() {
|
|
8918
|
+
if (gn) return Xt;
|
|
8919
|
+
gn = 1;
|
|
8920
8920
|
const { PassThrough: e } = require$$0;
|
|
8921
8921
|
return Xt = a(function() {
|
|
8922
8922
|
var t = [], r = new e({ objectMode: true });
|
|
8923
|
-
return r.setMaxListeners(0), r.add = n, r.isEmpty = i, r.on("unpipe",
|
|
8923
|
+
return r.setMaxListeners(0), r.add = n, r.isEmpty = i, r.on("unpipe", s), Array.prototype.slice.call(arguments).forEach(n), r;
|
|
8924
8924
|
function n(c) {
|
|
8925
|
-
return Array.isArray(c) ? (c.forEach(n), this) : (t.push(c), c.once("end",
|
|
8925
|
+
return Array.isArray(c) ? (c.forEach(n), this) : (t.push(c), c.once("end", s.bind(null, c)), c.once("error", r.emit.bind(r, "error")), c.pipe(r, { end: false }), this);
|
|
8926
8926
|
}
|
|
8927
8927
|
function i() {
|
|
8928
8928
|
return t.length == 0;
|
|
8929
8929
|
}
|
|
8930
|
-
function
|
|
8930
|
+
function s(c) {
|
|
8931
8931
|
t = t.filter(function(l) {
|
|
8932
8932
|
return l !== c;
|
|
8933
8933
|
}), !t.length && r.readable && r.end();
|
|
8934
8934
|
}
|
|
8935
8935
|
}, "mergeStream"), Xt;
|
|
8936
8936
|
}
|
|
8937
|
-
a(
|
|
8938
|
-
const
|
|
8937
|
+
a(go, "requireMergeStream"), go();
|
|
8938
|
+
const _o = a((e) => {
|
|
8939
8939
|
if (e !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
8940
|
-
}, "validateInputOptions"),
|
|
8941
|
-
const t =
|
|
8942
|
-
if (
|
|
8940
|
+
}, "validateInputOptions"), Io = a(({ input: e, inputFile: t }) => typeof t != "string" ? e : (_o(e), node_fs.readFileSync(t)), "getInputSync"), So = a((e) => {
|
|
8941
|
+
const t = Io(e);
|
|
8942
|
+
if (Eo(t)) throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
8943
8943
|
return t;
|
|
8944
|
-
}, "handleInputSync"),
|
|
8944
|
+
}, "handleInputSync"), Ro = (async () => {
|
|
8945
8945
|
})().constructor.prototype;
|
|
8946
|
-
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(
|
|
8947
|
-
const
|
|
8946
|
+
["then", "catch", "finally"].map((e) => [e, Reflect.getOwnPropertyDescriptor(Ro, e)]);
|
|
8947
|
+
const _n = a((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), To = /^[\w.-]+$/, yo = a((e) => typeof e != "string" || To.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), wo = a((e, t) => _n(e, t).join(" "), "joinCommand"), Ao = a((e, t) => _n(e, t).map((r) => yo(r)).join(" "), "getEscapedCommand"), bo = node_util.debuglog("execa").enabled, dt = a((e, t) => String(e).padStart(t, "0"), "padField"), vo = a(() => {
|
|
8948
8948
|
const e = /* @__PURE__ */ new Date();
|
|
8949
8949
|
return `${dt(e.getHours(), 2)}:${dt(e.getMinutes(), 2)}:${dt(e.getSeconds(), 2)}.${dt(e.getMilliseconds(), 3)}`;
|
|
8950
|
-
}, "getTimestamp"),
|
|
8951
|
-
t && y.stderr.write(`[${
|
|
8950
|
+
}, "getTimestamp"), Co = a((e, { verbose: t }) => {
|
|
8951
|
+
t && y.stderr.write(`[${vo()}] ${e}
|
|
8952
8952
|
`);
|
|
8953
|
-
}, "logCommand"),
|
|
8954
|
-
const
|
|
8955
|
-
return r ?
|
|
8956
|
-
}, "getEnv"),
|
|
8957
|
-
const n =
|
|
8958
|
-
return e = n.command, t = n.args, r = n.options, r = { maxBuffer:
|
|
8959
|
-
}, "handleArguments"),
|
|
8953
|
+
}, "logCommand"), Uo = 1e3 * 1e3 * 100, Bo = a(({ env: e, extendEnv: t, preferLocal: r, localDir: n, execPath: i }) => {
|
|
8954
|
+
const s = t ? { ...y.env, ...e } : e;
|
|
8955
|
+
return r ? zs({ env: s, cwd: n, execPath: i }) : s;
|
|
8956
|
+
}, "getEnv"), Po = a((e, t, r = {}) => {
|
|
8957
|
+
const n = Ks._parse(e, t, r);
|
|
8958
|
+
return e = n.command, t = n.args, r = n.options, r = { maxBuffer: Uo, buffer: true, stripFinalNewline: true, extendEnv: true, preferLocal: false, localDir: r.cwd || y.cwd(), execPath: y.execPath, encoding: "utf8", reject: true, cleanup: true, all: false, windowsHide: true, verbose: bo, ...r }, r.env = Bo(r), r.stdio = uo(r), y.platform === "win32" && path.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: r, parsed: n };
|
|
8959
|
+
}, "handleArguments"), In = a((e, t, r) => typeof t != "string" && !node_buffer.Buffer.isBuffer(t) ? r === void 0 ? void 0 : "" : e.stripFinalNewline ? Vs(t) : t, "handleOutput");
|
|
8960
8960
|
function Zt(e, t, r) {
|
|
8961
|
-
const n =
|
|
8962
|
-
|
|
8963
|
-
const c =
|
|
8961
|
+
const n = Po(e, t, r), i = wo(e, t), s = Ao(e, t);
|
|
8962
|
+
Co(s, n.options);
|
|
8963
|
+
const c = So(n.options);
|
|
8964
8964
|
let l;
|
|
8965
8965
|
try {
|
|
8966
8966
|
l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: c });
|
|
8967
8967
|
} catch (h) {
|
|
8968
|
-
throw
|
|
8968
|
+
throw mn({ error: h, stdout: "", stderr: "", all: "", command: i, escapedCommand: s, parsed: n, timedOut: false, isCanceled: false, killed: false });
|
|
8969
8969
|
}
|
|
8970
|
-
const p =
|
|
8970
|
+
const p = In(n.options, l.stdout, l.error), E = In(n.options, l.stderr, l.error);
|
|
8971
8971
|
if (l.error || l.status !== 0 || l.signal !== null) {
|
|
8972
|
-
const h =
|
|
8972
|
+
const h = mn({ stdout: p, stderr: E, error: l.error, signal: l.signal, exitCode: l.status, command: i, escapedCommand: s, parsed: n, timedOut: l.error && l.error.code === "ETIMEDOUT", isCanceled: false, killed: l.signal !== null });
|
|
8973
8973
|
if (!n.options.reject) return h;
|
|
8974
8974
|
throw h;
|
|
8975
8975
|
}
|
|
8976
|
-
return { command: i, escapedCommand:
|
|
8976
|
+
return { command: i, escapedCommand: s, exitCode: 0, stdout: p, stderr: E, failed: false, timedOut: false, isCanceled: false, killed: false };
|
|
8977
8977
|
}
|
|
8978
8978
|
a(Zt, "execaSync");
|
|
8979
8979
|
function pt(e) {
|
|
@@ -8997,111 +8997,111 @@ function er(e) {
|
|
|
8997
8997
|
}
|
|
8998
8998
|
}
|
|
8999
8999
|
a(er, "branch");
|
|
9000
|
-
const
|
|
9001
|
-
function
|
|
9000
|
+
const Sn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Lo = /^\/(.*)\.git$/;
|
|
9001
|
+
function No(e) {
|
|
9002
9002
|
if (e) {
|
|
9003
|
-
if (e.match(
|
|
9003
|
+
if (e.match(Sn)) return e.replace(Sn, "$1");
|
|
9004
9004
|
try {
|
|
9005
|
-
return new URL(e).pathname.replace(
|
|
9005
|
+
return new URL(e).pathname.replace(Lo, "$1");
|
|
9006
9006
|
} catch {
|
|
9007
9007
|
return;
|
|
9008
9008
|
}
|
|
9009
9009
|
}
|
|
9010
9010
|
}
|
|
9011
|
-
a(
|
|
9012
|
-
var
|
|
9011
|
+
a(No, "getSlugFromGitURL");
|
|
9012
|
+
var Oo = { detect({ env: e }) {
|
|
9013
9013
|
return !!e.BUILDKITE;
|
|
9014
9014
|
}, configuration({ env: e }) {
|
|
9015
9015
|
const t = e.BUILDKITE_PULL_REQUEST === "false" ? void 0 : e.BUILDKITE_PULL_REQUEST, r = !!t;
|
|
9016
|
-
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug:
|
|
9017
|
-
} },
|
|
9016
|
+
return { name: "Buildkite", service: "buildkite", build: e.BUILDKITE_BUILD_NUMBER, buildUrl: e.BUILDKITE_BUILD_URL, commit: e.BUILDKITE_COMMIT, tag: e.BUILDKITE_TAG, branch: r ? e.BUILDKITE_PULL_REQUEST_BASE_BRANCH : e.BUILDKITE_BRANCH, slug: No(e.BUILDKITE_REPO), pr: t, isPr: r, prBranch: r ? e.BUILDKITE_BRANCH : void 0, root: e.BUILDKITE_BUILD_CHECKOUT_PATH };
|
|
9017
|
+
} }, Do = { detect({ env: e }) {
|
|
9018
9018
|
return !!e.CIRCLECI;
|
|
9019
9019
|
}, configuration({ env: e }) {
|
|
9020
|
-
const t = e.CIRCLE_PR_NUMBER ||
|
|
9020
|
+
const t = e.CIRCLE_PR_NUMBER || zr(e.CIRCLE_PULL_REQUEST || e.CI_PULL_REQUEST), r = !!t;
|
|
9021
9021
|
return { name: "CircleCI", service: "circleci", build: e.CIRCLE_BUILD_NUM, buildUrl: e.CIRCLE_BUILD_URL, job: `${e.CIRCLE_BUILD_NUM}.${e.CIRCLE_NODE_INDEX}`, commit: e.CIRCLE_SHA1, tag: e.CIRCLE_TAG, branch: r ? void 0 : e.CIRCLE_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRCLE_BRANCH : void 0, slug: `${e.CIRCLE_PROJECT_USERNAME}/${e.CIRCLE_PROJECT_REPONAME}` };
|
|
9022
9022
|
} };
|
|
9023
|
-
const
|
|
9024
|
-
var
|
|
9023
|
+
const Rn = "https://cirrus-ci.com";
|
|
9024
|
+
var Mo = { detect({ env: e }) {
|
|
9025
9025
|
return !!e.CIRRUS_CI;
|
|
9026
9026
|
}, configuration({ env: e }) {
|
|
9027
9027
|
const t = e.CIRRUS_PR, r = !!t;
|
|
9028
|
-
return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${
|
|
9029
|
-
} },
|
|
9028
|
+
return { name: "Cirrus CI", service: "cirrus", commit: e.CIRRUS_CHANGE_IN_REPO, tag: e.CIRRUS_TAG, build: e.CIRRUS_BUILD_ID, buildUrl: `${Rn}/build/${e.CIRRUS_BUILD_ID}`, job: e.CIRRUS_TASK_ID, jobUrl: `${Rn}/task/${e.CIRRUS_TASK_ID}`, branch: r ? e.CIRRUS_BASE_BRANCH : e.CIRRUS_BRANCH, pr: t, isPr: r, prBranch: r ? e.CIRRUS_BRANCH : void 0, slug: e.CIRRUS_REPO_FULL_NAME, root: e.CIRRUS_WORKING_DIR };
|
|
9029
|
+
} }, xo = { detect({ env: e }) {
|
|
9030
9030
|
return e.CF_PAGES === "1";
|
|
9031
9031
|
}, configuration({ env: e }) {
|
|
9032
9032
|
return { name: "Cloudflare Pages", service: "cloudflarePages", commit: e.CF_PAGES_COMMIT_SHA, branch: e.CF_PAGES_BRANCH, root: e.PWD };
|
|
9033
|
-
} },
|
|
9033
|
+
} }, Go = { detect({ env: e }) {
|
|
9034
9034
|
return !!e.CODEBUILD_BUILD_ID;
|
|
9035
9035
|
}, configuration({ env: e, cwd: t }) {
|
|
9036
9036
|
return { name: "AWS CodeBuild", service: "codebuild", commit: pt({ env: e, cwd: t }), build: e.CODEBUILD_BUILD_ID, branch: er({ env: e, cwd: t }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${e.AWS_REGION}#/builds/${e.CODEBUILD_BUILD_ID}/view/new`, root: e.PWD };
|
|
9037
|
-
} }, $
|
|
9037
|
+
} }, $o = { detect({ env: e }) {
|
|
9038
9038
|
return !!e.CF_BUILD_ID;
|
|
9039
9039
|
}, configuration({ env: e }) {
|
|
9040
9040
|
const t = e.CF_PULL_REQUEST_NUMBER, r = !!t;
|
|
9041
9041
|
return { name: "Codefresh", service: "codefresh", commit: e.CF_REVISION, build: e.CF_BUILD_ID, buildUrl: e.CF_BUILD_URL, branch: r ? e.CF_PULL_REQUEST_TARGET : e.CF_BRANCH, pr: t, isPr: r, prBranch: r ? e.CF_BRANCH : void 0, slug: `${e.CF_REPO_OWNER}/${e.CF_REPO_NAME}`, root: e.CF_VOLUME_PATH };
|
|
9042
|
-
} },
|
|
9042
|
+
} }, ko = { detect({ env: e }) {
|
|
9043
9043
|
return e.CI_NAME && e.CI_NAME === "codeship";
|
|
9044
9044
|
}, configuration({ env: e }) {
|
|
9045
9045
|
return { name: "Codeship", service: "codeship", build: e.CI_BUILD_NUMBER, buildUrl: e.CI_BUILD_URL, commit: e.CI_COMMIT_ID, branch: e.CI_BRANCH, slug: e.CI_REPO_NAME };
|
|
9046
|
-
} },
|
|
9046
|
+
} }, Ho = { detect({ env: e }) {
|
|
9047
9047
|
return !!e.DRONE;
|
|
9048
9048
|
}, configuration({ env: e }) {
|
|
9049
9049
|
const t = e.DRONE_BUILD_EVENT === "pull_request";
|
|
9050
9050
|
return { name: "Drone", service: "drone", commit: e.DRONE_COMMIT_SHA, tag: e.DRONE_TAG, build: e.DRONE_BUILD_NUMBER, buildUrl: e.DRONE_BUILD_LINK, branch: t ? e.DRONE_TARGET_BRANCH : e.DRONE_BRANCH, job: e.DRONE_JOB_NUMBER, jobUrl: e.DRONE_BUILD_LINK, pr: e.DRONE_PULL_REQUEST, isPr: t, prBranch: t ? e.DRONE_SOURCE_BRANCH : void 0, slug: `${e.DRONE_REPO_OWNER}/${e.DRONE_REPO_NAME}`, root: e.DRONE_WORKSPACE };
|
|
9051
|
-
} },
|
|
9051
|
+
} }, jo = { configuration(e) {
|
|
9052
9052
|
return { commit: pt(e), branch: er(e) };
|
|
9053
9053
|
} };
|
|
9054
|
-
const
|
|
9054
|
+
const Fo = a(({ env: e }) => {
|
|
9055
9055
|
try {
|
|
9056
9056
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9057
9057
|
if (t && t.pull_request) return { branch: t.pull_request.base ? tt(t.pull_request.base.ref) : void 0, pr: t.pull_request.number };
|
|
9058
9058
|
} catch {
|
|
9059
9059
|
}
|
|
9060
9060
|
return { pr: void 0, branch: void 0 };
|
|
9061
|
-
}, "getPrEvent"),
|
|
9061
|
+
}, "getPrEvent"), qo = a((e) => {
|
|
9062
9062
|
const t = e.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(e.GITHUB_EVENT_PATH, "utf-8")) : void 0;
|
|
9063
9063
|
return t && t.pull_request ? t.pull_request.number : void 0;
|
|
9064
9064
|
}, "getPrNumber");
|
|
9065
|
-
var
|
|
9065
|
+
var Ko = { detect({ env: e }) {
|
|
9066
9066
|
return !!e.GITHUB_ACTIONS;
|
|
9067
9067
|
}, configuration({ env: e, cwd: t }) {
|
|
9068
|
-
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${
|
|
9069
|
-
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ?
|
|
9070
|
-
} },
|
|
9068
|
+
const r = e.GITHUB_EVENT_NAME === "pull_request" || e.GITHUB_EVENT_NAME === "pull_request_target", n = tt(e.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${qo(e)}/merge` : e.GITHUB_REF);
|
|
9069
|
+
return { name: "GitHub Actions", service: "github", commit: e.GITHUB_SHA, build: e.GITHUB_RUN_ID, buildUrl: `${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: e.GITHUB_REPOSITORY, root: e.GITHUB_WORKSPACE, ...r ? Fo({ env: e }) : void 0 };
|
|
9070
|
+
} }, Vo = { detect({ env: e }) {
|
|
9071
9071
|
return !!e.GITLAB_CI;
|
|
9072
9072
|
}, configuration({ env: e }) {
|
|
9073
9073
|
const t = e.CI_MERGE_REQUEST_ID, r = !!t;
|
|
9074
9074
|
return { name: "GitLab CI/CD", service: "gitlab", commit: e.CI_COMMIT_SHA, tag: e.CI_COMMIT_TAG, build: e.CI_PIPELINE_ID, buildUrl: `${e.CI_PROJECT_URL}/pipelines/${e.CI_PIPELINE_ID}`, job: e.CI_JOB_ID, jobUrl: `${e.CI_PROJECT_URL}/-/jobs/${e.CI_JOB_ID}`, branch: r ? e.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : e.CI_COMMIT_REF_NAME, pr: t, isPr: r, prBranch: e.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: e.CI_PROJECT_PATH, root: e.CI_PROJECT_DIR };
|
|
9075
|
-
} },
|
|
9075
|
+
} }, Wo = { detect({ env: e }) {
|
|
9076
9076
|
return !!e.JENKINS_URL;
|
|
9077
9077
|
}, configuration({ env: e, cwd: t }) {
|
|
9078
9078
|
const r = e.ghprbPullId || e.gitlabMergeRequestId || e.CHANGE_ID, n = !!r, i = e.GIT_LOCAL_BRANCH || e.GIT_BRANCH || e.gitlabBranch || e.BRANCH_NAME;
|
|
9079
9079
|
return { name: "Jenkins", service: "jenkins", commit: e.ghprbActualCommit || e.GIT_COMMIT || pt({ env: e, cwd: t }), branch: n ? e.ghprbTargetBranch || e.gitlabTargetBranch : i, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, root: e.WORKSPACE, pr: r, isPr: n, prBranch: n ? e.ghprbSourceBranch || e.gitlabSourceBranch || i : void 0 };
|
|
9080
|
-
} },
|
|
9080
|
+
} }, Yo = { detect({ env: e }) {
|
|
9081
9081
|
return e.NETLIFY === "true";
|
|
9082
9082
|
}, configuration({ env: e }) {
|
|
9083
9083
|
const t = e.PULL_REQUEST === "true";
|
|
9084
9084
|
return { name: "Netlify", service: "netlify", commit: e.COMMIT_REF, build: e.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${e.SITE_NAME}/deploys/${e.DEPLOY_ID}`, branch: t ? void 0 : e.HEAD, pr: e.REVIEW_ID, isPr: t, prBranch: t ? e.HEAD : void 0, slug: e.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: e.PWD };
|
|
9085
|
-
} },
|
|
9085
|
+
} }, Jo = { detect({ env: e }) {
|
|
9086
9086
|
return !!e.DISTELLI_APPNAME;
|
|
9087
9087
|
}, configuration({ env: e }) {
|
|
9088
9088
|
return { name: "Puppet", service: "puppet", build: e.DISTELLI_BUILDNUM, buildUrl: e.DISTELLI_RELEASE, commit: e.DISTELLI_RELREVISION, branch: e.DISTELLI_RELBRANCH, root: e.DISTELLI_INSTALLHOME };
|
|
9089
|
-
} },
|
|
9089
|
+
} }, zo = { detect({ env: e }) {
|
|
9090
9090
|
return !!e.SAILCI;
|
|
9091
9091
|
}, configuration({ env: e }) {
|
|
9092
9092
|
const t = e.SAIL_PULL_REQUEST_NUMBER, r = !!t;
|
|
9093
9093
|
return { name: "Sail CI", service: "sail", commit: e.SAIL_COMMIT_SHA, branch: r ? void 0 : e.SAIL_COMMIT_BRANCH, pr: t, isPr: r, slug: `${e.SAIL_REPO_OWNER}/${e.SAIL_REPO_NAME}`, root: e.SAIL_CLONE_DIR };
|
|
9094
|
-
} },
|
|
9094
|
+
} }, Qo = { detect({ env: e }) {
|
|
9095
9095
|
return !!e.SCREWDRIVER;
|
|
9096
9096
|
}, configuration({ env: e }) {
|
|
9097
9097
|
const t = e.SD_PULL_REQUEST, r = !!t;
|
|
9098
9098
|
return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? e.PR_BASE_BRANCH_NAME : e.GIT_BRANCH, prBranch: r ? e.PR_BRANCH_NAME : void 0, commit: e.SD_BUILD_SHA, build: e.SD_BUILD_ID, buildUrl: e.SD_UI_BUILD_URL, job: e.SD_JOB_ID, pr: t, isPr: r, slug: e.SD_PIPELINE_NAME, root: e.SD_ROOT_DIR };
|
|
9099
|
-
} },
|
|
9099
|
+
} }, Xo = { detect({ env: e }) {
|
|
9100
9100
|
return !!e.SCRUTINIZER;
|
|
9101
9101
|
}, configuration({ env: e }) {
|
|
9102
9102
|
const t = e.SCRUTINIZER_PR_NUMBER, r = !!t;
|
|
9103
9103
|
return { name: "Scrutinizer", service: "scrutinizer", commit: e.SCRUTINIZER_SHA1, build: e.SCRUTINIZER_INSPECTION_UUID, branch: e.SCRUTINIZER_BRANCH, pr: t, isPr: r, prBranch: e.SCRUTINIZER_PR_SOURCE_BRANCH };
|
|
9104
|
-
} },
|
|
9104
|
+
} }, Zo = { detect({ env: e }) {
|
|
9105
9105
|
return !!e.SEMAPHORE;
|
|
9106
9106
|
}, configuration({ env: e, cwd: t }) {
|
|
9107
9107
|
const r = e.SEMAPHORE_GIT_PR_NUMBER || e.PULL_REQUEST_NUMBER, n = !!r;
|
|
@@ -9111,10 +9111,10 @@ var Ks = { detect({ env: e }) {
|
|
|
9111
9111
|
}, configuration({ env: e }) {
|
|
9112
9112
|
const t = e.IS_PULL_REQUEST === "true" ? e.PULL_REQUEST : void 0, r = !!t;
|
|
9113
9113
|
return { name: "Shippable", service: "shippable", commit: e.COMMIT, tag: e.GIT_TAG_NAME, build: e.BUILD_NUMBER, buildUrl: e.BUILD_URL, branch: r ? e.BASE_BRANCH : e.BRANCH, job: e.JOB_NUMBER, pr: t, isPr: r, prBranch: r ? e.HEAD_BRANCH : void 0, slug: e.SHIPPABLE_REPO_SLUG, root: e.SHIPPABLE_BUILD_DIR };
|
|
9114
|
-
} }, ke = {},
|
|
9114
|
+
} }, ke = {}, Tn;
|
|
9115
9115
|
function ta() {
|
|
9116
|
-
if (
|
|
9117
|
-
|
|
9116
|
+
if (Tn) return ke;
|
|
9117
|
+
Tn = 1, Object.defineProperty(ke, "__esModule", { value: true }), ke.of = ke.PropertiesFile = void 0;
|
|
9118
9118
|
var e = t(qe);
|
|
9119
9119
|
function t(i) {
|
|
9120
9120
|
return i && i.__esModule ? i : { default: i };
|
|
@@ -9124,12 +9124,12 @@ function ta() {
|
|
|
9124
9124
|
static {
|
|
9125
9125
|
a(this, "PropertiesFile");
|
|
9126
9126
|
}
|
|
9127
|
-
constructor(...
|
|
9128
|
-
this.objs = {},
|
|
9127
|
+
constructor(...s) {
|
|
9128
|
+
this.objs = {}, s.length && this.of.apply(this, s);
|
|
9129
9129
|
}
|
|
9130
|
-
makeKeys(
|
|
9131
|
-
if (
|
|
9132
|
-
let c = ["=", ":"].map((h) =>
|
|
9130
|
+
makeKeys(s) {
|
|
9131
|
+
if (s && s.indexOf("#") !== 0) {
|
|
9132
|
+
let c = ["=", ":"].map((h) => s.indexOf(h)).filter((h) => h > -1), l = Math.min(...c), p = s.substring(0, l).trim(), E = s.substring(l + 1).trim();
|
|
9133
9133
|
if (this.objs.hasOwnProperty(p)) if (Array.isArray(this.objs[p])) this.objs[p].push(E);
|
|
9134
9134
|
else {
|
|
9135
9135
|
let h = this.objs[p];
|
|
@@ -9141,72 +9141,72 @@ function ta() {
|
|
|
9141
9141
|
}
|
|
9142
9142
|
}
|
|
9143
9143
|
}
|
|
9144
|
-
addFile(
|
|
9145
|
-
let l = e.default.readFileSync(
|
|
9144
|
+
addFile(s) {
|
|
9145
|
+
let l = e.default.readFileSync(s, "utf-8").split(/\r?\n/), p = this;
|
|
9146
9146
|
for (let E = 0; E < l.length; E++) {
|
|
9147
9147
|
let h = l[E];
|
|
9148
9148
|
for (; h.substring(h.length - 1) === "\\"; ) {
|
|
9149
9149
|
h = h.slice(0, -1);
|
|
9150
|
-
let
|
|
9151
|
-
h = h +
|
|
9150
|
+
let _ = l[E + 1];
|
|
9151
|
+
h = h + _.trim(), E++;
|
|
9152
9152
|
}
|
|
9153
9153
|
p.makeKeys(h);
|
|
9154
9154
|
}
|
|
9155
9155
|
}
|
|
9156
|
-
of(...
|
|
9157
|
-
for (let c = 0; c <
|
|
9156
|
+
of(...s) {
|
|
9157
|
+
for (let c = 0; c < s.length; c++) this.addFile(s[c]);
|
|
9158
9158
|
}
|
|
9159
|
-
get(
|
|
9160
|
-
if (this.objs.hasOwnProperty(
|
|
9159
|
+
get(s, c) {
|
|
9160
|
+
if (this.objs.hasOwnProperty(s)) if (Array.isArray(this.objs[s])) {
|
|
9161
9161
|
let l = [];
|
|
9162
|
-
for (let p = 0; p < this.objs[
|
|
9162
|
+
for (let p = 0; p < this.objs[s].length; p++) l[p] = this.interpolate(this.objs[s][p]);
|
|
9163
9163
|
return l;
|
|
9164
|
-
} else return typeof this.objs[
|
|
9164
|
+
} else return typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]);
|
|
9165
9165
|
return c;
|
|
9166
9166
|
}
|
|
9167
|
-
getLast(
|
|
9168
|
-
if (this.objs.hasOwnProperty(
|
|
9169
|
-
var l = this.objs[
|
|
9170
|
-
return this.interpolate(this.objs[
|
|
9171
|
-
} else return typeof this.objs[
|
|
9167
|
+
getLast(s, c) {
|
|
9168
|
+
if (this.objs.hasOwnProperty(s)) if (Array.isArray(this.objs[s])) {
|
|
9169
|
+
var l = this.objs[s].length;
|
|
9170
|
+
return this.interpolate(this.objs[s][l - 1]);
|
|
9171
|
+
} else return typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]);
|
|
9172
9172
|
return c;
|
|
9173
9173
|
}
|
|
9174
|
-
getFirst(
|
|
9175
|
-
return this.objs.hasOwnProperty(
|
|
9174
|
+
getFirst(s, c) {
|
|
9175
|
+
return this.objs.hasOwnProperty(s) ? Array.isArray(this.objs[s]) ? this.interpolate(this.objs[s][0]) : typeof this.objs[s] > "u" ? "" : this.interpolate(this.objs[s]) : c;
|
|
9176
9176
|
}
|
|
9177
|
-
getInt(
|
|
9178
|
-
let l = this.getLast(
|
|
9177
|
+
getInt(s, c) {
|
|
9178
|
+
let l = this.getLast(s);
|
|
9179
9179
|
return l ? parseInt(l, 10) : c;
|
|
9180
9180
|
}
|
|
9181
|
-
getFloat(
|
|
9182
|
-
let l = this.getLast(
|
|
9181
|
+
getFloat(s, c) {
|
|
9182
|
+
let l = this.getLast(s);
|
|
9183
9183
|
return l ? parseFloat(l) : c;
|
|
9184
9184
|
}
|
|
9185
|
-
getBoolean(
|
|
9185
|
+
getBoolean(s, c) {
|
|
9186
9186
|
function l(E) {
|
|
9187
9187
|
return !/^(false|0)$/i.test(E) && !!E;
|
|
9188
9188
|
}
|
|
9189
9189
|
a(l, "parseBool");
|
|
9190
|
-
let p = this.getLast(
|
|
9190
|
+
let p = this.getLast(s);
|
|
9191
9191
|
return p ? l(p) : c || false;
|
|
9192
9192
|
}
|
|
9193
|
-
set(
|
|
9194
|
-
this.objs[
|
|
9193
|
+
set(s, c) {
|
|
9194
|
+
this.objs[s] = c;
|
|
9195
9195
|
}
|
|
9196
|
-
interpolate(
|
|
9196
|
+
interpolate(s) {
|
|
9197
9197
|
let c = this;
|
|
9198
|
-
return
|
|
9198
|
+
return s.replace(/\\\\/g, "\\").replace(/\$\{([A-Za-z0-9\.\-\_]*)\}/g, function(l) {
|
|
9199
9199
|
return c.getLast(l.substring(2, l.length - 1));
|
|
9200
9200
|
});
|
|
9201
9201
|
}
|
|
9202
9202
|
getKeys() {
|
|
9203
|
-
let
|
|
9204
|
-
for (let c in this.objs)
|
|
9205
|
-
return
|
|
9203
|
+
let s = [];
|
|
9204
|
+
for (let c in this.objs) s.push(c);
|
|
9205
|
+
return s;
|
|
9206
9206
|
}
|
|
9207
|
-
getMatchingKeys(
|
|
9207
|
+
getMatchingKeys(s) {
|
|
9208
9208
|
let c = [];
|
|
9209
|
-
for (let l in this.objs) l.search(
|
|
9209
|
+
for (let l in this.objs) l.search(s) !== -1 && c.push(l);
|
|
9210
9210
|
return c;
|
|
9211
9211
|
}
|
|
9212
9212
|
reset() {
|
|
@@ -9214,29 +9214,29 @@ function ta() {
|
|
|
9214
9214
|
}
|
|
9215
9215
|
}
|
|
9216
9216
|
ke.PropertiesFile = r;
|
|
9217
|
-
let n = a(function(...
|
|
9217
|
+
let n = a(function(...s) {
|
|
9218
9218
|
let c = new r();
|
|
9219
|
-
return c.of.apply(c,
|
|
9219
|
+
return c.of.apply(c, s), c;
|
|
9220
9220
|
}, "of2");
|
|
9221
9221
|
return ke.of = n, ke;
|
|
9222
9222
|
}
|
|
9223
9223
|
a(ta, "requireDistNode");
|
|
9224
|
-
var ra = ta(), na =
|
|
9225
|
-
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" },
|
|
9224
|
+
var ra = ta(), na = Cr(ra);
|
|
9225
|
+
const tr = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, yn = a((e) => {
|
|
9226
9226
|
try {
|
|
9227
9227
|
return na.of(e);
|
|
9228
9228
|
} catch {
|
|
9229
9229
|
return;
|
|
9230
9230
|
}
|
|
9231
9231
|
}, "safeReadProperties"), ia = a(({ env: e, cwd: t }) => {
|
|
9232
|
-
const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ?
|
|
9233
|
-
return Object.fromEntries(Object.keys(tr).map((
|
|
9232
|
+
const r = e.TEAMCITY_BUILD_PROPERTIES_FILE ? yn(e.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && yn(n);
|
|
9233
|
+
return Object.fromEntries(Object.keys(tr).map((s) => [s, (r ? r.get(tr[s]) : void 0) || (i ? i.get(tr[s]) : void 0) || (s === "branch" ? er({ env: e, cwd: t }) : void 0)]));
|
|
9234
9234
|
}, "getProperties");
|
|
9235
|
-
var
|
|
9235
|
+
var sa = { detect({ env: e }) {
|
|
9236
9236
|
return !!e.TEAMCITY_VERSION;
|
|
9237
9237
|
}, configuration({ env: e, cwd: t }) {
|
|
9238
9238
|
return { name: "TeamCity", service: "teamcity", commit: e.BUILD_VCS_NUMBER, build: e.BUILD_NUMBER, slug: e.TEAMCITY_BUILDCONF_NAME, ...ia({ env: e, cwd: t }) };
|
|
9239
|
-
} },
|
|
9239
|
+
} }, oa = { detect({ env: e }) {
|
|
9240
9240
|
return !!e.TRAVIS;
|
|
9241
9241
|
}, configuration({ env: e }) {
|
|
9242
9242
|
const t = e.TRAVIS_PULL_REQUEST === "false" ? void 0 : e.TRAVIS_PULL_REQUEST, r = !!t;
|
|
@@ -9266,10 +9266,10 @@ var oa = { detect({ env: e }) {
|
|
|
9266
9266
|
const t = e.JB_SPACE_PROJECT_KEY, r = e.JB_SPACE_GIT_REPOSITORY_NAME;
|
|
9267
9267
|
return { name: "JetBrains Space", service: "jetbrainsSpace", commit: e.JB_SPACE_GIT_REVISION, build: e.JB_SPACE_EXECUTION_NUMBER, branch: tt(e.JB_SPACE_GIT_BRANCH), slug: t && r ? `${t.toLowerCase()}/${r}` : void 0 };
|
|
9268
9268
|
} };
|
|
9269
|
-
const rr = { appveyor:
|
|
9269
|
+
const rr = { appveyor: As, azurePipelines: bs, bamboo: vs, bitbucket: Cs, bitrise: Us, buddy: Bs, buildkite: Oo, circleci: Do, cirrus: Mo, cloudflarePages: xo, codebuild: Go, codefresh: $o, codeship: ko, drone: Ho, github: Ko, gitlab: Vo, jenkins: Wo, netlify: Yo, puppet: Jo, sail: zo, screwdriver: Qo, scrutinizer: Xo, semaphore: Zo, shippable: ea, teamcity: sa, travis: oa, vela: aa, vercel: ca, wercker: ua, woodpecker: la, jetbrainsSpace: fa };
|
|
9270
9270
|
var nr = a(({ env: e = process.env, cwd: t = process.cwd() } = {}) => {
|
|
9271
9271
|
for (const r of Object.keys(rr)) if (rr[r].detect({ env: e, cwd: t })) return { isCi: true, ...rr[r].configuration({ env: e, cwd: t }) };
|
|
9272
|
-
return { isCi: !!e.CI, ...
|
|
9272
|
+
return { isCi: !!e.CI, ...jo.configuration({ env: e, cwd: t }) };
|
|
9273
9273
|
}, "envCiModule");
|
|
9274
9274
|
const ha = typeof nr == "function" ? nr : nr.default;
|
|
9275
9275
|
function da() {
|
|
@@ -9304,30 +9304,30 @@ function Ea() {
|
|
|
9304
9304
|
a(Ea, "getMachineInfo");
|
|
9305
9305
|
const ga = new Error("request for lock canceled");
|
|
9306
9306
|
var _a = a(function(e, t, r, n) {
|
|
9307
|
-
function i(
|
|
9308
|
-
return
|
|
9309
|
-
c(
|
|
9307
|
+
function i(s) {
|
|
9308
|
+
return s instanceof r ? s : new r(function(c) {
|
|
9309
|
+
c(s);
|
|
9310
9310
|
});
|
|
9311
9311
|
}
|
|
9312
|
-
return a(i, "adopt"), new (r || (r = Promise))(function(
|
|
9312
|
+
return a(i, "adopt"), new (r || (r = Promise))(function(s, c) {
|
|
9313
9313
|
function l(h) {
|
|
9314
9314
|
try {
|
|
9315
9315
|
E(n.next(h));
|
|
9316
|
-
} catch (
|
|
9317
|
-
c(
|
|
9316
|
+
} catch (_) {
|
|
9317
|
+
c(_);
|
|
9318
9318
|
}
|
|
9319
9319
|
}
|
|
9320
9320
|
a(l, "fulfilled");
|
|
9321
9321
|
function p(h) {
|
|
9322
9322
|
try {
|
|
9323
9323
|
E(n.throw(h));
|
|
9324
|
-
} catch (
|
|
9325
|
-
c(
|
|
9324
|
+
} catch (_) {
|
|
9325
|
+
c(_);
|
|
9326
9326
|
}
|
|
9327
9327
|
}
|
|
9328
9328
|
a(p, "rejected");
|
|
9329
9329
|
function E(h) {
|
|
9330
|
-
h.done ?
|
|
9330
|
+
h.done ? s(h.value) : i(h.value).then(l, p);
|
|
9331
9331
|
}
|
|
9332
9332
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9333
9333
|
});
|
|
@@ -9342,15 +9342,15 @@ class Ia {
|
|
|
9342
9342
|
acquire(t = 1, r = 0) {
|
|
9343
9343
|
if (t <= 0) throw new Error(`invalid weight ${t}: must be positive`);
|
|
9344
9344
|
return new Promise((n, i) => {
|
|
9345
|
-
const
|
|
9346
|
-
c === -1 && t <= this._value ? this._dispatchItem(
|
|
9345
|
+
const s = { resolve: n, reject: i, weight: t, priority: r }, c = wn(this._queue, (l) => r <= l.priority);
|
|
9346
|
+
c === -1 && t <= this._value ? this._dispatchItem(s) : this._queue.splice(c + 1, 0, s);
|
|
9347
9347
|
});
|
|
9348
9348
|
}
|
|
9349
9349
|
runExclusive(t) {
|
|
9350
9350
|
return _a(this, arguments, void 0, function* (r, n = 1, i = 0) {
|
|
9351
|
-
const [
|
|
9351
|
+
const [s, c] = yield this.acquire(n, i);
|
|
9352
9352
|
try {
|
|
9353
|
-
return yield r(
|
|
9353
|
+
return yield r(s);
|
|
9354
9354
|
} finally {
|
|
9355
9355
|
c();
|
|
9356
9356
|
}
|
|
@@ -9401,8 +9401,8 @@ class Ia {
|
|
|
9401
9401
|
for (let r = this._value; r > 0; r--) {
|
|
9402
9402
|
const n = this._weightedWaiters[r - 1];
|
|
9403
9403
|
if (!n) continue;
|
|
9404
|
-
const i = n.findIndex((
|
|
9405
|
-
(i === -1 ? n : n.splice(0, i)).forEach(((
|
|
9404
|
+
const i = n.findIndex((s) => s.priority <= t);
|
|
9405
|
+
(i === -1 ? n : n.splice(0, i)).forEach(((s) => s.resolve()));
|
|
9406
9406
|
}
|
|
9407
9407
|
}
|
|
9408
9408
|
}
|
|
@@ -9411,40 +9411,40 @@ class Ia {
|
|
|
9411
9411
|
}
|
|
9412
9412
|
}
|
|
9413
9413
|
function Sa(e, t) {
|
|
9414
|
-
const r =
|
|
9414
|
+
const r = wn(e, (n) => t.priority <= n.priority);
|
|
9415
9415
|
e.splice(r + 1, 0, t);
|
|
9416
9416
|
}
|
|
9417
9417
|
a(Sa, "insertSorted");
|
|
9418
|
-
function
|
|
9418
|
+
function wn(e, t) {
|
|
9419
9419
|
for (let r = e.length - 1; r >= 0; r--) if (t(e[r])) return r;
|
|
9420
9420
|
return -1;
|
|
9421
9421
|
}
|
|
9422
|
-
a(
|
|
9422
|
+
a(wn, "findIndexFromEnd");
|
|
9423
9423
|
var Ra = a(function(e, t, r, n) {
|
|
9424
|
-
function i(
|
|
9425
|
-
return
|
|
9426
|
-
c(
|
|
9424
|
+
function i(s) {
|
|
9425
|
+
return s instanceof r ? s : new r(function(c) {
|
|
9426
|
+
c(s);
|
|
9427
9427
|
});
|
|
9428
9428
|
}
|
|
9429
|
-
return a(i, "adopt"), new (r || (r = Promise))(function(
|
|
9429
|
+
return a(i, "adopt"), new (r || (r = Promise))(function(s, c) {
|
|
9430
9430
|
function l(h) {
|
|
9431
9431
|
try {
|
|
9432
9432
|
E(n.next(h));
|
|
9433
|
-
} catch (
|
|
9434
|
-
c(
|
|
9433
|
+
} catch (_) {
|
|
9434
|
+
c(_);
|
|
9435
9435
|
}
|
|
9436
9436
|
}
|
|
9437
9437
|
a(l, "fulfilled");
|
|
9438
9438
|
function p(h) {
|
|
9439
9439
|
try {
|
|
9440
9440
|
E(n.throw(h));
|
|
9441
|
-
} catch (
|
|
9442
|
-
c(
|
|
9441
|
+
} catch (_) {
|
|
9442
|
+
c(_);
|
|
9443
9443
|
}
|
|
9444
9444
|
}
|
|
9445
9445
|
a(p, "rejected");
|
|
9446
9446
|
function E(h) {
|
|
9447
|
-
h.done ?
|
|
9447
|
+
h.done ? s(h.value) : i(h.value).then(l, p);
|
|
9448
9448
|
}
|
|
9449
9449
|
a(E, "step"), E((n = n.apply(e, t || [])).next());
|
|
9450
9450
|
});
|
|
@@ -9478,28 +9478,28 @@ class Ta {
|
|
|
9478
9478
|
return this._semaphore.cancel();
|
|
9479
9479
|
}
|
|
9480
9480
|
}
|
|
9481
|
-
function
|
|
9481
|
+
function An(e, t) {
|
|
9482
9482
|
const r = e.length;
|
|
9483
9483
|
let n = 0, i = 0;
|
|
9484
|
-
const
|
|
9485
|
-
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await
|
|
9484
|
+
const s = new Ta();
|
|
9485
|
+
return t({ completed: n, errors: i, total: r }), e.map((c) => c.then(async (l) => (await s.runExclusive(() => {
|
|
9486
9486
|
n++, t({ completed: n, errors: i, total: r });
|
|
9487
9487
|
}), l)).catch(async (l) => {
|
|
9488
|
-
throw await
|
|
9488
|
+
throw await s.runExclusive(() => {
|
|
9489
9489
|
n++, i++, t({ completed: n, errors: i, total: r });
|
|
9490
9490
|
}), l;
|
|
9491
9491
|
}));
|
|
9492
9492
|
}
|
|
9493
|
-
a(
|
|
9493
|
+
a(An, "trackPromiseProgress");
|
|
9494
9494
|
function ya({ result: e, sensitiveValues: t }) {
|
|
9495
|
-
return e.steps.map((r) =>
|
|
9495
|
+
return e.steps.map((r) => bn({ sensitiveValues: t, step: r }));
|
|
9496
9496
|
}
|
|
9497
9497
|
a(ya, "extractSteps");
|
|
9498
|
-
function
|
|
9499
|
-
const r = a((n) => n && e?.length ?
|
|
9500
|
-
return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) =>
|
|
9498
|
+
function bn({ sensitiveValues: e, step: t }) {
|
|
9499
|
+
const r = a((n) => n && e?.length ? oe({ sensitiveValues: e, str: n }) : n, "scrub");
|
|
9500
|
+
return { category: t.category, duration: t.duration, error: t.error ? { message: r(t.error.message) || "Unknown error", stack: r(t.error.stack) } : void 0, location: t.location ? { column: t.location.column, file: t.location.file, line: t.location.line } : void 0, startedAt: new Date(t.startTime), steps: t.steps && t.steps.length > 0 ? t.steps.map((n) => bn({ sensitiveValues: e, step: n })) : void 0, title: r(t.title) ?? t.title };
|
|
9501
9501
|
}
|
|
9502
|
-
a(
|
|
9502
|
+
a(bn, "extractStep");
|
|
9503
9503
|
async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
9504
9504
|
await Wn(async () => {
|
|
9505
9505
|
const n = await fetch(r, { body: e, method: "PUT" });
|
|
@@ -9507,7 +9507,7 @@ async function wa({ fileData: e, maxRetries: t = 3, uploadUrl: r }) {
|
|
|
9507
9507
|
}, { minTimeout: 2e3, randomize: true, retries: t });
|
|
9508
9508
|
}
|
|
9509
9509
|
a(wa, "uploadWithRetry");
|
|
9510
|
-
const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter",
|
|
9510
|
+
const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", vn = 120 * 1e3, Cn = 3e4, ba = process.env.STABLY_API_URL ?? "https://api.stably.ai", va = 50, Ca = a(({ gitInfo: e, suite: t }) => {
|
|
9511
9511
|
const r = [...new Set(t.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
|
|
9512
9512
|
if (r.length > 0) {
|
|
9513
9513
|
const n = r.join(", ");
|
|
@@ -9517,8 +9517,8 @@ const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120
|
|
|
9517
9517
|
try {
|
|
9518
9518
|
const { username: n } = Et.userInfo();
|
|
9519
9519
|
if (n) {
|
|
9520
|
-
const
|
|
9521
|
-
return `${n} - ${
|
|
9520
|
+
const s = (/* @__PURE__ */ new Date()).toLocaleString("en-US", { day: "numeric", hour: "numeric", hour12: false, minute: "2-digit", month: "short" });
|
|
9521
|
+
return `${n} - ${s}`;
|
|
9522
9522
|
}
|
|
9523
9523
|
} catch {
|
|
9524
9524
|
}
|
|
@@ -9527,7 +9527,7 @@ const Aa = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", bn = 120
|
|
|
9527
9527
|
if (!e || e.length === 0) return;
|
|
9528
9528
|
const r = new Set(t.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = e.filter((i) => r.has(i.projectName));
|
|
9529
9529
|
return n.length > 0 ? n : void 0;
|
|
9530
|
-
}, "filterNotificationConfigsByRunningProjects"), Ba = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"),
|
|
9530
|
+
}, "filterNotificationConfigsByRunningProjects"), Ba = a((e) => e ? { configFile: e.configFile, forbidOnly: e.forbidOnly, fullyParallel: e.fullyParallel, globalSetup: e.globalSetup, globalTeardown: e.globalTeardown, globalTimeout: e.globalTimeout, grep: e.grep?.toString(), grepInvert: e.grepInvert?.toString(), maxFailures: e.maxFailures, metadata: e.metadata, preserveOutput: e.preserveOutput, quiet: e.quiet, reporter: e.reporter, reportSlowTests: e.reportSlowTests, rootDir: e.rootDir, shard: e.shard, updateSnapshots: e.updateSnapshots, version: e.version, webServer: e.webServer, workers: e.workers } : void 0, "extractConfigInfo"), ir = a(({ absolutePath: e, rootDir: t }) => {
|
|
9531
9531
|
if (t && e.startsWith(t)) {
|
|
9532
9532
|
const r = e.slice(t.length);
|
|
9533
9533
|
return r.startsWith("/") ? r.slice(1) : r;
|
|
@@ -9556,6 +9556,8 @@ class Un {
|
|
|
9556
9556
|
sensitiveValues;
|
|
9557
9557
|
filteredNotificationConfigs;
|
|
9558
9558
|
testIdMap = /* @__PURE__ */ new Map();
|
|
9559
|
+
completedTestIds = /* @__PURE__ */ new Set();
|
|
9560
|
+
suite;
|
|
9559
9561
|
pendingQueuedSpecs;
|
|
9560
9562
|
attachmentFiles = /* @__PURE__ */ new Map();
|
|
9561
9563
|
pendingUploadUrlRequests = /* @__PURE__ */ new Map();
|
|
@@ -9564,35 +9566,35 @@ class Un {
|
|
|
9564
9566
|
if (!r) throw new Error("STABLY_API_KEY is required. Provide it via options or environment variable.");
|
|
9565
9567
|
if (!n) throw new Error("STABLY_PROJECT_ID is required. Provide it via options or environment variable.");
|
|
9566
9568
|
if (this.apiKey = r, this.projectId = n, this.notificationConfigs = t?.notificationConfigs, this.skipSuiteReporting = process.env.STABLY_INTERNAL_DISABLE_REPORTING === "1", t?.sensitiveValues?.length) {
|
|
9567
|
-
const i =
|
|
9568
|
-
this.sensitiveValues = [...i].sort((
|
|
9569
|
+
const i = qr(t.sensitiveValues);
|
|
9570
|
+
this.sensitiveValues = [...i].sort((s, c) => c.length - s.length);
|
|
9569
9571
|
}
|
|
9570
|
-
this.wsClient = new
|
|
9572
|
+
this.wsClient = new ws({ apiKey: r, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: a((i) => this.handleWebSocketError(i), "onError"), onMessage: a((i) => this.handleWebSocketMessage(i), "onMessage"), projectId: n, reconnectDelay: 2e3, url: Aa });
|
|
9571
9573
|
}
|
|
9572
9574
|
onBegin(t, r) {
|
|
9573
|
-
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.skipSuiteReporting)) return;
|
|
9575
|
+
if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = t, this.testSuiteRunId = this.getSuiteRunId(t), this.rootDir = t.rootDir, this.suite = r, this.skipSuiteReporting)) return;
|
|
9574
9576
|
this.suiteData = this.extractSuiteInfo(t, r);
|
|
9575
9577
|
const i = Ua({ notificationConfigs: this.notificationConfigs, suite: r });
|
|
9576
9578
|
this.filteredNotificationConfigs = i;
|
|
9577
|
-
const
|
|
9579
|
+
const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
|
|
9578
9580
|
try {
|
|
9579
|
-
const E = require$$7.fileURLToPath(new URL("./create-suite.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-
|
|
9580
|
-
if (
|
|
9581
|
-
const v =
|
|
9581
|
+
const E = require$$7.fileURLToPath(new URL("./create-suite.mjs", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-CFruORhJ.cjs', document.baseURI).href)))), h = JSON.stringify({ apiBaseUrl: ba, apiKey: this.apiKey, body: s, projectId: this.projectId, timeoutMs: Cn }), _ = require$$0$2.spawnSync(process.execPath, [E], { encoding: "utf-8", input: h, stdio: ["pipe", "pipe", "pipe"], timeout: Cn + 5e3 });
|
|
9582
|
+
if (_.status === 2 && (console.error(ie.bold(ie.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), _.status !== 0) {
|
|
9583
|
+
const v = _.stderr?.trim() || _.error?.message || "Unknown error";
|
|
9582
9584
|
throw new Error(v);
|
|
9583
9585
|
}
|
|
9584
|
-
this.createdSuiteRun = JSON.parse(
|
|
9586
|
+
this.createdSuiteRun = JSON.parse(_.stdout.trim()), console.log(ie.cyan(`\u{1F4CA} View live results: ${ie.bold(ie.underline(this.createdSuiteRun.url))}
|
|
9585
9587
|
`));
|
|
9586
9588
|
} catch (E) {
|
|
9587
9589
|
const h = E instanceof Error ? E.message : String(E);
|
|
9588
|
-
console.warn(ie.yellow(`[StablyAI reporter] Could not create suite before tests started: ${h}. Results will still be reported, but the results URL won't be available until tests complete.`)), this.pendingOperations.push(this.wsClient.sendEvent({ payload:
|
|
9590
|
+
console.warn(ie.yellow(`[StablyAI reporter] Could not create suite before tests started: ${h}. Results will still be reported, but the results URL won't be available until tests complete.`)), this.pendingOperations.push(this.wsClient.sendEvent({ payload: s, type: "suite_start" }));
|
|
9589
9591
|
}
|
|
9590
9592
|
const c = r.allTests(), l = /* @__PURE__ */ new Map();
|
|
9591
9593
|
for (const E of c) {
|
|
9592
9594
|
const h = Ye();
|
|
9593
9595
|
this.testIdMap.set(E.id, h);
|
|
9594
|
-
const
|
|
9595
|
-
|
|
9596
|
+
const _ = E.parent.project(), v = ir({ absolutePath: E.location.file, rootDir: this.rootDir }), C = { annotations: E.annotations.length > 0 ? E.annotations.map((M) => ({ description: M.description, type: M.type })) : void 0, attemptNumber: 1, browserName: _?.use?.defaultBrowserType, expectedStatus: E.expectedStatus === "skipped" ? "skipped" : "passed", fullTitle: this.scrubSensitiveString(E.titlePath().join(" \u203A ")) ?? "", location: `${v}:${E.location.line}:${E.location.column}`, maxRetries: E.retries, projectName: _?.name, tags: E.tags.length > 0 ? E.tags : void 0, testIdentifier: E.id, title: this.scrubSensitiveString(E.title) ?? E.title }, O = l.get(v);
|
|
9597
|
+
O ? O.push(C) : l.set(v, [C]);
|
|
9596
9598
|
}
|
|
9597
9599
|
const p = Array.from(l.entries()).map(([E, h]) => ({ filePath: E, tests: h }));
|
|
9598
9600
|
this.createdSuiteRun ? this.pendingOperations.push(this.wsClient.sendEvent({ payload: { specs: p, suiteId: this.testSuiteRunId }, type: "tests_queued" })) : this.pendingQueuedSpecs = p;
|
|
@@ -9607,10 +9609,11 @@ class Un {
|
|
|
9607
9609
|
}
|
|
9608
9610
|
onTestEnd(t, r) {
|
|
9609
9611
|
if (this.isListMode || this.skipSuiteReporting) return;
|
|
9612
|
+
this.completedTestIds.add(t.id);
|
|
9610
9613
|
const n = this.extractTestCaseInfo(t, r);
|
|
9611
9614
|
this.testCases.push(n), this.testStepsMap.set(n.id, r);
|
|
9612
|
-
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }),
|
|
9613
|
-
const l = await this.extractAttachmentMetadata({ attachments:
|
|
9615
|
+
const i = ya({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: t.location.file }], c = (async () => {
|
|
9616
|
+
const l = await this.extractAttachmentMetadata({ attachments: s, attemptNumber: n.attemptNumber, testId: n.id });
|
|
9614
9617
|
let p, E;
|
|
9615
9618
|
l.length > 0 && (p = `${n.id}-${n.attemptNumber}`, E = new Promise((h) => {
|
|
9616
9619
|
this.pendingUploadUrlRequests.set(p, h);
|
|
@@ -9619,8 +9622,8 @@ class Un {
|
|
|
9619
9622
|
await this.wsClient.sendEvent({ payload: { ...n, attachments: l, steps: i }, type: "test_end" });
|
|
9620
9623
|
} catch (h) {
|
|
9621
9624
|
if (p && E) {
|
|
9622
|
-
const
|
|
9623
|
-
|
|
9625
|
+
const _ = this.pendingUploadUrlRequests.get(p);
|
|
9626
|
+
_ && (_(), this.pendingUploadUrlRequests.delete(p));
|
|
9624
9627
|
}
|
|
9625
9628
|
throw h;
|
|
9626
9629
|
}
|
|
@@ -9633,27 +9636,37 @@ class Un {
|
|
|
9633
9636
|
this.wsClient.close();
|
|
9634
9637
|
return;
|
|
9635
9638
|
}
|
|
9639
|
+
if (this.suite) {
|
|
9640
|
+
const h = /* @__PURE__ */ new Date();
|
|
9641
|
+
for (const _ of this.suite.allTests()) {
|
|
9642
|
+
if (this.completedTestIds.has(_.id)) continue;
|
|
9643
|
+
const v = this.testIdMap.get(_.id);
|
|
9644
|
+
if (!v) continue;
|
|
9645
|
+
const C = _.parent.project(), O = ir({ absolutePath: _.location.file, rootDir: this.rootDir });
|
|
9646
|
+
this.pendingOperations.push(this.wsClient.sendEvent({ payload: { annotations: _.annotations.length > 0 ? _.annotations : void 0, attemptNumber: 1, browserName: C?.use?.defaultBrowserType, duration: 0, expectedStatus: _.expectedStatus, fullTitle: this.scrubSensitiveString(_.titlePath().join(" \u203A ")) ?? "", id: v, location: `${O}:${_.location.line}:${_.location.column}`, maxRetries: _.retries, outcome: "skipped", projectName: C?.name, retryCount: 0, startedAt: h, status: "skipped", suiteId: this.testSuiteRunId, tags: _.tags.length > 0 ? _.tags : void 0, testIdentifier: _.id, title: this.scrubSensitiveString(_.title) ?? _.title }, type: "test_end" }));
|
|
9647
|
+
}
|
|
9648
|
+
}
|
|
9636
9649
|
this.pendingOperations.push(this.wsClient.sendEvent({ payload: { duration: t.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, totalShards: this.config?.shard?.total } : void 0, status: t.status === "timedout" ? "timedOut" : t.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
|
|
9637
9650
|
const r = Y();
|
|
9638
9651
|
r.start("Waiting for tasks to finish...");
|
|
9639
|
-
const n = Promise.allSettled(
|
|
9640
|
-
r.message(`${h}/${v} tasks finished${
|
|
9641
|
-
})), i = new Promise((h,
|
|
9652
|
+
const n = Promise.allSettled(An(this.pendingOperations, ({ completed: h, errors: _, total: v }) => {
|
|
9653
|
+
r.message(`${h}/${v} tasks finished${_ > 0 ? `, ${_} errors` : ""}`);
|
|
9654
|
+
})), i = new Promise((h, _) => {
|
|
9642
9655
|
setTimeout(() => {
|
|
9643
|
-
|
|
9644
|
-
},
|
|
9656
|
+
_(new Error(`Tasks timeout: Some operations did not complete within ${vn / 1e3}s`));
|
|
9657
|
+
}, vn);
|
|
9645
9658
|
});
|
|
9646
9659
|
try {
|
|
9647
9660
|
await Promise.race([n, i]);
|
|
9648
9661
|
} catch (h) {
|
|
9649
|
-
const
|
|
9650
|
-
console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${
|
|
9662
|
+
const _ = h instanceof Error ? h.message : String(h);
|
|
9663
|
+
console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${_}`);
|
|
9651
9664
|
}
|
|
9652
9665
|
this.wsClient.flushBuffer(), r.stop("All tasks finished");
|
|
9653
|
-
const
|
|
9654
|
-
|
|
9655
|
-
|
|
9656
|
-
})),
|
|
9666
|
+
const s = Y();
|
|
9667
|
+
s.start("Waiting for file uploads to finish..."), await Promise.allSettled(An(this.pendingUploads, ({ completed: h, errors: _, total: v }) => {
|
|
9668
|
+
s.message(`${h}/${v} uploads finished${_ > 0 ? `, ${_} errors` : ""}`);
|
|
9669
|
+
})), s.stop("All file uploads finished"), this.wsClient.close();
|
|
9657
9670
|
try {
|
|
9658
9671
|
const h = Ke.join(this.rootDir, ".stably");
|
|
9659
9672
|
qe.mkdirSync(h, { recursive: true }), qe.writeFileSync(Ke.join(h, "last-run.json"), JSON.stringify({ runId: this.testSuiteRunId, timestamp: Date.now() }));
|
|
@@ -9671,29 +9684,29 @@ class Un {
|
|
|
9671
9684
|
\u{1F4CA} View results: ${ie.bold(ie.underline(this.createdSuiteRun.url))}` : ""}${E}`));
|
|
9672
9685
|
}
|
|
9673
9686
|
scrubSensitiveString(t) {
|
|
9674
|
-
return !t || !this.sensitiveValues?.length ? t :
|
|
9687
|
+
return !t || !this.sensitiveValues?.length ? t : oe({ sensitiveValues: this.sensitiveValues, str: t });
|
|
9675
9688
|
}
|
|
9676
9689
|
extractSuiteInfo(t, r) {
|
|
9677
|
-
const n = da(), i = Ea(),
|
|
9678
|
-
return { id: Ye(), projectSettings: Ba(t), startedAt:
|
|
9690
|
+
const n = da(), i = Ea(), s = /* @__PURE__ */ new Date();
|
|
9691
|
+
return { id: Ye(), projectSettings: Ba(t), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || Ca({ gitInfo: n, suite: r }), createdAt: s, git: { branch: n.branch, commit: { message: n.commit.message, sha: n.commit.sha }, pr: n.pr }, isCI: n.isCI, shards: t.shard?.total ?? 1, workers: t.workers, machineInfo: i, updatedAt: s };
|
|
9679
9692
|
}
|
|
9680
9693
|
extractTestCaseInfo(t, r) {
|
|
9681
|
-
const n =
|
|
9682
|
-
return l || this.testIdMap.set(t.id, p), { fullTitle: this.scrubSensitiveString(t.titlePath().join(" \u203A ")) ?? "", id: p, location: `${n}:${t.location.line}:${t.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: t.id, title: this.scrubSensitiveString(t.title) ?? t.title, browserName: c, duration: r.duration, expectedStatus: t.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: t.outcome(), projectName:
|
|
9694
|
+
const n = ir({ absolutePath: t.location.file, rootDir: this.rootDir }), i = t.parent.project(), s = i?.name, c = i?.use?.defaultBrowserType, l = this.testIdMap.get(t.id), p = l ?? Ye();
|
|
9695
|
+
return l || this.testIdMap.set(t.id, p), { fullTitle: this.scrubSensitiveString(t.titlePath().join(" \u203A ")) ?? "", id: p, location: `${n}:${t.location.line}:${t.location.column}`, suiteId: this.testSuiteRunId, testIdentifier: t.id, title: this.scrubSensitiveString(t.title) ?? t.title, browserName: c, duration: r.duration, expectedStatus: t.expectedStatus, finishedAt: r.startTime && r.duration ? new Date(r.startTime.getTime() + r.duration) : void 0, outcome: t.outcome(), projectName: s, startedAt: new Date(r.startTime), status: r.status, attemptNumber: r.retry + 1, maxRetries: t.retries, retryCount: r.retry, errorMessage: this.scrubSensitiveString(r.error?.message), errorStack: this.scrubSensitiveString(r.error?.stack), errorType: r.error?.value, annotations: t.annotations.length > 0 ? t.annotations : void 0, tags: t.tags.length > 0 ? t.tags : void 0 };
|
|
9683
9696
|
}
|
|
9684
9697
|
async extractAttachmentMetadata({ attachments: t, attemptNumber: r, testId: n }) {
|
|
9685
|
-
return (await Promise.all(t.map((
|
|
9698
|
+
return (await Promise.all(t.map((s) => this.processAttachment({ attachment: s, attemptNumber: r, testId: n })))).filter((s) => s !== void 0);
|
|
9686
9699
|
}
|
|
9687
9700
|
async processAttachment({ attachment: t, attemptNumber: r, testId: n }) {
|
|
9688
9701
|
let i;
|
|
9689
9702
|
try {
|
|
9690
9703
|
i = t.name === "trace" && t.path && this.sensitiveValues && this.sensitiveValues.length > 0 ? qe.openSync(t.path, "r") : void 0;
|
|
9691
|
-
const
|
|
9692
|
-
if (!
|
|
9704
|
+
const s = await this.getAttachmentFileData({ attachment: t, traceFd: i });
|
|
9705
|
+
if (!s) return;
|
|
9693
9706
|
const c = Ye(), l = `${n}-${r}-${c}`;
|
|
9694
|
-
return this.attachmentFiles.set(l,
|
|
9695
|
-
} catch (
|
|
9696
|
-
const c =
|
|
9707
|
+
return this.attachmentFiles.set(l, s), { artifactId: c, attemptNumber: r, contentType: t.contentType, name: t.name, sizeBytes: s.length, testId: n };
|
|
9708
|
+
} catch (s) {
|
|
9709
|
+
const c = s instanceof Error ? s.message : String(s);
|
|
9697
9710
|
console.error(`[StablyAI reporter] Failed to read attachment ${t.name}: ${c}`);
|
|
9698
9711
|
return;
|
|
9699
9712
|
} finally {
|
|
@@ -9712,10 +9725,10 @@ class Un {
|
|
|
9712
9725
|
return t.body ? Buffer.from(t.body) : t.path ? qe.readFileSync(t.path) : void 0;
|
|
9713
9726
|
}
|
|
9714
9727
|
async scrubTraceFromFile({ attachmentPath: t, sensitiveValues: r, traceFd: n }) {
|
|
9715
|
-
return n !== void 0 ?
|
|
9728
|
+
return n !== void 0 ? Ss({ sensitiveValues: r, traceFd: n, tracePath: t }) : Is({ sensitiveValues: r, tracePath: t });
|
|
9716
9729
|
}
|
|
9717
9730
|
handleWebSocketError(t) {
|
|
9718
|
-
t.code ===
|
|
9731
|
+
t.code === Jr.AUTHENTICATION_FAILED && (console.error(ie.bold(ie.red("[StablyAI reporter] Could not authenticate with the server. Either the API Key or Project ID is invalid. These can be provided via stablyReporter({ apiKey, projectId }) in playwright.config.ts or environment variables (STABLY_API_KEY, STABLY_PROJECT_ID). You can find your API key and Project ID at https://app.stably.ai/settings?tab=api-key"))), process.exit(1)), console.error("[StablyAI reporter] Could not connect to the server. Please check your internet connection and try again."), process.exit(1);
|
|
9719
9732
|
}
|
|
9720
9733
|
handleWebSocketMessage(t) {
|
|
9721
9734
|
if (t.type === "suite_created") this.createdSuiteRun = { id: t.id, name: t.name, url: t.url }, this.pendingQueuedSpecs && (this.pendingOperations.push(this.wsClient.sendEvent({ payload: { specs: this.pendingQueuedSpecs, suiteId: this.testSuiteRunId }, type: "tests_queued" })), this.pendingQueuedSpecs = void 0);
|
|
@@ -9728,13 +9741,13 @@ class Un {
|
|
|
9728
9741
|
}
|
|
9729
9742
|
}
|
|
9730
9743
|
async uploadAttachments({ attemptNumber: t, testId: r, uploadUrls: n }) {
|
|
9731
|
-
const i = n.map(async ({ artifactId:
|
|
9732
|
-
const p = `${r}-${t}-${
|
|
9744
|
+
const i = n.map(async ({ artifactId: s, name: c, uploadUrl: l }) => {
|
|
9745
|
+
const p = `${r}-${t}-${s}`, E = this.attachmentFiles.get(p);
|
|
9733
9746
|
if (E) try {
|
|
9734
9747
|
await wa({ fileData: E, maxRetries: 3, uploadUrl: l }), this.attachmentFiles.delete(p);
|
|
9735
9748
|
} catch (h) {
|
|
9736
|
-
const
|
|
9737
|
-
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${
|
|
9749
|
+
const _ = h instanceof Error ? h.message : String(h);
|
|
9750
|
+
console.error(`[StablyAI reporter] Failed to upload ${c} after retries: ${_}`);
|
|
9738
9751
|
}
|
|
9739
9752
|
});
|
|
9740
9753
|
await Promise.allSettled(i);
|
|
@@ -9747,4 +9760,4 @@ a(Pa, "stablyReporter");
|
|
|
9747
9760
|
|
|
9748
9761
|
exports.Pa = Pa;
|
|
9749
9762
|
exports.Un = Un;
|
|
9750
|
-
//# sourceMappingURL=index-
|
|
9763
|
+
//# sourceMappingURL=index-CFruORhJ.cjs.map
|