piral-cli 1.11.2-beta.5e5c12e → 1.11.2-beta.767b0ab

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 (2) hide show
  1. package/lib/external/index.js +1170 -1215
  2. package/package.json +2 -2
@@ -724,7 +724,7 @@ var require_stringify = __commonJS({
724
724
  }
725
725
  } else {
726
726
  braces = "{}";
727
- var fn = function(key) {
727
+ var fn2 = function(key) {
728
728
  var t = _stringify(object[key], options, recursiveLvl + 1, key);
729
729
  if (t !== void 0) {
730
730
  t = _stringify_key(key) + ":" + (options.indent ? " " : "") + t + ",";
@@ -735,12 +735,12 @@ var require_stringify = __commonJS({
735
735
  if (Array.isArray(options.replacer)) {
736
736
  for (var i = 0; i < options.replacer.length; i++)
737
737
  if (hasOwnProperty2.call(object, options.replacer[i]))
738
- fn(options.replacer[i]);
738
+ fn2(options.replacer[i]);
739
739
  } else {
740
740
  var keys = Object.keys(object);
741
741
  if (options.sort_keys)
742
742
  keys = keys.sort(typeof options.sort_keys === "function" ? options.sort_keys : void 0);
743
- keys.forEach(fn);
743
+ keys.forEach(fn2);
744
744
  }
745
745
  }
746
746
  len -= 2;
@@ -3855,15 +3855,15 @@ var require_route = __commonJS({
3855
3855
  }
3856
3856
  function wrapConversion(toModel, graph) {
3857
3857
  const path3 = [graph[toModel].parent, toModel];
3858
- let fn = conversions[graph[toModel].parent][toModel];
3858
+ let fn2 = conversions[graph[toModel].parent][toModel];
3859
3859
  let cur = graph[toModel].parent;
3860
3860
  while (graph[cur].parent) {
3861
3861
  path3.unshift(graph[cur].parent);
3862
- fn = link(conversions[graph[cur].parent][cur], fn);
3862
+ fn2 = link(conversions[graph[cur].parent][cur], fn2);
3863
3863
  cur = graph[cur].parent;
3864
3864
  }
3865
- fn.conversion = path3;
3866
- return fn;
3865
+ fn2.conversion = path3;
3866
+ return fn2;
3867
3867
  }
3868
3868
  module2.exports = function(fromModel) {
3869
3869
  const graph = deriveBFS(fromModel);
@@ -3889,7 +3889,7 @@ var require_color_convert = __commonJS({
3889
3889
  var route = require_route();
3890
3890
  var convert = {};
3891
3891
  var models = Object.keys(conversions);
3892
- function wrapRaw(fn) {
3892
+ function wrapRaw(fn2) {
3893
3893
  const wrappedFn = function(...args) {
3894
3894
  const arg0 = args[0];
3895
3895
  if (arg0 === void 0 || arg0 === null) {
@@ -3898,14 +3898,14 @@ var require_color_convert = __commonJS({
3898
3898
  if (arg0.length > 1) {
3899
3899
  args = arg0;
3900
3900
  }
3901
- return fn(args);
3901
+ return fn2(args);
3902
3902
  };
3903
- if ("conversion" in fn) {
3904
- wrappedFn.conversion = fn.conversion;
3903
+ if ("conversion" in fn2) {
3904
+ wrappedFn.conversion = fn2.conversion;
3905
3905
  }
3906
3906
  return wrappedFn;
3907
3907
  }
3908
- function wrapRounded(fn) {
3908
+ function wrapRounded(fn2) {
3909
3909
  const wrappedFn = function(...args) {
3910
3910
  const arg0 = args[0];
3911
3911
  if (arg0 === void 0 || arg0 === null) {
@@ -3914,7 +3914,7 @@ var require_color_convert = __commonJS({
3914
3914
  if (arg0.length > 1) {
3915
3915
  args = arg0;
3916
3916
  }
3917
- const result = fn(args);
3917
+ const result = fn2(args);
3918
3918
  if (typeof result === "object") {
3919
3919
  for (let len = result.length, i = 0; i < len; i++) {
3920
3920
  result[i] = Math.round(result[i]);
@@ -3922,8 +3922,8 @@ var require_color_convert = __commonJS({
3922
3922
  }
3923
3923
  return result;
3924
3924
  };
3925
- if ("conversion" in fn) {
3926
- wrappedFn.conversion = fn.conversion;
3925
+ if ("conversion" in fn2) {
3926
+ wrappedFn.conversion = fn2.conversion;
3927
3927
  }
3928
3928
  return wrappedFn;
3929
3929
  }
@@ -3934,9 +3934,9 @@ var require_color_convert = __commonJS({
3934
3934
  const routes = route(fromModel);
3935
3935
  const routeModels = Object.keys(routes);
3936
3936
  routeModels.forEach((toModel) => {
3937
- const fn = routes[toModel];
3938
- convert[fromModel][toModel] = wrapRounded(fn);
3939
- convert[fromModel][toModel].raw = wrapRaw(fn);
3937
+ const fn2 = routes[toModel];
3938
+ convert[fromModel][toModel] = wrapRounded(fn2);
3939
+ convert[fromModel][toModel].raw = wrapRaw(fn2);
3940
3940
  });
3941
3941
  });
3942
3942
  module2.exports = convert;
@@ -3947,16 +3947,16 @@ var require_color_convert = __commonJS({
3947
3947
  var require_ansi_styles = __commonJS({
3948
3948
  "../../../node_modules/ansi-styles/index.js"(exports2, module2) {
3949
3949
  "use strict";
3950
- var wrapAnsi164 = (fn, offset) => (...args) => {
3951
- const code = fn(...args);
3950
+ var wrapAnsi164 = (fn2, offset) => (...args) => {
3951
+ const code = fn2(...args);
3952
3952
  return `\x1B[${code + offset}m`;
3953
3953
  };
3954
- var wrapAnsi2564 = (fn, offset) => (...args) => {
3955
- const code = fn(...args);
3954
+ var wrapAnsi2564 = (fn2, offset) => (...args) => {
3955
+ const code = fn2(...args);
3956
3956
  return `\x1B[${38 + offset};5;${code}m`;
3957
3957
  };
3958
- var wrapAnsi16m4 = (fn, offset) => (...args) => {
3959
- const rgb = fn(...args);
3958
+ var wrapAnsi16m4 = (fn2, offset) => (...args) => {
3959
+ const rgb = fn2(...args);
3960
3960
  return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
3961
3961
  };
3962
3962
  var ansi2ansi = (n) => n;
@@ -4863,8 +4863,8 @@ var require_usage = __commonJS({
4863
4863
  const emit = typeof level === "function" ? level : logger[level];
4864
4864
  emit(self2.help());
4865
4865
  };
4866
- self2.functionDescription = (fn) => {
4867
- const description = fn.name ? decamelize(fn.name, "-") : __("generated-value");
4866
+ self2.functionDescription = (fn2) => {
4867
+ const description = fn2.name ? decamelize(fn2.name, "-") : __("generated-value");
4868
4868
  return ["(", description, ")"].join("");
4869
4869
  };
4870
4870
  self2.stringifiedValues = function stringifiedValues(values, separator) {
@@ -5131,8 +5131,8 @@ var require_completion = __commonJS({
5131
5131
  return script.replace(/{{app_path}}/g, $0);
5132
5132
  };
5133
5133
  let completionFunction = null;
5134
- self2.registerFunction = (fn) => {
5135
- completionFunction = fn;
5134
+ self2.registerFunction = (fn2) => {
5135
+ completionFunction = fn2;
5136
5136
  };
5137
5137
  return self2;
5138
5138
  }
@@ -5726,8 +5726,8 @@ var require_y18n = __commonJS({
5726
5726
  var require_p_try = __commonJS({
5727
5727
  "../../../node_modules/p-try/index.js"(exports2, module2) {
5728
5728
  "use strict";
5729
- var pTry = (fn, ...arguments_) => new Promise((resolve6) => {
5730
- resolve6(fn(...arguments_));
5729
+ var pTry = (fn2, ...arguments_) => new Promise((resolve6) => {
5730
+ resolve6(fn2(...arguments_));
5731
5731
  });
5732
5732
  module2.exports = pTry;
5733
5733
  module2.exports.default = pTry;
@@ -5751,20 +5751,20 @@ var require_p_limit = __commonJS({
5751
5751
  queue.shift()();
5752
5752
  }
5753
5753
  };
5754
- const run = (fn, resolve6, ...args) => {
5754
+ const run = (fn2, resolve6, ...args) => {
5755
5755
  activeCount++;
5756
- const result = pTry(fn, ...args);
5756
+ const result = pTry(fn2, ...args);
5757
5757
  resolve6(result);
5758
5758
  result.then(next, next);
5759
5759
  };
5760
- const enqueue = (fn, resolve6, ...args) => {
5760
+ const enqueue = (fn2, resolve6, ...args) => {
5761
5761
  if (activeCount < concurrency) {
5762
- run(fn, resolve6, ...args);
5762
+ run(fn2, resolve6, ...args);
5763
5763
  } else {
5764
- queue.push(run.bind(null, fn, resolve6, ...args));
5764
+ queue.push(run.bind(null, fn2, resolve6, ...args));
5765
5765
  }
5766
5766
  };
5767
- const generator = (fn, ...args) => new Promise((resolve6) => enqueue(fn, resolve6, ...args));
5767
+ const generator = (fn2, ...args) => new Promise((resolve6) => enqueue(fn2, resolve6, ...args));
5768
5768
  Object.defineProperties(generator, {
5769
5769
  activeCount: {
5770
5770
  get: () => activeCount
@@ -6849,10 +6849,10 @@ var require_yargs = __commonJS({
6849
6849
  };
6850
6850
  self2.getExitProcess = () => exitProcess;
6851
6851
  var completionCommand = null;
6852
- self2.completion = function(cmd, desc, fn) {
6853
- argsert_1.argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn], arguments.length);
6852
+ self2.completion = function(cmd, desc, fn2) {
6853
+ argsert_1.argsert("[string] [string|boolean|function] [function]", [cmd, desc, fn2], arguments.length);
6854
6854
  if (typeof desc === "function") {
6855
- fn = desc;
6855
+ fn2 = desc;
6856
6856
  desc = void 0;
6857
6857
  }
6858
6858
  completionCommand = cmd || completionCommand || "completion";
@@ -6860,8 +6860,8 @@ var require_yargs = __commonJS({
6860
6860
  desc = "generate completion script";
6861
6861
  }
6862
6862
  self2.command(completionCommand, desc);
6863
- if (fn)
6864
- completion.registerFunction(fn);
6863
+ if (fn2)
6864
+ completion.registerFunction(fn2);
6865
6865
  return self2;
6866
6866
  };
6867
6867
  self2.showCompletionScript = function($0, cmd) {
@@ -7576,7 +7576,7 @@ var require_brace_expansion = __commonJS({
7576
7576
  }
7577
7577
  }
7578
7578
  }
7579
- var N2;
7579
+ var N;
7580
7580
  if (isSequence) {
7581
7581
  var x = numeric2(n[0]);
7582
7582
  var y2 = numeric2(n[1]);
@@ -7589,7 +7589,7 @@ var require_brace_expansion = __commonJS({
7589
7589
  test2 = gte2;
7590
7590
  }
7591
7591
  var pad = n.some(isPadded2);
7592
- N2 = [];
7592
+ N = [];
7593
7593
  for (var i = x; test2(i, y2); i += incr) {
7594
7594
  var c;
7595
7595
  if (isAlphaSequence) {
@@ -7609,17 +7609,17 @@ var require_brace_expansion = __commonJS({
7609
7609
  }
7610
7610
  }
7611
7611
  }
7612
- N2.push(c);
7612
+ N.push(c);
7613
7613
  }
7614
7614
  } else {
7615
- N2 = [];
7615
+ N = [];
7616
7616
  for (var j2 = 0; j2 < n.length; j2++) {
7617
- N2.push.apply(N2, expand2(n[j2], false));
7617
+ N.push.apply(N, expand2(n[j2], false));
7618
7618
  }
7619
7619
  }
7620
- for (var j2 = 0; j2 < N2.length; j2++) {
7620
+ for (var j2 = 0; j2 < N.length; j2++) {
7621
7621
  for (var k2 = 0; k2 < post.length; k2++) {
7622
- var expansion = pre + N2[j2] + post[k2];
7622
+ var expansion = pre + N[j2] + post[k2];
7623
7623
  if (!isTop || isSequence || expansion)
7624
7624
  expansions.push(expansion);
7625
7625
  }
@@ -8789,12 +8789,12 @@ var require_sync = __commonJS({
8789
8789
  var require_wrappy = __commonJS({
8790
8790
  "../../../node_modules/wrappy/wrappy.js"(exports2, module2) {
8791
8791
  module2.exports = wrappy;
8792
- function wrappy(fn, cb) {
8793
- if (fn && cb) return wrappy(fn)(cb);
8794
- if (typeof fn !== "function")
8792
+ function wrappy(fn2, cb) {
8793
+ if (fn2 && cb) return wrappy(fn2)(cb);
8794
+ if (typeof fn2 !== "function")
8795
8795
  throw new TypeError("need wrapper function");
8796
- Object.keys(fn).forEach(function(k2) {
8797
- wrapper[k2] = fn[k2];
8796
+ Object.keys(fn2).forEach(function(k2) {
8797
+ wrapper[k2] = fn2[k2];
8798
8798
  });
8799
8799
  return wrapper;
8800
8800
  function wrapper() {
@@ -8802,7 +8802,7 @@ var require_wrappy = __commonJS({
8802
8802
  for (var i = 0; i < args.length; i++) {
8803
8803
  args[i] = arguments[i];
8804
8804
  }
8805
- var ret = fn.apply(this, args);
8805
+ var ret = fn2.apply(this, args);
8806
8806
  var cb2 = args[args.length - 1];
8807
8807
  if (typeof ret === "function" && ret !== cb2) {
8808
8808
  Object.keys(cb2).forEach(function(k2) {
@@ -8835,23 +8835,23 @@ var require_once = __commonJS({
8835
8835
  configurable: true
8836
8836
  });
8837
8837
  });
8838
- function once(fn) {
8838
+ function once(fn2) {
8839
8839
  var f2 = function() {
8840
8840
  if (f2.called) return f2.value;
8841
8841
  f2.called = true;
8842
- return f2.value = fn.apply(this, arguments);
8842
+ return f2.value = fn2.apply(this, arguments);
8843
8843
  };
8844
8844
  f2.called = false;
8845
8845
  return f2;
8846
8846
  }
8847
- function onceStrict(fn) {
8847
+ function onceStrict(fn2) {
8848
8848
  var f2 = function() {
8849
8849
  if (f2.called)
8850
8850
  throw new Error(f2.onceError);
8851
8851
  f2.called = true;
8852
- return f2.value = fn.apply(this, arguments);
8852
+ return f2.value = fn2.apply(this, arguments);
8853
8853
  };
8854
- var name = fn.name || "Function wrapped with `once`";
8854
+ var name = fn2.name || "Function wrapped with `once`";
8855
8855
  f2.onceError = name + " shouldn't be called more than once";
8856
8856
  f2.called = false;
8857
8857
  return f2;
@@ -18347,12 +18347,12 @@ var require_mime_types = __commonJS({
18347
18347
  var require_defer = __commonJS({
18348
18348
  "../../../node_modules/asynckit/lib/defer.js"(exports2, module2) {
18349
18349
  module2.exports = defer3;
18350
- function defer3(fn) {
18350
+ function defer3(fn2) {
18351
18351
  var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
18352
18352
  if (nextTick) {
18353
- nextTick(fn);
18353
+ nextTick(fn2);
18354
18354
  } else {
18355
- setTimeout(fn, 0);
18355
+ setTimeout(fn2, 0);
18356
18356
  }
18357
18357
  }
18358
18358
  }
@@ -19178,9 +19178,9 @@ var require_get_intrinsic = __commonJS({
19178
19178
  } else if (name === "%AsyncGeneratorFunction%") {
19179
19179
  value = getEvalledConstructor("async function* () {}");
19180
19180
  } else if (name === "%AsyncGenerator%") {
19181
- var fn = doEval2("%AsyncGeneratorFunction%");
19182
- if (fn) {
19183
- value = fn.prototype;
19181
+ var fn2 = doEval2("%AsyncGeneratorFunction%");
19182
+ if (fn2) {
19183
+ value = fn2.prototype;
19184
19184
  }
19185
19185
  } else if (name === "%AsyncIteratorPrototype%") {
19186
19186
  var gen = doEval2("%AsyncGenerator%");
@@ -20501,10 +20501,10 @@ var require_promisify = __commonJS({
20501
20501
  "../../../node_modules/axios/node_modules/agent-base/dist/src/promisify.js"(exports2) {
20502
20502
  "use strict";
20503
20503
  Object.defineProperty(exports2, "__esModule", { value: true });
20504
- function promisify(fn) {
20504
+ function promisify(fn2) {
20505
20505
  return function(req, opts) {
20506
20506
  return new Promise((resolve6, reject) => {
20507
- fn.call(this, req, opts, (err, rtn) => {
20507
+ fn2.call(this, req, opts, (err, rtn) => {
20508
20508
  if (err) {
20509
20509
  reject(err);
20510
20510
  } else {
@@ -20581,7 +20581,7 @@ var require_src2 = __commonJS({
20581
20581
  set protocol(v2) {
20582
20582
  this.explicitProtocol = v2;
20583
20583
  }
20584
- callback(req, opts, fn) {
20584
+ callback(req, opts, fn2) {
20585
20585
  throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`');
20586
20586
  }
20587
20587
  /**
@@ -32072,8 +32072,8 @@ var require_Subscriber = __commonJS({
32072
32072
  })(Subscription_1.Subscription);
32073
32073
  exports2.Subscriber = Subscriber;
32074
32074
  var _bind = Function.prototype.bind;
32075
- function bind2(fn, thisArg) {
32076
- return _bind.call(fn, thisArg);
32075
+ function bind2(fn2, thisArg) {
32076
+ return _bind.call(fn2, thisArg);
32077
32077
  }
32078
32078
  var ConsumerObserver = (function() {
32079
32079
  function ConsumerObserver2(partialObserver) {
@@ -32219,8 +32219,8 @@ var require_pipe = __commonJS({
32219
32219
  return fns[0];
32220
32220
  }
32221
32221
  return function piped(input) {
32222
- return fns.reduce(function(prev, fn) {
32223
- return fn(prev);
32222
+ return fns.reduce(function(prev, fn2) {
32223
+ return fn2(prev);
32224
32224
  }, input);
32225
32225
  };
32226
32226
  }
@@ -35376,12 +35376,12 @@ var require_mapOneOrManyArgs = __commonJS({
35376
35376
  exports2.mapOneOrManyArgs = void 0;
35377
35377
  var map_1 = require_map();
35378
35378
  var isArray2 = Array.isArray;
35379
- function callOrApply(fn, args) {
35380
- return isArray2(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
35379
+ function callOrApply(fn2, args) {
35380
+ return isArray2(args) ? fn2.apply(void 0, __spreadArray([], __read(args))) : fn2(args);
35381
35381
  }
35382
- function mapOneOrManyArgs(fn) {
35382
+ function mapOneOrManyArgs(fn2) {
35383
35383
  return map_1.map(function(args) {
35384
- return callOrApply(fn, args);
35384
+ return callOrApply(fn2, args);
35385
35385
  });
35386
35386
  }
35387
35387
  exports2.mapOneOrManyArgs = mapOneOrManyArgs;
@@ -39171,16 +39171,16 @@ var require_share = __commonJS({
39171
39171
  };
39172
39172
  }
39173
39173
  exports2.share = share;
39174
- function handleReset(reset, on) {
39174
+ function handleReset(reset, on2) {
39175
39175
  var args = [];
39176
39176
  for (var _i2 = 2; _i2 < arguments.length; _i2++) {
39177
39177
  args[_i2 - 2] = arguments[_i2];
39178
39178
  }
39179
- if (on === true) {
39179
+ if (on2 === true) {
39180
39180
  reset();
39181
39181
  return;
39182
39182
  }
39183
- if (on === false) {
39183
+ if (on2 === false) {
39184
39184
  return;
39185
39185
  }
39186
39186
  var onSubscriber = new Subscriber_1.SafeSubscriber({
@@ -39189,7 +39189,7 @@ var require_share = __commonJS({
39189
39189
  reset();
39190
39190
  }
39191
39191
  });
39192
- return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
39192
+ return innerFrom_1.innerFrom(on2.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
39193
39193
  }
39194
39194
  }
39195
39195
  });
@@ -43465,16 +43465,16 @@ var require_graceful_fs = __commonJS({
43465
43465
  if (fs3[gracefulQueue].length === 0)
43466
43466
  return;
43467
43467
  var elem = fs3[gracefulQueue].shift();
43468
- var fn = elem[0];
43468
+ var fn2 = elem[0];
43469
43469
  var args = elem[1];
43470
43470
  var err = elem[2];
43471
43471
  var startTime = elem[3];
43472
43472
  var lastTime = elem[4];
43473
43473
  if (startTime === void 0) {
43474
- debug("RETRY", fn.name, args);
43475
- fn.apply(null, args);
43474
+ debug("RETRY", fn2.name, args);
43475
+ fn2.apply(null, args);
43476
43476
  } else if (Date.now() - startTime >= 6e4) {
43477
- debug("TIMEOUT", fn.name, args);
43477
+ debug("TIMEOUT", fn2.name, args);
43478
43478
  var cb = args.pop();
43479
43479
  if (typeof cb === "function")
43480
43480
  cb.call(null, err);
@@ -43483,8 +43483,8 @@ var require_graceful_fs = __commonJS({
43483
43483
  var sinceStart = Math.max(lastTime - startTime, 1);
43484
43484
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
43485
43485
  if (sinceAttempt >= desiredDelay) {
43486
- debug("RETRY", fn.name, args);
43487
- fn.apply(null, args.concat([startTime]));
43486
+ debug("RETRY", fn2.name, args);
43487
+ fn2.apply(null, args.concat([startTime]));
43488
43488
  } else {
43489
43489
  fs3[gracefulQueue].push(elem);
43490
43490
  }
@@ -43500,7 +43500,7 @@ var require_graceful_fs = __commonJS({
43500
43500
  var require_memoize = __commonJS({
43501
43501
  "../../../node_modules/enhanced-resolve/lib/util/memoize.js"(exports2, module2) {
43502
43502
  "use strict";
43503
- var memoize = (fn) => {
43503
+ var memoize = (fn2) => {
43504
43504
  let cache = false;
43505
43505
  let result;
43506
43506
  return () => {
@@ -43510,9 +43510,9 @@ var require_memoize = __commonJS({
43510
43510
  result
43511
43511
  );
43512
43512
  }
43513
- result = fn();
43513
+ result = fn2();
43514
43514
  cache = true;
43515
- fn = void 0;
43515
+ fn2 = void 0;
43516
43516
  return (
43517
43517
  /** @type {T} */
43518
43518
  result
@@ -46345,7 +46345,7 @@ var require_Hook = __commonJS({
46345
46345
  type
46346
46346
  });
46347
46347
  }
46348
- _tap(type, options, fn) {
46348
+ _tap(type, options, fn2) {
46349
46349
  if (typeof options === "string") {
46350
46350
  options = {
46351
46351
  name: options.trim()
@@ -46359,18 +46359,18 @@ var require_Hook = __commonJS({
46359
46359
  if (typeof options.context !== "undefined") {
46360
46360
  deprecateContext();
46361
46361
  }
46362
- options = Object.assign({ type, fn }, options);
46362
+ options = Object.assign({ type, fn: fn2 }, options);
46363
46363
  options = this._runRegisterInterceptors(options);
46364
46364
  this._insert(options);
46365
46365
  }
46366
- tap(options, fn) {
46367
- this._tap("sync", options, fn);
46366
+ tap(options, fn2) {
46367
+ this._tap("sync", options, fn2);
46368
46368
  }
46369
- tapAsync(options, fn) {
46370
- this._tap("async", options, fn);
46369
+ tapAsync(options, fn2) {
46370
+ this._tap("async", options, fn2);
46371
46371
  }
46372
- tapPromise(options, fn) {
46373
- this._tap("promise", options, fn);
46372
+ tapPromise(options, fn2) {
46373
+ this._tap("promise", options, fn2);
46374
46374
  }
46375
46375
  _runRegisterInterceptors(options) {
46376
46376
  for (const interceptor of this.interceptors) {
@@ -46387,9 +46387,9 @@ var require_Hook = __commonJS({
46387
46387
  const mergeOptions = (opt) => Object.assign({}, options, typeof opt === "string" ? { name: opt } : opt);
46388
46388
  return {
46389
46389
  name: this.name,
46390
- tap: (opt, fn) => this.tap(mergeOptions(opt), fn),
46391
- tapAsync: (opt, fn) => this.tapAsync(mergeOptions(opt), fn),
46392
- tapPromise: (opt, fn) => this.tapPromise(mergeOptions(opt), fn),
46390
+ tap: (opt, fn2) => this.tap(mergeOptions(opt), fn2),
46391
+ tapAsync: (opt, fn2) => this.tapAsync(mergeOptions(opt), fn2),
46392
+ tapPromise: (opt, fn2) => this.tapPromise(mergeOptions(opt), fn2),
46393
46393
  intercept: (interceptor) => this.intercept(interceptor),
46394
46394
  isUsed: () => this.isUsed(),
46395
46395
  withOptions: (opt) => this.withOptions(mergeOptions(opt))
@@ -46465,10 +46465,10 @@ var require_HookCodeFactory = __commonJS({
46465
46465
  }
46466
46466
  create(options) {
46467
46467
  this.init(options);
46468
- let fn;
46468
+ let fn2;
46469
46469
  switch (this.options.type) {
46470
46470
  case "sync":
46471
- fn = new Function(
46471
+ fn2 = new Function(
46472
46472
  this.args(),
46473
46473
  `"use strict";
46474
46474
  ${this.header()}${this.contentWithInterceptors({
@@ -46483,7 +46483,7 @@ ${this.header()}${this.contentWithInterceptors({
46483
46483
  );
46484
46484
  break;
46485
46485
  case "async":
46486
- fn = new Function(
46486
+ fn2 = new Function(
46487
46487
  this.args({
46488
46488
  after: "_callback"
46489
46489
  }),
@@ -46527,12 +46527,12 @@ ${this.header()}${this.contentWithInterceptors({
46527
46527
  code += "_sync = false;\n";
46528
46528
  }
46529
46529
  code += "}));\n";
46530
- fn = new Function(this.args(), code);
46530
+ fn2 = new Function(this.args(), code);
46531
46531
  break;
46532
46532
  }
46533
46533
  }
46534
46534
  this.deinit();
46535
- return fn;
46535
+ return fn2;
46536
46536
  }
46537
46537
  setup(instance, options) {
46538
46538
  instance._x = options.taps.map((t) => t.fn);
@@ -47211,14 +47211,14 @@ var require_HookMap = __commonJS({
47211
47211
  );
47212
47212
  }
47213
47213
  };
47214
- HookMap.prototype.tap = util4.deprecate(function tap(key, options, fn) {
47215
- return this.for(key).tap(options, fn);
47214
+ HookMap.prototype.tap = util4.deprecate(function tap(key, options, fn2) {
47215
+ return this.for(key).tap(options, fn2);
47216
47216
  }, "HookMap#tap(key,\u2026) is deprecated. Use HookMap#for(key).tap(\u2026) instead.");
47217
- HookMap.prototype.tapAsync = util4.deprecate(function tapAsync(key, options, fn) {
47218
- return this.for(key).tapAsync(options, fn);
47217
+ HookMap.prototype.tapAsync = util4.deprecate(function tapAsync(key, options, fn2) {
47218
+ return this.for(key).tapAsync(options, fn2);
47219
47219
  }, "HookMap#tapAsync(key,\u2026) is deprecated. Use HookMap#for(key).tapAsync(\u2026) instead.");
47220
- HookMap.prototype.tapPromise = util4.deprecate(function tapPromise(key, options, fn) {
47221
- return this.for(key).tapPromise(options, fn);
47220
+ HookMap.prototype.tapPromise = util4.deprecate(function tapPromise(key, options, fn2) {
47221
+ return this.for(key).tapPromise(options, fn2);
47222
47222
  }, "HookMap#tapPromise(key,\u2026) is deprecated. Use HookMap#for(key).tapPromise(\u2026) instead.");
47223
47223
  module2.exports = HookMap;
47224
47224
  }
@@ -47233,19 +47233,19 @@ var require_MultiHook = __commonJS({
47233
47233
  this.hooks = hooks;
47234
47234
  this.name = name;
47235
47235
  }
47236
- tap(options, fn) {
47236
+ tap(options, fn2) {
47237
47237
  for (const hook of this.hooks) {
47238
- hook.tap(options, fn);
47238
+ hook.tap(options, fn2);
47239
47239
  }
47240
47240
  }
47241
- tapAsync(options, fn) {
47241
+ tapAsync(options, fn2) {
47242
47242
  for (const hook of this.hooks) {
47243
- hook.tapAsync(options, fn);
47243
+ hook.tapAsync(options, fn2);
47244
47244
  }
47245
47245
  }
47246
- tapPromise(options, fn) {
47246
+ tapPromise(options, fn2) {
47247
47247
  for (const hook of this.hooks) {
47248
- hook.tapPromise(options, fn);
47248
+ hook.tapPromise(options, fn2);
47249
47249
  }
47250
47250
  }
47251
47251
  isUsed() {
@@ -50501,30 +50501,30 @@ var jju = __toESM(require_jju());
50501
50501
  // ../../../node_modules/tar/dist/esm/index.min.js
50502
50502
  var index_min_exports = {};
50503
50503
  __export(index_min_exports, {
50504
- Header: () => F,
50504
+ Header: () => C,
50505
50505
  Pack: () => wt,
50506
- PackJob: () => pi,
50506
+ PackJob: () => mi,
50507
50507
  PackSync: () => kt,
50508
- Parser: () => rt,
50509
- Pax: () => ft,
50510
- ReadEntry: () => $e,
50508
+ Parser: () => st,
50509
+ Pax: () => ct,
50510
+ ReadEntry: () => Ve,
50511
50511
  Unpack: () => Xt,
50512
- UnpackSync: () => xe,
50513
- WriteEntry: () => de,
50514
- WriteEntrySync: () => ni,
50515
- WriteEntryTar: () => oi,
50516
- c: () => Qn,
50517
- create: () => Qn,
50518
- extract: () => So,
50519
- filesFilter: () => Qi,
50520
- list: () => Ct,
50512
+ UnpackSync: () => Te,
50513
+ WriteEntry: () => fe,
50514
+ WriteEntrySync: () => ri,
50515
+ WriteEntryTar: () => ni,
50516
+ c: () => Kn,
50517
+ create: () => Kn,
50518
+ extract: () => uo,
50519
+ filesFilter: () => Xi,
50520
+ list: () => Ft,
50521
50521
  r: () => vt,
50522
50522
  replace: () => vt,
50523
- t: () => Ct,
50524
- types: () => Hi,
50525
- u: () => Oo,
50526
- update: () => Oo,
50527
- x: () => So
50523
+ t: () => Ft,
50524
+ types: () => Ui,
50525
+ u: () => yo,
50526
+ update: () => yo,
50527
+ x: () => uo
50528
50528
  });
50529
50529
  var import_events = __toESM(require("events"), 1);
50530
50530
  var import_fs = __toESM(require("fs"), 1);
@@ -50537,7 +50537,7 @@ var import_path = require("path");
50537
50537
  var import_events2 = require("events");
50538
50538
  var import_assert = __toESM(require("assert"), 1);
50539
50539
  var import_buffer = require("buffer");
50540
- var Ps = __toESM(require("zlib"), 1);
50540
+ var Ms = __toESM(require("zlib"), 1);
50541
50541
  var import_zlib = __toESM(require("zlib"), 1);
50542
50542
  var import_node_path2 = require("node:path");
50543
50543
  var import_node_path3 = require("node:path");
@@ -50560,50 +50560,50 @@ var import_node_path7 = __toESM(require("node:path"), 1);
50560
50560
  var import_node_path8 = require("node:path");
50561
50561
  var import_node_fs6 = __toESM(require("node:fs"), 1);
50562
50562
  var import_node_path9 = __toESM(require("node:path"), 1);
50563
- var zr = Object.defineProperty;
50564
- var Ur = (s3, t) => {
50565
- for (var e in t) zr(s3, e, { get: t[e], enumerable: true });
50563
+ var Mr = Object.defineProperty;
50564
+ var Br = (s3, t) => {
50565
+ for (var e in t) Mr(s3, e, { get: t[e], enumerable: true });
50566
50566
  };
50567
- var Ds = typeof process == "object" && process ? process : { stdout: null, stderr: null };
50568
- var Wr = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof A || s3 instanceof import_node_stream.default || Gr(s3) || Zr(s3));
50569
- var Gr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
50570
- var Zr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
50571
- var Q = /* @__PURE__ */ Symbol("EOF");
50572
- var J = /* @__PURE__ */ Symbol("maybeEmitEnd");
50573
- var nt = /* @__PURE__ */ Symbol("emittedEnd");
50574
- var De = /* @__PURE__ */ Symbol("emittingEnd");
50567
+ var xs = typeof process == "object" && process ? process : { stdout: null, stderr: null };
50568
+ var zr = (s3) => !!s3 && typeof s3 == "object" && (s3 instanceof A || s3 instanceof import_node_stream.default || Ur(s3) || Hr(s3));
50569
+ var Ur = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.pipe == "function" && s3.pipe !== import_node_stream.default.Writable.prototype.pipe;
50570
+ var Hr = (s3) => !!s3 && typeof s3 == "object" && s3 instanceof import_node_events.EventEmitter && typeof s3.write == "function" && typeof s3.end == "function";
50571
+ var q = /* @__PURE__ */ Symbol("EOF");
50572
+ var Q = /* @__PURE__ */ Symbol("maybeEmitEnd");
50573
+ var rt = /* @__PURE__ */ Symbol("emittedEnd");
50574
+ var Le = /* @__PURE__ */ Symbol("emittingEnd");
50575
50575
  var qt = /* @__PURE__ */ Symbol("emittedError");
50576
50576
  var Ne = /* @__PURE__ */ Symbol("closed");
50577
- var Ns = /* @__PURE__ */ Symbol("read");
50578
- var Ae = /* @__PURE__ */ Symbol("flush");
50579
- var As = /* @__PURE__ */ Symbol("flushChunk");
50577
+ var Ls = /* @__PURE__ */ Symbol("read");
50578
+ var De = /* @__PURE__ */ Symbol("flush");
50579
+ var Ns = /* @__PURE__ */ Symbol("flushChunk");
50580
50580
  var z = /* @__PURE__ */ Symbol("encoding");
50581
50581
  var Mt = /* @__PURE__ */ Symbol("decoder");
50582
50582
  var g = /* @__PURE__ */ Symbol("flowing");
50583
50583
  var Qt = /* @__PURE__ */ Symbol("paused");
50584
50584
  var Bt = /* @__PURE__ */ Symbol("resume");
50585
50585
  var b = /* @__PURE__ */ Symbol("buffer");
50586
- var N = /* @__PURE__ */ Symbol("pipes");
50586
+ var D = /* @__PURE__ */ Symbol("pipes");
50587
50587
  var _ = /* @__PURE__ */ Symbol("bufferLength");
50588
- var bi = /* @__PURE__ */ Symbol("bufferPush");
50589
- var Ie = /* @__PURE__ */ Symbol("bufferShift");
50588
+ var gi = /* @__PURE__ */ Symbol("bufferPush");
50589
+ var Ae = /* @__PURE__ */ Symbol("bufferShift");
50590
50590
  var L = /* @__PURE__ */ Symbol("objectMode");
50591
50591
  var w = /* @__PURE__ */ Symbol("destroyed");
50592
- var _i = /* @__PURE__ */ Symbol("error");
50593
- var Oi = /* @__PURE__ */ Symbol("emitData");
50594
- var Is = /* @__PURE__ */ Symbol("emitEnd");
50595
- var Ti = /* @__PURE__ */ Symbol("emitEnd2");
50592
+ var bi = /* @__PURE__ */ Symbol("error");
50593
+ var _i = /* @__PURE__ */ Symbol("emitData");
50594
+ var Ds = /* @__PURE__ */ Symbol("emitEnd");
50595
+ var Oi = /* @__PURE__ */ Symbol("emitEnd2");
50596
50596
  var Z = /* @__PURE__ */ Symbol("async");
50597
- var xi = /* @__PURE__ */ Symbol("abort");
50598
- var Ce = /* @__PURE__ */ Symbol("aborted");
50597
+ var Ti = /* @__PURE__ */ Symbol("abort");
50598
+ var Ie = /* @__PURE__ */ Symbol("aborted");
50599
50599
  var Jt = /* @__PURE__ */ Symbol("signal");
50600
50600
  var Rt = /* @__PURE__ */ Symbol("dataListeners");
50601
- var C = /* @__PURE__ */ Symbol("discarded");
50601
+ var F = /* @__PURE__ */ Symbol("discarded");
50602
50602
  var jt = (s3) => Promise.resolve().then(s3);
50603
- var Yr = (s3) => s3();
50604
- var Kr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
50605
- var Vr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
50606
- var $r = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
50603
+ var Wr = (s3) => s3();
50604
+ var Gr = (s3) => s3 === "end" || s3 === "finish" || s3 === "prefinish";
50605
+ var Zr = (s3) => s3 instanceof ArrayBuffer || !!s3 && typeof s3 == "object" && s3.constructor && s3.constructor.name === "ArrayBuffer" && s3.byteLength >= 0;
50606
+ var Yr = (s3) => !Buffer.isBuffer(s3) && ArrayBuffer.isView(s3);
50607
50607
  var Fe = class {
50608
50608
  src;
50609
50609
  dest;
@@ -50621,7 +50621,7 @@ var Fe = class {
50621
50621
  this.unpipe(), this.opts.end && this.dest.end();
50622
50622
  }
50623
50623
  };
50624
- var Li = class extends Fe {
50624
+ var xi = class extends Fe {
50625
50625
  unpipe() {
50626
50626
  this.src.removeListener("error", this.proxyErrors), super.unpipe();
50627
50627
  }
@@ -50629,36 +50629,36 @@ var Li = class extends Fe {
50629
50629
  super(t, e, i), this.proxyErrors = (r) => this.dest.emit("error", r), t.on("error", this.proxyErrors);
50630
50630
  }
50631
50631
  };
50632
- var Xr = (s3) => !!s3.objectMode;
50633
- var qr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
50632
+ var Kr = (s3) => !!s3.objectMode;
50633
+ var Vr = (s3) => !s3.objectMode && !!s3.encoding && s3.encoding !== "buffer";
50634
50634
  var A = class extends import_node_events.EventEmitter {
50635
50635
  [g] = false;
50636
50636
  [Qt] = false;
50637
- [N] = [];
50637
+ [D] = [];
50638
50638
  [b] = [];
50639
50639
  [L];
50640
50640
  [z];
50641
50641
  [Z];
50642
50642
  [Mt];
50643
- [Q] = false;
50644
- [nt] = false;
50645
- [De] = false;
50643
+ [q] = false;
50644
+ [rt] = false;
50645
+ [Le] = false;
50646
50646
  [Ne] = false;
50647
50647
  [qt] = null;
50648
50648
  [_] = 0;
50649
50649
  [w] = false;
50650
50650
  [Jt];
50651
- [Ce] = false;
50651
+ [Ie] = false;
50652
50652
  [Rt] = 0;
50653
- [C] = false;
50653
+ [F] = false;
50654
50654
  writable = true;
50655
50655
  readable = true;
50656
50656
  constructor(...t) {
50657
50657
  let e = t[0] || {};
50658
50658
  if (super(), e.objectMode && typeof e.encoding == "string") throw new TypeError("Encoding and objectMode may not be used together");
50659
- Xr(e) ? (this[L] = true, this[z] = null) : qr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new import_node_string_decoder.StringDecoder(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[N] });
50659
+ Kr(e) ? (this[L] = true, this[z] = null) : Vr(e) ? (this[z] = e.encoding, this[L] = false) : (this[L] = false, this[z] = null), this[Z] = !!e.async, this[Mt] = this[z] ? new import_node_string_decoder.StringDecoder(this[z]) : null, e && e.debugExposeBuffer === true && Object.defineProperty(this, "buffer", { get: () => this[b] }), e && e.debugExposePipes === true && Object.defineProperty(this, "pipes", { get: () => this[D] });
50660
50660
  let { signal: i } = e;
50661
- i && (this[Jt] = i, i.aborted ? this[xi]() : i.addEventListener("abort", () => this[xi]()));
50661
+ i && (this[Jt] = i, i.aborted ? this[Ti]() : i.addEventListener("abort", () => this[Ti]()));
50662
50662
  }
50663
50663
  get bufferLength() {
50664
50664
  return this[_];
@@ -50684,53 +50684,53 @@ var A = class extends import_node_events.EventEmitter {
50684
50684
  set async(t) {
50685
50685
  this[Z] = this[Z] || !!t;
50686
50686
  }
50687
- [xi]() {
50688
- this[Ce] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
50687
+ [Ti]() {
50688
+ this[Ie] = true, this.emit("abort", this[Jt]?.reason), this.destroy(this[Jt]?.reason);
50689
50689
  }
50690
50690
  get aborted() {
50691
- return this[Ce];
50691
+ return this[Ie];
50692
50692
  }
50693
50693
  set aborted(t) {
50694
50694
  }
50695
50695
  write(t, e, i) {
50696
- if (this[Ce]) return false;
50697
- if (this[Q]) throw new Error("write after end");
50696
+ if (this[Ie]) return false;
50697
+ if (this[q]) throw new Error("write after end");
50698
50698
  if (this[w]) return this.emit("error", Object.assign(new Error("Cannot call write after a stream was destroyed"), { code: "ERR_STREAM_DESTROYED" })), true;
50699
50699
  typeof e == "function" && (i = e, e = "utf8"), e || (e = "utf8");
50700
- let r = this[Z] ? jt : Yr;
50700
+ let r = this[Z] ? jt : Wr;
50701
50701
  if (!this[L] && !Buffer.isBuffer(t)) {
50702
- if ($r(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
50703
- else if (Vr(t)) t = Buffer.from(t);
50702
+ if (Yr(t)) t = Buffer.from(t.buffer, t.byteOffset, t.byteLength);
50703
+ else if (Zr(t)) t = Buffer.from(t);
50704
50704
  else if (typeof t != "string") throw new Error("Non-contiguous data written to non-objectMode stream");
50705
50705
  }
50706
- return this[L] ? (this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[bi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_] !== 0 && this[Ae](true), this[g] ? this.emit("data", t) : this[bi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r(i), this[g]);
50706
+ return this[L] ? (this[g] && this[_] !== 0 && this[De](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : t.length ? (typeof t == "string" && !(e === this[z] && !this[Mt]?.lastNeed) && (t = Buffer.from(t, e)), Buffer.isBuffer(t) && this[z] && (t = this[Mt].write(t)), this[g] && this[_] !== 0 && this[De](true), this[g] ? this.emit("data", t) : this[gi](t), this[_] !== 0 && this.emit("readable"), i && r(i), this[g]) : (this[_] !== 0 && this.emit("readable"), i && r(i), this[g]);
50707
50707
  }
50708
50708
  read(t) {
50709
50709
  if (this[w]) return null;
50710
- if (this[C] = false, this[_] === 0 || t === 0 || t && t > this[_]) return this[J](), null;
50710
+ if (this[F] = false, this[_] === 0 || t === 0 || t && t > this[_]) return this[Q](), null;
50711
50711
  this[L] && (t = null), this[b].length > 1 && !this[L] && (this[b] = [this[z] ? this[b].join("") : Buffer.concat(this[b], this[_])]);
50712
- let e = this[Ns](t || null, this[b][0]);
50713
- return this[J](), e;
50712
+ let e = this[Ls](t || null, this[b][0]);
50713
+ return this[Q](), e;
50714
50714
  }
50715
- [Ns](t, e) {
50716
- if (this[L]) this[Ie]();
50715
+ [Ls](t, e) {
50716
+ if (this[L]) this[Ae]();
50717
50717
  else {
50718
50718
  let i = e;
50719
- t === i.length || t === null ? this[Ie]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_] -= t);
50719
+ t === i.length || t === null ? this[Ae]() : typeof i == "string" ? (this[b][0] = i.slice(t), e = i.slice(0, t), this[_] -= t) : (this[b][0] = i.subarray(t), e = i.subarray(0, t), this[_] -= t);
50720
50720
  }
50721
- return this.emit("data", e), !this[b].length && !this[Q] && this.emit("drain"), e;
50721
+ return this.emit("data", e), !this[b].length && !this[q] && this.emit("drain"), e;
50722
50722
  }
50723
50723
  end(t, e, i) {
50724
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[Q] = true, this.writable = false, (this[g] || !this[Qt]) && this[J](), this;
50724
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = "utf8"), t !== void 0 && this.write(t, e), i && this.once("end", i), this[q] = true, this.writable = false, (this[g] || !this[Qt]) && this[Q](), this;
50725
50725
  }
50726
50726
  [Bt]() {
50727
- this[w] || (!this[Rt] && !this[N].length && (this[C] = true), this[Qt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[Ae]() : this[Q] ? this[J]() : this.emit("drain"));
50727
+ this[w] || (!this[Rt] && !this[D].length && (this[F] = true), this[Qt] = false, this[g] = true, this.emit("resume"), this[b].length ? this[De]() : this[q] ? this[Q]() : this.emit("drain"));
50728
50728
  }
50729
50729
  resume() {
50730
50730
  return this[Bt]();
50731
50731
  }
50732
50732
  pause() {
50733
- this[g] = false, this[Qt] = true, this[C] = false;
50733
+ this[g] = false, this[Qt] = true, this[F] = false;
50734
50734
  }
50735
50735
  get destroyed() {
50736
50736
  return this[w];
@@ -50741,39 +50741,39 @@ var A = class extends import_node_events.EventEmitter {
50741
50741
  get paused() {
50742
50742
  return this[Qt];
50743
50743
  }
50744
- [bi](t) {
50744
+ [gi](t) {
50745
50745
  this[L] ? this[_] += 1 : this[_] += t.length, this[b].push(t);
50746
50746
  }
50747
- [Ie]() {
50747
+ [Ae]() {
50748
50748
  return this[L] ? this[_] -= 1 : this[_] -= this[b][0].length, this[b].shift();
50749
50749
  }
50750
- [Ae](t = false) {
50750
+ [De](t = false) {
50751
50751
  do
50752
50752
  ;
50753
- while (this[As](this[Ie]()) && this[b].length);
50754
- !t && !this[b].length && !this[Q] && this.emit("drain");
50753
+ while (this[Ns](this[Ae]()) && this[b].length);
50754
+ !t && !this[b].length && !this[q] && this.emit("drain");
50755
50755
  }
50756
- [As](t) {
50756
+ [Ns](t) {
50757
50757
  return this.emit("data", t), this[g];
50758
50758
  }
50759
50759
  pipe(t, e) {
50760
50760
  if (this[w]) return t;
50761
- this[C] = false;
50762
- let i = this[nt];
50763
- return e = e || {}, t === Ds.stdout || t === Ds.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[N].push(e.proxyErrors ? new Li(this, t, e) : new Fe(this, t, e)), this[Z] ? jt(() => this[Bt]()) : this[Bt]()), t;
50761
+ this[F] = false;
50762
+ let i = this[rt];
50763
+ return e = e || {}, t === xs.stdout || t === xs.stderr ? e.end = false : e.end = e.end !== false, e.proxyErrors = !!e.proxyErrors, i ? e.end && t.end() : (this[D].push(e.proxyErrors ? new xi(this, t, e) : new Fe(this, t, e)), this[Z] ? jt(() => this[Bt]()) : this[Bt]()), t;
50764
50764
  }
50765
50765
  unpipe(t) {
50766
- let e = this[N].find((i) => i.dest === t);
50767
- e && (this[N].length === 1 ? (this[g] && this[Rt] === 0 && (this[g] = false), this[N] = []) : this[N].splice(this[N].indexOf(e), 1), e.unpipe());
50766
+ let e = this[D].find((i) => i.dest === t);
50767
+ e && (this[D].length === 1 ? (this[g] && this[Rt] === 0 && (this[g] = false), this[D] = []) : this[D].splice(this[D].indexOf(e), 1), e.unpipe());
50768
50768
  }
50769
50769
  addListener(t, e) {
50770
50770
  return this.on(t, e);
50771
50771
  }
50772
50772
  on(t, e) {
50773
50773
  let i = super.on(t, e);
50774
- if (t === "data") this[C] = false, this[Rt]++, !this[N].length && !this[g] && this[Bt]();
50774
+ if (t === "data") this[F] = false, this[Rt]++, !this[D].length && !this[g] && this[Bt]();
50775
50775
  else if (t === "readable" && this[_] !== 0) super.emit("readable");
50776
- else if (Kr(t) && this[nt]) super.emit(t), this.removeAllListeners(t);
50776
+ else if (Gr(t) && this[rt]) super.emit(t), this.removeAllListeners(t);
50777
50777
  else if (t === "error" && this[qt]) {
50778
50778
  let r = e;
50779
50779
  this[Z] ? jt(() => r.call(this, this[qt])) : r.call(this, this[qt]);
@@ -50785,58 +50785,58 @@ var A = class extends import_node_events.EventEmitter {
50785
50785
  }
50786
50786
  off(t, e) {
50787
50787
  let i = super.off(t, e);
50788
- return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[C] && !this[N].length && (this[g] = false)), i;
50788
+ return t === "data" && (this[Rt] = this.listeners("data").length, this[Rt] === 0 && !this[F] && !this[D].length && (this[g] = false)), i;
50789
50789
  }
50790
50790
  removeAllListeners(t) {
50791
50791
  let e = super.removeAllListeners(t);
50792
- return (t === "data" || t === void 0) && (this[Rt] = 0, !this[C] && !this[N].length && (this[g] = false)), e;
50792
+ return (t === "data" || t === void 0) && (this[Rt] = 0, !this[F] && !this[D].length && (this[g] = false)), e;
50793
50793
  }
50794
50794
  get emittedEnd() {
50795
- return this[nt];
50795
+ return this[rt];
50796
50796
  }
50797
- [J]() {
50798
- !this[De] && !this[nt] && !this[w] && this[b].length === 0 && this[Q] && (this[De] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[De] = false);
50797
+ [Q]() {
50798
+ !this[Le] && !this[rt] && !this[w] && this[b].length === 0 && this[q] && (this[Le] = true, this.emit("end"), this.emit("prefinish"), this.emit("finish"), this[Ne] && this.emit("close"), this[Le] = false);
50799
50799
  }
50800
50800
  emit(t, ...e) {
50801
50801
  let i = e[0];
50802
50802
  if (t !== "error" && t !== "close" && t !== w && this[w]) return false;
50803
- if (t === "data") return !this[L] && !i ? false : this[Z] ? (jt(() => this[Oi](i)), true) : this[Oi](i);
50804
- if (t === "end") return this[Is]();
50803
+ if (t === "data") return !this[L] && !i ? false : this[Z] ? (jt(() => this[_i](i)), true) : this[_i](i);
50804
+ if (t === "end") return this[Ds]();
50805
50805
  if (t === "close") {
50806
- if (this[Ne] = true, !this[nt] && !this[w]) return false;
50806
+ if (this[Ne] = true, !this[rt] && !this[w]) return false;
50807
50807
  let n = super.emit("close");
50808
50808
  return this.removeAllListeners("close"), n;
50809
50809
  } else if (t === "error") {
50810
- this[qt] = i, super.emit(_i, i);
50810
+ this[qt] = i, super.emit(bi, i);
50811
50811
  let n = !this[Jt] || this.listeners("error").length ? super.emit("error", i) : false;
50812
- return this[J](), n;
50812
+ return this[Q](), n;
50813
50813
  } else if (t === "resume") {
50814
50814
  let n = super.emit("resume");
50815
- return this[J](), n;
50815
+ return this[Q](), n;
50816
50816
  } else if (t === "finish" || t === "prefinish") {
50817
50817
  let n = super.emit(t);
50818
50818
  return this.removeAllListeners(t), n;
50819
50819
  }
50820
50820
  let r = super.emit(t, ...e);
50821
- return this[J](), r;
50821
+ return this[Q](), r;
50822
50822
  }
50823
- [Oi](t) {
50824
- for (let i of this[N]) i.dest.write(t) === false && this.pause();
50825
- let e = this[C] ? false : super.emit("data", t);
50826
- return this[J](), e;
50823
+ [_i](t) {
50824
+ for (let i of this[D]) i.dest.write(t) === false && this.pause();
50825
+ let e = this[F] ? false : super.emit("data", t);
50826
+ return this[Q](), e;
50827
50827
  }
50828
- [Is]() {
50829
- return this[nt] ? false : (this[nt] = true, this.readable = false, this[Z] ? (jt(() => this[Ti]()), true) : this[Ti]());
50828
+ [Ds]() {
50829
+ return this[rt] ? false : (this[rt] = true, this.readable = false, this[Z] ? (jt(() => this[Oi]()), true) : this[Oi]());
50830
50830
  }
50831
- [Ti]() {
50831
+ [Oi]() {
50832
50832
  if (this[Mt]) {
50833
50833
  let e = this[Mt].end();
50834
50834
  if (e) {
50835
- for (let i of this[N]) i.dest.write(e);
50836
- this[C] || super.emit("data", e);
50835
+ for (let i of this[D]) i.dest.write(e);
50836
+ this[F] || super.emit("data", e);
50837
50837
  }
50838
50838
  }
50839
- for (let e of this[N]) e.end();
50839
+ for (let e of this[D]) e.end();
50840
50840
  let t = super.emit("end");
50841
50841
  return this.removeAllListeners("end"), t;
50842
50842
  }
@@ -50859,22 +50859,22 @@ var A = class extends import_node_events.EventEmitter {
50859
50859
  });
50860
50860
  }
50861
50861
  [Symbol.asyncIterator]() {
50862
- this[C] = false;
50862
+ this[F] = false;
50863
50863
  let t = false, e = async () => (this.pause(), t = true, { value: void 0, done: true });
50864
50864
  return { next: () => {
50865
50865
  if (t) return e();
50866
50866
  let r = this.read();
50867
50867
  if (r !== null) return Promise.resolve({ done: false, value: r });
50868
- if (this[Q]) return e();
50869
- let n, o, h = (d) => {
50870
- this.off("data", a), this.off("end", l), this.off(w, c), e(), o(d);
50871
- }, a = (d) => {
50872
- this.off("error", h), this.off("end", l), this.off(w, c), this.pause(), n({ value: d, done: !!this[Q] });
50868
+ if (this[q]) return e();
50869
+ let n, o, a = (d) => {
50870
+ this.off("data", h), this.off("end", l), this.off(w, c), e(), o(d);
50871
+ }, h = (d) => {
50872
+ this.off("error", a), this.off("end", l), this.off(w, c), this.pause(), n({ value: d, done: !!this[q] });
50873
50873
  }, l = () => {
50874
- this.off("error", h), this.off("data", a), this.off(w, c), e(), n({ done: true, value: void 0 });
50875
- }, c = () => h(new Error("stream destroyed"));
50874
+ this.off("error", a), this.off("data", h), this.off(w, c), e(), n({ done: true, value: void 0 });
50875
+ }, c = () => a(new Error("stream destroyed"));
50876
50876
  return new Promise((d, S) => {
50877
- o = S, n = d, this.once(w, c), this.once("error", h), this.once("end", l), this.once("data", a);
50877
+ o = S, n = d, this.once(w, c), this.once("error", a), this.once("end", l), this.once("data", h);
50878
50878
  });
50879
50879
  }, throw: e, return: e, [Symbol.asyncIterator]() {
50880
50880
  return this;
@@ -50882,71 +50882,71 @@ var A = class extends import_node_events.EventEmitter {
50882
50882
  } };
50883
50883
  }
50884
50884
  [Symbol.iterator]() {
50885
- this[C] = false;
50886
- let t = false, e = () => (this.pause(), this.off(_i, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: void 0 }), i = () => {
50885
+ this[F] = false;
50886
+ let t = false, e = () => (this.pause(), this.off(bi, e), this.off(w, e), this.off("end", e), t = true, { done: true, value: void 0 }), i = () => {
50887
50887
  if (t) return e();
50888
50888
  let r = this.read();
50889
50889
  return r === null ? e() : { done: false, value: r };
50890
50890
  };
50891
- return this.once("end", e), this.once(_i, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
50891
+ return this.once("end", e), this.once(bi, e), this.once(w, e), { next: i, throw: e, return: e, [Symbol.iterator]() {
50892
50892
  return this;
50893
50893
  }, [Symbol.dispose]: () => {
50894
50894
  } };
50895
50895
  }
50896
50896
  destroy(t) {
50897
50897
  if (this[w]) return t ? this.emit("error", t) : this.emit(w), this;
50898
- this[w] = true, this[C] = true, this[b].length = 0, this[_] = 0;
50898
+ this[w] = true, this[F] = true, this[b].length = 0, this[_] = 0;
50899
50899
  let e = this;
50900
50900
  return typeof e.close == "function" && !this[Ne] && e.close(), t ? this.emit("error", t) : this.emit(w), this;
50901
50901
  }
50902
50902
  static get isStream() {
50903
- return Wr;
50903
+ return zr;
50904
50904
  }
50905
50905
  };
50906
- var Jr = import_fs.default.writev;
50907
- var ht = /* @__PURE__ */ Symbol("_autoClose");
50906
+ var Xr = import_fs.default.writev;
50907
+ var ot = /* @__PURE__ */ Symbol("_autoClose");
50908
50908
  var H = /* @__PURE__ */ Symbol("_close");
50909
50909
  var te = /* @__PURE__ */ Symbol("_ended");
50910
- var u = /* @__PURE__ */ Symbol("_fd");
50910
+ var m = /* @__PURE__ */ Symbol("_fd");
50911
50911
  var Ni = /* @__PURE__ */ Symbol("_finished");
50912
- var tt = /* @__PURE__ */ Symbol("_flags");
50913
- var Ai = /* @__PURE__ */ Symbol("_flush");
50914
- var ki = /* @__PURE__ */ Symbol("_handleChunk");
50915
- var vi = /* @__PURE__ */ Symbol("_makeBuf");
50912
+ var j = /* @__PURE__ */ Symbol("_flags");
50913
+ var Di = /* @__PURE__ */ Symbol("_flush");
50914
+ var Ci = /* @__PURE__ */ Symbol("_handleChunk");
50915
+ var ki = /* @__PURE__ */ Symbol("_makeBuf");
50916
50916
  var ie = /* @__PURE__ */ Symbol("_mode");
50917
- var ke = /* @__PURE__ */ Symbol("_needDrain");
50917
+ var Ce = /* @__PURE__ */ Symbol("_needDrain");
50918
50918
  var Ut = /* @__PURE__ */ Symbol("_onerror");
50919
50919
  var Ht = /* @__PURE__ */ Symbol("_onopen");
50920
- var Ii = /* @__PURE__ */ Symbol("_onread");
50920
+ var Ai = /* @__PURE__ */ Symbol("_onread");
50921
50921
  var Pt = /* @__PURE__ */ Symbol("_onwrite");
50922
- var at = /* @__PURE__ */ Symbol("_open");
50922
+ var ht = /* @__PURE__ */ Symbol("_open");
50923
50923
  var U = /* @__PURE__ */ Symbol("_path");
50924
- var ot = /* @__PURE__ */ Symbol("_pos");
50924
+ var nt = /* @__PURE__ */ Symbol("_pos");
50925
50925
  var Y = /* @__PURE__ */ Symbol("_queue");
50926
50926
  var zt = /* @__PURE__ */ Symbol("_read");
50927
- var Ci = /* @__PURE__ */ Symbol("_readSize");
50928
- var j = /* @__PURE__ */ Symbol("_reading");
50927
+ var Ii = /* @__PURE__ */ Symbol("_readSize");
50928
+ var J = /* @__PURE__ */ Symbol("_reading");
50929
50929
  var ee = /* @__PURE__ */ Symbol("_remain");
50930
50930
  var Fi = /* @__PURE__ */ Symbol("_size");
50931
- var ve = /* @__PURE__ */ Symbol("_write");
50931
+ var ke = /* @__PURE__ */ Symbol("_write");
50932
50932
  var gt = /* @__PURE__ */ Symbol("_writing");
50933
- var Me = /* @__PURE__ */ Symbol("_defaultFlag");
50933
+ var ve = /* @__PURE__ */ Symbol("_defaultFlag");
50934
50934
  var bt = /* @__PURE__ */ Symbol("_errored");
50935
50935
  var _t = class extends A {
50936
50936
  [bt] = false;
50937
- [u];
50937
+ [m];
50938
50938
  [U];
50939
- [Ci];
50940
- [j] = false;
50939
+ [Ii];
50940
+ [J] = false;
50941
50941
  [Fi];
50942
50942
  [ee];
50943
- [ht];
50943
+ [ot];
50944
50944
  constructor(t, e) {
50945
50945
  if (e = e || {}, super(e), this.readable = true, this.writable = false, typeof t != "string") throw new TypeError("path must be a string");
50946
- this[bt] = false, this[u] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ci] = e.readSize || 16 * 1024 * 1024, this[j] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[u] == "number" ? this[zt]() : this[at]();
50946
+ this[bt] = false, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[U] = t, this[Ii] = e.readSize || 16 * 1024 * 1024, this[J] = false, this[Fi] = typeof e.size == "number" ? e.size : 1 / 0, this[ee] = this[Fi], this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true, typeof this[m] == "number" ? this[zt]() : this[ht]();
50947
50947
  }
50948
50948
  get fd() {
50949
- return this[u];
50949
+ return this[m];
50950
50950
  }
50951
50951
  get path() {
50952
50952
  return this[U];
@@ -50957,36 +50957,36 @@ var _t = class extends A {
50957
50957
  end() {
50958
50958
  throw new TypeError("this is a readable stream");
50959
50959
  }
50960
- [at]() {
50960
+ [ht]() {
50961
50961
  import_fs.default.open(this[U], "r", (t, e) => this[Ht](t, e));
50962
50962
  }
50963
50963
  [Ht](t, e) {
50964
- t ? this[Ut](t) : (this[u] = e, this.emit("open", e), this[zt]());
50964
+ t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
50965
50965
  }
50966
- [vi]() {
50967
- return Buffer.allocUnsafe(Math.min(this[Ci], this[ee]));
50966
+ [ki]() {
50967
+ return Buffer.allocUnsafe(Math.min(this[Ii], this[ee]));
50968
50968
  }
50969
50969
  [zt]() {
50970
- if (!this[j]) {
50971
- this[j] = true;
50972
- let t = this[vi]();
50973
- if (t.length === 0) return process.nextTick(() => this[Ii](null, 0, t));
50974
- import_fs.default.read(this[u], t, 0, t.length, null, (e, i, r) => this[Ii](e, i, r));
50970
+ if (!this[J]) {
50971
+ this[J] = true;
50972
+ let t = this[ki]();
50973
+ if (t.length === 0) return process.nextTick(() => this[Ai](null, 0, t));
50974
+ import_fs.default.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
50975
50975
  }
50976
50976
  }
50977
- [Ii](t, e, i) {
50978
- this[j] = false, t ? this[Ut](t) : this[ki](e, i) && this[zt]();
50977
+ [Ai](t, e, i) {
50978
+ this[J] = false, t ? this[Ut](t) : this[Ci](e, i) && this[zt]();
50979
50979
  }
50980
50980
  [H]() {
50981
- if (this[ht] && typeof this[u] == "number") {
50982
- let t = this[u];
50983
- this[u] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
50981
+ if (this[ot] && typeof this[m] == "number") {
50982
+ let t = this[m];
50983
+ this[m] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
50984
50984
  }
50985
50985
  }
50986
50986
  [Ut](t) {
50987
- this[j] = true, this[H](), this.emit("error", t);
50987
+ this[J] = true, this[H](), this.emit("error", t);
50988
50988
  }
50989
- [ki](t, e) {
50989
+ [Ci](t, e) {
50990
50990
  let i = false;
50991
50991
  return this[ee] -= t, t > 0 && (i = super.write(t < e.length ? e.subarray(0, t) : e)), (t === 0 || this[ee] <= 0) && (i = false, this[H](), super.end()), i;
50992
50992
  }
@@ -50996,7 +50996,7 @@ var _t = class extends A {
50996
50996
  case "finish":
50997
50997
  return false;
50998
50998
  case "drain":
50999
- return typeof this[u] == "number" && this[zt](), false;
50999
+ return typeof this[m] == "number" && this[zt](), false;
51000
51000
  case "error":
51001
51001
  return this[bt] ? false : (this[bt] = true, super.emit(t, ...e));
51002
51002
  default:
@@ -51004,8 +51004,8 @@ var _t = class extends A {
51004
51004
  }
51005
51005
  }
51006
51006
  };
51007
- var Be = class extends _t {
51008
- [at]() {
51007
+ var Me = class extends _t {
51008
+ [ht]() {
51009
51009
  let t = true;
51010
51010
  try {
51011
51011
  this[Ht](null, import_fs.default.openSync(this[U], "r")), t = false;
@@ -51016,13 +51016,13 @@ var Be = class extends _t {
51016
51016
  [zt]() {
51017
51017
  let t = true;
51018
51018
  try {
51019
- if (!this[j]) {
51020
- this[j] = true;
51019
+ if (!this[J]) {
51020
+ this[J] = true;
51021
51021
  do {
51022
- let e = this[vi](), i = e.length === 0 ? 0 : import_fs.default.readSync(this[u], e, 0, e.length, null);
51023
- if (!this[ki](i, e)) break;
51022
+ let e = this[ki](), i = e.length === 0 ? 0 : import_fs.default.readSync(this[m], e, 0, e.length, null);
51023
+ if (!this[Ci](i, e)) break;
51024
51024
  } while (true);
51025
- this[j] = false;
51025
+ this[J] = false;
51026
51026
  }
51027
51027
  t = false;
51028
51028
  } finally {
@@ -51030,32 +51030,32 @@ var Be = class extends _t {
51030
51030
  }
51031
51031
  }
51032
51032
  [H]() {
51033
- if (this[ht] && typeof this[u] == "number") {
51034
- let t = this[u];
51035
- this[u] = void 0, import_fs.default.closeSync(t), this.emit("close");
51033
+ if (this[ot] && typeof this[m] == "number") {
51034
+ let t = this[m];
51035
+ this[m] = void 0, import_fs.default.closeSync(t), this.emit("close");
51036
51036
  }
51037
51037
  }
51038
51038
  };
51039
- var et = class extends import_events.default {
51039
+ var tt = class extends import_events.default {
51040
51040
  readable = false;
51041
51041
  writable = true;
51042
51042
  [bt] = false;
51043
51043
  [gt] = false;
51044
51044
  [te] = false;
51045
51045
  [Y] = [];
51046
- [ke] = false;
51046
+ [Ce] = false;
51047
51047
  [U];
51048
51048
  [ie];
51049
- [ht];
51050
- [u];
51051
- [Me];
51052
- [tt];
51053
- [Ni] = false;
51054
51049
  [ot];
51050
+ [m];
51051
+ [ve];
51052
+ [j];
51053
+ [Ni] = false;
51054
+ [nt];
51055
51055
  constructor(t, e) {
51056
- e = e || {}, super(e), this[U] = t, this[u] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[ot] = typeof e.start == "number" ? e.start : void 0, this[ht] = typeof e.autoClose == "boolean" ? e.autoClose : true;
51057
- let i = this[ot] !== void 0 ? "r+" : "w";
51058
- this[Me] = e.flags === void 0, this[tt] = e.flags === void 0 ? i : e.flags, this[u] === void 0 && this[at]();
51056
+ e = e || {}, super(e), this[U] = t, this[m] = typeof e.fd == "number" ? e.fd : void 0, this[ie] = e.mode === void 0 ? 438 : e.mode, this[nt] = typeof e.start == "number" ? e.start : void 0, this[ot] = typeof e.autoClose == "boolean" ? e.autoClose : true;
51057
+ let i = this[nt] !== void 0 ? "r+" : "w";
51058
+ this[ve] = e.flags === void 0, this[j] = e.flags === void 0 ? i : e.flags, this[m] === void 0 && this[ht]();
51059
51059
  }
51060
51060
  emit(t, ...e) {
51061
51061
  if (t === "error") {
@@ -51065,7 +51065,7 @@ var et = class extends import_events.default {
51065
51065
  return super.emit(t, ...e);
51066
51066
  }
51067
51067
  get fd() {
51068
- return this[u];
51068
+ return this[m];
51069
51069
  }
51070
51070
  get path() {
51071
51071
  return this[U];
@@ -51073,61 +51073,61 @@ var et = class extends import_events.default {
51073
51073
  [Ut](t) {
51074
51074
  this[H](), this[gt] = true, this.emit("error", t);
51075
51075
  }
51076
- [at]() {
51077
- import_fs.default.open(this[U], this[tt], this[ie], (t, e) => this[Ht](t, e));
51076
+ [ht]() {
51077
+ import_fs.default.open(this[U], this[j], this[ie], (t, e) => this[Ht](t, e));
51078
51078
  }
51079
51079
  [Ht](t, e) {
51080
- this[Me] && this[tt] === "r+" && t && t.code === "ENOENT" ? (this[tt] = "w", this[at]()) : t ? this[Ut](t) : (this[u] = e, this.emit("open", e), this[gt] || this[Ai]());
51080
+ this[ve] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
51081
51081
  }
51082
51082
  end(t, e) {
51083
- return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[u] == "number" && this[Pt](null, 0), this;
51083
+ return t && this.write(t, e), this[te] = true, !this[gt] && !this[Y].length && typeof this[m] == "number" && this[Pt](null, 0), this;
51084
51084
  }
51085
51085
  write(t, e) {
51086
- return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[u] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[ke] = true, false) : (this[gt] = true, this[ve](t), true);
51086
+ return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", new Error("write() after end()")), false) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[Ce] = true, false) : (this[gt] = true, this[ke](t), true);
51087
51087
  }
51088
- [ve](t) {
51089
- import_fs.default.write(this[u], t, 0, t.length, this[ot], (e, i) => this[Pt](e, i));
51088
+ [ke](t) {
51089
+ import_fs.default.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
51090
51090
  }
51091
51091
  [Pt](t, e) {
51092
- t ? this[Ut](t) : (this[ot] !== void 0 && typeof e == "number" && (this[ot] += e), this[Y].length ? this[Ai]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[ke] && (this[ke] = false, this.emit("drain"))));
51092
+ t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = false, this[te] && !this[Ni] ? (this[Ni] = true, this[H](), this.emit("finish")) : this[Ce] && (this[Ce] = false, this.emit("drain"))));
51093
51093
  }
51094
- [Ai]() {
51094
+ [Di]() {
51095
51095
  if (this[Y].length === 0) this[te] && this[Pt](null, 0);
51096
- else if (this[Y].length === 1) this[ve](this[Y].pop());
51096
+ else if (this[Y].length === 1) this[ke](this[Y].pop());
51097
51097
  else {
51098
51098
  let t = this[Y];
51099
- this[Y] = [], Jr(this[u], t, this[ot], (e, i) => this[Pt](e, i));
51099
+ this[Y] = [], Xr(this[m], t, this[nt], (e, i) => this[Pt](e, i));
51100
51100
  }
51101
51101
  }
51102
51102
  [H]() {
51103
- if (this[ht] && typeof this[u] == "number") {
51104
- let t = this[u];
51105
- this[u] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
51103
+ if (this[ot] && typeof this[m] == "number") {
51104
+ let t = this[m];
51105
+ this[m] = void 0, import_fs.default.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
51106
51106
  }
51107
51107
  }
51108
51108
  };
51109
- var Wt = class extends et {
51110
- [at]() {
51109
+ var Wt = class extends tt {
51110
+ [ht]() {
51111
51111
  let t;
51112
- if (this[Me] && this[tt] === "r+") try {
51113
- t = import_fs.default.openSync(this[U], this[tt], this[ie]);
51112
+ if (this[ve] && this[j] === "r+") try {
51113
+ t = import_fs.default.openSync(this[U], this[j], this[ie]);
51114
51114
  } catch (e) {
51115
- if (e?.code === "ENOENT") return this[tt] = "w", this[at]();
51115
+ if (e?.code === "ENOENT") return this[j] = "w", this[ht]();
51116
51116
  throw e;
51117
51117
  }
51118
- else t = import_fs.default.openSync(this[U], this[tt], this[ie]);
51118
+ else t = import_fs.default.openSync(this[U], this[j], this[ie]);
51119
51119
  this[Ht](null, t);
51120
51120
  }
51121
51121
  [H]() {
51122
- if (this[ht] && typeof this[u] == "number") {
51123
- let t = this[u];
51124
- this[u] = void 0, import_fs.default.closeSync(t), this.emit("close");
51122
+ if (this[ot] && typeof this[m] == "number") {
51123
+ let t = this[m];
51124
+ this[m] = void 0, import_fs.default.closeSync(t), this.emit("close");
51125
51125
  }
51126
51126
  }
51127
- [ve](t) {
51127
+ [ke](t) {
51128
51128
  let e = true;
51129
51129
  try {
51130
- this[Pt](null, import_fs.default.writeSync(this[u], t, 0, t.length, this[ot])), e = false;
51130
+ this[Pt](null, import_fs.default.writeSync(this[m], t, 0, t.length, this[nt])), e = false;
51131
51131
  } finally {
51132
51132
  if (e) try {
51133
51133
  this[H]();
@@ -51136,50 +51136,50 @@ var Wt = class extends et {
51136
51136
  }
51137
51137
  }
51138
51138
  };
51139
- var jr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
51140
- var Fs = (s3) => !!s3.sync && !!s3.file;
51141
- var ks = (s3) => !s3.sync && !!s3.file;
51142
- var vs = (s3) => !!s3.sync && !s3.file;
51143
- var Ms = (s3) => !s3.sync && !s3.file;
51144
- var Bs = (s3) => !!s3.file;
51145
- var tn = (s3) => {
51146
- let t = jr.get(s3);
51139
+ var qr = /* @__PURE__ */ new Map([["C", "cwd"], ["f", "file"], ["z", "gzip"], ["P", "preservePaths"], ["U", "unlink"], ["strip-components", "strip"], ["stripComponents", "strip"], ["keep-newer", "newer"], ["keepNewer", "newer"], ["keep-newer-files", "newer"], ["keepNewerFiles", "newer"], ["k", "keep"], ["keep-existing", "keep"], ["keepExisting", "keep"], ["m", "noMtime"], ["no-mtime", "noMtime"], ["p", "preserveOwner"], ["L", "follow"], ["h", "follow"], ["onentry", "onReadEntry"]]);
51140
+ var Is = (s3) => !!s3.sync && !!s3.file;
51141
+ var Fs = (s3) => !s3.sync && !!s3.file;
51142
+ var Cs = (s3) => !!s3.sync && !s3.file;
51143
+ var ks = (s3) => !s3.sync && !s3.file;
51144
+ var vs = (s3) => !!s3.file;
51145
+ var Qr = (s3) => {
51146
+ let t = qr.get(s3);
51147
51147
  return t || s3;
51148
51148
  };
51149
51149
  var se = (s3 = {}) => {
51150
51150
  if (!s3) return {};
51151
51151
  let t = {};
51152
51152
  for (let [e, i] of Object.entries(s3)) {
51153
- let r = tn(e);
51153
+ let r = Qr(e);
51154
51154
  t[r] = i;
51155
51155
  }
51156
51156
  return t.chmod === void 0 && t.noChmod === false && (t.chmod = true), delete t.noChmod, t;
51157
51157
  };
51158
- var K = (s3, t, e, i, r) => Object.assign((n = [], o, h) => {
51159
- Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (h = o, o = void 0), o = o ? Array.from(o) : [];
51160
- let a = se(n);
51161
- if (r?.(a, o), Fs(a)) {
51162
- if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
51163
- return s3(a, o);
51164
- } else if (ks(a)) {
51165
- let l = t(a, o);
51166
- return h ? l.then(() => h(), h) : l;
51167
- } else if (vs(a)) {
51168
- if (typeof h == "function") throw new TypeError("callback not supported for sync tar functions");
51169
- return e(a, o);
51170
- } else if (Ms(a)) {
51171
- if (typeof h == "function") throw new TypeError("callback only supported with file option");
51172
- return i(a, o);
51158
+ var K = (s3, t, e, i, r) => Object.assign((n = [], o, a) => {
51159
+ Array.isArray(n) && (o = n, n = {}), typeof o == "function" && (a = o, o = void 0), o = o ? Array.from(o) : [];
51160
+ let h = se(n);
51161
+ if (r?.(h, o), Is(h)) {
51162
+ if (typeof a == "function") throw new TypeError("callback not supported for sync tar functions");
51163
+ return s3(h, o);
51164
+ } else if (Fs(h)) {
51165
+ let l = t(h, o);
51166
+ return a ? l.then(() => a(), a) : l;
51167
+ } else if (Cs(h)) {
51168
+ if (typeof a == "function") throw new TypeError("callback not supported for sync tar functions");
51169
+ return e(h, o);
51170
+ } else if (ks(h)) {
51171
+ if (typeof a == "function") throw new TypeError("callback only supported with file option");
51172
+ return i(h, o);
51173
51173
  }
51174
51174
  throw new Error("impossible options??");
51175
51175
  }, { syncFile: s3, asyncFile: t, syncNoFile: e, asyncNoFile: i, validate: r });
51176
- var sn = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
51177
- var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, sn));
51178
- var rn = import_buffer.Buffer.concat;
51179
- var zs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
51180
- var nn = (s3) => s3;
51181
- var Bi = zs?.writable === true || zs?.set !== void 0 ? (s3) => {
51182
- import_buffer.Buffer.concat = s3 ? nn : rn;
51176
+ var jr = import_zlib.default.constants || { ZLIB_VERNUM: 4736 };
51177
+ var M = Object.freeze(Object.assign(/* @__PURE__ */ Object.create(null), { Z_NO_FLUSH: 0, Z_PARTIAL_FLUSH: 1, Z_SYNC_FLUSH: 2, Z_FULL_FLUSH: 3, Z_FINISH: 4, Z_BLOCK: 5, Z_OK: 0, Z_STREAM_END: 1, Z_NEED_DICT: 2, Z_ERRNO: -1, Z_STREAM_ERROR: -2, Z_DATA_ERROR: -3, Z_MEM_ERROR: -4, Z_BUF_ERROR: -5, Z_VERSION_ERROR: -6, Z_NO_COMPRESSION: 0, Z_BEST_SPEED: 1, Z_BEST_COMPRESSION: 9, Z_DEFAULT_COMPRESSION: -1, Z_FILTERED: 1, Z_HUFFMAN_ONLY: 2, Z_RLE: 3, Z_FIXED: 4, Z_DEFAULT_STRATEGY: 0, DEFLATE: 1, INFLATE: 2, GZIP: 3, GUNZIP: 4, DEFLATERAW: 5, INFLATERAW: 6, UNZIP: 7, BROTLI_DECODE: 8, BROTLI_ENCODE: 9, Z_MIN_WINDOWBITS: 8, Z_MAX_WINDOWBITS: 15, Z_DEFAULT_WINDOWBITS: 15, Z_MIN_CHUNK: 64, Z_MAX_CHUNK: 1 / 0, Z_DEFAULT_CHUNK: 16384, Z_MIN_MEMLEVEL: 1, Z_MAX_MEMLEVEL: 9, Z_DEFAULT_MEMLEVEL: 8, Z_MIN_LEVEL: -1, Z_MAX_LEVEL: 9, Z_DEFAULT_LEVEL: -1, BROTLI_OPERATION_PROCESS: 0, BROTLI_OPERATION_FLUSH: 1, BROTLI_OPERATION_FINISH: 2, BROTLI_OPERATION_EMIT_METADATA: 3, BROTLI_MODE_GENERIC: 0, BROTLI_MODE_TEXT: 1, BROTLI_MODE_FONT: 2, BROTLI_DEFAULT_MODE: 0, BROTLI_MIN_QUALITY: 0, BROTLI_MAX_QUALITY: 11, BROTLI_DEFAULT_QUALITY: 11, BROTLI_MIN_WINDOW_BITS: 10, BROTLI_MAX_WINDOW_BITS: 24, BROTLI_LARGE_MAX_WINDOW_BITS: 30, BROTLI_DEFAULT_WINDOW: 22, BROTLI_MIN_INPUT_BLOCK_BITS: 16, BROTLI_MAX_INPUT_BLOCK_BITS: 24, BROTLI_PARAM_MODE: 0, BROTLI_PARAM_QUALITY: 1, BROTLI_PARAM_LGWIN: 2, BROTLI_PARAM_LGBLOCK: 3, BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4, BROTLI_PARAM_SIZE_HINT: 5, BROTLI_PARAM_LARGE_WINDOW: 6, BROTLI_PARAM_NPOSTFIX: 7, BROTLI_PARAM_NDIRECT: 8, BROTLI_DECODER_RESULT_ERROR: 0, BROTLI_DECODER_RESULT_SUCCESS: 1, BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0, BROTLI_DECODER_PARAM_LARGE_WINDOW: 1, BROTLI_DECODER_NO_ERROR: 0, BROTLI_DECODER_SUCCESS: 1, BROTLI_DECODER_NEEDS_MORE_INPUT: 2, BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1, BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2, BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4, BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5, BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6, BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7, BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9, BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10, BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11, BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12, BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13, BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14, BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15, BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16, BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19, BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21, BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22, BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26, BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27, BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30, BROTLI_DECODER_ERROR_UNREACHABLE: -31 }, jr));
51178
+ var tn = import_buffer.Buffer.concat;
51179
+ var Bs = Object.getOwnPropertyDescriptor(import_buffer.Buffer, "concat");
51180
+ var en = (s3) => s3;
51181
+ var Mi = Bs?.writable === true || Bs?.set !== void 0 ? (s3) => {
51182
+ import_buffer.Buffer.concat = s3 ? en : tn;
51183
51183
  } : (s3) => {
51184
51184
  };
51185
51185
  var Tt = /* @__PURE__ */ Symbol("_superWrite");
@@ -51193,7 +51193,7 @@ var Gt = class extends Error {
51193
51193
  return "ZlibError";
51194
51194
  }
51195
51195
  };
51196
- var Pi = /* @__PURE__ */ Symbol("flushFlag");
51196
+ var Bi = /* @__PURE__ */ Symbol("flushFlag");
51197
51197
  var re = class extends A {
51198
51198
  #t = false;
51199
51199
  #i = false;
@@ -51213,9 +51213,9 @@ var re = class extends A {
51213
51213
  }
51214
51214
  constructor(t, e) {
51215
51215
  if (!t || typeof t != "object") throw new TypeError("invalid options for ZlibBase constructor");
51216
- if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof Ps[e] != "function") throw new TypeError("Compression method not supported: " + e);
51216
+ if (super(t), this.#s = t.flush ?? 0, this.#n = t.finishFlush ?? 0, this.#r = t.fullFlushFlag ?? 0, typeof Ms[e] != "function") throw new TypeError("Compression method not supported: " + e);
51217
51217
  try {
51218
- this.#e = new Ps[e](t);
51218
+ this.#e = new Ms[e](t);
51219
51219
  } catch (i) {
51220
51220
  throw new Gt(i, this.constructor);
51221
51221
  }
@@ -51230,7 +51230,7 @@ var re = class extends A {
51230
51230
  if (!this.#t) return (0, import_assert.default)(this.#e, "zlib binding closed"), this.#e.reset?.();
51231
51231
  }
51232
51232
  flush(t) {
51233
- this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Pi]: t })));
51233
+ this.ended || (typeof t != "number" && (t = this.#r), this.write(Object.assign(import_buffer.Buffer.alloc(0), { [Bi]: t })));
51234
51234
  }
51235
51235
  end(t, e, i) {
51236
51236
  return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), t && (e ? this.write(t, e) : this.write(t)), this.flush(this.#n), this.#i = true, super.end(i);
@@ -51249,27 +51249,27 @@ var re = class extends A {
51249
51249
  };
51250
51250
  let o = this.#e.close;
51251
51251
  this.#e.close = () => {
51252
- }, Bi(true);
51253
- let h;
51252
+ }, Mi(true);
51253
+ let a;
51254
51254
  try {
51255
- let l = typeof t[Pi] == "number" ? t[Pi] : this.#s;
51256
- h = this.#e._processChunk(t, l), Bi(false);
51255
+ let l = typeof t[Bi] == "number" ? t[Bi] : this.#s;
51256
+ a = this.#e._processChunk(t, l), Mi(false);
51257
51257
  } catch (l) {
51258
- Bi(false), this.#o(new Gt(l, this.write));
51258
+ Mi(false), this.#o(new Gt(l, this.write));
51259
51259
  } finally {
51260
51260
  this.#e && (this.#e._handle = r, r.close = n, this.#e.close = o, this.#e.removeAllListeners("error"));
51261
51261
  }
51262
51262
  this.#e && this.#e.on("error", (l) => this.#o(new Gt(l, this.write)));
51263
- let a;
51264
- if (h) if (Array.isArray(h) && h.length > 0) {
51265
- let l = h[0];
51266
- a = this[Tt](import_buffer.Buffer.from(l));
51267
- for (let c = 1; c < h.length; c++) a = this[Tt](h[c]);
51268
- } else a = this[Tt](import_buffer.Buffer.from(h));
51269
- return i && i(), a;
51263
+ let h;
51264
+ if (a) if (Array.isArray(a) && a.length > 0) {
51265
+ let l = a[0];
51266
+ h = this[Tt](import_buffer.Buffer.from(l));
51267
+ for (let c = 1; c < a.length; c++) h = this[Tt](a[c]);
51268
+ } else h = this[Tt](import_buffer.Buffer.from(a));
51269
+ return i && i(), h;
51270
51270
  }
51271
51271
  };
51272
- var Pe = class extends re {
51272
+ var Be = class extends re {
51273
51273
  #t;
51274
51274
  #i;
51275
51275
  constructor(t, e) {
@@ -51295,7 +51295,7 @@ var Pe = class extends re {
51295
51295
  }
51296
51296
  }
51297
51297
  };
51298
- var ze = class extends Pe {
51298
+ var Pe = class extends Be {
51299
51299
  #t;
51300
51300
  constructor(t) {
51301
51301
  super(t, "Gzip"), this.#t = t && !!t.portable;
@@ -51304,90 +51304,89 @@ var ze = class extends Pe {
51304
51304
  return this.#t ? (this.#t = false, t[9] = 255, super[Tt](t)) : super[Tt](t);
51305
51305
  }
51306
51306
  };
51307
- var Ue = class extends Pe {
51307
+ var ze = class extends Be {
51308
51308
  constructor(t) {
51309
51309
  super(t, "Unzip");
51310
51310
  }
51311
51311
  };
51312
- var He = class extends re {
51312
+ var Ue = class extends re {
51313
51313
  constructor(t, e) {
51314
51314
  t = t || {}, t.flush = t.flush || M.BROTLI_OPERATION_PROCESS, t.finishFlush = t.finishFlush || M.BROTLI_OPERATION_FINISH, t.fullFlushFlag = M.BROTLI_OPERATION_FLUSH, super(t, e);
51315
51315
  }
51316
51316
  };
51317
- var We = class extends He {
51317
+ var He = class extends Ue {
51318
51318
  constructor(t) {
51319
51319
  super(t, "BrotliCompress");
51320
51320
  }
51321
51321
  };
51322
- var Ge = class extends He {
51322
+ var We = class extends Ue {
51323
51323
  constructor(t) {
51324
51324
  super(t, "BrotliDecompress");
51325
51325
  }
51326
51326
  };
51327
- var Ze = class extends re {
51327
+ var Ge = class extends re {
51328
51328
  constructor(t, e) {
51329
51329
  t = t || {}, t.flush = t.flush || M.ZSTD_e_continue, t.finishFlush = t.finishFlush || M.ZSTD_e_end, t.fullFlushFlag = M.ZSTD_e_flush, super(t, e);
51330
51330
  }
51331
51331
  };
51332
- var Ye = class extends Ze {
51332
+ var Ze = class extends Ge {
51333
51333
  constructor(t) {
51334
51334
  super(t, "ZstdCompress");
51335
51335
  }
51336
51336
  };
51337
- var Ke = class extends Ze {
51337
+ var Ye = class extends Ge {
51338
51338
  constructor(t) {
51339
51339
  super(t, "ZstdDecompress");
51340
51340
  }
51341
51341
  };
51342
- var Us = (s3, t) => {
51343
- if (Number.isSafeInteger(s3)) s3 < 0 ? an(s3, t) : hn(s3, t);
51342
+ var Ps = (s3, t) => {
51343
+ if (Number.isSafeInteger(s3)) s3 < 0 ? nn(s3, t) : rn(s3, t);
51344
51344
  else throw Error("cannot encode number outside of javascript safe integer range");
51345
51345
  return t;
51346
51346
  };
51347
- var hn = (s3, t) => {
51347
+ var rn = (s3, t) => {
51348
51348
  t[0] = 128;
51349
51349
  for (var e = t.length; e > 1; e--) t[e - 1] = s3 & 255, s3 = Math.floor(s3 / 256);
51350
51350
  };
51351
- var an = (s3, t) => {
51351
+ var nn = (s3, t) => {
51352
51352
  t[0] = 255;
51353
51353
  var e = false;
51354
51354
  s3 = s3 * -1;
51355
51355
  for (var i = t.length; i > 1; i--) {
51356
51356
  var r = s3 & 255;
51357
- s3 = Math.floor(s3 / 256), e ? t[i - 1] = Ws(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = Gs(r));
51357
+ s3 = Math.floor(s3 / 256), e ? t[i - 1] = Us(r) : r === 0 ? t[i - 1] = 0 : (e = true, t[i - 1] = Hs(r));
51358
51358
  }
51359
51359
  };
51360
- var Hs = (s3) => {
51361
- let t = s3[0], e = t === 128 ? cn(s3.subarray(1, s3.length)) : t === 255 ? ln(s3) : null;
51360
+ var zs = (s3) => {
51361
+ let t = s3[0], e = t === 128 ? hn(s3.subarray(1, s3.length)) : t === 255 ? on(s3) : null;
51362
51362
  if (e === null) throw Error("invalid base256 encoding");
51363
51363
  if (!Number.isSafeInteger(e)) throw Error("parsed number outside of javascript safe integer range");
51364
51364
  return e;
51365
51365
  };
51366
- var ln = (s3) => {
51366
+ var on = (s3) => {
51367
51367
  for (var t = s3.length, e = 0, i = false, r = t - 1; r > -1; r--) {
51368
51368
  var n = Number(s3[r]), o;
51369
- i ? o = Ws(n) : n === 0 ? o = n : (i = true, o = Gs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
51369
+ i ? o = Us(n) : n === 0 ? o = n : (i = true, o = Hs(n)), o !== 0 && (e -= o * Math.pow(256, t - r - 1));
51370
51370
  }
51371
51371
  return e;
51372
51372
  };
51373
- var cn = (s3) => {
51373
+ var hn = (s3) => {
51374
51374
  for (var t = s3.length, e = 0, i = t - 1; i > -1; i--) {
51375
51375
  var r = Number(s3[i]);
51376
51376
  r !== 0 && (e += r * Math.pow(256, t - i - 1));
51377
51377
  }
51378
51378
  return e;
51379
51379
  };
51380
- var Ws = (s3) => (255 ^ s3) & 255;
51381
- var Gs = (s3) => (255 ^ s3) + 1 & 255;
51382
- var Hi = {};
51383
- Ur(Hi, { code: () => Ve, isCode: () => ne, isName: () => dn, name: () => oe, normalFsTypes: () => Ui });
51380
+ var Us = (s3) => (255 ^ s3) & 255;
51381
+ var Hs = (s3) => (255 ^ s3) + 1 & 255;
51382
+ var Ui = {};
51383
+ Br(Ui, { code: () => Ke, isCode: () => ne, isName: () => ln, name: () => oe, normalFsTypes: () => zi });
51384
51384
  var ne = (s3) => oe.has(s3);
51385
- var dn = (s3) => Ve.has(s3);
51386
- var Ui = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
51385
+ var ln = (s3) => Ke.has(s3);
51386
+ var zi = /* @__PURE__ */ new Set(["0", "", "1", "2", "3", "4", "5", "6", "7", "D"]);
51387
51387
  var oe = /* @__PURE__ */ new Map([["0", "File"], ["", "OldFile"], ["1", "Link"], ["2", "SymbolicLink"], ["3", "CharacterDevice"], ["4", "BlockDevice"], ["5", "Directory"], ["6", "FIFO"], ["7", "ContiguousFile"], ["g", "GlobalExtendedHeader"], ["x", "ExtendedHeader"], ["A", "SolarisACL"], ["D", "GNUDumpDir"], ["I", "Inode"], ["K", "NextFileHasLongLinkpath"], ["L", "NextFileHasLongPath"], ["M", "ContinuationFile"], ["N", "OldGnuLongPath"], ["S", "SparseFile"], ["V", "TapeVolumeHeader"], ["X", "OldExtendedHeader"]]);
51388
- var Ve = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
51389
- var mn = (s3) => s3 === void 0 || s3 < 0 ? void 0 : s3;
51390
- var F = class {
51388
+ var Ke = new Map(Array.from(oe).map((s3) => [s3[1], s3[0]]));
51389
+ var C = class {
51391
51390
  cksumValid = false;
51392
51391
  needPax = false;
51393
51392
  nullBlock = false;
@@ -51414,13 +51413,13 @@ var F = class {
51414
51413
  }
51415
51414
  decode(t, e, i, r) {
51416
51415
  if (e || (e = 0), !t || !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
51417
- let n = xt(t, e + 156, 1), o = Ui.has(n), h = o ? i : void 0, a = o ? r : void 0;
51418
- if (this.path = h?.path ?? xt(t, e, 100), this.mode = h?.mode ?? a?.mode ?? lt(t, e + 100, 8), this.uid = h?.uid ?? a?.uid ?? lt(t, e + 108, 8), this.gid = h?.gid ?? a?.gid ?? lt(t, e + 116, 8), this.size = mn(h?.size ?? a?.size ?? lt(t, e + 124, 12)), this.mtime = h?.mtime ?? a?.mtime ?? Wi(t, e + 136, 12), this.cksum = lt(t, e + 148, 12), a && this.#i(a, true), h && this.#i(h), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = h?.uname ?? a?.uname ?? xt(t, e + 265, 32), this.gname = h?.gname ?? a?.gname ?? xt(t, e + 297, 32), this.devmaj = h?.devmaj ?? a?.devmaj ?? lt(t, e + 329, 8) ?? 0, this.devmin = h?.devmin ?? a?.devmin ?? lt(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
51416
+ let n = xt(t, e + 156, 1), o = zi.has(n), a = o ? i : void 0, h = o ? r : void 0;
51417
+ if (this.path = a?.path ?? xt(t, e, 100), this.mode = a?.mode ?? h?.mode ?? at(t, e + 100, 8), this.uid = a?.uid ?? h?.uid ?? at(t, e + 108, 8), this.gid = a?.gid ?? h?.gid ?? at(t, e + 116, 8), this.size = a?.size ?? h?.size ?? at(t, e + 124, 12), this.mtime = a?.mtime ?? h?.mtime ?? Hi(t, e + 136, 12), this.cksum = at(t, e + 148, 12), h && this.#i(h, true), a && this.#i(a), ne(n) && (this.#t = n || "0"), this.#t === "0" && this.path.slice(-1) === "/" && (this.#t = "5"), this.#t === "5" && (this.size = 0), this.linkpath = xt(t, e + 157, 100), t.subarray(e + 257, e + 265).toString() === "ustar\x0000") if (this.uname = a?.uname ?? h?.uname ?? xt(t, e + 265, 32), this.gname = a?.gname ?? h?.gname ?? xt(t, e + 297, 32), this.devmaj = a?.devmaj ?? h?.devmaj ?? at(t, e + 329, 8) ?? 0, this.devmin = a?.devmin ?? h?.devmin ?? at(t, e + 337, 8) ?? 0, t[e + 475] !== 0) {
51419
51418
  let c = xt(t, e + 345, 155);
51420
51419
  this.path = c + "/" + this.path;
51421
51420
  } else {
51422
51421
  let c = xt(t, e + 345, 130);
51423
- c && (this.path = c + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Wi(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Wi(t, e + 488, 12);
51422
+ c && (this.path = c + "/" + this.path), this.atime = i?.atime ?? r?.atime ?? Hi(t, e + 476, 12), this.ctime = i?.ctime ?? r?.ctime ?? Hi(t, e + 488, 12);
51424
51423
  }
51425
51424
  let l = 256;
51426
51425
  for (let c = e; c < e + 148; c++) l += t[c];
@@ -51428,16 +51427,16 @@ var F = class {
51428
51427
  this.cksumValid = l === this.cksum, this.cksum === void 0 && l === 256 && (this.nullBlock = true);
51429
51428
  }
51430
51429
  #i(t, e = false) {
51431
- Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "size" && Number(r) < 0 || i === "path" && e || i === "linkpath" && e || i === "global"))));
51430
+ Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "path" && e || i === "linkpath" && e || i === "global"))));
51432
51431
  }
51433
51432
  encode(t, e = 0) {
51434
51433
  if (t || (t = this.block = Buffer.alloc(512)), this.#t === "Unsupported" && (this.#t = "0"), !(t.length >= e + 512)) throw new Error("need 512 bytes for header");
51435
- let i = this.ctime || this.atime ? 130 : 155, r = un(this.path || "", i), n = r[0], o = r[1];
51436
- this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = ct(t, e + 100, 8, this.mode) || this.needPax, this.needPax = ct(t, e + 108, 8, this.uid) || this.needPax, this.needPax = ct(t, e + 116, 8, this.gid) || this.needPax, this.needPax = ct(t, e + 124, 12, this.size) || this.needPax, this.needPax = Gi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = ct(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = ct(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Gi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Gi(t, e + 488, 12, this.ctime) || this.needPax);
51437
- let h = 256;
51438
- for (let a = e; a < e + 148; a++) h += t[a];
51439
- for (let a = e + 156; a < e + 512; a++) h += t[a];
51440
- return this.cksum = h, ct(t, e + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
51434
+ let i = this.ctime || this.atime ? 130 : 155, r = cn(this.path || "", i), n = r[0], o = r[1];
51435
+ this.needPax = !!r[2], this.needPax = Lt(t, e, 100, n) || this.needPax, this.needPax = lt(t, e + 100, 8, this.mode) || this.needPax, this.needPax = lt(t, e + 108, 8, this.uid) || this.needPax, this.needPax = lt(t, e + 116, 8, this.gid) || this.needPax, this.needPax = lt(t, e + 124, 12, this.size) || this.needPax, this.needPax = Wi(t, e + 136, 12, this.mtime) || this.needPax, t[e + 156] = Number(this.#t.codePointAt(0)), this.needPax = Lt(t, e + 157, 100, this.linkpath) || this.needPax, t.write("ustar\x0000", e + 257, 8), this.needPax = Lt(t, e + 265, 32, this.uname) || this.needPax, this.needPax = Lt(t, e + 297, 32, this.gname) || this.needPax, this.needPax = lt(t, e + 329, 8, this.devmaj) || this.needPax, this.needPax = lt(t, e + 337, 8, this.devmin) || this.needPax, this.needPax = Lt(t, e + 345, i, o) || this.needPax, t[e + 475] !== 0 ? this.needPax = Lt(t, e + 345, 155, o) || this.needPax : (this.needPax = Lt(t, e + 345, 130, o) || this.needPax, this.needPax = Wi(t, e + 476, 12, this.atime) || this.needPax, this.needPax = Wi(t, e + 488, 12, this.ctime) || this.needPax);
51436
+ let a = 256;
51437
+ for (let h = e; h < e + 148; h++) a += t[h];
51438
+ for (let h = e + 156; h < e + 512; h++) a += t[h];
51439
+ return this.cksum = a, lt(t, e + 148, 8, this.cksum), this.cksumValid = true, this.needPax;
51441
51440
  }
51442
51441
  get type() {
51443
51442
  return this.#t === "Unsupported" ? this.#t : oe.get(this.#t);
@@ -51446,13 +51445,13 @@ var F = class {
51446
51445
  return this.#t;
51447
51446
  }
51448
51447
  set type(t) {
51449
- let e = String(Ve.get(t));
51448
+ let e = String(Ke.get(t));
51450
51449
  if (ne(e) || e === "Unsupported") this.#t = e;
51451
51450
  else if (ne(t)) this.#t = t;
51452
51451
  else throw new TypeError("invalid entry type: " + t);
51453
51452
  }
51454
51453
  };
51455
- var un = (s3, t) => {
51454
+ var cn = (s3, t) => {
51456
51455
  let i = s3, r = "", n, o = import_node_path2.posix.parse(s3).root || ".";
51457
51456
  if (Buffer.byteLength(i) < 100) n = [i, r, false];
51458
51457
  else {
@@ -51465,20 +51464,20 @@ var un = (s3, t) => {
51465
51464
  return n;
51466
51465
  };
51467
51466
  var xt = (s3, t, e) => s3.subarray(t, t + e).toString("utf8").replace(/\0.*/, "");
51468
- var Wi = (s3, t, e) => pn(lt(s3, t, e));
51469
- var pn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
51470
- var lt = (s3, t, e) => Number(s3[t]) & 128 ? Hs(s3.subarray(t, t + e)) : wn(s3, t, e);
51471
- var En = (s3) => isNaN(s3) ? void 0 : s3;
51472
- var wn = (s3, t, e) => En(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
51473
- var Sn = { 12: 8589934591, 8: 2097151 };
51474
- var ct = (s3, t, e, i) => i === void 0 ? false : i > Sn[e] || i < 0 ? (Us(i, s3.subarray(t, t + e)), true) : (yn(s3, t, e, i), false);
51475
- var yn = (s3, t, e, i) => s3.write(Rn(i, e), t, e, "ascii");
51476
- var Rn = (s3, t) => gn(Math.floor(s3).toString(8), t);
51477
- var gn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
51478
- var Gi = (s3, t, e, i) => i === void 0 ? false : ct(s3, t, e, i.getTime() / 1e3);
51479
- var bn = new Array(156).join("\0");
51480
- var Lt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + bn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
51481
- var ft = class s {
51467
+ var Hi = (s3, t, e) => fn(at(s3, t, e));
51468
+ var fn = (s3) => s3 === void 0 ? void 0 : new Date(s3 * 1e3);
51469
+ var at = (s3, t, e) => Number(s3[t]) & 128 ? zs(s3.subarray(t, t + e)) : un(s3, t, e);
51470
+ var dn = (s3) => isNaN(s3) ? void 0 : s3;
51471
+ var un = (s3, t, e) => dn(parseInt(s3.subarray(t, t + e).toString("utf8").replace(/\0.*$/, "").trim(), 8));
51472
+ var mn = { 12: 8589934591, 8: 2097151 };
51473
+ var lt = (s3, t, e, i) => i === void 0 ? false : i > mn[e] || i < 0 ? (Ps(i, s3.subarray(t, t + e)), true) : (pn(s3, t, e, i), false);
51474
+ var pn = (s3, t, e, i) => s3.write(En(i, e), t, e, "ascii");
51475
+ var En = (s3, t) => wn(Math.floor(s3).toString(8), t);
51476
+ var wn = (s3, t) => (s3.length === t - 1 ? s3 : new Array(t - s3.length - 1).join("0") + s3 + " ") + "\0";
51477
+ var Wi = (s3, t, e, i) => i === void 0 ? false : lt(s3, t, e, i.getTime() / 1e3);
51478
+ var Sn = new Array(156).join("\0");
51479
+ var Lt = (s3, t, e, i) => i === void 0 ? false : (s3.write(i + Sn, t, e, "utf8"), i.length !== Buffer.byteLength(i) || i.length > e);
51480
+ var ct = class s {
51482
51481
  atime;
51483
51482
  mtime;
51484
51483
  ctime;
@@ -51504,7 +51503,7 @@ var ft = class s {
51504
51503
  if (t === "") return Buffer.allocUnsafe(0);
51505
51504
  let e = Buffer.byteLength(t), i = 512 * Math.ceil(1 + e / 512), r = Buffer.allocUnsafe(i);
51506
51505
  for (let n = 0; n < 512; n++) r[n] = 0;
51507
- new F({ path: ("PaxHeader/" + (0, import_node_path3.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
51506
+ new C({ path: ("PaxHeader/" + (0, import_node_path3.basename)(this.path ?? "")).slice(0, 99), mode: this.mode || 420, uid: this.uid, gid: this.gid, size: e, mtime: this.mtime, type: this.global ? "GlobalExtendedHeader" : "ExtendedHeader", linkpath: "", uname: this.uname || "", gname: this.gname || "", devmaj: 0, devmin: 0, atime: this.atime, ctime: this.ctime }).encode(r), r.write(t, 512, e, "utf8");
51508
51507
  for (let n = e + 512; n < r.length; n++) r[n] = 0;
51509
51508
  return r;
51510
51509
  }
@@ -51518,52 +51517,24 @@ var ft = class s {
51518
51517
  return n + o >= Math.pow(10, o) && (o += 1), o + n + r;
51519
51518
  }
51520
51519
  static parse(t, e, i = false) {
51521
- return new s(On(Tn(t), e), i);
51520
+ return new s(Rn(gn(t), e), i);
51522
51521
  }
51523
51522
  };
51524
- var On = (s3, t) => t ? Object.assign({}, t, s3) : s3;
51525
- var Tn = (s3) => s3.replace(/\n$/, "").split(`
51526
- `).reduce(xn, /* @__PURE__ */ Object.create(null));
51527
- var xn = (s3, t) => {
51523
+ var Rn = (s3, t) => t ? Object.assign({}, t, s3) : s3;
51524
+ var gn = (s3) => s3.replace(/\n$/, "").split(`
51525
+ `).reduce(bn, /* @__PURE__ */ Object.create(null));
51526
+ var bn = (s3, t) => {
51528
51527
  let e = parseInt(t, 10);
51529
51528
  if (e !== Buffer.byteLength(t) + 1) return s3;
51530
51529
  t = t.slice((e + " ").length);
51531
51530
  let i = t.split("="), r = i.shift();
51532
51531
  if (!r) return s3;
51533
- let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=").replace(/\0.*/, "");
51534
- switch (n) {
51535
- case "path":
51536
- case "linkpath":
51537
- case "type":
51538
- case "charset":
51539
- case "comment":
51540
- case "gname":
51541
- case "uname":
51542
- s3[n] = o;
51543
- break;
51544
- case "ctime":
51545
- case "atime":
51546
- case "mtime":
51547
- s3[n] = new Date(Number(o) * 1e3);
51548
- break;
51549
- case "size":
51550
- let h = +o;
51551
- h >= 0 && (s3[n] = h);
51552
- break;
51553
- case "gid":
51554
- case "uid":
51555
- case "dev":
51556
- case "ino":
51557
- case "nlink":
51558
- case "mode":
51559
- s3[n] = +o;
51560
- break;
51561
- }
51562
- return s3;
51532
+ let n = r.replace(/^SCHILY\.(dev|ino|nlink)/, "$1"), o = i.join("=");
51533
+ return s3[n] = /^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n) ? new Date(Number(o) * 1e3) : /^[0-9]+$/.test(o) ? +o : o, s3;
51563
51534
  };
51564
- var Ln = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
51565
- var f = Ln !== "win32" ? (s3) => String(s3) : (s3) => String(s3).replaceAll(/\\/g, "/");
51566
- var $e = class extends A {
51535
+ var _n = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
51536
+ var f = _n !== "win32" ? (s3) => s3 : (s3) => s3 && s3.replaceAll(/\\/g, "/");
51537
+ var Ve = class extends A {
51567
51538
  extended;
51568
51539
  globalExtended;
51569
51540
  header;
@@ -51627,170 +51598,163 @@ var $e = class extends A {
51627
51598
  t.path && (t.path = f(t.path)), t.linkpath && (t.linkpath = f(t.linkpath)), Object.assign(this, Object.fromEntries(Object.entries(t).filter(([i, r]) => !(r == null || i === "path" && e))));
51628
51599
  }
51629
51600
  };
51630
- var Dt = (s3, t, e, i = {}) => {
51601
+ var Nt = (s3, t, e, i = {}) => {
51631
51602
  s3.file && (i.file = s3.file), s3.cwd && (i.cwd = s3.cwd), i.code = e instanceof Error && e.code || t, i.tarCode = t, !s3.strict && i.recoverable !== false ? (e instanceof Error && (i = Object.assign(e, i), e = e.message), s3.emit("warn", t, e, i)) : e instanceof Error ? s3.emit("error", Object.assign(e, i)) : s3.emit("error", Object.assign(new Error(`${t}: ${e}`), i));
51632
51603
  };
51633
- var Nn = 1024 * 1024;
51634
- var Xi = Buffer.from([31, 139]);
51635
- var qi = Buffer.from([40, 181, 47, 253]);
51636
- var An = Math.max(Xi.length, qi.length);
51604
+ var Tn = 1024 * 1024;
51605
+ var Vi = Buffer.from([31, 139]);
51606
+ var $i = Buffer.from([40, 181, 47, 253]);
51607
+ var xn = Math.max(Vi.length, $i.length);
51637
51608
  var B = /* @__PURE__ */ Symbol("state");
51638
- var Nt = /* @__PURE__ */ Symbol("writeEntry");
51639
- var it = /* @__PURE__ */ Symbol("readEntry");
51640
- var Zi = /* @__PURE__ */ Symbol("nextEntry");
51641
- var Zs = /* @__PURE__ */ Symbol("processEntry");
51609
+ var Dt = /* @__PURE__ */ Symbol("writeEntry");
51610
+ var et = /* @__PURE__ */ Symbol("readEntry");
51611
+ var Gi = /* @__PURE__ */ Symbol("nextEntry");
51612
+ var Ws = /* @__PURE__ */ Symbol("processEntry");
51642
51613
  var V = /* @__PURE__ */ Symbol("extendedHeader");
51643
51614
  var he = /* @__PURE__ */ Symbol("globalExtendedHeader");
51644
- var dt = /* @__PURE__ */ Symbol("meta");
51645
- var Ys = /* @__PURE__ */ Symbol("emitMeta");
51615
+ var ft = /* @__PURE__ */ Symbol("meta");
51616
+ var Gs = /* @__PURE__ */ Symbol("emitMeta");
51646
51617
  var p = /* @__PURE__ */ Symbol("buffer");
51647
- var st = /* @__PURE__ */ Symbol("queue");
51648
- var mt = /* @__PURE__ */ Symbol("ended");
51649
- var Yi = /* @__PURE__ */ Symbol("emittedEnd");
51618
+ var it = /* @__PURE__ */ Symbol("queue");
51619
+ var dt = /* @__PURE__ */ Symbol("ended");
51620
+ var Zi = /* @__PURE__ */ Symbol("emittedEnd");
51650
51621
  var At = /* @__PURE__ */ Symbol("emit");
51651
51622
  var y = /* @__PURE__ */ Symbol("unzip");
51652
- var Xe = /* @__PURE__ */ Symbol("consumeChunk");
51653
- var qe = /* @__PURE__ */ Symbol("consumeChunkSub");
51654
- var Ki = /* @__PURE__ */ Symbol("consumeBody");
51655
- var Ks = /* @__PURE__ */ Symbol("consumeMeta");
51656
- var Vs = /* @__PURE__ */ Symbol("consumeHeader");
51623
+ var $e = /* @__PURE__ */ Symbol("consumeChunk");
51624
+ var Xe = /* @__PURE__ */ Symbol("consumeChunkSub");
51625
+ var Yi = /* @__PURE__ */ Symbol("consumeBody");
51626
+ var Zs = /* @__PURE__ */ Symbol("consumeMeta");
51627
+ var Ys = /* @__PURE__ */ Symbol("consumeHeader");
51657
51628
  var ae = /* @__PURE__ */ Symbol("consuming");
51658
- var Vi = /* @__PURE__ */ Symbol("bufferConcat");
51659
- var Qe = /* @__PURE__ */ Symbol("maybeEnd");
51629
+ var Ki = /* @__PURE__ */ Symbol("bufferConcat");
51630
+ var qe = /* @__PURE__ */ Symbol("maybeEnd");
51660
51631
  var Yt = /* @__PURE__ */ Symbol("writing");
51661
- var $ = /* @__PURE__ */ Symbol("aborted");
51662
- var Je = /* @__PURE__ */ Symbol("onDone");
51632
+ var ut = /* @__PURE__ */ Symbol("aborted");
51633
+ var Qe = /* @__PURE__ */ Symbol("onDone");
51663
51634
  var It = /* @__PURE__ */ Symbol("sawValidEntry");
51664
- var je = /* @__PURE__ */ Symbol("sawNullBlock");
51665
- var ti = /* @__PURE__ */ Symbol("sawEOF");
51666
- var $s = /* @__PURE__ */ Symbol("closeStream");
51667
- var In = 1e3;
51668
- var le = /* @__PURE__ */ Symbol("compressedBytesRead");
51669
- var $i = /* @__PURE__ */ Symbol("decompressedBytesRead");
51670
- var Xs = /* @__PURE__ */ Symbol("checkDecompressionRatio");
51671
- var Cn = () => true;
51672
- var rt = class extends import_events2.EventEmitter {
51635
+ var Je = /* @__PURE__ */ Symbol("sawNullBlock");
51636
+ var je = /* @__PURE__ */ Symbol("sawEOF");
51637
+ var Ks = /* @__PURE__ */ Symbol("closeStream");
51638
+ var Ln = () => true;
51639
+ var st = class extends import_events2.EventEmitter {
51673
51640
  file;
51674
51641
  strict;
51675
51642
  maxMetaEntrySize;
51676
51643
  filter;
51677
51644
  brotli;
51678
51645
  zstd;
51679
- maxDecompressionRatio;
51680
51646
  writable = true;
51681
51647
  readable = false;
51682
- [st] = [];
51648
+ [it] = [];
51683
51649
  [p];
51684
- [it];
51685
- [Nt];
51650
+ [et];
51651
+ [Dt];
51686
51652
  [B] = "begin";
51687
- [dt] = "";
51653
+ [ft] = "";
51688
51654
  [V];
51689
51655
  [he];
51690
- [mt] = false;
51656
+ [dt] = false;
51691
51657
  [y];
51692
- [$] = false;
51658
+ [ut] = false;
51693
51659
  [It];
51660
+ [Je] = false;
51694
51661
  [je] = false;
51695
- [ti] = false;
51696
51662
  [Yt] = false;
51697
51663
  [ae] = false;
51698
- [Yi] = false;
51699
- [le] = 0;
51700
- [$i] = 0;
51664
+ [Zi] = false;
51701
51665
  constructor(t = {}) {
51702
- super(), this.file = t.file || "", this.on(Je, () => {
51666
+ super(), this.file = t.file || "", this.on(Qe, () => {
51703
51667
  (this[B] === "begin" || this[It] === false) && this.warn("TAR_BAD_ARCHIVE", "Unrecognized archive format");
51704
- }), t.ondone ? this.on(Je, t.ondone) : this.on(Je, () => {
51668
+ }), t.ondone ? this.on(Qe, t.ondone) : this.on(Qe, () => {
51705
51669
  this.emit("prefinish"), this.emit("finish"), this.emit("end");
51706
- }), this.strict = !!t.strict, this.maxDecompressionRatio = typeof t.maxDecompressionRatio == "number" ? t.maxDecompressionRatio : In, this.maxMetaEntrySize = t.maxMetaEntrySize || Nn, this.filter = typeof t.filter == "function" ? t.filter : Cn;
51670
+ }), this.strict = !!t.strict, this.maxMetaEntrySize = t.maxMetaEntrySize || Tn, this.filter = typeof t.filter == "function" ? t.filter : Ln;
51707
51671
  let e = t.file && (t.file.endsWith(".tar.br") || t.file.endsWith(".tbr"));
51708
51672
  this.brotli = !(t.gzip || t.zstd) && t.brotli !== void 0 ? t.brotli : e ? void 0 : false;
51709
51673
  let i = t.file && (t.file.endsWith(".tar.zst") || t.file.endsWith(".tzst"));
51710
- this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[$s]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
51674
+ this.zstd = !(t.gzip || t.brotli) && t.zstd !== void 0 ? t.zstd : i ? true : void 0, this.on("end", () => this[Ks]()), typeof t.onwarn == "function" && this.on("warn", t.onwarn), typeof t.onReadEntry == "function" && this.on("entry", t.onReadEntry);
51711
51675
  }
51712
51676
  warn(t, e, i = {}) {
51713
- Dt(this, t, e, i);
51677
+ Nt(this, t, e, i);
51714
51678
  }
51715
- [Vs](t, e) {
51679
+ [Ys](t, e) {
51716
51680
  this[It] === void 0 && (this[It] = false);
51717
51681
  let i;
51718
51682
  try {
51719
- i = new F(t, e, this[V], this[he]);
51683
+ i = new C(t, e, this[V], this[he]);
51720
51684
  } catch (r) {
51721
51685
  return this.warn("TAR_ENTRY_INVALID", r);
51722
51686
  }
51723
- if (i.nullBlock) this[je] ? (this[ti] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[je] = true, this[At]("nullBlock"));
51724
- else if (this[je] = false, !i.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
51687
+ if (i.nullBlock) this[Je] ? (this[je] = true, this[B] === "begin" && (this[B] = "header"), this[At]("eof")) : (this[Je] = true, this[At]("nullBlock"));
51688
+ else if (this[Je] = false, !i.cksumValid) this.warn("TAR_ENTRY_INVALID", "checksum failure", { header: i });
51725
51689
  else if (!i.path) this.warn("TAR_ENTRY_INVALID", "path is required", { header: i });
51726
51690
  else {
51727
51691
  let r = i.type;
51728
51692
  if (/^(Symbolic)?Link$/.test(r) && !i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath required", { header: i });
51729
51693
  else if (!/^(Symbolic)?Link$/.test(r) && !/^(Global)?ExtendedHeader$/.test(r) && i.linkpath) this.warn("TAR_ENTRY_INVALID", "linkpath forbidden", { header: i });
51730
51694
  else {
51731
- let n = this[Nt] = new $e(i, this[V], this[he]);
51695
+ let n = this[Dt] = new Ve(i, this[V], this[he]);
51732
51696
  if (!this[It]) if (n.remain) {
51733
51697
  let o = () => {
51734
51698
  n.invalid || (this[It] = true);
51735
51699
  };
51736
51700
  n.on("end", o);
51737
51701
  } else this[It] = true;
51738
- n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[dt] = "", n.on("data", (o) => this[dt] += o), this[B] = "meta") : (this[V] = void 0, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[it] ? this[st].push(n) : (this[st].push(n), this[Zi]())));
51702
+ n.meta ? n.size > this.maxMetaEntrySize ? (n.ignore = true, this[At]("ignoredEntry", n), this[B] = "ignore", n.resume()) : n.size > 0 && (this[ft] = "", n.on("data", (o) => this[ft] += o), this[B] = "meta") : (this[V] = void 0, n.ignore = n.ignore || !this.filter(n.path, n), n.ignore ? (this[At]("ignoredEntry", n), this[B] = n.remain ? "ignore" : "header", n.resume()) : (n.remain ? this[B] = "body" : (this[B] = "header", n.end()), this[et] ? this[it].push(n) : (this[it].push(n), this[Gi]())));
51739
51703
  }
51740
51704
  }
51741
51705
  }
51742
- [$s]() {
51706
+ [Ks]() {
51743
51707
  queueMicrotask(() => this.emit("close"));
51744
51708
  }
51745
- [Zs](t) {
51709
+ [Ws](t) {
51746
51710
  let e = true;
51747
- if (!t) this[it] = void 0, e = false;
51711
+ if (!t) this[et] = void 0, e = false;
51748
51712
  else if (Array.isArray(t)) {
51749
51713
  let [i, ...r] = t;
51750
51714
  this.emit(i, ...r);
51751
- } else this[it] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Zi]()), e = false);
51715
+ } else this[et] = t, this.emit("entry", t), t.emittedEnd || (t.on("end", () => this[Gi]()), e = false);
51752
51716
  return e;
51753
51717
  }
51754
- [Zi]() {
51718
+ [Gi]() {
51755
51719
  do
51756
51720
  ;
51757
- while (this[Zs](this[st].shift()));
51758
- if (this[st].length === 0) {
51759
- let t = this[it];
51721
+ while (this[Ws](this[it].shift()));
51722
+ if (this[it].length === 0) {
51723
+ let t = this[et];
51760
51724
  !t || t.flowing || t.size === t.remain ? this[Yt] || this.emit("drain") : t.once("drain", () => this.emit("drain"));
51761
51725
  }
51762
51726
  }
51763
- [Ki](t, e) {
51764
- let i = this[Nt];
51727
+ [Yi](t, e) {
51728
+ let i = this[Dt];
51765
51729
  if (!i) throw new Error("attempt to consume body without entry??");
51766
51730
  let r = i.blockRemain ?? 0, n = r >= t.length && e === 0 ? t : t.subarray(e, e + r);
51767
- return i.write(n), i.blockRemain || (this[B] = "header", this[Nt] = void 0, i.end()), n.length;
51731
+ return i.write(n), i.blockRemain || (this[B] = "header", this[Dt] = void 0, i.end()), n.length;
51768
51732
  }
51769
- [Ks](t, e) {
51770
- let i = this[Nt], r = this[Ki](t, e);
51771
- return !this[Nt] && i && this[Ys](i), r;
51733
+ [Zs](t, e) {
51734
+ let i = this[Dt], r = this[Yi](t, e);
51735
+ return !this[Dt] && i && this[Gs](i), r;
51772
51736
  }
51773
51737
  [At](t, e, i) {
51774
- this[st].length === 0 && !this[it] ? this.emit(t, e, i) : this[st].push([t, e, i]);
51738
+ this[it].length === 0 && !this[et] ? this.emit(t, e, i) : this[it].push([t, e, i]);
51775
51739
  }
51776
- [Ys](t) {
51777
- switch (this[At]("meta", this[dt]), t.type) {
51740
+ [Gs](t) {
51741
+ switch (this[At]("meta", this[ft]), t.type) {
51778
51742
  case "ExtendedHeader":
51779
51743
  case "OldExtendedHeader":
51780
- this[V] = ft.parse(this[dt], this[V], false);
51744
+ this[V] = ct.parse(this[ft], this[V], false);
51781
51745
  break;
51782
51746
  case "GlobalExtendedHeader":
51783
- this[he] = ft.parse(this[dt], this[he], true);
51747
+ this[he] = ct.parse(this[ft], this[he], true);
51784
51748
  break;
51785
51749
  case "NextFileHasLongPath":
51786
51750
  case "OldGnuLongPath": {
51787
51751
  let e = this[V] ?? /* @__PURE__ */ Object.create(null);
51788
- this[V] = e, e.path = this[dt].replace(/\0.*/, "");
51752
+ this[V] = e, e.path = this[ft].replace(/\0.*/, "");
51789
51753
  break;
51790
51754
  }
51791
51755
  case "NextFileHasLongLinkpath": {
51792
51756
  let e = this[V] || /* @__PURE__ */ Object.create(null);
51793
- this[V] = e, e.linkpath = this[dt].replace(/\0.*/, "");
51757
+ this[V] = e, e.linkpath = this[ft].replace(/\0.*/, "");
51794
51758
  break;
51795
51759
  }
51796
51760
  default:
@@ -51798,95 +51762,86 @@ var rt = class extends import_events2.EventEmitter {
51798
51762
  }
51799
51763
  }
51800
51764
  abort(t) {
51801
- this[$] || (this[$] = true, this.emit("abort", t), this.warn("TAR_ABORT", t, { recoverable: false }));
51802
- }
51803
- [Xs](t) {
51804
- this[$i] += t.length;
51805
- let e = this[$i] / this[le];
51806
- return e > this.maxDecompressionRatio ? (this.abort(new Error(`max decompression ratio exceeded: ${e.toFixed(2)} > ${this.maxDecompressionRatio}`)), false) : true;
51765
+ this[ut] = true, this.emit("abort", t), this.warn("TAR_ABORT", t, { recoverable: false });
51807
51766
  }
51808
51767
  write(t, e, i) {
51809
- if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[$]) return i?.(), false;
51768
+ if (typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8")), this[ut]) return i?.(), false;
51810
51769
  if ((this[y] === void 0 || this.brotli === void 0 && this[y] === false) && t) {
51811
- if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < An) return this[p] = t, i?.(), true;
51812
- for (let a = 0; this[y] === void 0 && a < Xi.length; a++) t[a] !== Xi[a] && (this[y] = false);
51770
+ if (this[p] && (t = Buffer.concat([this[p], t]), this[p] = void 0), t.length < xn) return this[p] = t, i?.(), true;
51771
+ for (let h = 0; this[y] === void 0 && h < Vi.length; h++) t[h] !== Vi[h] && (this[y] = false);
51813
51772
  let o = false;
51814
51773
  if (this[y] === false && this.zstd !== false) {
51815
51774
  o = true;
51816
- for (let a = 0; a < qi.length; a++) if (t[a] !== qi[a]) {
51775
+ for (let h = 0; h < $i.length; h++) if (t[h] !== $i[h]) {
51817
51776
  o = false;
51818
51777
  break;
51819
51778
  }
51820
51779
  }
51821
- let h = this.brotli === void 0 && !o;
51822
- if (this[y] === false && h) if (t.length < 512) if (this[mt]) this.brotli = true;
51780
+ let a = this.brotli === void 0 && !o;
51781
+ if (this[y] === false && a) if (t.length < 512) if (this[dt]) this.brotli = true;
51823
51782
  else return this[p] = t, i?.(), true;
51824
51783
  else try {
51825
- new F(t.subarray(0, 512)), this.brotli = false;
51784
+ new C(t.subarray(0, 512)), this.brotli = false;
51826
51785
  } catch {
51827
51786
  this.brotli = true;
51828
51787
  }
51829
51788
  if (this[y] === void 0 || this[y] === false && (this.brotli || o)) {
51830
- let a = this[mt];
51831
- this[mt] = false, this[y] = this[y] === void 0 ? new Ue({}) : o ? new Ke({}) : new Ge({}), this[y].on("data", (c) => {
51832
- this[Xs](c) && this[Xe](c);
51833
- }), this[y].on("error", (c) => {
51834
- this[$] || this.abort(c);
51835
- }), this[y].on("end", () => {
51836
- this[mt] = true, this[Xe]();
51837
- }), this[Yt] = true, this[le] += t.length;
51838
- let l = !!this[y][a ? "end" : "write"](t);
51789
+ let h = this[dt];
51790
+ this[dt] = false, this[y] = this[y] === void 0 ? new ze({}) : o ? new Ye({}) : new We({}), this[y].on("data", (c) => this[$e](c)), this[y].on("error", (c) => this.abort(c)), this[y].on("end", () => {
51791
+ this[dt] = true, this[$e]();
51792
+ }), this[Yt] = true;
51793
+ let l = !!this[y][h ? "end" : "write"](t);
51839
51794
  return this[Yt] = false, i?.(), l;
51840
51795
  }
51841
51796
  }
51842
- this[Yt] = true, this[y] ? (this[le] += t.length, this[y].write(t)) : this[Xe](t), this[Yt] = false;
51843
- let n = this[st].length > 0 ? false : this[it] ? this[it].flowing : true;
51844
- return !n && this[st].length === 0 && this[it]?.once("drain", () => this.emit("drain")), i?.(), n;
51797
+ this[Yt] = true, this[y] ? this[y].write(t) : this[$e](t), this[Yt] = false;
51798
+ let n = this[it].length > 0 ? false : this[et] ? this[et].flowing : true;
51799
+ return !n && this[it].length === 0 && this[et]?.once("drain", () => this.emit("drain")), i?.(), n;
51845
51800
  }
51846
- [Vi](t) {
51847
- t && !this[$] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
51801
+ [Ki](t) {
51802
+ t && !this[ut] && (this[p] = this[p] ? Buffer.concat([this[p], t]) : t);
51848
51803
  }
51849
- [Qe]() {
51850
- if (this[mt] && !this[Yi] && !this[$] && !this[ae]) {
51851
- this[Yi] = true;
51852
- let t = this[Nt];
51853
- if (t?.blockRemain) {
51804
+ [qe]() {
51805
+ if (this[dt] && !this[Zi] && !this[ut] && !this[ae]) {
51806
+ this[Zi] = true;
51807
+ let t = this[Dt];
51808
+ if (t && t.blockRemain) {
51854
51809
  let e = this[p] ? this[p].length : 0;
51855
51810
  this.warn("TAR_BAD_ARCHIVE", `Truncated input (needed ${t.blockRemain} more bytes, only ${e} available)`, { entry: t }), this[p] && t.write(this[p]), t.end();
51856
51811
  }
51857
- this[At](Je);
51812
+ this[At](Qe);
51858
51813
  }
51859
51814
  }
51860
- [Xe](t) {
51861
- if (this[ae] && t) this[Vi](t);
51862
- else if (!t && !this[p]) this[Qe]();
51815
+ [$e](t) {
51816
+ if (this[ae] && t) this[Ki](t);
51817
+ else if (!t && !this[p]) this[qe]();
51863
51818
  else if (t) {
51864
51819
  if (this[ae] = true, this[p]) {
51865
- this[Vi](t);
51820
+ this[Ki](t);
51866
51821
  let e = this[p];
51867
- this[p] = void 0, this[qe](e);
51868
- } else this[qe](t);
51869
- for (; this[p] && this[p]?.length >= 512 && !this[$] && !this[ti]; ) {
51822
+ this[p] = void 0, this[Xe](e);
51823
+ } else this[Xe](t);
51824
+ for (; this[p] && this[p]?.length >= 512 && !this[ut] && !this[je]; ) {
51870
51825
  let e = this[p];
51871
- this[p] = void 0, this[qe](e);
51826
+ this[p] = void 0, this[Xe](e);
51872
51827
  }
51873
51828
  this[ae] = false;
51874
51829
  }
51875
- (!this[p] || this[mt]) && this[Qe]();
51830
+ (!this[p] || this[dt]) && this[qe]();
51876
51831
  }
51877
- [qe](t) {
51832
+ [Xe](t) {
51878
51833
  let e = 0, i = t.length;
51879
- for (; e + 512 <= i && !this[$] && !this[ti]; ) switch (this[B]) {
51834
+ for (; e + 512 <= i && !this[ut] && !this[je]; ) switch (this[B]) {
51880
51835
  case "begin":
51881
51836
  case "header":
51882
- this[Vs](t, e), e += 512;
51837
+ this[Ys](t, e), e += 512;
51883
51838
  break;
51884
51839
  case "ignore":
51885
51840
  case "body":
51886
- e += this[Ki](t, e);
51841
+ e += this[Yi](t, e);
51887
51842
  break;
51888
51843
  case "meta":
51889
- e += this[Ks](t, e);
51844
+ e += this[Zs](t, e);
51890
51845
  break;
51891
51846
  default:
51892
51847
  throw new Error("invalid state: " + this[B]);
@@ -51894,46 +51849,46 @@ var rt = class extends import_events2.EventEmitter {
51894
51849
  e < i && (this[p] = this[p] ? Buffer.concat([t.subarray(e), this[p]]) : t.subarray(e));
51895
51850
  }
51896
51851
  end(t, e, i) {
51897
- return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[$] || (this[y] ? (t && (this[le] += t.length, this[y].write(t)), this[y].end()) : (this[mt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[Qe]())), this;
51852
+ return typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e)), i && this.once("finish", i), this[ut] || (this[y] ? (t && this[y].write(t), this[y].end()) : (this[dt] = true, (this.brotli === void 0 || this.zstd === void 0) && (t = t || Buffer.alloc(0)), t && this.write(t), this[qe]())), this;
51898
51853
  }
51899
51854
  };
51900
- var ut = (s3) => {
51855
+ var mt = (s3) => {
51901
51856
  let t = s3.length - 1, e = -1;
51902
51857
  for (; t > -1 && s3.charAt(t) === "/"; ) e = t, t--;
51903
51858
  return e === -1 ? s3 : s3.slice(0, e);
51904
51859
  };
51905
- var vn = (s3) => {
51860
+ var An = (s3) => {
51906
51861
  let t = s3.onReadEntry;
51907
51862
  s3.onReadEntry = t ? (e) => {
51908
51863
  t(e), e.resume();
51909
51864
  } : (e) => e.resume();
51910
51865
  };
51911
- var Qi = (s3, t) => {
51912
- let e = new Map(t.map((n) => [ut(n), true])), i = s3.filter, r = (n, o = "") => {
51913
- let h = o || (0, import_path.parse)(n).root || ".", a;
51914
- if (n === h) a = false;
51866
+ var Xi = (s3, t) => {
51867
+ let e = new Map(t.map((n) => [mt(n), true])), i = s3.filter, r = (n, o = "") => {
51868
+ let a = o || (0, import_path.parse)(n).root || ".", h;
51869
+ if (n === a) h = false;
51915
51870
  else {
51916
51871
  let l = e.get(n);
51917
- a = l !== void 0 ? l : r((0, import_path.dirname)(n), h);
51872
+ h = l !== void 0 ? l : r((0, import_path.dirname)(n), a);
51918
51873
  }
51919
- return e.set(n, a), a;
51874
+ return e.set(n, h), h;
51920
51875
  };
51921
- s3.filter = i ? (n, o) => i(n, o) && r(ut(n)) : (n) => r(ut(n));
51876
+ s3.filter = i ? (n, o) => i(n, o) && r(mt(n)) : (n) => r(mt(n));
51922
51877
  };
51923
- var Mn = (s3) => {
51924
- let t = new rt(s3), e = s3.file, i;
51878
+ var In = (s3) => {
51879
+ let t = new st(s3), e = s3.file, i;
51925
51880
  try {
51926
51881
  i = import_node_fs.default.openSync(e, "r");
51927
51882
  let r = import_node_fs.default.fstatSync(i), n = s3.maxReadSize || 16 * 1024 * 1024;
51928
51883
  if (r.size < n) {
51929
- let o = Buffer.allocUnsafe(r.size), h = import_node_fs.default.readSync(i, o, 0, r.size, 0);
51930
- t.end(h === o.byteLength ? o : o.subarray(0, h));
51884
+ let o = Buffer.allocUnsafe(r.size), a = import_node_fs.default.readSync(i, o, 0, r.size, 0);
51885
+ t.end(a === o.byteLength ? o : o.subarray(0, a));
51931
51886
  } else {
51932
- let o = 0, h = Buffer.allocUnsafe(n);
51887
+ let o = 0, a = Buffer.allocUnsafe(n);
51933
51888
  for (; o < r.size; ) {
51934
- let a = import_node_fs.default.readSync(i, h, 0, n, o);
51935
- if (a === 0) break;
51936
- o += a, t.write(h.subarray(0, a));
51889
+ let h = import_node_fs.default.readSync(i, a, 0, n, o);
51890
+ if (h === 0) break;
51891
+ o += h, t.write(a.subarray(0, h));
51937
51892
  }
51938
51893
  t.end();
51939
51894
  }
@@ -51944,58 +51899,58 @@ var Mn = (s3) => {
51944
51899
  }
51945
51900
  }
51946
51901
  };
51947
- var Bn = (s3, t) => {
51948
- let e = new rt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
51949
- return new Promise((o, h) => {
51950
- e.on("error", h), e.on("end", o), import_node_fs.default.stat(r, (a, l) => {
51951
- if (a) h(a);
51902
+ var Fn = (s3, t) => {
51903
+ let e = new st(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
51904
+ return new Promise((o, a) => {
51905
+ e.on("error", a), e.on("end", o), import_node_fs.default.stat(r, (h, l) => {
51906
+ if (h) a(h);
51952
51907
  else {
51953
51908
  let c = new _t(r, { readSize: i, size: l.size });
51954
- c.on("error", h), c.pipe(e);
51909
+ c.on("error", a), c.pipe(e);
51955
51910
  }
51956
51911
  });
51957
51912
  });
51958
51913
  };
51959
- var Ct = K(Mn, Bn, (s3) => new rt(s3), (s3) => new rt(s3), (s3, t) => {
51960
- t?.length && Qi(s3, t), s3.noResume || vn(s3);
51961
- });
51962
- var Ji = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
51963
- var { isAbsolute: zn, parse: qs } = import_node_path4.win32;
51964
- var ce = (s3) => {
51965
- let t = "", e = qs(s3);
51966
- for (; zn(s3) || e.root; ) {
51914
+ var Ft = K(In, Fn, (s3) => new st(s3), (s3) => new st(s3), (s3, t) => {
51915
+ t?.length && Xi(s3, t), s3.noResume || An(s3);
51916
+ });
51917
+ var qi = (s3, t, e) => (s3 &= 4095, e && (s3 = (s3 | 384) & -19), t && (s3 & 256 && (s3 |= 64), s3 & 32 && (s3 |= 8), s3 & 4 && (s3 |= 1)), s3);
51918
+ var { isAbsolute: kn, parse: Vs } = import_node_path4.win32;
51919
+ var le = (s3) => {
51920
+ let t = "", e = Vs(s3);
51921
+ for (; kn(s3) || e.root; ) {
51967
51922
  let i = s3.charAt(0) === "/" && s3.slice(0, 4) !== "//?/" ? "/" : e.root;
51968
- s3 = s3.slice(i.length), t += i, e = qs(s3);
51923
+ s3 = s3.slice(i.length), t += i, e = Vs(s3);
51969
51924
  }
51970
51925
  return [t, s3];
51971
51926
  };
51972
- var ei = ["|", "<", ">", "?", ":"];
51973
- var ji = ei.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
51974
- var Un = new Map(ei.map((s3, t) => [s3, ji[t]]));
51975
- var Hn = new Map(ji.map((s3, t) => [s3, ei[t]]));
51976
- var ts = (s3) => ei.reduce((t, e) => t.split(e).join(Un.get(e)), s3);
51977
- var Qs = (s3) => ji.reduce((t, e) => t.split(e).join(Hn.get(e)), s3);
51978
- var rr = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), ut(t) + "/" + s3) : f(s3);
51979
- var Wn = 16 * 1024 * 1024;
51980
- var tr = /* @__PURE__ */ Symbol("process");
51981
- var er = /* @__PURE__ */ Symbol("file");
51982
- var ir = /* @__PURE__ */ Symbol("directory");
51983
- var is = /* @__PURE__ */ Symbol("symlink");
51984
- var sr = /* @__PURE__ */ Symbol("hardlink");
51985
- var fe = /* @__PURE__ */ Symbol("header");
51986
- var ii = /* @__PURE__ */ Symbol("read");
51987
- var ss = /* @__PURE__ */ Symbol("lstat");
51988
- var si = /* @__PURE__ */ Symbol("onlstat");
51989
- var rs = /* @__PURE__ */ Symbol("onread");
51990
- var ns = /* @__PURE__ */ Symbol("onreadlink");
51991
- var os = /* @__PURE__ */ Symbol("openfile");
51992
- var hs = /* @__PURE__ */ Symbol("onopenfile");
51927
+ var ti = ["|", "<", ">", "?", ":"];
51928
+ var Qi = ti.map((s3) => String.fromCodePoint(61440 + Number(s3.codePointAt(0))));
51929
+ var vn = new Map(ti.map((s3, t) => [s3, Qi[t]]));
51930
+ var Mn = new Map(Qi.map((s3, t) => [s3, ti[t]]));
51931
+ var Ji = (s3) => ti.reduce((t, e) => t.split(e).join(vn.get(e)), s3);
51932
+ var $s = (s3) => Qi.reduce((t, e) => t.split(e).join(Mn.get(e)), s3);
51933
+ var er = (s3, t) => t ? (s3 = f(s3).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s3) : f(s3);
51934
+ var Bn = 16 * 1024 * 1024;
51935
+ var Qs = /* @__PURE__ */ Symbol("process");
51936
+ var Js = /* @__PURE__ */ Symbol("file");
51937
+ var js = /* @__PURE__ */ Symbol("directory");
51938
+ var ts = /* @__PURE__ */ Symbol("symlink");
51939
+ var tr = /* @__PURE__ */ Symbol("hardlink");
51940
+ var ce = /* @__PURE__ */ Symbol("header");
51941
+ var ei = /* @__PURE__ */ Symbol("read");
51942
+ var es = /* @__PURE__ */ Symbol("lstat");
51943
+ var ii = /* @__PURE__ */ Symbol("onlstat");
51944
+ var is = /* @__PURE__ */ Symbol("onread");
51945
+ var ss = /* @__PURE__ */ Symbol("onreadlink");
51946
+ var rs = /* @__PURE__ */ Symbol("openfile");
51947
+ var ns = /* @__PURE__ */ Symbol("onopenfile");
51993
51948
  var pt = /* @__PURE__ */ Symbol("close");
51994
- var ri = /* @__PURE__ */ Symbol("mode");
51995
- var as = /* @__PURE__ */ Symbol("awaitDrain");
51996
- var es = /* @__PURE__ */ Symbol("ondrain");
51997
- var q = /* @__PURE__ */ Symbol("prefix");
51998
- var de = class extends A {
51949
+ var si = /* @__PURE__ */ Symbol("mode");
51950
+ var os = /* @__PURE__ */ Symbol("awaitDrain");
51951
+ var ji = /* @__PURE__ */ Symbol("ondrain");
51952
+ var X = /* @__PURE__ */ Symbol("prefix");
51953
+ var fe = class extends A {
51999
51954
  path;
52000
51955
  portable;
52001
51956
  myuid = process.getuid && process.getuid() || 0;
@@ -52028,109 +51983,109 @@ var de = class extends A {
52028
51983
  #t = false;
52029
51984
  constructor(t, e = {}) {
52030
51985
  let i = se(e);
52031
- super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Wn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
51986
+ super(), this.path = f(t), this.portable = !!i.portable, this.maxReadSize = i.maxReadSize || Bn, this.linkCache = i.linkCache || /* @__PURE__ */ new Map(), this.statCache = i.statCache || /* @__PURE__ */ new Map(), this.preservePaths = !!i.preservePaths, this.cwd = f(i.cwd || process.cwd()), this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.mtime = i.mtime, this.prefix = i.prefix ? f(i.prefix) : void 0, this.onWriteEntry = i.onWriteEntry, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
52032
51987
  let r = false;
52033
51988
  if (!this.preservePaths) {
52034
- let [o, h] = ce(this.path);
52035
- o && typeof h == "string" && (this.path = h, r = o);
51989
+ let [o, a] = le(this.path);
51990
+ o && typeof a == "string" && (this.path = a, r = o);
52036
51991
  }
52037
- this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = Qs(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || import_path2.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
51992
+ this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || import_path2.default.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, { entry: this, path: r + this.path });
52038
51993
  let n = this.statCache.get(this.absolute);
52039
- n ? this[si](n) : this[ss]();
51994
+ n ? this[ii](n) : this[es]();
52040
51995
  }
52041
51996
  warn(t, e, i = {}) {
52042
- return Dt(this, t, e, i);
51997
+ return Nt(this, t, e, i);
52043
51998
  }
52044
51999
  emit(t, ...e) {
52045
52000
  return t === "error" && (this.#t = true), super.emit(t, ...e);
52046
52001
  }
52047
- [ss]() {
52002
+ [es]() {
52048
52003
  import_fs3.default.lstat(this.absolute, (t, e) => {
52049
52004
  if (t) return this.emit("error", t);
52050
- this[si](e);
52005
+ this[ii](e);
52051
52006
  });
52052
52007
  }
52053
- [si](t) {
52054
- this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Gn(t), this.emit("stat", t), this[tr]();
52008
+ [ii](t) {
52009
+ this.statCache.set(this.absolute, t), this.stat = t, t.isFile() || (t.size = 0), this.type = Pn(t), this.emit("stat", t), this[Qs]();
52055
52010
  }
52056
- [tr]() {
52011
+ [Qs]() {
52057
52012
  switch (this.type) {
52058
52013
  case "File":
52059
- return this[er]();
52014
+ return this[Js]();
52060
52015
  case "Directory":
52061
- return this[ir]();
52016
+ return this[js]();
52062
52017
  case "SymbolicLink":
52063
- return this[is]();
52018
+ return this[ts]();
52064
52019
  default:
52065
52020
  return this.end();
52066
52021
  }
52067
52022
  }
52068
- [ri](t) {
52069
- return Ji(t, this.type === "Directory", this.portable);
52023
+ [si](t) {
52024
+ return qi(t, this.type === "Directory", this.portable);
52070
52025
  }
52071
- [q](t) {
52072
- return rr(t, this.prefix);
52026
+ [X](t) {
52027
+ return er(t, this.prefix);
52073
52028
  }
52074
- [fe]() {
52029
+ [ce]() {
52075
52030
  if (!this.stat) throw new Error("cannot write header before stat");
52076
- this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new F({ path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, mode: this[ri](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ft({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
52031
+ this.type === "Directory" && this.portable && (this.noMtime = true), this.onWriteEntry?.(this), this.header = new C({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this[si](this.stat.mode), uid: this.portable ? void 0 : this.stat.uid, gid: this.portable ? void 0 : this.stat.gid, size: this.stat.size, mtime: this.noMtime ? void 0 : this.mtime || this.stat.mtime, type: this.type === "Unsupported" ? void 0 : this.type, uname: this.portable ? void 0 : this.stat.uid === this.myuid ? this.myuser : "", atime: this.portable ? void 0 : this.stat.atime, ctime: this.portable ? void 0 : this.stat.ctime }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.header.atime, ctime: this.portable ? void 0 : this.header.ctime, gid: this.portable ? void 0 : this.header.gid, mtime: this.noMtime ? void 0 : this.mtime || this.header.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.header.size, uid: this.portable ? void 0 : this.header.uid, uname: this.portable ? void 0 : this.header.uname, dev: this.portable ? void 0 : this.stat.dev, ino: this.portable ? void 0 : this.stat.ino, nlink: this.portable ? void 0 : this.stat.nlink }).encode());
52077
52032
  let t = this.header?.block;
52078
52033
  if (!t) throw new Error("failed to encode header");
52079
52034
  super.write(t);
52080
52035
  }
52081
- [ir]() {
52036
+ [js]() {
52082
52037
  if (!this.stat) throw new Error("cannot create directory entry without stat");
52083
- this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[fe](), this.end();
52038
+ this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce](), this.end();
52084
52039
  }
52085
- [is]() {
52040
+ [ts]() {
52086
52041
  import_fs3.default.readlink(this.absolute, (t, e) => {
52087
52042
  if (t) return this.emit("error", t);
52088
- this[ns](e);
52043
+ this[ss](e);
52089
52044
  });
52090
52045
  }
52091
- [ns](t) {
52092
- this.linkpath = f(t), this[fe](), this.end();
52046
+ [ss](t) {
52047
+ this.linkpath = f(t), this[ce](), this.end();
52093
52048
  }
52094
- [sr](t) {
52049
+ [tr](t) {
52095
52050
  if (!this.stat) throw new Error("cannot create link entry without stat");
52096
- this.type = "Link", this.linkpath = f(import_path2.default.relative(this.cwd, t)), this.stat.size = 0, this[fe](), this.end();
52051
+ this.type = "Link", this.linkpath = f(import_path2.default.relative(this.cwd, t)), this.stat.size = 0, this[ce](), this.end();
52097
52052
  }
52098
- [er]() {
52053
+ [Js]() {
52099
52054
  if (!this.stat) throw new Error("cannot create file entry without stat");
52100
52055
  if (this.stat.nlink > 1) {
52101
52056
  let t = `${this.stat.dev}:${this.stat.ino}`, e = this.linkCache.get(t);
52102
- if (e?.indexOf(this.cwd) === 0) return this[sr](e);
52057
+ if (e?.indexOf(this.cwd) === 0) return this[tr](e);
52103
52058
  this.linkCache.set(t, this.absolute);
52104
52059
  }
52105
- if (this[fe](), this.stat.size === 0) return this.end();
52106
- this[os]();
52060
+ if (this[ce](), this.stat.size === 0) return this.end();
52061
+ this[rs]();
52107
52062
  }
52108
- [os]() {
52063
+ [rs]() {
52109
52064
  import_fs3.default.open(this.absolute, "r", (t, e) => {
52110
52065
  if (t) return this.emit("error", t);
52111
- this[hs](e);
52066
+ this[ns](e);
52112
52067
  });
52113
52068
  }
52114
- [hs](t) {
52069
+ [ns](t) {
52115
52070
  if (this.fd = t, this.#t) return this[pt]();
52116
52071
  if (!this.stat) throw new Error("should stat before calling onopenfile");
52117
52072
  this.blockLen = 512 * Math.ceil(this.stat.size / 512), this.blockRemain = this.blockLen;
52118
52073
  let e = Math.min(this.blockLen, this.maxReadSize);
52119
- this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ii]();
52074
+ this.buf = Buffer.allocUnsafe(e), this.offset = 0, this.pos = 0, this.remain = this.stat.size, this.length = this.buf.length, this[ei]();
52120
52075
  }
52121
- [ii]() {
52076
+ [ei]() {
52122
52077
  let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
52123
52078
  if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
52124
- import_fs3.default.read(t, e, i, r, n, (o, h) => {
52079
+ import_fs3.default.read(t, e, i, r, n, (o, a) => {
52125
52080
  if (o) return this[pt](() => this.emit("error", o));
52126
- this[rs](h);
52081
+ this[is](a);
52127
52082
  });
52128
52083
  }
52129
52084
  [pt](t = () => {
52130
52085
  }) {
52131
52086
  this.fd !== void 0 && import_fs3.default.close(this.fd, t);
52132
52087
  }
52133
- [rs](t) {
52088
+ [is](t) {
52134
52089
  if (t <= 0 && this.remain > 0) {
52135
52090
  let r = Object.assign(new Error("encountered unexpected EOF"), { path: this.absolute, syscall: "read", code: "EOF" });
52136
52091
  return this[pt](() => this.emit("error", r));
@@ -52142,9 +52097,9 @@ var de = class extends A {
52142
52097
  if (!this.buf) throw new Error("should have created buffer prior to reading");
52143
52098
  if (t === this.remain) for (let r = t; r < this.length && t < this.blockRemain; r++) this.buf[r + this.offset] = 0, t++, this.remain++;
52144
52099
  let e = this.offset === 0 && t === this.buf.length ? this.buf : this.buf.subarray(this.offset, this.offset + t);
52145
- this.write(e) ? this[es]() : this[as](() => this[es]());
52100
+ this.write(e) ? this[ji]() : this[os](() => this[ji]());
52146
52101
  }
52147
- [as](t) {
52102
+ [os](t) {
52148
52103
  this.once("drain", t);
52149
52104
  }
52150
52105
  write(t, e, i) {
@@ -52154,30 +52109,30 @@ var de = class extends A {
52154
52109
  }
52155
52110
  return this.remain -= t.length, this.blockRemain -= t.length, this.pos += t.length, this.offset += t.length, super.write(t, null, i);
52156
52111
  }
52157
- [es]() {
52112
+ [ji]() {
52158
52113
  if (!this.remain) return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), this[pt]((t) => t ? this.emit("error", t) : this.end());
52159
52114
  if (!this.buf) throw new Error("buffer lost somehow in ONDRAIN");
52160
- 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[ii]();
52115
+ 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[ei]();
52161
52116
  }
52162
52117
  };
52163
- var ni = class extends de {
52118
+ var ri = class extends fe {
52164
52119
  sync = true;
52165
- [ss]() {
52166
- this[si](import_fs3.default.lstatSync(this.absolute));
52120
+ [es]() {
52121
+ this[ii](import_fs3.default.lstatSync(this.absolute));
52167
52122
  }
52168
- [is]() {
52169
- this[ns](import_fs3.default.readlinkSync(this.absolute));
52123
+ [ts]() {
52124
+ this[ss](import_fs3.default.readlinkSync(this.absolute));
52170
52125
  }
52171
- [os]() {
52172
- this[hs](import_fs3.default.openSync(this.absolute, "r"));
52126
+ [rs]() {
52127
+ this[ns](import_fs3.default.openSync(this.absolute, "r"));
52173
52128
  }
52174
- [ii]() {
52129
+ [ei]() {
52175
52130
  let t = true;
52176
52131
  try {
52177
52132
  let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
52178
52133
  if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
52179
- let h = import_fs3.default.readSync(e, i, r, n, o);
52180
- this[rs](h), t = false;
52134
+ let a = import_fs3.default.readSync(e, i, r, n, o);
52135
+ this[is](a), t = false;
52181
52136
  } finally {
52182
52137
  if (t) try {
52183
52138
  this[pt](() => {
@@ -52186,7 +52141,7 @@ var ni = class extends de {
52186
52141
  }
52187
52142
  }
52188
52143
  }
52189
- [as](t) {
52144
+ [os](t) {
52190
52145
  t();
52191
52146
  }
52192
52147
  [pt](t = () => {
@@ -52194,7 +52149,7 @@ var ni = class extends de {
52194
52149
  this.fd !== void 0 && import_fs3.default.closeSync(this.fd), t();
52195
52150
  }
52196
52151
  };
52197
- var oi = class extends A {
52152
+ var ni = class extends A {
52198
52153
  blockLen = 0;
52199
52154
  blockRemain = 0;
52200
52155
  buf = 0;
@@ -52223,29 +52178,29 @@ var oi = class extends A {
52223
52178
  size;
52224
52179
  onWriteEntry;
52225
52180
  warn(t, e, i = {}) {
52226
- return Dt(this, t, e, i);
52181
+ return Nt(this, t, e, i);
52227
52182
  }
52228
52183
  constructor(t, e = {}) {
52229
52184
  let i = se(e);
52230
52185
  super(), this.preservePaths = !!i.preservePaths, this.portable = !!i.portable, this.strict = !!i.strict, this.noPax = !!i.noPax, this.noMtime = !!i.noMtime, this.onWriteEntry = i.onWriteEntry, this.readEntry = t;
52231
52186
  let { type: r } = t;
52232
52187
  if (r === "Unsupported") throw new Error("writing entry that should be ignored");
52233
- this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[ri](t.mode) : void 0, this.uid = this.portable ? void 0 : t.uid, this.gid = this.portable ? void 0 : t.gid, this.uname = this.portable ? void 0 : t.uname, this.gname = this.portable ? void 0 : t.gname, this.size = t.size, this.mtime = this.noMtime ? void 0 : i.mtime || t.mtime, this.atime = this.portable ? void 0 : t.atime, this.ctime = this.portable ? void 0 : t.ctime, this.linkpath = t.linkpath !== void 0 ? f(t.linkpath) : void 0, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
52188
+ this.type = r, this.type === "Directory" && this.portable && (this.noMtime = true), this.prefix = i.prefix, this.path = f(t.path), this.mode = t.mode !== void 0 ? this[si](t.mode) : void 0, this.uid = this.portable ? void 0 : t.uid, this.gid = this.portable ? void 0 : t.gid, this.uname = this.portable ? void 0 : t.uname, this.gname = this.portable ? void 0 : t.gname, this.size = t.size, this.mtime = this.noMtime ? void 0 : i.mtime || t.mtime, this.atime = this.portable ? void 0 : t.atime, this.ctime = this.portable ? void 0 : t.ctime, this.linkpath = t.linkpath !== void 0 ? f(t.linkpath) : void 0, typeof i.onwarn == "function" && this.on("warn", i.onwarn);
52234
52189
  let n = false;
52235
52190
  if (!this.preservePaths) {
52236
- let [h, a] = ce(this.path);
52237
- h && typeof a == "string" && (this.path = a, n = h);
52191
+ let [a, h] = le(this.path);
52192
+ a && typeof h == "string" && (this.path = h, n = a);
52238
52193
  }
52239
- this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new F({ path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ft({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[q](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[q](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
52194
+ this.remain = t.size, this.blockRemain = t.startBlockSize, this.onWriteEntry?.(this), this.header = new C({ path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, mode: this.mode, uid: this.portable ? void 0 : this.uid, gid: this.portable ? void 0 : this.gid, size: this.size, mtime: this.noMtime ? void 0 : this.mtime, type: this.type, uname: this.portable ? void 0 : this.uname, atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime }), n && this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute path`, { entry: this, path: n + this.path }), this.header.encode() && !this.noPax && super.write(new ct({ atime: this.portable ? void 0 : this.atime, ctime: this.portable ? void 0 : this.ctime, gid: this.portable ? void 0 : this.gid, mtime: this.noMtime ? void 0 : this.mtime, path: this[X](this.path), linkpath: this.type === "Link" && this.linkpath !== void 0 ? this[X](this.linkpath) : this.linkpath, size: this.size, uid: this.portable ? void 0 : this.uid, uname: this.portable ? void 0 : this.uname, dev: this.portable ? void 0 : this.readEntry.dev, ino: this.portable ? void 0 : this.readEntry.ino, nlink: this.portable ? void 0 : this.readEntry.nlink }).encode());
52240
52195
  let o = this.header?.block;
52241
52196
  if (!o) throw new Error("failed to encode header");
52242
52197
  super.write(o), t.pipe(this);
52243
52198
  }
52244
- [q](t) {
52245
- return rr(t, this.prefix);
52199
+ [X](t) {
52200
+ return er(t, this.prefix);
52246
52201
  }
52247
- [ri](t) {
52248
- return Ji(t, this.type === "Directory", this.portable);
52202
+ [si](t) {
52203
+ return qi(t, this.type === "Directory", this.portable);
52249
52204
  }
52250
52205
  write(t, e, i) {
52251
52206
  typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, typeof e == "string" ? e : "utf8"));
@@ -52257,8 +52212,8 @@ var oi = class extends A {
52257
52212
  return this.blockRemain && super.write(Buffer.alloc(this.blockRemain)), typeof t == "function" && (i = t, e = void 0, t = void 0), typeof e == "function" && (i = e, e = void 0), typeof t == "string" && (t = Buffer.from(t, e ?? "utf8")), i && this.once("finish", i), t ? super.end(t, i) : super.end(i), this;
52258
52213
  }
52259
52214
  };
52260
- var Gn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
52261
- var hi = class s2 {
52215
+ var Pn = (s3) => s3.isFile() ? "File" : s3.isDirectory() ? "Directory" : s3.isSymbolicLink() ? "SymbolicLink" : "Unsupported";
52216
+ var oi = class s2 {
52262
52217
  tail;
52263
52218
  head;
52264
52219
  length = 0;
@@ -52289,11 +52244,11 @@ var hi = class s2 {
52289
52244
  t.list = this, t.prev = e, e && (e.next = t), this.tail = t, this.head || (this.head = t), this.length++;
52290
52245
  }
52291
52246
  push(...t) {
52292
- for (let e = 0, i = t.length; e < i; e++) Yn(this, t[e]);
52247
+ for (let e = 0, i = t.length; e < i; e++) Un(this, t[e]);
52293
52248
  return this.length;
52294
52249
  }
52295
52250
  unshift(...t) {
52296
- for (var e = 0, i = t.length; e < i; e++) Kn(this, t[e]);
52251
+ for (var e = 0, i = t.length; e < i; e++) Hn(this, t[e]);
52297
52252
  return this.length;
52298
52253
  }
52299
52254
  pop() {
@@ -52389,7 +52344,7 @@ var hi = class s2 {
52389
52344
  let n = [];
52390
52345
  for (let o = 0; r && o < e; o++) n.push(r.value), r = this.removeNode(r);
52391
52346
  r ? r !== this.tail && (r = r.prev) : r = this.tail;
52392
- for (let o of i) r = Zn(this, r, o);
52347
+ for (let o of i) r = zn(this, r, o);
52393
52348
  return n;
52394
52349
  }
52395
52350
  reverse() {
@@ -52401,17 +52356,17 @@ var hi = class s2 {
52401
52356
  return this.head = e, this.tail = t, this;
52402
52357
  }
52403
52358
  };
52404
- function Zn(s3, t, e) {
52405
- let i = t, r = t ? t.next : s3.head, n = new me(e, i, r, s3);
52359
+ function zn(s3, t, e) {
52360
+ let i = t, r = t ? t.next : s3.head, n = new de(e, i, r, s3);
52406
52361
  return n.next === void 0 && (s3.tail = n), n.prev === void 0 && (s3.head = n), s3.length++, n;
52407
52362
  }
52408
- function Yn(s3, t) {
52409
- s3.tail = new me(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
52363
+ function Un(s3, t) {
52364
+ s3.tail = new de(t, s3.tail, void 0, s3), s3.head || (s3.head = s3.tail), s3.length++;
52410
52365
  }
52411
- function Kn(s3, t) {
52412
- s3.head = new me(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
52366
+ function Hn(s3, t) {
52367
+ s3.head = new de(t, void 0, s3.head, s3), s3.tail || (s3.tail = s3.head), s3.length++;
52413
52368
  }
52414
- var me = class {
52369
+ var de = class {
52415
52370
  list;
52416
52371
  next;
52417
52372
  prev;
@@ -52420,7 +52375,7 @@ var me = class {
52420
52375
  this.list = r, this.value = t, e ? (e.next = this, this.prev = e) : this.prev = void 0, i ? (i.prev = this, this.next = i) : this.next = void 0;
52421
52376
  }
52422
52377
  };
52423
- var pi = class {
52378
+ var mi = class {
52424
52379
  path;
52425
52380
  absolute;
52426
52381
  entry;
@@ -52434,28 +52389,28 @@ var pi = class {
52434
52389
  this.path = t || "./", this.absolute = e;
52435
52390
  }
52436
52391
  };
52437
- var nr = Buffer.alloc(1024);
52438
- var li = /* @__PURE__ */ Symbol("onStat");
52392
+ var ir = Buffer.alloc(1024);
52393
+ var ai = /* @__PURE__ */ Symbol("onStat");
52439
52394
  var ue = /* @__PURE__ */ Symbol("ended");
52440
52395
  var W = /* @__PURE__ */ Symbol("queue");
52441
- var pe = /* @__PURE__ */ Symbol("pendingLinks");
52396
+ var me = /* @__PURE__ */ Symbol("pendingLinks");
52442
52397
  var Et = /* @__PURE__ */ Symbol("current");
52443
- var Ft = /* @__PURE__ */ Symbol("process");
52444
- var Ee = /* @__PURE__ */ Symbol("processing");
52445
- var ai = /* @__PURE__ */ Symbol("processJob");
52398
+ var Ct = /* @__PURE__ */ Symbol("process");
52399
+ var pe = /* @__PURE__ */ Symbol("processing");
52400
+ var hi = /* @__PURE__ */ Symbol("processJob");
52446
52401
  var G = /* @__PURE__ */ Symbol("jobs");
52447
- var ls = /* @__PURE__ */ Symbol("jobDone");
52448
- var ci = /* @__PURE__ */ Symbol("addFSEntry");
52449
- var or = /* @__PURE__ */ Symbol("addTarEntry");
52450
- var ds = /* @__PURE__ */ Symbol("stat");
52451
- var ms = /* @__PURE__ */ Symbol("readdir");
52452
- var fi = /* @__PURE__ */ Symbol("onreaddir");
52453
- var di = /* @__PURE__ */ Symbol("pipe");
52454
- var hr = /* @__PURE__ */ Symbol("entry");
52455
- var cs = /* @__PURE__ */ Symbol("entryOpt");
52456
- var mi = /* @__PURE__ */ Symbol("writeEntryClass");
52457
- var lr = /* @__PURE__ */ Symbol("write");
52458
- var fs = /* @__PURE__ */ Symbol("ondrain");
52402
+ var hs = /* @__PURE__ */ Symbol("jobDone");
52403
+ var li = /* @__PURE__ */ Symbol("addFSEntry");
52404
+ var sr = /* @__PURE__ */ Symbol("addTarEntry");
52405
+ var cs = /* @__PURE__ */ Symbol("stat");
52406
+ var fs = /* @__PURE__ */ Symbol("readdir");
52407
+ var ci = /* @__PURE__ */ Symbol("onreaddir");
52408
+ var fi = /* @__PURE__ */ Symbol("pipe");
52409
+ var rr = /* @__PURE__ */ Symbol("entry");
52410
+ var as = /* @__PURE__ */ Symbol("entryOpt");
52411
+ var di = /* @__PURE__ */ Symbol("writeEntryClass");
52412
+ var or = /* @__PURE__ */ Symbol("write");
52413
+ var ls = /* @__PURE__ */ Symbol("ondrain");
52459
52414
  var wt = class extends A {
52460
52415
  sync = false;
52461
52416
  opt;
@@ -52477,139 +52432,139 @@ var wt = class extends A {
52477
52432
  mtime;
52478
52433
  filter;
52479
52434
  jobs;
52480
- [mi];
52435
+ [di];
52481
52436
  onWriteEntry;
52482
52437
  [W];
52483
- [pe] = /* @__PURE__ */ new Map();
52438
+ [me] = /* @__PURE__ */ new Map();
52484
52439
  [G] = 0;
52485
- [Ee] = false;
52440
+ [pe] = false;
52486
52441
  [ue] = false;
52487
52442
  constructor(t = {}) {
52488
- if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[mi] = de, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
52443
+ if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = fe, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
52489
52444
  if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
52490
- if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new ze(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new We(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ye(t.zstd)), !this.zip) throw new Error("impossible");
52445
+ if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = true), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
52491
52446
  let e = this.zip;
52492
- e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[fs]()), this.on("resume", () => e.resume());
52493
- } else this.on("drain", this[fs]);
52494
- this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new hi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[Ee] = false, this[ue] = false;
52447
+ e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[ls]()), this.on("resume", () => e.resume());
52448
+ } else this.on("drain", this[ls]);
52449
+ this.noDirRecurse = !!t.noDirRecurse, this.follow = !!t.follow, this.noMtime = !!t.noMtime, t.mtime && (this.mtime = t.mtime), this.filter = typeof t.filter == "function" ? t.filter : () => true, this[W] = new oi(), this[G] = 0, this.jobs = Number(t.jobs) || 4, this[pe] = false, this[ue] = false;
52495
52450
  }
52496
- [lr](t) {
52451
+ [or](t) {
52497
52452
  return super.write(t);
52498
52453
  }
52499
52454
  add(t) {
52500
52455
  return this.write(t), this;
52501
52456
  }
52502
52457
  end(t, e, i) {
52503
- return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[ue] = true, this[Ft](), i && i(), this;
52458
+ return typeof t == "function" && (i = t, t = void 0), typeof e == "function" && (i = e, e = void 0), t && this.add(t), this[ue] = true, this[Ct](), i && i(), this;
52504
52459
  }
52505
52460
  write(t) {
52506
52461
  if (this[ue]) throw new Error("write after end");
52507
- return typeof t == "string" ? this[ci](t) : this[or](t), this.flowing;
52462
+ return typeof t == "string" ? this[li](t) : this[sr](t), this.flowing;
52508
52463
  }
52509
- [or](t) {
52464
+ [sr](t) {
52510
52465
  let e = f(import_path3.default.resolve(this.cwd, t.path));
52511
52466
  if (!this.filter(t.path, t)) t.resume();
52512
52467
  else {
52513
- let i = new pi(t.path, e);
52514
- i.entry = new oi(t, this[cs](i)), i.entry.on("end", () => this[ls](i)), this[G] += 1, this[W].push(i);
52468
+ let i = new mi(t.path, e);
52469
+ i.entry = new ni(t, this[as](i)), i.entry.on("end", () => this[hs](i)), this[G] += 1, this[W].push(i);
52515
52470
  }
52516
- this[Ft]();
52471
+ this[Ct]();
52517
52472
  }
52518
- [ci](t) {
52473
+ [li](t) {
52519
52474
  let e = f(import_path3.default.resolve(this.cwd, t));
52520
- this[W].push(new pi(t, e)), this[Ft]();
52475
+ this[W].push(new mi(t, e)), this[Ct]();
52521
52476
  }
52522
- [ds](t) {
52477
+ [cs](t) {
52523
52478
  t.pending = true, this[G] += 1;
52524
52479
  let e = this.follow ? "stat" : "lstat";
52525
52480
  import_fs2.default[e](t.absolute, (i, r) => {
52526
- t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[li](t, r);
52481
+ t.pending = false, this[G] -= 1, i ? this.emit("error", i) : this[ai](t, r);
52527
52482
  });
52528
52483
  }
52529
- [li](t, e) {
52484
+ [ai](t, e) {
52530
52485
  if (this.statCache.set(t.absolute, e), t.stat = e, !this.filter(t.path, e)) t.ignore = true;
52531
- else if (e.isFile() && e.nlink > 1 && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync) if (t === this[Et]) this[ai](t);
52486
+ else if (e.isFile() && e.nlink > 1 && !this.linkCache.get(`${e.dev}:${e.ino}`) && !this.sync) if (t === this[Et]) this[hi](t);
52532
52487
  else {
52533
- let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
52534
- r ? r.push(t) : this[pe].set(i, [t]), t.pendingLink = true, t.pending = true;
52488
+ let i = `${e.dev}:${e.ino}`, r = this[me].get(i);
52489
+ r ? r.push(t) : this[me].set(i, [t]), t.pendingLink = true, t.pending = true;
52535
52490
  }
52536
- this[Ft]();
52491
+ this[Ct]();
52537
52492
  }
52538
- [ms](t) {
52493
+ [fs](t) {
52539
52494
  t.pending = true, this[G] += 1, import_fs2.default.readdir(t.absolute, (e, i) => {
52540
52495
  if (t.pending = false, this[G] -= 1, e) return this.emit("error", e);
52541
- this[fi](t, i);
52496
+ this[ci](t, i);
52542
52497
  });
52543
52498
  }
52544
- [fi](t, e) {
52545
- this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ft]();
52499
+ [ci](t, e) {
52500
+ this.readdirCache.set(t.absolute, e), t.readdir = e, this[Ct]();
52546
52501
  }
52547
- [Ft]() {
52548
- if (!this[Ee]) {
52549
- this[Ee] = true;
52550
- for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[ai](t.value), t.value.ignore) {
52502
+ [Ct]() {
52503
+ if (!this[pe]) {
52504
+ this[pe] = true;
52505
+ for (let t = this[W].head; t && this[G] < this.jobs; t = t.next) if (this[hi](t.value), t.value.ignore) {
52551
52506
  let e = t.next;
52552
52507
  this[W].removeNode(t), t.next = e;
52553
52508
  }
52554
- this[Ee] = false, this[ue] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(nr) : (super.write(nr), super.end()));
52509
+ this[pe] = false, this[ue] && this[W].length === 0 && this[G] === 0 && (this.zip ? this.zip.end(ir) : (super.write(ir), super.end()));
52555
52510
  }
52556
52511
  }
52557
52512
  get [Et]() {
52558
52513
  return this[W] && this[W].head && this[W].head.value;
52559
52514
  }
52560
- [ls](t) {
52515
+ [hs](t) {
52561
52516
  this[W].shift(), this[G] -= 1;
52562
52517
  let { stat: e } = t;
52563
52518
  if (e && e.isFile() && e.nlink > 1) {
52564
- let i = `${e.dev}:${e.ino}`, r = this[pe].get(i);
52519
+ let i = `${e.dev}:${e.ino}`, r = this[me].get(i);
52565
52520
  if (r) {
52566
- this[pe].delete(i);
52567
- for (let n of r) n.pending = false, this[ai](n);
52521
+ this[me].delete(i);
52522
+ for (let n of r) n.pending = false, this[hi](n);
52568
52523
  }
52569
52524
  }
52570
- this[Ft]();
52525
+ this[Ct]();
52571
52526
  }
52572
- [ai](t) {
52527
+ [hi](t) {
52573
52528
  if (t.pending && t.pendingLink && t === this[Et] && (t.pending = false, t.pendingLink = false), !t.pending) {
52574
52529
  if (t.entry) {
52575
- t === this[Et] && !t.piped && this[di](t);
52530
+ t === this[Et] && !t.piped && this[fi](t);
52576
52531
  return;
52577
52532
  }
52578
52533
  if (!t.stat) {
52579
52534
  let e = this.statCache.get(t.absolute);
52580
- e ? this[li](t, e) : this[ds](t);
52535
+ e ? this[ai](t, e) : this[cs](t);
52581
52536
  }
52582
52537
  if (t.stat && !t.ignore) {
52583
52538
  if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
52584
52539
  let e = this.readdirCache.get(t.absolute);
52585
- if (e ? this[fi](t, e) : this[ms](t), !t.readdir) return;
52540
+ if (e ? this[ci](t, e) : this[fs](t), !t.readdir) return;
52586
52541
  }
52587
- if (t.entry = this[hr](t), !t.entry) {
52542
+ if (t.entry = this[rr](t), !t.entry) {
52588
52543
  t.ignore = true;
52589
52544
  return;
52590
52545
  }
52591
- t === this[Et] && !t.piped && this[di](t);
52546
+ t === this[Et] && !t.piped && this[fi](t);
52592
52547
  }
52593
52548
  }
52594
52549
  }
52595
- [cs](t) {
52550
+ [as](t) {
52596
52551
  return { onwarn: (e, i, r) => this.warn(e, i, r), noPax: this.noPax, cwd: this.cwd, absolute: t.absolute, preservePaths: this.preservePaths, maxReadSize: this.maxReadSize, strict: this.strict, portable: this.portable, linkCache: this.linkCache, statCache: this.statCache, noMtime: this.noMtime, mtime: this.mtime, prefix: this.prefix, onWriteEntry: this.onWriteEntry };
52597
52552
  }
52598
- [hr](t) {
52553
+ [rr](t) {
52599
52554
  this[G] += 1;
52600
52555
  try {
52601
- return new this[mi](t.path, this[cs](t)).on("end", () => this[ls](t)).on("error", (i) => this.emit("error", i));
52556
+ return new this[di](t.path, this[as](t)).on("end", () => this[hs](t)).on("error", (i) => this.emit("error", i));
52602
52557
  } catch (e) {
52603
52558
  this.emit("error", e);
52604
52559
  }
52605
52560
  }
52606
- [fs]() {
52561
+ [ls]() {
52607
52562
  this[Et] && this[Et].entry && this[Et].entry.resume();
52608
52563
  }
52609
- [di](t) {
52564
+ [fi](t) {
52610
52565
  t.piped = true, t.readdir && t.readdir.forEach((r) => {
52611
52566
  let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
52612
- this[ci](o + r);
52567
+ this[li](o + r);
52613
52568
  });
52614
52569
  let e = t.entry, i = this.zip;
52615
52570
  if (!e) throw new Error("cannot pipe without source");
@@ -52623,137 +52578,137 @@ var wt = class extends A {
52623
52578
  return this.zip && this.zip.pause(), super.pause();
52624
52579
  }
52625
52580
  warn(t, e, i = {}) {
52626
- Dt(this, t, e, i);
52581
+ Nt(this, t, e, i);
52627
52582
  }
52628
52583
  };
52629
52584
  var kt = class extends wt {
52630
52585
  sync = true;
52631
52586
  constructor(t) {
52632
- super(t), this[mi] = ni;
52587
+ super(t), this[di] = ri;
52633
52588
  }
52634
52589
  pause() {
52635
52590
  }
52636
52591
  resume() {
52637
52592
  }
52638
- [ds](t) {
52593
+ [cs](t) {
52639
52594
  let e = this.follow ? "statSync" : "lstatSync";
52640
- this[li](t, import_fs2.default[e](t.absolute));
52595
+ this[ai](t, import_fs2.default[e](t.absolute));
52641
52596
  }
52642
- [ms](t) {
52643
- this[fi](t, import_fs2.default.readdirSync(t.absolute));
52597
+ [fs](t) {
52598
+ this[ci](t, import_fs2.default.readdirSync(t.absolute));
52644
52599
  }
52645
- [di](t) {
52600
+ [fi](t) {
52646
52601
  let e = t.entry, i = this.zip;
52647
52602
  if (t.readdir && t.readdir.forEach((r) => {
52648
52603
  let n = t.path, o = n === "./" ? "" : n.replace(/\/*$/, "/");
52649
- this[ci](o + r);
52604
+ this[li](o + r);
52650
52605
  }), !e) throw new Error("Cannot pipe without source");
52651
52606
  i ? e.on("data", (r) => {
52652
52607
  i.write(r);
52653
52608
  }) : e.on("data", (r) => {
52654
- super[lr](r);
52609
+ super[or](r);
52655
52610
  });
52656
52611
  }
52657
52612
  };
52658
- var Vn = (s3, t) => {
52613
+ var Wn = (s3, t) => {
52659
52614
  let e = new kt(s3), i = new Wt(s3.file, { mode: s3.mode || 438 });
52660
- e.pipe(i), fr(e, t);
52615
+ e.pipe(i), ar(e, t);
52661
52616
  };
52662
- var $n = (s3, t) => {
52663
- let e = new wt(s3), i = new et(s3.file, { mode: s3.mode || 438 });
52617
+ var Gn = (s3, t) => {
52618
+ let e = new wt(s3), i = new tt(s3.file, { mode: s3.mode || 438 });
52664
52619
  e.pipe(i);
52665
52620
  let r = new Promise((n, o) => {
52666
52621
  i.on("error", o), i.on("close", n), e.on("error", o);
52667
52622
  });
52668
- return dr(e, t).catch((n) => e.emit("error", n)), r;
52623
+ return lr(e, t).catch((n) => e.emit("error", n)), r;
52669
52624
  };
52670
- var fr = (s3, t) => {
52625
+ var ar = (s3, t) => {
52671
52626
  t.forEach((e) => {
52672
- e.charAt(0) === "@" ? Ct({ file: import_node_path.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
52627
+ e.charAt(0) === "@" ? Ft({ file: import_node_path.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
52673
52628
  }), s3.end();
52674
52629
  };
52675
- var dr = async (s3, t) => {
52676
- for (let e of t) e.charAt(0) === "@" ? await Ct({ file: import_node_path.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
52630
+ var lr = async (s3, t) => {
52631
+ for (let e of t) e.charAt(0) === "@" ? await Ft({ file: import_node_path.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => {
52677
52632
  s3.add(i);
52678
52633
  } }) : s3.add(e);
52679
52634
  s3.end();
52680
52635
  };
52681
- var Xn = (s3, t) => {
52636
+ var Zn = (s3, t) => {
52682
52637
  let e = new kt(s3);
52683
- return fr(e, t), e;
52638
+ return ar(e, t), e;
52684
52639
  };
52685
- var qn = (s3, t) => {
52640
+ var Yn = (s3, t) => {
52686
52641
  let e = new wt(s3);
52687
- return dr(e, t).catch((i) => e.emit("error", i)), e;
52642
+ return lr(e, t).catch((i) => e.emit("error", i)), e;
52688
52643
  };
52689
- var Qn = K(Vn, $n, Xn, qn, (s3, t) => {
52644
+ var Kn = K(Wn, Gn, Zn, Yn, (s3, t) => {
52690
52645
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
52691
52646
  });
52692
- var Jn = process.env.__FAKE_PLATFORM__ || process.platform;
52693
- var Er = Jn === "win32";
52694
- var { O_CREAT: wr, O_NOFOLLOW: mr, O_TRUNC: Sr, O_WRONLY: yr } = import_fs4.default.constants;
52695
- var Rr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs4.default.constants.UV_FS_O_FILEMAP || 0;
52696
- var jn = Er && !!Rr;
52697
- var to = 512 * 1024;
52698
- var eo = Rr | Sr | wr | yr;
52699
- var ur = !Er && typeof mr == "number" ? mr | Sr | wr | yr : null;
52700
- var us = ur !== null ? () => ur : jn ? (s3) => s3 < to ? eo : "w" : () => "w";
52701
- var ps = (s3, t, e) => {
52647
+ var Vn = process.env.__FAKE_PLATFORM__ || process.platform;
52648
+ var ur = Vn === "win32";
52649
+ var { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } = import_fs4.default.constants;
52650
+ var wr = Number(process.env.__FAKE_FS_O_FILENAME__) || import_fs4.default.constants.UV_FS_O_FILEMAP || 0;
52651
+ var $n = ur && !!wr;
52652
+ var Xn = 512 * 1024;
52653
+ var qn = wr | pr | mr | Er;
52654
+ var fr = !ur && typeof cr == "number" ? cr | pr | mr | Er : null;
52655
+ var ds = fr !== null ? () => fr : $n ? (s3) => s3 < Xn ? qn : "w" : () => "w";
52656
+ var us = (s3, t, e) => {
52702
52657
  try {
52703
52658
  return import_node_fs4.default.lchownSync(s3, t, e);
52704
52659
  } catch (i) {
52705
52660
  if (i?.code !== "ENOENT") throw i;
52706
52661
  }
52707
52662
  };
52708
- var Ei = (s3, t, e, i) => {
52663
+ var pi = (s3, t, e, i) => {
52709
52664
  import_node_fs4.default.lchown(s3, t, e, (r) => {
52710
52665
  i(r && r?.code !== "ENOENT" ? r : null);
52711
52666
  });
52712
52667
  };
52713
- var io = (s3, t, e, i, r) => {
52714
- if (t.isDirectory()) Es(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
52668
+ var Qn = (s3, t, e, i, r) => {
52669
+ if (t.isDirectory()) ms(import_node_path6.default.resolve(s3, t.name), e, i, (n) => {
52715
52670
  if (n) return r(n);
52716
52671
  let o = import_node_path6.default.resolve(s3, t.name);
52717
- Ei(o, e, i, r);
52672
+ pi(o, e, i, r);
52718
52673
  });
52719
52674
  else {
52720
52675
  let n = import_node_path6.default.resolve(s3, t.name);
52721
- Ei(n, e, i, r);
52676
+ pi(n, e, i, r);
52722
52677
  }
52723
52678
  };
52724
- var Es = (s3, t, e, i) => {
52679
+ var ms = (s3, t, e, i) => {
52725
52680
  import_node_fs4.default.readdir(s3, { withFileTypes: true }, (r, n) => {
52726
52681
  if (r) {
52727
52682
  if (r.code === "ENOENT") return i();
52728
52683
  if (r.code !== "ENOTDIR" && r.code !== "ENOTSUP") return i(r);
52729
52684
  }
52730
- if (r || !n.length) return Ei(s3, t, e, i);
52731
- let o = n.length, h = null, a = (l) => {
52732
- if (!h) {
52733
- if (l) return i(h = l);
52734
- if (--o === 0) return Ei(s3, t, e, i);
52685
+ if (r || !n.length) return pi(s3, t, e, i);
52686
+ let o = n.length, a = null, h = (l) => {
52687
+ if (!a) {
52688
+ if (l) return i(a = l);
52689
+ if (--o === 0) return pi(s3, t, e, i);
52735
52690
  }
52736
52691
  };
52737
- for (let l of n) io(s3, l, t, e, a);
52692
+ for (let l of n) Qn(s3, l, t, e, h);
52738
52693
  });
52739
52694
  };
52740
- var so = (s3, t, e, i) => {
52741
- t.isDirectory() && ws(import_node_path6.default.resolve(s3, t.name), e, i), ps(import_node_path6.default.resolve(s3, t.name), e, i);
52695
+ var Jn = (s3, t, e, i) => {
52696
+ t.isDirectory() && ps(import_node_path6.default.resolve(s3, t.name), e, i), us(import_node_path6.default.resolve(s3, t.name), e, i);
52742
52697
  };
52743
- var ws = (s3, t, e) => {
52698
+ var ps = (s3, t, e) => {
52744
52699
  let i;
52745
52700
  try {
52746
52701
  i = import_node_fs4.default.readdirSync(s3, { withFileTypes: true });
52747
52702
  } catch (r) {
52748
52703
  let n = r;
52749
52704
  if (n?.code === "ENOENT") return;
52750
- if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return ps(s3, t, e);
52705
+ if (n?.code === "ENOTDIR" || n?.code === "ENOTSUP") return us(s3, t, e);
52751
52706
  throw n;
52752
52707
  }
52753
- for (let r of i) so(s3, r, t, e);
52754
- return ps(s3, t, e);
52708
+ for (let r of i) Jn(s3, r, t, e);
52709
+ return us(s3, t, e);
52755
52710
  };
52756
- var Se = class extends Error {
52711
+ var we = class extends Error {
52757
52712
  path;
52758
52713
  code;
52759
52714
  syscall = "chdir";
@@ -52776,97 +52731,97 @@ var St = class extends Error {
52776
52731
  return "SymlinkError";
52777
52732
  }
52778
52733
  };
52779
- var no = (s3, t) => {
52734
+ var to = (s3, t) => {
52780
52735
  import_node_fs5.default.stat(s3, (e, i) => {
52781
- (e || !i.isDirectory()) && (e = new Se(s3, e?.code || "ENOTDIR")), t(e);
52736
+ (e || !i.isDirectory()) && (e = new we(s3, e?.code || "ENOTDIR")), t(e);
52782
52737
  });
52783
52738
  };
52784
- var gr = (s3, t, e) => {
52739
+ var Sr = (s3, t, e) => {
52785
52740
  s3 = f(s3);
52786
- let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, h = t.gid, a = typeof o == "number" && typeof h == "number" && (o !== t.processUid || h !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
52787
- E ? e(E) : x && a ? Es(x, o, h, (Le) => S(Le)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
52741
+ let i = t.umask ?? 18, r = t.mode | 448, n = (r & i) !== 0, o = t.uid, a = t.gid, h = typeof o == "number" && typeof a == "number" && (o !== t.processUid || a !== t.processGid), l = t.preserve, c = t.unlink, d = f(t.cwd), S = (E, x) => {
52742
+ E ? e(E) : x && h ? ms(x, o, a, (xe) => S(xe)) : n ? import_node_fs5.default.chmod(s3, r, e) : e();
52788
52743
  };
52789
- if (s3 === d) return no(s3, S);
52744
+ if (s3 === d) return to(s3, S);
52790
52745
  if (l) return import_promises.default.mkdir(s3, { mode: r, recursive: true }).then((E) => S(null, E ?? void 0), S);
52791
- let D = f(import_node_path7.default.relative(d, s3)).split("/");
52792
- Ss(d, D, r, c, d, void 0, S);
52746
+ let N = f(import_node_path7.default.relative(d, s3)).split("/");
52747
+ Es(d, N, r, c, d, void 0, S);
52793
52748
  };
52794
- var Ss = (s3, t, e, i, r, n, o) => {
52749
+ var Es = (s3, t, e, i, r, n, o) => {
52795
52750
  if (t.length === 0) return o(null, n);
52796
- let h = t.shift(), a = f(import_node_path7.default.resolve(s3 + "/" + h));
52797
- import_node_fs5.default.mkdir(a, e, br(a, t, e, i, r, n, o));
52751
+ let a = t.shift(), h = f(import_node_path7.default.resolve(s3 + "/" + a));
52752
+ import_node_fs5.default.mkdir(h, e, yr(h, t, e, i, r, n, o));
52798
52753
  };
52799
- var br = (s3, t, e, i, r, n, o) => (h) => {
52800
- h ? import_node_fs5.default.lstat(s3, (a, l) => {
52801
- if (a) a.path = a.path && f(a.path), o(a);
52802
- else if (l.isDirectory()) Ss(s3, t, e, i, r, n, o);
52754
+ var yr = (s3, t, e, i, r, n, o) => (a) => {
52755
+ a ? import_node_fs5.default.lstat(s3, (h, l) => {
52756
+ if (h) h.path = h.path && f(h.path), o(h);
52757
+ else if (l.isDirectory()) Es(s3, t, e, i, r, n, o);
52803
52758
  else if (i) import_node_fs5.default.unlink(s3, (c) => {
52804
52759
  if (c) return o(c);
52805
- import_node_fs5.default.mkdir(s3, e, br(s3, t, e, i, r, n, o));
52760
+ import_node_fs5.default.mkdir(s3, e, yr(s3, t, e, i, r, n, o));
52806
52761
  });
52807
52762
  else {
52808
52763
  if (l.isSymbolicLink()) return o(new St(s3, s3 + "/" + t.join("/")));
52809
- o(h);
52764
+ o(a);
52810
52765
  }
52811
- }) : (n = n || s3, Ss(s3, t, e, i, r, n, o));
52766
+ }) : (n = n || s3, Es(s3, t, e, i, r, n, o));
52812
52767
  };
52813
- var oo = (s3) => {
52768
+ var eo = (s3) => {
52814
52769
  let t = false, e;
52815
52770
  try {
52816
52771
  t = import_node_fs5.default.statSync(s3).isDirectory();
52817
52772
  } catch (i) {
52818
52773
  e = i?.code;
52819
52774
  } finally {
52820
- if (!t) throw new Se(s3, e ?? "ENOTDIR");
52775
+ if (!t) throw new we(s3, e ?? "ENOTDIR");
52821
52776
  }
52822
52777
  };
52823
- var _r = (s3, t) => {
52778
+ var Rr = (s3, t) => {
52824
52779
  s3 = f(s3);
52825
- let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, h = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), a = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
52826
- E && h && ws(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
52780
+ let e = t.umask ?? 18, i = t.mode | 448, r = (i & e) !== 0, n = t.uid, o = t.gid, a = typeof n == "number" && typeof o == "number" && (n !== t.processUid || o !== t.processGid), h = t.preserve, l = t.unlink, c = f(t.cwd), d = (E) => {
52781
+ E && a && ps(E, n, o), r && import_node_fs5.default.chmodSync(s3, i);
52827
52782
  };
52828
- if (s3 === c) return oo(c), d();
52829
- if (a) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
52830
- let T = f(import_node_path7.default.relative(c, s3)).split("/"), D;
52783
+ if (s3 === c) return eo(c), d();
52784
+ if (h) return d(import_node_fs5.default.mkdirSync(s3, { mode: i, recursive: true }) ?? void 0);
52785
+ let T = f(import_node_path7.default.relative(c, s3)).split("/"), N;
52831
52786
  for (let E = T.shift(), x = c; E && (x += "/" + E); E = T.shift()) {
52832
52787
  x = f(import_node_path7.default.resolve(x));
52833
52788
  try {
52834
- import_node_fs5.default.mkdirSync(x, i), D = D || x;
52789
+ import_node_fs5.default.mkdirSync(x, i), N = N || x;
52835
52790
  } catch {
52836
- let Le = import_node_fs5.default.lstatSync(x);
52837
- if (Le.isDirectory()) continue;
52791
+ let xe = import_node_fs5.default.lstatSync(x);
52792
+ if (xe.isDirectory()) continue;
52838
52793
  if (l) {
52839
- import_node_fs5.default.unlinkSync(x), import_node_fs5.default.mkdirSync(x, i), D = D || x;
52794
+ import_node_fs5.default.unlinkSync(x), import_node_fs5.default.mkdirSync(x, i), N = N || x;
52840
52795
  continue;
52841
- } else if (Le.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
52796
+ } else if (xe.isSymbolicLink()) return new St(x, x + "/" + T.join("/"));
52842
52797
  }
52843
52798
  }
52844
- return d(D);
52799
+ return d(N);
52845
52800
  };
52846
- var ys = /* @__PURE__ */ Object.create(null);
52847
- var Or = 1e4;
52801
+ var ws = /* @__PURE__ */ Object.create(null);
52802
+ var gr = 1e4;
52848
52803
  var Vt = /* @__PURE__ */ new Set();
52849
- var Tr = (s3) => {
52850
- Vt.has(s3) ? Vt.delete(s3) : ys[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt.add(s3);
52851
- let t = ys[s3], e = Vt.size - Or;
52852
- if (e > Or / 10) {
52853
- for (let i of Vt) if (Vt.delete(i), delete ys[i], --e <= 0) break;
52804
+ var br = (s3) => {
52805
+ Vt.has(s3) ? Vt.delete(s3) : ws[s3] = s3.normalize("NFD").toLocaleLowerCase("en").toLocaleUpperCase("en"), Vt.add(s3);
52806
+ let t = ws[s3], e = Vt.size - gr;
52807
+ if (e > gr / 10) {
52808
+ for (let i of Vt) if (Vt.delete(i), delete ws[i], --e <= 0) break;
52854
52809
  }
52855
52810
  return t;
52856
52811
  };
52857
- var ho = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52858
- var ao = ho === "win32";
52859
- var lo = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
52812
+ var io = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52813
+ var so = io === "win32";
52814
+ var ro = (s3) => s3.split("/").slice(0, -1).reduce((e, i) => {
52860
52815
  let r = e.at(-1);
52861
52816
  return r !== void 0 && (i = (0, import_node_path8.join)(r, i)), e.push(i || "/"), e;
52862
52817
  }, []);
52863
- var yi = class {
52818
+ var Si = class {
52864
52819
  #t = /* @__PURE__ */ new Map();
52865
52820
  #i = /* @__PURE__ */ new Map();
52866
52821
  #s = /* @__PURE__ */ new Set();
52867
52822
  reserve(t, e) {
52868
- t = ao ? ["win32 parallelization disabled"] : t.map((r) => ut((0, import_node_path8.join)(Tr(r))));
52869
- let i = new Set(t.map((r) => lo(r)).reduce((r, n) => r.concat(n)));
52823
+ t = so ? ["win32 parallelization disabled"] : t.map((r) => mt((0, import_node_path8.join)(br(r))));
52824
+ let i = new Set(t.map((r) => ro(r)).reduce((r, n) => r.concat(n)));
52870
52825
  this.#i.set(e, { dirs: i, paths: t });
52871
52826
  for (let r of t) {
52872
52827
  let n = this.#t.get(r);
@@ -52900,79 +52855,79 @@ var yi = class {
52900
52855
  if (!e) throw new Error("invalid reservation");
52901
52856
  let { paths: i, dirs: r } = e, n = /* @__PURE__ */ new Set();
52902
52857
  for (let o of i) {
52903
- let h = this.#t.get(o);
52904
- if (!h || h?.[0] !== t) continue;
52905
- let a = h[1];
52906
- if (!a) {
52858
+ let a = this.#t.get(o);
52859
+ if (!a || a?.[0] !== t) continue;
52860
+ let h = a[1];
52861
+ if (!h) {
52907
52862
  this.#t.delete(o);
52908
52863
  continue;
52909
52864
  }
52910
- if (h.shift(), typeof a == "function") n.add(a);
52911
- else for (let l of a) n.add(l);
52865
+ if (a.shift(), typeof h == "function") n.add(h);
52866
+ else for (let l of h) n.add(l);
52912
52867
  }
52913
52868
  for (let o of r) {
52914
- let h = this.#t.get(o), a = h?.[0];
52915
- if (!(!h || !(a instanceof Set))) if (a.size === 1 && h.length === 1) {
52869
+ let a = this.#t.get(o), h = a?.[0];
52870
+ if (!(!a || !(h instanceof Set))) if (h.size === 1 && a.length === 1) {
52916
52871
  this.#t.delete(o);
52917
52872
  continue;
52918
- } else if (a.size === 1) {
52919
- h.shift();
52920
- let l = h[0];
52873
+ } else if (h.size === 1) {
52874
+ a.shift();
52875
+ let l = a[0];
52921
52876
  typeof l == "function" && n.add(l);
52922
- } else a.delete(t);
52877
+ } else h.delete(t);
52923
52878
  }
52924
52879
  return this.#s.delete(t), n.forEach((o) => this.#r(o)), true;
52925
52880
  }
52926
52881
  };
52927
- var Lr = () => process.umask();
52928
- var Dr = /* @__PURE__ */ Symbol("onEntry");
52929
- var _s = /* @__PURE__ */ Symbol("checkFs");
52930
- var Nr = /* @__PURE__ */ Symbol("checkFs2");
52931
- var Os = /* @__PURE__ */ Symbol("isReusable");
52882
+ var Or = () => process.umask();
52883
+ var Tr = /* @__PURE__ */ Symbol("onEntry");
52884
+ var gs = /* @__PURE__ */ Symbol("checkFs");
52885
+ var xr = /* @__PURE__ */ Symbol("checkFs2");
52886
+ var bs = /* @__PURE__ */ Symbol("isReusable");
52932
52887
  var P = /* @__PURE__ */ Symbol("makeFs");
52933
- var Ts = /* @__PURE__ */ Symbol("file");
52934
- var xs = /* @__PURE__ */ Symbol("directory");
52935
- var gi = /* @__PURE__ */ Symbol("link");
52936
- var Ar = /* @__PURE__ */ Symbol("symlink");
52937
- var Ir = /* @__PURE__ */ Symbol("hardlink");
52938
- var Re = /* @__PURE__ */ Symbol("ensureNoSymlink");
52939
- var Cr = /* @__PURE__ */ Symbol("unsupported");
52940
- var Fr = /* @__PURE__ */ Symbol("checkPath");
52941
- var Rs = /* @__PURE__ */ Symbol("stripAbsolutePath");
52888
+ var _s = /* @__PURE__ */ Symbol("file");
52889
+ var Os = /* @__PURE__ */ Symbol("directory");
52890
+ var Ri = /* @__PURE__ */ Symbol("link");
52891
+ var Lr = /* @__PURE__ */ Symbol("symlink");
52892
+ var Nr = /* @__PURE__ */ Symbol("hardlink");
52893
+ var ye = /* @__PURE__ */ Symbol("ensureNoSymlink");
52894
+ var Dr = /* @__PURE__ */ Symbol("unsupported");
52895
+ var Ar = /* @__PURE__ */ Symbol("checkPath");
52896
+ var Ss = /* @__PURE__ */ Symbol("stripAbsolutePath");
52942
52897
  var yt = /* @__PURE__ */ Symbol("mkdir");
52943
52898
  var O = /* @__PURE__ */ Symbol("onError");
52944
- var Ri = /* @__PURE__ */ Symbol("pending");
52945
- var kr = /* @__PURE__ */ Symbol("pend");
52899
+ var yi = /* @__PURE__ */ Symbol("pending");
52900
+ var Ir = /* @__PURE__ */ Symbol("pend");
52946
52901
  var $t = /* @__PURE__ */ Symbol("unpend");
52947
- var gs = /* @__PURE__ */ Symbol("ended");
52948
- var bs = /* @__PURE__ */ Symbol("maybeClose");
52949
- var Ls = /* @__PURE__ */ Symbol("skip");
52950
- var ge = /* @__PURE__ */ Symbol("doChown");
52951
- var be = /* @__PURE__ */ Symbol("uid");
52952
- var _e = /* @__PURE__ */ Symbol("gid");
52953
- var Oe = /* @__PURE__ */ Symbol("checkedCwd");
52954
- var fo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52955
- var Te = fo === "win32";
52956
- var mo = 1024;
52957
- var uo = (s3, t) => {
52958
- if (!Te) return import_node_fs3.default.unlink(s3, t);
52902
+ var ys = /* @__PURE__ */ Symbol("ended");
52903
+ var Rs = /* @__PURE__ */ Symbol("maybeClose");
52904
+ var Ts = /* @__PURE__ */ Symbol("skip");
52905
+ var Re = /* @__PURE__ */ Symbol("doChown");
52906
+ var ge = /* @__PURE__ */ Symbol("uid");
52907
+ var be = /* @__PURE__ */ Symbol("gid");
52908
+ var _e = /* @__PURE__ */ Symbol("checkedCwd");
52909
+ var oo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
52910
+ var Oe = oo === "win32";
52911
+ var ho = 1024;
52912
+ var ao = (s3, t) => {
52913
+ if (!Oe) return import_node_fs3.default.unlink(s3, t);
52959
52914
  let e = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
52960
52915
  import_node_fs3.default.rename(s3, e, (i) => {
52961
52916
  if (i) return t(i);
52962
52917
  import_node_fs3.default.unlink(e, t);
52963
52918
  });
52964
52919
  };
52965
- var po = (s3) => {
52966
- if (!Te) return import_node_fs3.default.unlinkSync(s3);
52920
+ var lo = (s3) => {
52921
+ if (!Oe) return import_node_fs3.default.unlinkSync(s3);
52967
52922
  let t = s3 + ".DELETE." + (0, import_node_crypto.randomBytes)(16).toString("hex");
52968
52923
  import_node_fs3.default.renameSync(s3, t), import_node_fs3.default.unlinkSync(t);
52969
52924
  };
52970
- var vr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
52971
- var Xt = class extends rt {
52972
- [gs] = false;
52973
- [Oe] = false;
52974
- [Ri] = 0;
52975
- reservations = new yi();
52925
+ var Fr = (s3, t, e) => s3 !== void 0 && s3 === s3 >>> 0 ? s3 : t !== void 0 && t === t >>> 0 ? t : e;
52926
+ var Xt = class extends st {
52927
+ [ys] = false;
52928
+ [_e] = false;
52929
+ [yi] = 0;
52930
+ reservations = new Si();
52976
52931
  transform;
52977
52932
  writable = true;
52978
52933
  readable = false;
@@ -52999,32 +52954,32 @@ var Xt = class extends rt {
52999
52954
  chmod;
53000
52955
  constructor(t = {}) {
53001
52956
  if (t.ondone = () => {
53002
- this[gs] = true, this[bs]();
52957
+ this[ys] = true, this[Rs]();
53003
52958
  }, super(t), this.transform = t.transform, this.chmod = !!t.chmod, typeof t.uid == "number" || typeof t.gid == "number") {
53004
52959
  if (typeof t.uid != "number" || typeof t.gid != "number") throw new TypeError("cannot set owner without number uid and gid");
53005
52960
  if (t.preserveOwner) throw new TypeError("cannot preserve owner in archive and also set owner explicitly");
53006
52961
  this.uid = t.uid, this.gid = t.gid, this.setOwner = true;
53007
52962
  } else this.uid = void 0, this.gid = void 0, this.setOwner = false;
53008
- this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? process.getuid?.() === 0 : !!t.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 t.maxDepth == "number" ? t.maxDepth : mo, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Te, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Lr() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Dr](e));
52963
+ this.preserveOwner = t.preserveOwner === void 0 && typeof t.uid != "number" ? !!(process.getuid && process.getuid() === 0) : !!t.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 t.maxDepth == "number" ? t.maxDepth : ho, this.forceChown = t.forceChown === true, this.win32 = !!t.win32 || Oe, this.newer = !!t.newer, this.keep = !!t.keep, this.noMtime = !!t.noMtime, this.preservePaths = !!t.preservePaths, this.unlink = !!t.unlink, this.cwd = f(import_node_path5.default.resolve(t.cwd || process.cwd())), this.strip = Number(t.strip) || 0, this.processUmask = this.chmod ? typeof t.processUmask == "number" ? t.processUmask : Or() : 0, this.umask = typeof t.umask == "number" ? t.umask : this.processUmask, this.dmode = t.dmode || 511 & ~this.umask, this.fmode = t.fmode || 438 & ~this.umask, this.on("entry", (e) => this[Tr](e));
53009
52964
  }
53010
52965
  warn(t, e, i = {}) {
53011
52966
  return (t === "TAR_BAD_ARCHIVE" || t === "TAR_ABORT") && (i.recoverable = false), super.warn(t, e, i);
53012
52967
  }
53013
- [bs]() {
53014
- this[gs] && this[Ri] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
52968
+ [Rs]() {
52969
+ this[ys] && this[yi] === 0 && (this.emit("prefinish"), this.emit("finish"), this.emit("end"));
53015
52970
  }
53016
- [Rs](t, e) {
52971
+ [Ss](t, e) {
53017
52972
  let i = t[e], { type: r } = t;
53018
52973
  if (!i || this.preservePaths) return true;
53019
- let [n, o] = ce(i), h = o.replaceAll(/\\/g, "/").split("/");
53020
- if (h.includes("..") || Te && /^[a-z]:\.\.$/i.test(h[0] ?? "")) {
52974
+ let [n, o] = le(i), a = o.replaceAll(/\\/g, "/").split("/");
52975
+ if (a.includes("..") || Oe && /^[a-z]:\.\.$/i.test(a[0] ?? "")) {
53021
52976
  if (e === "path" || r === "Link") return this.warn("TAR_ENTRY_ERROR", `${e} contains '..'`, { entry: t, [e]: i }), false;
53022
- let a = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(a, h.join("/")));
52977
+ let h = import_node_path5.default.posix.dirname(t.path), l = import_node_path5.default.posix.normalize(import_node_path5.default.posix.join(h, a.join("/")));
53023
52978
  if (l.startsWith("../") || l === "..") return this.warn("TAR_ENTRY_ERROR", `${e} escapes extraction directory`, { entry: t, [e]: i }), false;
53024
52979
  }
53025
52980
  return n && (t[e] = String(o), this.warn("TAR_ENTRY_INFO", `stripping ${n} from absolute ${e}`, { entry: t, [e]: i })), true;
53026
52981
  }
53027
- [Fr](t) {
52982
+ [Ar](t) {
53028
52983
  let e = f(t.path), i = e.split("/");
53029
52984
  if (this.strip) {
53030
52985
  if (i.length < this.strip) return false;
@@ -53036,19 +52991,19 @@ var Xt = class extends rt {
53036
52991
  i.splice(0, this.strip), t.path = i.join("/");
53037
52992
  }
53038
52993
  if (isFinite(this.maxDepth) && i.length > this.maxDepth) return this.warn("TAR_ENTRY_ERROR", "path excessively deep", { entry: t, path: e, depth: i.length, maxDepth: this.maxDepth }), false;
53039
- if (!this[Rs](t, "path") || !this[Rs](t, "linkpath")) return false;
52994
+ if (!this[Ss](t, "path") || !this[Ss](t, "linkpath")) return false;
53040
52995
  if (t.absolute = import_node_path5.default.isAbsolute(t.path) ? f(import_node_path5.default.resolve(t.path)) : f(import_node_path5.default.resolve(this.cwd, t.path)), !this.preservePaths && typeof t.absolute == "string" && t.absolute.indexOf(this.cwd + "/") !== 0 && t.absolute !== this.cwd) return this.warn("TAR_ENTRY_ERROR", "path escaped extraction target", { entry: t, path: f(t.path), resolvedPath: t.absolute, cwd: this.cwd }), false;
53041
52996
  if (t.absolute === this.cwd && t.type !== "Directory" && t.type !== "GNUDumpDir") return false;
53042
52997
  if (this.win32) {
53043
52998
  let { root: r } = import_node_path5.default.win32.parse(String(t.absolute));
53044
- t.absolute = r + ts(String(t.absolute).slice(r.length));
52999
+ t.absolute = r + Ji(String(t.absolute).slice(r.length));
53045
53000
  let { root: n } = import_node_path5.default.win32.parse(t.path);
53046
- t.path = n + ts(t.path.slice(n.length));
53001
+ t.path = n + Ji(t.path.slice(n.length));
53047
53002
  }
53048
53003
  return true;
53049
53004
  }
53050
- [Dr](t) {
53051
- if (!this[Fr](t)) return t.resume();
53005
+ [Tr](t) {
53006
+ if (!this[Ar](t)) return t.resume();
53052
53007
  switch (import_node_assert.default.equal(typeof t.absolute, "string"), t.type) {
53053
53008
  case "Directory":
53054
53009
  case "GNUDumpDir":
@@ -53058,36 +53013,36 @@ var Xt = class extends rt {
53058
53013
  case "ContiguousFile":
53059
53014
  case "Link":
53060
53015
  case "SymbolicLink":
53061
- return this[_s](t);
53016
+ return this[gs](t);
53062
53017
  default:
53063
- return this[Cr](t);
53018
+ return this[Dr](t);
53064
53019
  }
53065
53020
  }
53066
53021
  [O](t, e) {
53067
53022
  t.name === "CwdError" ? this.emit("error", t) : (this.warn("TAR_ENTRY_ERROR", t, { entry: e }), this[$t](), e.resume());
53068
53023
  }
53069
53024
  [yt](t, e, i) {
53070
- gr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
53025
+ Sr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e }, i);
53071
53026
  }
53072
- [ge](t) {
53027
+ [Re](t) {
53073
53028
  return this.forceChown || this.preserveOwner && (typeof t.uid == "number" && t.uid !== this.processUid || typeof t.gid == "number" && t.gid !== this.processGid) || typeof this.uid == "number" && this.uid !== this.processUid || typeof this.gid == "number" && this.gid !== this.processGid;
53074
53029
  }
53075
- [be](t) {
53076
- return vr(this.uid, t.uid, this.processUid);
53030
+ [ge](t) {
53031
+ return Fr(this.uid, t.uid, this.processUid);
53077
53032
  }
53078
- [_e](t) {
53079
- return vr(this.gid, t.gid, this.processGid);
53033
+ [be](t) {
53034
+ return Fr(this.gid, t.gid, this.processGid);
53080
53035
  }
53081
- [Ts](t, e) {
53082
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new et(String(t.absolute), { flags: us(t.size), mode: i, autoClose: false });
53083
- r.on("error", (a) => {
53036
+ [_s](t, e) {
53037
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = new tt(String(t.absolute), { flags: ds(t.size), mode: i, autoClose: false });
53038
+ r.on("error", (h) => {
53084
53039
  r.fd && import_node_fs3.default.close(r.fd, () => {
53085
- }), r.write = () => true, this[O](a, t), e();
53040
+ }), r.write = () => true, this[O](h, t), e();
53086
53041
  });
53087
- let n = 1, o = (a) => {
53088
- if (a) {
53042
+ let n = 1, o = (h) => {
53043
+ if (h) {
53089
53044
  r.fd && import_node_fs3.default.close(r.fd, () => {
53090
- }), this[O](a, t), e();
53045
+ }), this[O](h, t), e();
53091
53046
  return;
53092
53047
  }
53093
53048
  --n === 0 && r.fd !== void 0 && import_node_fs3.default.close(r.fd, (l) => {
@@ -53095,25 +53050,25 @@ var Xt = class extends rt {
53095
53050
  });
53096
53051
  };
53097
53052
  r.on("finish", () => {
53098
- let a = String(t.absolute), l = r.fd;
53053
+ let h = String(t.absolute), l = r.fd;
53099
53054
  if (typeof l == "number" && t.mtime && !this.noMtime) {
53100
53055
  n++;
53101
53056
  let c = t.atime || /* @__PURE__ */ new Date(), d = t.mtime;
53102
- import_node_fs3.default.futimes(l, c, d, (S) => S ? import_node_fs3.default.utimes(a, c, d, (T) => o(T && S)) : o());
53057
+ import_node_fs3.default.futimes(l, c, d, (S) => S ? import_node_fs3.default.utimes(h, c, d, (T) => o(T && S)) : o());
53103
53058
  }
53104
- if (typeof l == "number" && this[ge](t)) {
53059
+ if (typeof l == "number" && this[Re](t)) {
53105
53060
  n++;
53106
- let c = this[be](t), d = this[_e](t);
53107
- typeof c == "number" && typeof d == "number" && import_node_fs3.default.fchown(l, c, d, (S) => S ? import_node_fs3.default.chown(a, c, d, (T) => o(T && S)) : o());
53061
+ let c = this[ge](t), d = this[be](t);
53062
+ typeof c == "number" && typeof d == "number" && import_node_fs3.default.fchown(l, c, d, (S) => S ? import_node_fs3.default.chown(h, c, d, (T) => o(T && S)) : o());
53108
53063
  }
53109
53064
  o();
53110
53065
  });
53111
- let h = this.transform && this.transform(t) || t;
53112
- h !== t && (h.on("error", (a) => {
53113
- this[O](a, t), e();
53114
- }), t.pipe(h)), h.pipe(r);
53066
+ let a = this.transform && this.transform(t) || t;
53067
+ a !== t && (a.on("error", (h) => {
53068
+ this[O](h, t), e();
53069
+ }), t.pipe(a)), a.pipe(r);
53115
53070
  }
53116
- [xs](t, e) {
53071
+ [Os](t, e) {
53117
53072
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode;
53118
53073
  this[yt](String(t.absolute), i, (r) => {
53119
53074
  if (r) {
@@ -53123,68 +53078,68 @@ var Xt = class extends rt {
53123
53078
  let n = 1, o = () => {
53124
53079
  --n === 0 && (e(), this[$t](), t.resume());
53125
53080
  };
53126
- t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[ge](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[be](t)), Number(this[_e](t)), o)), o();
53081
+ t.mtime && !this.noMtime && (n++, import_node_fs3.default.utimes(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime, o)), this[Re](t) && (n++, import_node_fs3.default.chown(String(t.absolute), Number(this[ge](t)), Number(this[be](t)), o)), o();
53127
53082
  });
53128
53083
  }
53129
- [Cr](t) {
53084
+ [Dr](t) {
53130
53085
  t.unsupported = true, this.warn("TAR_ENTRY_UNSUPPORTED", `unsupported entry type: ${t.type}`, { entry: t }), t.resume();
53131
53086
  }
53132
- [Ar](t, e) {
53087
+ [Lr](t, e) {
53133
53088
  let i = f(import_node_path5.default.relative(this.cwd, import_node_path5.default.resolve(import_node_path5.default.dirname(String(t.absolute)), String(t.linkpath)))).split("/");
53134
- this[Re](t, this.cwd, i, () => this[gi](t, String(t.linkpath), "symlink", e), (r) => {
53089
+ this[ye](t, this.cwd, i, () => this[Ri](t, String(t.linkpath), "symlink", e), (r) => {
53135
53090
  this[O](r, t), e();
53136
53091
  });
53137
53092
  }
53138
- [Ir](t, e) {
53093
+ [Nr](t, e) {
53139
53094
  let i = f(import_node_path5.default.resolve(this.cwd, String(t.linkpath))), r = f(String(t.linkpath)).split("/");
53140
- this[Re](t, this.cwd, r, () => this[gi](t, i, "link", e), (n) => {
53095
+ this[ye](t, this.cwd, r, () => this[Ri](t, i, "link", e), (n) => {
53141
53096
  this[O](n, t), e();
53142
53097
  });
53143
53098
  }
53144
- [Re](t, e, i, r, n) {
53099
+ [ye](t, e, i, r, n) {
53145
53100
  let o = i.shift();
53146
53101
  if (this.preservePaths || o === void 0) return r();
53147
- let h = import_node_path5.default.resolve(e, o);
53148
- import_node_fs3.default.lstat(h, (a, l) => {
53149
- if (a) return r();
53150
- if (l?.isSymbolicLink()) return n(new St(h, import_node_path5.default.resolve(h, i.join("/"))));
53151
- this[Re](t, h, i, r, n);
53102
+ let a = import_node_path5.default.resolve(e, o);
53103
+ import_node_fs3.default.lstat(a, (h, l) => {
53104
+ if (h) return r();
53105
+ if (l?.isSymbolicLink()) return n(new St(a, import_node_path5.default.resolve(a, i.join("/"))));
53106
+ this[ye](t, a, i, r, n);
53152
53107
  });
53153
53108
  }
53154
- [kr]() {
53155
- this[Ri]++;
53109
+ [Ir]() {
53110
+ this[yi]++;
53156
53111
  }
53157
53112
  [$t]() {
53158
- this[Ri]--, this[bs]();
53113
+ this[yi]--, this[Rs]();
53159
53114
  }
53160
- [Ls](t) {
53115
+ [Ts](t) {
53161
53116
  this[$t](), t.resume();
53162
53117
  }
53163
- [Os](t, e) {
53164
- return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Te;
53118
+ [bs](t, e) {
53119
+ return t.type === "File" && !this.unlink && e.isFile() && e.nlink <= 1 && !Oe;
53165
53120
  }
53166
- [_s](t) {
53167
- this[kr]();
53121
+ [gs](t) {
53122
+ this[Ir]();
53168
53123
  let e = [t.path];
53169
- t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[Nr](t, i));
53124
+ t.linkpath && e.push(t.linkpath), this.reservations.reserve(e, (i) => this[xr](t, i));
53170
53125
  }
53171
- [Nr](t, e) {
53172
- let i = (h) => {
53173
- e(h);
53126
+ [xr](t, e) {
53127
+ let i = (a) => {
53128
+ e(a);
53174
53129
  }, r = () => {
53175
- this[yt](this.cwd, this.dmode, (h) => {
53176
- if (h) {
53177
- this[O](h, t), i();
53130
+ this[yt](this.cwd, this.dmode, (a) => {
53131
+ if (a) {
53132
+ this[O](a, t), i();
53178
53133
  return;
53179
53134
  }
53180
- this[Oe] = true, n();
53135
+ this[_e] = true, n();
53181
53136
  });
53182
53137
  }, n = () => {
53183
53138
  if (t.absolute !== this.cwd) {
53184
- let h = f(import_node_path5.default.dirname(String(t.absolute)));
53185
- if (h !== this.cwd) return this[yt](h, this.dmode, (a) => {
53186
- if (a) {
53187
- this[O](a, t), i();
53139
+ let a = f(import_node_path5.default.dirname(String(t.absolute)));
53140
+ if (a !== this.cwd) return this[yt](a, this.dmode, (h) => {
53141
+ if (h) {
53142
+ this[O](h, t), i();
53188
53143
  return;
53189
53144
  }
53190
53145
  o();
@@ -53192,24 +53147,24 @@ var Xt = class extends rt {
53192
53147
  }
53193
53148
  o();
53194
53149
  }, o = () => {
53195
- import_node_fs3.default.lstat(String(t.absolute), (h, a) => {
53196
- if (a && (this.keep || this.newer && a.mtime > (t.mtime ?? a.mtime))) {
53197
- this[Ls](t), i();
53150
+ import_node_fs3.default.lstat(String(t.absolute), (a, h) => {
53151
+ if (h && (this.keep || this.newer && h.mtime > (t.mtime ?? h.mtime))) {
53152
+ this[Ts](t), i();
53198
53153
  return;
53199
53154
  }
53200
- if (h || this[Os](t, a)) return this[P](null, t, i);
53201
- if (a.isDirectory()) {
53155
+ if (a || this[bs](t, h)) return this[P](null, t, i);
53156
+ if (h.isDirectory()) {
53202
53157
  if (t.type === "Directory") {
53203
- let l = this.chmod && t.mode && (a.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
53158
+ let l = this.chmod && t.mode && (h.mode & 4095) !== t.mode, c = (d) => this[P](d ?? null, t, i);
53204
53159
  return l ? import_node_fs3.default.chmod(String(t.absolute), Number(t.mode), c) : c();
53205
53160
  }
53206
53161
  if (t.absolute !== this.cwd) return import_node_fs3.default.rmdir(String(t.absolute), (l) => this[P](l ?? null, t, i));
53207
53162
  }
53208
53163
  if (t.absolute === this.cwd) return this[P](null, t, i);
53209
- uo(String(t.absolute), (l) => this[P](l ?? null, t, i));
53164
+ ao(String(t.absolute), (l) => this[P](l ?? null, t, i));
53210
53165
  });
53211
53166
  };
53212
- this[Oe] ? n() : r();
53167
+ this[_e] ? n() : r();
53213
53168
  }
53214
53169
  [P](t, e, i) {
53215
53170
  if (t) {
@@ -53220,40 +53175,40 @@ var Xt = class extends rt {
53220
53175
  case "File":
53221
53176
  case "OldFile":
53222
53177
  case "ContiguousFile":
53223
- return this[Ts](e, i);
53178
+ return this[_s](e, i);
53224
53179
  case "Link":
53225
- return this[Ir](e, i);
53180
+ return this[Nr](e, i);
53226
53181
  case "SymbolicLink":
53227
- return this[Ar](e, i);
53182
+ return this[Lr](e, i);
53228
53183
  case "Directory":
53229
53184
  case "GNUDumpDir":
53230
- return this[xs](e, i);
53185
+ return this[Os](e, i);
53231
53186
  }
53232
53187
  }
53233
- [gi](t, e, i, r) {
53188
+ [Ri](t, e, i, r) {
53234
53189
  import_node_fs3.default[i](e, String(t.absolute), (n) => {
53235
53190
  n ? this[O](n, t) : (this[$t](), t.resume()), r();
53236
53191
  });
53237
53192
  }
53238
53193
  };
53239
- var ye = (s3) => {
53194
+ var Se = (s3) => {
53240
53195
  try {
53241
53196
  return [null, s3()];
53242
53197
  } catch (t) {
53243
53198
  return [t, null];
53244
53199
  }
53245
53200
  };
53246
- var xe = class extends Xt {
53201
+ var Te = class extends Xt {
53247
53202
  sync = true;
53248
53203
  [P](t, e) {
53249
53204
  return super[P](t, e, () => {
53250
53205
  });
53251
53206
  }
53252
- [_s](t) {
53253
- if (!this[Oe]) {
53207
+ [gs](t) {
53208
+ if (!this[_e]) {
53254
53209
  let n = this[yt](this.cwd, this.dmode);
53255
53210
  if (n) return this[O](n, t);
53256
- this[Oe] = true;
53211
+ this[_e] = true;
53257
53212
  }
53258
53213
  if (t.absolute !== this.cwd) {
53259
53214
  let n = f(import_node_path5.default.dirname(String(t.absolute)));
@@ -53262,74 +53217,74 @@ var xe = class extends Xt {
53262
53217
  if (o) return this[O](o, t);
53263
53218
  }
53264
53219
  }
53265
- let [e, i] = ye(() => import_node_fs3.default.lstatSync(String(t.absolute)));
53266
- if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ls](t);
53267
- if (e || this[Os](t, i)) return this[P](null, t);
53220
+ let [e, i] = Se(() => import_node_fs3.default.lstatSync(String(t.absolute)));
53221
+ if (i && (this.keep || this.newer && i.mtime > (t.mtime ?? i.mtime))) return this[Ts](t);
53222
+ if (e || this[bs](t, i)) return this[P](null, t);
53268
53223
  if (i.isDirectory()) {
53269
53224
  if (t.type === "Directory") {
53270
- let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [h] = o ? ye(() => {
53225
+ let o = this.chmod && t.mode && (i.mode & 4095) !== t.mode, [a] = o ? Se(() => {
53271
53226
  import_node_fs3.default.chmodSync(String(t.absolute), Number(t.mode));
53272
53227
  }) : [];
53273
- return this[P](h, t);
53228
+ return this[P](a, t);
53274
53229
  }
53275
- let [n] = ye(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
53230
+ let [n] = Se(() => import_node_fs3.default.rmdirSync(String(t.absolute)));
53276
53231
  this[P](n, t);
53277
53232
  }
53278
- let [r] = t.absolute === this.cwd ? [] : ye(() => po(String(t.absolute)));
53233
+ let [r] = t.absolute === this.cwd ? [] : Se(() => lo(String(t.absolute)));
53279
53234
  this[P](r, t);
53280
53235
  }
53281
- [Ts](t, e) {
53282
- let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (h) => {
53283
- let a;
53236
+ [_s](t, e) {
53237
+ let i = typeof t.mode == "number" ? t.mode & 4095 : this.fmode, r = (a) => {
53238
+ let h;
53284
53239
  try {
53285
53240
  import_node_fs3.default.closeSync(n);
53286
53241
  } catch (l) {
53287
- a = l;
53242
+ h = l;
53288
53243
  }
53289
- (h || a) && this[O](h || a, t), e();
53244
+ (a || h) && this[O](a || h, t), e();
53290
53245
  }, n;
53291
53246
  try {
53292
- n = import_node_fs3.default.openSync(String(t.absolute), us(t.size), i);
53293
- } catch (h) {
53294
- return r(h);
53247
+ n = import_node_fs3.default.openSync(String(t.absolute), ds(t.size), i);
53248
+ } catch (a) {
53249
+ return r(a);
53295
53250
  }
53296
53251
  let o = this.transform && this.transform(t) || t;
53297
- o !== t && (o.on("error", (h) => this[O](h, t)), t.pipe(o)), o.on("data", (h) => {
53252
+ o !== t && (o.on("error", (a) => this[O](a, t)), t.pipe(o)), o.on("data", (a) => {
53298
53253
  try {
53299
- import_node_fs3.default.writeSync(n, h, 0, h.length);
53300
- } catch (a) {
53301
- r(a);
53254
+ import_node_fs3.default.writeSync(n, a, 0, a.length);
53255
+ } catch (h) {
53256
+ r(h);
53302
53257
  }
53303
53258
  }), o.on("end", () => {
53304
- let h = null;
53259
+ let a = null;
53305
53260
  if (t.mtime && !this.noMtime) {
53306
- let a = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
53261
+ let h = t.atime || /* @__PURE__ */ new Date(), l = t.mtime;
53307
53262
  try {
53308
- import_node_fs3.default.futimesSync(n, a, l);
53263
+ import_node_fs3.default.futimesSync(n, h, l);
53309
53264
  } catch (c) {
53310
53265
  try {
53311
- import_node_fs3.default.utimesSync(String(t.absolute), a, l);
53266
+ import_node_fs3.default.utimesSync(String(t.absolute), h, l);
53312
53267
  } catch {
53313
- h = c;
53268
+ a = c;
53314
53269
  }
53315
53270
  }
53316
53271
  }
53317
- if (this[ge](t)) {
53318
- let a = this[be](t), l = this[_e](t);
53272
+ if (this[Re](t)) {
53273
+ let h = this[ge](t), l = this[be](t);
53319
53274
  try {
53320
- import_node_fs3.default.fchownSync(n, Number(a), Number(l));
53275
+ import_node_fs3.default.fchownSync(n, Number(h), Number(l));
53321
53276
  } catch (c) {
53322
53277
  try {
53323
- import_node_fs3.default.chownSync(String(t.absolute), Number(a), Number(l));
53278
+ import_node_fs3.default.chownSync(String(t.absolute), Number(h), Number(l));
53324
53279
  } catch {
53325
- h = h || c;
53280
+ a = a || c;
53326
53281
  }
53327
53282
  }
53328
53283
  }
53329
- r(h);
53284
+ r(a);
53330
53285
  });
53331
53286
  }
53332
- [xs](t, e) {
53287
+ [Os](t, e) {
53333
53288
  let i = typeof t.mode == "number" ? t.mode & 4095 : this.dmode, r = this[yt](String(t.absolute), i);
53334
53289
  if (r) {
53335
53290
  this[O](r, t), e();
@@ -53339,31 +53294,31 @@ var xe = class extends Xt {
53339
53294
  import_node_fs3.default.utimesSync(String(t.absolute), t.atime || /* @__PURE__ */ new Date(), t.mtime);
53340
53295
  } catch {
53341
53296
  }
53342
- if (this[ge](t)) try {
53343
- import_node_fs3.default.chownSync(String(t.absolute), Number(this[be](t)), Number(this[_e](t)));
53297
+ if (this[Re](t)) try {
53298
+ import_node_fs3.default.chownSync(String(t.absolute), Number(this[ge](t)), Number(this[be](t)));
53344
53299
  } catch {
53345
53300
  }
53346
53301
  e(), t.resume();
53347
53302
  }
53348
53303
  [yt](t, e) {
53349
53304
  try {
53350
- return _r(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
53305
+ return Rr(f(t), { uid: this.uid, gid: this.gid, processUid: this.processUid, processGid: this.processGid, umask: this.processUmask, preserve: this.preservePaths, unlink: this.unlink, cwd: this.cwd, mode: e });
53351
53306
  } catch (i) {
53352
53307
  return i;
53353
53308
  }
53354
53309
  }
53355
- [Re](t, e, i, r, n) {
53310
+ [ye](t, e, i, r, n) {
53356
53311
  if (this.preservePaths || i.length === 0) return r();
53357
53312
  let o = e;
53358
- for (let h of i) {
53359
- o = import_node_path5.default.resolve(o, h);
53360
- let [a, l] = ye(() => import_node_fs3.default.lstatSync(o));
53361
- if (a) return r();
53313
+ for (let a of i) {
53314
+ o = import_node_path5.default.resolve(o, a);
53315
+ let [h, l] = Se(() => import_node_fs3.default.lstatSync(o));
53316
+ if (h) return r();
53362
53317
  if (l.isSymbolicLink()) return n(new St(o, import_node_path5.default.resolve(e, i.join("/"))));
53363
53318
  }
53364
53319
  r();
53365
53320
  }
53366
- [gi](t, e, i, r) {
53321
+ [Ri](t, e, i, r) {
53367
53322
  let n = `${i}Sync`;
53368
53323
  try {
53369
53324
  import_node_fs3.default[n](e, String(t.absolute)), r(), t.resume();
@@ -53372,47 +53327,47 @@ var xe = class extends Xt {
53372
53327
  }
53373
53328
  }
53374
53329
  };
53375
- var Eo = (s3) => {
53376
- let t = new xe(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
53377
- new Be(e, { readSize: r, size: i.size }).pipe(t);
53330
+ var co = (s3) => {
53331
+ let t = new Te(s3), e = s3.file, i = import_node_fs2.default.statSync(e), r = s3.maxReadSize || 16 * 1024 * 1024;
53332
+ new Me(e, { readSize: r, size: i.size }).pipe(t);
53378
53333
  };
53379
- var wo = (s3, t) => {
53334
+ var fo = (s3, t) => {
53380
53335
  let e = new Xt(s3), i = s3.maxReadSize || 16 * 1024 * 1024, r = s3.file;
53381
- return new Promise((o, h) => {
53382
- e.on("error", h), e.on("close", o), import_node_fs2.default.stat(r, (a, l) => {
53383
- if (a) h(a);
53336
+ return new Promise((o, a) => {
53337
+ e.on("error", a), e.on("close", o), import_node_fs2.default.stat(r, (h, l) => {
53338
+ if (h) a(h);
53384
53339
  else {
53385
53340
  let c = new _t(r, { readSize: i, size: l.size });
53386
- c.on("error", h), c.pipe(e);
53341
+ c.on("error", a), c.pipe(e);
53387
53342
  }
53388
53343
  });
53389
53344
  });
53390
53345
  };
53391
- var So = K(Eo, wo, (s3) => new xe(s3), (s3) => new Xt(s3), (s3, t) => {
53392
- t?.length && Qi(s3, t);
53346
+ var uo = K(co, fo, (s3) => new Te(s3), (s3) => new Xt(s3), (s3, t) => {
53347
+ t?.length && Xi(s3, t);
53393
53348
  });
53394
- var yo = (s3, t) => {
53349
+ var mo = (s3, t) => {
53395
53350
  let e = new kt(s3), i = true, r, n;
53396
53351
  try {
53397
53352
  try {
53398
53353
  r = import_node_fs6.default.openSync(s3.file, "r+");
53399
- } catch (a) {
53400
- if (a?.code === "ENOENT") r = import_node_fs6.default.openSync(s3.file, "w+");
53401
- else throw a;
53354
+ } catch (h) {
53355
+ if (h?.code === "ENOENT") r = import_node_fs6.default.openSync(s3.file, "w+");
53356
+ else throw h;
53402
53357
  }
53403
- let o = import_node_fs6.default.fstatSync(r), h = Buffer.alloc(512);
53358
+ let o = import_node_fs6.default.fstatSync(r), a = Buffer.alloc(512);
53404
53359
  t: for (n = 0; n < o.size; n += 512) {
53405
53360
  for (let c = 0, d = 0; c < 512; c += d) {
53406
- if (d = import_node_fs6.default.readSync(r, h, c, h.length - c, n + c), n === 0 && h[0] === 31 && h[1] === 139) throw new Error("cannot append to compressed archives");
53361
+ if (d = import_node_fs6.default.readSync(r, a, c, a.length - c, n + c), n === 0 && a[0] === 31 && a[1] === 139) throw new Error("cannot append to compressed archives");
53407
53362
  if (!d) break t;
53408
53363
  }
53409
- let a = new F(h);
53410
- if (!a.cksumValid) break;
53411
- let l = 512 * Math.ceil((a.size || 0) / 512);
53364
+ let h = new C(a);
53365
+ if (!h.cksumValid) break;
53366
+ let l = 512 * Math.ceil((h.size || 0) / 512);
53412
53367
  if (n + l + 512 > o.size) break;
53413
- n += l, s3.mtimeCache && a.mtime && s3.mtimeCache.set(String(a.path), a.mtime);
53368
+ n += l, s3.mtimeCache && h.mtime && s3.mtimeCache.set(String(h.path), h.mtime);
53414
53369
  }
53415
- i = false, Ro(s3, e, n, r, t);
53370
+ i = false, po(s3, e, n, r, t);
53416
53371
  } finally {
53417
53372
  if (i) try {
53418
53373
  import_node_fs6.default.closeSync(r);
@@ -53420,69 +53375,69 @@ var yo = (s3, t) => {
53420
53375
  }
53421
53376
  }
53422
53377
  };
53423
- var Ro = (s3, t, e, i, r) => {
53378
+ var po = (s3, t, e, i, r) => {
53424
53379
  let n = new Wt(s3.file, { fd: i, start: e });
53425
- t.pipe(n), bo(t, r);
53380
+ t.pipe(n), wo(t, r);
53426
53381
  };
53427
- var go = (s3, t) => {
53382
+ var Eo = (s3, t) => {
53428
53383
  t = Array.from(t);
53429
- let e = new wt(s3), i = (n, o, h) => {
53430
- let a = (T, D) => {
53431
- T ? import_node_fs6.default.close(n, (E) => h(T)) : h(null, D);
53384
+ let e = new wt(s3), i = (n, o, a) => {
53385
+ let h = (T, N) => {
53386
+ T ? import_node_fs6.default.close(n, (E) => a(T)) : a(null, N);
53432
53387
  }, l = 0;
53433
- if (o === 0) return a(null, 0);
53434
- let c = 0, d = Buffer.alloc(512), S = (T, D) => {
53435
- if (T || D === void 0) return a(T);
53436
- if (c += D, c < 512 && D) return import_node_fs6.default.read(n, d, c, d.length - c, l + c, S);
53437
- if (l === 0 && d[0] === 31 && d[1] === 139) return a(new Error("cannot append to compressed archives"));
53438
- if (c < 512) return a(null, l);
53439
- let E = new F(d);
53440
- if (!E.cksumValid) return a(null, l);
53388
+ if (o === 0) return h(null, 0);
53389
+ let c = 0, d = Buffer.alloc(512), S = (T, N) => {
53390
+ if (T || N === void 0) return h(T);
53391
+ if (c += N, c < 512 && N) return import_node_fs6.default.read(n, d, c, d.length - c, l + c, S);
53392
+ if (l === 0 && d[0] === 31 && d[1] === 139) return h(new Error("cannot append to compressed archives"));
53393
+ if (c < 512) return h(null, l);
53394
+ let E = new C(d);
53395
+ if (!E.cksumValid) return h(null, l);
53441
53396
  let x = 512 * Math.ceil((E.size ?? 0) / 512);
53442
- if (l + x + 512 > o || (l += x + 512, l >= o)) return a(null, l);
53397
+ if (l + x + 512 > o || (l += x + 512, l >= o)) return h(null, l);
53443
53398
  s3.mtimeCache && E.mtime && s3.mtimeCache.set(String(E.path), E.mtime), c = 0, import_node_fs6.default.read(n, d, 0, 512, l, S);
53444
53399
  };
53445
53400
  import_node_fs6.default.read(n, d, 0, 512, l, S);
53446
53401
  };
53447
53402
  return new Promise((n, o) => {
53448
53403
  e.on("error", o);
53449
- let h = "r+", a = (l, c) => {
53450
- if (l && l.code === "ENOENT" && h === "r+") return h = "w+", import_node_fs6.default.open(s3.file, h, a);
53404
+ let a = "r+", h = (l, c) => {
53405
+ if (l && l.code === "ENOENT" && a === "r+") return a = "w+", import_node_fs6.default.open(s3.file, a, h);
53451
53406
  if (l || !c) return o(l);
53452
53407
  import_node_fs6.default.fstat(c, (d, S) => {
53453
53408
  if (d) return import_node_fs6.default.close(c, () => o(d));
53454
- i(c, S.size, (T, D) => {
53409
+ i(c, S.size, (T, N) => {
53455
53410
  if (T) return o(T);
53456
- let E = new et(s3.file, { fd: c, start: D });
53457
- e.pipe(E), E.on("error", o), E.on("close", n), _o(e, t);
53411
+ let E = new tt(s3.file, { fd: c, start: N });
53412
+ e.pipe(E), E.on("error", o), E.on("close", n), So(e, t);
53458
53413
  });
53459
53414
  });
53460
53415
  };
53461
- import_node_fs6.default.open(s3.file, h, a);
53416
+ import_node_fs6.default.open(s3.file, a, h);
53462
53417
  });
53463
53418
  };
53464
- var bo = (s3, t) => {
53419
+ var wo = (s3, t) => {
53465
53420
  t.forEach((e) => {
53466
- e.charAt(0) === "@" ? Ct({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53421
+ e.charAt(0) === "@" ? Ft({ file: import_node_path9.default.resolve(s3.cwd, e.slice(1)), sync: true, noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53467
53422
  }), s3.end();
53468
53423
  };
53469
- var _o = async (s3, t) => {
53470
- for (let e of t) e.charAt(0) === "@" ? await Ct({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53424
+ var So = async (s3, t) => {
53425
+ for (let e of t) e.charAt(0) === "@" ? await Ft({ file: import_node_path9.default.resolve(String(s3.cwd), e.slice(1)), noResume: true, onReadEntry: (i) => s3.add(i) }) : s3.add(e);
53471
53426
  s3.end();
53472
53427
  };
53473
- var vt = K(yo, go, () => {
53428
+ var vt = K(mo, Eo, () => {
53474
53429
  throw new TypeError("file is required");
53475
53430
  }, () => {
53476
53431
  throw new TypeError("file is required");
53477
53432
  }, (s3, t) => {
53478
- if (!Bs(s3)) throw new TypeError("file is required");
53433
+ if (!vs(s3)) throw new TypeError("file is required");
53479
53434
  if (s3.gzip || s3.brotli || s3.zstd || s3.file.endsWith(".br") || s3.file.endsWith(".tbr")) throw new TypeError("cannot append to compressed archives");
53480
53435
  if (!t?.length) throw new TypeError("no paths specified to add/replace");
53481
53436
  });
53482
- var Oo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
53483
- vt.validate?.(s3, t), To(s3);
53437
+ var yo = K(vt.syncFile, vt.asyncFile, vt.syncNoFile, vt.asyncNoFile, (s3, t = []) => {
53438
+ vt.validate?.(s3, t), Ro(s3);
53484
53439
  });
53485
- var To = (s3) => {
53440
+ var Ro = (s3) => {
53486
53441
  let t = s3.filter;
53487
53442
  s3.mtimeCache || (s3.mtimeCache = /* @__PURE__ */ new Map()), s3.filter = t ? (e, i) => t(e, i) && !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0)) : (e, i) => !((s3.mtimeCache?.get(e) ?? i.mtime ?? 0) > (i.mtime ?? 0));
53488
53443
  };
@@ -54674,9 +54629,9 @@ var Mime_default = Mime;
54674
54629
  var src_default = new Mime_default(standard_default, other_default)._freeze();
54675
54630
 
54676
54631
  // ../../../node_modules/axios/lib/helpers/bind.js
54677
- function bind(fn, thisArg) {
54632
+ function bind(fn2, thisArg) {
54678
54633
  return function wrap2() {
54679
- return fn.apply(thisArg, arguments);
54634
+ return fn2.apply(thisArg, arguments);
54680
54635
  };
54681
54636
  }
54682
54637
 
@@ -54788,7 +54743,7 @@ var [isReadableStream, isRequest, isResponse, isHeaders] = [
54788
54743
  var trim = (str) => {
54789
54744
  return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
54790
54745
  };
54791
- function forEach(obj, fn, { allOwnKeys = false } = {}) {
54746
+ function forEach(obj, fn2, { allOwnKeys = false } = {}) {
54792
54747
  if (obj === null || typeof obj === "undefined") {
54793
54748
  return;
54794
54749
  }
@@ -54799,7 +54754,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
54799
54754
  }
54800
54755
  if (isArray(obj)) {
54801
54756
  for (i = 0, l = obj.length; i < l; i++) {
54802
- fn.call(null, obj[i], i, obj);
54757
+ fn2.call(null, obj[i], i, obj);
54803
54758
  }
54804
54759
  } else {
54805
54760
  if (isBuffer(obj)) {
@@ -54810,7 +54765,7 @@ function forEach(obj, fn, { allOwnKeys = false } = {}) {
54810
54765
  let key;
54811
54766
  for (i = 0; i < len; i++) {
54812
54767
  key = keys[i];
54813
- fn.call(null, obj[key], key, obj);
54768
+ fn2.call(null, obj[key], key, obj);
54814
54769
  }
54815
54770
  }
54816
54771
  }
@@ -54968,13 +54923,13 @@ var isTypedArray = /* @__PURE__ */ ((TypedArray) => {
54968
54923
  return TypedArray && thing instanceof TypedArray;
54969
54924
  };
54970
54925
  })(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
54971
- var forEachEntry = (obj, fn) => {
54926
+ var forEachEntry = (obj, fn2) => {
54972
54927
  const generator = obj && obj[iterator];
54973
54928
  const _iterator = generator.call(obj);
54974
54929
  let result;
54975
54930
  while ((result = _iterator.next()) && !result.done) {
54976
54931
  const pair = result.value;
54977
- fn.call(obj, pair[0], pair[1]);
54932
+ fn2.call(obj, pair[0], pair[1]);
54978
54933
  }
54979
54934
  };
54980
54935
  var matchAll = (regExp, str) => {
@@ -55886,10 +55841,10 @@ var InterceptorManager = class {
55886
55841
  *
55887
55842
  * @returns {void}
55888
55843
  */
55889
- forEach(fn) {
55844
+ forEach(fn2) {
55890
55845
  utils_default.forEach(this.handlers, function forEachHandler(h) {
55891
55846
  if (h !== null) {
55892
- fn(h);
55847
+ fn2(h);
55893
55848
  }
55894
55849
  });
55895
55850
  }
@@ -56172,8 +56127,8 @@ function transformData(fns, response) {
56172
56127
  const context = response || config;
56173
56128
  const headers = AxiosHeaders_default.from(context.headers);
56174
56129
  let data = context.data;
56175
- utils_default.forEach(fns, function transform(fn) {
56176
- data = fn.call(config, data, headers.normalize(), response ? response.status : void 0);
56130
+ utils_default.forEach(fns, function transform(fn2) {
56131
+ data = fn2.call(config, data, headers.normalize(), response ? response.status : void 0);
56177
56132
  });
56178
56133
  headers.normalize();
56179
56134
  return data;
@@ -56723,17 +56678,17 @@ var Http2Sessions = class {
56723
56678
  var Http2Sessions_default = Http2Sessions;
56724
56679
 
56725
56680
  // ../../../node_modules/axios/lib/helpers/callbackify.js
56726
- var callbackify = (fn, reducer) => {
56727
- return utils_default.isAsyncFn(fn) ? function(...args) {
56681
+ var callbackify = (fn2, reducer) => {
56682
+ return utils_default.isAsyncFn(fn2) ? function(...args) {
56728
56683
  const cb = args.pop();
56729
- fn.apply(this, args).then((value) => {
56684
+ fn2.apply(this, args).then((value) => {
56730
56685
  try {
56731
56686
  reducer ? cb(null, ...reducer(value)) : cb(null, value);
56732
56687
  } catch (err) {
56733
56688
  cb(err);
56734
56689
  }
56735
56690
  }, cb);
56736
- } : fn;
56691
+ } : fn2;
56737
56692
  };
56738
56693
  var callbackify_default = callbackify;
56739
56694
 
@@ -56913,7 +56868,7 @@ function speedometer(samplesCount, min) {
56913
56868
  var speedometer_default = speedometer;
56914
56869
 
56915
56870
  // ../../../node_modules/axios/lib/helpers/throttle.js
56916
- function throttle(fn, freq) {
56871
+ function throttle(fn2, freq) {
56917
56872
  let timestamp = 0;
56918
56873
  let threshold = 1e3 / freq;
56919
56874
  let lastArgs;
@@ -56925,7 +56880,7 @@ function throttle(fn, freq) {
56925
56880
  clearTimeout(timer);
56926
56881
  timer = null;
56927
56882
  }
56928
- fn(...args);
56883
+ fn2(...args);
56929
56884
  };
56930
56885
  const throttled = (...args) => {
56931
56886
  const now = Date.now();
@@ -56986,7 +56941,7 @@ var progressEventDecorator = (total, throttled) => {
56986
56941
  throttled[1]
56987
56942
  ];
56988
56943
  };
56989
- var asyncDecorator = (fn) => (...args) => utils_default.asap(() => fn(...args));
56944
+ var asyncDecorator = (fn2) => (...args) => utils_default.asap(() => fn2(...args));
56990
56945
 
56991
56946
  // ../../../node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js
56992
56947
  var isHexDigit = (charCode) => charCode >= 48 && charCode <= 57 || charCode >= 65 && charCode <= 70 || charCode >= 97 && charCode <= 102;
@@ -58521,9 +58476,9 @@ var decodeURIComponentSafe2 = (value) => {
58521
58476
  return value;
58522
58477
  }
58523
58478
  };
58524
- var test = (fn, ...args) => {
58479
+ var test = (fn2, ...args) => {
58525
58480
  try {
58526
- return !!fn(...args);
58481
+ return !!fn2(...args);
58527
58482
  } catch (e) {
58528
58483
  return false;
58529
58484
  }
@@ -58918,13 +58873,13 @@ var knownAdapters = {
58918
58873
  get: getFetch
58919
58874
  }
58920
58875
  };
58921
- utils_default.forEach(knownAdapters, (fn, value) => {
58922
- if (fn) {
58876
+ utils_default.forEach(knownAdapters, (fn2, value) => {
58877
+ if (fn2) {
58923
58878
  try {
58924
- Object.defineProperty(fn, "name", { __proto__: null, value });
58879
+ Object.defineProperty(fn2, "name", { __proto__: null, value });
58925
58880
  } catch (e) {
58926
58881
  }
58927
- Object.defineProperty(fn, "adapterName", { __proto__: null, value });
58882
+ Object.defineProperty(fn2, "adapterName", { __proto__: null, value });
58928
58883
  }
58929
58884
  });
58930
58885
  var renderReason = (reason) => `- ${reason}`;
@@ -59621,7 +59576,7 @@ function getStore() {
59621
59576
  function readline() {
59622
59577
  return getStore().rl;
59623
59578
  }
59624
- function withUpdates(fn) {
59579
+ function withUpdates(fn2) {
59625
59580
  const wrapped = (...args) => {
59626
59581
  const store = getStore();
59627
59582
  let shouldUpdate = false;
@@ -59629,7 +59584,7 @@ function withUpdates(fn) {
59629
59584
  store.handleChange = () => {
59630
59585
  shouldUpdate = true;
59631
59586
  };
59632
- const returnValue = fn(...args);
59587
+ const returnValue = fn2(...args);
59633
59588
  if (shouldUpdate) {
59634
59589
  oldHandleChange();
59635
59590
  }
@@ -60095,11 +60050,11 @@ function usePrefix({ status = "idle", theme }) {
60095
60050
  }
60096
60051
 
60097
60052
  // ../../../node_modules/@inquirer/core/dist/esm/lib/use-memo.js
60098
- function useMemo(fn, dependencies) {
60053
+ function useMemo(fn2, dependencies) {
60099
60054
  return withPointer((pointer) => {
60100
60055
  const prev = pointer.get();
60101
60056
  if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
60102
- const value = fn();
60057
+ const value = fn2();
60103
60058
  pointer.set({ value, dependencies });
60104
60059
  return value;
60105
60060
  }
@@ -60286,12 +60241,12 @@ var Emitter = class {
60286
60241
  configurable: false
60287
60242
  });
60288
60243
  }
60289
- on(ev, fn) {
60290
- this.listeners[ev].push(fn);
60244
+ on(ev, fn2) {
60245
+ this.listeners[ev].push(fn2);
60291
60246
  }
60292
- removeListener(ev, fn) {
60247
+ removeListener(ev, fn2) {
60293
60248
  const list = this.listeners[ev];
60294
- const i = list.indexOf(fn);
60249
+ const i = list.indexOf(fn2);
60295
60250
  if (i === -1) {
60296
60251
  return;
60297
60252
  }
@@ -60307,8 +60262,8 @@ var Emitter = class {
60307
60262
  }
60308
60263
  this.emitted[ev] = true;
60309
60264
  let ret = false;
60310
- for (const fn of this.listeners[ev]) {
60311
- ret = fn(code, signal) === true || ret;
60265
+ for (const fn2 of this.listeners[ev]) {
60266
+ ret = fn2(code, signal) === true || ret;
60312
60267
  }
60313
60268
  if (ev === "exit") {
60314
60269
  ret = this.emit("afterExit", code, signal) || ret;
@@ -60402,9 +60357,9 @@ var SignalExit = class extends SignalExitBase {
60402
60357
  this.#emitter.count += 1;
60403
60358
  for (const sig of signals) {
60404
60359
  try {
60405
- const fn = this.#sigListeners[sig];
60406
- if (fn)
60407
- this.#process.on(sig, fn);
60360
+ const fn2 = this.#sigListeners[sig];
60361
+ if (fn2)
60362
+ this.#process.on(sig, fn2);
60408
60363
  } catch (_3) {
60409
60364
  }
60410
60365
  }
@@ -62959,12 +62914,12 @@ var Emitter2 = class {
62959
62914
  configurable: false
62960
62915
  });
62961
62916
  }
62962
- on(ev, fn) {
62963
- this.listeners[ev].push(fn);
62917
+ on(ev, fn2) {
62918
+ this.listeners[ev].push(fn2);
62964
62919
  }
62965
- removeListener(ev, fn) {
62920
+ removeListener(ev, fn2) {
62966
62921
  const list = this.listeners[ev];
62967
- const i = list.indexOf(fn);
62922
+ const i = list.indexOf(fn2);
62968
62923
  if (i === -1) {
62969
62924
  return;
62970
62925
  }
@@ -62980,8 +62935,8 @@ var Emitter2 = class {
62980
62935
  }
62981
62936
  this.emitted[ev] = true;
62982
62937
  let ret = false;
62983
- for (const fn of this.listeners[ev]) {
62984
- ret = fn(code, signal) === true || ret;
62938
+ for (const fn2 of this.listeners[ev]) {
62939
+ ret = fn2(code, signal) === true || ret;
62985
62940
  }
62986
62941
  if (ev === "exit") {
62987
62942
  ret = this.emit("afterExit", code, signal) || ret;
@@ -63075,9 +63030,9 @@ var SignalExit2 = class extends SignalExitBase2 {
63075
63030
  this.#emitter.count += 1;
63076
63031
  for (const sig of signals2) {
63077
63032
  try {
63078
- const fn = this.#sigListeners[sig];
63079
- if (fn)
63080
- this.#process.on(sig, fn);
63033
+ const fn2 = this.#sigListeners[sig];
63034
+ if (fn2)
63035
+ this.#process.on(sig, fn2);
63081
63036
  } catch (_3) {
63082
63037
  }
63083
63038
  }
@@ -64813,7 +64768,7 @@ function expand_(str, isTop) {
64813
64768
  }
64814
64769
  }
64815
64770
  }
64816
- let N2;
64771
+ let N;
64817
64772
  if (isSequence && n[0] !== void 0 && n[1] !== void 0) {
64818
64773
  const x = numeric(n[0]);
64819
64774
  const y2 = numeric(n[1]);
@@ -64826,7 +64781,7 @@ function expand_(str, isTop) {
64826
64781
  test2 = gte;
64827
64782
  }
64828
64783
  const pad = n.some(isPadded);
64829
- N2 = [];
64784
+ N = [];
64830
64785
  for (let i = x; test2(i, y2); i += incr) {
64831
64786
  let c;
64832
64787
  if (isAlphaSequence) {
@@ -64848,17 +64803,17 @@ function expand_(str, isTop) {
64848
64803
  }
64849
64804
  }
64850
64805
  }
64851
- N2.push(c);
64806
+ N.push(c);
64852
64807
  }
64853
64808
  } else {
64854
- N2 = [];
64809
+ N = [];
64855
64810
  for (let j2 = 0; j2 < n.length; j2++) {
64856
- N2.push.apply(N2, expand_(n[j2], false));
64811
+ N.push.apply(N, expand_(n[j2], false));
64857
64812
  }
64858
64813
  }
64859
- for (let j2 = 0; j2 < N2.length; j2++) {
64814
+ for (let j2 = 0; j2 < N.length; j2++) {
64860
64815
  for (let k2 = 0; k2 < post.length; k2++) {
64861
- const expansion = pre + N2[j2] + post[k2];
64816
+ const expansion = pre + N[j2] + post[k2];
64862
64817
  if (!isTop || isSequence || expansion) {
64863
64818
  expansions.push(expansion);
64864
64819
  }
@@ -66216,8 +66171,8 @@ var import_node_url2 = require("node:url");
66216
66171
  var defaultPerf = typeof performance === "object" && performance && typeof performance.now === "function" ? performance : Date;
66217
66172
  var warned = /* @__PURE__ */ new Set();
66218
66173
  var PROCESS = typeof process === "object" && !!process ? process : {};
66219
- var emitWarning = (msg, type, code, fn) => {
66220
- typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn) : console.error(`[${code}] ${type}: ${msg}`);
66174
+ var emitWarning = (msg, type, code, fn2) => {
66175
+ typeof PROCESS.emitWarning === "function" ? PROCESS.emitWarning(msg, type, code, fn2) : console.error(`[${code}] ${type}: ${msg}`);
66221
66176
  };
66222
66177
  var AC = globalThis.AbortController;
66223
66178
  var AS = globalThis.AbortSignal;
@@ -66227,8 +66182,8 @@ if (typeof AC === "undefined") {
66227
66182
  _onabort = [];
66228
66183
  reason;
66229
66184
  aborted = false;
66230
- addEventListener(_3, fn) {
66231
- this._onabort.push(fn);
66185
+ addEventListener(_3, fn2) {
66186
+ this._onabort.push(fn2);
66232
66187
  }
66233
66188
  };
66234
66189
  AC = class AbortController {
@@ -66241,8 +66196,8 @@ if (typeof AC === "undefined") {
66241
66196
  return;
66242
66197
  this.signal.reason = reason;
66243
66198
  this.signal.aborted = true;
66244
- for (const fn of this.signal._onabort) {
66245
- fn(reason);
66199
+ for (const fn2 of this.signal._onabort) {
66200
+ fn2(reason);
66246
66201
  }
66247
66202
  this.signal.onabort?.(reason);
66248
66203
  }
@@ -66843,13 +66798,13 @@ var LRUCache = class _LRUCache {
66843
66798
  * Find a value for which the supplied fn method returns a truthy value,
66844
66799
  * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.
66845
66800
  */
66846
- find(fn, getOptions = {}) {
66801
+ find(fn2, getOptions = {}) {
66847
66802
  for (const i of this.#indexes()) {
66848
66803
  const v2 = this.#valList[i];
66849
66804
  const value = this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
66850
66805
  if (value === void 0)
66851
66806
  continue;
66852
- if (fn(value, this.#keyList[i], this)) {
66807
+ if (fn2(value, this.#keyList[i], this)) {
66853
66808
  return this.get(this.#keyList[i], getOptions);
66854
66809
  }
66855
66810
  }
@@ -66865,26 +66820,26 @@ var LRUCache = class _LRUCache {
66865
66820
  *
66866
66821
  * Does not update age or recenty of use, or iterate over stale values.
66867
66822
  */
66868
- forEach(fn, thisp = this) {
66823
+ forEach(fn2, thisp = this) {
66869
66824
  for (const i of this.#indexes()) {
66870
66825
  const v2 = this.#valList[i];
66871
66826
  const value = this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
66872
66827
  if (value === void 0)
66873
66828
  continue;
66874
- fn.call(thisp, value, this.#keyList[i], this);
66829
+ fn2.call(thisp, value, this.#keyList[i], this);
66875
66830
  }
66876
66831
  }
66877
66832
  /**
66878
66833
  * The same as {@link LRUCache.forEach} but items are iterated over in
66879
66834
  * reverse order. (ie, less recently used items are iterated over first.)
66880
66835
  */
66881
- rforEach(fn, thisp = this) {
66836
+ rforEach(fn2, thisp = this) {
66882
66837
  for (const i of this.#rindexes()) {
66883
66838
  const v2 = this.#valList[i];
66884
66839
  const value = this.#isBackgroundFetch(v2) ? v2.__staleWhileFetching : v2;
66885
66840
  if (value === void 0)
66886
66841
  continue;
66887
- fn.call(thisp, value, this.#keyList[i], this);
66842
+ fn2.call(thisp, value, this.#keyList[i], this);
66888
66843
  }
66889
66844
  }
66890
66845
  /**
@@ -67662,8 +67617,8 @@ var ABORTED = /* @__PURE__ */ Symbol("aborted");
67662
67617
  var SIGNAL = /* @__PURE__ */ Symbol("signal");
67663
67618
  var DATALISTENERS = /* @__PURE__ */ Symbol("dataListeners");
67664
67619
  var DISCARDED = /* @__PURE__ */ Symbol("discarded");
67665
- var defer2 = (fn) => Promise.resolve().then(fn);
67666
- var nodefer = (fn) => fn();
67620
+ var defer2 = (fn2) => Promise.resolve().then(fn2);
67621
+ var nodefer = (fn2) => fn2();
67667
67622
  var isEndish = (ev) => ev === "end" || ev === "finish" || ev === "prefinish";
67668
67623
  var isArrayBufferLike = (b2) => b2 instanceof ArrayBuffer || !!b2 && typeof b2 === "object" && b2.constructor && b2.constructor.name === "ArrayBuffer" && b2.byteLength >= 0;
67669
67624
  var isArrayBufferView2 = (b2) => !Buffer.isBuffer(b2) && ArrayBuffer.isView(b2);
@@ -67865,7 +67820,7 @@ var Minipass = class extends import_node_events2.EventEmitter {
67865
67820
  }
67866
67821
  if (!encoding)
67867
67822
  encoding = "utf8";
67868
- const fn = this[ASYNC] ? defer2 : nodefer;
67823
+ const fn2 = this[ASYNC] ? defer2 : nodefer;
67869
67824
  if (!this[OBJECTMODE] && !Buffer.isBuffer(chunk)) {
67870
67825
  if (isArrayBufferView2(chunk)) {
67871
67826
  chunk = Buffer.from(chunk.buffer, chunk.byteOffset, chunk.byteLength);
@@ -67885,14 +67840,14 @@ var Minipass = class extends import_node_events2.EventEmitter {
67885
67840
  if (this[BUFFERLENGTH] !== 0)
67886
67841
  this.emit("readable");
67887
67842
  if (cb)
67888
- fn(cb);
67843
+ fn2(cb);
67889
67844
  return this[FLOWING];
67890
67845
  }
67891
67846
  if (!chunk.length) {
67892
67847
  if (this[BUFFERLENGTH] !== 0)
67893
67848
  this.emit("readable");
67894
67849
  if (cb)
67895
- fn(cb);
67850
+ fn2(cb);
67896
67851
  return this[FLOWING];
67897
67852
  }
67898
67853
  if (typeof chunk === "string" && // unless it is a string already ready for us to use
@@ -67911,7 +67866,7 @@ var Minipass = class extends import_node_events2.EventEmitter {
67911
67866
  if (this[BUFFERLENGTH] !== 0)
67912
67867
  this.emit("readable");
67913
67868
  if (cb)
67914
- fn(cb);
67869
+ fn2(cb);
67915
67870
  return this[FLOWING];
67916
67871
  }
67917
67872
  /**
@@ -70748,18 +70703,18 @@ var GlobUtil = class {
70748
70703
  if (this.signal?.aborted)
70749
70704
  return;
70750
70705
  this.paused = false;
70751
- let fn = void 0;
70752
- while (!this.paused && (fn = this.#onResume.shift())) {
70753
- fn();
70706
+ let fn2 = void 0;
70707
+ while (!this.paused && (fn2 = this.#onResume.shift())) {
70708
+ fn2();
70754
70709
  }
70755
70710
  }
70756
- onResume(fn) {
70711
+ onResume(fn2) {
70757
70712
  if (this.signal?.aborted)
70758
70713
  return;
70759
70714
  if (!this.paused) {
70760
- fn();
70715
+ fn2();
70761
70716
  } else {
70762
- this.#onResume.push(fn);
70717
+ this.#onResume.push(fn2);
70763
70718
  }
70764
70719
  }
70765
70720
  // do the requisite realpath/stat checking, and return the path
@@ -71405,9 +71360,9 @@ var ignoreENOENT = async (p2, rethrow) => p2.catch((er2) => {
71405
71360
  }
71406
71361
  throw rethrow ?? er2;
71407
71362
  });
71408
- var ignoreENOENTSync = (fn, rethrow) => {
71363
+ var ignoreENOENTSync = (fn2, rethrow) => {
71409
71364
  try {
71410
- return fn();
71365
+ return fn2();
71411
71366
  } catch (er2) {
71412
71367
  if (errorCode(er2) === "ENOENT") {
71413
71368
  return;
@@ -71498,28 +71453,28 @@ var import_path9 = require("path");
71498
71453
 
71499
71454
  // ../../../node_modules/rimraf/dist/esm/fix-eperm.js
71500
71455
  var { chmod } = promises;
71501
- var fixEPERM = (fn) => async (path3) => {
71456
+ var fixEPERM = (fn2) => async (path3) => {
71502
71457
  try {
71503
- return void await ignoreENOENT(fn(path3));
71458
+ return void await ignoreENOENT(fn2(path3));
71504
71459
  } catch (er2) {
71505
71460
  if (errorCode(er2) === "EPERM") {
71506
71461
  if (!await ignoreENOENT(chmod(path3, 438).then(() => true), er2)) {
71507
71462
  return;
71508
71463
  }
71509
- return void await fn(path3);
71464
+ return void await fn2(path3);
71510
71465
  }
71511
71466
  throw er2;
71512
71467
  }
71513
71468
  };
71514
- var fixEPERMSync = (fn) => (path3) => {
71469
+ var fixEPERMSync = (fn2) => (path3) => {
71515
71470
  try {
71516
- return void ignoreENOENTSync(() => fn(path3));
71471
+ return void ignoreENOENTSync(() => fn2(path3));
71517
71472
  } catch (er2) {
71518
71473
  if (errorCode(er2) === "EPERM") {
71519
71474
  if (!ignoreENOENTSync(() => ((0, import_fs8.chmodSync)(path3, 438), true), er2)) {
71520
71475
  return;
71521
71476
  }
71522
- return void fn(path3);
71477
+ return void fn2(path3);
71523
71478
  }
71524
71479
  throw er2;
71525
71480
  }
@@ -71531,7 +71486,7 @@ var MAXBACKOFF = 200;
71531
71486
  var RATE = 1.2;
71532
71487
  var MAXRETRIES = 10;
71533
71488
  var codes = /* @__PURE__ */ new Set(["EMFILE", "ENFILE", "EBUSY"]);
71534
- var retryBusy = (fn) => {
71489
+ var retryBusy = (fn2) => {
71535
71490
  const method = async (path3, opt, backoff = 1, total = 0) => {
71536
71491
  const mbo = opt.maxBackoff || MAXBACKOFF;
71537
71492
  const rate = opt.backoff || RATE;
@@ -71539,7 +71494,7 @@ var retryBusy = (fn) => {
71539
71494
  let retries = 0;
71540
71495
  while (true) {
71541
71496
  try {
71542
- return await fn(path3);
71497
+ return await fn2(path3);
71543
71498
  } catch (er2) {
71544
71499
  if (isFsError(er2) && er2.path === path3 && codes.has(er2.code)) {
71545
71500
  backoff = Math.ceil(backoff * rate);
@@ -71559,13 +71514,13 @@ var retryBusy = (fn) => {
71559
71514
  };
71560
71515
  return method;
71561
71516
  };
71562
- var retryBusySync = (fn) => {
71517
+ var retryBusySync = (fn2) => {
71563
71518
  const method = (path3, opt) => {
71564
71519
  const max = opt.maxRetries || MAXRETRIES;
71565
71520
  let retries = 0;
71566
71521
  while (true) {
71567
71522
  try {
71568
- return fn(path3);
71523
+ return fn2(path3);
71569
71524
  } catch (er2) {
71570
71525
  if (isFsError(er2) && er2.path === path3 && codes.has(er2.code) && retries < max) {
71571
71526
  retries++;
@@ -71874,26 +71829,26 @@ var useNative = !hasNative || process.platform === "win32" ? () => false : (opt)
71874
71829
  var useNativeSync = !hasNative || process.platform === "win32" ? () => false : (opt) => !opt?.signal && !opt?.filter;
71875
71830
 
71876
71831
  // ../../../node_modules/rimraf/dist/esm/index.js
71877
- var wrap = (fn) => async (path3, opt) => {
71832
+ var wrap = (fn2) => async (path3, opt) => {
71878
71833
  const options = optArg(opt);
71879
71834
  if (options.glob) {
71880
71835
  path3 = await glob(path3, options.glob);
71881
71836
  }
71882
71837
  if (Array.isArray(path3)) {
71883
- return !!(await Promise.all(path3.map((p2) => fn(path_arg_default(p2, options), options)))).reduce((a, b2) => a && b2, true);
71838
+ return !!(await Promise.all(path3.map((p2) => fn2(path_arg_default(p2, options), options)))).reduce((a, b2) => a && b2, true);
71884
71839
  } else {
71885
- return !!await fn(path_arg_default(path3, options), options);
71840
+ return !!await fn2(path_arg_default(path3, options), options);
71886
71841
  }
71887
71842
  };
71888
- var wrapSync = (fn) => (path3, opt) => {
71843
+ var wrapSync = (fn2) => (path3, opt) => {
71889
71844
  const options = optArgSync(opt);
71890
71845
  if (options.glob) {
71891
71846
  path3 = globSync(path3, options.glob);
71892
71847
  }
71893
71848
  if (Array.isArray(path3)) {
71894
- return !!path3.map((p2) => fn(path_arg_default(p2, options), options)).reduce((a, b2) => a && b2, true);
71849
+ return !!path3.map((p2) => fn2(path_arg_default(p2, options), options)).reduce((a, b2) => a && b2, true);
71895
71850
  } else {
71896
- return !!fn(path_arg_default(path3, options), options);
71851
+ return !!fn2(path_arg_default(path3, options), options);
71897
71852
  }
71898
71853
  };
71899
71854
  var nativeSync = wrapSync(rimrafNativeSync);