@hot-updater/rock 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,16 +1,15 @@
1
- //#region rolldown:runtime
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region \0rolldown/runtime.js
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __getProtoOf = Object.getPrototypeOf;
7
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
9
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
10
  var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i$1 = 0, n$1 = keys.length, key; i$1 < n$1; i$1++) {
13
- key = keys[i$1];
11
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
14
13
  if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
14
  get: ((k) => from[k]).bind(null, key),
16
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
@@ -22,18 +21,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
21
  value: mod,
23
22
  enumerable: true
24
23
  }) : target, mod));
25
-
26
24
  //#endregion
27
- let __hot_updater_cli_tools = require("@hot-updater/cli-tools");
28
- __hot_updater_cli_tools = __toESM(__hot_updater_cli_tools);
25
+ let _hot_updater_cli_tools = require("@hot-updater/cli-tools");
29
26
  let node_url = require("node:url");
30
- node_url = __toESM(node_url);
31
27
  let node_child_process = require("node:child_process");
32
- node_child_process = __toESM(node_child_process);
33
28
  let node_string_decoder = require("node:string_decoder");
34
- node_string_decoder = __toESM(node_string_decoder);
35
29
  let node_util = require("node:util");
36
- node_util = __toESM(node_util);
37
30
  let node_process = require("node:process");
38
31
  node_process = __toESM(node_process);
39
32
  let node_tty = require("node:tty");
@@ -43,31 +36,22 @@ node_path = __toESM(node_path);
43
36
  let path = require("path");
44
37
  path = __toESM(path);
45
38
  let node_timers_promises = require("node:timers/promises");
46
- node_timers_promises = __toESM(node_timers_promises);
47
39
  let node_os = require("node:os");
48
- node_os = __toESM(node_os);
49
40
  let node_events = require("node:events");
50
- node_events = __toESM(node_events);
51
41
  let node_v8 = require("node:v8");
52
- node_v8 = __toESM(node_v8);
53
42
  let node_fs = require("node:fs");
54
- node_fs = __toESM(node_fs);
55
43
  let node_stream_promises = require("node:stream/promises");
56
- node_stream_promises = __toESM(node_stream_promises);
57
44
  let node_stream = require("node:stream");
58
- node_stream = __toESM(node_stream);
59
45
  let node_buffer = require("node:buffer");
60
- node_buffer = __toESM(node_buffer);
61
46
  let fs_promises = require("fs/promises");
62
47
  fs_promises = __toESM(fs_promises);
63
-
48
+ let uuidv7 = require("uuidv7");
64
49
  //#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
65
50
  function isPlainObject(value) {
66
51
  if (typeof value !== "object" || value === null) return false;
67
52
  const prototype = Object.getPrototypeOf(value);
68
53
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
69
54
  }
70
-
71
55
  //#endregion
72
56
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/file-url.js
73
57
  const safeNormalizeFileUrl = (file, name) => {
@@ -78,7 +62,6 @@ const safeNormalizeFileUrl = (file, name) => {
78
62
  const normalizeDenoExecPath = (file) => isDenoExecPath(file) ? file.toString() : file;
79
63
  const isDenoExecPath = (file) => typeof file !== "string" && file && Object.getPrototypeOf(file) === String.prototype;
80
64
  const normalizeFileUrl = (file) => file instanceof URL ? (0, node_url.fileURLToPath)(file) : file;
81
-
82
65
  //#endregion
83
66
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/parameters.js
84
67
  const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
@@ -96,7 +79,6 @@ const normalizeParameters = (rawFile, rawArguments = [], rawOptions = {}) => {
96
79
  options
97
80
  ];
98
81
  };
99
-
100
82
  //#endregion
101
83
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/uint-array.js
102
84
  const { toString: objectToString$1 } = Object.prototype;
@@ -136,7 +118,6 @@ const getJoinLength = (uint8Arrays) => {
136
118
  for (const uint8Array of uint8Arrays) joinLength += uint8Array.length;
137
119
  return joinLength;
138
120
  };
139
-
140
121
  //#endregion
141
122
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/template.js
142
123
  const isTemplateString = (templates) => Array.isArray(templates) && Array.isArray(templates.raw);
@@ -163,7 +144,7 @@ const parseTemplate = ({ templates, expressions, tokens, index, template }) => {
163
144
  const newTokens = concatTokens(tokens, nextTokens, leadingWhitespaces);
164
145
  if (index === expressions.length) return newTokens;
165
146
  const expression = expressions[index];
166
- return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression$1) => parseExpression(expression$1)) : [parseExpression(expression)], trailingWhitespaces);
147
+ return concatTokens(newTokens, Array.isArray(expression) ? expression.map((expression) => parseExpression(expression)) : [parseExpression(expression)], trailingWhitespaces);
167
148
  };
168
149
  const splitByWhitespaces = (template, rawTemplate) => {
169
150
  if (rawTemplate.length === 0) return {
@@ -225,7 +206,6 @@ const getSubprocessResult = ({ stdout }) => {
225
206
  if (stdout === void 0) throw new TypeError("Missing result.stdout in template expression. This is probably due to the previous subprocess' \"stdout\" option.");
226
207
  throw new TypeError(`Unexpected "${typeof stdout}" stdout in template expression`);
227
208
  };
228
-
229
209
  //#endregion
230
210
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/standard-stream.js
231
211
  const isStandardStream = (stream) => STANDARD_STREAMS.includes(stream);
@@ -240,7 +220,6 @@ const STANDARD_STREAMS_ALIASES = [
240
220
  "stderr"
241
221
  ];
242
222
  const getStreamName = (fdNumber) => STANDARD_STREAMS_ALIASES[fdNumber] ?? `stdio[${fdNumber}]`;
243
-
244
223
  //#endregion
245
224
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/specific.js
246
225
  const normalizeFdSpecificOptions = (options) => {
@@ -295,7 +274,6 @@ const FD_SPECIFIC_OPTIONS = [
295
274
  "stripFinalNewline"
296
275
  ];
297
276
  const getFdSpecificValue = (optionArray, fdNumber) => fdNumber === "ipc" ? optionArray.at(-1) : optionArray[fdNumber];
298
-
299
277
  //#endregion
300
278
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/values.js
301
279
  const isVerbose = ({ verbose }, fdNumber) => getFdVerbose(verbose, fdNumber) !== "none";
@@ -312,7 +290,6 @@ const VERBOSE_VALUES = [
312
290
  "short",
313
291
  "full"
314
292
  ];
315
-
316
293
  //#endregion
317
294
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/escape.js
318
295
  const joinCommand = (filePath, rawArguments) => {
@@ -333,7 +310,7 @@ const escapeControlCharacter = (character) => {
333
310
  };
334
311
  const getSpecialCharRegExp = () => {
335
312
  try {
336
- return new RegExp("\\p{Separator}|\\p{Other}", "gu");
313
+ return /* @__PURE__ */ new RegExp("\\p{Separator}|\\p{Other}", "gu");
337
314
  } catch {
338
315
  return /[\s\u0000-\u001F\u007F-\u009F\u00AD]/g;
339
316
  }
@@ -353,7 +330,6 @@ const quoteString = (escapedArgument) => {
353
330
  return node_process.platform === "win32" ? `"${escapedArgument.replaceAll("\"", "\"\"")}"` : `'${escapedArgument.replaceAll("'", "'\\''")}'`;
354
331
  };
355
332
  const NO_ESCAPE_REGEXP = /^[\w./-]+$/;
356
-
357
333
  //#endregion
358
334
  //#region ../../node_modules/.pnpm/is-unicode-supported@2.1.0/node_modules/is-unicode-supported/index.js
359
335
  function isUnicodeSupported() {
@@ -362,7 +338,6 @@ function isUnicodeSupported() {
362
338
  if (node_process.default.platform !== "win32") return TERM !== "linux";
363
339
  return Boolean(env.WT_SESSION) || Boolean(env.TERMINUS_SUBLIME) || env.ConEmuTask === "{cmd::Cmder}" || TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
364
340
  }
365
-
366
341
  //#endregion
367
342
  //#region ../../node_modules/.pnpm/figures@6.1.0/node_modules/figures/index.js
368
343
  const common = {
@@ -641,11 +616,8 @@ const fallbackSymbols = {
641
616
  ...common,
642
617
  ...specialFallbackSymbols
643
618
  };
644
- const shouldUseMain = isUnicodeSupported();
645
- const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
646
- var figures_default = figures;
647
- const replacements = Object.entries(specialMainSymbols);
648
-
619
+ const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
620
+ Object.entries(specialMainSymbols);
649
621
  //#endregion
650
622
  //#region ../../node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
651
623
  const hasColors = node_tty.default?.WriteStream?.prototype?.hasColors?.() ?? false;
@@ -668,48 +640,47 @@ const format = (open, close) => {
668
640
  return result;
669
641
  };
670
642
  };
671
- const reset = format(0, 0);
643
+ format(0, 0);
672
644
  const bold = format(1, 22);
673
- const dim = format(2, 22);
674
- const italic = format(3, 23);
675
- const underline = format(4, 24);
676
- const overline = format(53, 55);
677
- const inverse = format(7, 27);
678
- const hidden = format(8, 28);
679
- const strikethrough = format(9, 29);
680
- const black = format(30, 39);
681
- const red = format(31, 39);
682
- const green = format(32, 39);
683
- const yellow = format(33, 39);
684
- const blue = format(34, 39);
685
- const magenta = format(35, 39);
686
- const cyan = format(36, 39);
687
- const white = format(37, 39);
645
+ format(2, 22);
646
+ format(3, 23);
647
+ format(4, 24);
648
+ format(53, 55);
649
+ format(7, 27);
650
+ format(8, 28);
651
+ format(9, 29);
652
+ format(30, 39);
653
+ format(31, 39);
654
+ format(32, 39);
655
+ format(33, 39);
656
+ format(34, 39);
657
+ format(35, 39);
658
+ format(36, 39);
659
+ format(37, 39);
688
660
  const gray = format(90, 39);
689
- const bgBlack = format(40, 49);
690
- const bgRed = format(41, 49);
691
- const bgGreen = format(42, 49);
692
- const bgYellow = format(43, 49);
693
- const bgBlue = format(44, 49);
694
- const bgMagenta = format(45, 49);
695
- const bgCyan = format(46, 49);
696
- const bgWhite = format(47, 49);
697
- const bgGray = format(100, 49);
661
+ format(40, 49);
662
+ format(41, 49);
663
+ format(42, 49);
664
+ format(43, 49);
665
+ format(44, 49);
666
+ format(45, 49);
667
+ format(46, 49);
668
+ format(47, 49);
669
+ format(100, 49);
698
670
  const redBright = format(91, 39);
699
- const greenBright = format(92, 39);
671
+ format(92, 39);
700
672
  const yellowBright = format(93, 39);
701
- const blueBright = format(94, 39);
702
- const magentaBright = format(95, 39);
703
- const cyanBright = format(96, 39);
704
- const whiteBright = format(97, 39);
705
- const bgRedBright = format(101, 49);
706
- const bgGreenBright = format(102, 49);
707
- const bgYellowBright = format(103, 49);
708
- const bgBlueBright = format(104, 49);
709
- const bgMagentaBright = format(105, 49);
710
- const bgCyanBright = format(106, 49);
711
- const bgWhiteBright = format(107, 49);
712
-
673
+ format(94, 39);
674
+ format(95, 39);
675
+ format(96, 39);
676
+ format(97, 39);
677
+ format(101, 49);
678
+ format(102, 49);
679
+ format(103, 49);
680
+ format(104, 49);
681
+ format(105, 49);
682
+ format(106, 49);
683
+ format(107, 49);
713
684
  //#endregion
714
685
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/default.js
715
686
  const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, result: { failed = false } = {}, options: { reject = true } }) => {
@@ -725,8 +696,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
725
696
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
726
697
  const padField = (field, padding) => String(field).padStart(padding, "0");
727
698
  const getFinalIcon = ({ failed, reject }) => {
728
- if (!failed) return figures_default.tick;
729
- return reject ? figures_default.cross : figures_default.warning;
699
+ if (!failed) return figures.tick;
700
+ return reject ? figures.cross : figures.warning;
730
701
  };
731
702
  const ICONS = {
732
703
  command: ({ piped }) => piped ? "|" : "$",
@@ -743,7 +714,6 @@ const COLORS = {
743
714
  error: ({ reject }) => reject ? redBright : yellowBright,
744
715
  duration: () => gray
745
716
  };
746
-
747
717
  //#endregion
748
718
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/custom.js
749
719
  const applyVerboseOnLines = (printedLines, verboseInfo, fdNumber) => {
@@ -756,7 +726,6 @@ const applyVerboseFunction = (verboseLine, verboseObject, verboseFunction) => {
756
726
  if (typeof printedLine === "string") return printedLine;
757
727
  };
758
728
  const appendNewline = (printedLine) => printedLine.endsWith("\n") ? printedLine : `${printedLine}\n`;
759
-
760
729
  //#endregion
761
730
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/log.js
762
731
  const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) => {
@@ -767,7 +736,7 @@ const verboseLog = ({ type, verboseMessage, fdNumber, verboseInfo, result }) =>
767
736
  })), verboseInfo, fdNumber);
768
737
  if (finalLines !== "") console.warn(finalLines.slice(0, -1));
769
738
  };
770
- const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false,...options } } }) => ({
739
+ const getVerboseObject = ({ type, result, verboseInfo: { escapedCommand, commandId, rawOptions: { piped = false, ...options } } }) => ({
771
740
  type,
772
741
  escapedCommand,
773
742
  commandId: `${commandId}`,
@@ -790,7 +759,6 @@ const serializeVerboseMessage = (message) => {
790
759
  return escapeLines(typeof message === "string" ? message : (0, node_util.inspect)(message)).replaceAll(" ", " ".repeat(TAB_SIZE));
791
760
  };
792
761
  const TAB_SIZE = 2;
793
-
794
762
  //#endregion
795
763
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/start.js
796
764
  const logCommand = (escapedCommand, verboseInfo) => {
@@ -801,7 +769,6 @@ const logCommand = (escapedCommand, verboseInfo) => {
801
769
  verboseInfo
802
770
  });
803
771
  };
804
-
805
772
  //#endregion
806
773
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/info.js
807
774
  const getVerboseInfo = (verbose, escapedCommand, rawOptions) => {
@@ -825,12 +792,10 @@ const validateVerbose = (verbose) => {
825
792
  }
826
793
  }
827
794
  };
828
-
829
795
  //#endregion
830
796
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/duration.js
831
797
  const getStartTime = () => node_process.hrtime.bigint();
832
798
  const getDurationMs = (startTime) => Number(node_process.hrtime.bigint() - startTime) / 1e6;
833
-
834
799
  //#endregion
835
800
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/command.js
836
801
  const handleCommand = (filePath, rawArguments, rawOptions) => {
@@ -845,51 +810,49 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
845
810
  verboseInfo
846
811
  };
847
812
  };
848
-
849
813
  //#endregion
850
814
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
851
- var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
852
- module.exports = isexe$3;
853
- isexe$3.sync = sync$2;
815
+ var require_windows = /* @__PURE__ */ __commonJSMin(((exports, module) => {
816
+ module.exports = isexe;
817
+ isexe.sync = sync;
854
818
  var fs$3 = require("fs");
855
- function checkPathExt(path$10, options) {
819
+ function checkPathExt(path, options) {
856
820
  var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
857
821
  if (!pathext) return true;
858
822
  pathext = pathext.split(";");
859
823
  if (pathext.indexOf("") !== -1) return true;
860
- for (var i$1 = 0; i$1 < pathext.length; i$1++) {
861
- var p = pathext[i$1].toLowerCase();
862
- if (p && path$10.substr(-p.length).toLowerCase() === p) return true;
824
+ for (var i = 0; i < pathext.length; i++) {
825
+ var p = pathext[i].toLowerCase();
826
+ if (p && path.substr(-p.length).toLowerCase() === p) return true;
863
827
  }
864
828
  return false;
865
829
  }
866
- function checkStat$1(stat, path$10, options) {
830
+ function checkStat(stat, path, options) {
867
831
  if (!stat.isSymbolicLink() && !stat.isFile()) return false;
868
- return checkPathExt(path$10, options);
832
+ return checkPathExt(path, options);
869
833
  }
870
- function isexe$3(path$10, options, cb) {
871
- fs$3.stat(path$10, function(er, stat) {
872
- cb(er, er ? false : checkStat$1(stat, path$10, options));
834
+ function isexe(path, options, cb) {
835
+ fs$3.stat(path, function(er, stat) {
836
+ cb(er, er ? false : checkStat(stat, path, options));
873
837
  });
874
838
  }
875
- function sync$2(path$10, options) {
876
- return checkStat$1(fs$3.statSync(path$10), path$10, options);
839
+ function sync(path, options) {
840
+ return checkStat(fs$3.statSync(path), path, options);
877
841
  }
878
- }) });
879
-
842
+ }));
880
843
  //#endregion
881
844
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
882
- var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
883
- module.exports = isexe$2;
884
- isexe$2.sync = sync$1;
845
+ var require_mode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
846
+ module.exports = isexe;
847
+ isexe.sync = sync;
885
848
  var fs$2 = require("fs");
886
- function isexe$2(path$10, options, cb) {
887
- fs$2.stat(path$10, function(er, stat) {
849
+ function isexe(path, options, cb) {
850
+ fs$2.stat(path, function(er, stat) {
888
851
  cb(er, er ? false : checkStat(stat, options));
889
852
  });
890
853
  }
891
- function sync$1(path$10, options) {
892
- return checkStat(fs$2.statSync(path$10), options);
854
+ function sync(path, options) {
855
+ return checkStat(fs$2.statSync(path), options);
893
856
  }
894
857
  function checkStat(stat, options) {
895
858
  return stat.isFile() && checkMode(stat, options);
@@ -900,24 +863,23 @@ var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@
900
863
  var gid = stat.gid;
901
864
  var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
902
865
  var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
903
- var u$1 = parseInt("100", 8);
866
+ var u = parseInt("100", 8);
904
867
  var g = parseInt("010", 8);
905
- var o$1 = parseInt("001", 8);
906
- var ug = u$1 | g;
907
- return mod & o$1 || mod & g && gid === myGid || mod & u$1 && uid === myUid || mod & ug && myUid === 0;
868
+ var o = parseInt("001", 8);
869
+ var ug = u | g;
870
+ return mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
908
871
  }
909
- }) });
910
-
872
+ }));
911
873
  //#endregion
912
874
  //#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
913
- var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
875
+ var require_isexe = /* @__PURE__ */ __commonJSMin(((exports, module) => {
914
876
  require("fs");
915
877
  var core;
916
878
  if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
917
879
  else core = require_mode();
918
- module.exports = isexe$1;
919
- isexe$1.sync = sync;
920
- function isexe$1(path$10, options, cb) {
880
+ module.exports = isexe;
881
+ isexe.sync = sync;
882
+ function isexe(path, options, cb) {
921
883
  if (typeof options === "function") {
922
884
  cb = options;
923
885
  options = {};
@@ -925,13 +887,13 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
925
887
  if (!cb) {
926
888
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
927
889
  return new Promise(function(resolve, reject) {
928
- isexe$1(path$10, options || {}, function(er, is) {
890
+ isexe(path, options || {}, function(er, is) {
929
891
  if (er) reject(er);
930
892
  else resolve(is);
931
893
  });
932
894
  });
933
895
  }
934
- core(path$10, options || {}, function(er, is) {
896
+ core(path, options || {}, function(er, is) {
935
897
  if (er) {
936
898
  if (er.code === "EACCES" || options && options.ignoreErrors) {
937
899
  er = null;
@@ -941,19 +903,18 @@ var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe
941
903
  cb(er, is);
942
904
  });
943
905
  }
944
- function sync(path$10, options) {
906
+ function sync(path, options) {
945
907
  try {
946
- return core.sync(path$10, options || {});
908
+ return core.sync(path, options || {});
947
909
  } catch (er) {
948
910
  if (options && options.ignoreErrors || er.code === "EACCES") return false;
949
911
  else throw er;
950
912
  }
951
913
  }
952
- }) });
953
-
914
+ }));
954
915
  //#endregion
955
916
  //#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
956
- var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
917
+ var require_which = /* @__PURE__ */ __commonJSMin(((exports, module) => {
957
918
  const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
958
919
  const path$9 = require("path");
959
920
  const COLON = isWindows ? ";" : ":";
@@ -973,7 +934,7 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
973
934
  pathExtExe
974
935
  };
975
936
  };
976
- const which$1 = (cmd, opt, cb) => {
937
+ const which = (cmd, opt, cb) => {
977
938
  if (typeof opt === "function") {
978
939
  cb = opt;
979
940
  opt = {};
@@ -981,20 +942,20 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
981
942
  if (!opt) opt = {};
982
943
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
983
944
  const found = [];
984
- const step = (i$1) => new Promise((resolve, reject) => {
985
- if (i$1 === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
986
- const ppRaw = pathEnv[i$1];
945
+ const step = (i) => new Promise((resolve, reject) => {
946
+ if (i === pathEnv.length) return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
947
+ const ppRaw = pathEnv[i];
987
948
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
988
949
  const pCmd = path$9.join(pathPart, cmd);
989
- resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i$1, 0));
950
+ resolve(subStep(!pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd, i, 0));
990
951
  });
991
- const subStep = (p, i$1, ii) => new Promise((resolve, reject) => {
992
- if (ii === pathExt.length) return resolve(step(i$1 + 1));
952
+ const subStep = (p, i, ii) => new Promise((resolve, reject) => {
953
+ if (ii === pathExt.length) return resolve(step(i + 1));
993
954
  const ext = pathExt[ii];
994
955
  isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
995
956
  if (!er && is) if (opt.all) found.push(p + ext);
996
957
  else return resolve(p + ext);
997
- return resolve(subStep(p, i$1, ii + 1));
958
+ return resolve(subStep(p, i, ii + 1));
998
959
  });
999
960
  });
1000
961
  return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
@@ -1003,8 +964,8 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1003
964
  opt = opt || {};
1004
965
  const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
1005
966
  const found = [];
1006
- for (let i$1 = 0; i$1 < pathEnv.length; i$1++) {
1007
- const ppRaw = pathEnv[i$1];
967
+ for (let i = 0; i < pathEnv.length; i++) {
968
+ const ppRaw = pathEnv[i];
1008
969
  const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
1009
970
  const pCmd = path$9.join(pathPart, cmd);
1010
971
  const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
@@ -1020,25 +981,23 @@ var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which
1020
981
  if (opt.nothrow) return null;
1021
982
  throw getNotFoundError(cmd);
1022
983
  };
1023
- module.exports = which$1;
1024
- which$1.sync = whichSync;
1025
- }) });
1026
-
984
+ module.exports = which;
985
+ which.sync = whichSync;
986
+ }));
1027
987
  //#endregion
1028
988
  //#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
1029
- var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
1030
- const pathKey$1 = (options = {}) => {
989
+ var require_path_key = /* @__PURE__ */ __commonJSMin(((exports, module) => {
990
+ const pathKey = (options = {}) => {
1031
991
  const environment = options.env || process.env;
1032
992
  if ((options.platform || process.platform) !== "win32") return "PATH";
1033
993
  return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1034
994
  };
1035
- module.exports = pathKey$1;
1036
- module.exports.default = pathKey$1;
1037
- }) });
1038
-
995
+ module.exports = pathKey;
996
+ module.exports.default = pathKey;
997
+ }));
1039
998
  //#endregion
1040
999
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
1041
- var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
1000
+ var require_resolveCommand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1042
1001
  const path$8 = require("path");
1043
1002
  const which = require_which();
1044
1003
  const getPathKey = require_path_key();
@@ -1062,15 +1021,14 @@ var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
1062
1021
  if (resolved) resolved = path$8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
1063
1022
  return resolved;
1064
1023
  }
1065
- function resolveCommand$1(parsed) {
1024
+ function resolveCommand(parsed) {
1066
1025
  return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
1067
1026
  }
1068
- module.exports = resolveCommand$1;
1069
- }) });
1070
-
1027
+ module.exports = resolveCommand;
1028
+ }));
1071
1029
  //#endregion
1072
1030
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
1073
- var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
1031
+ var require_escape = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1074
1032
  const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
1075
1033
  function escapeCommand(arg) {
1076
1034
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -1087,34 +1045,31 @@ var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1087
1045
  }
1088
1046
  module.exports.command = escapeCommand;
1089
1047
  module.exports.argument = escapeArgument;
1090
- }) });
1091
-
1048
+ }));
1092
1049
  //#endregion
1093
1050
  //#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
1094
- var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
1051
+ var require_shebang_regex = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1095
1052
  module.exports = /^#!(.*)/;
1096
- }) });
1097
-
1053
+ }));
1098
1054
  //#endregion
1099
1055
  //#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
1100
- var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
1056
+ var require_shebang_command = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1101
1057
  const shebangRegex = require_shebang_regex();
1102
1058
  module.exports = (string = "") => {
1103
1059
  const match = string.match(shebangRegex);
1104
1060
  if (!match) return null;
1105
- const [path$10, argument] = match[0].replace(/#! ?/, "").split(" ");
1106
- const binary = path$10.split("/").pop();
1061
+ const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
1062
+ const binary = path.split("/").pop();
1107
1063
  if (binary === "env") return argument;
1108
1064
  return argument ? `${binary} ${argument}` : binary;
1109
1065
  };
1110
- }) });
1111
-
1066
+ }));
1112
1067
  //#endregion
1113
1068
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
1114
- var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
1069
+ var require_readShebang = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1115
1070
  const fs$1 = require("fs");
1116
1071
  const shebangCommand = require_shebang_command();
1117
- function readShebang$1(command) {
1072
+ function readShebang(command) {
1118
1073
  const size = 150;
1119
1074
  const buffer = Buffer.alloc(size);
1120
1075
  let fd;
@@ -1125,17 +1080,16 @@ var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1125
1080
  } catch (e) {}
1126
1081
  return shebangCommand(buffer.toString());
1127
1082
  }
1128
- module.exports = readShebang$1;
1129
- }) });
1130
-
1083
+ module.exports = readShebang;
1084
+ }));
1131
1085
  //#endregion
1132
1086
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
1133
- var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
1087
+ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1134
1088
  const path$7 = require("path");
1135
1089
  const resolveCommand = require_resolveCommand();
1136
1090
  const escape = require_escape();
1137
1091
  const readShebang = require_readShebang();
1138
- const isWin$1 = process.platform === "win32";
1092
+ const isWin = process.platform === "win32";
1139
1093
  const isExecutableRegExp = /\.(?:com|exe)$/i;
1140
1094
  const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
1141
1095
  function detectShebang(parsed) {
@@ -1149,7 +1103,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1149
1103
  return parsed.file;
1150
1104
  }
1151
1105
  function parseNonShell(parsed) {
1152
- if (!isWin$1) return parsed;
1106
+ if (!isWin) return parsed;
1153
1107
  const commandFile = detectShebang(parsed);
1154
1108
  const needsShell = !isExecutableRegExp.test(commandFile);
1155
1109
  if (parsed.options.forceShell || needsShell) {
@@ -1168,7 +1122,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1168
1122
  }
1169
1123
  return parsed;
1170
1124
  }
1171
- function parse$1(command, args, options) {
1125
+ function parse(command, args, options) {
1172
1126
  if (args && !Array.isArray(args)) {
1173
1127
  options = args;
1174
1128
  args = null;
@@ -1187,12 +1141,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross
1187
1141
  };
1188
1142
  return options.shell ? parsed : parseNonShell(parsed);
1189
1143
  }
1190
- module.exports = parse$1;
1191
- }) });
1192
-
1144
+ module.exports = parse;
1145
+ }));
1193
1146
  //#endregion
1194
1147
  //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
1195
- var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
1148
+ var require_enoent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1196
1149
  const isWin = process.platform === "win32";
1197
1150
  function notFoundError(original, syscall) {
1198
1151
  return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
@@ -1203,15 +1156,15 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1203
1156
  spawnargs: original.args
1204
1157
  });
1205
1158
  }
1206
- function hookChildProcess(cp$1, parsed) {
1159
+ function hookChildProcess(cp, parsed) {
1207
1160
  if (!isWin) return;
1208
- const originalEmit = cp$1.emit;
1209
- cp$1.emit = function(name, arg1) {
1161
+ const originalEmit = cp.emit;
1162
+ cp.emit = function(name, arg1) {
1210
1163
  if (name === "exit") {
1211
1164
  const err = verifyENOENT(arg1, parsed);
1212
- if (err) return originalEmit.call(cp$1, "error", err);
1165
+ if (err) return originalEmit.call(cp, "error", err);
1213
1166
  }
1214
- return originalEmit.apply(cp$1, arguments);
1167
+ return originalEmit.apply(cp, arguments);
1215
1168
  };
1216
1169
  }
1217
1170
  function verifyENOENT(status, parsed) {
@@ -1228,45 +1181,37 @@ var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cros
1228
1181
  verifyENOENTSync,
1229
1182
  notFoundError
1230
1183
  };
1231
- }) });
1232
-
1184
+ }));
1233
1185
  //#endregion
1234
- //#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
1235
- var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
1186
+ //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1187
+ var import_cross_spawn = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
1236
1188
  const cp = require("child_process");
1237
1189
  const parse = require_parse();
1238
1190
  const enoent = require_enoent();
1239
- function spawn$1(command, args, options) {
1191
+ function spawn(command, args, options) {
1240
1192
  const parsed = parse(command, args, options);
1241
1193
  const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
1242
1194
  enoent.hookChildProcess(spawned, parsed);
1243
1195
  return spawned;
1244
1196
  }
1245
- function spawnSync$1(command, args, options) {
1197
+ function spawnSync(command, args, options) {
1246
1198
  const parsed = parse(command, args, options);
1247
1199
  const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
1248
1200
  result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
1249
1201
  return result;
1250
1202
  }
1251
- module.exports = spawn$1;
1252
- module.exports.spawn = spawn$1;
1253
- module.exports.sync = spawnSync$1;
1203
+ module.exports = spawn;
1204
+ module.exports.spawn = spawn;
1205
+ module.exports.sync = spawnSync;
1254
1206
  module.exports._parse = parse;
1255
1207
  module.exports._enoent = enoent;
1256
- }) });
1257
-
1258
- //#endregion
1259
- //#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
1260
- var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
1208
+ })))(), 1);
1261
1209
  function pathKey(options = {}) {
1262
- const { env = process.env, platform: platform$1 = process.platform } = options;
1263
- if (platform$1 !== "win32") return "PATH";
1210
+ const { env = process.env, platform = process.platform } = options;
1211
+ if (platform !== "win32") return "PATH";
1264
1212
  return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
1265
1213
  }
1266
-
1267
- //#endregion
1268
- //#region ../../node_modules/.pnpm/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
1269
- const execFileOriginal = (0, node_util.promisify)(node_child_process.execFile);
1214
+ (0, node_util.promisify)(node_child_process.execFile);
1270
1215
  function toPath(urlOrPath) {
1271
1216
  return urlOrPath instanceof URL ? (0, node_url.fileURLToPath)(urlOrPath) : urlOrPath;
1272
1217
  }
@@ -1281,16 +1226,14 @@ function traversePathUp(startPath) {
1281
1226
  }
1282
1227
  } };
1283
1228
  }
1284
- const TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
1285
-
1286
1229
  //#endregion
1287
1230
  //#region ../../node_modules/.pnpm/npm-run-path@6.0.0/node_modules/npm-run-path/index.js
1288
- const npmRunPath = ({ cwd = node_process.default.cwd(), path: pathOption = node_process.default.env[pathKey()], preferLocal = true, execPath: execPath$1 = node_process.default.execPath, addExecPath = true } = {}) => {
1231
+ const npmRunPath = ({ cwd = node_process.default.cwd(), path: pathOption = node_process.default.env[pathKey()], preferLocal = true, execPath = node_process.default.execPath, addExecPath = true } = {}) => {
1289
1232
  const cwdPath = node_path.default.resolve(toPath(cwd));
1290
1233
  const result = [];
1291
1234
  const pathParts = pathOption.split(node_path.default.delimiter);
1292
1235
  if (preferLocal) applyPreferLocal(result, pathParts, cwdPath);
1293
- if (addExecPath) applyExecPath(result, pathParts, execPath$1, cwdPath);
1236
+ if (addExecPath) applyExecPath(result, pathParts, execPath, cwdPath);
1294
1237
  return pathOption === "" || pathOption === node_path.default.delimiter ? `${result.join(node_path.default.delimiter)}${pathOption}` : [...result, pathOption].join(node_path.default.delimiter);
1295
1238
  };
1296
1239
  const applyPreferLocal = (result, pathParts, cwdPath) => {
@@ -1299,18 +1242,17 @@ const applyPreferLocal = (result, pathParts, cwdPath) => {
1299
1242
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1300
1243
  }
1301
1244
  };
1302
- const applyExecPath = (result, pathParts, execPath$1, cwdPath) => {
1303
- const pathPart = node_path.default.resolve(cwdPath, toPath(execPath$1), "..");
1245
+ const applyExecPath = (result, pathParts, execPath, cwdPath) => {
1246
+ const pathPart = node_path.default.resolve(cwdPath, toPath(execPath), "..");
1304
1247
  if (!pathParts.includes(pathPart)) result.push(pathPart);
1305
1248
  };
1306
- const npmRunPathEnv = ({ env = node_process.default.env,...options } = {}) => {
1249
+ const npmRunPathEnv = ({ env = node_process.default.env, ...options } = {}) => {
1307
1250
  env = { ...env };
1308
1251
  const pathName = pathKey({ env });
1309
1252
  options.path = env[pathName];
1310
1253
  env[pathName] = npmRunPath(options);
1311
1254
  return env;
1312
1255
  };
1313
-
1314
1256
  //#endregion
1315
1257
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/final-error.js
1316
1258
  const getFinalError = (originalError, message, isSync) => {
@@ -1338,11 +1280,10 @@ var ExecaError = class extends Error {};
1338
1280
  setErrorName(ExecaError, ExecaError.name);
1339
1281
  var ExecaSyncError = class extends Error {};
1340
1282
  setErrorName(ExecaSyncError, ExecaSyncError.name);
1341
-
1342
1283
  //#endregion
1343
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/realtime.js
1284
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/realtime.js
1344
1285
  const getRealtimeSignals = () => {
1345
- const length = SIGRTMAX - SIGRTMIN + 1;
1286
+ const length = 64 - SIGRTMIN + 1;
1346
1287
  return Array.from({ length }, getRealtimeSignal);
1347
1288
  };
1348
1289
  const getRealtimeSignal = (value, index) => ({
@@ -1353,10 +1294,8 @@ const getRealtimeSignal = (value, index) => ({
1353
1294
  standard: "posix"
1354
1295
  });
1355
1296
  const SIGRTMIN = 34;
1356
- const SIGRTMAX = 64;
1357
-
1358
1297
  //#endregion
1359
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/core.js
1298
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/core.js
1360
1299
  const SIGNALS = [
1361
1300
  {
1362
1301
  name: "SIGHUP",
@@ -1628,9 +1567,8 @@ const SIGNALS = [
1628
1567
  standard: "other"
1629
1568
  }
1630
1569
  ];
1631
-
1632
1570
  //#endregion
1633
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/signals.js
1571
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/signals.js
1634
1572
  const getSignals = () => {
1635
1573
  const realtimeSignals = getRealtimeSignals();
1636
1574
  return [...SIGNALS, ...realtimeSignals].map(normalizeSignal$1);
@@ -1648,12 +1586,11 @@ const normalizeSignal$1 = ({ name, number: defaultNumber, description, action, f
1648
1586
  standard
1649
1587
  };
1650
1588
  };
1651
-
1652
1589
  //#endregion
1653
- //#region ../../node_modules/.pnpm/human-signals@8.0.0/node_modules/human-signals/build/src/main.js
1590
+ //#region ../../node_modules/.pnpm/human-signals@8.0.1/node_modules/human-signals/build/src/main.js
1654
1591
  const getSignalsByName = () => {
1655
- const signals$1 = getSignals();
1656
- return Object.fromEntries(signals$1.map(getSignalByName));
1592
+ const signals = getSignals();
1593
+ return Object.fromEntries(signals.map(getSignalByName));
1657
1594
  };
1658
1595
  const getSignalByName = ({ name, number, description, supported, action, forced, standard }) => [name, {
1659
1596
  name,
@@ -1666,13 +1603,12 @@ const getSignalByName = ({ name, number, description, supported, action, forced,
1666
1603
  }];
1667
1604
  const signalsByName = getSignalsByName();
1668
1605
  const getSignalsByNumber = () => {
1669
- const signals$1 = getSignals();
1670
- const length = SIGRTMAX + 1;
1671
- const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals$1));
1606
+ const signals = getSignals();
1607
+ const signalsA = Array.from({ length: 65 }, (value, number) => getSignalByNumber(number, signals));
1672
1608
  return Object.assign({}, ...signalsA);
1673
1609
  };
1674
- const getSignalByNumber = (number, signals$1) => {
1675
- const signal = findSignalByNumber(number, signals$1);
1610
+ const getSignalByNumber = (number, signals) => {
1611
+ const signal = findSignalByNumber(number, signals);
1676
1612
  if (signal === void 0) return {};
1677
1613
  const { name, description, supported, action, forced, standard } = signal;
1678
1614
  return { [number]: {
@@ -1685,13 +1621,12 @@ const getSignalByNumber = (number, signals$1) => {
1685
1621
  standard
1686
1622
  } };
1687
1623
  };
1688
- const findSignalByNumber = (number, signals$1) => {
1689
- const signal = signals$1.find(({ name }) => node_os.constants.signals[name] === number);
1624
+ const findSignalByNumber = (number, signals) => {
1625
+ const signal = signals.find(({ name }) => node_os.constants.signals[name] === number);
1690
1626
  if (signal !== void 0) return signal;
1691
- return signals$1.find((signalA) => signalA.number === number);
1627
+ return signals.find((signalA) => signalA.number === number);
1692
1628
  };
1693
- const signalsByNumber = getSignalsByNumber();
1694
-
1629
+ getSignalsByNumber();
1695
1630
  //#endregion
1696
1631
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/signal.js
1697
1632
  const normalizeKillSignal = (killSignal) => {
@@ -1721,7 +1656,6 @@ Available signal numbers: ${getAvailableSignalIntegers()}.`;
1721
1656
  const getAvailableSignalNames = () => Object.keys(node_os.constants.signals).sort().map((signalName) => `'${signalName}'`).join(", ");
1722
1657
  const getAvailableSignalIntegers = () => [...new Set(Object.values(node_os.constants.signals).sort((signalInteger, signalIntegerTwo) => signalInteger - signalIntegerTwo))].join(", ");
1723
1658
  const getSignalDescription = (signal) => signalsByName[signal].description;
1724
-
1725
1659
  //#endregion
1726
1660
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/kill.js
1727
1661
  const normalizeForceKillAfterDelay = (forceKillAfterDelay) => {
@@ -1773,13 +1707,11 @@ const killOnTimeout = async ({ kill, forceKillAfterDelay, context, controllerSig
1773
1707
  if (kill("SIGKILL")) context.isForcefullyTerminated ??= true;
1774
1708
  } catch {}
1775
1709
  };
1776
-
1777
1710
  //#endregion
1778
1711
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/abort-signal.js
1779
1712
  const onAbortedSignal = async (mainSignal, stopSignal) => {
1780
1713
  if (!mainSignal.aborted) await (0, node_events.once)(mainSignal, "abort", { signal: stopSignal });
1781
1714
  };
1782
-
1783
1715
  //#endregion
1784
1716
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cancel.js
1785
1717
  const validateCancelSignal = ({ cancelSignal }) => {
@@ -1792,18 +1724,17 @@ const terminateOnCancel = async (subprocess, cancelSignal, context, { signal })
1792
1724
  subprocess.kill();
1793
1725
  throw cancelSignal.reason;
1794
1726
  };
1795
-
1796
1727
  //#endregion
1797
1728
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/validation.js
1798
- const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected: isConnected$1 }) => {
1729
+ const validateIpcMethod = ({ methodName, isSubprocess, ipc, isConnected }) => {
1799
1730
  validateIpcOption(methodName, isSubprocess, ipc);
1800
- validateConnection(methodName, isSubprocess, isConnected$1);
1731
+ validateConnection(methodName, isSubprocess, isConnected);
1801
1732
  };
1802
1733
  const validateIpcOption = (methodName, isSubprocess, ipc) => {
1803
1734
  if (!ipc) throw new Error(`${getMethodName(methodName, isSubprocess)} can only be used if the \`ipc\` option is \`true\`.`);
1804
1735
  };
1805
- const validateConnection = (methodName, isSubprocess, isConnected$1) => {
1806
- if (!isConnected$1) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
1736
+ const validateConnection = (methodName, isSubprocess, isConnected) => {
1737
+ if (!isConnected) throw new Error(`${getMethodName(methodName, isSubprocess)} cannot be used: the ${getOtherProcessName(isSubprocess)} has already exited or disconnected.`);
1807
1738
  };
1808
1739
  const throwOnEarlyDisconnect = (isSubprocess) => {
1809
1740
  throw new Error(`${getMethodName("getOneMessage", isSubprocess)} could not complete: the ${getOtherProcessName(isSubprocess)} exited or disconnected.`);
@@ -1847,7 +1778,6 @@ const getOtherProcessName = (isSubprocess) => isSubprocess ? "parent process" :
1847
1778
  const disconnect = (anyProcess) => {
1848
1779
  if (anyProcess.connected) anyProcess.disconnect();
1849
1780
  };
1850
-
1851
1781
  //#endregion
1852
1782
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/deferred.js
1853
1783
  const createDeferred = () => {
@@ -1860,7 +1790,6 @@ const createDeferred = () => {
1860
1790
  });
1861
1791
  return Object.assign(promise, methods);
1862
1792
  };
1863
-
1864
1793
  //#endregion
1865
1794
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/fd-options.js
1866
1795
  const getToStream = (destination, to = "stdin") => {
@@ -1937,7 +1866,6 @@ const serializeOptionValue = (value) => {
1937
1866
  if (typeof value === "string") return `'${value}'`;
1938
1867
  return typeof value === "number" ? `${value}` : "Stream";
1939
1868
  };
1940
-
1941
1869
  //#endregion
1942
1870
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/utils/max-listeners.js
1943
1871
  const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
@@ -1948,7 +1876,6 @@ const incrementMaxListeners = (eventEmitter, maxListenersIncrement, signal) => {
1948
1876
  eventEmitter.setMaxListeners(eventEmitter.getMaxListeners() - maxListenersIncrement);
1949
1877
  });
1950
1878
  };
1951
-
1952
1879
  //#endregion
1953
1880
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/reference.js
1954
1881
  const addReference = (channel, reference) => {
@@ -1975,7 +1902,6 @@ const redoAddedReferences = (channel, isSubprocess) => {
1975
1902
  addReferenceCount(channel);
1976
1903
  }
1977
1904
  };
1978
-
1979
1905
  //#endregion
1980
1906
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/incoming.js
1981
1907
  const onMessage = async ({ anyProcess, channel, isSubprocess, ipcEmitter }, wrappedMessage) => {
@@ -2009,7 +1935,6 @@ const onDisconnect = async ({ anyProcess, channel, isSubprocess, ipcEmitter, bou
2009
1935
  ipcEmitter.emit("disconnect");
2010
1936
  };
2011
1937
  const INCOMING_MESSAGES = /* @__PURE__ */ new WeakMap();
2012
-
2013
1938
  //#endregion
2014
1939
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/forward.js
2015
1940
  const getIpcEmitter = (anyProcess, channel, isSubprocess) => {
@@ -2047,7 +1972,6 @@ const isConnected = (anyProcess) => {
2047
1972
  const ipcEmitter = IPC_EMITTERS.get(anyProcess);
2048
1973
  return ipcEmitter === void 0 ? anyProcess.channel !== null : ipcEmitter.connected;
2049
1974
  };
2050
-
2051
1975
  //#endregion
2052
1976
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/strict.js
2053
1977
  const handleSendStrict = ({ anyProcess, channel, isSubprocess, message, strict }) => {
@@ -2119,7 +2043,6 @@ const throwOnDisconnect$1 = async (anyProcess, isSubprocess, { signal }) => {
2119
2043
  };
2120
2044
  const REQUEST_TYPE = "execa:ipc:request";
2121
2045
  const RESPONSE_TYPE = "execa:ipc:response";
2122
-
2123
2046
  //#endregion
2124
2047
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/outgoing.js
2125
2048
  const startSendMessage = (anyProcess, wrappedMessage, strict) => {
@@ -2149,7 +2072,6 @@ const waitForOutgoingMessages = async (anyProcess, ipcEmitter, wrappedMessage) =
2149
2072
  const OUTGOING_MESSAGES = /* @__PURE__ */ new WeakMap();
2150
2073
  const hasMessageListeners = (anyProcess, ipcEmitter) => ipcEmitter.listenerCount("message") > getMinListenerCount(anyProcess);
2151
2074
  const getMinListenerCount = (anyProcess) => SUBPROCESS_OPTIONS.has(anyProcess) && !getFdSpecificValue(SUBPROCESS_OPTIONS.get(anyProcess).options.buffer, "ipc") ? 1 : 0;
2152
-
2153
2075
  //#endregion
2154
2076
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/send.js
2155
2077
  const sendMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, message, { strict = false } = {}) => {
@@ -2219,7 +2141,6 @@ const getSendMethod = (anyProcess) => {
2219
2141
  return sendMethod;
2220
2142
  };
2221
2143
  const PROCESS_SEND_METHODS = /* @__PURE__ */ new WeakMap();
2222
-
2223
2144
  //#endregion
2224
2145
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/graceful.js
2225
2146
  const sendAbort = (subprocess, message) => {
@@ -2270,7 +2191,6 @@ const abortOnDisconnect = () => {
2270
2191
  cancelController.abort(getAbortDisconnectError());
2271
2192
  };
2272
2193
  const cancelController = new AbortController();
2273
-
2274
2194
  //#endregion
2275
2195
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/graceful.js
2276
2196
  const validateGracefulCancel = ({ gracefulCancel, cancelSignal, ipc, serialization }) => {
@@ -2309,7 +2229,6 @@ const getReason = ({ reason }) => {
2309
2229
  });
2310
2230
  return error;
2311
2231
  };
2312
-
2313
2232
  //#endregion
2314
2233
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/timeout.js
2315
2234
  const validateTimeout = ({ timeout }) => {
@@ -2322,7 +2241,6 @@ const killAfterTimeout = async (subprocess, timeout, context, { signal }) => {
2322
2241
  subprocess.kill();
2323
2242
  throw new DiscardedError();
2324
2243
  };
2325
-
2326
2244
  //#endregion
2327
2245
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/node.js
2328
2246
  const mapNode = ({ options }) => {
@@ -2332,7 +2250,7 @@ const mapNode = ({ options }) => {
2332
2250
  node: true
2333
2251
  } };
2334
2252
  };
2335
- const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = node_process.execPath, nodeOptions = node_process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath,...options }) => {
2253
+ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = false, nodePath = node_process.execPath, nodeOptions = node_process.execArgv.filter((nodeOption) => !nodeOption.startsWith("--inspect")), cwd, execPath: formerNodePath, ...options }) => {
2336
2254
  if (formerNodePath !== void 0) throw new TypeError("The \"execPath\" option has been removed. Please use the \"nodePath\" option instead.");
2337
2255
  const normalizedNodePath = safeNormalizeFileUrl(nodePath, "The \"nodePath\" option");
2338
2256
  const resolvedNodePath = node_path.default.resolve(cwd, normalizedNodePath);
@@ -2362,7 +2280,6 @@ const handleNodeOption = (file, commandArguments, { node: shouldHandleNode = fal
2362
2280
  }
2363
2281
  ];
2364
2282
  };
2365
-
2366
2283
  //#endregion
2367
2284
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/ipc-input.js
2368
2285
  const validateIpcInputOption = ({ ipcInput, ipc, serialization }) => {
@@ -2392,7 +2309,6 @@ const sendIpcInput = async (subprocess, ipcInput) => {
2392
2309
  if (ipcInput === void 0) return;
2393
2310
  await subprocess.sendMessage(ipcInput);
2394
2311
  };
2395
-
2396
2312
  //#endregion
2397
2313
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/encoding-option.js
2398
2314
  const validateEncoding = ({ encoding }) => {
@@ -2400,7 +2316,7 @@ const validateEncoding = ({ encoding }) => {
2400
2316
  const correctEncoding = getCorrectEncoding(encoding);
2401
2317
  if (correctEncoding !== void 0) throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2402
2318
  Please rename it to ${serializeEncoding(correctEncoding)}.`);
2403
- const correctEncodings = [...ENCODINGS].map((correctEncoding$1) => serializeEncoding(correctEncoding$1)).join(", ");
2319
+ const correctEncodings = [...ENCODINGS].map((correctEncoding) => serializeEncoding(correctEncoding)).join(", ");
2404
2320
  throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(encoding)}\`.
2405
2321
  Please rename it to one of: ${correctEncodings}.`);
2406
2322
  };
@@ -2429,7 +2345,6 @@ const ENCODING_ALIASES = {
2429
2345
  binary: "latin1"
2430
2346
  };
2431
2347
  const serializeEncoding = (encoding) => typeof encoding === "string" ? `"${encoding}"` : String(encoding);
2432
-
2433
2348
  //#endregion
2434
2349
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/cwd.js
2435
2350
  const normalizeCwd = (cwd = getDefaultCwd()) => {
@@ -2455,7 +2370,6 @@ const fixCwdError = (originalMessage, cwd) => {
2455
2370
  if (!cwdStat.isDirectory()) return `The "cwd" option is not a directory: ${cwd}.\n${originalMessage}`;
2456
2371
  return originalMessage;
2457
2372
  };
2458
-
2459
2373
  //#endregion
2460
2374
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
2461
2375
  const normalizeOptions = (filePath, rawArguments, rawOptions) => {
@@ -2480,7 +2394,7 @@ const normalizeOptions = (filePath, rawArguments, rawOptions) => {
2480
2394
  options
2481
2395
  };
2482
2396
  };
2483
- const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced",...options }) => ({
2397
+ const addDefaultOptions = ({ extendEnv = true, preferLocal = false, cwd, localDir: localDirectory = cwd, encoding = "utf8", reject = true, cleanup = true, all = false, windowsHide = true, killSignal = "SIGTERM", forceKillAfterDelay = true, gracefulCancel = false, ipcInput, ipc = ipcInput !== void 0 || gracefulCancel, serialization = "advanced", ...options }) => ({
2484
2398
  ...options,
2485
2399
  extendEnv,
2486
2400
  preferLocal,
@@ -2512,7 +2426,6 @@ const getEnv = ({ env: envOption, extendEnv, preferLocal, node, localDirectory,
2512
2426
  });
2513
2427
  return env;
2514
2428
  };
2515
-
2516
2429
  //#endregion
2517
2430
  //#region ../../node_modules/.pnpm/strip-final-newline@4.0.0/node_modules/strip-final-newline/index.js
2518
2431
  function stripFinalNewline(input) {
@@ -2526,22 +2439,20 @@ const LF = "\n";
2526
2439
  const LF_BINARY = LF.codePointAt(0);
2527
2440
  const CR = "\r";
2528
2441
  const CR_BINARY = CR.codePointAt(0);
2529
-
2530
2442
  //#endregion
2531
2443
  //#region ../../node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.js
2532
2444
  function isStream(stream, { checkOpen = true } = {}) {
2533
2445
  return stream !== null && typeof stream === "object" && (stream.writable || stream.readable || !checkOpen || stream.writable === void 0 && stream.readable === void 0) && typeof stream.pipe === "function";
2534
2446
  }
2535
- function isWritableStream(stream, { checkOpen = true } = {}) {
2447
+ function isWritableStream$1(stream, { checkOpen = true } = {}) {
2536
2448
  return isStream(stream, { checkOpen }) && (stream.writable || !checkOpen) && typeof stream.write === "function" && typeof stream.end === "function" && typeof stream.writable === "boolean" && typeof stream.writableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
2537
2449
  }
2538
- function isReadableStream(stream, { checkOpen = true } = {}) {
2450
+ function isReadableStream$1(stream, { checkOpen = true } = {}) {
2539
2451
  return isStream(stream, { checkOpen }) && (stream.readable || !checkOpen) && typeof stream.read === "function" && typeof stream.readable === "boolean" && typeof stream.readableObjectMode === "boolean" && typeof stream.destroy === "function" && typeof stream.destroyed === "boolean";
2540
2452
  }
2541
2453
  function isDuplexStream(stream, options) {
2542
- return isWritableStream(stream, options) && isReadableStream(stream, options);
2454
+ return isWritableStream$1(stream, options) && isReadableStream$1(stream, options);
2543
2455
  }
2544
-
2545
2456
  //#endregion
2546
2457
  //#region ../../node_modules/.pnpm/@sec-ant+readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js
2547
2458
  const a = Object.getPrototypeOf(Object.getPrototypeOf(
@@ -2622,11 +2533,10 @@ function h({ preventCancel: r = !1 } = {}) {
2622
2533
  const t = new c(this.getReader(), r), s = Object.create(u);
2623
2534
  return s[n] = t, s;
2624
2535
  }
2625
-
2626
2536
  //#endregion
2627
2537
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.js
2628
2538
  const getAsyncIterable = (stream) => {
2629
- if (isReadableStream(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2539
+ if (isReadableStream$1(stream, { checkOpen: false }) && nodeImports.on !== void 0) return getStreamIterable(stream);
2630
2540
  if (typeof stream?.[Symbol.asyncIterator] === "function") return stream;
2631
2541
  if (toString.call(stream) === "[object ReadableStream]") return h.call(stream);
2632
2542
  throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -2660,7 +2570,6 @@ const handleStreamEnd = async (stream, controller, state) => {
2660
2570
  }
2661
2571
  };
2662
2572
  const nodeImports = {};
2663
-
2664
2573
  //#endregion
2665
2574
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.js
2666
2575
  const getStreamContents$1 = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
@@ -2736,7 +2645,6 @@ var MaxBufferError = class extends Error {
2736
2645
  super("maxBuffer exceeded");
2737
2646
  }
2738
2647
  };
2739
-
2740
2648
  //#endregion
2741
2649
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.js
2742
2650
  const identity = (value) => value;
@@ -2746,7 +2654,6 @@ const throwObjectStream = (chunk) => {
2746
2654
  throw new Error(`Streams in object mode are not supported: ${String(chunk)}`);
2747
2655
  };
2748
2656
  const getLengthProperty = (convertedChunk) => convertedChunk.length;
2749
-
2750
2657
  //#endregion
2751
2658
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array.js
2752
2659
  async function getStreamAsArray(stream, options) {
@@ -2774,7 +2681,6 @@ const arrayMethods = {
2774
2681
  getFinalChunk: noop$1,
2775
2682
  finalize: getContentsProperty
2776
2683
  };
2777
-
2778
2684
  //#endregion
2779
2685
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.js
2780
2686
  async function getStreamAsArrayBuffer(stream, options) {
@@ -2826,7 +2732,6 @@ const arrayBufferMethods = {
2826
2732
  getFinalChunk: noop$1,
2827
2733
  finalize: finalizeArrayBuffer
2828
2734
  };
2829
-
2830
2735
  //#endregion
2831
2736
  //#region ../../node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/string.js
2832
2737
  async function getStreamAsString(stream, options) {
@@ -2836,11 +2741,11 @@ const initString = () => ({
2836
2741
  contents: "",
2837
2742
  textDecoder: new TextDecoder()
2838
2743
  });
2839
- const useTextDecoder = (chunk, { textDecoder: textDecoder$1 }) => textDecoder$1.decode(chunk, { stream: true });
2744
+ const useTextDecoder = (chunk, { textDecoder }) => textDecoder.decode(chunk, { stream: true });
2840
2745
  const addStringChunk = (convertedChunk, { contents }) => contents + convertedChunk;
2841
2746
  const truncateStringChunk = (convertedChunk, chunkSize) => convertedChunk.slice(0, chunkSize);
2842
- const getFinalStringChunk = ({ textDecoder: textDecoder$1 }) => {
2843
- const finalChunk = textDecoder$1.decode();
2747
+ const getFinalStringChunk = ({ textDecoder }) => {
2748
+ const finalChunk = textDecoder.decode();
2844
2749
  return finalChunk === "" ? void 0 : finalChunk;
2845
2750
  };
2846
2751
  const stringMethods = {
@@ -2859,7 +2764,6 @@ const stringMethods = {
2859
2764
  getFinalChunk: getFinalStringChunk,
2860
2765
  finalize: getContentsProperty
2861
2766
  };
2862
-
2863
2767
  //#endregion
2864
2768
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/max-buffer.js
2865
2769
  const handleMaxBuffer = ({ error, stream, readableObjectMode, lines, encoding, fdNumber }) => {
@@ -2915,7 +2819,6 @@ const truncateMaxBufferSync = (result, isMaxBuffer, maxBuffer) => {
2915
2819
  return result.length > maxBufferValue ? result.slice(0, maxBufferValue) : result;
2916
2820
  };
2917
2821
  const getMaxBufferSync = ([, stdoutMaxBuffer]) => stdoutMaxBuffer;
2918
-
2919
2822
  //#endregion
2920
2823
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/message.js
2921
2824
  const createMessages = ({ stdio, all, ipcOutput, originalError, signal, signalDescription, exitCode, escapedCommand, timedOut, isCanceled, isGracefullyCanceled, isMaxBuffer, isForcefullyTerminated, forceKillAfterDelay, killSignal, maxBuffer, timeout, cwd }) => {
@@ -2977,7 +2880,6 @@ const serializeMessageItem = (messageItem) => {
2977
2880
  if (isUint8Array(messageItem)) return uint8ArrayToString(messageItem);
2978
2881
  return "";
2979
2882
  };
2980
-
2981
2883
  //#endregion
2982
2884
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/result.js
2983
2885
  const makeSuccessResult = ({ command, escapedCommand, stdio, all, ipcOutput, options: { cwd }, startTime }) => omitUndefinedProperties({
@@ -3095,7 +2997,6 @@ const normalizeExitPayload = (rawExitCode, rawSignal) => {
3095
2997
  signalDescription: signal === void 0 ? void 0 : getSignalDescription(rawSignal)
3096
2998
  };
3097
2999
  };
3098
-
3099
3000
  //#endregion
3100
3001
  //#region ../../node_modules/.pnpm/parse-ms@4.0.0/node_modules/parse-ms/index.js
3101
3002
  const toZeroIfInfinity = (value) => Number.isFinite(value) ? value : 0;
@@ -3130,11 +3031,10 @@ function parseMilliseconds(milliseconds) {
3130
3031
  }
3131
3032
  throw new TypeError("Expected a finite number or bigint");
3132
3033
  }
3133
-
3134
3034
  //#endregion
3135
3035
  //#region ../../node_modules/.pnpm/pretty-ms@9.2.0/node_modules/pretty-ms/index.js
3136
3036
  const isZero = (value) => value === 0 || value === 0n;
3137
- const pluralize = (word, count$1) => count$1 === 1 || count$1 === 1n ? word : `${word}s`;
3037
+ const pluralize = (word, count) => count === 1 || count === 1n ? word : `${word}s`;
3138
3038
  const SECOND_ROUNDING_EPSILON = 1e-7;
3139
3039
  const ONE_DAY_IN_MILLISECONDS = 24n * 60n * 60n * 1000n;
3140
3040
  function prettyMilliseconds(milliseconds, options) {
@@ -3183,16 +3083,16 @@ function prettyMilliseconds(milliseconds, options) {
3183
3083
  add(Number(parsed.minutes), "minute", "m");
3184
3084
  if (!options.hideSeconds) if (options.separateMilliseconds || options.formatSubMilliseconds || !options.colonNotation && milliseconds < 1e3) {
3185
3085
  const seconds = Number(parsed.seconds);
3186
- const milliseconds$1 = Number(parsed.milliseconds);
3086
+ const milliseconds = Number(parsed.milliseconds);
3187
3087
  const microseconds = Number(parsed.microseconds);
3188
3088
  const nanoseconds = Number(parsed.nanoseconds);
3189
3089
  add(seconds, "second", "s");
3190
3090
  if (options.formatSubMilliseconds) {
3191
- add(milliseconds$1, "millisecond", "ms");
3091
+ add(milliseconds, "millisecond", "ms");
3192
3092
  add(microseconds, "microsecond", "µs");
3193
3093
  add(nanoseconds, "nanosecond", "ns");
3194
3094
  } else {
3195
- const millisecondsAndBelow = milliseconds$1 + microseconds / 1e3 + nanoseconds / 1e6;
3095
+ const millisecondsAndBelow = milliseconds + microseconds / 1e3 + nanoseconds / 1e6;
3196
3096
  const millisecondsDecimalDigits = typeof options.millisecondsDecimalDigits === "number" ? options.millisecondsDecimalDigits : 0;
3197
3097
  const millisecondsString = millisecondsDecimalDigits ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits) : millisecondsAndBelow >= 1 ? Math.round(millisecondsAndBelow) : Math.ceil(millisecondsAndBelow);
3198
3098
  add(Number.parseFloat(millisecondsString), "millisecond", "ms", millisecondsString);
@@ -3207,7 +3107,6 @@ function prettyMilliseconds(milliseconds, options) {
3207
3107
  if (typeof options.unitCount === "number") result = result.slice(0, Math.max(options.unitCount, 1));
3208
3108
  return sign + result.join(separator);
3209
3109
  }
3210
-
3211
3110
  //#endregion
3212
3111
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/error.js
3213
3112
  const logError = (result, verboseInfo) => {
@@ -3218,7 +3117,6 @@ const logError = (result, verboseInfo) => {
3218
3117
  result
3219
3118
  });
3220
3119
  };
3221
-
3222
3120
  //#endregion
3223
3121
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/complete.js
3224
3122
  const logResult = (result, verboseInfo) => {
@@ -3234,7 +3132,6 @@ const logDuration = (result, verboseInfo) => {
3234
3132
  result
3235
3133
  });
3236
3134
  };
3237
-
3238
3135
  //#endregion
3239
3136
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/reject.js
3240
3137
  const handleResult = (result, verboseInfo, { reject }) => {
@@ -3242,7 +3139,6 @@ const handleResult = (result, verboseInfo, { reject }) => {
3242
3139
  if (result.failed && reject) throw result;
3243
3140
  return result;
3244
3141
  };
3245
-
3246
3142
  //#endregion
3247
3143
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/type.js
3248
3144
  const getStdioItemType = (value, optionName) => {
@@ -3309,10 +3205,10 @@ const KNOWN_STDIO_STRINGS = new Set([
3309
3205
  "overlapped",
3310
3206
  "pipe"
3311
3207
  ]);
3312
- const isReadableStream$1 = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3313
- const isWritableStream$1 = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3314
- const isWebStream = (value) => isReadableStream$1(value) || isWritableStream$1(value);
3315
- const isTransformStream = (value) => isReadableStream$1(value?.readable) && isWritableStream$1(value?.writable);
3208
+ const isReadableStream = (value) => Object.prototype.toString.call(value) === "[object ReadableStream]";
3209
+ const isWritableStream = (value) => Object.prototype.toString.call(value) === "[object WritableStream]";
3210
+ const isWebStream = (value) => isReadableStream(value) || isWritableStream(value);
3211
+ const isTransformStream = (value) => isReadableStream(value?.readable) && isWritableStream(value?.writable);
3316
3212
  const isAsyncIterableObject = (value) => isObject(value) && typeof value[Symbol.asyncIterator] === "function";
3317
3213
  const isIterableObject = (value) => isObject(value) && typeof value[Symbol.iterator] === "function";
3318
3214
  const isObject = (value) => typeof value === "object" && value !== null;
@@ -3350,7 +3246,6 @@ const TYPE_TO_MESSAGE = {
3350
3246
  string: "a string",
3351
3247
  uint8Array: "a Uint8Array"
3352
3248
  };
3353
-
3354
3249
  //#endregion
3355
3250
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/object-mode.js
3356
3251
  const getTransformObjectModes = (objectMode, index, newTransforms, direction) => direction === "output" ? getOutputObjectModes(objectMode, index, newTransforms) : getInputObjectModes(objectMode, index, newTransforms);
@@ -3373,7 +3268,6 @@ const getFdObjectMode = (stdioItems, direction) => {
3373
3268
  if (lastTransform === void 0) return false;
3374
3269
  return direction === "input" ? lastTransform.value.writableObjectMode : lastTransform.value.readableObjectMode;
3375
3270
  };
3376
-
3377
3271
  //#endregion
3378
3272
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/normalize.js
3379
3273
  const normalizeTransforms = (stdioItems, optionName, direction, options) => [...stdioItems.filter(({ type }) => !TRANSFORM_TYPES.has(type)), ...getTransforms(stdioItems, optionName, direction, options)];
@@ -3450,7 +3344,6 @@ const normalizeGenerator = ({ stdioItem, stdioItem: { value }, index, newTransfo
3450
3344
  };
3451
3345
  };
3452
3346
  const sortTransforms = (newTransforms, direction) => direction === "input" ? newTransforms.reverse() : newTransforms;
3453
-
3454
3347
  //#endregion
3455
3348
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/direction.js
3456
3349
  const getStreamDirection = (stdioItems, fdNumber, optionName) => {
@@ -3474,10 +3367,10 @@ const guessStreamDirection = {
3474
3367
  iterable: alwaysInput,
3475
3368
  asyncIterable: alwaysInput,
3476
3369
  uint8Array: alwaysInput,
3477
- webStream: (value) => isWritableStream$1(value) ? "output" : "input",
3370
+ webStream: (value) => isWritableStream(value) ? "output" : "input",
3478
3371
  nodeStream(value) {
3479
- if (!isReadableStream(value, { checkOpen: false })) return "output";
3480
- return isWritableStream(value, { checkOpen: false }) ? void 0 : "input";
3372
+ if (!isReadableStream$1(value, { checkOpen: false })) return "output";
3373
+ return isWritableStream$1(value, { checkOpen: false }) ? void 0 : "input";
3481
3374
  },
3482
3375
  webTransform: anyDirection,
3483
3376
  duplex: anyDirection,
@@ -3497,14 +3390,12 @@ const getStandardStreamDirection = (value) => {
3497
3390
  ].includes(value)) return "output";
3498
3391
  };
3499
3392
  const DEFAULT_DIRECTION = "output";
3500
-
3501
3393
  //#endregion
3502
3394
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/array.js
3503
3395
  const normalizeIpcStdioArray = (stdioArray, ipc) => ipc && !stdioArray.includes("ipc") ? [...stdioArray, "ipc"] : stdioArray;
3504
-
3505
3396
  //#endregion
3506
3397
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/stdio-option.js
3507
- const normalizeStdioOption = ({ stdio, ipc, buffer,...options }, verboseInfo, isSync) => {
3398
+ const normalizeStdioOption = ({ stdio, ipc, buffer, ...options }, verboseInfo, isSync) => {
3508
3399
  const stdioArray = getStdioArray(stdio, options).map((stdioOption, fdNumber) => addDefaultValue(stdioOption, fdNumber));
3509
3400
  return isSync ? normalizeStdioSync(stdioArray, buffer, verboseInfo) : normalizeIpcStdioArray(stdioArray, ipc);
3510
3401
  };
@@ -3528,7 +3419,6 @@ const addDefaultValue = (stdioOption, fdNumber) => {
3528
3419
  };
3529
3420
  const normalizeStdioSync = (stdioArray, buffer, verboseInfo) => stdioArray.map((stdioOption, fdNumber) => !buffer[fdNumber] && fdNumber !== 0 && !isFullVerbose(verboseInfo, fdNumber) && isOutputPipeOnly(stdioOption) ? "ignore" : stdioOption);
3530
3421
  const isOutputPipeOnly = (stdioOption) => stdioOption === "pipe" || Array.isArray(stdioOption) && stdioOption.every((item) => item === "pipe");
3531
-
3532
3422
  //#endregion
3533
3423
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/native.js
3534
3424
  const handleNativeStream = ({ stdioItem, stdioItem: { type }, isStdioArray, fdNumber, direction, isSync }) => {
@@ -3597,7 +3487,6 @@ const getStandardStream = (fdNumber, value, optionName) => {
3597
3487
  if (standardStream === void 0) throw new TypeError(`The \`${optionName}: ${value}\` option is invalid: no such standard stream.`);
3598
3488
  return standardStream;
3599
3489
  };
3600
-
3601
3490
  //#endregion
3602
3491
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/input-option.js
3603
3492
  const handleInputOptions = ({ input, inputFile }, fdNumber) => fdNumber === 0 ? [...handleInputOption(input), ...handleInputFileOption(inputFile)] : [];
@@ -3607,7 +3496,7 @@ const handleInputOption = (input) => input === void 0 ? [] : [{
3607
3496
  optionName: "input"
3608
3497
  }];
3609
3498
  const getInputType = (input) => {
3610
- if (isReadableStream(input, { checkOpen: false })) return "nodeStream";
3499
+ if (isReadableStream$1(input, { checkOpen: false })) return "nodeStream";
3611
3500
  if (typeof input === "string") return "string";
3612
3501
  if (isUint8Array(input)) return "uint8Array";
3613
3502
  throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.");
@@ -3627,7 +3516,6 @@ const getInputFileType = (inputFile) => {
3627
3516
  };
3628
3517
  throw new Error("The `inputFile` option must be a file path string or a file URL.");
3629
3518
  };
3630
-
3631
3519
  //#endregion
3632
3520
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/duplicate.js
3633
3521
  const filterDuplicates = (stdioItems) => stdioItems.filter((stdioItemOne, indexOne) => stdioItems.every((stdioItemTwo, indexTwo) => stdioItemOne.value !== stdioItemTwo.value || indexOne >= indexTwo || stdioItemOne.type === "generator" || stdioItemOne.type === "asyncGenerator"));
@@ -3688,10 +3576,9 @@ const validateDuplicateTransform = ({ otherStdioItems, type, value, optionName }
3688
3576
  const throwOnDuplicateStream = (stdioItem, optionName, type) => {
3689
3577
  if (stdioItem !== void 0) throw new TypeError(`The \`${stdioItem.optionName}\` and \`${optionName}\` options must not target ${TYPE_TO_MESSAGE[type]} that is the same.`);
3690
3578
  };
3691
-
3692
3579
  //#endregion
3693
3580
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle.js
3694
- const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
3581
+ const handleStdio = (addProperties, options, verboseInfo, isSync) => {
3695
3582
  const fileDescriptors = getFinalFileDescriptors({
3696
3583
  initialFileDescriptors: normalizeStdioOption(options, verboseInfo, isSync).map((stdioOption, fdNumber) => getFileDescriptor({
3697
3584
  stdioOption,
@@ -3699,7 +3586,7 @@ const handleStdio = (addProperties$2, options, verboseInfo, isSync) => {
3699
3586
  options,
3700
3587
  isSync
3701
3588
  })),
3702
- addProperties: addProperties$2,
3589
+ addProperties,
3703
3590
  options,
3704
3591
  isSync
3705
3592
  });
@@ -3748,7 +3635,7 @@ const initializeStdioItem = (value, optionName) => ({
3748
3635
  const validateStdioArray = (stdioItems, isStdioArray, optionName) => {
3749
3636
  if (stdioItems.length === 0) throw new TypeError(`The \`${optionName}\` option must not be an empty array.`);
3750
3637
  if (!isStdioArray) return;
3751
- for (const { value, optionName: optionName$1 } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName$1}\` option must not include \`${value}\`.`);
3638
+ for (const { value, optionName } of stdioItems) if (INVALID_STDIO_ARRAY_OPTIONS.has(value)) throw new Error(`The \`${optionName}\` option must not include \`${value}\`.`);
3752
3639
  };
3753
3640
  const INVALID_STDIO_ARRAY_OPTIONS = new Set(["ignore", "ipc"]);
3754
3641
  const validateStreams = (stdioItems) => {
@@ -3764,13 +3651,13 @@ const validateFileObjectMode = (stdioItems, objectMode) => {
3764
3651
  const fileStdioItem = stdioItems.find(({ type }) => FILE_TYPES.has(type));
3765
3652
  if (fileStdioItem !== void 0) throw new TypeError(`The \`${fileStdioItem.optionName}\` option cannot use both files and transforms in objectMode.`);
3766
3653
  };
3767
- const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addProperties$2, options, isSync }) => {
3654
+ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties, options, isSync }) => {
3768
3655
  const fileDescriptors = [];
3769
3656
  try {
3770
3657
  for (const fileDescriptor of initialFileDescriptors) fileDescriptors.push(getFinalFileDescriptor({
3771
3658
  fileDescriptor,
3772
3659
  fileDescriptors,
3773
- addProperties: addProperties$2,
3660
+ addProperties,
3774
3661
  options,
3775
3662
  isSync
3776
3663
  }));
@@ -3780,13 +3667,13 @@ const getFinalFileDescriptors = ({ initialFileDescriptors, addProperties: addPro
3780
3667
  throw error;
3781
3668
  }
3782
3669
  };
3783
- const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties: addProperties$2, options, isSync }) => {
3670
+ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdioItems }, fileDescriptors, addProperties, options, isSync }) => {
3784
3671
  return {
3785
3672
  direction,
3786
3673
  objectMode,
3787
3674
  stdioItems: stdioItems.map((stdioItem) => addStreamProperties({
3788
3675
  stdioItem,
3789
- addProperties: addProperties$2,
3676
+ addProperties,
3790
3677
  direction,
3791
3678
  options,
3792
3679
  fileDescriptors,
@@ -3794,7 +3681,7 @@ const getFinalFileDescriptor = ({ fileDescriptor: { direction, objectMode, stdio
3794
3681
  }))
3795
3682
  };
3796
3683
  };
3797
- const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direction, options, fileDescriptors, isSync }) => {
3684
+ const addStreamProperties = ({ stdioItem, addProperties, direction, options, fileDescriptors, isSync }) => {
3798
3685
  const duplicateStream = getDuplicateStream({
3799
3686
  stdioItem,
3800
3687
  direction,
@@ -3807,18 +3694,17 @@ const addStreamProperties = ({ stdioItem, addProperties: addProperties$2, direct
3807
3694
  };
3808
3695
  return {
3809
3696
  ...stdioItem,
3810
- ...addProperties$2[direction][stdioItem.type](stdioItem, options)
3697
+ ...addProperties[direction][stdioItem.type](stdioItem, options)
3811
3698
  };
3812
3699
  };
3813
3700
  const cleanupCustomStreams = (fileDescriptors) => {
3814
3701
  for (const { stdioItems } of fileDescriptors) for (const { stream } of stdioItems) if (stream !== void 0 && !isStandardStream(stream)) stream.destroy();
3815
3702
  };
3816
3703
  const forwardStdio = (stdioItems) => {
3817
- if (stdioItems.length > 1) return stdioItems.some(({ value: value$1 }) => value$1 === "overlapped") ? "overlapped" : "pipe";
3704
+ if (stdioItems.length > 1) return stdioItems.some(({ value }) => value === "overlapped") ? "overlapped" : "pipe";
3818
3705
  const [{ type, value }] = stdioItems;
3819
3706
  return type === "native" ? value : "pipe";
3820
3707
  };
3821
-
3822
3708
  //#endregion
3823
3709
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-sync.js
3824
3710
  const handleStdioSync = (options, verboseInfo) => handleStdio(addPropertiesSync, options, verboseInfo, true);
@@ -3865,12 +3751,10 @@ const addPropertiesSync = {
3865
3751
  uint8Array: forbiddenIfSync
3866
3752
  }
3867
3753
  };
3868
-
3869
3754
  //#endregion
3870
3755
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/strip-newline.js
3871
3756
  const stripNewline = (value, { stripFinalNewline: stripFinalNewline$1 }, fdNumber) => getStripFinalNewline(stripFinalNewline$1, fdNumber) && value !== void 0 && !Array.isArray(value) ? stripFinalNewline(value) : value;
3872
- const getStripFinalNewline = (stripFinalNewline$1, fdNumber) => fdNumber === "all" ? stripFinalNewline$1[1] || stripFinalNewline$1[2] : stripFinalNewline$1[fdNumber];
3873
-
3757
+ const getStripFinalNewline = (stripFinalNewline, fdNumber) => fdNumber === "all" ? stripFinalNewline[1] || stripFinalNewline[2] : stripFinalNewline[fdNumber];
3874
3758
  //#endregion
3875
3759
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/split.js
3876
3760
  const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped ? void 0 : initializeSplitLines(preserveNewlines, state);
@@ -3916,8 +3800,8 @@ const linesFinal = function* ({ previousChunks }) {
3916
3800
  };
3917
3801
  const getAppendNewlineGenerator = ({ binary, preserveNewlines, readableObjectMode, state }) => binary || preserveNewlines || readableObjectMode ? void 0 : { transform: appendNewlineGenerator.bind(void 0, state) };
3918
3802
  const appendNewlineGenerator = function* ({ isWindowsNewline = false }, chunk) {
3919
- const { unixNewline, windowsNewline, LF: LF$1, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
3920
- if (chunk.at(-1) === LF$1) {
3803
+ const { unixNewline, windowsNewline, LF, concatBytes } = typeof chunk === "string" ? linesStringInfo : linesUint8ArrayInfo;
3804
+ if (chunk.at(-1) === LF) {
3921
3805
  yield chunk;
3922
3806
  return;
3923
3807
  }
@@ -3942,7 +3826,6 @@ const linesUint8ArrayInfo = {
3942
3826
  LF: 10,
3943
3827
  concatBytes: concatUint8Array
3944
3828
  };
3945
-
3946
3829
  //#endregion
3947
3830
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/validate.js
3948
3831
  const getValidateTransformInput = (writableObjectMode, optionName) => writableObjectMode ? void 0 : validateStringTransformInput.bind(void 0, optionName);
@@ -3965,7 +3848,6 @@ const validateEmptyReturn = (optionName, chunk) => {
3965
3848
  Instead, \`yield\` should either be called with a value, or not be called at all. For example:
3966
3849
  if (condition) { yield value; }`);
3967
3850
  };
3968
-
3969
3851
  //#endregion
3970
3852
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/encoding-transform.js
3971
3853
  const getEncodingTransformGenerator = (binary, encoding, skipped) => {
@@ -3977,9 +3859,9 @@ const getEncodingTransformGenerator = (binary, encoding, skipped) => {
3977
3859
  final: encodingStringFinal.bind(void 0, stringDecoder)
3978
3860
  };
3979
3861
  };
3980
- const encodingUint8ArrayGenerator = function* (textEncoder$2, chunk) {
3862
+ const encodingUint8ArrayGenerator = function* (textEncoder, chunk) {
3981
3863
  if (node_buffer.Buffer.isBuffer(chunk)) yield bufferToUint8Array(chunk);
3982
- else if (typeof chunk === "string") yield textEncoder$2.encode(chunk);
3864
+ else if (typeof chunk === "string") yield textEncoder.encode(chunk);
3983
3865
  else yield chunk;
3984
3866
  };
3985
3867
  const encodingStringGenerator = function* (stringDecoder, chunk) {
@@ -3989,7 +3871,6 @@ const encodingStringFinal = function* (stringDecoder) {
3989
3871
  const lastChunk = stringDecoder.end();
3990
3872
  if (lastChunk !== "") yield lastChunk;
3991
3873
  };
3992
-
3993
3874
  //#endregion
3994
3875
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-async.js
3995
3876
  const pushChunks = (0, node_util.callbackify)(async (getChunks, state, getChunksArguments, transformStream) => {
@@ -4025,7 +3906,6 @@ const destroyTransform = (0, node_util.callbackify)(async ({ currentIterable },
4025
3906
  const identityGenerator$1 = function* (chunk) {
4026
3907
  yield chunk;
4027
3908
  };
4028
-
4029
3909
  //#endregion
4030
3910
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/run-sync.js
4031
3911
  const pushChunksSync = (getChunksSync, getChunksArguments, transformStream, done) => {
@@ -4055,7 +3935,6 @@ const generatorFinalChunksSync = function* (final, index, generators) {
4055
3935
  const identityGenerator = function* (chunk) {
4056
3936
  yield chunk;
4057
3937
  };
4058
-
4059
3938
  //#endregion
4060
3939
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/transform/generator.js
4061
3940
  const generatorToStream = ({ value, value: { transform, final, writableObjectMode, readableObjectMode }, optionName }, { encoding }) => {
@@ -4071,7 +3950,7 @@ const generatorToStream = ({ value, value: { transform, final, writableObjectMod
4071
3950
  writableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(writableObjectMode),
4072
3951
  readableObjectMode,
4073
3952
  readableHighWaterMark: (0, node_stream.getDefaultHighWaterMark)(readableObjectMode),
4074
- transform(chunk, encoding$1, done) {
3953
+ transform(chunk, encoding, done) {
4075
3954
  transformMethod([
4076
3955
  chunk,
4077
3956
  generators,
@@ -4109,7 +3988,6 @@ const addInternalGenerators = ({ transform, final, binary, writableObjectMode, r
4109
3988
  })
4110
3989
  ].filter(Boolean);
4111
3990
  };
4112
-
4113
3991
  //#endregion
4114
3992
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/input-sync.js
4115
3993
  const addInputOptionsSync = (fileDescriptors, options) => {
@@ -4135,7 +4013,6 @@ const validateSerializable = (newContents) => {
4135
4013
  const invalidItem = newContents.find((item) => typeof item !== "string" && !isUint8Array(item));
4136
4014
  if (invalidItem !== void 0) throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${invalidItem}.`);
4137
4015
  };
4138
-
4139
4016
  //#endregion
4140
4017
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/output.js
4141
4018
  const shouldLogOutput = ({ stdioItems, encoding, verboseInfo, fdNumber }) => fdNumber !== "all" && isFullVerbose(verboseInfo, fdNumber) && !BINARY_ENCODINGS.has(encoding) && fdUsesVerbose(fdNumber) && (stdioItems.some(({ type, value }) => type === "native" && PIPED_STDIO_VALUES.has(value)) || stdioItems.every(({ type }) => TRANSFORM_TYPES.has(type)));
@@ -4156,7 +4033,6 @@ const logLine = (line, fdNumber, verboseInfo) => {
4156
4033
  verboseInfo
4157
4034
  });
4158
4035
  };
4159
-
4160
4036
  //#endregion
4161
4037
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-sync.js
4162
4038
  const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
@@ -4176,7 +4052,7 @@ const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options,
4176
4052
  ...state
4177
4053
  };
4178
4054
  };
4179
- const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline: stripFinalNewline$1, maxBuffer }) => {
4055
+ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, outputFiles, isMaxBuffer, verboseInfo }, { buffer, encoding, lines, stripFinalNewline, maxBuffer }) => {
4180
4056
  if (result === null) return;
4181
4057
  const uint8ArrayResult = bufferToUint8Array(truncateMaxBufferSync(result, isMaxBuffer, maxBuffer));
4182
4058
  const { stdioItems, objectMode } = fileDescriptors[fdNumber];
@@ -4185,7 +4061,7 @@ const transformOutputResultSync = ({ result, fileDescriptors, fdNumber, state, o
4185
4061
  objectMode,
4186
4062
  encoding,
4187
4063
  lines,
4188
- stripFinalNewline: stripFinalNewline$1,
4064
+ stripFinalNewline,
4189
4065
  fdNumber
4190
4066
  });
4191
4067
  logOutputSync({
@@ -4214,13 +4090,13 @@ const runOutputGeneratorsSync = (chunks, stdioItems, encoding, state) => {
4214
4090
  return chunks;
4215
4091
  }
4216
4092
  };
4217
- const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline: stripFinalNewline$1, fdNumber }) => {
4093
+ const serializeChunks = ({ chunks, objectMode, encoding, lines, stripFinalNewline, fdNumber }) => {
4218
4094
  if (objectMode) return { serializedResult: chunks };
4219
4095
  if (encoding === "buffer") return { serializedResult: joinToUint8Array(chunks) };
4220
4096
  const serializedResult = joinToString(chunks, encoding);
4221
4097
  if (lines[fdNumber]) return {
4222
4098
  serializedResult,
4223
- finalResult: splitLinesSync(serializedResult, !stripFinalNewline$1[fdNumber], objectMode)
4099
+ finalResult: splitLinesSync(serializedResult, !stripFinalNewline[fdNumber], objectMode)
4224
4100
  };
4225
4101
  return { serializedResult };
4226
4102
  };
@@ -4239,16 +4115,15 @@ const logOutputSync = ({ serializedResult, fdNumber, state, verboseInfo, encodin
4239
4115
  }
4240
4116
  };
4241
4117
  const writeToFiles = (serializedResult, stdioItems, outputFiles) => {
4242
- for (const { path: path$10, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4243
- const pathString = typeof path$10 === "string" ? path$10 : path$10.toString();
4244
- if (append || outputFiles.has(pathString)) (0, node_fs.appendFileSync)(path$10, serializedResult);
4118
+ for (const { path, append } of stdioItems.filter(({ type }) => FILE_TYPES.has(type))) {
4119
+ const pathString = typeof path === "string" ? path : path.toString();
4120
+ if (append || outputFiles.has(pathString)) (0, node_fs.appendFileSync)(path, serializedResult);
4245
4121
  else {
4246
4122
  outputFiles.add(pathString);
4247
- (0, node_fs.writeFileSync)(path$10, serializedResult);
4123
+ (0, node_fs.writeFileSync)(path, serializedResult);
4248
4124
  }
4249
4125
  }
4250
4126
  };
4251
-
4252
4127
  //#endregion
4253
4128
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-sync.js
4254
4129
  const getAllSync = ([, stdout, stderr], options) => {
@@ -4260,7 +4135,6 @@ const getAllSync = ([, stdout, stderr], options) => {
4260
4135
  if (isUint8Array(stdout) && isUint8Array(stderr)) return concatUint8Arrays([stdout, stderr]);
4261
4136
  return `${stdout}${stderr}`;
4262
4137
  };
4263
-
4264
4138
  //#endregion
4265
4139
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-async.js
4266
4140
  const waitForExit = async (subprocess, context) => {
@@ -4287,7 +4161,6 @@ const waitForSuccessfulExit = async (exitPromise) => {
4287
4161
  };
4288
4162
  const isSubprocessErrorExit = (exitCode, signal) => exitCode === void 0 && signal === void 0;
4289
4163
  const isFailedExit = (exitCode, signal) => exitCode !== 0 || signal !== null;
4290
-
4291
4164
  //#endregion
4292
4165
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/exit-sync.js
4293
4166
  const getExitResultSync = ({ error, status: exitCode, signal, output }, { maxBuffer }) => {
@@ -4304,7 +4177,6 @@ const getResultError = (error, exitCode, signal) => {
4304
4177
  if (error !== void 0) return error;
4305
4178
  return isFailedExit(exitCode, signal) ? new DiscardedError() : void 0;
4306
4179
  };
4307
-
4308
4180
  //#endregion
4309
4181
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-sync.js
4310
4182
  const execaCoreSync = (rawFile, rawArguments, rawOptions) => {
@@ -4397,7 +4269,7 @@ const runSubprocessSync = ({ file, commandArguments, options, command, escapedCo
4397
4269
  });
4398
4270
  }
4399
4271
  };
4400
- const normalizeSpawnSyncOptions = ({ encoding, maxBuffer,...options }) => ({
4272
+ const normalizeSpawnSyncOptions = ({ encoding, maxBuffer, ...options }) => ({
4401
4273
  ...options,
4402
4274
  encoding: "buffer",
4403
4275
  maxBuffer: getMaxBufferSync(maxBuffer)
@@ -4428,7 +4300,6 @@ const getSyncResult = ({ error, exitCode, signal, timedOut, isMaxBuffer, stdio,
4428
4300
  startTime,
4429
4301
  isSync: true
4430
4302
  });
4431
-
4432
4303
  //#endregion
4433
4304
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-one.js
4434
4305
  const getOneMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true, filter } = {}) => {
@@ -4479,7 +4350,6 @@ const throwOnStrictError = async (ipcEmitter, isSubprocess, { signal }) => {
4479
4350
  const [error] = await (0, node_events.once)(ipcEmitter, "strict:error", { signal });
4480
4351
  throw getStrictResponseError(error, isSubprocess);
4481
4352
  };
4482
-
4483
4353
  //#endregion
4484
4354
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/get-each.js
4485
4355
  const getEachMessage$1 = ({ anyProcess, channel, isSubprocess, ipc }, { reference = true } = {}) => loopOnMessages({
@@ -4550,7 +4420,6 @@ const iterateOnMessages = async function* ({ anyProcess, channel, ipcEmitter, is
4550
4420
  const throwIfStrictError = ({ error }) => {
4551
4421
  if (error) throw error;
4552
4422
  };
4553
-
4554
4423
  //#endregion
4555
4424
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/methods.js
4556
4425
  const addIpcMethods = (subprocess, { ipc }) => {
@@ -4590,7 +4459,6 @@ const getIpcMethods = (anyProcess, isSubprocess, ipc) => ({
4590
4459
  ipc
4591
4460
  })
4592
4461
  });
4593
-
4594
4462
  //#endregion
4595
4463
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/return/early-error.js
4596
4464
  const handleEarlyError = ({ error, command, escapedCommand, fileDescriptors, options, startTime, verboseInfo }) => {
@@ -4647,7 +4515,6 @@ const duplex = () => new node_stream.Duplex({
4647
4515
  write() {}
4648
4516
  });
4649
4517
  const handleDummyPromise = async (error, verboseInfo, options) => handleResult(error, verboseInfo, options);
4650
-
4651
4518
  //#endregion
4652
4519
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/stdio/handle-async.js
4653
4520
  const handleStdioAsync = (options, verboseInfo) => handleStdio(addPropertiesAsync, options, verboseInfo, false);
@@ -4688,7 +4555,6 @@ const addPropertiesAsync = {
4688
4555
  uint8Array: forbiddenIfAsync
4689
4556
  }
4690
4557
  };
4691
-
4692
4558
  //#endregion
4693
4559
  //#region ../../node_modules/.pnpm/@sindresorhus+merge-streams@4.0.0/node_modules/@sindresorhus/merge-streams/index.js
4694
4560
  function mergeStreams(streams) {
@@ -4771,7 +4637,7 @@ const onInputStreamsUnpipe = async (passThroughStream, streams, unpipeEvent, { s
4771
4637
  const validateStream = (stream) => {
4772
4638
  if (typeof stream?.pipe !== "function") throw new TypeError(`Expected a readable stream, got: \`${typeof stream}\`.`);
4773
4639
  };
4774
- const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, onFinished, unpipeEvent }) => {
4640
+ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, aborted, onFinished, unpipeEvent }) => {
4775
4641
  updateMaxListeners(passThroughStream, PASSTHROUGH_LISTENERS_PER_STREAM);
4776
4642
  const controller = new AbortController();
4777
4643
  try {
@@ -4782,14 +4648,14 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
4782
4648
  stream,
4783
4649
  streams,
4784
4650
  ended,
4785
- aborted: aborted$1,
4651
+ aborted,
4786
4652
  controller
4787
4653
  }),
4788
4654
  onInputStreamUnpipe({
4789
4655
  stream,
4790
4656
  streams,
4791
4657
  ended,
4792
- aborted: aborted$1,
4658
+ aborted,
4793
4659
  unpipeEvent,
4794
4660
  controller
4795
4661
  })
@@ -4798,7 +4664,7 @@ const endWhenStreamsDone = async ({ passThroughStream, stream, streams, ended, a
4798
4664
  controller.abort();
4799
4665
  updateMaxListeners(passThroughStream, -PASSTHROUGH_LISTENERS_PER_STREAM);
4800
4666
  }
4801
- if (streams.size > 0 && streams.size === ended.size + aborted$1.size) if (ended.size === 0 && aborted$1.size > 0) abortStream(passThroughStream);
4667
+ if (streams.size > 0 && streams.size === ended.size + aborted.size) if (ended.size === 0 && aborted.size > 0) abortStream(passThroughStream);
4802
4668
  else endStream(passThroughStream);
4803
4669
  };
4804
4670
  const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
@@ -4809,7 +4675,7 @@ const afterMergedStreamFinished = async (onFinished, stream, { signal }) => {
4809
4675
  if (!signal.aborted) errorOrAbortStream(stream, error);
4810
4676
  }
4811
4677
  };
4812
- const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted: aborted$1, controller: { signal } }) => {
4678
+ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, aborted, controller: { signal } }) => {
4813
4679
  try {
4814
4680
  await (0, node_stream_promises.finished)(stream, {
4815
4681
  signal,
@@ -4820,16 +4686,16 @@ const onInputStreamEnd = async ({ passThroughStream, stream, streams, ended, abo
4820
4686
  if (streams.has(stream)) ended.add(stream);
4821
4687
  } catch (error) {
4822
4688
  if (signal.aborted || !streams.has(stream)) return;
4823
- if (isAbortError(error)) aborted$1.add(stream);
4689
+ if (isAbortError(error)) aborted.add(stream);
4824
4690
  else errorStream(passThroughStream, error);
4825
4691
  }
4826
4692
  };
4827
- const onInputStreamUnpipe = async ({ stream, streams, ended, aborted: aborted$1, unpipeEvent, controller: { signal } }) => {
4693
+ const onInputStreamUnpipe = async ({ stream, streams, ended, aborted, unpipeEvent, controller: { signal } }) => {
4828
4694
  await (0, node_events.once)(stream, unpipeEvent, { signal });
4829
4695
  if (!stream.readable) return (0, node_events.once)(signal, "abort", { signal });
4830
4696
  streams.delete(stream);
4831
4697
  ended.delete(stream);
4832
- aborted$1.delete(stream);
4698
+ aborted.delete(stream);
4833
4699
  };
4834
4700
  const endStream = (stream) => {
4835
4701
  if (stream.writable) stream.end();
@@ -4849,13 +4715,12 @@ const errorStream = (stream, error) => {
4849
4715
  }
4850
4716
  };
4851
4717
  const noop = () => {};
4852
- const updateMaxListeners = (passThroughStream, increment$1) => {
4718
+ const updateMaxListeners = (passThroughStream, increment) => {
4853
4719
  const maxListeners = passThroughStream.getMaxListeners();
4854
- if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment$1);
4720
+ if (maxListeners !== 0 && maxListeners !== Number.POSITIVE_INFINITY) passThroughStream.setMaxListeners(maxListeners + increment);
4855
4721
  };
4856
4722
  const PASSTHROUGH_LISTENERS_COUNT = 2;
4857
4723
  const PASSTHROUGH_LISTENERS_PER_STREAM = 1;
4858
-
4859
4724
  //#endregion
4860
4725
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/pipeline.js
4861
4726
  const pipeStreams = (source, destination) => {
@@ -4891,7 +4756,6 @@ const onDestinationFinish = async (source, destination) => {
4891
4756
  const abortSourceStream = (source) => {
4892
4757
  if (source.readable) source.destroy();
4893
4758
  };
4894
-
4895
4759
  //#endregion
4896
4760
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/output-async.js
4897
4761
  const pipeOutputAsync = (subprocess, fileDescriptors, controller) => {
@@ -4932,7 +4796,6 @@ const setStandardStreamMaxListeners = (stream, { signal }) => {
4932
4796
  if (isStandardStream(stream)) incrementMaxListeners(stream, MAX_LISTENERS_INCREMENT, signal);
4933
4797
  };
4934
4798
  const MAX_LISTENERS_INCREMENT = 2;
4935
-
4936
4799
  //#endregion
4937
4800
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
4938
4801
  /**
@@ -4965,10 +4828,9 @@ const signals = [];
4965
4828
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
4966
4829
  if (process.platform !== "win32") signals.push("SIGALRM", "SIGABRT", "SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
4967
4830
  if (process.platform === "linux") signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
4968
-
4969
4831
  //#endregion
4970
4832
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
4971
- const processOk = (process$9) => !!process$9 && typeof process$9 === "object" && typeof process$9.removeListener === "function" && typeof process$9.emit === "function" && typeof process$9.reallyExit === "function" && typeof process$9.listeners === "function" && typeof process$9.kill === "function" && typeof process$9.pid === "number" && typeof process$9.on === "function";
4833
+ const processOk = (process) => !!process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
4972
4834
  const kExitEmitter = Symbol.for("signal-exit emitter");
4973
4835
  const global$1 = globalThis;
4974
4836
  const ObjectDefineProperty = Object.defineProperty.bind(Object);
@@ -4997,12 +4859,12 @@ var Emitter = class {
4997
4859
  }
4998
4860
  removeListener(ev, fn) {
4999
4861
  const list = this.listeners[ev];
5000
- const i$1 = list.indexOf(fn);
4862
+ const i = list.indexOf(fn);
5001
4863
  /* c8 ignore start */
5002
- if (i$1 === -1) return;
4864
+ if (i === -1) return;
5003
4865
  /* c8 ignore stop */
5004
- if (i$1 === 0 && list.length === 1) list.length = 0;
5005
- else list.splice(i$1, 1);
4866
+ if (i === 0 && list.length === 1) list.length = 0;
4867
+ else list.splice(i, 1);
5006
4868
  }
5007
4869
  emit(ev, code, signal) {
5008
4870
  if (this.emitted[ev]) return false;
@@ -5044,27 +4906,27 @@ var SignalExit = class extends SignalExitBase {
5044
4906
  #originalProcessReallyExit;
5045
4907
  #sigListeners = {};
5046
4908
  #loaded = false;
5047
- constructor(process$9) {
4909
+ constructor(process) {
5048
4910
  super();
5049
- this.#process = process$9;
4911
+ this.#process = process;
5050
4912
  this.#sigListeners = {};
5051
4913
  for (const sig of signals) this.#sigListeners[sig] = () => {
5052
4914
  const listeners = this.#process.listeners(sig);
5053
- let { count: count$1 } = this.#emitter;
4915
+ let { count } = this.#emitter;
5054
4916
  /* c8 ignore start */
5055
- const p = process$9;
5056
- if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count$1 += p.__signal_exit_emitter__.count;
4917
+ const p = process;
4918
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") count += p.__signal_exit_emitter__.count;
5057
4919
  /* c8 ignore stop */
5058
- if (listeners.length === count$1) {
4920
+ if (listeners.length === count) {
5059
4921
  this.unload();
5060
4922
  const ret = this.#emitter.emit("exit", null, sig);
5061
4923
  /* c8 ignore start */
5062
4924
  const s = sig === "SIGHUP" ? this.#hupSig : sig;
5063
- if (!ret) process$9.kill(process$9.pid, s);
4925
+ if (!ret) process.kill(process.pid, s);
5064
4926
  }
5065
4927
  };
5066
- this.#originalProcessReallyExit = process$9.reallyExit;
5067
- this.#originalProcessEmit = process$9.emit;
4928
+ this.#originalProcessReallyExit = process.reallyExit;
4929
+ this.#originalProcessEmit = process.emit;
5068
4930
  }
5069
4931
  onExit(cb, opts) {
5070
4932
  /* c8 ignore start */
@@ -5086,8 +4948,8 @@ var SignalExit = class extends SignalExitBase {
5086
4948
  const fn = this.#sigListeners[sig];
5087
4949
  if (fn) this.#process.on(sig, fn);
5088
4950
  } catch (_) {}
5089
- this.#process.emit = (ev, ...a$1) => {
5090
- return this.#processEmit(ev, ...a$1);
4951
+ this.#process.emit = (ev, ...a) => {
4952
+ return this.#processEmit(ev, ...a);
5091
4953
  };
5092
4954
  this.#process.reallyExit = (code) => {
5093
4955
  return this.#processReallyExit(code);
@@ -5133,7 +4995,6 @@ var SignalExit = class extends SignalExitBase {
5133
4995
  };
5134
4996
  const process$1 = globalThis.process;
5135
4997
  const { onExit, load, unload } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
5136
-
5137
4998
  //#endregion
5138
4999
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/terminate/cleanup.js
5139
5000
  const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
@@ -5145,7 +5006,6 @@ const cleanupOnExit = (subprocess, { cleanup, detached }, { signal }) => {
5145
5006
  removeExitHandler();
5146
5007
  });
5147
5008
  };
5148
-
5149
5009
  //#endregion
5150
5010
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/pipe-arguments.js
5151
5011
  const normalizePipeArguments = ({ source, sourcePromise, boundOptions, createNested }, ...pipeArguments) => {
@@ -5213,7 +5073,6 @@ const getSourceStream = (source, from) => {
5213
5073
  return { sourceError: error };
5214
5074
  }
5215
5075
  };
5216
-
5217
5076
  //#endregion
5218
5077
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/throw.js
5219
5078
  const handlePipeArgumentsError = ({ sourceStream, sourceError, destinationStream, destinationError, fileDescriptors, sourceOptions, startTime }) => {
@@ -5251,7 +5110,6 @@ const createNonCommandError = ({ error, fileDescriptors, sourceOptions, startTim
5251
5110
  isSync: false
5252
5111
  });
5253
5112
  const PIPE_COMMAND_MESSAGE = "source.pipe(destination)";
5254
-
5255
5113
  //#endregion
5256
5114
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/sequence.js
5257
5115
  const waitForBothSubprocesses = async (subprocessPromises) => {
@@ -5261,7 +5119,6 @@ const waitForBothSubprocesses = async (subprocessPromises) => {
5261
5119
  if (sourceStatus === "rejected") throw sourceResult;
5262
5120
  return destinationResult;
5263
5121
  };
5264
-
5265
5122
  //#endregion
5266
5123
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/streaming.js
5267
5124
  const pipeSubprocessStream = (sourceStream, destinationStream, maxListenersController) => {
@@ -5295,7 +5152,6 @@ const cleanupMergedStreamsMap = async (destinationStream) => {
5295
5152
  const MERGED_STREAMS = /* @__PURE__ */ new WeakMap();
5296
5153
  const SOURCE_LISTENERS_PER_PIPE = 2;
5297
5154
  const DESTINATION_LISTENERS_PER_PIPE = 1;
5298
-
5299
5155
  //#endregion
5300
5156
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/abort.js
5301
5157
  const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ? [] : [unpipeOnSignalAbort(unpipeSignal, unpipeContext)];
@@ -5309,7 +5165,6 @@ const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, f
5309
5165
  startTime
5310
5166
  });
5311
5167
  };
5312
-
5313
5168
  //#endregion
5314
5169
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/pipe/setup.js
5315
5170
  const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
@@ -5320,7 +5175,7 @@ const pipeToSubprocess = (sourceInfo, ...pipeArguments) => {
5320
5175
  ...pipeArguments[0]
5321
5176
  }
5322
5177
  });
5323
- const { destination,...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5178
+ const { destination, ...normalizedInfo } = normalizePipeArguments(sourceInfo, ...pipeArguments);
5324
5179
  const promise = handlePipePromise({
5325
5180
  ...normalizedInfo,
5326
5181
  destination
@@ -5359,7 +5214,6 @@ const handlePipePromise = async ({ sourcePromise, sourceStream, sourceOptions, s
5359
5214
  }
5360
5215
  };
5361
5216
  const getSubprocessPromises = (sourcePromise, destination) => Promise.allSettled([sourcePromise, destination]);
5362
-
5363
5217
  //#endregion
5364
5218
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/iterate.js
5365
5219
  const iterateOnSubprocessStream = ({ subprocessStdout, subprocess, binary, shouldEncode, encoding, preserveNewlines }) => {
@@ -5382,7 +5236,7 @@ const stopReadingOnExit = async (subprocess, controller) => {
5382
5236
  controller.abort();
5383
5237
  }
5384
5238
  };
5385
- const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline: stripFinalNewline$1, allMixed }) => {
5239
+ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewline, allMixed }) => {
5386
5240
  const controller = new AbortController();
5387
5241
  stopReadingOnStreamEnd(onStreamEnd, controller, stream);
5388
5242
  const objectMode = stream.readableObjectMode && !allMixed;
@@ -5393,7 +5247,7 @@ const iterateForResult = ({ stream, onStreamEnd, lines, encoding, stripFinalNewl
5393
5247
  shouldEncode: !objectMode,
5394
5248
  encoding,
5395
5249
  shouldSplit: !objectMode && lines,
5396
- preserveNewlines: !stripFinalNewline$1
5250
+ preserveNewlines: !stripFinalNewline
5397
5251
  });
5398
5252
  };
5399
5253
  const stopReadingOnStreamEnd = async (onStreamEnd, controller, stream) => {
@@ -5439,10 +5293,9 @@ const iterateOnData = async function* ({ onStdoutChunk, controller, binary, shou
5439
5293
  }
5440
5294
  };
5441
5295
  const getGenerators = ({ binary, shouldEncode, encoding, shouldSplit, preserveNewlines }) => [getEncodingTransformGenerator(binary, encoding, !shouldEncode), getSplitLinesGenerator(binary, preserveNewlines, !shouldSplit, {})].filter(Boolean);
5442
-
5443
5296
  //#endregion
5444
5297
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/io/contents.js
5445
- const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5298
+ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5446
5299
  const logPromise = logOutputAsync({
5447
5300
  stream,
5448
5301
  onStreamEnd,
@@ -5461,7 +5314,7 @@ const getStreamOutput = async ({ stream, onStreamEnd, fdNumber, encoding, buffer
5461
5314
  onStreamEnd,
5462
5315
  lines,
5463
5316
  encoding,
5464
- stripFinalNewline: getStripFinalNewline(stripFinalNewline$1, fdNumber),
5317
+ stripFinalNewline: getStripFinalNewline(stripFinalNewline, fdNumber),
5465
5318
  allMixed
5466
5319
  });
5467
5320
  const [output] = await Promise.all([getStreamContents({
@@ -5518,7 +5371,6 @@ const getBufferedData = async (streamPromise) => {
5518
5371
  }
5519
5372
  };
5520
5373
  const handleBufferedData = ({ bufferedData }) => isArrayBuffer(bufferedData) ? new Uint8Array(bufferedData) : bufferedData;
5521
-
5522
5374
  //#endregion
5523
5375
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-stream.js
5524
5376
  const waitForStream = async (stream, fdNumber, streamInfo, { isSameDirection, stopOnExit = false } = {}) => {
@@ -5561,10 +5413,9 @@ const shouldIgnoreStreamError = (error, fdNumber, streamInfo, isSameDirection =
5561
5413
  const isInputFileDescriptor = ({ fileDescriptors }, fdNumber) => fdNumber !== "all" && fileDescriptors[fdNumber].direction === "input";
5562
5414
  const isStreamAbort = (error) => error?.code === "ERR_STREAM_PREMATURE_CLOSE";
5563
5415
  const isStreamEpipe = (error) => error?.code === "EPIPE";
5564
-
5565
5416
  //#endregion
5566
5417
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/stdio.js
5567
- const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5418
+ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => subprocess.stdio.map((stream, fdNumber) => waitForSubprocessStream({
5568
5419
  stream,
5569
5420
  fdNumber,
5570
5421
  encoding,
@@ -5572,11 +5423,11 @@ const waitForStdioStreams = ({ subprocess, encoding, buffer, maxBuffer, lines, s
5572
5423
  maxBuffer: maxBuffer[fdNumber],
5573
5424
  lines: lines[fdNumber],
5574
5425
  allMixed: false,
5575
- stripFinalNewline: stripFinalNewline$1,
5426
+ stripFinalNewline,
5576
5427
  verboseInfo,
5577
5428
  streamInfo
5578
5429
  }));
5579
- const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => {
5430
+ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, maxBuffer, lines, allMixed, stripFinalNewline, verboseInfo, streamInfo }) => {
5580
5431
  if (!stream) return;
5581
5432
  const onStreamEnd = waitForStream(stream, fdNumber, streamInfo);
5582
5433
  if (isInputFileDescriptor(streamInfo, fdNumber)) {
@@ -5592,24 +5443,23 @@ const waitForSubprocessStream = async ({ stream, fdNumber, encoding, buffer, max
5592
5443
  maxBuffer,
5593
5444
  lines,
5594
5445
  allMixed,
5595
- stripFinalNewline: stripFinalNewline$1,
5446
+ stripFinalNewline,
5596
5447
  verboseInfo,
5597
5448
  streamInfo
5598
5449
  }), onStreamEnd]);
5599
5450
  return output;
5600
5451
  };
5601
-
5602
5452
  //#endregion
5603
5453
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/all-async.js
5604
5454
  const makeAllStream = ({ stdout, stderr }, { all }) => all && (stdout || stderr) ? mergeStreams([stdout, stderr].filter(Boolean)) : void 0;
5605
- const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline: stripFinalNewline$1, verboseInfo, streamInfo }) => waitForSubprocessStream({
5455
+ const waitForAllStream = ({ subprocess, encoding, buffer, maxBuffer, lines, stripFinalNewline, verboseInfo, streamInfo }) => waitForSubprocessStream({
5606
5456
  ...getAllStream(subprocess, buffer),
5607
5457
  fdNumber: "all",
5608
5458
  encoding,
5609
5459
  maxBuffer: maxBuffer[1] + maxBuffer[2],
5610
5460
  lines: lines[1] || lines[2],
5611
5461
  allMixed: getAllMixed(subprocess),
5612
- stripFinalNewline: stripFinalNewline$1,
5462
+ stripFinalNewline,
5613
5463
  verboseInfo,
5614
5464
  streamInfo
5615
5465
  });
@@ -5633,7 +5483,6 @@ const getAllStream = ({ stdout, stderr, all }, [, bufferStdout, bufferStderr]) =
5633
5483
  };
5634
5484
  };
5635
5485
  const getAllMixed = ({ all, stdout, stderr }) => all && stdout && stderr && stdout.readableObjectMode !== stderr.readableObjectMode;
5636
-
5637
5486
  //#endregion
5638
5487
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/verbose/ipc.js
5639
5488
  const shouldLogIpc = (verboseInfo) => isFullVerbose(verboseInfo, "ipc");
@@ -5645,12 +5494,11 @@ const logIpcOutput = (message, verboseInfo) => {
5645
5494
  verboseInfo
5646
5495
  });
5647
5496
  };
5648
-
5649
5497
  //#endregion
5650
5498
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/ipc/buffer-messages.js
5651
5499
  const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: maxBufferArray, ipc, ipcOutput, verboseInfo }) => {
5652
5500
  if (!ipc) return ipcOutput;
5653
- const isVerbose$1 = shouldLogIpc(verboseInfo);
5501
+ const isVerbose = shouldLogIpc(verboseInfo);
5654
5502
  const buffer = getFdSpecificValue(bufferArray, "ipc");
5655
5503
  const maxBuffer = getFdSpecificValue(maxBufferArray, "ipc");
5656
5504
  for await (const message of loopOnMessages({
@@ -5665,7 +5513,7 @@ const waitForIpcOutput = async ({ subprocess, buffer: bufferArray, maxBuffer: ma
5665
5513
  checkIpcMaxBuffer(subprocess, ipcOutput, maxBuffer);
5666
5514
  ipcOutput.push(message);
5667
5515
  }
5668
- if (isVerbose$1) logIpcOutput(message, verboseInfo);
5516
+ if (isVerbose) logIpcOutput(message, verboseInfo);
5669
5517
  }
5670
5518
  return ipcOutput;
5671
5519
  };
@@ -5673,10 +5521,9 @@ const getBufferedIpcOutput = async (ipcOutputPromise, ipcOutput) => {
5673
5521
  await Promise.allSettled([ipcOutputPromise]);
5674
5522
  return ipcOutput;
5675
5523
  };
5676
-
5677
5524
  //#endregion
5678
5525
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/resolve/wait-subprocess.js
5679
- const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline: stripFinalNewline$1, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
5526
+ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer, maxBuffer, lines, timeoutDuration: timeout, cancelSignal, gracefulCancel, forceKillAfterDelay, stripFinalNewline, ipc, ipcInput }, context, verboseInfo, fileDescriptors, originalStreams, onInternalError, controller }) => {
5680
5527
  const exitPromise = waitForExit(subprocess, context);
5681
5528
  const streamInfo = {
5682
5529
  originalStreams,
@@ -5691,7 +5538,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
5691
5538
  buffer,
5692
5539
  maxBuffer,
5693
5540
  lines,
5694
- stripFinalNewline: stripFinalNewline$1,
5541
+ stripFinalNewline,
5695
5542
  verboseInfo,
5696
5543
  streamInfo
5697
5544
  });
@@ -5701,7 +5548,7 @@ const waitForSubprocessResult = async ({ subprocess, options: { encoding, buffer
5701
5548
  buffer,
5702
5549
  maxBuffer,
5703
5550
  lines,
5704
- stripFinalNewline: stripFinalNewline$1,
5551
+ stripFinalNewline,
5705
5552
  verboseInfo,
5706
5553
  streamInfo
5707
5554
  });
@@ -5769,7 +5616,6 @@ const throwOnSubprocessError = async (subprocess, { signal }) => {
5769
5616
  const [error] = await (0, node_events.once)(subprocess, "error", { signal });
5770
5617
  throw error;
5771
5618
  };
5772
-
5773
5619
  //#endregion
5774
5620
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/concurrent.js
5775
5621
  const initializeConcurrentStreams = () => ({
@@ -5793,7 +5639,6 @@ const waitForConcurrentStreams = async ({ resolve, promises }, subprocess) => {
5793
5639
  const [isSubprocessExit] = await Promise.race([Promise.allSettled([true, subprocess]), Promise.all([false, ...promises])]);
5794
5640
  return !isSubprocessExit;
5795
5641
  };
5796
-
5797
5642
  //#endregion
5798
5643
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/shared.js
5799
5644
  const safeWaitForSubprocessStdin = async (subprocessStdin) => {
@@ -5830,7 +5675,6 @@ const destroyOtherStream = (stream, isOpen, error) => {
5830
5675
  if (error && !isStreamAbort(error)) stream.destroy(error);
5831
5676
  else if (isOpen) stream.destroy();
5832
5677
  };
5833
-
5834
5678
  //#endregion
5835
5679
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/readable.js
5836
5680
  const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -5844,7 +5688,7 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
5844
5688
  encoding,
5845
5689
  preserveNewlines
5846
5690
  });
5847
- const readable$1 = new node_stream.Readable({
5691
+ const readable = new node_stream.Readable({
5848
5692
  read,
5849
5693
  destroy: (0, node_util.callbackify)(onReadableDestroy.bind(void 0, {
5850
5694
  subprocessStdout,
@@ -5858,10 +5702,10 @@ const createReadable = ({ subprocess, concurrentStreams, encoding }, { from, bin
5858
5702
  onStdoutFinished({
5859
5703
  subprocessStdout,
5860
5704
  onStdoutDataDone,
5861
- readable: readable$1,
5705
+ readable,
5862
5706
  subprocess
5863
5707
  });
5864
- return readable$1;
5708
+ return readable;
5865
5709
  };
5866
5710
  const getSubprocessStdout = (subprocess, from, concurrentStreams) => {
5867
5711
  const subprocessStdout = getFromStream(subprocess, from);
@@ -5896,23 +5740,23 @@ const getReadableMethods = ({ subprocessStdout, subprocess, binary, encoding, pr
5896
5740
  onStdoutDataDone
5897
5741
  };
5898
5742
  };
5899
- const onRead = async (readable$1, onStdoutData, onStdoutDataDone) => {
5743
+ const onRead = async (readable, onStdoutData, onStdoutDataDone) => {
5900
5744
  try {
5901
5745
  const { value, done } = await onStdoutData.next();
5902
5746
  if (done) onStdoutDataDone.resolve();
5903
- else readable$1.push(value);
5747
+ else readable.push(value);
5904
5748
  } catch {}
5905
5749
  };
5906
- const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable: readable$1, subprocess, subprocessStdin }) => {
5750
+ const onStdoutFinished = async ({ subprocessStdout, onStdoutDataDone, readable, subprocess, subprocessStdin }) => {
5907
5751
  try {
5908
5752
  await waitForSubprocessStdout(subprocessStdout);
5909
5753
  await subprocess;
5910
5754
  await safeWaitForSubprocessStdin(subprocessStdin);
5911
5755
  await onStdoutDataDone;
5912
- if (readable$1.readable) readable$1.push(null);
5756
+ if (readable.readable) readable.push(null);
5913
5757
  } catch (error) {
5914
5758
  await safeWaitForSubprocessStdin(subprocessStdin);
5915
- destroyOtherReadable(readable$1, error);
5759
+ destroyOtherReadable(readable, error);
5916
5760
  }
5917
5761
  };
5918
5762
  const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDestroy }, error) => {
@@ -5924,12 +5768,11 @@ const onReadableDestroy = async ({ subprocessStdout, subprocess, waitReadableDes
5924
5768
  const destroyOtherReadable = (stream, error) => {
5925
5769
  destroyOtherStream(stream, stream.readable, error);
5926
5770
  };
5927
-
5928
5771
  //#endregion
5929
5772
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/writable.js
5930
5773
  const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
5931
5774
  const { subprocessStdin, waitWritableFinal, waitWritableDestroy } = getSubprocessStdin(subprocess, to, concurrentStreams);
5932
- const writable$1 = new node_stream.Writable({
5775
+ const writable = new node_stream.Writable({
5933
5776
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
5934
5777
  destroy: (0, node_util.callbackify)(onWritableDestroy.bind(void 0, {
5935
5778
  subprocessStdin,
@@ -5940,8 +5783,8 @@ const createWritable = ({ subprocess, concurrentStreams }, { to } = {}) => {
5940
5783
  highWaterMark: subprocessStdin.writableHighWaterMark,
5941
5784
  objectMode: subprocessStdin.writableObjectMode
5942
5785
  });
5943
- onStdinFinished(subprocessStdin, writable$1);
5944
- return writable$1;
5786
+ onStdinFinished(subprocessStdin, writable);
5787
+ return writable;
5945
5788
  };
5946
5789
  const getSubprocessStdin = (subprocess, to, concurrentStreams) => {
5947
5790
  const subprocessStdin = getToStream(subprocess, to);
@@ -5965,13 +5808,13 @@ const onWritableFinal = async (subprocessStdin, subprocess, waitWritableFinal) =
5965
5808
  await subprocess;
5966
5809
  }
5967
5810
  };
5968
- const onStdinFinished = async (subprocessStdin, writable$1, subprocessStdout) => {
5811
+ const onStdinFinished = async (subprocessStdin, writable, subprocessStdout) => {
5969
5812
  try {
5970
5813
  await waitForSubprocessStdin(subprocessStdin);
5971
- if (writable$1.writable) writable$1.end();
5814
+ if (writable.writable) writable.end();
5972
5815
  } catch (error) {
5973
5816
  await safeWaitForSubprocessStdout(subprocessStdout);
5974
- destroyOtherWritable(writable$1, error);
5817
+ destroyOtherWritable(writable, error);
5975
5818
  }
5976
5819
  };
5977
5820
  const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFinal, waitWritableDestroy }, error) => {
@@ -5984,7 +5827,6 @@ const onWritableDestroy = async ({ subprocessStdin, subprocess, waitWritableFina
5984
5827
  const destroyOtherWritable = (stream, error) => {
5985
5828
  destroyOtherStream(stream, stream.writable, error);
5986
5829
  };
5987
-
5988
5830
  //#endregion
5989
5831
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/duplex.js
5990
5832
  const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, binary: binaryOption = true, preserveNewlines = true } = {}) => {
@@ -5999,7 +5841,7 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
5999
5841
  encoding,
6000
5842
  preserveNewlines
6001
5843
  });
6002
- const duplex$1 = new node_stream.Duplex({
5844
+ const duplex = new node_stream.Duplex({
6003
5845
  read,
6004
5846
  ...getWritableMethods(subprocessStdin, subprocess, waitWritableFinal),
6005
5847
  destroy: (0, node_util.callbackify)(onDuplexDestroy.bind(void 0, {
@@ -6019,12 +5861,12 @@ const createDuplex = ({ subprocess, concurrentStreams, encoding }, { from, to, b
6019
5861
  onStdoutFinished({
6020
5862
  subprocessStdout,
6021
5863
  onStdoutDataDone,
6022
- readable: duplex$1,
5864
+ readable: duplex,
6023
5865
  subprocess,
6024
5866
  subprocessStdin
6025
5867
  });
6026
- onStdinFinished(subprocessStdin, duplex$1, subprocessStdout);
6027
- return duplex$1;
5868
+ onStdinFinished(subprocessStdin, duplex, subprocessStdout);
5869
+ return duplex;
6028
5870
  };
6029
5871
  const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess, waitReadableDestroy, waitWritableFinal, waitWritableDestroy }, error) => {
6030
5872
  await Promise.all([onReadableDestroy({
@@ -6038,7 +5880,6 @@ const onDuplexDestroy = async ({ subprocessStdout, subprocessStdin, subprocess,
6038
5880
  waitWritableDestroy
6039
5881
  }, error)]);
6040
5882
  };
6041
-
6042
5883
  //#endregion
6043
5884
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/iterable.js
6044
5885
  const createIterable = (subprocess, encoding, { from, binary: binaryOption = false, preserveNewlines = false } = {}) => {
@@ -6061,7 +5902,6 @@ const iterateOnStdoutData = async function* (onStdoutData, subprocessStdout, sub
6061
5902
  await subprocess;
6062
5903
  }
6063
5904
  };
6064
-
6065
5905
  //#endregion
6066
5906
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/convert/add.js
6067
5907
  const addConvertedStreams = (subprocess, { encoding }) => {
@@ -6083,7 +5923,6 @@ const addConvertedStreams = (subprocess, { encoding }) => {
6083
5923
  subprocess.iterable = createIterable.bind(void 0, subprocess, encoding);
6084
5924
  subprocess[Symbol.asyncIterator] = createIterable.bind(void 0, subprocess, encoding, {});
6085
5925
  };
6086
-
6087
5926
  //#endregion
6088
5927
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/promise.js
6089
5928
  const mergePromise = (subprocess, promise) => {
@@ -6101,7 +5940,6 @@ const descriptors = [
6101
5940
  "catch",
6102
5941
  "finally"
6103
5942
  ].map((property) => [property, Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)]);
6104
-
6105
5943
  //#endregion
6106
5944
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/main-async.js
6107
5945
  const execaCoreAsync = (rawFile, rawArguments, rawOptions, createNested) => {
@@ -6144,7 +5982,7 @@ const handleAsyncArguments = (rawFile, rawArguments, rawOptions) => {
6144
5982
  fileDescriptors: handleStdioAsync(options, verboseInfo)
6145
5983
  };
6146
5984
  };
6147
- const handleAsyncOptions = ({ timeout, signal,...options }) => {
5985
+ const handleAsyncOptions = ({ timeout, signal, ...options }) => {
6148
5986
  if (signal !== void 0) throw new TypeError("The \"signal\" option has been renamed to \"cancelSignal\" instead.");
6149
5987
  return {
6150
5988
  ...options,
@@ -6254,7 +6092,6 @@ const getAsyncResult = ({ errorInfo, exitCode, signal, stdio, all, ipcOutput, co
6254
6092
  options,
6255
6093
  startTime
6256
6094
  });
6257
-
6258
6095
  //#endregion
6259
6096
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/bind.js
6260
6097
  const mergeOptions = (boundOptions, options) => {
@@ -6272,11 +6109,10 @@ const mergeOption = (optionName, boundOptionValue, optionValue) => {
6272
6109
  return optionValue;
6273
6110
  };
6274
6111
  const DEEP_OPTIONS = new Set(["env", ...FD_SPECIFIC_OPTIONS]);
6275
-
6276
6112
  //#endregion
6277
6113
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/create.js
6278
6114
  const createExeca = (mapArguments, boundOptions, deepOptions, setBoundExeca) => {
6279
- const createNested = (mapArguments$1, boundOptions$1, setBoundExeca$1) => createExeca(mapArguments$1, boundOptions$1, deepOptions, setBoundExeca$1);
6115
+ const createNested = (mapArguments, boundOptions, setBoundExeca) => createExeca(mapArguments, boundOptions, deepOptions, setBoundExeca);
6280
6116
  const boundExeca = (...execaArguments) => callBoundExeca({
6281
6117
  mapArguments,
6282
6118
  deepOptions,
@@ -6313,7 +6149,6 @@ const parseArguments = ({ mapArguments, firstArgument, nextArguments, deepOption
6313
6149
  isSync
6314
6150
  };
6315
6151
  };
6316
-
6317
6152
  //#endregion
6318
6153
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/command.js
6319
6154
  const mapCommandAsync = ({ file, commandArguments }) => parseCommand(file, commandArguments);
@@ -6342,7 +6177,6 @@ const parseCommandString = (command) => {
6342
6177
  return tokens;
6343
6178
  };
6344
6179
  const SPACES_REGEXP = / +/g;
6345
-
6346
6180
  //#endregion
6347
6181
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/methods/script.js
6348
6182
  const setScriptSync = (boundExeca, createNested, boundOptions) => {
@@ -6360,29 +6194,28 @@ const getScriptOptions = (options) => ({ options: {
6360
6194
  } });
6361
6195
  const getScriptStdinOption = ({ input, inputFile, stdio }) => input === void 0 && inputFile === void 0 && stdio === void 0 ? { stdin: "inherit" } : {};
6362
6196
  const deepScriptOptions = { preferLocal: true };
6363
-
6364
6197
  //#endregion
6365
6198
  //#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/index.js
6366
6199
  const execa = createExeca(() => ({}));
6367
- const execaSync = createExeca(() => ({ isSync: true }));
6368
- const execaCommand = createExeca(mapCommandAsync);
6369
- const execaCommandSync = createExeca(mapCommandSync);
6370
- const execaNode = createExeca(mapNode);
6371
- const $ = createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6200
+ createExeca(() => ({ isSync: true }));
6201
+ createExeca(mapCommandAsync);
6202
+ createExeca(mapCommandSync);
6203
+ createExeca(mapNode);
6204
+ createExeca(mapScriptAsync, {}, deepScriptOptions, setScriptSync);
6372
6205
  const { sendMessage, getOneMessage, getEachMessage, getCancelSignal } = getIpcExport();
6373
-
6374
6206
  //#endregion
6375
6207
  //#region src/index.ts
6376
- const runBundle = async ({ entryFile, cwd, platform: platform$1, buildPath, sourcemap, hermes }) => {
6377
- const filename = `index.${platform$1}`;
6208
+ const runBundle = async ({ entryFile, cwd, platform, buildPath, sourcemap, hermes }) => {
6209
+ const filename = `index.${platform}`;
6378
6210
  const bundleOutput = path.default.join(buildPath, `${filename}.bundle`);
6211
+ const bundleId = (0, uuidv7.uuidv7)();
6379
6212
  const args = [
6380
6213
  "rock",
6381
6214
  "bundle",
6382
6215
  "--entry-file",
6383
6216
  entryFile,
6384
6217
  "--platform",
6385
- platform$1,
6218
+ platform,
6386
6219
  ...hermes ? ["--hermes"] : [],
6387
6220
  "--bundle-output",
6388
6221
  bundleOutput,
@@ -6392,38 +6225,16 @@ const runBundle = async ({ entryFile, cwd, platform: platform$1, buildPath, sour
6392
6225
  "--dev",
6393
6226
  String(false)
6394
6227
  ];
6395
- __hot_updater_cli_tools.log.normal("\n");
6228
+ _hot_updater_cli_tools.log.normal("\n");
6396
6229
  let stdout = null;
6397
6230
  try {
6398
6231
  stdout = (await execa("npx", args, {
6399
6232
  cwd,
6400
- env: {
6401
- ...process.env,
6402
- BUILD_OUT_DIR: buildPath
6403
- },
6404
6233
  reject: true
6405
6234
  })).stdout;
6406
6235
  } catch (error) {
6407
6236
  if (error instanceof ExecaError) throw error.stderr;
6408
6237
  }
6409
- const bundleId = await fs_promises.default.readFile(path.default.join(buildPath, "BUNDLE_ID"), "utf-8").catch(() => null);
6410
- if (!bundleId) throw new Error(`If you are using Babel, please check if 'hot-updater/babel-plugin' is configured in babel.config.js
6411
- Example:
6412
- module.exports = {
6413
- plugins: [
6414
- ["hot-updater/babel-plugin"]
6415
- ]
6416
- }
6417
-
6418
-
6419
- If you are using Repack, please check if '@hot-updater/repack' plugin is configured in rspack.config.mjs
6420
- Example:
6421
- import { HotUpdaterPlugin } from "@hot-updater/repack";
6422
-
6423
- {
6424
- plugins: [new Repack.RepackPlugin(), new HotUpdaterPlugin()],
6425
- }
6426
- `);
6427
6238
  return {
6428
6239
  bundleId,
6429
6240
  stdout
@@ -6437,7 +6248,7 @@ const rock = (config = {
6437
6248
  }) => ({ cwd }) => {
6438
6249
  const { outDir = "dist", sourcemap = false, entryFile = "index.js", hermes = true } = config;
6439
6250
  return {
6440
- build: async ({ platform: platform$1 }) => {
6251
+ build: async ({ platform }) => {
6441
6252
  const buildPath = path.default.join(cwd, outDir);
6442
6253
  await fs_promises.default.rm(buildPath, {
6443
6254
  recursive: true,
@@ -6447,7 +6258,7 @@ const rock = (config = {
6447
6258
  const { bundleId, stdout } = await runBundle({
6448
6259
  entryFile,
6449
6260
  cwd,
6450
- platform: platform$1,
6261
+ platform,
6451
6262
  buildPath,
6452
6263
  sourcemap,
6453
6264
  hermes
@@ -6461,6 +6272,5 @@ const rock = (config = {
6461
6272
  name: "rock"
6462
6273
  };
6463
6274
  };
6464
-
6465
6275
  //#endregion
6466
- exports.rock = rock;
6276
+ exports.rock = rock;