@lousy-agents/lint 5.17.1 → 5.17.3

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.
Files changed (4) hide show
  1. package/dist/316.js +408 -379
  2. package/dist/653.js +173 -371
  3. package/dist/index.js +178 -227
  4. package/package.json +1 -1
package/dist/316.js CHANGED
@@ -3,7 +3,6 @@ export const __rspack_esm_ids = [316];
3
3
  export const __webpack_modules__ = {
4
4
  5375(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
5
5
  var zlib__rspack_import_11_namespace_cache;
6
- __webpack_require__.r(__webpack_exports__);
7
6
  /* import */ var _rolldown_runtime_mjs__rspack_import_14 = __webpack_require__(421);
8
7
  /* import */ var node_fs__rspack_import_0 = __webpack_require__(3024);
9
8
  /* import */ var node_fs_promises__rspack_import_1 = __webpack_require__(1455);
@@ -35,29 +34,29 @@ __webpack_require__.r(__webpack_exports__);
35
34
 
36
35
 
37
36
 
38
- var ce = (0,_rolldown_runtime_mjs__rspack_import_14.t)({
37
+ var ce = (0,_rolldown_runtime_mjs__rspack_import_14/* .__exportAll */.I)({
39
38
  Header: () => I,
40
- Pack: () => ni,
41
- PackJob: () => Ir,
42
- PackSync: () => ri,
39
+ Pack: () => ii,
40
+ PackJob: () => Lr,
41
+ PackSync: () => ai,
43
42
  Parser: () => Jn,
44
- Pax: () => hn,
45
- ReadEntry: () => yn,
46
- Unpack: () => _a,
47
- UnpackSync: () => ya,
48
- WriteEntry: () => Dr,
49
- WriteEntrySync: () => Or,
50
- WriteEntryTar: () => kr,
51
- c: () => ci,
52
- create: () => ci,
53
- extract: () => ba,
43
+ Pax: () => gn,
44
+ ReadEntry: () => bn,
45
+ Unpack: () => ya,
46
+ UnpackSync: () => xa,
47
+ WriteEntry: () => Or,
48
+ WriteEntrySync: () => kr,
49
+ WriteEntryTar: () => Ar,
50
+ c: () => ui,
51
+ create: () => ui,
52
+ extract: () => Sa,
54
53
  filesFilter: () => Zn,
55
54
  list: () => Qn,
56
- r: () => Ea,
57
- replace: () => Ea,
55
+ r: () => Oa,
56
+ replace: () => Oa,
58
57
  t: () => Qn,
59
58
  types: () => Xt,
60
- x: () => ba
59
+ x: () => Sa
61
60
  }), le = Object.defineProperty, ue = (e, t) => {
62
61
  for (var n in t) le(e, n, {
63
62
  get: t[n],
@@ -113,7 +112,7 @@ var ce = (0,_rolldown_runtime_mjs__rspack_import_14.t)({
113
112
  constructor(...e) {
114
113
  let t = e[0] || {};
115
114
  if (super(), t.objectMode && typeof t.encoding == `string`) throw TypeError(`Encoding and objectMode may not be used together`);
116
- Ve(t) ? (this[C] = !0, this[v] = null) : He(t) ? (this[v] = t.encoding, this[C] = !1) : (this[C] = !1, this[v] = null), this[T] = !!t.async, this[xe] = this[v] ? new node_string_decoder__rspack_import_7.StringDecoder(this[v]) : null, t && t.debugExposeBuffer === !0 && Object.defineProperty(this, `buffer`, { get: () => this[b] }), t && t.debugExposePipes === !0 && Object.defineProperty(this, `pipes`, { get: () => this[x] });
115
+ Ve(t) ? (this[C] = !0, this[v] = null) : He(t) ? (this[v] = t.encoding, this[C] = !1) : (this[C] = !1, this[v] = null), this[T] = !!t.async, this[xe] = this[v] ? new node_string_decoder__rspack_import_7.StringDecoder(this[v]) : null, t && t.debugExposeBuffer === !0 && Object.defineProperty(this, "buffer", { get: () => this[b] }), t && t.debugExposePipes === !0 && Object.defineProperty(this, "pipes", { get: () => this[x] });
117
116
  let { signal: n } = t;
118
117
  n && (this[Me] = n, n.aborted ? this[Ae]() : n.addEventListener(`abort`, () => this[Ae]()));
119
118
  }
@@ -917,12 +916,24 @@ while (this[be](this[Te]()) && this[b].length);
917
916
  return n;
918
917
  }, Jt = (e) => (255 ^ e) & 255, Yt = (e) => (255 ^ e) + 1 & 255, Xt = {};
919
918
  ue(Xt, {
920
- code: () => en,
919
+ code: () => tn,
921
920
  isCode: () => Zt,
922
921
  isName: () => Qt,
923
- name: () => $t
922
+ name: () => en,
923
+ normalFsTypes: () => $t
924
924
  });
925
- var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
925
+ var Zt = (e) => en.has(e), Qt = (e) => tn.has(e), $t = new Set([
926
+ `0`,
927
+ ``,
928
+ `1`,
929
+ `2`,
930
+ `3`,
931
+ `4`,
932
+ `5`,
933
+ `6`,
934
+ `7`,
935
+ `D`
936
+ ]), en = new Map([
926
937
  [`0`, `File`],
927
938
  [``, `OldFile`],
928
939
  [`1`, `Link`],
@@ -944,7 +955,7 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
944
955
  [`S`, `SparseFile`],
945
956
  [`V`, `TapeVolumeHeader`],
946
957
  [`X`, `OldExtendedHeader`]
947
- ]), en = new Map(Array.from($t).map((e) => [e[1], e[0]])), I = class {
958
+ ]), tn = new Map(Array.from(en).map((e) => [e[1], e[0]])), I = class {
948
959
  cksumValid = !1;
949
960
  needPax = !1;
950
961
  nullBlock = !1;
@@ -971,43 +982,44 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
971
982
  }
972
983
  decode(e, t, n, r) {
973
984
  if (t ||= 0, !e || !(e.length >= t + 512)) throw Error(`need 512 bytes for header`);
974
- this.path = n?.path ?? nn(e, t, 100), this.mode = n?.mode ?? r?.mode ?? L(e, t + 100, 8), this.uid = n?.uid ?? r?.uid ?? L(e, t + 108, 8), this.gid = n?.gid ?? r?.gid ?? L(e, t + 116, 8), this.size = n?.size ?? r?.size ?? L(e, t + 124, 12), this.mtime = n?.mtime ?? r?.mtime ?? rn(e, t + 136, 12), this.cksum = L(e, t + 148, 12), r && this.#i(r, !0), n && this.#i(n);
975
- let i = nn(e, t + 156, 1);
976
- if (Zt(i) && (this.#t = i || `0`), this.#t === `0` && this.path.slice(-1) === `/` && (this.#t = `5`), this.#t === `5` && (this.size = 0), this.linkpath = nn(e, t + 157, 100), e.subarray(t + 257, t + 265).toString() === `ustar\x0000`) if (this.uname = n?.uname ?? r?.uname ?? nn(e, t + 265, 32), this.gname = n?.gname ?? r?.gname ?? nn(e, t + 297, 32), this.devmaj = n?.devmaj ?? r?.devmaj ?? L(e, t + 329, 8) ?? 0, this.devmin = n?.devmin ?? r?.devmin ?? L(e, t + 337, 8) ?? 0, e[t + 475] !== 0) this.path = nn(e, t + 345, 155) + `/` + this.path;
977
- else {
978
- let i = nn(e, t + 345, 130);
979
- i && (this.path = i + `/` + this.path), this.atime = n?.atime ?? r?.atime ?? rn(e, t + 476, 12), this.ctime = n?.ctime ?? r?.ctime ?? rn(e, t + 488, 12);
985
+ let i = rn(e, t + 156, 1), a = $t.has(i), o = a ? n : void 0, s = a ? r : void 0;
986
+ if (this.path = o?.path ?? rn(e, t, 100), this.mode = o?.mode ?? s?.mode ?? L(e, t + 100, 8), this.uid = o?.uid ?? s?.uid ?? L(e, t + 108, 8), this.gid = o?.gid ?? s?.gid ?? L(e, t + 116, 8), this.size = o?.size ?? s?.size ?? L(e, t + 124, 12), this.mtime = o?.mtime ?? s?.mtime ?? an(e, t + 136, 12), this.cksum = L(e, t + 148, 12), s && this.#i(s, !0), o && this.#i(o), Zt(i) && (this.#t = i || `0`), this.#t === `0` && this.path.slice(-1) === `/` && (this.#t = `5`), this.#t === `5` && (this.size = 0), this.linkpath = rn(e, t + 157, 100), e.subarray(t + 257, t + 265).toString() === `ustar\x0000`) if (this.uname = o?.uname ?? s?.uname ?? rn(e, t + 265, 32), this.gname = o?.gname ?? s?.gname ?? rn(e, t + 297, 32), this.devmaj = o?.devmaj ?? s?.devmaj ?? L(e, t + 329, 8) ?? 0, this.devmin = o?.devmin ?? s?.devmin ?? L(e, t + 337, 8) ?? 0, e[t + 475] !== 0) {
987
+ let n = rn(e, t + 345, 155);
988
+ this.path = n + `/` + this.path;
989
+ } else {
990
+ let i = rn(e, t + 345, 130);
991
+ i && (this.path = i + `/` + this.path), this.atime = n?.atime ?? r?.atime ?? an(e, t + 476, 12), this.ctime = n?.ctime ?? r?.ctime ?? an(e, t + 488, 12);
980
992
  }
981
- let a = 256;
982
- for (let n = t; n < t + 148; n++) a += e[n];
983
- for (let n = t + 156; n < t + 512; n++) a += e[n];
984
- this.cksumValid = a === this.cksum, this.cksum === void 0 && a === 256 && (this.nullBlock = !0);
993
+ let c = 256;
994
+ for (let n = t; n < t + 148; n++) c += e[n];
995
+ for (let n = t + 156; n < t + 512; n++) c += e[n];
996
+ this.cksumValid = c === this.cksum, this.cksum === void 0 && c === 256 && (this.nullBlock = !0);
985
997
  }
986
998
  #i(e, t = !1) {
987
999
  Object.assign(this, Object.fromEntries(Object.entries(e).filter(([e, n]) => !(n == null || e === `path` && t || e === `linkpath` && t || e === `global`))));
988
1000
  }
989
1001
  encode(e, t = 0) {
990
1002
  if (e ||= this.block = Buffer.alloc(512), this.#t === `Unsupported` && (this.#t = `0`), !(e.length >= t + 512)) throw Error(`need 512 bytes for header`);
991
- let n = this.ctime || this.atime ? 130 : 155, r = tn(this.path || ``, n), i = r[0], a = r[1];
992
- this.needPax = !!r[2], this.needPax = mn(e, t, 100, i) || this.needPax, this.needPax = R(e, t + 100, 8, this.mode) || this.needPax, this.needPax = R(e, t + 108, 8, this.uid) || this.needPax, this.needPax = R(e, t + 116, 8, this.gid) || this.needPax, this.needPax = R(e, t + 124, 12, this.size) || this.needPax, this.needPax = fn(e, t + 136, 12, this.mtime) || this.needPax, e[t + 156] = Number(this.#t.codePointAt(0)), this.needPax = mn(e, t + 157, 100, this.linkpath) || this.needPax, e.write(`ustar\x0000`, t + 257, 8), this.needPax = mn(e, t + 265, 32, this.uname) || this.needPax, this.needPax = mn(e, t + 297, 32, this.gname) || this.needPax, this.needPax = R(e, t + 329, 8, this.devmaj) || this.needPax, this.needPax = R(e, t + 337, 8, this.devmin) || this.needPax, this.needPax = mn(e, t + 345, n, a) || this.needPax, e[t + 475] === 0 ? (this.needPax = mn(e, t + 345, 130, a) || this.needPax, this.needPax = fn(e, t + 476, 12, this.atime) || this.needPax, this.needPax = fn(e, t + 488, 12, this.ctime) || this.needPax) : this.needPax = mn(e, t + 345, 155, a) || this.needPax;
1003
+ let n = this.ctime || this.atime ? 130 : 155, r = nn(this.path || ``, n), i = r[0], a = r[1];
1004
+ this.needPax = !!r[2], this.needPax = hn(e, t, 100, i) || this.needPax, this.needPax = R(e, t + 100, 8, this.mode) || this.needPax, this.needPax = R(e, t + 108, 8, this.uid) || this.needPax, this.needPax = R(e, t + 116, 8, this.gid) || this.needPax, this.needPax = R(e, t + 124, 12, this.size) || this.needPax, this.needPax = pn(e, t + 136, 12, this.mtime) || this.needPax, e[t + 156] = Number(this.#t.codePointAt(0)), this.needPax = hn(e, t + 157, 100, this.linkpath) || this.needPax, e.write(`ustar\x0000`, t + 257, 8), this.needPax = hn(e, t + 265, 32, this.uname) || this.needPax, this.needPax = hn(e, t + 297, 32, this.gname) || this.needPax, this.needPax = R(e, t + 329, 8, this.devmaj) || this.needPax, this.needPax = R(e, t + 337, 8, this.devmin) || this.needPax, this.needPax = hn(e, t + 345, n, a) || this.needPax, e[t + 475] === 0 ? (this.needPax = hn(e, t + 345, 130, a) || this.needPax, this.needPax = pn(e, t + 476, 12, this.atime) || this.needPax, this.needPax = pn(e, t + 488, 12, this.ctime) || this.needPax) : this.needPax = hn(e, t + 345, 155, a) || this.needPax;
993
1005
  let o = 256;
994
1006
  for (let n = t; n < t + 148; n++) o += e[n];
995
1007
  for (let n = t + 156; n < t + 512; n++) o += e[n];
996
1008
  return this.cksum = o, R(e, t + 148, 8, this.cksum), this.cksumValid = !0, this.needPax;
997
1009
  }
998
1010
  get type() {
999
- return this.#t === `Unsupported` ? this.#t : $t.get(this.#t);
1011
+ return this.#t === `Unsupported` ? this.#t : en.get(this.#t);
1000
1012
  }
1001
1013
  get typeKey() {
1002
1014
  return this.#t;
1003
1015
  }
1004
1016
  set type(e) {
1005
- let t = String(en.get(e));
1017
+ let t = String(tn.get(e));
1006
1018
  if (Zt(t) || t === `Unsupported`) this.#t = t;
1007
1019
  else if (Zt(e)) this.#t = e;
1008
1020
  else throw TypeError(`invalid entry type: ` + e);
1009
1021
  }
1010
- }, tn = (e, t) => {
1022
+ }, nn = (e, t) => {
1011
1023
  let n = e, r = ``, i, a = node_path__rspack_import_3.posix.parse(e).root || `.`;
1012
1024
  if (Buffer.byteLength(n) < 100) i = [
1013
1025
  n,
@@ -1034,10 +1046,10 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1034
1046
  ];
1035
1047
  }
1036
1048
  return i;
1037
- }, nn = (e, t, n) => e.subarray(t, t + n).toString(`utf8`).replace(/\0.*/, ``), rn = (e, t, n) => an(L(e, t, n)), an = (e) => e === void 0 ? void 0 : /* @__PURE__ */ new Date(e * 1e3), L = (e, t, n) => Number(e[t]) & 128 ? Gt(e.subarray(t, t + n)) : sn(e, t, n), on = (e) => isNaN(e) ? void 0 : e, sn = (e, t, n) => on(parseInt(e.subarray(t, t + n).toString(`utf8`).replace(/\0.*$/, ``).trim(), 8)), cn = {
1049
+ }, rn = (e, t, n) => e.subarray(t, t + n).toString(`utf8`).replace(/\0.*/, ``), an = (e, t, n) => on(L(e, t, n)), on = (e) => e === void 0 ? void 0 : /* @__PURE__ */ new Date(e * 1e3), L = (e, t, n) => Number(e[t]) & 128 ? Gt(e.subarray(t, t + n)) : cn(e, t, n), sn = (e) => isNaN(e) ? void 0 : e, cn = (e, t, n) => sn(parseInt(e.subarray(t, t + n).toString(`utf8`).replace(/\0.*$/, ``).trim(), 8)), ln = {
1038
1050
  12: 8589934591,
1039
1051
  8: 2097151
1040
- }, R = (e, t, n, r) => r === void 0 ? !1 : r > cn[n] || r < 0 ? (Ht(r, e.subarray(t, t + n)), !0) : (ln(e, t, n, r), !1), ln = (e, t, n, r) => e.write(un(r, n), t, n, `ascii`), un = (e, t) => dn(Math.floor(e).toString(8), t), dn = (e, t) => (e.length === t - 1 ? e : Array(t - e.length - 1).join(`0`) + e + ` `) + `\0`, fn = (e, t, n, r) => r === void 0 ? !1 : R(e, t, n, r.getTime() / 1e3), pn = Array(156).join(`\0`), mn = (e, t, n, r) => r === void 0 ? !1 : (e.write(r + pn, t, n, `utf8`), r.length !== Buffer.byteLength(r) || r.length > n), hn = class e {
1052
+ }, R = (e, t, n, r) => r === void 0 ? !1 : r > ln[n] || r < 0 ? (Ht(r, e.subarray(t, t + n)), !0) : (un(e, t, n, r), !1), un = (e, t, n, r) => e.write(dn(r, n), t, n, `ascii`), dn = (e, t) => fn(Math.floor(e).toString(8), t), fn = (e, t) => (e.length === t - 1 ? e : Array(t - e.length - 1).join(`0`) + e + ` `) + `\0`, pn = (e, t, n, r) => r === void 0 ? !1 : R(e, t, n, r.getTime() / 1e3), mn = Array(156).join(`\0`), hn = (e, t, n, r) => r === void 0 ? !1 : (e.write(r + mn, t, n, `utf8`), r.length !== Buffer.byteLength(r) || r.length > n), gn = class e {
1041
1053
  atime;
1042
1054
  mtime;
1043
1055
  ctime;
@@ -1092,10 +1104,10 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1092
1104
  return i + a >= 10 ** a && (a += 1), a + i + r;
1093
1105
  }
1094
1106
  static parse(t, n, r = !1) {
1095
- return new e(gn(_n(t), n), r);
1107
+ return new e(_n(vn(t), n), r);
1096
1108
  }
1097
- }, gn = (e, t) => t ? Object.assign({}, t, e) : e, _n = (e) => e.replace(/\n$/, ``).split(`
1098
- `).reduce(vn, Object.create(null)), vn = (e, t) => {
1109
+ }, _n = (e, t) => t ? Object.assign({}, t, e) : e, vn = (e) => e.replace(/\n$/, ``).split(`
1110
+ `).reduce(yn, Object.create(null)), yn = (e, t) => {
1099
1111
  let n = parseInt(t, 10);
1100
1112
  if (n !== Buffer.byteLength(t) + 1) return e;
1101
1113
  t = t.slice((n + ` `).length);
@@ -1103,7 +1115,7 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1103
1115
  if (!i) return e;
1104
1116
  let a = i.replace(/^SCHILY\.(dev|ino|nlink)/, `$1`), o = r.join(`=`);
1105
1117
  return e[a] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a) ? /* @__PURE__ */ new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, e;
1106
- }, z = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === `win32` ? (e) => e && e.replaceAll(/\\/g, `/`) : (e) => e, yn = class extends Ue {
1118
+ }, z = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === `win32` ? (e) => e && e.replaceAll(/\\/g, `/`) : (e) => e, bn = class extends Ue {
1107
1119
  extended;
1108
1120
  globalExtended;
1109
1121
  header;
@@ -1164,14 +1176,14 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1164
1176
  #t(e, t = !1) {
1165
1177
  e.path &&= z(e.path), e.linkpath &&= z(e.linkpath), Object.assign(this, Object.fromEntries(Object.entries(e).filter(([e, n]) => !(n == null || e === `path` && t))));
1166
1178
  }
1167
- }, bn = (e, t, n, r = {}) => {
1179
+ }, xn = (e, t, n, r = {}) => {
1168
1180
  e.file && (r.file = e.file), e.cwd && (r.cwd = e.cwd), r.code = n instanceof Error && n.code || t, r.tarCode = t, !e.strict && r.recoverable !== !1 ? (n instanceof Error && (r = Object.assign(n, r), n = n.message), e.emit(`warn`, t, n, r)) : n instanceof Error ? e.emit(`error`, Object.assign(n, r)) : e.emit(`error`, Object.assign(Error(`${t}: ${n}`), r));
1169
- }, xn = 1024 * 1024, Sn = Buffer.from([31, 139]), Cn = Buffer.from([
1181
+ }, Sn = 1024 * 1024, Cn = Buffer.from([31, 139]), wn = Buffer.from([
1170
1182
  40,
1171
1183
  181,
1172
1184
  47,
1173
1185
  253
1174
- ]), wn = Math.max(Sn.length, Cn.length), B = Symbol(`state`), Tn = Symbol(`writeEntry`), V = Symbol(`readEntry`), En = Symbol(`nextEntry`), Dn = Symbol(`processEntry`), H = Symbol(`extendedHeader`), On = Symbol(`globalExtendedHeader`), kn = Symbol(`meta`), An = Symbol(`emitMeta`), U = Symbol(`buffer`), W = Symbol(`queue`), G = Symbol(`ended`), jn = Symbol(`emittedEnd`), Mn = Symbol(`emit`), K = Symbol(`unzip`), Nn = Symbol(`consumeChunk`), Pn = Symbol(`consumeChunkSub`), Fn = Symbol(`consumeBody`), In = Symbol(`consumeMeta`), Ln = Symbol(`consumeHeader`), Rn = Symbol(`consuming`), zn = Symbol(`bufferConcat`), Bn = Symbol(`maybeEnd`), Vn = Symbol(`writing`), q = Symbol(`aborted`), Hn = Symbol(`onDone`), Un = Symbol(`sawValidEntry`), Wn = Symbol(`sawNullBlock`), Gn = Symbol(`sawEOF`), Kn = Symbol(`closeStream`), qn = () => !0, Jn = class extends events__rspack_import_4.EventEmitter {
1186
+ ]), Tn = Math.max(Cn.length, wn.length), B = Symbol(`state`), En = Symbol(`writeEntry`), V = Symbol(`readEntry`), Dn = Symbol(`nextEntry`), On = Symbol(`processEntry`), H = Symbol(`extendedHeader`), kn = Symbol(`globalExtendedHeader`), U = Symbol(`meta`), An = Symbol(`emitMeta`), W = Symbol(`buffer`), G = Symbol(`queue`), K = Symbol(`ended`), jn = Symbol(`emittedEnd`), Mn = Symbol(`emit`), q = Symbol(`unzip`), Nn = Symbol(`consumeChunk`), Pn = Symbol(`consumeChunkSub`), Fn = Symbol(`consumeBody`), In = Symbol(`consumeMeta`), Ln = Symbol(`consumeHeader`), Rn = Symbol(`consuming`), zn = Symbol(`bufferConcat`), Bn = Symbol(`maybeEnd`), Vn = Symbol(`writing`), J = Symbol(`aborted`), Hn = Symbol(`onDone`), Un = Symbol(`sawValidEntry`), Wn = Symbol(`sawNullBlock`), Gn = Symbol(`sawEOF`), Kn = Symbol(`closeStream`), qn = () => !0, Jn = class extends events__rspack_import_4.EventEmitter {
1175
1187
  file;
1176
1188
  strict;
1177
1189
  maxMetaEntrySize;
@@ -1180,17 +1192,17 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1180
1192
  zstd;
1181
1193
  writable = !0;
1182
1194
  readable = !1;
1183
- [W] = [];
1184
- [U];
1195
+ [G] = [];
1196
+ [W];
1185
1197
  [V];
1186
- [Tn];
1198
+ [En];
1187
1199
  [B] = `begin`;
1188
- [kn] = ``;
1200
+ [U] = ``;
1189
1201
  [H];
1190
- [On];
1191
- [G] = !1;
1192
- [K];
1193
- [q] = !1;
1202
+ [kn];
1203
+ [K] = !1;
1204
+ [q];
1205
+ [J] = !1;
1194
1206
  [Un];
1195
1207
  [Wn] = !1;
1196
1208
  [Gn] = !1;
@@ -1202,20 +1214,20 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1202
1214
  (this[B] === `begin` || this[Un] === !1) && this.warn(`TAR_BAD_ARCHIVE`, `Unrecognized archive format`);
1203
1215
  }), e.ondone ? this.on(Hn, e.ondone) : this.on(Hn, () => {
1204
1216
  this.emit(`prefinish`), this.emit(`finish`), this.emit(`end`);
1205
- }), this.strict = !!e.strict, this.maxMetaEntrySize = e.maxMetaEntrySize || xn, this.filter = typeof e.filter == `function` ? e.filter : qn;
1217
+ }), this.strict = !!e.strict, this.maxMetaEntrySize = e.maxMetaEntrySize || Sn, this.filter = typeof e.filter == `function` ? e.filter : qn;
1206
1218
  let t = e.file && (e.file.endsWith(`.tar.br`) || e.file.endsWith(`.tbr`));
1207
1219
  this.brotli = !(e.gzip || e.zstd) && e.brotli !== void 0 ? e.brotli : t ? void 0 : !1;
1208
1220
  let n = e.file && (e.file.endsWith(`.tar.zst`) || e.file.endsWith(`.tzst`));
1209
1221
  this.zstd = !(e.gzip || e.brotli) && e.zstd !== void 0 ? e.zstd : n ? !0 : void 0, this.on(`end`, () => this[Kn]()), typeof e.onwarn == `function` && this.on(`warn`, e.onwarn), typeof e.onReadEntry == `function` && this.on(`entry`, e.onReadEntry);
1210
1222
  }
1211
1223
  warn(e, t, n = {}) {
1212
- bn(this, e, t, n);
1224
+ xn(this, e, t, n);
1213
1225
  }
1214
1226
  [Ln](e, t) {
1215
1227
  this[Un] === void 0 && (this[Un] = !1);
1216
1228
  let n;
1217
1229
  try {
1218
- n = new I(e, t, this[H], this[On]);
1230
+ n = new I(e, t, this[H], this[kn]);
1219
1231
  } catch (e) {
1220
1232
  return this.warn(`TAR_ENTRY_INVALID`, e);
1221
1233
  }
@@ -1227,144 +1239,144 @@ var Zt = (e) => $t.has(e), Qt = (e) => en.has(e), $t = new Map([
1227
1239
  if (/^(Symbolic)?Link$/.test(e) && !n.linkpath) this.warn(`TAR_ENTRY_INVALID`, `linkpath required`, { header: n });
1228
1240
  else if (!/^(Symbolic)?Link$/.test(e) && !/^(Global)?ExtendedHeader$/.test(e) && n.linkpath) this.warn(`TAR_ENTRY_INVALID`, `linkpath forbidden`, { header: n });
1229
1241
  else {
1230
- let e = this[Tn] = new yn(n, this[H], this[On]);
1242
+ let e = this[En] = new bn(n, this[H], this[kn]);
1231
1243
  this[Un] || (e.remain ? e.on(`end`, () => {
1232
1244
  e.invalid || (this[Un] = !0);
1233
- }) : this[Un] = !0), e.meta ? e.size > this.maxMetaEntrySize ? (e.ignore = !0, this[Mn](`ignoredEntry`, e), this[B] = `ignore`, e.resume()) : e.size > 0 && (this[kn] = ``, e.on(`data`, (e) => this[kn] += e), this[B] = `meta`) : (this[H] = void 0, e.ignore = e.ignore || !this.filter(e.path, e), e.ignore ? (this[Mn](`ignoredEntry`, e), this[B] = e.remain ? `ignore` : `header`, e.resume()) : (e.remain ? this[B] = `body` : (this[B] = `header`, e.end()), this[V] ? this[W].push(e) : (this[W].push(e), this[En]())));
1245
+ }) : this[Un] = !0), e.meta ? e.size > this.maxMetaEntrySize ? (e.ignore = !0, this[Mn](`ignoredEntry`, e), this[B] = `ignore`, e.resume()) : e.size > 0 && (this[U] = ``, e.on(`data`, (e) => this[U] += e), this[B] = `meta`) : (this[H] = void 0, e.ignore = e.ignore || !this.filter(e.path, e), e.ignore ? (this[Mn](`ignoredEntry`, e), this[B] = e.remain ? `ignore` : `header`, e.resume()) : (e.remain ? this[B] = `body` : (this[B] = `header`, e.end()), this[V] ? this[G].push(e) : (this[G].push(e), this[Dn]())));
1234
1246
  }
1235
1247
  }
1236
1248
  }
1237
1249
  [Kn]() {
1238
1250
  queueMicrotask(() => this.emit(`close`));
1239
1251
  }
1240
- [Dn](e) {
1252
+ [On](e) {
1241
1253
  let t = !0;
1242
1254
  if (!e) this[V] = void 0, t = !1;
1243
1255
  else if (Array.isArray(e)) {
1244
1256
  let [t, ...n] = e;
1245
1257
  this.emit(t, ...n);
1246
- } else this[V] = e, this.emit(`entry`, e), e.emittedEnd || (e.on(`end`, () => this[En]()), t = !1);
1258
+ } else this[V] = e, this.emit(`entry`, e), e.emittedEnd || (e.on(`end`, () => this[Dn]()), t = !1);
1247
1259
  return t;
1248
1260
  }
1249
- [En]() {
1261
+ [Dn]() {
1250
1262
  do ;
1251
- while (this[Dn](this[W].shift()));
1252
- if (this[W].length === 0) {
1263
+ while (this[On](this[G].shift()));
1264
+ if (this[G].length === 0) {
1253
1265
  let e = this[V];
1254
1266
  !e || e.flowing || e.size === e.remain ? this[Vn] || this.emit(`drain`) : e.once(`drain`, () => this.emit(`drain`));
1255
1267
  }
1256
1268
  }
1257
1269
  [Fn](e, t) {
1258
- let n = this[Tn];
1270
+ let n = this[En];
1259
1271
  if (!n) throw Error(`attempt to consume body without entry??`);
1260
1272
  let r = n.blockRemain ?? 0, i = r >= e.length && t === 0 ? e : e.subarray(t, t + r);
1261
- return n.write(i), n.blockRemain || (this[B] = `header`, this[Tn] = void 0, n.end()), i.length;
1273
+ return n.write(i), n.blockRemain || (this[B] = `header`, this[En] = void 0, n.end()), i.length;
1262
1274
  }
1263
1275
  [In](e, t) {
1264
- let n = this[Tn], r = this[Fn](e, t);
1265
- return !this[Tn] && n && this[An](n), r;
1276
+ let n = this[En], r = this[Fn](e, t);
1277
+ return !this[En] && n && this[An](n), r;
1266
1278
  }
1267
1279
  [Mn](e, t, n) {
1268
- this[W].length === 0 && !this[V] ? this.emit(e, t, n) : this[W].push([
1280
+ this[G].length === 0 && !this[V] ? this.emit(e, t, n) : this[G].push([
1269
1281
  e,
1270
1282
  t,
1271
1283
  n
1272
1284
  ]);
1273
1285
  }
1274
1286
  [An](e) {
1275
- switch (this[Mn](`meta`, this[kn]), e.type) {
1287
+ switch (this[Mn](`meta`, this[U]), e.type) {
1276
1288
  case `ExtendedHeader`:
1277
1289
  case `OldExtendedHeader`:
1278
- this[H] = hn.parse(this[kn], this[H], !1);
1290
+ this[H] = gn.parse(this[U], this[H], !1);
1279
1291
  break;
1280
1292
  case `GlobalExtendedHeader`:
1281
- this[On] = hn.parse(this[kn], this[On], !0);
1293
+ this[kn] = gn.parse(this[U], this[kn], !0);
1282
1294
  break;
1283
1295
  case `NextFileHasLongPath`:
1284
1296
  case `OldGnuLongPath`: {
1285
1297
  let e = this[H] ?? Object.create(null);
1286
- this[H] = e, e.path = this[kn].replace(/\0.*/, ``);
1298
+ this[H] = e, e.path = this[U].replace(/\0.*/, ``);
1287
1299
  break;
1288
1300
  }
1289
1301
  case `NextFileHasLongLinkpath`: {
1290
1302
  let e = this[H] || Object.create(null);
1291
- this[H] = e, e.linkpath = this[kn].replace(/\0.*/, ``);
1303
+ this[H] = e, e.linkpath = this[U].replace(/\0.*/, ``);
1292
1304
  break;
1293
1305
  }
1294
1306
  default: throw Error(`unknown meta: ` + e.type);
1295
1307
  }
1296
1308
  }
1297
1309
  abort(e) {
1298
- this[q] = !0, this.emit(`abort`, e), this.warn(`TAR_ABORT`, e, { recoverable: !1 });
1310
+ this[J] = !0, this.emit(`abort`, e), this.warn(`TAR_ABORT`, e, { recoverable: !1 });
1299
1311
  }
1300
1312
  write(e, t, n) {
1301
- if (typeof t == `function` && (n = t, t = void 0), typeof e == `string` && (e = Buffer.from(e, typeof t == `string` ? t : `utf8`)), this[q]) return n?.(), !1;
1302
- if ((this[K] === void 0 || this.brotli === void 0 && this[K] === !1) && e) {
1303
- if (this[U] && (e = Buffer.concat([this[U], e]), this[U] = void 0), e.length < wn) return this[U] = e, n?.(), !0;
1304
- for (let t = 0; this[K] === void 0 && t < Sn.length; t++) e[t] !== Sn[t] && (this[K] = !1);
1313
+ if (typeof t == `function` && (n = t, t = void 0), typeof e == `string` && (e = Buffer.from(e, typeof t == `string` ? t : `utf8`)), this[J]) return n?.(), !1;
1314
+ if ((this[q] === void 0 || this.brotli === void 0 && this[q] === !1) && e) {
1315
+ if (this[W] && (e = Buffer.concat([this[W], e]), this[W] = void 0), e.length < Tn) return this[W] = e, n?.(), !0;
1316
+ for (let t = 0; this[q] === void 0 && t < Cn.length; t++) e[t] !== Cn[t] && (this[q] = !1);
1305
1317
  let t = !1;
1306
- if (this[K] === !1 && this.zstd !== !1) {
1318
+ if (this[q] === !1 && this.zstd !== !1) {
1307
1319
  t = !0;
1308
- for (let n = 0; n < Cn.length; n++) if (e[n] !== Cn[n]) {
1320
+ for (let n = 0; n < wn.length; n++) if (e[n] !== wn[n]) {
1309
1321
  t = !1;
1310
1322
  break;
1311
1323
  }
1312
1324
  }
1313
1325
  let r = this.brotli === void 0 && !t;
1314
- if (this[K] === !1 && r) if (e.length < 512) if (this[G]) this.brotli = !0;
1315
- else return this[U] = e, n?.(), !0;
1326
+ if (this[q] === !1 && r) if (e.length < 512) if (this[K]) this.brotli = !0;
1327
+ else return this[W] = e, n?.(), !0;
1316
1328
  else try {
1317
1329
  new I(e.subarray(0, 512)), this.brotli = !1;
1318
1330
  } catch {
1319
1331
  this.brotli = !0;
1320
1332
  }
1321
- if (this[K] === void 0 || this[K] === !1 && (this.brotli || t)) {
1322
- let r = this[G];
1323
- this[G] = !1, this[K] = this[K] === void 0 ? new Ft({}) : t ? new Vt({}) : new Rt({}), this[K].on(`data`, (e) => this[Nn](e)), this[K].on(`error`, (e) => this.abort(e)), this[K].on(`end`, () => {
1324
- this[G] = !0, this[Nn]();
1333
+ if (this[q] === void 0 || this[q] === !1 && (this.brotli || t)) {
1334
+ let r = this[K];
1335
+ this[K] = !1, this[q] = this[q] === void 0 ? new Ft({}) : t ? new Vt({}) : new Rt({}), this[q].on(`data`, (e) => this[Nn](e)), this[q].on(`error`, (e) => this.abort(e)), this[q].on(`end`, () => {
1336
+ this[K] = !0, this[Nn]();
1325
1337
  }), this[Vn] = !0;
1326
- let i = !!this[K][r ? `end` : `write`](e);
1338
+ let i = !!this[q][r ? `end` : `write`](e);
1327
1339
  return this[Vn] = !1, n?.(), i;
1328
1340
  }
1329
1341
  }
1330
- this[Vn] = !0, this[K] ? this[K].write(e) : this[Nn](e), this[Vn] = !1;
1331
- let r = this[W].length > 0 ? !1 : this[V] ? this[V].flowing : !0;
1332
- return !r && this[W].length === 0 && this[V]?.once(`drain`, () => this.emit(`drain`)), n?.(), r;
1342
+ this[Vn] = !0, this[q] ? this[q].write(e) : this[Nn](e), this[Vn] = !1;
1343
+ let r = this[G].length > 0 ? !1 : this[V] ? this[V].flowing : !0;
1344
+ return !r && this[G].length === 0 && this[V]?.once(`drain`, () => this.emit(`drain`)), n?.(), r;
1333
1345
  }
1334
1346
  [zn](e) {
1335
- e && !this[q] && (this[U] = this[U] ? Buffer.concat([this[U], e]) : e);
1347
+ e && !this[J] && (this[W] = this[W] ? Buffer.concat([this[W], e]) : e);
1336
1348
  }
1337
1349
  [Bn]() {
1338
- if (this[G] && !this[jn] && !this[q] && !this[Rn]) {
1350
+ if (this[K] && !this[jn] && !this[J] && !this[Rn]) {
1339
1351
  this[jn] = !0;
1340
- let e = this[Tn];
1352
+ let e = this[En];
1341
1353
  if (e && e.blockRemain) {
1342
- let t = this[U] ? this[U].length : 0;
1343
- this.warn(`TAR_BAD_ARCHIVE`, `Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`, { entry: e }), this[U] && e.write(this[U]), e.end();
1354
+ let t = this[W] ? this[W].length : 0;
1355
+ this.warn(`TAR_BAD_ARCHIVE`, `Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`, { entry: e }), this[W] && e.write(this[W]), e.end();
1344
1356
  }
1345
1357
  this[Mn](Hn);
1346
1358
  }
1347
1359
  }
1348
1360
  [Nn](e) {
1349
1361
  if (this[Rn] && e) this[zn](e);
1350
- else if (!e && !this[U]) this[Bn]();
1362
+ else if (!e && !this[W]) this[Bn]();
1351
1363
  else if (e) {
1352
- if (this[Rn] = !0, this[U]) {
1364
+ if (this[Rn] = !0, this[W]) {
1353
1365
  this[zn](e);
1354
- let t = this[U];
1355
- this[U] = void 0, this[Pn](t);
1366
+ let t = this[W];
1367
+ this[W] = void 0, this[Pn](t);
1356
1368
  } else this[Pn](e);
1357
- for (; this[U] && this[U]?.length >= 512 && !this[q] && !this[Gn];) {
1358
- let e = this[U];
1359
- this[U] = void 0, this[Pn](e);
1369
+ for (; this[W] && this[W]?.length >= 512 && !this[J] && !this[Gn];) {
1370
+ let e = this[W];
1371
+ this[W] = void 0, this[Pn](e);
1360
1372
  }
1361
1373
  this[Rn] = !1;
1362
1374
  }
1363
- (!this[U] || this[G]) && this[Bn]();
1375
+ (!this[W] || this[K]) && this[Bn]();
1364
1376
  }
1365
1377
  [Pn](e) {
1366
1378
  let t = 0, n = e.length;
1367
- for (; t + 512 <= n && !this[q] && !this[Gn];) switch (this[B]) {
1379
+ for (; t + 512 <= n && !this[J] && !this[Gn];) switch (this[B]) {
1368
1380
  case `begin`:
1369
1381
  case `header`:
1370
1382
  this[Ln](e, t), t += 512;
@@ -1378,10 +1390,10 @@ while (this[Dn](this[W].shift()));
1378
1390
  break;
1379
1391
  default: throw Error(`invalid state: ` + this[B]);
1380
1392
  }
1381
- t < n && (this[U] = this[U] ? Buffer.concat([e.subarray(t), this[U]]) : e.subarray(t));
1393
+ t < n && (this[W] = this[W] ? Buffer.concat([e.subarray(t), this[W]]) : e.subarray(t));
1382
1394
  }
1383
1395
  end(e, t, n) {
1384
- return typeof e == `function` && (n = e, t = void 0, e = void 0), typeof t == `function` && (n = t, t = void 0), typeof e == `string` && (e = Buffer.from(e, t)), n && this.once(`finish`, n), this[q] || (this[K] ? (e && this[K].write(e), this[K].end()) : (this[G] = !0, (this.brotli === void 0 || this.zstd === void 0) && (e ||= Buffer.alloc(0)), e && this.write(e), this[Bn]())), this;
1396
+ return typeof e == `function` && (n = e, t = void 0, e = void 0), typeof t == `function` && (n = t, t = void 0), typeof e == `string` && (e = Buffer.from(e, t)), n && this.once(`finish`, n), this[J] || (this[q] ? (e && this[q].write(e), this[q].end()) : (this[K] = !0, (this.brotli === void 0 || this.zstd === void 0) && (e ||= Buffer.alloc(0)), e && this.write(e), this[Bn]())), this;
1385
1397
  }
1386
1398
  }, Yn = (e) => {
1387
1399
  let t = e.length - 1, n = -1;
@@ -1454,7 +1466,7 @@ while (this[Dn](this[W].shift()));
1454
1466
  `>`,
1455
1467
  `?`,
1456
1468
  `:`
1457
- ], ir = rr.map((e) => String.fromCodePoint(61440 + Number(e.codePointAt(0)))), ar = new Map(rr.map((e, t) => [e, ir[t]])), or = new Map(ir.map((e, t) => [e, rr[t]])), sr = (e) => rr.reduce((e, t) => e.split(t).join(ar.get(t)), e), cr = (e) => ir.reduce((e, t) => e.split(t).join(or.get(t)), e), lr = (e, t) => t ? (e = z(e).replace(/^\.(\/|$)/, ``), Yn(t) + `/` + e) : z(e), ur = 16 * 1024 * 1024, dr = Symbol(`process`), fr = Symbol(`file`), pr = Symbol(`directory`), mr = Symbol(`symlink`), hr = Symbol(`hardlink`), gr = Symbol(`header`), _r = Symbol(`read`), vr = Symbol(`lstat`), yr = Symbol(`onlstat`), br = Symbol(`onread`), xr = Symbol(`onreadlink`), Sr = Symbol(`openfile`), Cr = Symbol(`onopenfile`), J = Symbol(`close`), wr = Symbol(`mode`), Tr = Symbol(`awaitDrain`), Er = Symbol(`ondrain`), Y = Symbol(`prefix`), Dr = class extends Ue {
1469
+ ], ir = rr.map((e) => String.fromCodePoint(61440 + Number(e.codePointAt(0)))), ar = new Map(rr.map((e, t) => [e, ir[t]])), or = new Map(ir.map((e, t) => [e, rr[t]])), sr = (e) => rr.reduce((e, t) => e.split(t).join(ar.get(t)), e), cr = (e) => ir.reduce((e, t) => e.split(t).join(or.get(t)), e), lr = (e, t) => t ? (e = z(e).replace(/^\.(\/|$)/, ``), Yn(t) + `/` + e) : z(e), ur = 16 * 1024 * 1024, dr = Symbol(`process`), fr = Symbol(`file`), pr = Symbol(`directory`), mr = Symbol(`symlink`), hr = Symbol(`hardlink`), gr = Symbol(`header`), _r = Symbol(`read`), vr = Symbol(`lstat`), yr = Symbol(`onlstat`), br = Symbol(`onread`), xr = Symbol(`onreadlink`), Sr = Symbol(`openfile`), Cr = Symbol(`onopenfile`), wr = Symbol(`close`), Tr = Symbol(`mode`), Er = Symbol(`awaitDrain`), Dr = Symbol(`ondrain`), Y = Symbol(`prefix`), Or = class extends Ue {
1458
1470
  path;
1459
1471
  portable;
1460
1472
  myuid = process.getuid && process.getuid() || 0;
@@ -1501,7 +1513,7 @@ while (this[Dn](this[W].shift()));
1501
1513
  i ? this[yr](i) : this[vr]();
1502
1514
  }
1503
1515
  warn(e, t, n = {}) {
1504
- return bn(this, e, t, n);
1516
+ return xn(this, e, t, n);
1505
1517
  }
1506
1518
  emit(e, ...t) {
1507
1519
  return e === `error` && (this.#t = !0), super.emit(e, ...t);
@@ -1513,7 +1525,7 @@ while (this[Dn](this[W].shift()));
1513
1525
  });
1514
1526
  }
1515
1527
  [yr](e) {
1516
- this.statCache.set(this.absolute, e), this.stat = e, e.isFile() || (e.size = 0), this.type = Ar(e), this.emit(`stat`, e), this[dr]();
1528
+ this.statCache.set(this.absolute, e), this.stat = e, e.isFile() || (e.size = 0), this.type = jr(e), this.emit(`stat`, e), this[dr]();
1517
1529
  }
1518
1530
  [dr]() {
1519
1531
  switch (this.type) {
@@ -1523,7 +1535,7 @@ while (this[Dn](this[W].shift()));
1523
1535
  default: return this.end();
1524
1536
  }
1525
1537
  }
1526
- [wr](e) {
1538
+ [Tr](e) {
1527
1539
  return $n(e, this.type === `Directory`, this.portable);
1528
1540
  }
1529
1541
  [Y](e) {
@@ -1534,7 +1546,7 @@ while (this[Dn](this[W].shift()));
1534
1546
  this.type === `Directory` && this.portable && (this.noMtime = !0), this.onWriteEntry?.(this), this.header = new I({
1535
1547
  path: this[Y](this.path),
1536
1548
  linkpath: this.type === `Link` && this.linkpath !== void 0 ? this[Y](this.linkpath) : this.linkpath,
1537
- mode: this[wr](this.stat.mode),
1549
+ mode: this[Tr](this.stat.mode),
1538
1550
  uid: this.portable ? void 0 : this.stat.uid,
1539
1551
  gid: this.portable ? void 0 : this.stat.gid,
1540
1552
  size: this.stat.size,
@@ -1543,7 +1555,7 @@ while (this[Dn](this[W].shift()));
1543
1555
  uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : ``,
1544
1556
  atime: this.portable ? void 0 : this.stat.atime,
1545
1557
  ctime: this.portable ? void 0 : this.stat.ctime
1546
- }), this.header.encode() && !this.noPax && super.write(new hn({
1558
+ }), this.header.encode() && !this.noPax && super.write(new gn({
1547
1559
  atime: this.portable ? void 0 : this.header.atime,
1548
1560
  ctime: this.portable ? void 0 : this.header.ctime,
1549
1561
  gid: this.portable ? void 0 : this.header.gid,
@@ -1595,7 +1607,7 @@ while (this[Dn](this[W].shift()));
1595
1607
  });
1596
1608
  }
1597
1609
  [Cr](e) {
1598
- if (this.fd = e, this.#t) return this[J]();
1610
+ if (this.fd = e, this.#t) return this[wr]();
1599
1611
  if (!this.stat) throw Error(`should stat before calling onopenfile`);
1600
1612
  this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
1601
1613
  let t = Math.min(this.blockLen, this.maxReadSize);
@@ -1605,11 +1617,11 @@ while (this[Dn](this[W].shift()));
1605
1617
  let { fd: e, buf: t, offset: n, length: r, pos: i } = this;
1606
1618
  if (e === void 0 || t === void 0) throw Error(`cannot read file without first opening`);
1607
1619
  fs__rspack_import_5.read(e, t, n, r, i, (e, t) => {
1608
- if (e) return this[J](() => this.emit(`error`, e));
1620
+ if (e) return this[wr](() => this.emit(`error`, e));
1609
1621
  this[br](t);
1610
1622
  });
1611
1623
  }
1612
- [J](e = () => {}) {
1624
+ [wr](e = () => {}) {
1613
1625
  this.fd !== void 0 && fs__rspack_import_5.close(this.fd, e);
1614
1626
  }
1615
1627
  [br](e) {
@@ -1619,7 +1631,7 @@ while (this[Dn](this[W].shift()));
1619
1631
  syscall: `read`,
1620
1632
  code: `EOF`
1621
1633
  });
1622
- return this[J](() => this.emit(`error`, e));
1634
+ return this[wr](() => this.emit(`error`, e));
1623
1635
  }
1624
1636
  if (e > this.remain) {
1625
1637
  let e = Object.assign(Error(`did not encounter expected EOF`), {
@@ -1627,14 +1639,14 @@ while (this[Dn](this[W].shift()));
1627
1639
  syscall: `read`,
1628
1640
  code: `EOF`
1629
1641
  });
1630
- return this[J](() => this.emit(`error`, e));
1642
+ return this[wr](() => this.emit(`error`, e));
1631
1643
  }
1632
1644
  if (!this.buf) throw Error(`should have created buffer prior to reading`);
1633
1645
  if (e === this.remain) for (let t = e; t < this.length && e < this.blockRemain; t++) this.buf[t + this.offset] = 0, e++, this.remain++;
1634
1646
  let t = this.offset === 0 && e === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + e);
1635
- this.write(t) ? this[Er]() : this[Tr](() => this[Er]());
1647
+ this.write(t) ? this[Dr]() : this[Er](() => this[Dr]());
1636
1648
  }
1637
- [Tr](e) {
1649
+ [Er](e) {
1638
1650
  this.once(`drain`, e);
1639
1651
  }
1640
1652
  write(e, t, n) {
@@ -1644,12 +1656,12 @@ while (this[Dn](this[W].shift()));
1644
1656
  }
1645
1657
  return this.remain -= e.length, this.blockRemain -= e.length, this.pos += e.length, this.offset += e.length, super.write(e, null, n);
1646
1658
  }
1647
- [Er]() {
1648
- if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[J]((e) => e ? this.emit(`error`, e) : this.end());
1659
+ [Dr]() {
1660
+ if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[wr]((e) => e ? this.emit(`error`, e) : this.end());
1649
1661
  if (!this.buf) throw Error(`buffer lost somehow in ONDRAIN`);
1650
1662
  this.offset >= this.length && (this.buf = Buffer.allocUnsafe(Math.min(this.blockRemain, this.buf.length)), this.offset = 0), this.length = this.buf.length - this.offset, this[_r]();
1651
1663
  }
1652
- }, Or = class extends Dr {
1664
+ }, kr = class extends Or {
1653
1665
  sync = !0;
1654
1666
  [vr]() {
1655
1667
  this[yr](fs__rspack_import_5.lstatSync(this.absolute));
@@ -1669,17 +1681,17 @@ while (this[Dn](this[W].shift()));
1669
1681
  this[br](o), e = !1;
1670
1682
  } finally {
1671
1683
  if (e) try {
1672
- this[J](() => {});
1684
+ this[wr](() => {});
1673
1685
  } catch {}
1674
1686
  }
1675
1687
  }
1676
- [Tr](e) {
1688
+ [Er](e) {
1677
1689
  e();
1678
1690
  }
1679
- [J](e = () => {}) {
1691
+ [wr](e = () => {}) {
1680
1692
  this.fd !== void 0 && fs__rspack_import_5.closeSync(this.fd), e();
1681
1693
  }
1682
- }, kr = class extends Ue {
1694
+ }, Ar = class extends Ue {
1683
1695
  blockLen = 0;
1684
1696
  blockRemain = 0;
1685
1697
  buf = 0;
@@ -1708,14 +1720,14 @@ while (this[Dn](this[W].shift()));
1708
1720
  size;
1709
1721
  onWriteEntry;
1710
1722
  warn(e, t, n = {}) {
1711
- return bn(this, e, t, n);
1723
+ return xn(this, e, t, n);
1712
1724
  }
1713
1725
  constructor(e, t = {}) {
1714
1726
  let n = St(t);
1715
1727
  super(), this.preservePaths = !!n.preservePaths, this.portable = !!n.portable, this.strict = !!n.strict, this.noPax = !!n.noPax, this.noMtime = !!n.noMtime, this.onWriteEntry = n.onWriteEntry, this.readEntry = e;
1716
1728
  let { type: r } = e;
1717
1729
  if (r === `Unsupported`) throw Error(`writing entry that should be ignored`);
1718
- this.type = r, this.type === `Directory` && this.portable && (this.noMtime = !0), this.prefix = n.prefix, this.path = z(e.path), this.mode = e.mode === void 0 ? void 0 : this[wr](e.mode), this.uid = this.portable ? void 0 : e.uid, this.gid = this.portable ? void 0 : e.gid, this.uname = this.portable ? void 0 : e.uname, this.gname = this.portable ? void 0 : e.gname, this.size = e.size, this.mtime = this.noMtime ? void 0 : n.mtime || e.mtime, this.atime = this.portable ? void 0 : e.atime, this.ctime = this.portable ? void 0 : e.ctime, this.linkpath = e.linkpath === void 0 ? void 0 : z(e.linkpath), typeof n.onwarn == `function` && this.on(`warn`, n.onwarn);
1730
+ this.type = r, this.type === `Directory` && this.portable && (this.noMtime = !0), this.prefix = n.prefix, this.path = z(e.path), this.mode = e.mode === void 0 ? void 0 : this[Tr](e.mode), this.uid = this.portable ? void 0 : e.uid, this.gid = this.portable ? void 0 : e.gid, this.uname = this.portable ? void 0 : e.uname, this.gname = this.portable ? void 0 : e.gname, this.size = e.size, this.mtime = this.noMtime ? void 0 : n.mtime || e.mtime, this.atime = this.portable ? void 0 : e.atime, this.ctime = this.portable ? void 0 : e.ctime, this.linkpath = e.linkpath === void 0 ? void 0 : z(e.linkpath), typeof n.onwarn == `function` && this.on(`warn`, n.onwarn);
1719
1731
  let i = !1;
1720
1732
  if (!this.preservePaths) {
1721
1733
  let [e, t] = nr(this.path);
@@ -1736,7 +1748,7 @@ while (this[Dn](this[W].shift()));
1736
1748
  }), i && this.warn(`TAR_ENTRY_INFO`, `stripping ${i} from absolute path`, {
1737
1749
  entry: this,
1738
1750
  path: i + this.path
1739
- }), this.header.encode() && !this.noPax && super.write(new hn({
1751
+ }), this.header.encode() && !this.noPax && super.write(new gn({
1740
1752
  atime: this.portable ? void 0 : this.atime,
1741
1753
  ctime: this.portable ? void 0 : this.ctime,
1742
1754
  gid: this.portable ? void 0 : this.gid,
@@ -1757,7 +1769,7 @@ while (this[Dn](this[W].shift()));
1757
1769
  [Y](e) {
1758
1770
  return lr(e, this.prefix);
1759
1771
  }
1760
- [wr](e) {
1772
+ [Tr](e) {
1761
1773
  return $n(e, this.type === `Directory`, this.portable);
1762
1774
  }
1763
1775
  write(e, t, n) {
@@ -1769,7 +1781,7 @@ while (this[Dn](this[W].shift()));
1769
1781
  end(e, t, n) {
1770
1782
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof e == `function` && (n = e, t = void 0, e = void 0), typeof t == `function` && (n = t, t = void 0), typeof e == `string` && (e = Buffer.from(e, t ?? `utf8`)), n && this.once(`finish`, n), e ? super.end(e, n) : super.end(n), this;
1771
1783
  }
1772
- }, Ar = (e) => e.isFile() ? `File` : e.isDirectory() ? `Directory` : e.isSymbolicLink() ? `SymbolicLink` : `Unsupported`, jr = class e {
1784
+ }, jr = (e) => e.isFile() ? `File` : e.isDirectory() ? `Directory` : e.isSymbolicLink() ? `SymbolicLink` : `Unsupported`, Mr = class e {
1773
1785
  tail;
1774
1786
  head;
1775
1787
  length = 0;
@@ -1800,11 +1812,11 @@ while (this[Dn](this[W].shift()));
1800
1812
  e.list = this, e.prev = t, t && (t.next = e), this.tail = e, this.head ||= e, this.length++;
1801
1813
  }
1802
1814
  push(...e) {
1803
- for (let t = 0, n = e.length; t < n; t++) Nr(this, e[t]);
1815
+ for (let t = 0, n = e.length; t < n; t++) Pr(this, e[t]);
1804
1816
  return this.length;
1805
1817
  }
1806
1818
  unshift(...e) {
1807
- for (var t = 0, n = e.length; t < n; t++) Pr(this, e[t]);
1819
+ for (var t = 0, n = e.length; t < n; t++) Fr(this, e[t]);
1808
1820
  return this.length;
1809
1821
  }
1810
1822
  pop() {
@@ -1900,7 +1912,7 @@ while (this[Dn](this[W].shift()));
1900
1912
  let i = [];
1901
1913
  for (let e = 0; r && e < t; e++) i.push(r.value), r = this.removeNode(r);
1902
1914
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
1903
- for (let e of n) r = Mr(this, r, e);
1915
+ for (let e of n) r = Nr(this, r, e);
1904
1916
  return i;
1905
1917
  }
1906
1918
  reverse() {
@@ -1912,17 +1924,17 @@ while (this[Dn](this[W].shift()));
1912
1924
  return this.head = t, this.tail = e, this;
1913
1925
  }
1914
1926
  };
1915
- function Mr(e, t, n) {
1916
- let r = new Fr(n, t, t ? t.next : e.head, e);
1927
+ function Nr(e, t, n) {
1928
+ let r = new Ir(n, t, t ? t.next : e.head, e);
1917
1929
  return r.next === void 0 && (e.tail = r), r.prev === void 0 && (e.head = r), e.length++, r;
1918
1930
  }
1919
- function Nr(e, t) {
1920
- e.tail = new Fr(t, e.tail, void 0, e), e.head ||= e.tail, e.length++;
1921
- }
1922
1931
  function Pr(e, t) {
1923
- e.head = new Fr(t, void 0, e.head, e), e.tail ||= e.head, e.length++;
1932
+ e.tail = new Ir(t, e.tail, void 0, e), e.head ||= e.tail, e.length++;
1933
+ }
1934
+ function Fr(e, t) {
1935
+ e.head = new Ir(t, void 0, e.head, e), e.tail ||= e.head, e.length++;
1924
1936
  }
1925
- var Fr = class {
1937
+ var Ir = class {
1926
1938
  list;
1927
1939
  next;
1928
1940
  prev;
@@ -1930,19 +1942,20 @@ var Fr = class {
1930
1942
  constructor(e, t, n, r) {
1931
1943
  this.list = r, this.value = e, t ? (t.next = this, this.prev = t) : this.prev = void 0, n ? (n.prev = this, this.next = n) : this.next = void 0;
1932
1944
  }
1933
- }, Ir = class {
1945
+ }, Lr = class {
1934
1946
  path;
1935
1947
  absolute;
1936
1948
  entry;
1937
1949
  stat;
1938
1950
  readdir;
1939
1951
  pending = !1;
1952
+ pendingLink = !1;
1940
1953
  ignore = !1;
1941
1954
  piped = !1;
1942
1955
  constructor(e, t) {
1943
1956
  this.path = e || `./`, this.absolute = t;
1944
1957
  }
1945
- }, Lr = Buffer.alloc(1024), Rr = Symbol(`onStat`), zr = Symbol(`ended`), X = Symbol(`queue`), Br = Symbol(`current`), Vr = Symbol(`process`), Hr = Symbol(`processing`), Ur = Symbol(`processJob`), Z = Symbol(`jobs`), Wr = Symbol(`jobDone`), Gr = Symbol(`addFSEntry`), Kr = Symbol(`addTarEntry`), qr = Symbol(`stat`), Jr = Symbol(`readdir`), Yr = Symbol(`onreaddir`), Xr = Symbol(`pipe`), Zr = Symbol(`entry`), Qr = Symbol(`entryOpt`), $r = Symbol(`writeEntryClass`), ei = Symbol(`write`), ti = Symbol(`ondrain`), ni = class extends Ue {
1958
+ }, Rr = Buffer.alloc(1024), zr = Symbol(`onStat`), Br = Symbol(`ended`), X = Symbol(`queue`), Vr = Symbol(`pendingLinks`), Hr = Symbol(`current`), Ur = Symbol(`process`), Wr = Symbol(`processing`), Gr = Symbol(`processJob`), Z = Symbol(`jobs`), Kr = Symbol(`jobDone`), qr = Symbol(`addFSEntry`), Jr = Symbol(`addTarEntry`), Yr = Symbol(`stat`), Xr = Symbol(`readdir`), Zr = Symbol(`onreaddir`), Qr = Symbol(`pipe`), $r = Symbol(`entry`), ei = Symbol(`entryOpt`), ti = Symbol(`writeEntryClass`), ni = Symbol(`write`), ri = Symbol(`ondrain`), ii = class extends Ue {
1946
1959
  sync = !1;
1947
1960
  opt;
1948
1961
  cwd;
@@ -1963,104 +1976,120 @@ var Fr = class {
1963
1976
  mtime;
1964
1977
  filter;
1965
1978
  jobs;
1966
- [$r];
1979
+ [ti];
1967
1980
  onWriteEntry;
1968
1981
  [X];
1982
+ [Vr] = /* @__PURE__ */ new Map();
1969
1983
  [Z] = 0;
1970
- [Hr] = !1;
1971
- [zr] = !1;
1984
+ [Wr] = !1;
1985
+ [Br] = !1;
1972
1986
  constructor(e = {}) {
1973
- if (super(), this.opt = e, this.file = e.file || ``, this.cwd = e.cwd || process.cwd(), this.maxReadSize = e.maxReadSize, this.preservePaths = !!e.preservePaths, this.strict = !!e.strict, this.noPax = !!e.noPax, this.prefix = z(e.prefix || ``), this.linkCache = e.linkCache || /* @__PURE__ */ new Map(), this.statCache = e.statCache || /* @__PURE__ */ new Map(), this.readdirCache = e.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = e.onWriteEntry, this[$r] = Dr, typeof e.onwarn == `function` && this.on(`warn`, e.onwarn), this.portable = !!e.portable, e.gzip || e.brotli || e.zstd) {
1974
- if ((e.gzip ? 1 : 0) + (e.brotli ? 1 : 0) + (e.zstd ? 1 : 0) > 1) throw TypeError(`gzip, brotli, zstd are mutually exclusive`);
1987
+ if (super(), this.opt = e, this.file = e.file || ``, this.cwd = e.cwd || process.cwd(), this.maxReadSize = e.maxReadSize, this.preservePaths = !!e.preservePaths, this.strict = !!e.strict, this.noPax = !!e.noPax, this.prefix = z(e.prefix || ``), this.linkCache = e.linkCache || /* @__PURE__ */ new Map(), this.statCache = e.statCache || /* @__PURE__ */ new Map(), this.readdirCache = e.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = e.onWriteEntry, this[ti] = Or, typeof e.onwarn == `function` && this.on(`warn`, e.onwarn), this.portable = !!e.portable, e.gzip || e.brotli || e.zstd) {
1988
+ if (+!!e.gzip + +!!e.brotli + +!!e.zstd > 1) throw TypeError(`gzip, brotli, zstd are mutually exclusive`);
1975
1989
  if (e.gzip && (typeof e.gzip != `object` && (e.gzip = {}), this.portable && (e.gzip.portable = !0), this.zip = new Pt(e.gzip)), e.brotli && (typeof e.brotli != `object` && (e.brotli = {}), this.zip = new Lt(e.brotli)), e.zstd && (typeof e.zstd != `object` && (e.zstd = {}), this.zip = new Bt(e.zstd)), !this.zip) throw Error(`impossible`);
1976
1990
  let t = this.zip;
1977
- t.on(`data`, (e) => super.write(e)), t.on(`end`, () => super.end()), t.on(`drain`, () => this[ti]()), this.on(`resume`, () => t.resume());
1978
- } else this.on(`drain`, this[ti]);
1979
- this.noDirRecurse = !!e.noDirRecurse, this.follow = !!e.follow, this.noMtime = !!e.noMtime, e.mtime && (this.mtime = e.mtime), this.filter = typeof e.filter == `function` ? e.filter : () => !0, this[X] = new jr(), this[Z] = 0, this.jobs = Number(e.jobs) || 4, this[Hr] = !1, this[zr] = !1;
1991
+ t.on(`data`, (e) => super.write(e)), t.on(`end`, () => super.end()), t.on(`drain`, () => this[ri]()), this.on(`resume`, () => t.resume());
1992
+ } else this.on(`drain`, this[ri]);
1993
+ this.noDirRecurse = !!e.noDirRecurse, this.follow = !!e.follow, this.noMtime = !!e.noMtime, e.mtime && (this.mtime = e.mtime), this.filter = typeof e.filter == `function` ? e.filter : () => !0, this[X] = new Mr(), this[Z] = 0, this.jobs = Number(e.jobs) || 4, this[Wr] = !1, this[Br] = !1;
1980
1994
  }
1981
- [ei](e) {
1995
+ [ni](e) {
1982
1996
  return super.write(e);
1983
1997
  }
1984
1998
  add(e) {
1985
1999
  return this.write(e), this;
1986
2000
  }
1987
2001
  end(e, t, n) {
1988
- return typeof e == `function` && (n = e, e = void 0), typeof t == `function` && (n = t, t = void 0), e && this.add(e), this[zr] = !0, this[Vr](), n && n(), this;
2002
+ return typeof e == `function` && (n = e, e = void 0), typeof t == `function` && (n = t, t = void 0), e && this.add(e), this[Br] = !0, this[Ur](), n && n(), this;
1989
2003
  }
1990
2004
  write(e) {
1991
- if (this[zr]) throw Error(`write after end`);
1992
- return e instanceof yn ? this[Kr](e) : this[Gr](e), this.flowing;
2005
+ if (this[Br]) throw Error(`write after end`);
2006
+ return typeof e == `string` ? this[qr](e) : this[Jr](e), this.flowing;
1993
2007
  }
1994
- [Kr](e) {
2008
+ [Jr](e) {
1995
2009
  let t = z(path__rspack_import_8.resolve(this.cwd, e.path));
1996
2010
  if (!this.filter(e.path, e)) e.resume();
1997
2011
  else {
1998
- let n = new Ir(e.path, t);
1999
- n.entry = new kr(e, this[Qr](n)), n.entry.on(`end`, () => this[Wr](n)), this[Z] += 1, this[X].push(n);
2012
+ let n = new Lr(e.path, t);
2013
+ n.entry = new Ar(e, this[ei](n)), n.entry.on(`end`, () => this[Kr](n)), this[Z] += 1, this[X].push(n);
2000
2014
  }
2001
- this[Vr]();
2015
+ this[Ur]();
2002
2016
  }
2003
- [Gr](e) {
2017
+ [qr](e) {
2004
2018
  let t = z(path__rspack_import_8.resolve(this.cwd, e));
2005
- this[X].push(new Ir(e, t)), this[Vr]();
2019
+ this[X].push(new Lr(e, t)), this[Ur]();
2006
2020
  }
2007
- [qr](e) {
2021
+ [Yr](e) {
2008
2022
  e.pending = !0, this[Z] += 1, fs__rspack_import_5[this.follow ? `stat` : `lstat`](e.absolute, (t, n) => {
2009
- e.pending = !1, --this[Z], t ? this.emit(`error`, t) : this[Rr](e, n);
2023
+ e.pending = !1, --this[Z], t ? this.emit(`error`, t) : this[zr](e, n);
2010
2024
  });
2011
2025
  }
2012
- [Rr](e, t) {
2013
- this.statCache.set(e.absolute, t), e.stat = t, this.filter(e.path, t) ? t.isFile() && t.nlink > 1 && e === this[Br] && !this.linkCache.get(`${t.dev}:${t.ino}`) && !this.sync && this[Ur](e) : e.ignore = !0, this[Vr]();
2026
+ [zr](e, t) {
2027
+ if (this.statCache.set(e.absolute, t), e.stat = t, !this.filter(e.path, t)) e.ignore = !0;
2028
+ else if (t.isFile() && t.nlink > 1 && !this.linkCache.get(`${t.dev}:${t.ino}`) && !this.sync) if (e === this[Hr]) this[Gr](e);
2029
+ else {
2030
+ let n = `${t.dev}:${t.ino}`, r = this[Vr].get(n);
2031
+ r ? r.push(e) : this[Vr].set(n, [e]), e.pendingLink = !0, e.pending = !0;
2032
+ }
2033
+ this[Ur]();
2014
2034
  }
2015
- [Jr](e) {
2035
+ [Xr](e) {
2016
2036
  e.pending = !0, this[Z] += 1, fs__rspack_import_5.readdir(e.absolute, (t, n) => {
2017
2037
  if (e.pending = !1, --this[Z], t) return this.emit(`error`, t);
2018
- this[Yr](e, n);
2038
+ this[Zr](e, n);
2019
2039
  });
2020
2040
  }
2021
- [Yr](e, t) {
2022
- this.readdirCache.set(e.absolute, t), e.readdir = t, this[Vr]();
2041
+ [Zr](e, t) {
2042
+ this.readdirCache.set(e.absolute, t), e.readdir = t, this[Ur]();
2023
2043
  }
2024
- [Vr]() {
2025
- if (!this[Hr]) {
2026
- this[Hr] = !0;
2027
- for (let e = this[X].head; e && this[Z] < this.jobs; e = e.next) if (this[Ur](e.value), e.value.ignore) {
2044
+ [Ur]() {
2045
+ if (!this[Wr]) {
2046
+ this[Wr] = !0;
2047
+ for (let e = this[X].head; e && this[Z] < this.jobs; e = e.next) if (this[Gr](e.value), e.value.ignore) {
2028
2048
  let t = e.next;
2029
2049
  this[X].removeNode(e), e.next = t;
2030
2050
  }
2031
- this[Hr] = !1, this[zr] && this[X].length === 0 && this[Z] === 0 && (this.zip ? this.zip.end(Lr) : (super.write(Lr), super.end()));
2051
+ this[Wr] = !1, this[Br] && this[X].length === 0 && this[Z] === 0 && (this.zip ? this.zip.end(Rr) : (super.write(Rr), super.end()));
2032
2052
  }
2033
2053
  }
2034
- get [Br]() {
2054
+ get [Hr]() {
2035
2055
  return this[X] && this[X].head && this[X].head.value;
2036
2056
  }
2037
- [Wr](e) {
2038
- this[X].shift(), --this[Z], this[Vr]();
2057
+ [Kr](e) {
2058
+ this[X].shift(), --this[Z];
2059
+ let { stat: t } = e;
2060
+ if (t && t.isFile() && t.nlink > 1) {
2061
+ let e = `${t.dev}:${t.ino}`, n = this[Vr].get(e);
2062
+ if (n) {
2063
+ this[Vr].delete(e);
2064
+ for (let e of n) e.pending = !1, this[Gr](e);
2065
+ }
2066
+ }
2067
+ this[Ur]();
2039
2068
  }
2040
- [Ur](e) {
2041
- if (!e.pending) {
2069
+ [Gr](e) {
2070
+ if (e.pending && e.pendingLink && e === this[Hr] && (e.pending = !1, e.pendingLink = !1), !e.pending) {
2042
2071
  if (e.entry) {
2043
- e === this[Br] && !e.piped && this[Xr](e);
2072
+ e === this[Hr] && !e.piped && this[Qr](e);
2044
2073
  return;
2045
2074
  }
2046
2075
  if (!e.stat) {
2047
2076
  let t = this.statCache.get(e.absolute);
2048
- t ? this[Rr](e, t) : this[qr](e);
2077
+ t ? this[zr](e, t) : this[Yr](e);
2049
2078
  }
2050
2079
  if (e.stat && !e.ignore) {
2051
2080
  if (!this.noDirRecurse && e.stat.isDirectory() && !e.readdir) {
2052
2081
  let t = this.readdirCache.get(e.absolute);
2053
- if (t ? this[Yr](e, t) : this[Jr](e), !e.readdir) return;
2082
+ if (t ? this[Zr](e, t) : this[Xr](e), !e.readdir) return;
2054
2083
  }
2055
- if (e.entry = this[Zr](e), !e.entry) {
2084
+ if (e.entry = this[$r](e), !e.entry) {
2056
2085
  e.ignore = !0;
2057
2086
  return;
2058
2087
  }
2059
- e === this[Br] && !e.piped && this[Xr](e);
2088
+ e === this[Hr] && !e.piped && this[Qr](e);
2060
2089
  }
2061
2090
  }
2062
2091
  }
2063
- [Qr](e) {
2092
+ [ei](e) {
2064
2093
  return {
2065
2094
  onwarn: (e, t, n) => this.warn(e, t, n),
2066
2095
  noPax: this.noPax,
@@ -2078,21 +2107,21 @@ var Fr = class {
2078
2107
  onWriteEntry: this.onWriteEntry
2079
2108
  };
2080
2109
  }
2081
- [Zr](e) {
2110
+ [$r](e) {
2082
2111
  this[Z] += 1;
2083
2112
  try {
2084
- return new this[$r](e.path, this[Qr](e)).on(`end`, () => this[Wr](e)).on(`error`, (e) => this.emit(`error`, e));
2113
+ return new this[ti](e.path, this[ei](e)).on(`end`, () => this[Kr](e)).on(`error`, (e) => this.emit(`error`, e));
2085
2114
  } catch (e) {
2086
2115
  this.emit(`error`, e);
2087
2116
  }
2088
2117
  }
2089
- [ti]() {
2090
- this[Br] && this[Br].entry && this[Br].entry.resume();
2118
+ [ri]() {
2119
+ this[Hr] && this[Hr].entry && this[Hr].entry.resume();
2091
2120
  }
2092
- [Xr](e) {
2121
+ [Qr](e) {
2093
2122
  e.piped = !0, e.readdir && e.readdir.forEach((t) => {
2094
2123
  let n = e.path, r = n === `./` ? `` : n.replace(/\/*$/, `/`);
2095
- this[Gr](r + t);
2124
+ this[qr](r + t);
2096
2125
  });
2097
2126
  let t = e.entry, n = this.zip;
2098
2127
  if (!t) throw Error(`cannot pipe without source`);
@@ -2106,45 +2135,45 @@ var Fr = class {
2106
2135
  return this.zip && this.zip.pause(), super.pause();
2107
2136
  }
2108
2137
  warn(e, t, n = {}) {
2109
- bn(this, e, t, n);
2138
+ xn(this, e, t, n);
2110
2139
  }
2111
- }, ri = class extends ni {
2140
+ }, ai = class extends ii {
2112
2141
  sync = !0;
2113
2142
  constructor(e) {
2114
- super(e), this[$r] = Or;
2143
+ super(e), this[ti] = kr;
2115
2144
  }
2116
2145
  pause() {}
2117
2146
  resume() {}
2118
- [qr](e) {
2147
+ [Yr](e) {
2119
2148
  let t = this.follow ? `statSync` : `lstatSync`;
2120
- this[Rr](e, fs__rspack_import_5[t](e.absolute));
2121
- }
2122
- [Jr](e) {
2123
- this[Yr](e, fs__rspack_import_5.readdirSync(e.absolute));
2149
+ this[zr](e, fs__rspack_import_5[t](e.absolute));
2124
2150
  }
2125
2151
  [Xr](e) {
2152
+ this[Zr](e, fs__rspack_import_5.readdirSync(e.absolute));
2153
+ }
2154
+ [Qr](e) {
2126
2155
  let t = e.entry, n = this.zip;
2127
2156
  if (e.readdir && e.readdir.forEach((t) => {
2128
2157
  let n = e.path, r = n === `./` ? `` : n.replace(/\/*$/, `/`);
2129
- this[Gr](r + t);
2158
+ this[qr](r + t);
2130
2159
  }), !t) throw Error(`Cannot pipe without source`);
2131
2160
  n ? t.on(`data`, (e) => {
2132
2161
  n.write(e);
2133
2162
  }) : t.on(`data`, (e) => {
2134
- super[ei](e);
2163
+ super[ni](e);
2135
2164
  });
2136
2165
  }
2137
- }, ii = (e, t) => {
2138
- let n = new ri(e), r = new mt(e.file, { mode: e.mode || 438 });
2139
- n.pipe(r), oi(n, t);
2140
- }, ai = (e, t) => {
2141
- let n = new ni(e), r = new pt(e.file, { mode: e.mode || 438 });
2166
+ }, oi = (e, t) => {
2167
+ let n = new ai(e), r = new mt(e.file, { mode: e.mode || 438 });
2168
+ n.pipe(r), ci(n, t);
2169
+ }, si = (e, t) => {
2170
+ let n = new ii(e), r = new pt(e.file, { mode: e.mode || 438 });
2142
2171
  n.pipe(r);
2143
2172
  let i = new Promise((e, t) => {
2144
2173
  r.on(`error`, t), r.on(`close`, e), n.on(`error`, t);
2145
2174
  });
2146
- return si(n, t).catch((e) => n.emit(`error`, e)), i;
2147
- }, oi = (e, t) => {
2175
+ return li(n, t).catch((e) => n.emit(`error`, e)), i;
2176
+ }, ci = (e, t) => {
2148
2177
  t.forEach((t) => {
2149
2178
  t.charAt(0) === `@` ? Qn({
2150
2179
  file: node_path__rspack_import_3.resolve(e.cwd, t.slice(1)),
@@ -2153,7 +2182,7 @@ var Fr = class {
2153
2182
  onReadEntry: (t) => e.add(t)
2154
2183
  }) : e.add(t);
2155
2184
  }), e.end();
2156
- }, si = async (e, t) => {
2185
+ }, li = async (e, t) => {
2157
2186
  for (let n of t) n.charAt(0) === `@` ? await Qn({
2158
2187
  file: node_path__rspack_import_3.resolve(String(e.cwd), n.slice(1)),
2159
2188
  noResume: !0,
@@ -2162,59 +2191,59 @@ var Fr = class {
2162
2191
  }
2163
2192
  }) : e.add(n);
2164
2193
  e.end();
2165
- }, ci = Ct(ii, ai, (e, t) => {
2166
- let n = new ri(e);
2167
- return oi(n, t), n;
2194
+ }, ui = Ct(oi, si, (e, t) => {
2195
+ let n = new ai(e);
2196
+ return ci(n, t), n;
2168
2197
  }, (e, t) => {
2169
- let n = new ni(e);
2170
- return si(n, t).catch((e) => n.emit(`error`, e)), n;
2198
+ let n = new ii(e);
2199
+ return li(n, t).catch((e) => n.emit(`error`, e)), n;
2171
2200
  }, (e, t) => {
2172
2201
  if (!t?.length) throw TypeError(`no paths specified to add to archive`);
2173
- }), li = (process.env.__FAKE_PLATFORM__ || process.platform) === `win32`, { O_CREAT: ui, O_NOFOLLOW: di, O_TRUNC: fi, O_WRONLY: pi } = fs__rspack_import_5.constants, mi = Number(process.env.__FAKE_FS_O_FILENAME__) || fs__rspack_import_5.constants.UV_FS_O_FILEMAP || 0, hi = li && !!mi, gi = 512 * 1024, _i = mi | fi | ui | pi, vi = !li && typeof di == `number` ? di | fi | ui | pi : null, yi = vi === null ? hi ? (e) => e < gi ? _i : `w` : () => `w` : () => vi, bi = (e, n, r) => {
2202
+ }), di = (process.env.__FAKE_PLATFORM__ || process.platform) === `win32`, { O_CREAT: fi, O_NOFOLLOW: pi, O_TRUNC: mi, O_WRONLY: hi } = fs__rspack_import_5.constants, gi = Number(process.env.__FAKE_FS_O_FILENAME__) || fs__rspack_import_5.constants.UV_FS_O_FILEMAP || 0, _i = di && !!gi, vi = 512 * 1024, yi = gi | mi | fi | hi, bi = !di && typeof pi == `number` ? pi | mi | fi | hi : null, xi = bi === null ? _i ? (e) => e < vi ? yi : `w` : () => `w` : () => bi, Si = (e, n, r) => {
2174
2203
  try {
2175
2204
  return node_fs__rspack_import_0.lchownSync(e, n, r);
2176
2205
  } catch (e) {
2177
2206
  if (e?.code !== `ENOENT`) throw e;
2178
2207
  }
2179
- }, xi = (e, n, r, i) => {
2208
+ }, Ci = (e, n, r, i) => {
2180
2209
  node_fs__rspack_import_0.lchown(e, n, r, (e) => {
2181
2210
  i(e && e?.code !== `ENOENT` ? e : null);
2182
2211
  });
2183
- }, Si = (e, t, n, r, a) => {
2184
- t.isDirectory() ? Ci(node_path__rspack_import_3.resolve(e, t.name), n, r, (o) => {
2212
+ }, wi = (e, t, n, r, a) => {
2213
+ t.isDirectory() ? Ti(node_path__rspack_import_3.resolve(e, t.name), n, r, (o) => {
2185
2214
  if (o) return a(o);
2186
- xi(node_path__rspack_import_3.resolve(e, t.name), n, r, a);
2187
- }) : xi(node_path__rspack_import_3.resolve(e, t.name), n, r, a);
2188
- }, Ci = (e, n, r, i) => {
2215
+ Ci(node_path__rspack_import_3.resolve(e, t.name), n, r, a);
2216
+ }) : Ci(node_path__rspack_import_3.resolve(e, t.name), n, r, a);
2217
+ }, Ti = (e, n, r, i) => {
2189
2218
  node_fs__rspack_import_0.readdir(e, { withFileTypes: !0 }, (t, a) => {
2190
2219
  if (t) {
2191
2220
  if (t.code === `ENOENT`) return i();
2192
2221
  if (t.code !== `ENOTDIR` && t.code !== `ENOTSUP`) return i(t);
2193
2222
  }
2194
- if (t || !a.length) return xi(e, n, r, i);
2223
+ if (t || !a.length) return Ci(e, n, r, i);
2195
2224
  let o = a.length, s = null, c = (t) => {
2196
2225
  if (!s) {
2197
2226
  if (t) return i(s = t);
2198
- if (--o === 0) return xi(e, n, r, i);
2227
+ if (--o === 0) return Ci(e, n, r, i);
2199
2228
  }
2200
2229
  };
2201
- for (let t of a) Si(e, t, n, r, c);
2230
+ for (let t of a) wi(e, t, n, r, c);
2202
2231
  });
2203
- }, wi = (e, t, n, r) => {
2204
- t.isDirectory() && Ti(node_path__rspack_import_3.resolve(e, t.name), n, r), bi(node_path__rspack_import_3.resolve(e, t.name), n, r);
2205
- }, Ti = (e, n, r) => {
2232
+ }, Ei = (e, t, n, r) => {
2233
+ t.isDirectory() && Di(node_path__rspack_import_3.resolve(e, t.name), n, r), Si(node_path__rspack_import_3.resolve(e, t.name), n, r);
2234
+ }, Di = (e, n, r) => {
2206
2235
  let i;
2207
2236
  try {
2208
2237
  i = node_fs__rspack_import_0.readdirSync(e, { withFileTypes: !0 });
2209
2238
  } catch (t) {
2210
2239
  let i = t;
2211
2240
  if (i?.code === `ENOENT`) return;
2212
- if (i?.code === `ENOTDIR` || i?.code === `ENOTSUP`) return bi(e, n, r);
2241
+ if (i?.code === `ENOTDIR` || i?.code === `ENOTSUP`) return Si(e, n, r);
2213
2242
  throw i;
2214
2243
  }
2215
- for (let t of i) wi(e, t, n, r);
2216
- return bi(e, n, r);
2217
- }, Ei = class extends Error {
2244
+ for (let t of i) Ei(e, t, n, r);
2245
+ return Si(e, n, r);
2246
+ }, Oi = class extends Error {
2218
2247
  path;
2219
2248
  code;
2220
2249
  syscall = `chdir`;
@@ -2224,7 +2253,7 @@ var Fr = class {
2224
2253
  get name() {
2225
2254
  return `CwdError`;
2226
2255
  }
2227
- }, Di = class extends Error {
2256
+ }, ki = class extends Error {
2228
2257
  path;
2229
2258
  symlink;
2230
2259
  syscall = `symlink`;
@@ -2235,53 +2264,53 @@ var Fr = class {
2235
2264
  get name() {
2236
2265
  return `SymlinkError`;
2237
2266
  }
2238
- }, Oi = (e, n) => {
2267
+ }, Ai = (e, n) => {
2239
2268
  node_fs__rspack_import_0.stat(e, (t, r) => {
2240
- (t || !r.isDirectory()) && (t = new Ei(e, t?.code || `ENOTDIR`)), n(t);
2269
+ (t || !r.isDirectory()) && (t = new Oi(e, t?.code || `ENOTDIR`)), n(t);
2241
2270
  });
2242
- }, ki = (e, r, a) => {
2271
+ }, ji = (e, r, a) => {
2243
2272
  e = z(e);
2244
2273
  let o = r.umask ?? 18, s = r.mode | 448, c = (s & o) !== 0, l = r.uid, u = r.gid, d = typeof l == `number` && typeof u == `number` && (l !== r.processUid || u !== r.processGid), f = r.preserve, ee = r.unlink, p = z(r.cwd), m = (n, r) => {
2245
- n ? a(n) : r && d ? Ci(r, l, u, (e) => m(e)) : c ? node_fs__rspack_import_0.chmod(e, s, a) : a();
2274
+ n ? a(n) : r && d ? Ti(r, l, u, (e) => m(e)) : c ? node_fs__rspack_import_0.chmod(e, s, a) : a();
2246
2275
  };
2247
- if (e === p) return Oi(e, m);
2276
+ if (e === p) return Ai(e, m);
2248
2277
  if (f) return node_fs_promises__rspack_import_1.mkdir(e, {
2249
2278
  mode: s,
2250
2279
  recursive: !0
2251
2280
  }).then((e) => m(null, e ?? void 0), m);
2252
- Ai(p, z(node_path__rspack_import_3.relative(p, e)).split(`/`), s, ee, p, void 0, m);
2253
- }, Ai = (e, n, r, a, o, s, c) => {
2281
+ Mi(p, z(node_path__rspack_import_3.relative(p, e)).split(`/`), s, ee, p, void 0, m);
2282
+ }, Mi = (e, n, r, a, o, s, c) => {
2254
2283
  if (n.length === 0) return c(null, s);
2255
2284
  let l = n.shift(), u = z(node_path__rspack_import_3.resolve(e + `/` + l));
2256
- node_fs__rspack_import_0.mkdir(u, r, ji(u, n, r, a, o, s, c));
2257
- }, ji = (e, n, r, i, a, o, s) => (c) => {
2285
+ node_fs__rspack_import_0.mkdir(u, r, Ni(u, n, r, a, o, s, c));
2286
+ }, Ni = (e, n, r, i, a, o, s) => (c) => {
2258
2287
  c ? node_fs__rspack_import_0.lstat(e, (l, u) => {
2259
2288
  if (l) l.path = l.path && z(l.path), s(l);
2260
- else if (u.isDirectory()) Ai(e, n, r, i, a, o, s);
2289
+ else if (u.isDirectory()) Mi(e, n, r, i, a, o, s);
2261
2290
  else if (i) node_fs__rspack_import_0.unlink(e, (c) => {
2262
2291
  if (c) return s(c);
2263
- node_fs__rspack_import_0.mkdir(e, r, ji(e, n, r, i, a, o, s));
2292
+ node_fs__rspack_import_0.mkdir(e, r, Ni(e, n, r, i, a, o, s));
2264
2293
  });
2265
2294
  else {
2266
- if (u.isSymbolicLink()) return s(new Di(e, e + `/` + n.join(`/`)));
2295
+ if (u.isSymbolicLink()) return s(new ki(e, e + `/` + n.join(`/`)));
2267
2296
  s(c);
2268
2297
  }
2269
- }) : (o ||= e, Ai(e, n, r, i, a, o, s));
2270
- }, Mi = (e) => {
2298
+ }) : (o ||= e, Mi(e, n, r, i, a, o, s));
2299
+ }, Pi = (e) => {
2271
2300
  let n = !1, r;
2272
2301
  try {
2273
2302
  n = node_fs__rspack_import_0.statSync(e).isDirectory();
2274
2303
  } catch (e) {
2275
2304
  r = e?.code;
2276
2305
  } finally {
2277
- if (!n) throw new Ei(e, r ?? `ENOTDIR`);
2306
+ if (!n) throw new Oi(e, r ?? `ENOTDIR`);
2278
2307
  }
2279
- }, Ni = (e, n) => {
2308
+ }, Fi = (e, n) => {
2280
2309
  e = z(e);
2281
2310
  let r = n.umask ?? 18, a = n.mode | 448, o = (a & r) !== 0, s = n.uid, c = n.gid, l = typeof s == `number` && typeof c == `number` && (s !== n.processUid || c !== n.processGid), u = n.preserve, d = n.unlink, f = z(n.cwd), ee = (n) => {
2282
- n && l && Ti(n, s, c), o && node_fs__rspack_import_0.chmodSync(e, a);
2311
+ n && l && Di(n, s, c), o && node_fs__rspack_import_0.chmodSync(e, a);
2283
2312
  };
2284
- if (e === f) return Mi(f), ee();
2313
+ if (e === f) return Pi(f), ee();
2285
2314
  if (u) return ee(node_fs__rspack_import_0.mkdirSync(e, {
2286
2315
  mode: a,
2287
2316
  recursive: !0
@@ -2297,27 +2326,27 @@ var Fr = class {
2297
2326
  if (d) {
2298
2327
  node_fs__rspack_import_0.unlinkSync(n), node_fs__rspack_import_0.mkdirSync(n, a), m ||= n;
2299
2328
  continue;
2300
- } else if (e.isSymbolicLink()) return new Di(n, n + `/` + p.join(`/`));
2329
+ } else if (e.isSymbolicLink()) return new ki(n, n + `/` + p.join(`/`));
2301
2330
  }
2302
2331
  }
2303
2332
  return ee(m);
2304
- }, Pi = Object.create(null), Fi = 1e4, Ii = /* @__PURE__ */ new Set(), Li = (e) => {
2305
- Ii.has(e) ? Ii.delete(e) : Pi[e] = e.normalize(`NFD`).toLocaleLowerCase(`en`).toLocaleUpperCase(`en`), Ii.add(e);
2306
- let t = Pi[e], n = Ii.size - Fi;
2307
- if (n > Fi / 10) {
2308
- for (let e of Ii) if (Ii.delete(e), delete Pi[e], --n <= 0) break;
2333
+ }, Ii = Object.create(null), Li = 1e4, Ri = /* @__PURE__ */ new Set(), zi = (e) => {
2334
+ Ri.has(e) ? Ri.delete(e) : Ii[e] = e.normalize(`NFD`).toLocaleLowerCase(`en`).toLocaleUpperCase(`en`), Ri.add(e);
2335
+ let t = Ii[e], n = Ri.size - Li;
2336
+ if (n > Li / 10) {
2337
+ for (let e of Ri) if (Ri.delete(e), delete Ii[e], --n <= 0) break;
2309
2338
  }
2310
2339
  return t;
2311
- }, Ri = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === `win32`, zi = (e) => e.split(`/`).slice(0, -1).reduce((e, t) => {
2340
+ }, Bi = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === `win32`, Vi = (e) => e.split(`/`).slice(0, -1).reduce((e, t) => {
2312
2341
  let n = e.at(-1);
2313
2342
  return n !== void 0 && (t = (0,node_path__rspack_import_3.join)(n, t)), e.push(t || `/`), e;
2314
- }, []), Bi = class {
2343
+ }, []), Hi = class {
2315
2344
  #t = /* @__PURE__ */ new Map();
2316
2345
  #i = /* @__PURE__ */ new Map();
2317
2346
  #s = /* @__PURE__ */ new Set();
2318
2347
  reserve(e, t) {
2319
- e = Ri ? [`win32 parallelization disabled`] : e.map((e) => Yn((0,node_path__rspack_import_3.join)(Li(e))));
2320
- let n = new Set(e.map((e) => zi(e)).reduce((e, t) => e.concat(t)));
2348
+ e = Bi ? [`win32 parallelization disabled`] : e.map((e) => Yn((0,node_path__rspack_import_3.join)(zi(e))));
2349
+ let n = new Set(e.map((e) => Vi(e)).reduce((e, t) => e.concat(t)));
2321
2350
  this.#i.set(t, {
2322
2351
  dirs: n,
2323
2352
  paths: e
@@ -2380,22 +2409,22 @@ var Fr = class {
2380
2409
  }
2381
2410
  return this.#s.delete(e), i.forEach((e) => this.#r(e)), !0;
2382
2411
  }
2383
- }, Vi = () => process.umask(), Hi = Symbol(`onEntry`), Ui = Symbol(`checkFs`), Wi = Symbol(`checkFs2`), Gi = Symbol(`isReusable`), Q = Symbol(`makeFs`), Ki = Symbol(`file`), qi = Symbol(`directory`), Ji = Symbol(`link`), Yi = Symbol(`symlink`), Xi = Symbol(`hardlink`), Zi = Symbol(`ensureNoSymlink`), Qi = Symbol(`unsupported`), $i = Symbol(`checkPath`), ea = Symbol(`stripAbsolutePath`), ta = Symbol(`mkdir`), $ = Symbol(`onError`), na = Symbol(`pending`), ra = Symbol(`pend`), ia = Symbol(`unpend`), aa = Symbol(`ended`), oa = Symbol(`maybeClose`), sa = Symbol(`skip`), ca = Symbol(`doChown`), la = Symbol(`uid`), ua = Symbol(`gid`), da = Symbol(`checkedCwd`), fa = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === `win32`, pa = 1024, ma = (e, n) => {
2384
- if (!fa) return node_fs__rspack_import_0.unlink(e, n);
2412
+ }, Ui = () => process.umask(), Wi = Symbol(`onEntry`), Gi = Symbol(`checkFs`), Ki = Symbol(`checkFs2`), qi = Symbol(`isReusable`), Q = Symbol(`makeFs`), Ji = Symbol(`file`), Yi = Symbol(`directory`), Xi = Symbol(`link`), Zi = Symbol(`symlink`), Qi = Symbol(`hardlink`), $i = Symbol(`ensureNoSymlink`), ea = Symbol(`unsupported`), ta = Symbol(`checkPath`), na = Symbol(`stripAbsolutePath`), ra = Symbol(`mkdir`), $ = Symbol(`onError`), ia = Symbol(`pending`), aa = Symbol(`pend`), oa = Symbol(`unpend`), sa = Symbol(`ended`), ca = Symbol(`maybeClose`), la = Symbol(`skip`), ua = Symbol(`doChown`), da = Symbol(`uid`), fa = Symbol(`gid`), pa = Symbol(`checkedCwd`), ma = (process.env.TESTING_TAR_FAKE_PLATFORM || process.platform) === `win32`, ha = 1024, ga = (e, n) => {
2413
+ if (!ma) return node_fs__rspack_import_0.unlink(e, n);
2385
2414
  let r = e + `.DELETE.` + (0,node_crypto__rspack_import_13.randomBytes)(16).toString(`hex`);
2386
2415
  node_fs__rspack_import_0.rename(e, r, (e) => {
2387
2416
  if (e) return n(e);
2388
2417
  node_fs__rspack_import_0.unlink(r, n);
2389
2418
  });
2390
- }, ha = (e) => {
2391
- if (!fa) return node_fs__rspack_import_0.unlinkSync(e);
2419
+ }, _a = (e) => {
2420
+ if (!ma) return node_fs__rspack_import_0.unlinkSync(e);
2392
2421
  let n = e + `.DELETE.` + (0,node_crypto__rspack_import_13.randomBytes)(16).toString(`hex`);
2393
2422
  node_fs__rspack_import_0.renameSync(e, n), node_fs__rspack_import_0.unlinkSync(n);
2394
- }, ga = (e, t, n) => e !== void 0 && e === e >>> 0 ? e : t !== void 0 && t === t >>> 0 ? t : n, _a = class extends Jn {
2395
- [aa] = !1;
2396
- [da] = !1;
2397
- [na] = 0;
2398
- reservations = new Bi();
2423
+ }, va = (e, t, n) => e !== void 0 && e === e >>> 0 ? e : t !== void 0 && t === t >>> 0 ? t : n, ya = class extends Jn {
2424
+ [sa] = !1;
2425
+ [pa] = !1;
2426
+ [ia] = 0;
2427
+ reservations = new Hi();
2399
2428
  transform;
2400
2429
  writable = !0;
2401
2430
  readable = !1;
@@ -2422,25 +2451,25 @@ var Fr = class {
2422
2451
  chmod;
2423
2452
  constructor(e = {}) {
2424
2453
  if (e.ondone = () => {
2425
- this[aa] = !0, this[oa]();
2454
+ this[sa] = !0, this[ca]();
2426
2455
  }, super(e), this.transform = e.transform, this.chmod = !!e.chmod, typeof e.uid == `number` || typeof e.gid == `number`) {
2427
2456
  if (typeof e.uid != `number` || typeof e.gid != `number`) throw TypeError(`cannot set owner without number uid and gid`);
2428
2457
  if (e.preserveOwner) throw TypeError(`cannot preserve owner in archive and also set owner explicitly`);
2429
2458
  this.uid = e.uid, this.gid = e.gid, this.setOwner = !0;
2430
2459
  } else this.uid = void 0, this.gid = void 0, this.setOwner = !1;
2431
- this.preserveOwner = e.preserveOwner === void 0 && typeof e.uid != `number` ? !!(process.getuid && process.getuid() === 0) : !!e.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof e.maxDepth == `number` ? e.maxDepth : pa, this.forceChown = e.forceChown === !0, this.win32 = !!e.win32 || fa, this.newer = !!e.newer, this.keep = !!e.keep, this.noMtime = !!e.noMtime, this.preservePaths = !!e.preservePaths, this.unlink = !!e.unlink, this.cwd = z(node_path__rspack_import_3.resolve(e.cwd || process.cwd())), this.strip = Number(e.strip) || 0, this.processUmask = this.chmod ? typeof e.processUmask == `number` ? e.processUmask : Vi() : 0, this.umask = typeof e.umask == `number` ? e.umask : this.processUmask, this.dmode = e.dmode || 511 & ~this.umask, this.fmode = e.fmode || 438 & ~this.umask, this.on(`entry`, (e) => this[Hi](e));
2460
+ this.preserveOwner = e.preserveOwner === void 0 && typeof e.uid != `number` ? !!(process.getuid && process.getuid() === 0) : !!e.preserveOwner, this.processUid = (this.preserveOwner || this.setOwner) && process.getuid ? process.getuid() : void 0, this.processGid = (this.preserveOwner || this.setOwner) && process.getgid ? process.getgid() : void 0, this.maxDepth = typeof e.maxDepth == `number` ? e.maxDepth : ha, this.forceChown = e.forceChown === !0, this.win32 = !!e.win32 || ma, this.newer = !!e.newer, this.keep = !!e.keep, this.noMtime = !!e.noMtime, this.preservePaths = !!e.preservePaths, this.unlink = !!e.unlink, this.cwd = z(node_path__rspack_import_3.resolve(e.cwd || process.cwd())), this.strip = Number(e.strip) || 0, this.processUmask = this.chmod ? typeof e.processUmask == `number` ? e.processUmask : Ui() : 0, this.umask = typeof e.umask == `number` ? e.umask : this.processUmask, this.dmode = e.dmode || 511 & ~this.umask, this.fmode = e.fmode || 438 & ~this.umask, this.on(`entry`, (e) => this[Wi](e));
2432
2461
  }
2433
2462
  warn(e, t, n = {}) {
2434
2463
  return (e === `TAR_BAD_ARCHIVE` || e === `TAR_ABORT`) && (n.recoverable = !1), super.warn(e, t, n);
2435
2464
  }
2436
- [oa]() {
2437
- this[aa] && this[na] === 0 && (this.emit(`prefinish`), this.emit(`finish`), this.emit(`end`));
2465
+ [ca]() {
2466
+ this[sa] && this[ia] === 0 && (this.emit(`prefinish`), this.emit(`finish`), this.emit(`end`));
2438
2467
  }
2439
- [ea](e, t) {
2468
+ [na](e, t) {
2440
2469
  let n = e[t], { type: r } = e;
2441
2470
  if (!n || this.preservePaths) return !0;
2442
2471
  let [a, o] = nr(n), s = o.replaceAll(/\\/g, `/`).split(`/`);
2443
- if (s.includes(`..`) || fa && /^[a-z]:\.\.$/i.test(s[0] ?? ``)) {
2472
+ if (s.includes(`..`) || ma && /^[a-z]:\.\.$/i.test(s[0] ?? ``)) {
2444
2473
  if (t === `path` || r === `Link`) return this.warn(`TAR_ENTRY_ERROR`, `${t} contains '..'`, {
2445
2474
  entry: e,
2446
2475
  [t]: n
@@ -2456,7 +2485,7 @@ var Fr = class {
2456
2485
  [t]: n
2457
2486
  })), !0;
2458
2487
  }
2459
- [$i](e) {
2488
+ [ta](e) {
2460
2489
  let t = z(e.path), n = t.split(`/`);
2461
2490
  if (this.strip) {
2462
2491
  if (n.length < this.strip) return !1;
@@ -2473,7 +2502,7 @@ var Fr = class {
2473
2502
  depth: n.length,
2474
2503
  maxDepth: this.maxDepth
2475
2504
  }), !1;
2476
- if (!this[ea](e, `path`) || !this[ea](e, `linkpath`)) return !1;
2505
+ if (!this[na](e, `path`) || !this[na](e, `linkpath`)) return !1;
2477
2506
  if (e.absolute = node_path__rspack_import_3.isAbsolute(e.path) ? z(node_path__rspack_import_3.resolve(e.path)) : z(node_path__rspack_import_3.resolve(this.cwd, e.path)), !this.preservePaths && typeof e.absolute == `string` && e.absolute.indexOf(this.cwd + `/`) !== 0 && e.absolute !== this.cwd) return this.warn(`TAR_ENTRY_ERROR`, `path escaped extraction target`, {
2478
2507
  entry: e,
2479
2508
  path: z(e.path),
@@ -2489,8 +2518,8 @@ var Fr = class {
2489
2518
  }
2490
2519
  return !0;
2491
2520
  }
2492
- [Hi](e) {
2493
- if (!this[$i](e)) return e.resume();
2521
+ [Wi](e) {
2522
+ if (!this[ta](e)) return e.resume();
2494
2523
  switch (node_assert__rspack_import_12.equal(typeof e.absolute, `string`), e.type) {
2495
2524
  case `Directory`:
2496
2525
  case `GNUDumpDir`: e.mode && (e.mode |= 448);
@@ -2498,15 +2527,15 @@ var Fr = class {
2498
2527
  case `OldFile`:
2499
2528
  case `ContiguousFile`:
2500
2529
  case `Link`:
2501
- case `SymbolicLink`: return this[Ui](e);
2502
- default: return this[Qi](e);
2530
+ case `SymbolicLink`: return this[Gi](e);
2531
+ default: return this[ea](e);
2503
2532
  }
2504
2533
  }
2505
2534
  [$](e, t) {
2506
- e.name === `CwdError` ? this.emit(`error`, e) : (this.warn(`TAR_ENTRY_ERROR`, e, { entry: t }), this[ia](), t.resume());
2535
+ e.name === `CwdError` ? this.emit(`error`, e) : (this.warn(`TAR_ENTRY_ERROR`, e, { entry: t }), this[oa](), t.resume());
2507
2536
  }
2508
- [ta](e, t, n) {
2509
- ki(z(e), {
2537
+ [ra](e, t, n) {
2538
+ ji(z(e), {
2510
2539
  uid: this.uid,
2511
2540
  gid: this.gid,
2512
2541
  processUid: this.processUid,
@@ -2518,18 +2547,18 @@ var Fr = class {
2518
2547
  mode: t
2519
2548
  }, n);
2520
2549
  }
2521
- [ca](e) {
2550
+ [ua](e) {
2522
2551
  return this.forceChown || this.preserveOwner && (typeof e.uid == `number` && e.uid !== this.processUid || typeof e.gid == `number` && e.gid !== this.processGid) || typeof this.uid == `number` && this.uid !== this.processUid || typeof this.gid == `number` && this.gid !== this.processGid;
2523
2552
  }
2524
- [la](e) {
2525
- return ga(this.uid, e.uid, this.processUid);
2553
+ [da](e) {
2554
+ return va(this.uid, e.uid, this.processUid);
2526
2555
  }
2527
- [ua](e) {
2528
- return ga(this.gid, e.gid, this.processGid);
2556
+ [fa](e) {
2557
+ return va(this.gid, e.gid, this.processGid);
2529
2558
  }
2530
- [Ki](e, n) {
2559
+ [Ji](e, n) {
2531
2560
  let r = typeof e.mode == `number` ? e.mode & 4095 : this.fmode, i = new pt(String(e.absolute), {
2532
- flags: yi(e.size),
2561
+ flags: xi(e.size),
2533
2562
  mode: r,
2534
2563
  autoClose: !1
2535
2564
  });
@@ -2542,7 +2571,7 @@ var Fr = class {
2542
2571
  return;
2543
2572
  }
2544
2573
  --a === 0 && i.fd !== void 0 && node_fs__rspack_import_0.close(i.fd, (t) => {
2545
- t ? this[$](t, e) : this[ia](), n();
2574
+ t ? this[$](t, e) : this[oa](), n();
2546
2575
  });
2547
2576
  };
2548
2577
  i.on(`finish`, () => {
@@ -2552,9 +2581,9 @@ var Fr = class {
2552
2581
  let i = e.atime || /* @__PURE__ */ new Date(), s = e.mtime;
2553
2582
  node_fs__rspack_import_0.futimes(r, i, s, (e) => e ? node_fs__rspack_import_0.utimes(n, i, s, (t) => o(t && e)) : o());
2554
2583
  }
2555
- if (typeof r == `number` && this[ca](e)) {
2584
+ if (typeof r == `number` && this[ua](e)) {
2556
2585
  a++;
2557
- let i = this[la](e), s = this[ua](e);
2586
+ let i = this[da](e), s = this[fa](e);
2558
2587
  typeof i == `number` && typeof s == `number` && node_fs__rspack_import_0.fchown(r, i, s, (e) => e ? node_fs__rspack_import_0.chown(n, i, s, (t) => o(t && e)) : o());
2559
2588
  }
2560
2589
  o();
@@ -2564,76 +2593,76 @@ var Fr = class {
2564
2593
  this[$](t, e), n();
2565
2594
  }), e.pipe(s)), s.pipe(i);
2566
2595
  }
2567
- [qi](e, n) {
2596
+ [Yi](e, n) {
2568
2597
  let r = typeof e.mode == `number` ? e.mode & 4095 : this.dmode;
2569
- this[ta](String(e.absolute), r, (r) => {
2598
+ this[ra](String(e.absolute), r, (r) => {
2570
2599
  if (r) {
2571
2600
  this[$](r, e), n();
2572
2601
  return;
2573
2602
  }
2574
2603
  let i = 1, a = () => {
2575
- --i === 0 && (n(), this[ia](), e.resume());
2604
+ --i === 0 && (n(), this[oa](), e.resume());
2576
2605
  };
2577
- e.mtime && !this.noMtime && (i++, node_fs__rspack_import_0.utimes(String(e.absolute), e.atime || /* @__PURE__ */ new Date(), e.mtime, a)), this[ca](e) && (i++, node_fs__rspack_import_0.chown(String(e.absolute), Number(this[la](e)), Number(this[ua](e)), a)), a();
2606
+ e.mtime && !this.noMtime && (i++, node_fs__rspack_import_0.utimes(String(e.absolute), e.atime || /* @__PURE__ */ new Date(), e.mtime, a)), this[ua](e) && (i++, node_fs__rspack_import_0.chown(String(e.absolute), Number(this[da](e)), Number(this[fa](e)), a)), a();
2578
2607
  });
2579
2608
  }
2580
- [Qi](e) {
2609
+ [ea](e) {
2581
2610
  e.unsupported = !0, this.warn(`TAR_ENTRY_UNSUPPORTED`, `unsupported entry type: ${e.type}`, { entry: e }), e.resume();
2582
2611
  }
2583
- [Yi](e, t) {
2612
+ [Zi](e, t) {
2584
2613
  let n = z(node_path__rspack_import_3.relative(this.cwd, node_path__rspack_import_3.resolve(node_path__rspack_import_3.dirname(String(e.absolute)), String(e.linkpath)))).split(`/`);
2585
- this[Zi](e, this.cwd, n, () => this[Ji](e, String(e.linkpath), `symlink`, t), (n) => {
2614
+ this[$i](e, this.cwd, n, () => this[Xi](e, String(e.linkpath), `symlink`, t), (n) => {
2586
2615
  this[$](n, e), t();
2587
2616
  });
2588
2617
  }
2589
- [Xi](e, t) {
2618
+ [Qi](e, t) {
2590
2619
  let n = z(node_path__rspack_import_3.resolve(this.cwd, String(e.linkpath))), r = z(String(e.linkpath)).split(`/`);
2591
- this[Zi](e, this.cwd, r, () => this[Ji](e, n, `link`, t), (n) => {
2620
+ this[$i](e, this.cwd, r, () => this[Xi](e, n, `link`, t), (n) => {
2592
2621
  this[$](n, e), t();
2593
2622
  });
2594
2623
  }
2595
- [Zi](e, n, r, a, o) {
2624
+ [$i](e, n, r, a, o) {
2596
2625
  let s = r.shift();
2597
2626
  if (this.preservePaths || s === void 0) return a();
2598
2627
  let c = node_path__rspack_import_3.resolve(n, s);
2599
2628
  node_fs__rspack_import_0.lstat(c, (t, n) => {
2600
2629
  if (t) return a();
2601
- if (n?.isSymbolicLink()) return o(new Di(c, node_path__rspack_import_3.resolve(c, r.join(`/`))));
2602
- this[Zi](e, c, r, a, o);
2630
+ if (n?.isSymbolicLink()) return o(new ki(c, node_path__rspack_import_3.resolve(c, r.join(`/`))));
2631
+ this[$i](e, c, r, a, o);
2603
2632
  });
2604
2633
  }
2605
- [ra]() {
2606
- this[na]++;
2634
+ [aa]() {
2635
+ this[ia]++;
2607
2636
  }
2608
- [ia]() {
2609
- this[na]--, this[oa]();
2637
+ [oa]() {
2638
+ this[ia]--, this[ca]();
2610
2639
  }
2611
- [sa](e) {
2612
- this[ia](), e.resume();
2640
+ [la](e) {
2641
+ this[oa](), e.resume();
2613
2642
  }
2614
- [Gi](e, t) {
2615
- return e.type === `File` && !this.unlink && t.isFile() && t.nlink <= 1 && !fa;
2643
+ [qi](e, t) {
2644
+ return e.type === `File` && !this.unlink && t.isFile() && t.nlink <= 1 && !ma;
2616
2645
  }
2617
- [Ui](e) {
2618
- this[ra]();
2646
+ [Gi](e) {
2647
+ this[aa]();
2619
2648
  let t = [e.path];
2620
- e.linkpath && t.push(e.linkpath), this.reservations.reserve(t, (t) => this[Wi](e, t));
2649
+ e.linkpath && t.push(e.linkpath), this.reservations.reserve(t, (t) => this[Ki](e, t));
2621
2650
  }
2622
- [Wi](e, n) {
2651
+ [Ki](e, n) {
2623
2652
  let r = (e) => {
2624
2653
  n(e);
2625
2654
  }, a = () => {
2626
- this[ta](this.cwd, this.dmode, (t) => {
2655
+ this[ra](this.cwd, this.dmode, (t) => {
2627
2656
  if (t) {
2628
2657
  this[$](t, e), r();
2629
2658
  return;
2630
2659
  }
2631
- this[da] = !0, o();
2660
+ this[pa] = !0, o();
2632
2661
  });
2633
2662
  }, o = () => {
2634
2663
  if (e.absolute !== this.cwd) {
2635
2664
  let t = z(node_path__rspack_import_3.dirname(String(e.absolute)));
2636
- if (t !== this.cwd) return this[ta](t, this.dmode, (t) => {
2665
+ if (t !== this.cwd) return this[ra](t, this.dmode, (t) => {
2637
2666
  if (t) {
2638
2667
  this[$](t, e), r();
2639
2668
  return;
@@ -2645,10 +2674,10 @@ var Fr = class {
2645
2674
  }, s = () => {
2646
2675
  node_fs__rspack_import_0.lstat(String(e.absolute), (n, i) => {
2647
2676
  if (i && (this.keep || this.newer && i.mtime > (e.mtime ?? i.mtime))) {
2648
- this[sa](e), r();
2677
+ this[la](e), r();
2649
2678
  return;
2650
2679
  }
2651
- if (n || this[Gi](e, i)) return this[Q](null, e, r);
2680
+ if (n || this[qi](e, i)) return this[Q](null, e, r);
2652
2681
  if (i.isDirectory()) {
2653
2682
  if (e.type === `Directory`) {
2654
2683
  let n = this.chmod && e.mode && (i.mode & 4095) !== e.mode, a = (t) => this[Q](t ?? null, e, r);
@@ -2657,10 +2686,10 @@ var Fr = class {
2657
2686
  if (e.absolute !== this.cwd) return node_fs__rspack_import_0.rmdir(String(e.absolute), (t) => this[Q](t ?? null, e, r));
2658
2687
  }
2659
2688
  if (e.absolute === this.cwd) return this[Q](null, e, r);
2660
- ma(String(e.absolute), (t) => this[Q](t ?? null, e, r));
2689
+ ga(String(e.absolute), (t) => this[Q](t ?? null, e, r));
2661
2690
  });
2662
2691
  };
2663
- this[da] ? o() : a();
2692
+ this[pa] ? o() : a();
2664
2693
  }
2665
2694
  [Q](e, t, n) {
2666
2695
  if (e) {
@@ -2670,59 +2699,59 @@ var Fr = class {
2670
2699
  switch (t.type) {
2671
2700
  case `File`:
2672
2701
  case `OldFile`:
2673
- case `ContiguousFile`: return this[Ki](t, n);
2674
- case `Link`: return this[Xi](t, n);
2675
- case `SymbolicLink`: return this[Yi](t, n);
2702
+ case `ContiguousFile`: return this[Ji](t, n);
2703
+ case `Link`: return this[Qi](t, n);
2704
+ case `SymbolicLink`: return this[Zi](t, n);
2676
2705
  case `Directory`:
2677
- case `GNUDumpDir`: return this[qi](t, n);
2706
+ case `GNUDumpDir`: return this[Yi](t, n);
2678
2707
  }
2679
2708
  }
2680
- [Ji](e, n, r, i) {
2709
+ [Xi](e, n, r, i) {
2681
2710
  node_fs__rspack_import_0[r](n, String(e.absolute), (t) => {
2682
- t ? this[$](t, e) : (this[ia](), e.resume()), i();
2711
+ t ? this[$](t, e) : (this[oa](), e.resume()), i();
2683
2712
  });
2684
2713
  }
2685
- }, va = (e) => {
2714
+ }, ba = (e) => {
2686
2715
  try {
2687
2716
  return [null, e()];
2688
2717
  } catch (e) {
2689
2718
  return [e, null];
2690
2719
  }
2691
- }, ya = class extends _a {
2720
+ }, xa = class extends ya {
2692
2721
  sync = !0;
2693
2722
  [Q](e, t) {
2694
2723
  return super[Q](e, t, () => {});
2695
2724
  }
2696
- [Ui](e) {
2697
- if (!this[da]) {
2698
- let t = this[ta](this.cwd, this.dmode);
2725
+ [Gi](e) {
2726
+ if (!this[pa]) {
2727
+ let t = this[ra](this.cwd, this.dmode);
2699
2728
  if (t) return this[$](t, e);
2700
- this[da] = !0;
2729
+ this[pa] = !0;
2701
2730
  }
2702
2731
  if (e.absolute !== this.cwd) {
2703
2732
  let t = z(node_path__rspack_import_3.dirname(String(e.absolute)));
2704
2733
  if (t !== this.cwd) {
2705
- let n = this[ta](t, this.dmode);
2734
+ let n = this[ra](t, this.dmode);
2706
2735
  if (n) return this[$](n, e);
2707
2736
  }
2708
2737
  }
2709
- let [n, r] = va(() => node_fs__rspack_import_0.lstatSync(String(e.absolute)));
2710
- if (r && (this.keep || this.newer && r.mtime > (e.mtime ?? r.mtime))) return this[sa](e);
2711
- if (n || this[Gi](e, r)) return this[Q](null, e);
2738
+ let [n, r] = ba(() => node_fs__rspack_import_0.lstatSync(String(e.absolute)));
2739
+ if (r && (this.keep || this.newer && r.mtime > (e.mtime ?? r.mtime))) return this[la](e);
2740
+ if (n || this[qi](e, r)) return this[Q](null, e);
2712
2741
  if (r.isDirectory()) {
2713
2742
  if (e.type === `Directory`) {
2714
- let [n] = this.chmod && e.mode && (r.mode & 4095) !== e.mode ? va(() => {
2743
+ let [n] = this.chmod && e.mode && (r.mode & 4095) !== e.mode ? ba(() => {
2715
2744
  node_fs__rspack_import_0.chmodSync(String(e.absolute), Number(e.mode));
2716
2745
  }) : [];
2717
2746
  return this[Q](n, e);
2718
2747
  }
2719
- let [n] = va(() => node_fs__rspack_import_0.rmdirSync(String(e.absolute)));
2748
+ let [n] = ba(() => node_fs__rspack_import_0.rmdirSync(String(e.absolute)));
2720
2749
  this[Q](n, e);
2721
2750
  }
2722
- let [a] = e.absolute === this.cwd ? [] : va(() => ha(String(e.absolute)));
2751
+ let [a] = e.absolute === this.cwd ? [] : ba(() => _a(String(e.absolute)));
2723
2752
  this[Q](a, e);
2724
2753
  }
2725
- [Ki](e, n) {
2754
+ [Ji](e, n) {
2726
2755
  let r = typeof e.mode == `number` ? e.mode & 4095 : this.fmode, i = (r) => {
2727
2756
  let i;
2728
2757
  try {
@@ -2733,7 +2762,7 @@ var Fr = class {
2733
2762
  (r || i) && this[$](r || i, e), n();
2734
2763
  }, a;
2735
2764
  try {
2736
- a = node_fs__rspack_import_0.openSync(String(e.absolute), yi(e.size), r);
2765
+ a = node_fs__rspack_import_0.openSync(String(e.absolute), xi(e.size), r);
2737
2766
  } catch (e) {
2738
2767
  return i(e);
2739
2768
  }
@@ -2758,8 +2787,8 @@ var Fr = class {
2758
2787
  }
2759
2788
  }
2760
2789
  }
2761
- if (this[ca](e)) {
2762
- let r = this[la](e), i = this[ua](e);
2790
+ if (this[ua](e)) {
2791
+ let r = this[da](e), i = this[fa](e);
2763
2792
  try {
2764
2793
  node_fs__rspack_import_0.fchownSync(a, Number(r), Number(i));
2765
2794
  } catch (a) {
@@ -2773,8 +2802,8 @@ var Fr = class {
2773
2802
  i(n);
2774
2803
  });
2775
2804
  }
2776
- [qi](e, n) {
2777
- let r = typeof e.mode == `number` ? e.mode & 4095 : this.dmode, i = this[ta](String(e.absolute), r);
2805
+ [Yi](e, n) {
2806
+ let r = typeof e.mode == `number` ? e.mode & 4095 : this.dmode, i = this[ra](String(e.absolute), r);
2778
2807
  if (i) {
2779
2808
  this[$](i, e), n();
2780
2809
  return;
@@ -2782,14 +2811,14 @@ var Fr = class {
2782
2811
  if (e.mtime && !this.noMtime) try {
2783
2812
  node_fs__rspack_import_0.utimesSync(String(e.absolute), e.atime || /* @__PURE__ */ new Date(), e.mtime);
2784
2813
  } catch {}
2785
- if (this[ca](e)) try {
2786
- node_fs__rspack_import_0.chownSync(String(e.absolute), Number(this[la](e)), Number(this[ua](e)));
2814
+ if (this[ua](e)) try {
2815
+ node_fs__rspack_import_0.chownSync(String(e.absolute), Number(this[da](e)), Number(this[fa](e)));
2787
2816
  } catch {}
2788
2817
  n(), e.resume();
2789
2818
  }
2790
- [ta](e, t) {
2819
+ [ra](e, t) {
2791
2820
  try {
2792
- return Ni(z(e), {
2821
+ return Fi(z(e), {
2793
2822
  uid: this.uid,
2794
2823
  gid: this.gid,
2795
2824
  processUid: this.processUid,
@@ -2804,18 +2833,18 @@ var Fr = class {
2804
2833
  return e;
2805
2834
  }
2806
2835
  }
2807
- [Zi](e, n, r, a, o) {
2836
+ [$i](e, n, r, a, o) {
2808
2837
  if (this.preservePaths || r.length === 0) return a();
2809
2838
  let s = n;
2810
2839
  for (let e of r) {
2811
2840
  s = node_path__rspack_import_3.resolve(s, e);
2812
- let [c, l] = va(() => node_fs__rspack_import_0.lstatSync(s));
2841
+ let [c, l] = ba(() => node_fs__rspack_import_0.lstatSync(s));
2813
2842
  if (c) return a();
2814
- if (l.isSymbolicLink()) return o(new Di(s, node_path__rspack_import_3.resolve(n, r.join(`/`))));
2843
+ if (l.isSymbolicLink()) return o(new ki(s, node_path__rspack_import_3.resolve(n, r.join(`/`))));
2815
2844
  }
2816
2845
  a();
2817
2846
  }
2818
- [Ji](e, n, r, i) {
2847
+ [Xi](e, n, r, i) {
2819
2848
  let a = `${r}Sync`;
2820
2849
  try {
2821
2850
  node_fs__rspack_import_0[a](n, String(e.absolute)), i(), e.resume();
@@ -2823,14 +2852,14 @@ var Fr = class {
2823
2852
  return this[$](t, e);
2824
2853
  }
2825
2854
  }
2826
- }, ba = Ct((e) => {
2827
- let n = new ya(e), r = e.file, i = node_fs__rspack_import_0.statSync(r);
2855
+ }, Sa = Ct((e) => {
2856
+ let n = new xa(e), r = e.file, i = node_fs__rspack_import_0.statSync(r);
2828
2857
  new ft(r, {
2829
2858
  readSize: e.maxReadSize || 16 * 1024 * 1024,
2830
2859
  size: i.size
2831
2860
  }).pipe(n);
2832
2861
  }, (e, n) => {
2833
- let r = new _a(e), i = e.maxReadSize || 16 * 1024 * 1024, a = e.file;
2862
+ let r = new ya(e), i = e.maxReadSize || 16 * 1024 * 1024, a = e.file;
2834
2863
  return new Promise((e, n) => {
2835
2864
  r.on(`error`, n), r.on(`close`, e), node_fs__rspack_import_0.stat(a, (e, t) => {
2836
2865
  if (e) n(e);
@@ -2843,10 +2872,10 @@ var Fr = class {
2843
2872
  }
2844
2873
  });
2845
2874
  });
2846
- }, (e) => new ya(e), (e) => new _a(e), (e, t) => {
2875
+ }, (e) => new xa(e), (e) => new ya(e), (e, t) => {
2847
2876
  t?.length && Zn(e, t);
2848
- }), xa = (e, n) => {
2849
- let r = new ri(e), i = !0, a, o;
2877
+ }), Ca = (e, n) => {
2878
+ let r = new ai(e), i = !0, a, o;
2850
2879
  try {
2851
2880
  try {
2852
2881
  a = node_fs__rspack_import_0.openSync(e.file, `r+`);
@@ -2866,21 +2895,21 @@ var Fr = class {
2866
2895
  if (o + r + 512 > s.size) break;
2867
2896
  o += r, e.mtimeCache && n.mtime && e.mtimeCache.set(String(n.path), n.mtime);
2868
2897
  }
2869
- i = !1, Sa(e, r, o, a, n);
2898
+ i = !1, wa(e, r, o, a, n);
2870
2899
  } finally {
2871
2900
  if (i) try {
2872
2901
  node_fs__rspack_import_0.closeSync(a);
2873
2902
  } catch {}
2874
2903
  }
2875
- }, Sa = (e, t, n, r, i) => {
2904
+ }, wa = (e, t, n, r, i) => {
2876
2905
  let a = new mt(e.file, {
2877
2906
  fd: r,
2878
2907
  start: n
2879
2908
  });
2880
- t.pipe(a), wa(t, i);
2881
- }, Ca = (e, n) => {
2909
+ t.pipe(a), Ea(t, i);
2910
+ }, Ta = (e, n) => {
2882
2911
  n = Array.from(n);
2883
- let r = new ni(e), i = (n, r, i) => {
2912
+ let r = new ii(e), i = (n, r, i) => {
2884
2913
  let a = (e, r) => {
2885
2914
  e ? node_fs__rspack_import_0.close(n, (t) => i(e)) : i(null, r);
2886
2915
  }, o = 0;
@@ -2911,13 +2940,13 @@ var Fr = class {
2911
2940
  fd: u,
2912
2941
  start: i
2913
2942
  });
2914
- r.pipe(s), s.on(`error`, o), s.on(`close`, a), Ta(r, n);
2943
+ r.pipe(s), s.on(`error`, o), s.on(`close`, a), Da(r, n);
2915
2944
  });
2916
2945
  });
2917
2946
  };
2918
2947
  node_fs__rspack_import_0.open(e.file, s, c);
2919
2948
  });
2920
- }, wa = (e, t) => {
2949
+ }, Ea = (e, t) => {
2921
2950
  t.forEach((t) => {
2922
2951
  t.charAt(0) === `@` ? Qn({
2923
2952
  file: node_path__rspack_import_3.resolve(e.cwd, t.slice(1)),
@@ -2926,14 +2955,14 @@ var Fr = class {
2926
2955
  onReadEntry: (t) => e.add(t)
2927
2956
  }) : e.add(t);
2928
2957
  }), e.end();
2929
- }, Ta = async (e, t) => {
2958
+ }, Da = async (e, t) => {
2930
2959
  for (let n of t) n.charAt(0) === `@` ? await Qn({
2931
2960
  file: node_path__rspack_import_3.resolve(String(e.cwd), n.slice(1)),
2932
2961
  noResume: !0,
2933
2962
  onReadEntry: (t) => e.add(t)
2934
2963
  }) : e.add(n);
2935
2964
  e.end();
2936
- }, Ea = Ct(xa, Ca, () => {
2965
+ }, Oa = Ct(Ca, Ta, () => {
2937
2966
  throw TypeError(`file is required`);
2938
2967
  }, () => {
2939
2968
  throw TypeError(`file is required`);
@@ -2942,17 +2971,17 @@ var Fr = class {
2942
2971
  if (e.gzip || e.brotli || e.zstd || e.file.endsWith(`.br`) || e.file.endsWith(`.tbr`)) throw TypeError(`cannot append to compressed archives`);
2943
2972
  if (!t?.length) throw TypeError(`no paths specified to add/replace`);
2944
2973
  });
2945
- Ct(Ea.syncFile, Ea.asyncFile, Ea.syncNoFile, Ea.asyncNoFile, (e, t = []) => {
2946
- Ea.validate?.(e, t), Da(e);
2974
+ Ct(Oa.syncFile, Oa.asyncFile, Oa.syncNoFile, Oa.asyncNoFile, (e, t = []) => {
2975
+ Oa.validate?.(e, t), ka(e);
2947
2976
  });
2948
- var Da = (e) => {
2977
+ var ka = (e) => {
2949
2978
  let t = e.filter;
2950
2979
  e.mtimeCache ||= /* @__PURE__ */ new Map(), e.filter = t ? (n, r) => t(n, r) && !((e.mtimeCache?.get(n) ?? r.mtime ?? 0) > (r.mtime ?? 0)) : (t, n) => !((e.mtimeCache?.get(t) ?? n.mtime ?? 0) > (n.mtime ?? 0));
2951
2980
  };
2952
2981
 
2953
2982
 
2954
2983
  __webpack_require__.d(__webpack_exports__, {
2955
- t: () => (ce)
2984
+ index_min_exports: () => (ce)
2956
2985
  });
2957
2986
 
2958
2987