@stablyai/playwright-test 2.1.9 → 2.1.10

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.
@@ -17,7 +17,7 @@ var g = require('node:readline');
17
17
  require('node:stream');
18
18
  var ge = require('os');
19
19
  var require$$7 = require('url');
20
- var Hn = require('util');
20
+ var kn = 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');
@@ -6731,31 +6731,31 @@ function requirePRetry () {
6731
6731
  }
6732
6732
 
6733
6733
  var pRetryExports = requirePRetry();
6734
- var Kn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
6734
+ var Wn = /*@__PURE__*/getDefaultExportFromCjs(pRetryExports);
6735
6735
 
6736
- var vn = Object.defineProperty;
6737
- var c = (t, e) => vn(t, "name", { value: e, configurable: true });
6736
+ var Un = Object.defineProperty;
6737
+ var c = (t, e) => Un(t, "name", { value: e, configurable: true });
6738
6738
  const re = BigInt(2 ** 32 - 1), dr = BigInt(32);
6739
- function qn(t, e = false) {
6739
+ function Yn(t, e = false) {
6740
6740
  return e ? { h: Number(t & re), l: Number(t >> dr & re) } : { h: Number(t >> dr & re) | 0, l: Number(t & re) | 0 };
6741
6741
  }
6742
- c(qn, "fromBig");
6743
- function Yn(t, e = false) {
6742
+ c(Yn, "fromBig");
6743
+ function Jn(t, e = false) {
6744
6744
  const r = t.length;
6745
6745
  let n = new Uint32Array(r), i = new Uint32Array(r);
6746
6746
  for (let s = 0; s < r; s++) {
6747
- const { h: a, l } = qn(t[s], e);
6747
+ const { h: a, l } = Yn(t[s], e);
6748
6748
  [n[s], i[s]] = [a, l];
6749
6749
  }
6750
6750
  return [n, i];
6751
6751
  }
6752
- c(Yn, "split");
6753
- const Jn = c((t, e, r) => t << r | e >>> 32 - r, "rotlSH"), Qn = c((t, e, r) => e << r | t >>> 32 - r, "rotlSL"), zn = c((t, e, r) => e << r - 32 | t >>> 64 - r, "rotlBH"), Xn = c((t, e, r) => t << r - 32 | e >>> 64 - r, "rotlBL");
6752
+ c(Jn, "split");
6753
+ const Qn = c((t, e, r) => t << r | e >>> 32 - r, "rotlSH"), zn = c((t, e, r) => e << r | t >>> 32 - r, "rotlSL"), Xn = c((t, e, r) => e << r - 32 | t >>> 64 - r, "rotlBH"), Zn = c((t, e, r) => t << r - 32 | e >>> 64 - r, "rotlBL");
6754
6754
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
6755
- function Zn(t) {
6755
+ function ti(t) {
6756
6756
  return t instanceof Uint8Array || ArrayBuffer.isView(t) && t.constructor.name === "Uint8Array";
6757
6757
  }
6758
- c(Zn, "isBytes");
6758
+ c(ti, "isBytes");
6759
6759
  function pr(t, e = "") {
6760
6760
  if (!Number.isSafeInteger(t) || t < 0) {
6761
6761
  const r = e && `"${e}" `;
@@ -6764,7 +6764,7 @@ function pr(t, e = "") {
6764
6764
  }
6765
6765
  c(pr, "anumber");
6766
6766
  function _e(t, e, r = "") {
6767
- const n = Zn(t), i = t?.length;
6767
+ const n = ti(t), i = t?.length;
6768
6768
  if (!n || e !== void 0) {
6769
6769
  const a = r && `"${r}" `, l = "", h = n ? `length=${i}` : `type=${typeof t}`;
6770
6770
  throw new Error(a + "expected Uint8Array" + l + ", got " + h);
@@ -6777,45 +6777,45 @@ function mr(t, e = true) {
6777
6777
  if (e && t.finished) throw new Error("Hash#digest() has already been called");
6778
6778
  }
6779
6779
  c(mr, "aexists");
6780
- function ti(t, e) {
6780
+ function ei(t, e) {
6781
6781
  _e(t, void 0, "digestInto() output");
6782
6782
  const r = e.outputLen;
6783
6783
  if (t.length < r) throw new Error('"digestInto() output" expected to be of length >=' + r);
6784
6784
  }
6785
- c(ti, "aoutput");
6786
- function ei(t) {
6785
+ c(ei, "aoutput");
6786
+ function ri(t) {
6787
6787
  return new Uint32Array(t.buffer, t.byteOffset, Math.floor(t.byteLength / 4));
6788
6788
  }
6789
- c(ei, "u32");
6789
+ c(ri, "u32");
6790
6790
  function gr(...t) {
6791
6791
  for (let e = 0; e < t.length; e++) t[e].fill(0);
6792
6792
  }
6793
6793
  c(gr, "clean");
6794
- const ri = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
6795
- function ni(t) {
6794
+ const ni = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
6795
+ function ii(t) {
6796
6796
  return t << 24 & 4278190080 | t << 8 & 16711680 | t >>> 8 & 65280 | t >>> 24 & 255;
6797
6797
  }
6798
- c(ni, "byteSwap");
6799
- function ii(t) {
6800
- for (let e = 0; e < t.length; e++) t[e] = ni(t[e]);
6798
+ c(ii, "byteSwap");
6799
+ function si(t) {
6800
+ for (let e = 0; e < t.length; e++) t[e] = ii(t[e]);
6801
6801
  return t;
6802
6802
  }
6803
- c(ii, "byteSwap32");
6804
- const Er = ri ? (t) => t : ii;
6805
- function si(t, e = {}) {
6803
+ c(si, "byteSwap32");
6804
+ const Er = ni ? (t) => t : si;
6805
+ function oi(t, e = {}) {
6806
6806
  const r = c((i, s) => t(s).update(i).digest(), "hashC"), n = t(void 0);
6807
6807
  return r.outputLen = n.outputLen, r.blockLen = n.blockLen, r.create = (i) => t(i), Object.assign(r, e), Object.freeze(r);
6808
6808
  }
6809
- c(si, "createHasher");
6810
- const oi = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ai = BigInt(0), Wt = BigInt(1), ci = BigInt(2), ui = BigInt(7), li = BigInt(256), fi = BigInt(113), _r = [], Ir = [], Sr = [];
6809
+ c(oi, "createHasher");
6810
+ const ai = c((t) => ({ oid: Uint8Array.from([6, 9, 96, 134, 72, 1, 101, 3, 4, 2, t]) }), "oidNist"), ci = BigInt(0), Wt = BigInt(1), ui = BigInt(2), li = BigInt(7), fi = BigInt(256), hi = BigInt(113), _r = [], Ir = [], Sr = [];
6811
6811
  for (let t = 0, e = Wt, r = 1, n = 0; t < 24; t++) {
6812
6812
  [r, n] = [n, (2 * r + 3 * n) % 5], _r.push(2 * (5 * n + r)), Ir.push((t + 1) * (t + 2) / 2 % 64);
6813
- let i = ai;
6814
- for (let s = 0; s < 7; s++) e = (e << Wt ^ (e >> ui) * fi) % li, e & ci && (i ^= Wt << (Wt << BigInt(s)) - Wt);
6813
+ let i = ci;
6814
+ for (let s = 0; s < 7; s++) e = (e << Wt ^ (e >> li) * hi) % fi, e & ui && (i ^= Wt << (Wt << BigInt(s)) - Wt);
6815
6815
  Sr.push(i);
6816
6816
  }
6817
- const Rr = Yn(Sr, true), hi = Rr[0], di = Rr[1], Tr = c((t, e, r) => r > 32 ? zn(t, e, r) : Jn(t, e, r), "rotlH"), Ar = c((t, e, r) => r > 32 ? Xn(t, e, r) : Qn(t, e, r), "rotlL");
6818
- function pi(t, e = 24) {
6817
+ const Rr = Jn(Sr, true), di = Rr[0], pi = Rr[1], Tr = c((t, e, r) => r > 32 ? Xn(t, e, r) : Qn(t, e, r), "rotlH"), Ar = c((t, e, r) => r > 32 ? Zn(t, e, r) : zn(t, e, r), "rotlL");
6818
+ function mi(t, e = 24) {
6819
6819
  const r = new Uint32Array(10);
6820
6820
  for (let n = 24 - e; n < 24; n++) {
6821
6821
  for (let a = 0; a < 10; a++) r[a] = t[a] ^ t[a + 10] ^ t[a + 20] ^ t[a + 30] ^ t[a + 40];
@@ -6832,11 +6832,11 @@ function pi(t, e = 24) {
6832
6832
  for (let l = 0; l < 10; l++) r[l] = t[a + l];
6833
6833
  for (let l = 0; l < 10; l++) t[a + l] ^= ~r[(l + 2) % 10] & r[(l + 4) % 10];
6834
6834
  }
6835
- t[0] ^= hi[n], t[1] ^= di[n];
6835
+ t[0] ^= di[n], t[1] ^= pi[n];
6836
6836
  }
6837
6837
  gr(r);
6838
6838
  }
6839
- c(pi, "keccakP");
6839
+ c(mi, "keccakP");
6840
6840
  class sr {
6841
6841
  static {
6842
6842
  c(this, "Keccak");
@@ -6854,13 +6854,13 @@ class sr {
6854
6854
  rounds;
6855
6855
  constructor(e, r, n, i = false, s = 24) {
6856
6856
  if (this.blockLen = e, this.suffix = r, this.outputLen = n, this.enableXOF = i, this.rounds = s, pr(n, "outputLen"), !(0 < e && e < 200)) throw new Error("only keccak-f1600 function is supported");
6857
- this.state = new Uint8Array(200), this.state32 = ei(this.state);
6857
+ this.state = new Uint8Array(200), this.state32 = ri(this.state);
6858
6858
  }
6859
6859
  clone() {
6860
6860
  return this._cloneInto();
6861
6861
  }
6862
6862
  keccak() {
6863
- Er(this.state32), pi(this.state32, this.rounds), Er(this.state32), this.posOut = 0, this.pos = 0;
6863
+ Er(this.state32), mi(this.state32, this.rounds), Er(this.state32), this.posOut = 0, this.pos = 0;
6864
6864
  }
6865
6865
  update(e) {
6866
6866
  mr(this), _e(e);
@@ -6896,7 +6896,7 @@ class sr {
6896
6896
  return pr(e), this.xofInto(new Uint8Array(e));
6897
6897
  }
6898
6898
  digestInto(e) {
6899
- if (ti(e, this), this.finished) throw new Error("digest() was already called");
6899
+ if (ei(e, this), this.finished) throw new Error("digest() was already called");
6900
6900
  return this.writeInto(e), this.destroy(), e;
6901
6901
  }
6902
6902
  digest() {
@@ -6910,8 +6910,8 @@ class sr {
6910
6910
  return e ||= new sr(r, n, i, a, s), e.state32.set(this.state32), e.pos = this.pos, e.posOut = this.posOut, e.finished = this.finished, e.rounds = s, e.suffix = n, e.outputLen = i, e.enableXOF = a, e.destroyed = this.destroyed, e;
6911
6911
  }
6912
6912
  }
6913
- const mi = c((t, e, r, n = {}) => si(() => new sr(e, t, r), n), "genKeccak"), gi = mi(6, 72, 64, oi(10));
6914
- var Ei = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ie = Math.ceil, ut = Math.floor, st = "[BigNumber Error] ", wr = st + "Number primitive has more than 15 significant digits: ", pt = 1e14, G = 14, Se = 9007199254740991, Re = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], vt = 1e7, tt = 1e9;
6913
+ const gi = c((t, e, r, n = {}) => oi(() => new sr(e, t, r), n), "genKeccak"), Ei = gi(6, 72, 64, ai(10));
6914
+ var _i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Ie = Math.ceil, ut = Math.floor, st = "[BigNumber Error] ", wr = st + "Number primitive has more than 15 significant digits: ", pt = 1e14, G = 14, Se = 9007199254740991, Re = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], vt = 1e7, tt = 1e9;
6915
6915
  function yr(t) {
6916
6916
  var e, r, n, i = w.prototype = { constructor: w, toString: null, valueOf: null }, s = new w(1), a = 20, l = 4, h = -7, d = 21, g = -1e7, A = 1e7, C = false, v = 1, M = 0, D = { prefix: "", groupSize: 3, secondaryGroupSize: 0, groupSeparator: ",", decimalSeparator: ".", fractionGroupSize: 0, fractionGroupSeparator: "\xA0", suffix: "" }, b = "0123456789abcdefghijklmnopqrstuvwxyz", P = true;
6917
6917
  function w(o, u) {
@@ -6930,7 +6930,7 @@ function yr(t) {
6930
6930
  }
6931
6931
  S = String(o);
6932
6932
  } else {
6933
- if (!Ei.test(S = String(o))) return n(R, S, p);
6933
+ if (!_i.test(S = String(o))) return n(R, S, p);
6934
6934
  R.s = S.charCodeAt(0) == 45 ? (S = S.slice(1), -1) : 1;
6935
6935
  }
6936
6936
  (I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (T = S.search(/e/i)) > 0 ? (I < 0 && (I = T), I += +S.slice(T + 1), S = S.substring(0, T)) : I < 0 && (I = S.length);
@@ -7411,49 +7411,49 @@ function At(t, e, r) {
7411
7411
  return t;
7412
7412
  }
7413
7413
  c(At, "toFixedPoint");
7414
- var _i = yr();
7415
- const Ii = 24, qt = 32, Si = c(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
7414
+ var Ii = yr();
7415
+ const Si = 24, qt = 32, Ri = c(() => typeof globalThis < "u" && globalThis.crypto && typeof globalThis.crypto.getRandomValues == "function" ? () => {
7416
7416
  const t = new Uint32Array(1);
7417
7417
  return globalThis.crypto.getRandomValues(t), t[0] / 4294967296;
7418
- } : Math.random, "createRandom"), Te = Si(), Ae = c((t = 4, e = Te) => {
7418
+ } : Math.random, "createRandom"), Te = Ri(), Ae = c((t = 4, e = Te) => {
7419
7419
  let r = "";
7420
7420
  for (; r.length < t; ) r = r + Math.floor(e() * 36).toString(36);
7421
7421
  return r;
7422
7422
  }, "createEntropy");
7423
- function Ri(t) {
7424
- let e = new _i(0);
7423
+ function Ti(t) {
7424
+ let e = new Ii(0);
7425
7425
  for (const r of t.values()) e = e.multipliedBy(256).plus(r);
7426
7426
  return e;
7427
7427
  }
7428
- c(Ri, "bufToBigInt");
7428
+ c(Ti, "bufToBigInt");
7429
7429
  const br = c((t = "") => {
7430
7430
  const e = new TextEncoder();
7431
- return Ri(gi(e.encode(t))).toString(36).slice(1);
7432
- }, "hash"), Cr = Array.from({ length: 26 }, (t, e) => String.fromCharCode(e + 97)), Ti = c((t) => Cr[Math.floor(t() * Cr.length)], "randomLetter"), Ai = c(({ globalObj: t = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: e = Te } = {}) => {
7431
+ return Ti(Ei(e.encode(t))).toString(36).slice(1);
7432
+ }, "hash"), Cr = Array.from({ length: 26 }, (t, e) => String.fromCharCode(e + 97)), Ai = c((t) => Cr[Math.floor(t() * Cr.length)], "randomLetter"), wi = c(({ globalObj: t = typeof global < "u" ? global : typeof window < "u" ? window : {}, random: e = Te } = {}) => {
7433
7433
  const r = Object.keys(t).toString(), n = r.length ? r + Ae(qt, e) : Ae(qt, e);
7434
7434
  return br(n).substring(0, qt);
7435
- }, "createFingerprint"), wi = c((t) => () => t++, "createCounter"), yi = 476782367, bi = c(({ random: t = Te, counter: e = wi(Math.floor(t() * yi)), length: r = Ii, fingerprint: n = Ai({ random: t }) } = {}) => {
7435
+ }, "createFingerprint"), yi = c((t) => () => t++, "createCounter"), bi = 476782367, Ci = c(({ random: t = Te, counter: e = yi(Math.floor(t() * bi)), length: r = Si, fingerprint: n = wi({ random: t }) } = {}) => {
7436
7436
  if (r > qt) throw new Error(`Length must be between 2 and ${qt}. Received: ${r}`);
7437
7437
  return c(function() {
7438
- const s = Ti(t), a = Date.now().toString(36), l = e().toString(36), h = Ae(r, t), d = `${a + h + l + n}`;
7438
+ const s = Ai(t), a = Date.now().toString(36), l = e().toString(36), h = Ae(r, t), d = `${a + h + l + n}`;
7439
7439
  return `${s + br(d).substring(1, r)}`;
7440
7440
  }, "cuid2");
7441
- }, "init"), Yt = Ci(bi);
7442
- function Ci(t) {
7441
+ }, "init"), Yt = vi(Ci);
7442
+ function vi(t) {
7443
7443
  let e;
7444
7444
  return () => (e || (e = t()), e());
7445
7445
  }
7446
- c(Ci, "lazy");
7447
- var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7446
+ c(vi, "lazy");
7447
+ var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7448
7448
  function vr(t) {
7449
7449
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7450
7450
  }
7451
7451
  c(vr, "getDefaultExportFromCjs");
7452
7452
  var xt = {}, Ur;
7453
- function Ui() {
7453
+ function Bi() {
7454
7454
  if (Ur) return xt;
7455
7455
  Ur = 1, Object.defineProperty(xt, "__esModule", { value: true }), xt.isBinaryFileSync = xt.isBinaryFile = void 0;
7456
- const t = Vt, e = Hn, r = (0, e.promisify)(t.stat), n = (0, e.promisify)(t.open), i = (0, e.promisify)(t.close), s = 512, a = 3;
7456
+ const t = Vt, e = kn, r = (0, e.promisify)(t.stat), n = (0, e.promisify)(t.open), i = (0, e.promisify)(t.close), s = 512, a = 3;
7457
7457
  class l {
7458
7458
  static {
7459
7459
  c(this, "Reader");
@@ -7583,14 +7583,14 @@ function Ui() {
7583
7583
  }
7584
7584
  return c(D, "isStatFile"), xt;
7585
7585
  }
7586
- c(Ui, "requireLib");
7587
- var Bi = Ui(), z = Uint8Array, at = Uint16Array, we = Int32Array, se = new z([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]), oe = new z([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]), ye = new z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Br = c(function(t, e) {
7586
+ c(Bi, "requireLib");
7587
+ var Pi = Bi(), z = Uint8Array, at = Uint16Array, we = Int32Array, se = new z([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]), oe = new z([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]), ye = new z([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Br = c(function(t, e) {
7588
7588
  for (var r = new at(31), n = 0; n < 31; ++n) r[n] = e += 1 << t[n - 1];
7589
7589
  for (var i = new we(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
7591
  }, "freb"), Pr = Br(se, 2), Or = Pr.b, be = Pr.r;
7592
7592
  Or[28] = 258, be[258] = 28;
7593
- for (var Lr = Br(oe, 0), Pi = Lr.b, Nr = Lr.r, Ce = new at(32768), W = 0; W < 32768; ++W) {
7593
+ for (var Lr = Br(oe, 0), Oi = Lr.b, Nr = Lr.r, Ce = new at(32768), W = 0; W < 32768; ++W) {
7594
7594
  var Ut = (W & 43690) >> 1 | (W & 21845) << 1;
7595
7595
  Ut = (Ut & 52428) >> 2 | (Ut & 13107) << 2, Ut = (Ut & 61680) >> 4 | (Ut & 3855) << 4, Ce[W] = ((Ut & 65280) >> 8 | (Ut & 255) << 8) >> 1;
7596
7596
  }
@@ -7610,7 +7610,7 @@ for (var W = 144; W < 256; ++W) Bt[W] = 9;
7610
7610
  for (var W = 256; W < 280; ++W) Bt[W] = 7;
7611
7611
  for (var W = 280; W < 288; ++W) Bt[W] = 8;
7612
7612
  for (var Jt = new z(32), W = 0; W < 32; ++W) Jt[W] = 5;
7613
- var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1), ve = c(function(t) {
7613
+ var Li = _t(Bt, 9, 0), Ni = _t(Bt, 9, 1), Mi = _t(Jt, 5, 0), Di = _t(Jt, 5, 1), ve = c(function(t) {
7614
7614
  for (var e = t[0], r = 1; r < t.length; ++r) t[r] > e && (e = t[r]);
7615
7615
  return e;
7616
7616
  }, "max"), mt = c(function(t, e, r) {
@@ -7623,11 +7623,11 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7623
7623
  return (t + 7) / 8 | 0;
7624
7624
  }, "shft"), Qt = c(function(t, e, r) {
7625
7625
  return (e == null || e < 0) && (e = 0), (r == null || r > t.length) && (r = t.length), new z(t.subarray(e, r));
7626
- }, "slc"), Di = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], nt = c(function(t, e, r) {
7627
- var n = new Error(e || Di[t]);
7626
+ }, "slc"), xi = ["unexpected EOF", "invalid block type", "invalid length/literal", "invalid distance", "stream finished", "no stream handler", , "no callback", "invalid UTF-8 data", "extra field too long", "date not in range 1980-2099", "filename too long", "stream finishing", "invalid zip data"], nt = c(function(t, e, r) {
7627
+ var n = new Error(e || xi[t]);
7628
7628
  if (n.code = t, Error.captureStackTrace && Error.captureStackTrace(n, nt), !r) throw n;
7629
7629
  return n;
7630
- }, "err"), xi = c(function(t, e, r, n) {
7630
+ }, "err"), Gi = c(function(t, e, r, n) {
7631
7631
  var i = t.length, s = n ? n.length : 0;
7632
7632
  if (!i || e.f && !e.l) return r || new z(0);
7633
7633
  var a = !r, l = a || e.i != 2, h = e.i;
@@ -7643,7 +7643,7 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7643
7643
  if (!v) {
7644
7644
  g = mt(t, A, 1);
7645
7645
  var w = mt(t, A + 1, 3);
7646
- if (A += 3, w) if (w == 1) v = Li, M = Mi, D = 9, b = 5;
7646
+ if (A += 3, w) if (w == 1) v = Ni, M = Di, D = 9, b = 5;
7647
7647
  else if (w == 2) {
7648
7648
  var H = mt(t, A, 31) + 257, j = mt(t, A + 10, 15) + 4, o = H + mt(t, A + 5, 31) + 1;
7649
7649
  A += 14;
@@ -7695,7 +7695,7 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7695
7695
  }
7696
7696
  var k = M[Ue(t, A) & B], Y = k >> 4;
7697
7697
  k || nt(3), A += k & 15;
7698
- var y = Pi[Y];
7698
+ var y = Oi[Y];
7699
7699
  if (Y > 3) {
7700
7700
  var N = oe[Y];
7701
7701
  y += Ue(t, A) & (1 << N) - 1, A += N;
@@ -7804,7 +7804,7 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7804
7804
  var V = F[o] & 31;
7805
7805
  wt(e, g, L[V]), g += f[V], V > 15 && (wt(e, g, F[o] >> 5 & 127), g += F[o] >> 12);
7806
7806
  }
7807
- } else E = Oi, S = Bt, R = Ni, y = Jt;
7807
+ } else E = Li, S = Bt, R = Mi, y = Jt;
7808
7808
  for (var o = 0; o < l; ++o) {
7809
7809
  var N = n[o];
7810
7810
  if (N > 255) {
@@ -7815,11 +7815,11 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7815
7815
  } else zt(e, g, E[N]), g += S[N];
7816
7816
  }
7817
7817
  return zt(e, g, E[256]), g + S[256];
7818
- }, "wblk"), Gi = new we([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new z(0), $i = c(function(t, e, r, n, i, s) {
7818
+ }, "wblk"), $i = new we([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Gr = new z(0), Hi = c(function(t, e, r, n, i, s) {
7819
7819
  var a = s.z || t.length, l = new z(n + a + 5 * (1 + Math.ceil(a / 7e3)) + i), h = l.subarray(n, l.length - i), d = s.l, g = (s.r || 0) & 7;
7820
7820
  if (e) {
7821
7821
  g && (h[0] = s.r >> 3);
7822
- for (var A = Gi[e - 1], C = A >> 13, v = A & 8191, M = (1 << r) - 1, D = s.p || new at(32768), b = s.h || new at(M + 1), P = Math.ceil(r / 3), w = 2 * P, O = c(function(Z) {
7822
+ for (var A = $i[e - 1], C = A >> 13, v = A & 8191, M = (1 << r) - 1, D = s.p || new at(32768), b = s.h || new at(M + 1), P = Math.ceil(r / 3), w = 2 * P, O = c(function(Z) {
7823
7823
  return (t[Z] ^ t[Z + 1] << P ^ t[Z + 2] << w) & M;
7824
7824
  }, "hsh"), x = new we(25e3), U = new at(288), H = new at(32), j = 0, o = 0, u = s.i || 0, f = 0, _ = s.w || 0, m = 0; u + 2 < a; ++u) {
7825
7825
  var I = O(u), T = u & 32767, p = b[I];
@@ -7861,26 +7861,26 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7861
7861
  s.i = a;
7862
7862
  }
7863
7863
  return Qt(l, 0, n + Be(g) + i);
7864
- }, "dflt"), Hi = (function() {
7864
+ }, "dflt"), ki = (function() {
7865
7865
  for (var t = new Int32Array(256), e = 0; e < 256; ++e) {
7866
7866
  for (var r = e, n = 9; --n; ) r = (r & 1 && -306674912) ^ r >>> 1;
7867
7867
  t[e] = r;
7868
7868
  }
7869
7869
  return t;
7870
- })(), ki = c(function() {
7870
+ })(), ji = c(function() {
7871
7871
  var t = -1;
7872
7872
  return { p: c(function(e) {
7873
- for (var r = t, n = 0; n < e.length; ++n) r = Hi[r & 255 ^ e[n]] ^ r >>> 8;
7873
+ for (var r = t, n = 0; n < e.length; ++n) r = ki[r & 255 ^ e[n]] ^ r >>> 8;
7874
7874
  t = r;
7875
7875
  }, "p"), d: c(function() {
7876
7876
  return ~t;
7877
7877
  }, "d") };
7878
- }, "crc"), ji = c(function(t, e, r, n, i) {
7878
+ }, "crc"), Fi = c(function(t, e, r, n, i) {
7879
7879
  if (!i && (i = { l: 1 }, e.dictionary)) {
7880
7880
  var s = e.dictionary.subarray(-32768), a = new z(s.length + t.length);
7881
7881
  a.set(s), a.set(t, s.length), t = a, i.w = s.length;
7882
7882
  }
7883
- return $i(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, r, n, i);
7883
+ return Hi(t, e.level == null ? 6 : e.level, e.mem == null ? i.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(t.length))) * 1.5) : 20 : 12 + e.mem, r, n, i);
7884
7884
  }, "dopt"), $r = c(function(t, e) {
7885
7885
  var r = {};
7886
7886
  for (var n in t) r[n] = t[n];
@@ -7895,25 +7895,25 @@ var Oi = _t(Bt, 9, 0), Li = _t(Bt, 9, 1), Ni = _t(Jt, 5, 0), Mi = _t(Jt, 5, 1),
7895
7895
  }, "b8"), et = c(function(t, e, r) {
7896
7896
  for (; r; ++e) t[e] = r, r >>>= 8;
7897
7897
  }, "wbytes");
7898
- function Fi(t, e) {
7899
- return ji(t, e || {}, 0, 0);
7900
- }
7901
- c(Fi, "deflateSync");
7902
7898
  function Vi(t, e) {
7903
- return xi(t, { i: 2 }, e && e.out, e && e.dictionary);
7899
+ return Fi(t, e || {}, 0, 0);
7900
+ }
7901
+ c(Vi, "deflateSync");
7902
+ function Ki(t, e) {
7903
+ return Gi(t, { i: 2 }, e && e.out, e && e.dictionary);
7904
7904
  }
7905
- c(Vi, "inflateSync");
7905
+ c(Ki, "inflateSync");
7906
7906
  var Hr = c(function(t, e, r, n) {
7907
7907
  for (var i in t) {
7908
7908
  var s = t[i], a = e + i, l = n;
7909
7909
  Array.isArray(s) && (l = $r(n, s[1]), s = s[0]), s instanceof z ? r[a] = [s, l] : (r[a += "/"] = [new z(0), l], Hr(s, a, r, n));
7910
7910
  }
7911
- }, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Ne = typeof TextDecoder < "u" && new TextDecoder(), Ki = 0;
7911
+ }, "fltn"), kr = typeof TextEncoder < "u" && new TextEncoder(), Ne = typeof TextDecoder < "u" && new TextDecoder(), Wi = 0;
7912
7912
  try {
7913
- Ne.decode(Gr, { stream: true }), Ki = 1;
7913
+ Ne.decode(Gr, { stream: true }), Wi = 1;
7914
7914
  } catch {
7915
7915
  }
7916
- var Wi = c(function(t) {
7916
+ var qi = c(function(t) {
7917
7917
  for (var e = "", r = 0; ; ) {
7918
7918
  var n = t[r++], i = (n > 127) + (n > 223) + (n > 239);
7919
7919
  if (r + i > t.length) return { s: e, r: Qt(t, r - 1) };
@@ -7936,23 +7936,23 @@ function jr(t, e) {
7936
7936
  return Qt(i, 0, s);
7937
7937
  }
7938
7938
  c(jr, "strToU8");
7939
- function qi(t, e) {
7939
+ function Yi(t, e) {
7940
7940
  if (e) {
7941
7941
  for (var r = "", n = 0; n < t.length; n += 16384) r += String.fromCharCode.apply(null, t.subarray(n, n + 16384));
7942
7942
  return r;
7943
7943
  } else {
7944
7944
  if (Ne) return Ne.decode(t);
7945
- var i = Wi(t), s = i.s, r = i.r;
7945
+ var i = qi(t), s = i.s, r = i.r;
7946
7946
  return r.length && nt(8), s;
7947
7947
  }
7948
7948
  }
7949
- c(qi, "strFromU8");
7950
- var Yi = c(function(t, e) {
7949
+ c(Yi, "strFromU8");
7950
+ var Ji = c(function(t, e) {
7951
7951
  return e + 30 + It(t, e + 26) + It(t, e + 28);
7952
- }, "slzh"), Ji = c(function(t, e, r) {
7953
- var n = It(t, e + 28), i = qi(t.subarray(e + 46, e + 46 + n), !(It(t, e + 8) & 2048)), s = e + 46 + n, a = gt(t, e + 20), l = r && a == 4294967295 ? Qi(t, s) : [a, gt(t, e + 24), gt(t, e + 42)], h = l[0], d = l[1], g = l[2];
7952
+ }, "slzh"), Qi = c(function(t, e, r) {
7953
+ var n = It(t, e + 28), i = Yi(t.subarray(e + 46, e + 46 + n), !(It(t, e + 8) & 2048)), s = e + 46 + n, a = gt(t, e + 20), l = r && a == 4294967295 ? zi(t, s) : [a, gt(t, e + 24), gt(t, e + 42)], h = l[0], d = l[1], g = l[2];
7954
7954
  return [It(t, e + 10), h, d, i, s + It(t, e + 30) + It(t, e + 32), g];
7955
- }, "zh"), Qi = c(function(t, e) {
7955
+ }, "zh"), zi = c(function(t, e) {
7956
7956
  for (; It(t, e) != 1; e += 4 + It(t, e + 2)) ;
7957
7957
  return [Le(t, e + 12), Le(t, e + 4), Le(t, e + 20)];
7958
7958
  }, "z64e"), Me = c(function(t) {
@@ -7971,10 +7971,10 @@ var Yi = c(function(t, e) {
7971
7971
  et(t, e, +M), et(t, e + 2, b), t.set(D, e + 4), e += 4 + b;
7972
7972
  }
7973
7973
  return g && (t.set(l, e), e += g), e;
7974
- }, "wzh"), zi = c(function(t, e, r, n, i) {
7974
+ }, "wzh"), Xi = c(function(t, e, r, n, i) {
7975
7975
  et(t, e, 101010256), et(t, e + 8, r), et(t, e + 10, r), et(t, e + 12, n), et(t, e + 16, i);
7976
7976
  }, "wzf");
7977
- function Xi(t, e) {
7977
+ function Zi(t, e) {
7978
7978
  e || (e = {});
7979
7979
  var r = {}, n = [];
7980
7980
  Hr(t, "", r, e);
@@ -7982,7 +7982,7 @@ function Xi(t, e) {
7982
7982
  for (var a in r) {
7983
7983
  var l = r[a], h = l[0], d = l[1], g = d.level == 0 ? 0 : 8, A = jr(a), C = A.length, v = d.comment, M = v && jr(v), D = M && M.length, b = Me(d.extra);
7984
7984
  C > 65535 && nt(11);
7985
- var P = g ? Fi(h, d) : h, w = P.length, O = ki();
7985
+ var P = g ? Vi(h, d) : h, w = P.length, O = ji();
7986
7986
  O.p(h), n.push($r(d, { size: h.length, crc: O.d(), c: P, f: A, m: M, u: C != a.length || M && v.length != D, o: i, compression: g })), i += 30 + C + b + w, s += 76 + 2 * (C + b) + (D || 0) + w;
7987
7987
  }
7988
7988
  for (var x = new z(s + 22), U = i, H = s - i, j = 0; j < n.length; ++j) {
@@ -7991,10 +7991,10 @@ function Xi(t, e) {
7991
7991
  var o = 30 + A.f.length + Me(A.extra);
7992
7992
  x.set(A.c, A.o + o), Fr(x, i, A, A.f, A.u, A.c.length, A.o, A.m), i += 16 + o + (A.m ? A.m.length : 0);
7993
7993
  }
7994
- return zi(x, i, n.length, H, U), x;
7994
+ return Xi(x, i, n.length, H, U), x;
7995
7995
  }
7996
- c(Xi, "zipSync");
7997
- function Zi(t, e) {
7996
+ c(Zi, "zipSync");
7997
+ function ts(t, e) {
7998
7998
  for (var r = {}, n = t.length - 22; gt(t, n) != 101010256; --n) (!n || t.length - n > 65558) && nt(13);
7999
7999
  var i = It(t, n + 8);
8000
8000
  if (!i) return {};
@@ -8004,18 +8004,18 @@ function Zi(t, e) {
8004
8004
  a = gt(t, l) == 101075792, a && (i = gt(t, l + 32), s = gt(t, l + 48));
8005
8005
  }
8006
8006
  for (var h = 0; h < i; ++h) {
8007
- var d = Ji(t, s, a), g = d[0], A = d[1], C = d[2], v = d[3], M = d[4], D = d[5], b = Yi(t, D);
8008
- s = M, g ? g == 8 ? r[v] = Vi(t.subarray(b, b + A), { out: new z(C) }) : nt(14, "unknown compression type " + g) : r[v] = Qt(t, b, b + A);
8007
+ var d = Qi(t, s, a), g = d[0], A = d[1], C = d[2], v = d[3], M = d[4], D = d[5], b = Ji(t, D);
8008
+ s = M, g ? g == 8 ? r[v] = Ki(t.subarray(b, b + A), { out: new z(C) }) : nt(14, "unknown compression type " + g) : r[v] = Qt(t, b, b + A);
8009
8009
  }
8010
8010
  return r;
8011
8011
  }
8012
- c(Zi, "unzipSync");
8013
- const ts = [/^\/$/, /^\*+$/, /^[0-9]+$/], es = ["/artifact/", "https://", "http://", "*********"], rs = 3;
8012
+ c(ts, "unzipSync");
8013
+ const es = [/^\/$/, /^\*+$/, /^[0-9]+$/], rs = ["/artifact/", "https://", "http://", "*********"], ns = 3;
8014
8014
  function Vr(t) {
8015
- return t.filter((e) => !(e.length < rs || ts.some((r) => r.test(e)) || es.some((r) => e.includes(r))));
8015
+ return t.filter((e) => !(e.length < ns || es.some((r) => r.test(e)) || rs.some((r) => e.includes(r))));
8016
8016
  }
8017
8017
  c(Vr, "filterSensitiveValues");
8018
- const yt = Symbol.for("@ts-pattern/matcher"), ns = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key", De = c((t) => !!(t && typeof t == "object"), "r"), ce = c((t) => t && !!t[yt], "i"), St = c((t, e, r) => {
8018
+ const yt = Symbol.for("@ts-pattern/matcher"), is = Symbol.for("@ts-pattern/isVariadic"), ae = "@ts-pattern/anonymous-select-key", De = c((t) => !!(t && typeof t == "object"), "r"), ce = c((t) => t && !!t[yt], "i"), St = c((t, e, r) => {
8019
8019
  if (ce(t)) {
8020
8020
  const n = t[yt](), { matched: i, selections: s } = n.match(e);
8021
8021
  return i && s && Object.keys(s).forEach((a) => r(a, s[a])), i;
@@ -8027,7 +8027,7 @@ const yt = Symbol.for("@ts-pattern/matcher"), ns = Symbol.for("@ts-pattern/isVar
8027
8027
  let n = [], i = [], s = [];
8028
8028
  for (const a of t.keys()) {
8029
8029
  const l = t[a];
8030
- ce(l) && l[ns] ? s.push(l) : s.length ? i.push(l) : n.push(l);
8030
+ ce(l) && l[is] ? s.push(l) : s.length ? i.push(l) : n.push(l);
8031
8031
  }
8032
8032
  if (s.length) {
8033
8033
  if (s.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
@@ -8049,10 +8049,10 @@ const yt = Symbol.for("@ts-pattern/matcher"), ns = Symbol.for("@ts-pattern/isVar
8049
8049
  return De(t) ? ce(t) ? (e = (r = (n = t[yt]()).getSelectionKeys) == null ? void 0 : r.call(n)) != null ? e : [] : Array.isArray(t) ? Zt(t, Pt) : Zt(Object.values(t), Pt) : [];
8050
8050
  }, "s"), Zt = c((t, e) => t.reduce((r, n) => r.concat(e(n)), []), "c");
8051
8051
  function ct(t) {
8052
- return Object.assign(t, { optional: c(() => is(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => ss(t, e), "or"), select: c((e) => e === void 0 ? Kr(t) : Kr(e, t), "select") });
8052
+ return Object.assign(t, { optional: c(() => ss(t), "optional"), and: c((e) => q(t, e), "and"), or: c((e) => os(t, e), "or"), select: c((e) => e === void 0 ? Kr(t) : Kr(e, t), "select") });
8053
8053
  }
8054
8054
  c(ct, "a");
8055
- function is(t) {
8055
+ function ss(t) {
8056
8056
  return ct({ [yt]: () => ({ match: c((e) => {
8057
8057
  let r = {};
8058
8058
  const n = c((i, s) => {
@@ -8061,7 +8061,7 @@ function is(t) {
8061
8061
  return e === void 0 ? (Pt(t).forEach((i) => n(i, void 0)), { matched: true, selections: r }) : { matched: St(t, e, n), selections: r };
8062
8062
  }, "match"), getSelectionKeys: c(() => Pt(t), "getSelectionKeys"), matcherType: "optional" }) });
8063
8063
  }
8064
- c(is, "h");
8064
+ c(ss, "h");
8065
8065
  function q(...t) {
8066
8066
  return ct({ [yt]: () => ({ match: c((e) => {
8067
8067
  let r = {};
@@ -8072,7 +8072,7 @@ function q(...t) {
8072
8072
  }, "match"), getSelectionKeys: c(() => Zt(t, Pt), "getSelectionKeys"), matcherType: "and" }) });
8073
8073
  }
8074
8074
  c(q, "d");
8075
- function ss(...t) {
8075
+ function os(...t) {
8076
8076
  return ct({ [yt]: () => ({ match: c((e) => {
8077
8077
  let r = {};
8078
8078
  const n = c((i, s) => {
@@ -8081,7 +8081,7 @@ function ss(...t) {
8081
8081
  return Zt(t, Pt).forEach((i) => n(i, void 0)), { matched: t.some((i) => St(i, e, n)), selections: r };
8082
8082
  }, "match"), getSelectionKeys: c(() => Zt(t, Pt), "getSelectionKeys"), matcherType: "or" }) });
8083
8083
  }
8084
- c(ss, "y");
8084
+ c(os, "y");
8085
8085
  function K(t) {
8086
8086
  return { [yt]: () => ({ match: c((e) => ({ matched: !!t(e) }), "match") }) };
8087
8087
  }
@@ -8138,7 +8138,7 @@ Mt(K(Lt)), ct(K(function(t) {
8138
8138
  })), ct(K(function(t) {
8139
8139
  return t != null;
8140
8140
  }));
8141
- class os extends Error {
8141
+ class as extends Error {
8142
8142
  static {
8143
8143
  c(this, "I");
8144
8144
  }
@@ -8153,10 +8153,10 @@ class os extends Error {
8153
8153
  }
8154
8154
  }
8155
8155
  const xe = { matched: false, value: void 0 };
8156
- function as(t) {
8156
+ function cs(t) {
8157
8157
  return new me(t, xe);
8158
8158
  }
8159
- c(as, "M");
8159
+ c(cs, "M");
8160
8160
  class me {
8161
8161
  static {
8162
8162
  c(this, "R");
@@ -8183,7 +8183,7 @@ class me {
8183
8183
  otherwise(e) {
8184
8184
  return this.state.matched ? this.state.value : e(this.input);
8185
8185
  }
8186
- exhaustive(e = cs) {
8186
+ exhaustive(e = us) {
8187
8187
  return this.state.matched ? this.state.value : e(this.input);
8188
8188
  }
8189
8189
  run() {
@@ -8196,45 +8196,45 @@ class me {
8196
8196
  return this;
8197
8197
  }
8198
8198
  }
8199
- function cs(t) {
8200
- throw new os(t);
8199
+ function us(t) {
8200
+ throw new as(t);
8201
8201
  }
8202
- c(cs, "F");
8203
- const us = "[REDACTED]", ls = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
8202
+ c(us, "F");
8203
+ const ls = "[REDACTED]", fs = /* @__PURE__ */ new Set(["sha1", "_sha1", "pageref", "downloadsPath", "tracesDir", "pageId"]);
8204
8204
  function ot({ sensitiveValues: t, str: e }) {
8205
- return t.reduce((r, n) => r.replaceAll(n, us), e);
8205
+ return t.reduce((r, n) => r.replaceAll(n, ls), e);
8206
8206
  }
8207
8207
  c(ot, "scrubString");
8208
- function fs(t) {
8208
+ function hs(t) {
8209
8209
  return typeof t == "object" && t !== null && !Array.isArray(t);
8210
8210
  }
8211
- c(fs, "isRecord");
8211
+ c(hs, "isRecord");
8212
8212
  function te({ sensitiveValues: t, value: e }) {
8213
- return typeof e == "string" ? ot({ sensitiveValues: t, str: e }) : Array.isArray(e) ? e.map((r) => te({ sensitiveValues: t, value: r })) : fs(e) ? Gt({ obj: e, sensitiveValues: t }) : e;
8213
+ return typeof e == "string" ? ot({ sensitiveValues: t, str: e }) : Array.isArray(e) ? e.map((r) => te({ sensitiveValues: t, value: r })) : hs(e) ? Gt({ obj: e, sensitiveValues: t }) : e;
8214
8214
  }
8215
8215
  c(te, "scrubValue");
8216
- function hs(t) {
8217
- return ls.has(t) ? true : t.toLowerCase().endsWith("sha1");
8216
+ function ds(t) {
8217
+ return fs.has(t) ? true : t.toLowerCase().endsWith("sha1");
8218
8218
  }
8219
- c(hs, "shouldPreserveKey");
8219
+ c(ds, "shouldPreserveKey");
8220
8220
  function Gt({ obj: t, sensitiveValues: e }) {
8221
- return Object.fromEntries(Object.entries(t).map(([r, n]) => [r, hs(r) ? n : te({ sensitiveValues: e, value: n })]));
8221
+ return Object.fromEntries(Object.entries(t).map(([r, n]) => [r, ds(r) ? n : te({ sensitiveValues: e, value: n })]));
8222
8222
  }
8223
8223
  c(Gt, "scrubObject");
8224
8224
  function qr({ error: t, sensitiveValues: e }) {
8225
8225
  return t ? { ...t, message: ot({ sensitiveValues: e, str: t.message }) } : void 0;
8226
8226
  }
8227
8227
  c(qr, "scrubError");
8228
- function ds({ event: t, sensitiveValues: e }) {
8229
- return as(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), params: Gt({ obj: r.params, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0, title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? ot({ sensitiveValues: e, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Gt({ obj: r.options, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
8228
+ function ps({ event: t, sensitiveValues: e }) {
8229
+ return cs(t).with({ type: "console" }, (r) => ({ ...r, args: r.args?.map((n) => ({ ...n, preview: ot({ sensitiveValues: e, str: n.preview }), value: te({ sensitiveValues: e, value: n.value }) })), text: ot({ sensitiveValues: e, str: r.text }) })).with({ type: "before" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "after" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0 })).with({ type: "action" }, (r) => ({ ...r, error: qr({ error: r.error, sensitiveValues: e }), params: Gt({ obj: r.params, sensitiveValues: e }), result: r.result !== void 0 ? te({ sensitiveValues: e, value: r.result }) : void 0, title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "event" }, (r) => ({ ...r, params: Gt({ obj: r.params, sensitiveValues: e }) })).with({ type: "stdout" }, { type: "stderr" }, (r) => ({ ...r, text: r.text !== void 0 ? ot({ sensitiveValues: e, str: r.text }) : void 0 })).with({ type: "error" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "log" }, (r) => ({ ...r, message: ot({ sensitiveValues: e, str: r.message }) })).with({ type: "context-options" }, (r) => ({ ...r, options: Gt({ obj: r.options, sensitiveValues: e }), title: r.title ? ot({ sensitiveValues: e, str: r.title }) : void 0 })).with({ type: "frame-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "resource-snapshot" }, (r) => ({ ...r, snapshot: Gt({ obj: r.snapshot, sensitiveValues: e }) })).with({ type: "screencast-frame" }, { type: "input" }, (r) => r).exhaustive();
8230
8230
  }
8231
- c(ds, "scrubTraceEvent");
8232
- function ps({ content: t, sensitiveValues: e }) {
8231
+ c(ps, "scrubTraceEvent");
8232
+ function ms({ content: t, sensitiveValues: e }) {
8233
8233
  const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), a = r.decode(t).split(`
8234
8234
  `).map((l) => {
8235
8235
  if (!l.trim()) return l;
8236
8236
  try {
8237
- const h = JSON.parse(l), d = ds({ event: h, sensitiveValues: e });
8237
+ const h = JSON.parse(l), d = ps({ event: h, sensitiveValues: e });
8238
8238
  return JSON.stringify(d);
8239
8239
  } catch {
8240
8240
  return ot({ sensitiveValues: e, str: l });
@@ -8243,7 +8243,7 @@ function ps({ content: t, sensitiveValues: e }) {
8243
8243
  return n.encode(a.join(`
8244
8244
  `));
8245
8245
  }
8246
- c(ps, "scrubJsonLinesFile");
8246
+ c(ms, "scrubJsonLinesFile");
8247
8247
  function Yr({ content: t, sensitiveValues: e }) {
8248
8248
  const r = new node_util.TextDecoder(), n = new node_util.TextEncoder(), i = ot({ sensitiveValues: e, str: r.decode(t) });
8249
8249
  return n.encode(i);
@@ -8252,35 +8252,35 @@ c(Yr, "scrubTextFile");
8252
8252
  async function Ge({ sensitiveValues: t, traceBuffer: e }) {
8253
8253
  const r = Vr(t);
8254
8254
  if (r.length === 0) return new Uint8Array(e);
8255
- const n = [...r].sort((h, d) => d.length - h.length), i = Zi(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await ms({ content: d, filename: h, sensitiveValues: n })])), l = Object.fromEntries(a);
8256
- return Xi(l);
8255
+ const n = [...r].sort((h, d) => d.length - h.length), i = ts(new Uint8Array(e)), s = Object.entries(i), a = await Promise.all(s.map(async ([h, d]) => [h, await gs({ content: d, filename: h, sensitiveValues: n })])), l = Object.fromEntries(a);
8256
+ return Zi(l);
8257
8257
  }
8258
8258
  c(Ge, "scrubTrace");
8259
- async function ms({ content: t, filename: e, sensitiveValues: r }) {
8259
+ async function gs({ content: t, filename: e, sensitiveValues: r }) {
8260
8260
  const n = e.toLowerCase();
8261
- return n.endsWith(".trace") || n.endsWith(".network") ? ps({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Yr({ content: t, sensitiveValues: r }) : n.startsWith("resources/") ? gs({ content: t, sensitiveValues: r }) : t;
8261
+ return n.endsWith(".trace") || n.endsWith(".network") ? ms({ content: t, sensitiveValues: r }) : n.endsWith(".html") || n.endsWith(".dat") || n.endsWith(".json") ? Yr({ content: t, sensitiveValues: r }) : n.startsWith("resources/") ? Es({ content: t, sensitiveValues: r }) : t;
8262
8262
  }
8263
- c(ms, "scrubFile");
8264
- async function gs({ content: t, sensitiveValues: e }) {
8265
- return await Bi.isBinaryFile(Buffer.from(t)) ? t : Yr({ content: t, sensitiveValues: e });
8263
+ c(gs, "scrubFile");
8264
+ async function Es({ content: t, sensitiveValues: e }) {
8265
+ return await Pi.isBinaryFile(Buffer.from(t)) ? t : Yr({ content: t, sensitiveValues: e });
8266
8266
  }
8267
- c(gs, "scrubResourceFile");
8268
- async function Es({ sensitiveValues: t, tracePath: e }) {
8267
+ c(Es, "scrubResourceFile");
8268
+ async function _s({ sensitiveValues: t, tracePath: e }) {
8269
8269
  const r = [], n = node_fs.createReadStream(e);
8270
8270
  for await (const s of n) r.push(Uint8Array.from(s));
8271
8271
  const i = new Uint8Array(Buffer.concat(r));
8272
8272
  return Ge({ sensitiveValues: t, traceBuffer: i });
8273
8273
  }
8274
- c(Es, "scrubTraceFromPath");
8275
- async function _s({ sensitiveValues: t, traceFd: e, tracePath: r }) {
8274
+ c(_s, "scrubTraceFromPath");
8275
+ async function Is({ sensitiveValues: t, traceFd: e, tracePath: r }) {
8276
8276
  const n = [], i = node_fs.createReadStream(r, { autoClose: true, fd: e });
8277
8277
  for await (const a of i) n.push(Uint8Array.from(a));
8278
8278
  const s = new Uint8Array(Buffer.concat(n));
8279
8279
  return Ge({ sensitiveValues: t, traceBuffer: s });
8280
8280
  }
8281
- c(_s, "scrubTraceFromFd");
8282
- const Jr = { AUTHENTICATION_FAILED: 1008 }, Is = 2e4, Ss = 5e4, Rs = 3e4;
8283
- class Ts {
8281
+ c(Is, "scrubTraceFromFd");
8282
+ const Jr = { AUTHENTICATION_FAILED: 1008 }, Ss = 2e4, Rs = 5e4, Ts = 3e4;
8283
+ class As {
8284
8284
  static {
8285
8285
  c(this, "WebSocketClient");
8286
8286
  }
@@ -8327,19 +8327,19 @@ class Ts {
8327
8327
  }
8328
8328
  scheduleReconnect() {
8329
8329
  this.reconnectTimer && clearTimeout(this.reconnectTimer);
8330
- const e = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), Rs);
8330
+ const e = Math.min(this.reconnectDelay * Math.pow(2, this.reconnectAttempts), Ts);
8331
8331
  this.reconnectAttempts++, this.reconnectTimer = setTimeout(() => {
8332
8332
  this.connect();
8333
8333
  }, e), this.reconnectTimer.unref();
8334
8334
  }
8335
8335
  startPingInterval() {
8336
8336
  this.clearPingInterval(), this.lastPongAt = Date.now(), this.pingIntervalTimer = setInterval(() => {
8337
- if (Date.now() - this.lastPongAt > Ss) {
8337
+ if (Date.now() - this.lastPongAt > Rs) {
8338
8338
  this.clearPingInterval(), this.socket?.terminate();
8339
8339
  return;
8340
8340
  }
8341
8341
  this.socket?.readyState === WebSocket.OPEN && this.socket.send(JSON.stringify({ type: "ping" }));
8342
- }, Is), this.pingIntervalTimer.unref();
8342
+ }, Ss), this.pingIntervalTimer.unref();
8343
8343
  }
8344
8344
  clearPingInterval() {
8345
8345
  this.pingIntervalTimer && (clearInterval(this.pingIntervalTimer), this.pingIntervalTimer = void 0);
@@ -8386,7 +8386,7 @@ class Ts {
8386
8386
  return [...this.buffer];
8387
8387
  }
8388
8388
  }
8389
- var As = { detect({ env: t }) {
8389
+ var ws = { detect({ env: t }) {
8390
8390
  return !!t.APPVEYOR;
8391
8391
  }, configuration({ env: t }) {
8392
8392
  const e = t.APPVEYOR_PULL_REQUEST_NUMBER, r = !!e;
@@ -8400,31 +8400,31 @@ function ee(t) {
8400
8400
  return t ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(t)[1] : void 0;
8401
8401
  }
8402
8402
  c(ee, "parseBranch");
8403
- var ws = { detect({ env: t }) {
8403
+ var ys = { detect({ env: t }) {
8404
8404
  return !!t.BUILD_BUILDURI;
8405
8405
  }, configuration({ env: t }) {
8406
8406
  const e = t.SYSTEM_PULLREQUEST_PULLREQUESTID, r = !!e;
8407
8407
  return { name: "Azure Pipelines", service: "azurePipelines", commit: t.BUILD_SOURCEVERSION, build: t.BUILD_BUILDNUMBER, branch: ee(r ? t.SYSTEM_PULLREQUEST_TARGETBRANCH : t.BUILD_SOURCEBRANCH), pr: e, isPr: r, prBranch: ee(r ? t.SYSTEM_PULLREQUEST_SOURCEBRANCH : void 0), root: t.BUILD_REPOSITORY_LOCALPATH };
8408
- } }, ys = { detect({ env: t }) {
8408
+ } }, bs = { detect({ env: t }) {
8409
8409
  return !!t.bamboo_agentId;
8410
8410
  }, configuration({ env: t }) {
8411
8411
  return { name: "Bamboo", service: "bamboo", commit: t.bamboo_planRepository_1_revision, build: t.bamboo_buildNumber, buildUrl: t.bamboo_buildResultsUrl, branch: t.bamboo_planRepository_1_branchName, job: t.bamboo_buildKey, root: t.bamboo_build_working_directory };
8412
- } }, bs = { detect({ env: t }) {
8412
+ } }, Cs = { detect({ env: t }) {
8413
8413
  return !!t.BITBUCKET_BUILD_NUMBER;
8414
8414
  }, configuration({ env: t }) {
8415
8415
  return { name: "Bitbucket Pipelines", service: "bitbucket", commit: t.BITBUCKET_COMMIT, tag: t.BITBUCKET_TAG, build: t.BITBUCKET_BUILD_NUMBER, buildUrl: `https://bitbucket.org/${t.BITBUCKET_REPO_FULL_NAME}/addon/pipelines/home#!/results/${t.BITBUCKET_BUILD_NUMBER}`, branch: t.BITBUCKET_BRANCH, slug: t.BITBUCKET_REPO_FULL_NAME, root: t.BITBUCKET_CLONE_DIR };
8416
- } }, Cs = { detect({ env: t }) {
8416
+ } }, vs = { detect({ env: t }) {
8417
8417
  return !!t.BITRISE_IO;
8418
8418
  }, configuration({ env: t }) {
8419
8419
  const e = t.BITRISE_PULL_REQUEST === "false" ? void 0 : t.BITRISE_PULL_REQUEST, r = !!e;
8420
8420
  return { name: "Bitrise", service: "bitrise", commit: t.BITRISE_GIT_COMMIT, tag: t.BITRISE_GIT_TAG, build: t.BITRISE_BUILD_NUMBER, buildUrl: t.BITRISE_BUILD_URL, branch: r ? t.BITRISEIO_GIT_BRANCH_DEST : t.BITRISE_GIT_BRANCH, pr: e, isPr: r, prBranch: r ? t.BITRISE_GIT_BRANCH : void 0, slug: t.BITRISE_APP_SLUG };
8421
- } }, vs = { detect({ env: t }) {
8421
+ } }, Us = { detect({ env: t }) {
8422
8422
  return !!t.BUDDY_WORKSPACE_ID;
8423
8423
  }, configuration({ env: t }) {
8424
8424
  const e = Qr(t.BUDDY_EXECUTION_PULL_REQUEST_ID), r = !!e;
8425
8425
  return { name: "Buddy", service: "buddy", commit: t.BUDDY_EXECUTION_REVISION, tag: t.BUDDY_EXECUTION_TAG, build: t.BUDDY_EXECUTION_ID, buildUrl: t.BUDDY_EXECUTION_URL, branch: r ? t.BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH : t.BUDDY_EXECUTION_BRANCH, pr: e, isPr: r, slug: t.BUDDY_REPO_SLUG };
8426
8426
  } }, $t = { exports: {} }, $e, zr;
8427
- function Us() {
8427
+ function Bs() {
8428
8428
  if (zr) return $e;
8429
8429
  zr = 1, $e = n, n.sync = i;
8430
8430
  var t = Vt;
@@ -8453,9 +8453,9 @@ function Us() {
8453
8453
  }
8454
8454
  return c(i, "sync"), $e;
8455
8455
  }
8456
- c(Us, "requireWindows");
8456
+ c(Bs, "requireWindows");
8457
8457
  var He, Xr;
8458
- function Bs() {
8458
+ function Ps() {
8459
8459
  if (Xr) return He;
8460
8460
  Xr = 1, He = e, e.sync = r;
8461
8461
  var t = Vt;
@@ -8479,13 +8479,13 @@ function Bs() {
8479
8479
  }
8480
8480
  return c(i, "checkMode"), He;
8481
8481
  }
8482
- c(Bs, "requireMode");
8482
+ c(Ps, "requireMode");
8483
8483
  var ke, Zr;
8484
- function Ps() {
8484
+ function Os() {
8485
8485
  if (Zr) return ke;
8486
8486
  Zr = 1;
8487
8487
  var t;
8488
- process.platform === "win32" || vi.TESTING_WINDOWS ? t = Us() : t = Bs(), ke = e, e.sync = r;
8488
+ process.platform === "win32" || Ui.TESTING_WINDOWS ? t = Bs() : t = Ps(), ke = e, e.sync = r;
8489
8489
  function e(n, i, s) {
8490
8490
  if (typeof i == "function" && (s = i, i = {}), !s) {
8491
8491
  if (typeof Promise != "function") throw new TypeError("callback not provided");
@@ -8510,12 +8510,12 @@ function Ps() {
8510
8510
  }
8511
8511
  return c(r, "sync"), ke;
8512
8512
  }
8513
- c(Ps, "requireIsexe");
8513
+ c(Os, "requireIsexe");
8514
8514
  var je, tn;
8515
- function Os() {
8515
+ function Ls() {
8516
8516
  if (tn) return je;
8517
8517
  tn = 1;
8518
- const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e = Kt, r = t ? ";" : ":", n = Ps(), i = c((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), s = c((h, d) => {
8518
+ const t = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", e = Kt, r = t ? ";" : ":", n = Os(), i = c((h) => Object.assign(new Error(`not found: ${h}`), { code: "ENOENT" }), "getNotFoundError"), s = c((h, d) => {
8519
8519
  const g = d.colon || r, A = h.match(/\//) || t && h.match(/\\/) ? [""] : [...t ? [process.cwd()] : [], ...(d.path || process.env.PATH || "").split(g)], C = t ? d.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", v = t ? C.split(g) : [""];
8520
8520
  return t && h.indexOf(".") !== -1 && v[0] !== "" && v.unshift(""), { pathEnv: A, pathExt: v, pathExtExe: C };
8521
8521
  }, "getPathInfo"), a = c((h, d, g) => {
@@ -8554,9 +8554,9 @@ function Os() {
8554
8554
  }, "whichSync");
8555
8555
  return je = a, a.sync = l, je;
8556
8556
  }
8557
- c(Os, "requireWhich");
8557
+ c(Ls, "requireWhich");
8558
8558
  var ue = { exports: {} }, en;
8559
- function Ls() {
8559
+ function Ns() {
8560
8560
  if (en) return ue.exports;
8561
8561
  en = 1;
8562
8562
  const t = c((e = {}) => {
@@ -8565,12 +8565,12 @@ function Ls() {
8565
8565
  }, "pathKey");
8566
8566
  return ue.exports = t, ue.exports.default = t, ue.exports;
8567
8567
  }
8568
- c(Ls, "requirePathKey");
8568
+ c(Ns, "requirePathKey");
8569
8569
  var Fe, rn;
8570
- function Ns() {
8570
+ function Ms() {
8571
8571
  if (rn) return Fe;
8572
8572
  rn = 1;
8573
- const t = Kt, e = Os(), r = Ls();
8573
+ const t = Kt, e = Ls(), r = Ns();
8574
8574
  function n(s, a) {
8575
8575
  const l = s.options.env || process.env, h = process.cwd(), d = s.options.cwd != null, g = d && process.chdir !== void 0 && !process.chdir.disabled;
8576
8576
  if (g) try {
@@ -8592,9 +8592,9 @@ function Ns() {
8592
8592
  }
8593
8593
  return c(i, "resolveCommand"), Fe = i, Fe;
8594
8594
  }
8595
- c(Ns, "requireResolveCommand");
8595
+ c(Ms, "requireResolveCommand");
8596
8596
  var le = {}, nn;
8597
- function Ms() {
8597
+ function Ds() {
8598
8598
  if (nn) return le;
8599
8599
  nn = 1;
8600
8600
  const t = /([()\][%!^"`<>&|;, *?])/g;
@@ -8607,17 +8607,17 @@ function Ms() {
8607
8607
  }
8608
8608
  return c(r, "escapeArgument"), le.command = e, le.argument = r, le;
8609
8609
  }
8610
- c(Ms, "require_escape");
8610
+ c(Ds, "require_escape");
8611
8611
  var Ve, sn;
8612
- function Ds() {
8612
+ function xs() {
8613
8613
  return sn || (sn = 1, Ve = /^#!(.*)/), Ve;
8614
8614
  }
8615
- c(Ds, "requireShebangRegex");
8615
+ c(xs, "requireShebangRegex");
8616
8616
  var Ke, on;
8617
- function xs() {
8617
+ function Gs() {
8618
8618
  if (on) return Ke;
8619
8619
  on = 1;
8620
- const t = Ds();
8620
+ const t = xs();
8621
8621
  return Ke = c((e = "") => {
8622
8622
  const r = e.match(t);
8623
8623
  if (!r) return null;
@@ -8625,12 +8625,12 @@ function xs() {
8625
8625
  return s === "env" ? i : i ? `${s} ${i}` : s;
8626
8626
  }, "shebangCommand"), Ke;
8627
8627
  }
8628
- c(xs, "requireShebangCommand");
8628
+ c(Gs, "requireShebangCommand");
8629
8629
  var We, an;
8630
- function Gs() {
8630
+ function $s() {
8631
8631
  if (an) return We;
8632
8632
  an = 1;
8633
- const t = Vt, e = xs();
8633
+ const t = Vt, e = Gs();
8634
8634
  function r(n) {
8635
8635
  const s = Buffer.alloc(150);
8636
8636
  let a;
@@ -8642,12 +8642,12 @@ function Gs() {
8642
8642
  }
8643
8643
  return c(r, "readShebang"), We = r, We;
8644
8644
  }
8645
- c(Gs, "requireReadShebang");
8645
+ c($s, "requireReadShebang");
8646
8646
  var qe, cn;
8647
- function $s() {
8647
+ function Hs() {
8648
8648
  if (cn) return qe;
8649
8649
  cn = 1;
8650
- const t = Kt, e = Ns(), r = Ms(), n = Gs(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, a = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8650
+ const t = Kt, e = Ms(), r = Ds(), n = $s(), i = process.platform === "win32", s = /\.(?:com|exe)$/i, a = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
8651
8651
  function l(g) {
8652
8652
  g.file = e(g);
8653
8653
  const A = g.file && n(g.file);
@@ -8673,9 +8673,9 @@ function $s() {
8673
8673
  }
8674
8674
  return c(d, "parse"), qe = d, qe;
8675
8675
  }
8676
- c($s, "requireParse");
8676
+ c(Hs, "requireParse");
8677
8677
  var Ye, un;
8678
- function Hs() {
8678
+ function ks() {
8679
8679
  if (un) return Ye;
8680
8680
  un = 1;
8681
8681
  const t = process.platform === "win32";
@@ -8704,12 +8704,12 @@ function Hs() {
8704
8704
  }
8705
8705
  return c(i, "verifyENOENTSync"), Ye = { hookChildProcess: r, verifyENOENT: n, verifyENOENTSync: i, notFoundError: e }, Ye;
8706
8706
  }
8707
- c(Hs, "requireEnoent");
8707
+ c(ks, "requireEnoent");
8708
8708
  var ln;
8709
- function ks() {
8709
+ function js() {
8710
8710
  if (ln) return $t.exports;
8711
8711
  ln = 1;
8712
- const t = require$$0$2, e = $s(), r = Hs();
8712
+ const t = require$$0$2, e = Hs(), r = ks();
8713
8713
  function n(s, a, l) {
8714
8714
  const h = e(s, a, l), d = t.spawn(h.command, h.args, h.options);
8715
8715
  return r.hookChildProcess(d, h), d;
@@ -8721,76 +8721,76 @@ function ks() {
8721
8721
  }
8722
8722
  return c(i, "spawnSync"), $t.exports = n, $t.exports.spawn = n, $t.exports.sync = i, $t.exports._parse = e, $t.exports._enoent = r, $t.exports;
8723
8723
  }
8724
- c(ks, "requireCrossSpawn");
8725
- var js = ks(), Fs = vr(js);
8726
- function Vs(t) {
8724
+ c(js, "requireCrossSpawn");
8725
+ var Fs = js(), Vs = vr(Fs);
8726
+ function Ks(t) {
8727
8727
  const e = typeof t == "string" ? `
8728
8728
  ` : 10, r = typeof t == "string" ? "\r" : 13;
8729
8729
  return t[t.length - 1] === e && (t = t.slice(0, -1)), t[t.length - 1] === r && (t = t.slice(0, -1)), t;
8730
8730
  }
8731
- c(Vs, "stripFinalNewline");
8731
+ c(Ks, "stripFinalNewline");
8732
8732
  function fn(t = {}) {
8733
8733
  const { env: e = process.env, platform: r = process.platform } = t;
8734
8734
  return r !== "win32" ? "PATH" : Object.keys(e).reverse().find((n) => n.toUpperCase() === "PATH") || "Path";
8735
8735
  }
8736
8736
  c(fn, "pathKey");
8737
- const Ks = c(({ cwd: t = y.cwd(), path: e = y.env[fn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
8737
+ const Ws = c(({ cwd: t = y.cwd(), path: e = y.env[fn()], preferLocal: r = true, execPath: n = y.execPath, addExecPath: i = true } = {}) => {
8738
8738
  const s = t instanceof URL ? node_url.fileURLToPath(t) : t, a = path.resolve(s), l = [];
8739
- return r && Ws(l, a), i && qs(l, n, a), [...l, e].join(path.delimiter);
8740
- }, "npmRunPath"), Ws = c((t, e) => {
8739
+ return r && qs(l, a), i && Ys(l, n, a), [...l, e].join(path.delimiter);
8740
+ }, "npmRunPath"), qs = c((t, e) => {
8741
8741
  let r;
8742
8742
  for (; r !== e; ) t.push(path.join(e, "node_modules/.bin")), r = e, e = path.resolve(e, "..");
8743
- }, "applyPreferLocal"), qs = c((t, e, r) => {
8743
+ }, "applyPreferLocal"), Ys = c((t, e, r) => {
8744
8744
  const n = e instanceof URL ? node_url.fileURLToPath(e) : e;
8745
8745
  t.push(path.resolve(r, n, ".."));
8746
- }, "applyExecPath"), Ys = c(({ env: t = y.env, ...e } = {}) => {
8746
+ }, "applyExecPath"), Js = c(({ env: t = y.env, ...e } = {}) => {
8747
8747
  t = { ...t };
8748
8748
  const r = fn({ env: t });
8749
- return e.path = t[r], t[r] = Ks(e), t;
8750
- }, "npmRunPathEnv"), Js = c(() => {
8749
+ return e.path = t[r], t[r] = Ws(e), t;
8750
+ }, "npmRunPathEnv"), Qs = c(() => {
8751
8751
  const t = dn - hn + 1;
8752
- return Array.from({ length: t }, Qs);
8753
- }, "getRealtimeSignals"), Qs = c((t, e) => ({ name: `SIGRT${e + 1}`, number: hn + e, 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 = c(() => {
8754
- const t = Js();
8755
- return [...zs, ...t].map(Xs);
8756
- }, "getSignals"), Xs = c(({ name: t, number: e, description: r, action: n, forced: i = false, standard: s }) => {
8752
+ return Array.from({ length: t }, zs);
8753
+ }, "getRealtimeSignals"), zs = c((t, e) => ({ name: `SIGRT${e + 1}`, number: hn + e, action: "terminate", description: "Application-specific signal (realtime)", standard: "posix" }), "getRealtimeSignal"), hn = 34, dn = 64, Xs = [{ 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 = c(() => {
8754
+ const t = Qs();
8755
+ return [...Xs, ...t].map(Zs);
8756
+ }, "getSignals"), Zs = c(({ name: t, number: e, description: r, action: n, forced: i = false, standard: s }) => {
8757
8757
  const { signals: { [t]: a } } = node_os.constants, l = a !== void 0;
8758
8758
  return { name: t, number: l ? a : e, description: r, supported: l, action: n, forced: i, standard: s };
8759
- }, "normalizeSignal"), Zs = c(() => {
8759
+ }, "normalizeSignal"), to = c(() => {
8760
8760
  const t = pn();
8761
- return Object.fromEntries(t.map(to));
8762
- }, "getSignalsByName"), to = c(({ name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }) => [t, { name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }], "getSignalByName"), eo = Zs(), ro = c(() => {
8763
- const t = pn(), e = dn + 1, r = Array.from({ length: e }, (n, i) => no(i, t));
8761
+ return Object.fromEntries(t.map(eo));
8762
+ }, "getSignalsByName"), eo = c(({ name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }) => [t, { name: t, number: e, description: r, supported: n, action: i, forced: s, standard: a }], "getSignalByName"), ro = to(), no = c(() => {
8763
+ const t = pn(), e = dn + 1, r = Array.from({ length: e }, (n, i) => io(i, t));
8764
8764
  return Object.assign({}, ...r);
8765
- }, "getSignalsByNumber"), no = c((t, e) => {
8766
- const r = io(t, e);
8765
+ }, "getSignalsByNumber"), io = c((t, e) => {
8766
+ const r = so(t, e);
8767
8767
  if (r === void 0) return {};
8768
8768
  const { name: n, description: i, supported: s, action: a, forced: l, standard: h } = r;
8769
8769
  return { [t]: { name: n, number: t, description: i, supported: s, action: a, forced: l, standard: h } };
8770
- }, "getSignalByNumber"), io = c((t, e) => {
8770
+ }, "getSignalByNumber"), so = c((t, e) => {
8771
8771
  const r = e.find(({ name: n }) => node_os.constants.signals[n] === t);
8772
8772
  return r !== void 0 ? r : e.find((n) => n.number === t);
8773
8773
  }, "findSignalByNumber");
8774
- ro();
8775
- const so = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} 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 = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand: l, timedOut: h, isCanceled: d, killed: g, parsed: { options: { timeout: A, cwd: C = y.cwd() } } }) => {
8774
+ no();
8775
+ const oo = c(({ timedOut: t, timeout: e, errorCode: r, signal: n, signalDescription: i, exitCode: s, isCanceled: a }) => t ? `timed out after ${e} 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 = c(({ stdout: t, stderr: e, all: r, error: n, signal: i, exitCode: s, command: a, escapedCommand: l, timedOut: h, isCanceled: d, killed: g, parsed: { options: { timeout: A, cwd: C = y.cwd() } } }) => {
8776
8776
  s = s === null ? void 0 : s, i = i === null ? void 0 : i;
8777
- const v = i === void 0 ? void 0 : eo[i].description, M = n && n.code, b = `Command ${so({ timedOut: h, timeout: A, errorCode: M, signal: i, signalDescription: v, exitCode: s, isCanceled: d })}: ${a}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
8777
+ const v = i === void 0 ? void 0 : ro[i].description, M = n && n.code, b = `Command ${oo({ timedOut: h, timeout: A, errorCode: M, signal: i, signalDescription: v, exitCode: s, isCanceled: d })}: ${a}`, P = Object.prototype.toString.call(n) === "[object Error]", w = P ? `${b}
8778
8778
  ${n.message}` : b, O = [w, e, t].filter(Boolean).join(`
8779
8779
  `);
8780
8780
  return P ? (n.originalMessage = n.message, n.message = O) : n = new Error(O), n.shortMessage = w, n.command = a, n.escapedCommand = l, n.exitCode = s, n.signal = i, n.signalDescription = v, n.stdout = t, n.stderr = e, n.cwd = C, r !== void 0 && (n.all = r), "bufferedData" in n && delete n.bufferedData, n.failed = true, n.timedOut = !!h, n.isCanceled = d, n.killed = g && !h, n;
8781
- }, "makeError"), fe = ["stdin", "stdout", "stderr"], oo = c((t) => fe.some((e) => t[e] !== void 0), "hasAlias"), ao = c((t) => {
8781
+ }, "makeError"), fe = ["stdin", "stdout", "stderr"], ao = c((t) => fe.some((e) => t[e] !== void 0), "hasAlias"), co = c((t) => {
8782
8782
  if (!t) return;
8783
8783
  const { stdio: e } = t;
8784
8784
  if (e === void 0) return fe.map((n) => t[n]);
8785
- if (oo(t)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fe.map((n) => `\`${n}\``).join(", ")}`);
8785
+ if (ao(t)) throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${fe.map((n) => `\`${n}\``).join(", ")}`);
8786
8786
  if (typeof e == "string") return e;
8787
8787
  if (!Array.isArray(e)) throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);
8788
8788
  const r = Math.max(e.length, fe.length);
8789
8789
  return Array.from({ length: r }, (n, i) => e[i]);
8790
8790
  }, "normalizeStdio"), Ft = [];
8791
8791
  Ft.push("SIGHUP", "SIGINT", "SIGTERM"), process.platform !== "win32" && Ft.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT"), process.platform === "linux" && Ft.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
8792
- const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"), Je = Symbol.for("signal-exit emitter"), Qe = globalThis, co = Object.defineProperty.bind(Object);
8793
- class uo {
8792
+ const he = c((t) => !!t && typeof t == "object" && typeof t.removeListener == "function" && typeof t.emit == "function" && typeof t.reallyExit == "function" && typeof t.listeners == "function" && typeof t.kill == "function" && typeof t.pid == "number" && typeof t.on == "function", "processOk"), Je = Symbol.for("signal-exit emitter"), Qe = globalThis, uo = Object.defineProperty.bind(Object);
8793
+ class lo {
8794
8794
  static {
8795
8795
  c(this, "Emitter");
8796
8796
  }
@@ -8800,7 +8800,7 @@ class uo {
8800
8800
  id = Math.random();
8801
8801
  constructor() {
8802
8802
  if (Qe[Je]) return Qe[Je];
8803
- co(Qe, Je, { value: this, writable: false, enumerable: false, configurable: false });
8803
+ uo(Qe, Je, { value: this, writable: false, enumerable: false, configurable: false });
8804
8804
  }
8805
8805
  on(e, r) {
8806
8806
  this.listeners[e].push(r);
@@ -8822,14 +8822,14 @@ class gn {
8822
8822
  c(this, "SignalExitBase");
8823
8823
  }
8824
8824
  }
8825
- const lo = c((t) => ({ onExit(e, r) {
8825
+ const fo = c((t) => ({ onExit(e, r) {
8826
8826
  return t.onExit(e, r);
8827
8827
  }, load() {
8828
8828
  return t.load();
8829
8829
  }, unload() {
8830
8830
  return t.unload();
8831
8831
  } }), "signalExitWrap");
8832
- class fo extends gn {
8832
+ class ho extends gn {
8833
8833
  static {
8834
8834
  c(this, "SignalExitFallback");
8835
8835
  }
@@ -8842,12 +8842,12 @@ class fo extends gn {
8842
8842
  unload() {
8843
8843
  }
8844
8844
  }
8845
- class ho extends gn {
8845
+ class po extends gn {
8846
8846
  static {
8847
8847
  c(this, "SignalExit");
8848
8848
  }
8849
8849
  #o = ze.platform === "win32" ? "SIGINT" : "SIGHUP";
8850
- #e = new uo();
8850
+ #e = new lo();
8851
8851
  #t;
8852
8852
  #i;
8853
8853
  #s;
@@ -8910,13 +8910,13 @@ class ho extends gn {
8910
8910
  }
8911
8911
  }
8912
8912
  const ze = globalThis.process;
8913
- lo(he(ze) ? new ho(ze) : new fo());
8914
- function po(t) {
8913
+ fo(he(ze) ? new po(ze) : new ho());
8914
+ function mo(t) {
8915
8915
  return t !== null && typeof t == "object" && typeof t.pipe == "function";
8916
8916
  }
8917
- c(po, "isStream"), new TextEncoder();
8917
+ c(mo, "isStream"), new TextEncoder();
8918
8918
  var Xe, En;
8919
- function mo() {
8919
+ function go() {
8920
8920
  if (En) return Xe;
8921
8921
  En = 1;
8922
8922
  const { PassThrough: t } = require$$0;
@@ -8936,33 +8936,33 @@ function mo() {
8936
8936
  }
8937
8937
  }, "mergeStream"), Xe;
8938
8938
  }
8939
- c(mo, "requireMergeStream"), mo();
8940
- const go = c((t) => {
8939
+ c(go, "requireMergeStream"), go();
8940
+ const Eo = c((t) => {
8941
8941
  if (t !== void 0) throw new TypeError("The `input` and `inputFile` options cannot be both set.");
8942
- }, "validateInputOptions"), Eo = c(({ input: t, inputFile: e }) => typeof e != "string" ? t : (go(t), node_fs.readFileSync(e)), "getInputSync"), _o = c((t) => {
8943
- const e = Eo(t);
8944
- if (po(e)) throw new TypeError("The `input` option cannot be a stream in sync mode");
8942
+ }, "validateInputOptions"), _o = c(({ input: t, inputFile: e }) => typeof e != "string" ? t : (Eo(t), node_fs.readFileSync(e)), "getInputSync"), Io = c((t) => {
8943
+ const e = _o(t);
8944
+ if (mo(e)) throw new TypeError("The `input` option cannot be a stream in sync mode");
8945
8945
  return e;
8946
- }, "handleInputSync"), Io = (async () => {
8946
+ }, "handleInputSync"), So = (async () => {
8947
8947
  })().constructor.prototype;
8948
- ["then", "catch", "finally"].map((t) => [t, Reflect.getOwnPropertyDescriptor(Io, t)]);
8949
- const _n = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), So = /^[\w.-]+$/, Ro = c((t) => typeof t != "string" || So.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), To = c((t, e) => _n(t, e).join(" "), "joinCommand"), Ao = c((t, e) => _n(t, e).map((r) => Ro(r)).join(" "), "getEscapedCommand"), wo = node_util.debuglog("execa").enabled, de = c((t, e) => String(t).padStart(e, "0"), "padField"), yo = c(() => {
8948
+ ["then", "catch", "finally"].map((t) => [t, Reflect.getOwnPropertyDescriptor(So, t)]);
8949
+ const _n = c((t, e = []) => Array.isArray(e) ? [t, ...e] : [t], "normalizeArgs"), Ro = /^[\w.-]+$/, To = c((t) => typeof t != "string" || Ro.test(t) ? t : `"${t.replaceAll('"', '\\"')}"`, "escapeArg"), Ao = c((t, e) => _n(t, e).join(" "), "joinCommand"), wo = c((t, e) => _n(t, e).map((r) => To(r)).join(" "), "getEscapedCommand"), yo = node_util.debuglog("execa").enabled, de = c((t, e) => String(t).padStart(e, "0"), "padField"), bo = c(() => {
8950
8950
  const t = /* @__PURE__ */ new Date();
8951
8951
  return `${de(t.getHours(), 2)}:${de(t.getMinutes(), 2)}:${de(t.getSeconds(), 2)}.${de(t.getMilliseconds(), 3)}`;
8952
- }, "getTimestamp"), bo = c((t, { verbose: e }) => {
8953
- e && y.stderr.write(`[${yo()}] ${t}
8952
+ }, "getTimestamp"), Co = c((t, { verbose: e }) => {
8953
+ e && y.stderr.write(`[${bo()}] ${t}
8954
8954
  `);
8955
- }, "logCommand"), Co = 1e3 * 1e3 * 100, vo = c(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: i }) => {
8955
+ }, "logCommand"), vo = 1e3 * 1e3 * 100, Uo = c(({ env: t, extendEnv: e, preferLocal: r, localDir: n, execPath: i }) => {
8956
8956
  const s = e ? { ...y.env, ...t } : t;
8957
- return r ? Ys({ env: s, cwd: n, execPath: i }) : s;
8958
- }, "getEnv"), Uo = c((t, e, r = {}) => {
8959
- const n = Fs._parse(t, e, r);
8960
- return t = n.command, e = n.args, r = n.options, r = { maxBuffer: Co, 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: wo, ...r }, r.env = vo(r), r.stdio = ao(r), y.platform === "win32" && path.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r, parsed: n };
8961
- }, "handleArguments"), In = c((t, e, r) => typeof e != "string" && !node_buffer.Buffer.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ? Vs(e) : e, "handleOutput");
8957
+ return r ? Js({ env: s, cwd: n, execPath: i }) : s;
8958
+ }, "getEnv"), Bo = c((t, e, r = {}) => {
8959
+ const n = Vs._parse(t, e, r);
8960
+ return t = n.command, e = n.args, r = n.options, r = { maxBuffer: vo, 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: yo, ...r }, r.env = Uo(r), r.stdio = co(r), y.platform === "win32" && path.basename(t, ".exe") === "cmd" && e.unshift("/q"), { file: t, args: e, options: r, parsed: n };
8961
+ }, "handleArguments"), In = c((t, e, r) => typeof e != "string" && !node_buffer.Buffer.isBuffer(e) ? r === void 0 ? void 0 : "" : t.stripFinalNewline ? Ks(e) : e, "handleOutput");
8962
8962
  function Ze(t, e, r) {
8963
- const n = Uo(t, e, r), i = To(t, e), s = Ao(t, e);
8964
- bo(s, n.options);
8965
- const a = _o(n.options);
8963
+ const n = Bo(t, e, r), i = Ao(t, e), s = wo(t, e);
8964
+ Co(s, n.options);
8965
+ const a = Io(n.options);
8966
8966
  let l;
8967
8967
  try {
8968
8968
  l = childProcess.spawnSync(n.file, n.args, { ...n.options, input: a });
@@ -8999,122 +8999,122 @@ function tr(t) {
8999
8999
  }
9000
9000
  }
9001
9001
  c(tr, "branch");
9002
- const Sn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Bo = /^\/(.*)\.git$/;
9003
- function Po(t) {
9002
+ const Sn = /^(?:.*)@(?:.*):(?:\d+\/)?(.*)\.git$/, Po = /^\/(.*)\.git$/;
9003
+ function Oo(t) {
9004
9004
  if (t) {
9005
9005
  if (t.match(Sn)) return t.replace(Sn, "$1");
9006
9006
  try {
9007
- return new URL(t).pathname.replace(Bo, "$1");
9007
+ return new URL(t).pathname.replace(Po, "$1");
9008
9008
  } catch {
9009
9009
  return;
9010
9010
  }
9011
9011
  }
9012
9012
  }
9013
- c(Po, "getSlugFromGitURL");
9014
- var Oo = { detect({ env: t }) {
9013
+ c(Oo, "getSlugFromGitURL");
9014
+ var Lo = { detect({ env: t }) {
9015
9015
  return !!t.BUILDKITE;
9016
9016
  }, configuration({ env: t }) {
9017
9017
  const e = t.BUILDKITE_PULL_REQUEST === "false" ? void 0 : t.BUILDKITE_PULL_REQUEST, r = !!e;
9018
- return { name: "Buildkite", service: "buildkite", build: t.BUILDKITE_BUILD_NUMBER, buildUrl: t.BUILDKITE_BUILD_URL, commit: t.BUILDKITE_COMMIT, tag: t.BUILDKITE_TAG, branch: r ? t.BUILDKITE_PULL_REQUEST_BASE_BRANCH : t.BUILDKITE_BRANCH, slug: Po(t.BUILDKITE_REPO), pr: e, isPr: r, prBranch: r ? t.BUILDKITE_BRANCH : void 0, root: t.BUILDKITE_BUILD_CHECKOUT_PATH };
9019
- } }, Lo = { detect({ env: t }) {
9018
+ return { name: "Buildkite", service: "buildkite", build: t.BUILDKITE_BUILD_NUMBER, buildUrl: t.BUILDKITE_BUILD_URL, commit: t.BUILDKITE_COMMIT, tag: t.BUILDKITE_TAG, branch: r ? t.BUILDKITE_PULL_REQUEST_BASE_BRANCH : t.BUILDKITE_BRANCH, slug: Oo(t.BUILDKITE_REPO), pr: e, isPr: r, prBranch: r ? t.BUILDKITE_BRANCH : void 0, root: t.BUILDKITE_BUILD_CHECKOUT_PATH };
9019
+ } }, No = { detect({ env: t }) {
9020
9020
  return !!t.CIRCLECI;
9021
9021
  }, configuration({ env: t }) {
9022
9022
  const e = t.CIRCLE_PR_NUMBER || Qr(t.CIRCLE_PULL_REQUEST || t.CI_PULL_REQUEST), r = !!e;
9023
9023
  return { name: "CircleCI", service: "circleci", build: t.CIRCLE_BUILD_NUM, buildUrl: t.CIRCLE_BUILD_URL, job: `${t.CIRCLE_BUILD_NUM}.${t.CIRCLE_NODE_INDEX}`, commit: t.CIRCLE_SHA1, tag: t.CIRCLE_TAG, branch: r ? void 0 : t.CIRCLE_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRCLE_BRANCH : void 0, slug: `${t.CIRCLE_PROJECT_USERNAME}/${t.CIRCLE_PROJECT_REPONAME}` };
9024
9024
  } };
9025
9025
  const Rn = "https://cirrus-ci.com";
9026
- var No = { detect({ env: t }) {
9026
+ var Mo = { detect({ env: t }) {
9027
9027
  return !!t.CIRRUS_CI;
9028
9028
  }, configuration({ env: t }) {
9029
9029
  const e = t.CIRRUS_PR, r = !!e;
9030
9030
  return { name: "Cirrus CI", service: "cirrus", commit: t.CIRRUS_CHANGE_IN_REPO, tag: t.CIRRUS_TAG, build: t.CIRRUS_BUILD_ID, buildUrl: `${Rn}/build/${t.CIRRUS_BUILD_ID}`, job: t.CIRRUS_TASK_ID, jobUrl: `${Rn}/task/${t.CIRRUS_TASK_ID}`, branch: r ? t.CIRRUS_BASE_BRANCH : t.CIRRUS_BRANCH, pr: e, isPr: r, prBranch: r ? t.CIRRUS_BRANCH : void 0, slug: t.CIRRUS_REPO_FULL_NAME, root: t.CIRRUS_WORKING_DIR };
9031
- } }, Mo = { detect({ env: t }) {
9031
+ } }, Do = { detect({ env: t }) {
9032
9032
  return t.CF_PAGES === "1";
9033
9033
  }, configuration({ env: t }) {
9034
9034
  return { name: "Cloudflare Pages", service: "cloudflarePages", commit: t.CF_PAGES_COMMIT_SHA, branch: t.CF_PAGES_BRANCH, root: t.PWD };
9035
- } }, Do = { detect({ env: t }) {
9035
+ } }, xo = { detect({ env: t }) {
9036
9036
  return !!t.CODEBUILD_BUILD_ID;
9037
9037
  }, configuration({ env: t, cwd: e }) {
9038
9038
  return { name: "AWS CodeBuild", service: "codebuild", commit: pe({ env: t, cwd: e }), build: t.CODEBUILD_BUILD_ID, branch: tr({ env: t, cwd: e }), buildUrl: `https://console.aws.amazon.com/codebuild/home?region=${t.AWS_REGION}#/builds/${t.CODEBUILD_BUILD_ID}/view/new`, root: t.PWD };
9039
- } }, xo = { detect({ env: t }) {
9039
+ } }, Go = { detect({ env: t }) {
9040
9040
  return !!t.CF_BUILD_ID;
9041
9041
  }, configuration({ env: t }) {
9042
9042
  const e = t.CF_PULL_REQUEST_NUMBER, r = !!e;
9043
9043
  return { name: "Codefresh", service: "codefresh", commit: t.CF_REVISION, build: t.CF_BUILD_ID, buildUrl: t.CF_BUILD_URL, branch: r ? t.CF_PULL_REQUEST_TARGET : t.CF_BRANCH, pr: e, isPr: r, prBranch: r ? t.CF_BRANCH : void 0, slug: `${t.CF_REPO_OWNER}/${t.CF_REPO_NAME}`, root: t.CF_VOLUME_PATH };
9044
- } }, Go = { detect({ env: t }) {
9044
+ } }, $o = { detect({ env: t }) {
9045
9045
  return t.CI_NAME && t.CI_NAME === "codeship";
9046
9046
  }, configuration({ env: t }) {
9047
9047
  return { name: "Codeship", service: "codeship", build: t.CI_BUILD_NUMBER, buildUrl: t.CI_BUILD_URL, commit: t.CI_COMMIT_ID, branch: t.CI_BRANCH, slug: t.CI_REPO_NAME };
9048
- } }, $o = { detect({ env: t }) {
9048
+ } }, Ho = { detect({ env: t }) {
9049
9049
  return !!t.DRONE;
9050
9050
  }, configuration({ env: t }) {
9051
9051
  const e = t.DRONE_BUILD_EVENT === "pull_request";
9052
9052
  return { name: "Drone", service: "drone", commit: t.DRONE_COMMIT_SHA, tag: t.DRONE_TAG, build: t.DRONE_BUILD_NUMBER, buildUrl: t.DRONE_BUILD_LINK, branch: e ? t.DRONE_TARGET_BRANCH : t.DRONE_BRANCH, job: t.DRONE_JOB_NUMBER, jobUrl: t.DRONE_BUILD_LINK, pr: t.DRONE_PULL_REQUEST, isPr: e, prBranch: e ? t.DRONE_SOURCE_BRANCH : void 0, slug: `${t.DRONE_REPO_OWNER}/${t.DRONE_REPO_NAME}`, root: t.DRONE_WORKSPACE };
9053
- } }, Ho = { configuration(t) {
9053
+ } }, ko = { configuration(t) {
9054
9054
  return { commit: pe(t), branch: tr(t) };
9055
9055
  } };
9056
- const ko = c(({ env: t }) => {
9056
+ const jo = c(({ env: t }) => {
9057
9057
  try {
9058
9058
  const e = t.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(t.GITHUB_EVENT_PATH, "utf-8")) : void 0;
9059
9059
  if (e && e.pull_request) return { branch: e.pull_request.base ? ee(e.pull_request.base.ref) : void 0, pr: e.pull_request.number };
9060
9060
  } catch {
9061
9061
  }
9062
9062
  return { pr: void 0, branch: void 0 };
9063
- }, "getPrEvent"), jo = c((t) => {
9063
+ }, "getPrEvent"), Fo = c((t) => {
9064
9064
  const e = t.GITHUB_EVENT_PATH ? JSON.parse(node_fs.readFileSync(t.GITHUB_EVENT_PATH, "utf-8")) : void 0;
9065
9065
  return e && e.pull_request ? e.pull_request.number : void 0;
9066
9066
  }, "getPrNumber");
9067
- var Fo = { detect({ env: t }) {
9067
+ var Vo = { detect({ env: t }) {
9068
9068
  return !!t.GITHUB_ACTIONS;
9069
9069
  }, configuration({ env: t, cwd: e }) {
9070
- const r = t.GITHUB_EVENT_NAME === "pull_request" || t.GITHUB_EVENT_NAME === "pull_request_target", n = ee(t.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${jo(t)}/merge` : t.GITHUB_REF);
9071
- return { name: "GitHub Actions", service: "github", commit: t.GITHUB_SHA, build: t.GITHUB_RUN_ID, buildUrl: `${t.GITHUB_SERVER_URL}/${t.GITHUB_REPOSITORY}/actions/runs/${t.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: t.GITHUB_REPOSITORY, root: t.GITHUB_WORKSPACE, ...r ? ko({ env: t }) : void 0 };
9072
- } }, Vo = { detect({ env: t }) {
9070
+ const r = t.GITHUB_EVENT_NAME === "pull_request" || t.GITHUB_EVENT_NAME === "pull_request_target", n = ee(t.GITHUB_EVENT_NAME === "pull_request_target" ? `refs/pull/${Fo(t)}/merge` : t.GITHUB_REF);
9071
+ return { name: "GitHub Actions", service: "github", commit: t.GITHUB_SHA, build: t.GITHUB_RUN_ID, buildUrl: `${t.GITHUB_SERVER_URL}/${t.GITHUB_REPOSITORY}/actions/runs/${t.GITHUB_RUN_ID}`, isPr: r, branch: n, prBranch: r ? n : void 0, slug: t.GITHUB_REPOSITORY, root: t.GITHUB_WORKSPACE, ...r ? jo({ env: t }) : void 0 };
9072
+ } }, Ko = { detect({ env: t }) {
9073
9073
  return !!t.GITLAB_CI;
9074
9074
  }, configuration({ env: t }) {
9075
9075
  const e = t.CI_MERGE_REQUEST_ID, r = !!e;
9076
9076
  return { name: "GitLab CI/CD", service: "gitlab", commit: t.CI_COMMIT_SHA, tag: t.CI_COMMIT_TAG, build: t.CI_PIPELINE_ID, buildUrl: `${t.CI_PROJECT_URL}/pipelines/${t.CI_PIPELINE_ID}`, job: t.CI_JOB_ID, jobUrl: `${t.CI_PROJECT_URL}/-/jobs/${t.CI_JOB_ID}`, branch: r ? t.CI_MERGE_REQUEST_TARGET_BRANCH_NAME : t.CI_COMMIT_REF_NAME, pr: e, isPr: r, prBranch: t.CI_MERGE_REQUEST_SOURCE_BRANCH_NAME, slug: t.CI_PROJECT_PATH, root: t.CI_PROJECT_DIR };
9077
- } }, Ko = { detect({ env: t }) {
9077
+ } }, Wo = { detect({ env: t }) {
9078
9078
  return !!t.JENKINS_URL;
9079
9079
  }, configuration({ env: t, cwd: e }) {
9080
9080
  const r = t.ghprbPullId || t.gitlabMergeRequestId || t.CHANGE_ID, n = !!r, i = t.GIT_LOCAL_BRANCH || t.GIT_BRANCH || t.gitlabBranch || t.BRANCH_NAME;
9081
9081
  return { name: "Jenkins", service: "jenkins", commit: t.ghprbActualCommit || t.GIT_COMMIT || pe({ env: t, cwd: e }), branch: n ? t.ghprbTargetBranch || t.gitlabTargetBranch : i, build: t.BUILD_NUMBER, buildUrl: t.BUILD_URL, root: t.WORKSPACE, pr: r, isPr: n, prBranch: n ? t.ghprbSourceBranch || t.gitlabSourceBranch || i : void 0 };
9082
- } }, Wo = { detect({ env: t }) {
9082
+ } }, qo = { detect({ env: t }) {
9083
9083
  return t.NETLIFY === "true";
9084
9084
  }, configuration({ env: t }) {
9085
9085
  const e = t.PULL_REQUEST === "true";
9086
9086
  return { name: "Netlify", service: "netlify", commit: t.COMMIT_REF, build: t.DEPLOY_ID, buildUrl: `https://app.netlify.com/sites/${t.SITE_NAME}/deploys/${t.DEPLOY_ID}`, branch: e ? void 0 : t.HEAD, pr: t.REVIEW_ID, isPr: e, prBranch: e ? t.HEAD : void 0, slug: t.REPOSITORY_URL.match(/[^/:]+\/[^/]+?$/)[0], root: t.PWD };
9087
- } }, qo = { detect({ env: t }) {
9087
+ } }, Yo = { detect({ env: t }) {
9088
9088
  return !!t.DISTELLI_APPNAME;
9089
9089
  }, configuration({ env: t }) {
9090
9090
  return { name: "Puppet", service: "puppet", build: t.DISTELLI_BUILDNUM, buildUrl: t.DISTELLI_RELEASE, commit: t.DISTELLI_RELREVISION, branch: t.DISTELLI_RELBRANCH, root: t.DISTELLI_INSTALLHOME };
9091
- } }, Yo = { detect({ env: t }) {
9091
+ } }, Jo = { detect({ env: t }) {
9092
9092
  return !!t.SAILCI;
9093
9093
  }, configuration({ env: t }) {
9094
9094
  const e = t.SAIL_PULL_REQUEST_NUMBER, r = !!e;
9095
9095
  return { name: "Sail CI", service: "sail", commit: t.SAIL_COMMIT_SHA, branch: r ? void 0 : t.SAIL_COMMIT_BRANCH, pr: e, isPr: r, slug: `${t.SAIL_REPO_OWNER}/${t.SAIL_REPO_NAME}`, root: t.SAIL_CLONE_DIR };
9096
- } }, Jo = { detect({ env: t }) {
9096
+ } }, Qo = { detect({ env: t }) {
9097
9097
  return !!t.SCREWDRIVER;
9098
9098
  }, configuration({ env: t }) {
9099
9099
  const e = t.SD_PULL_REQUEST, r = !!e;
9100
9100
  return { name: "Screwdriver.cd", service: "screwdriver", branch: r ? t.PR_BASE_BRANCH_NAME : t.GIT_BRANCH, prBranch: r ? t.PR_BRANCH_NAME : void 0, commit: t.SD_BUILD_SHA, build: t.SD_BUILD_ID, buildUrl: t.SD_UI_BUILD_URL, job: t.SD_JOB_ID, pr: e, isPr: r, slug: t.SD_PIPELINE_NAME, root: t.SD_ROOT_DIR };
9101
- } }, Qo = { detect({ env: t }) {
9101
+ } }, zo = { detect({ env: t }) {
9102
9102
  return !!t.SCRUTINIZER;
9103
9103
  }, configuration({ env: t }) {
9104
9104
  const e = t.SCRUTINIZER_PR_NUMBER, r = !!e;
9105
9105
  return { name: "Scrutinizer", service: "scrutinizer", commit: t.SCRUTINIZER_SHA1, build: t.SCRUTINIZER_INSPECTION_UUID, branch: t.SCRUTINIZER_BRANCH, pr: e, isPr: r, prBranch: t.SCRUTINIZER_PR_SOURCE_BRANCH };
9106
- } }, zo = { detect({ env: t }) {
9106
+ } }, Xo = { detect({ env: t }) {
9107
9107
  return !!t.SEMAPHORE;
9108
9108
  }, configuration({ env: t, cwd: e }) {
9109
9109
  const r = t.SEMAPHORE_GIT_PR_NUMBER || t.PULL_REQUEST_NUMBER, n = !!r;
9110
9110
  return { name: "Semaphore", service: "semaphore", commit: t.SEMAPHORE_GIT_SHA || pe({ env: t, cwd: e }), tag: t.SEMAPHORE_GIT_TAG_NAME, build: t.SEMAPHORE_JOB_ID || t.SEMAPHORE_BUILD_NUMBER, branch: t.SEMAPHORE_GIT_BRANCH || (n ? void 0 : t.BRANCH_NAME), pr: r, isPr: n, prBranch: t.SEMAPHORE_GIT_PR_BRANCH || (n ? t.BRANCH_NAME : void 0), slug: t.SEMAPHORE_GIT_REPO_SLUG || t.SEMAPHORE_REPO_SLUG, root: t.SEMAPHORE_GIT_DIR || t.SEMAPHORE_PROJECT_DIR };
9111
- } }, Xo = { detect({ env: t }) {
9111
+ } }, Zo = { detect({ env: t }) {
9112
9112
  return !!t.SHIPPABLE;
9113
9113
  }, configuration({ env: t }) {
9114
9114
  const e = t.IS_PULL_REQUEST === "true" ? t.PULL_REQUEST : void 0, r = !!e;
9115
9115
  return { name: "Shippable", service: "shippable", commit: t.COMMIT, tag: t.GIT_TAG_NAME, build: t.BUILD_NUMBER, buildUrl: t.BUILD_URL, branch: r ? t.BASE_BRANCH : t.BRANCH, job: t.JOB_NUMBER, pr: e, isPr: r, prBranch: r ? t.HEAD_BRANCH : void 0, slug: t.SHIPPABLE_REPO_SLUG, root: t.SHIPPABLE_BUILD_DIR };
9116
9116
  } }, Ht = {}, Tn;
9117
- function Zo() {
9117
+ function ta() {
9118
9118
  if (Tn) return Ht;
9119
9119
  Tn = 1, Object.defineProperty(Ht, "__esModule", { value: true }), Ht.of = Ht.PropertiesFile = void 0;
9120
9120
  var t = e(Vt);
@@ -9222,64 +9222,64 @@ function Zo() {
9222
9222
  }, "of2");
9223
9223
  return Ht.of = n, Ht;
9224
9224
  }
9225
- c(Zo, "requireDistNode");
9226
- var ta = Zo(), ea = vr(ta);
9225
+ c(ta, "requireDistNode");
9226
+ var ea = ta(), ra = vr(ea);
9227
9227
  const er = { root: "teamcity.build.workingDir", branch: "teamcity.build.branch" }, An = c((t) => {
9228
9228
  try {
9229
- return ea.of(t);
9229
+ return ra.of(t);
9230
9230
  } catch {
9231
9231
  return;
9232
9232
  }
9233
- }, "safeReadProperties"), ra = c(({ env: t, cwd: e }) => {
9233
+ }, "safeReadProperties"), na = c(({ env: t, cwd: e }) => {
9234
9234
  const r = t.TEAMCITY_BUILD_PROPERTIES_FILE ? An(t.TEAMCITY_BUILD_PROPERTIES_FILE) : void 0, n = r ? r.get("teamcity.configuration.properties.file") : void 0, i = n && An(n);
9235
9235
  return Object.fromEntries(Object.keys(er).map((s) => [s, (r ? r.get(er[s]) : void 0) || (i ? i.get(er[s]) : void 0) || (s === "branch" ? tr({ env: t, cwd: e }) : void 0)]));
9236
9236
  }, "getProperties");
9237
- var na = { detect({ env: t }) {
9237
+ var ia = { detect({ env: t }) {
9238
9238
  return !!t.TEAMCITY_VERSION;
9239
9239
  }, configuration({ env: t, cwd: e }) {
9240
- return { name: "TeamCity", service: "teamcity", commit: t.BUILD_VCS_NUMBER, build: t.BUILD_NUMBER, slug: t.TEAMCITY_BUILDCONF_NAME, ...ra({ env: t, cwd: e }) };
9241
- } }, ia = { detect({ env: t }) {
9240
+ return { name: "TeamCity", service: "teamcity", commit: t.BUILD_VCS_NUMBER, build: t.BUILD_NUMBER, slug: t.TEAMCITY_BUILDCONF_NAME, ...na({ env: t, cwd: e }) };
9241
+ } }, sa = { detect({ env: t }) {
9242
9242
  return !!t.TRAVIS;
9243
9243
  }, configuration({ env: t }) {
9244
9244
  const e = t.TRAVIS_PULL_REQUEST === "false" ? void 0 : t.TRAVIS_PULL_REQUEST, r = !!e;
9245
9245
  return { name: "Travis CI", service: "travis", commit: t.TRAVIS_COMMIT, tag: t.TRAVIS_TAG, build: t.TRAVIS_BUILD_NUMBER, buildUrl: t.TRAVIS_BUILD_WEB_URL, branch: t.TRAVIS_BRANCH, job: t.TRAVIS_JOB_NUMBER, jobUrl: t.TRAVIS_JOB_WEB_URL, pr: e, isPr: r, prBranch: t.TRAVIS_PULL_REQUEST_BRANCH, slug: t.TRAVIS_REPO_SLUG, root: t.TRAVIS_BUILD_DIR };
9246
- } }, sa = { detect({ env: t }) {
9246
+ } }, oa = { detect({ env: t }) {
9247
9247
  return !!t.VELA;
9248
9248
  }, configuration({ env: t }) {
9249
9249
  const e = t.VELA_BUILD_EVENT === "pull_request";
9250
9250
  return { name: "Vela", service: "vela", branch: e ? t.VELA_PULL_REQUEST_TARGET : t.VELA_BUILD_BRANCH, commit: t.VELA_BUILD_COMMIT, tag: t.VELA_BUILD_TAG, build: t.VELA_BUILD_NUMBER, buildUrl: t.VELA_BUILD_LINK, job: void 0, jobUrl: void 0, isPr: e, pr: t.VELA_BUILD_PULL_REQUEST, prBranch: t.VELA_PULL_REQUEST_SOURCE, slug: t.VELA_REPO_FULL_NAME, root: t.VELA_BUILD_WORKSPACE };
9251
- } }, oa = { detect({ env: t }) {
9251
+ } }, aa = { detect({ env: t }) {
9252
9252
  return !!t.VERCEL || !!t.NOW_GITHUB_DEPLOYMENT;
9253
9253
  }, configuration({ env: t }) {
9254
9254
  const e = "Vercel", r = "vercel";
9255
9255
  return t.VERCEL ? { name: e, service: r, commit: t.VERCEL_GIT_COMMIT_SHA, branch: t.VERCEL_GIT_COMMIT_REF, slug: `${t.VERCEL_GIT_REPO_OWNER}/${t.VERCEL_GIT_REPO_SLUG}` } : { name: e, service: r, commit: t.NOW_GITHUB_COMMIT_SHA, branch: t.NOW_GITHUB_COMMIT_REF, slug: `${t.NOW_GITHUB_ORG}/${t.NOW_GITHUB_REPO}` };
9256
- } }, aa = { detect({ env: t }) {
9256
+ } }, ca = { detect({ env: t }) {
9257
9257
  return !!t.WERCKER_MAIN_PIPELINE_STARTED;
9258
9258
  }, configuration({ env: t }) {
9259
9259
  return { name: "Wercker", service: "wercker", commit: t.WERCKER_GIT_COMMIT, build: t.WERCKER_MAIN_PIPELINE_STARTED, buildUrl: t.WERCKER_RUN_URL, branch: t.WERCKER_GIT_BRANCH, slug: `${t.WERCKER_GIT_OWNER}/${t.WERCKER_GIT_REPOSITORY}`, root: t.WERCKER_ROOT };
9260
- } }, ca = { detect({ env: t }) {
9260
+ } }, ua = { detect({ env: t }) {
9261
9261
  return t.CI && t.CI === "woodpecker";
9262
9262
  }, configuration({ env: t }) {
9263
9263
  const e = t.CI_PIPELINE_EVENT === "pull_request";
9264
9264
  return { name: "Woodpecker CI", service: "woodpecker", commit: t.CI_COMMIT_SHA, tag: t.CI_COMMIT_TAG, build: t.CI_PIPELINE_NUMBER, buildUrl: t.CI_PIPELINE_URL, branch: e ? t.CI_COMMIT_TARGET_BRANCH : t.CI_COMMIT_BRANCH, job: t.CI_STEP_NUMBER, jobUrl: t.CI_STEP_URL, pr: t.CI_COMMIT_PULL_REQUEST, isPr: e, prBranch: e ? t.CI_COMMIT_SOURCE_BRANCH : void 0, slug: `${t.CI_REPO_OWNER}/${t.CI_REPO_NAME}`, root: t.CI_WORKSPACE };
9265
- } }, ua = { detect({ env: t }) {
9265
+ } }, la = { detect({ env: t }) {
9266
9266
  return !!t.JB_SPACE_EXECUTION_NUMBER;
9267
9267
  }, configuration({ env: t }) {
9268
9268
  const e = t.JB_SPACE_PROJECT_KEY, r = t.JB_SPACE_GIT_REPOSITORY_NAME;
9269
9269
  return { name: "JetBrains Space", service: "jetbrainsSpace", commit: t.JB_SPACE_GIT_REVISION, build: t.JB_SPACE_EXECUTION_NUMBER, branch: ee(t.JB_SPACE_GIT_BRANCH), slug: e && r ? `${e.toLowerCase()}/${r}` : void 0 };
9270
9270
  } };
9271
- const rr = { appveyor: As, azurePipelines: ws, bamboo: ys, bitbucket: bs, bitrise: Cs, buddy: vs, buildkite: Oo, circleci: Lo, cirrus: No, cloudflarePages: Mo, codebuild: Do, codefresh: xo, codeship: Go, drone: $o, github: Fo, gitlab: Vo, jenkins: Ko, netlify: Wo, puppet: qo, sail: Yo, screwdriver: Jo, scrutinizer: Qo, semaphore: zo, shippable: Xo, teamcity: na, travis: ia, vela: sa, vercel: oa, wercker: aa, woodpecker: ca, jetbrainsSpace: ua };
9271
+ const rr = { appveyor: ws, azurePipelines: ys, bamboo: bs, bitbucket: Cs, bitrise: vs, buddy: Us, buildkite: Lo, circleci: No, cirrus: Mo, cloudflarePages: Do, codebuild: xo, codefresh: Go, codeship: $o, drone: Ho, github: Vo, gitlab: Ko, jenkins: Wo, netlify: qo, puppet: Yo, sail: Jo, screwdriver: Qo, scrutinizer: zo, semaphore: Xo, shippable: Zo, teamcity: ia, travis: sa, vela: oa, vercel: aa, wercker: ca, woodpecker: ua, jetbrainsSpace: la };
9272
9272
  var nr = c(({ env: t = process.env, cwd: e = process.cwd() } = {}) => {
9273
9273
  for (const r of Object.keys(rr)) if (rr[r].detect({ env: t, cwd: e })) return { isCi: true, ...rr[r].configuration({ env: t, cwd: e }) };
9274
- return { isCi: !!t.CI, ...Ho.configuration({ env: t, cwd: e }) };
9274
+ return { isCi: !!t.CI, ...ko.configuration({ env: t, cwd: e }) };
9275
9275
  }, "envCiModule");
9276
- const la = typeof nr == "function" ? nr : nr.default;
9277
- function fa() {
9278
- const t = la();
9279
- return { branch: process.env.GITHUB_HEAD_REF || t.branch, ciBuild: "build" in t ? String(t.build) : void 0, ciServiceName: "name" in t ? String(t.name) : void 0, commit: { message: da(), sha: t.commit }, isCI: t.isCi, pr: ha() };
9280
- }
9281
- c(fa, "getGitInfo");
9276
+ const fa = typeof nr == "function" ? nr : nr.default;
9282
9277
  function ha() {
9278
+ const t = fa();
9279
+ return { branch: process.env.GITHUB_HEAD_REF || t.branch, ciBuild: "build" in t ? String(t.build) : void 0, ciServiceName: "name" in t ? String(t.name) : void 0, commit: { message: pa(), sha: t.commit }, isCI: t.isCi, pr: da() };
9280
+ }
9281
+ c(ha, "getGitInfo");
9282
+ function da() {
9283
9283
  try {
9284
9284
  const t = process.env.GITHUB_EVENT_PATH;
9285
9285
  if (t) {
@@ -9291,19 +9291,19 @@ function ha() {
9291
9291
  return;
9292
9292
  }
9293
9293
  }
9294
- c(ha, "getPRInfo");
9295
- function da() {
9294
+ c(da, "getPRInfo");
9295
+ function pa() {
9296
9296
  try {
9297
9297
  return require$$0$2.execSync("git log -1 --pretty=%B", { encoding: "utf-8", stdio: ["pipe", "pipe", "ignore"] }).trim();
9298
9298
  } catch {
9299
9299
  return;
9300
9300
  }
9301
9301
  }
9302
- c(da, "getLastCommitMessage");
9303
- function pa() {
9302
+ c(pa, "getLastCommitMessage");
9303
+ function ma() {
9304
9304
  return { hostname: ge.hostname(), platform: ge.platform() };
9305
9305
  }
9306
- c(pa, "getMachineInfo");
9306
+ c(ma, "getMachineInfo");
9307
9307
  class wn {
9308
9308
  static {
9309
9309
  c(this, "PendingPromiseTracker");
@@ -9338,16 +9338,16 @@ class wn {
9338
9338
  return this.pending.size;
9339
9339
  }
9340
9340
  }
9341
- function ma({ result: t, sensitiveValues: e }) {
9341
+ function ga({ result: t, sensitiveValues: e }) {
9342
9342
  return t.steps.map((r) => yn({ sensitiveValues: e, step: r }));
9343
9343
  }
9344
- c(ma, "extractSteps");
9344
+ c(ga, "extractSteps");
9345
9345
  function yn({ sensitiveValues: t, step: e }) {
9346
9346
  const r = c((n) => n && t?.length ? ot({ sensitiveValues: t, str: n }) : n, "scrub");
9347
9347
  return { category: e.category, duration: e.duration, error: e.error ? { message: r(e.error.message) || "Unknown error", stack: r(e.error.stack) } : void 0, location: e.location ? { column: e.location.column, file: e.location.file, line: e.location.line } : void 0, startedAt: new Date(e.startTime), steps: e.steps && e.steps.length > 0 ? e.steps.map((n) => yn({ sensitiveValues: t, step: n })) : void 0, title: r(e.title) ?? e.title };
9348
9348
  }
9349
9349
  c(yn, "extractStep");
9350
- class ga {
9350
+ class Ea {
9351
9351
  static {
9352
9352
  c(this, "UploadUrlWaitQueue");
9353
9353
  }
@@ -9375,8 +9375,8 @@ class ga {
9375
9375
  return n ? (clearTimeout(n.timeoutId), n.reject(r), this.waiters.delete(e), true) : false;
9376
9376
  }
9377
9377
  }
9378
- async function Ea({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, uploadUrl: n }) {
9379
- await Kn(async () => {
9378
+ async function _a({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, uploadUrl: n }) {
9379
+ await Wn(async () => {
9380
9380
  const i = new AbortController(), s = setTimeout(() => i.abort(), r);
9381
9381
  let a;
9382
9382
  try {
@@ -9387,12 +9387,12 @@ async function Ea({ fileData: t, maxRetries: e = 3, requestTimeoutMs: r = 6e4, u
9387
9387
  if (!a.ok) throw a.status >= 400 && a.status < 500 ? new pRetryExports.AbortError(`Upload failed with status ${a.status}: ${a.statusText}`) : new Error(`Upload failed with status ${a.status}: ${a.statusText}`);
9388
9388
  }, { minTimeout: 2e3, randomize: true, retries: e });
9389
9389
  }
9390
- c(Ea, "uploadWithRetry");
9391
- const _a = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Ia = 120 * 1e3, bn = 3e4, Sa = 120 * 1e3, Ra = 3e4, Ta = Number(process.env.STABLY_UPLOAD_REQUEST_TIMEOUT_MS) || 300 * 1e3, Aa = process.env.STABLY_API_URL ?? "https://api.stably.ai", wa = 50, ya = c(({ gitInfo: t, suite: e }) => {
9390
+ c(_a, "uploadWithRetry");
9391
+ const Ia = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Sa = 120 * 1e3, bn = 3e4, Ra = 120 * 1e3, Ta = 3e4, Aa = Number(process.env.STABLY_UPLOAD_REQUEST_TIMEOUT_MS) || 300 * 1e3, wa = process.env.STABLY_API_URL ?? "https://api.stably.ai", ya = 50, ba = c(({ gitInfo: t, suite: e }) => {
9392
9392
  const r = [...new Set(e.allTests().map((n) => n.parent.project()?.name).filter((n) => !!n))];
9393
9393
  if (r.length > 0) {
9394
9394
  const n = r.join(", ");
9395
- return n.length <= wa ? n : `${r[0]} + ${r.length - 1} more`;
9395
+ return n.length <= ya ? n : `${r[0]} + ${r.length - 1} more`;
9396
9396
  }
9397
9397
  if (t.isCI && t.ciServiceName && t.ciBuild) return `${t.ciServiceName} #${t.ciBuild}`;
9398
9398
  try {
@@ -9404,18 +9404,18 @@ const _a = process.env.STABLY_WS_URL || "wss://api.stably.ai/reporter", Ia = 120
9404
9404
  } catch {
9405
9405
  }
9406
9406
  return "Playwright Test Suite";
9407
- }, "generateRunName"), ba = c(({ notificationConfigs: t, suite: e }) => {
9407
+ }, "generateRunName"), Ca = c(({ notificationConfigs: t, suite: e }) => {
9408
9408
  if (!t || t.length === 0) return;
9409
9409
  const r = new Set(e.allTests().map((i) => i.parent.project()?.name).filter(Boolean)), n = t.filter((i) => r.has(i.projectName));
9410
9410
  return n.length > 0 ? n : void 0;
9411
- }, "filterNotificationConfigsByRunningProjects"), Ca = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"), ir = c(({ absolutePath: t, rootDir: e }) => {
9411
+ }, "filterNotificationConfigsByRunningProjects"), va = c((t) => t ? { configFile: t.configFile, forbidOnly: t.forbidOnly, fullyParallel: t.fullyParallel, globalSetup: t.globalSetup, globalTeardown: t.globalTeardown, globalTimeout: t.globalTimeout, grep: t.grep?.toString(), grepInvert: t.grepInvert?.toString(), maxFailures: t.maxFailures, metadata: t.metadata, preserveOutput: t.preserveOutput, quiet: t.quiet, reporter: t.reporter, reportSlowTests: t.reportSlowTests, rootDir: t.rootDir, shard: t.shard, updateSnapshots: t.updateSnapshots, version: t.version, webServer: t.webServer, workers: t.workers } : void 0, "extractConfigInfo"), Cn = c((t) => t?.shard?.current, "getShardIndex"), ir = c(({ absolutePath: t, rootDir: e }) => {
9412
9412
  if (e && t.startsWith(e)) {
9413
9413
  const r = t.slice(e.length);
9414
9414
  return r.startsWith("/") ? r.slice(1) : r;
9415
9415
  }
9416
9416
  return t;
9417
9417
  }, "makePathRelative");
9418
- class Cn {
9418
+ class vn {
9419
9419
  static {
9420
9420
  c(this, "StablyReporter");
9421
9421
  }
@@ -9443,7 +9443,7 @@ class Cn {
9443
9443
  suite;
9444
9444
  pendingQueuedSpecs;
9445
9445
  attachmentFiles = /* @__PURE__ */ new Map();
9446
- uploadUrlWaitQueue = new ga();
9446
+ uploadUrlWaitQueue = new Ea();
9447
9447
  constructor(e) {
9448
9448
  const r = e?.apiKey ?? process.env.STABLY_API_KEY, n = e?.projectId ?? process.env.STABLY_PROJECT_ID, i = e?.source ?? process.env.STABLY_SOURCE, s = e?.cliVersion ?? process.env.STABLY_CLI_VERSION;
9449
9449
  if (!r) throw new Error("STABLY_API_KEY is required. Provide it via options or environment variable.");
@@ -9452,7 +9452,7 @@ class Cn {
9452
9452
  const a = Vr(e.sensitiveValues);
9453
9453
  this.sensitiveValues = [...a].sort((l, h) => h.length - l.length);
9454
9454
  }
9455
- this.wsClient = new Ts({ apiKey: r, cliVersion: s, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: c((a) => this.handleWebSocketError(a), "onError"), onMessage: c((a) => this.handleWebSocketMessage(a), "onMessage"), projectId: n, reconnectDelay: 2e3, source: i, url: _a });
9455
+ this.wsClient = new As({ apiKey: r, cliVersion: s, maxBufferSize: 1e3, maxReconnectAttempts: 3, onError: c((a) => this.handleWebSocketError(a), "onError"), onMessage: c((a) => this.handleWebSocketMessage(a), "onMessage"), projectId: n, reconnectDelay: 2e3, source: i, url: Ia });
9456
9456
  }
9457
9457
  handleUploadUrlsMessage(e) {
9458
9458
  const r = `${e.testId}-${e.attemptNumber}`;
@@ -9463,11 +9463,11 @@ class Cn {
9463
9463
  onBegin(e, r) {
9464
9464
  if (this.isListMode = process.argv.includes("--list"), this.isListMode || (r.allTests().length === 0 && process.exit(1), this.config = e, this.testSuiteRunId = this.getSuiteRunId(e), this.rootDir = e.rootDir, this.suite = r, this.skipSuiteReporting)) return;
9465
9465
  this.suiteData = this.extractSuiteInfo(e, r);
9466
- const i = ba({ notificationConfigs: this.notificationConfigs, suite: r });
9466
+ const i = Ca({ notificationConfigs: this.notificationConfigs, suite: r });
9467
9467
  this.filteredNotificationConfigs = i;
9468
- const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, totalShards: this.config?.shard?.total } : void 0, status: "running" };
9468
+ const s = { ...this.suiteData, notificationRequest: i ? { notificationConfigs: i, shardIndex: Cn(this.config), totalShards: this.config?.shard?.total } : void 0, status: "running" };
9469
9469
  try {
9470
- const d = 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-D7GNnxbC.cjs', document.baseURI).href)))), g = JSON.stringify({ apiBaseUrl: Aa, apiKey: this.apiKey, body: s, cliVersion: this.cliVersion, projectId: this.projectId, source: this.source, timeoutMs: bn }), A = require$$0$2.spawnSync(process.execPath, [d], { encoding: "utf-8", input: g, stdio: ["pipe", "pipe", "pipe"], timeout: bn + 5e3 });
9470
+ const d = 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-Li4YhdtX.cjs', document.baseURI).href)))), g = JSON.stringify({ apiBaseUrl: wa, apiKey: this.apiKey, body: s, cliVersion: this.cliVersion, projectId: this.projectId, source: this.source, timeoutMs: bn }), A = require$$0$2.spawnSync(process.execPath, [d], { encoding: "utf-8", input: g, stdio: ["pipe", "pipe", "pipe"], timeout: bn + 5e3 });
9471
9471
  if (A.status === 2 && (console.error(it.bold(it.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)), A.status !== 0) {
9472
9472
  const C = A.stderr?.trim() || A.error?.message || "Unknown error";
9473
9473
  throw new Error(C);
@@ -9501,12 +9501,12 @@ class Cn {
9501
9501
  this.completedTestIds.add(e.id);
9502
9502
  const n = this.extractTestCaseInfo(e, r);
9503
9503
  this.testCases.push(n), this.testStepsMap.set(n.id, r);
9504
- const i = ma({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: e.location.file }], a = (async () => {
9504
+ const i = ga({ result: r, sensitiveValues: this.sensitiveValues }), s = [...r.attachments, { contentType: "text/plain", name: "source-code", path: e.location.file }], a = (async () => {
9505
9505
  const l = await this.extractAttachmentMetadata({ attachments: s, attemptNumber: n.attemptNumber, testId: n.id });
9506
9506
  let h, d;
9507
9507
  if (l.length > 0) {
9508
9508
  h = `${n.id}-${n.attemptNumber}`;
9509
- const { bufferedMessage: g, waitPromise: A } = this.uploadUrlWaitQueue.registerWait(h, Ra);
9509
+ const { bufferedMessage: g, waitPromise: A } = this.uploadUrlWaitQueue.registerWait(h, Ta);
9510
9510
  d = A, g && this.handleUploadUrlsMessage(g), this.pendingOperations.track(d);
9511
9511
  }
9512
9512
  try {
@@ -9533,11 +9533,11 @@ class Cn {
9533
9533
  this.pendingOperations.track(this.wsClient.sendEvent({ payload: { annotations: d.annotations.length > 0 ? d.annotations : void 0, attemptNumber: 1, browserName: A?.use?.defaultBrowserType, duration: 0, expectedStatus: d.expectedStatus, fullTitle: this.scrubSensitiveString(d.titlePath().join(" \u203A ")) ?? "", id: g, location: `${C}:${d.location.line}:${d.location.column}`, maxRetries: d.retries, outcome: "skipped", projectName: A?.name, retryCount: 0, startedAt: h, status: "skipped", suiteId: this.testSuiteRunId, tags: d.tags.length > 0 ? d.tags : void 0, testIdentifier: d.id, title: this.scrubSensitiveString(d.title) ?? d.title }, type: "test_end" }));
9534
9534
  }
9535
9535
  }
9536
- this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, totalShards: this.config?.shard?.total } : void 0, status: e.status === "timedout" ? "timedOut" : e.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
9536
+ this.pendingOperations.track(this.wsClient.sendEvent({ payload: { duration: e.duration, notificationRequest: this.filteredNotificationConfigs ? { notificationConfigs: this.filteredNotificationConfigs, shardIndex: Cn(this.config), totalShards: this.config?.shard?.total } : void 0, status: e.status === "timedout" ? "timedOut" : e.status, suiteId: this.testSuiteRunId }, type: "suite_end" })), Ie$1("[Stably reporter] Waiting for pending tasks to finish...");
9537
9537
  const r = Y();
9538
9538
  r.start("Waiting for tasks to finish...");
9539
9539
  try {
9540
- await this.pendingOperations.waitForCompletion(Ia);
9540
+ await this.pendingOperations.waitForCompletion(Sa);
9541
9541
  } catch (h) {
9542
9542
  const d = h instanceof Error ? h.message : String(h);
9543
9543
  console.warn(`[StablyAI reporter] Tasks timeout reached. Some operations may still be pending: ${d}`);
@@ -9549,7 +9549,7 @@ class Cn {
9549
9549
  const n = Y();
9550
9550
  n.start("Waiting for file uploads to finish...");
9551
9551
  try {
9552
- await this.pendingUploads.waitForCompletion(Sa);
9552
+ await this.pendingUploads.waitForCompletion(Ra);
9553
9553
  } catch (h) {
9554
9554
  const d = h instanceof Error ? h.message : String(h);
9555
9555
  console.warn(`[StablyAI reporter] Upload timeout reached. Some uploads may still be pending: ${d}`);
@@ -9578,8 +9578,8 @@ class Cn {
9578
9578
  return !e || !this.sensitiveValues?.length ? e : ot({ sensitiveValues: this.sensitiveValues, str: e });
9579
9579
  }
9580
9580
  extractSuiteInfo(e, r) {
9581
- const n = fa(), i = pa(), s = /* @__PURE__ */ new Date();
9582
- return { id: Yt(), projectSettings: Ca(e), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || ya({ 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: e.shard?.total ?? 1, workers: e.workers, machineInfo: i, updatedAt: s };
9581
+ const n = ha(), i = ma(), s = /* @__PURE__ */ new Date();
9582
+ return { id: Yt(), projectSettings: va(e), startedAt: s, suiteId: this.testSuiteRunId, title: r.title || ba({ 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: e.shard?.total ?? 1, workers: e.workers, machineInfo: i, updatedAt: s };
9583
9583
  }
9584
9584
  extractTestCaseInfo(e, r) {
9585
9585
  const n = ir({ absolutePath: e.location.file, rootDir: this.rootDir }), i = e.parent.project(), s = i?.name, a = i?.use?.defaultBrowserType, l = this.testIdMap.get(e.id), h = l ?? Yt();
@@ -9616,7 +9616,7 @@ class Cn {
9616
9616
  return e.body ? Buffer.from(e.body) : e.path ? Vt.readFileSync(e.path) : void 0;
9617
9617
  }
9618
9618
  async scrubTraceFromFile({ attachmentPath: e, sensitiveValues: r, traceFd: n }) {
9619
- return n !== void 0 ? _s({ sensitiveValues: r, traceFd: n, tracePath: e }) : Es({ sensitiveValues: r, tracePath: e });
9619
+ return n !== void 0 ? Is({ sensitiveValues: r, traceFd: n, tracePath: e }) : _s({ sensitiveValues: r, tracePath: e });
9620
9620
  }
9621
9621
  handleWebSocketError(e) {
9622
9622
  e.code === Jr.AUTHENTICATION_FAILED && (console.error(it.bold(it.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);
@@ -9628,7 +9628,7 @@ class Cn {
9628
9628
  const i = n.map(async ({ artifactId: s, name: a, uploadUrl: l }) => {
9629
9629
  const h = `${r}-${e}-${s}`, d = this.attachmentFiles.get(h);
9630
9630
  if (d) try {
9631
- await Ea({ fileData: d, maxRetries: 3, requestTimeoutMs: Ta, uploadUrl: l }), this.attachmentFiles.delete(h);
9631
+ await _a({ fileData: d, maxRetries: 3, requestTimeoutMs: Aa, uploadUrl: l }), this.attachmentFiles.delete(h);
9632
9632
  } catch (g) {
9633
9633
  const A = g instanceof Error ? g.message : String(g);
9634
9634
  console.error(`[StablyAI reporter] Failed to upload ${a} after retries: ${A}`);
@@ -9637,11 +9637,11 @@ class Cn {
9637
9637
  await Promise.allSettled(i);
9638
9638
  }
9639
9639
  }
9640
- function va(t) {
9640
+ function Ua(t) {
9641
9641
  return ["@stablyai/playwright-test/reporter", t];
9642
9642
  }
9643
- c(va, "stablyReporter");
9643
+ c(Ua, "stablyReporter");
9644
9644
 
9645
- exports.Cn = Cn;
9646
- exports.va = va;
9647
- //# sourceMappingURL=index-D7GNnxbC.cjs.map
9645
+ exports.Ua = Ua;
9646
+ exports.vn = vn;
9647
+ //# sourceMappingURL=index-Li4YhdtX.cjs.map