@storybook/addon-vitest 0.0.0-pr-32051-sha-e639acf8 → 0.0.0-pr-31819-sha-7ef50963

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/_browser-chunks/chunk-A47P2DCZ.js +11 -0
  2. package/dist/_browser-chunks/chunk-VMSW5DPM.js +60 -0
  3. package/dist/_node-chunks/chunk-C4NXJJA3.js +324 -0
  4. package/dist/_node-chunks/chunk-CIKGVIS6.js +223 -0
  5. package/dist/_node-chunks/chunk-JSCRRX7J.js +81 -0
  6. package/dist/_node-chunks/chunk-KVKHJ5OL.js +46 -0
  7. package/dist/_node-chunks/chunk-L5EWH7GC.js +5002 -0
  8. package/dist/_node-chunks/chunk-N3OFRDD3.js +80 -0
  9. package/dist/_node-chunks/chunk-RCVH25XB.js +1598 -0
  10. package/dist/_node-chunks/chunk-W26ZMSD3.js +143 -0
  11. package/dist/index.js +9 -6
  12. package/dist/manager.js +5571 -8
  13. package/dist/node/coverage-reporter.js +1395 -4
  14. package/dist/node/vitest.js +563 -17
  15. package/dist/postinstall.js +1170 -93
  16. package/dist/preset.js +268 -32
  17. package/dist/vitest-plugin/global-setup.js +146 -6
  18. package/dist/vitest-plugin/index.js +2589 -43
  19. package/dist/vitest-plugin/setup-file.js +28 -9
  20. package/dist/vitest-plugin/test-utils.js +68 -8
  21. package/manager.js +1 -1
  22. package/package.json +16 -89
  23. package/preset.js +1 -1
  24. package/dist/chunk-55WZLVGN.mjs +0 -11
  25. package/dist/chunk-JKRQGT2U.mjs +0 -10
  26. package/dist/index.mjs +0 -5
  27. package/dist/node/coverage-reporter.d.ts +0 -184
  28. package/dist/node/coverage-reporter.mjs +0 -12
  29. package/dist/node/vitest.d.ts +0 -2
  30. package/dist/node/vitest.mjs +0 -19
  31. package/dist/vitest-plugin/global-setup.d.ts +0 -6
  32. package/dist/vitest-plugin/global-setup.mjs +0 -13
  33. package/dist/vitest-plugin/index.mjs +0 -28
  34. package/dist/vitest-plugin/setup-file.d.ts +0 -14
  35. package/dist/vitest-plugin/setup-file.mjs +0 -9
  36. package/dist/vitest-plugin/test-utils.d.ts +0 -20
  37. package/dist/vitest-plugin/test-utils.mjs +0 -8
  38. package/manager.mjs +0 -1
  39. package/postinstall.js +0 -1
  40. package/postinstall.mjs +0 -1
  41. package/preset.mjs +0 -1
@@ -0,0 +1,1598 @@
1
+ import CJS_COMPAT_NODE_URL from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE from "node:module";
4
+
5
+ const __filename = CJS_COMPAT_NODE_URL.fileURLToPath(import.meta.url);
6
+ const __dirname = CJS_COMPAT_NODE_PATH.dirname(__filename);
7
+ const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
8
+ // ------------------------------------------------------------
9
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
10
+ // ------------------------------------------------------------
11
+ import {
12
+ c as Ge,
13
+ f as ke
14
+ } from "./chunk-W26ZMSD3.js";
15
+ import {
16
+ a as o,
17
+ b as S,
18
+ c as h,
19
+ e as Re
20
+ } from "./chunk-KVKHJ5OL.js";
21
+
22
+ // ../../node_modules/isexe/windows.js
23
+ var Be = h((ao, Ne) => {
24
+ Ne.exports = Le;
25
+ Le.sync = dn;
26
+ var je = S("fs");
27
+ function ln(e, t) {
28
+ var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
29
+ if (!n || (n = n.split(";"), n.indexOf("") !== -1))
30
+ return !0;
31
+ for (var r = 0; r < n.length; r++) {
32
+ var i = n[r].toLowerCase();
33
+ if (i && e.substr(-i.length).toLowerCase() === i)
34
+ return !0;
35
+ }
36
+ return !1;
37
+ }
38
+ o(ln, "checkPathExt");
39
+ function $e(e, t, n) {
40
+ return !e.isSymbolicLink() && !e.isFile() ? !1 : ln(t, n);
41
+ }
42
+ o($e, "checkStat");
43
+ function Le(e, t, n) {
44
+ je.stat(e, function(r, i) {
45
+ n(r, r ? !1 : $e(i, e, t));
46
+ });
47
+ }
48
+ o(Le, "isexe");
49
+ function dn(e, t) {
50
+ return $e(je.statSync(e), e, t);
51
+ }
52
+ o(dn, "sync");
53
+ });
54
+
55
+ // ../../node_modules/isexe/mode.js
56
+ var De = h((uo, _e) => {
57
+ _e.exports = Ue;
58
+ Ue.sync = pn;
59
+ var Me = S("fs");
60
+ function Ue(e, t, n) {
61
+ Me.stat(e, function(r, i) {
62
+ n(r, r ? !1 : Fe(i, t));
63
+ });
64
+ }
65
+ o(Ue, "isexe");
66
+ function pn(e, t) {
67
+ return Fe(Me.statSync(e), t);
68
+ }
69
+ o(pn, "sync");
70
+ function Fe(e, t) {
71
+ return e.isFile() && mn(e, t);
72
+ }
73
+ o(Fe, "checkStat");
74
+ function mn(e, t) {
75
+ var n = e.mode, r = e.uid, i = e.gid, s = t.uid !== void 0 ? t.uid : process.getuid && process.getuid(), a = t.gid !== void 0 ? t.gid : process.getgid && process.getgid(), c = parseInt("100", 8), u = parseInt("010", 8), f = parseInt("001", 8), l = c | u, p = n & f || n & u && i === a || n & c && r === s || n & l && s === 0;
76
+ return p;
77
+ }
78
+ o(mn, "checkMode");
79
+ });
80
+
81
+ // ../../node_modules/isexe/index.js
82
+ var ze = h((po, qe) => {
83
+ var lo = S("fs"), G;
84
+ process.platform === "win32" || global.TESTING_WINDOWS ? G = Be() : G = De();
85
+ qe.exports = W;
86
+ W.sync = hn;
87
+ function W(e, t, n) {
88
+ if (typeof t == "function" && (n = t, t = {}), !n) {
89
+ if (typeof Promise != "function")
90
+ throw new TypeError("callback not provided");
91
+ return new Promise(function(r, i) {
92
+ W(e, t || {}, function(s, a) {
93
+ s ? i(s) : r(a);
94
+ });
95
+ });
96
+ }
97
+ G(e, t || {}, function(r, i) {
98
+ r && (r.code === "EACCES" || t && t.ignoreErrors) && (r = null, i = !1), n(r, i);
99
+ });
100
+ }
101
+ o(W, "isexe");
102
+ function hn(e, t) {
103
+ try {
104
+ return G.sync(e, t || {});
105
+ } catch (n) {
106
+ if (t && t.ignoreErrors || n.code === "EACCES")
107
+ return !1;
108
+ throw n;
109
+ }
110
+ }
111
+ o(hn, "sync");
112
+ });
113
+
114
+ // ../../node_modules/which/which.js
115
+ var Ze = h((ho, Ye) => {
116
+ var w = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", We = S("path"), yn = w ? ";" : ":", He = ze(), Ke = /* @__PURE__ */ o((e) => Object.assign(new Error(`not found: ${e}`), { code: "ENOENT" }), "getNotFoundError"), Ve = /* @__PURE__ */ o((e, t) => {
117
+ let n = t.colon || yn, r = e.match(/\//) || w && e.match(/\\/) ? [""] : [
118
+ // windows always checks the cwd first
119
+ ...w ? [process.cwd()] : [],
120
+ ...(t.path || process.env.PATH || /* istanbul ignore next: very unusual */
121
+ "").split(n)
122
+ ], i = w ? t.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "", s = w ? i.split(n) : [""];
123
+ return w && e.indexOf(".") !== -1 && s[0] !== "" && s.unshift(""), {
124
+ pathEnv: r,
125
+ pathExt: s,
126
+ pathExtExe: i
127
+ };
128
+ }, "getPathInfo"), Xe = /* @__PURE__ */ o((e, t, n) => {
129
+ typeof t == "function" && (n = t, t = {}), t || (t = {});
130
+ let { pathEnv: r, pathExt: i, pathExtExe: s } = Ve(e, t), a = [], c = /* @__PURE__ */ o((f) => new Promise((l, p) => {
131
+ if (f === r.length)
132
+ return t.all && a.length ? l(a) : p(Ke(e));
133
+ let d = r[f], y = /^".*"$/.test(d) ? d.slice(1, -1) : d, m = We.join(y, e), g = !y && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + m : m;
134
+ l(u(g, f, 0));
135
+ }), "step"), u = /* @__PURE__ */ o((f, l, p) => new Promise((d, y) => {
136
+ if (p === i.length)
137
+ return d(c(l + 1));
138
+ let m = i[p];
139
+ He(f + m, { pathExt: s }, (g, x) => {
140
+ if (!g && x)
141
+ if (t.all)
142
+ a.push(f + m);
143
+ else
144
+ return d(f + m);
145
+ return d(u(f, l, p + 1));
146
+ });
147
+ }), "subStep");
148
+ return n ? c(0).then((f) => n(null, f), n) : c(0);
149
+ }, "which"), gn = /* @__PURE__ */ o((e, t) => {
150
+ t = t || {};
151
+ let { pathEnv: n, pathExt: r, pathExtExe: i } = Ve(e, t), s = [];
152
+ for (let a = 0; a < n.length; a++) {
153
+ let c = n[a], u = /^".*"$/.test(c) ? c.slice(1, -1) : c, f = We.join(u, e), l = !u && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + f : f;
154
+ for (let p = 0; p < r.length; p++) {
155
+ let d = l + r[p];
156
+ try {
157
+ if (He.sync(d, { pathExt: i }))
158
+ if (t.all)
159
+ s.push(d);
160
+ else
161
+ return d;
162
+ } catch {
163
+ }
164
+ }
165
+ }
166
+ if (t.all && s.length)
167
+ return s;
168
+ if (t.nothrow)
169
+ return null;
170
+ throw Ke(e);
171
+ }, "whichSync");
172
+ Ye.exports = Xe;
173
+ Xe.sync = gn;
174
+ });
175
+
176
+ // ../../node_modules/path-key/index.js
177
+ var Je = h((go, H) => {
178
+ "use strict";
179
+ var Qe = /* @__PURE__ */ o((e = {}) => {
180
+ let t = e.env || process.env;
181
+ return (e.platform || process.platform) !== "win32" ? "PATH" : Object.keys(t).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
182
+ }, "pathKey");
183
+ H.exports = Qe;
184
+ H.exports.default = Qe;
185
+ });
186
+
187
+ // ../../node_modules/cross-spawn/lib/util/resolveCommand.js
188
+ var rt = h((bo, nt) => {
189
+ "use strict";
190
+ var et = S("path"), Sn = Ze(), bn = Je();
191
+ function tt(e, t) {
192
+ let n = e.options.env || process.env, r = process.cwd(), i = e.options.cwd != null, s = i && process.chdir !== void 0 && !process.chdir.disabled;
193
+ if (s)
194
+ try {
195
+ process.chdir(e.options.cwd);
196
+ } catch {
197
+ }
198
+ let a;
199
+ try {
200
+ a = Sn.sync(e.command, {
201
+ path: n[bn({ env: n })],
202
+ pathExt: t ? et.delimiter : void 0
203
+ });
204
+ } catch {
205
+ } finally {
206
+ s && process.chdir(r);
207
+ }
208
+ return a && (a = et.resolve(i ? e.options.cwd : "", a)), a;
209
+ }
210
+ o(tt, "resolveCommandAttempt");
211
+ function xn(e) {
212
+ return tt(e) || tt(e, !0);
213
+ }
214
+ o(xn, "resolveCommand");
215
+ nt.exports = xn;
216
+ });
217
+
218
+ // ../../node_modules/cross-spawn/lib/util/escape.js
219
+ var ot = h((wo, V) => {
220
+ "use strict";
221
+ var K = /([()\][%!^"`<>&|;, *?])/g;
222
+ function wn(e) {
223
+ return e = e.replace(K, "^$1"), e;
224
+ }
225
+ o(wn, "escapeCommand");
226
+ function En(e, t) {
227
+ return e = `${e}`, e = e.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"'), e = e.replace(/(?=(\\+?)?)\1$/, "$1$1"), e = `"${e}"`, e = e.replace(K, "^$1"), t && (e = e.replace(K, "^$1")), e;
228
+ }
229
+ o(En, "escapeArgument");
230
+ V.exports.command = wn;
231
+ V.exports.argument = En;
232
+ });
233
+
234
+ // ../../node_modules/shebang-regex/index.js
235
+ var st = h((To, it) => {
236
+ "use strict";
237
+ it.exports = /^#!(.*)/;
238
+ });
239
+
240
+ // ../../node_modules/shebang-command/index.js
241
+ var ct = h((Io, at) => {
242
+ "use strict";
243
+ var Tn = st();
244
+ at.exports = (e = "") => {
245
+ let t = e.match(Tn);
246
+ if (!t)
247
+ return null;
248
+ let [n, r] = t[0].replace(/#! ?/, "").split(" "), i = n.split("/").pop();
249
+ return i === "env" ? r : r ? `${i} ${r}` : i;
250
+ };
251
+ });
252
+
253
+ // ../../node_modules/cross-spawn/lib/util/readShebang.js
254
+ var ft = h((Po, ut) => {
255
+ "use strict";
256
+ var X = S("fs"), In = ct();
257
+ function Pn(e) {
258
+ let n = Buffer.alloc(150), r;
259
+ try {
260
+ r = X.openSync(e, "r"), X.readSync(r, n, 0, 150, 0), X.closeSync(r);
261
+ } catch {
262
+ }
263
+ return In(n.toString());
264
+ }
265
+ o(Pn, "readShebang");
266
+ ut.exports = Pn;
267
+ });
268
+
269
+ // ../../node_modules/cross-spawn/lib/parse.js
270
+ var mt = h((Co, pt) => {
271
+ "use strict";
272
+ var An = S("path"), lt = rt(), dt = ot(), Cn = ft(), vn = process.platform === "win32", On = /\.(?:com|exe)$/i, Rn = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
273
+ function Gn(e) {
274
+ e.file = lt(e);
275
+ let t = e.file && Cn(e.file);
276
+ return t ? (e.args.unshift(e.file), e.command = t, lt(e)) : e.file;
277
+ }
278
+ o(Gn, "detectShebang");
279
+ function kn(e) {
280
+ if (!vn)
281
+ return e;
282
+ let t = Gn(e), n = !On.test(t);
283
+ if (e.options.forceShell || n) {
284
+ let r = Rn.test(t);
285
+ e.command = An.normalize(e.command), e.command = dt.command(e.command), e.args = e.args.map((s) => dt.argument(s, r));
286
+ let i = [e.command].concat(e.args).join(" ");
287
+ e.args = ["/d", "/s", "/c", `"${i}"`], e.command = process.env.comspec || "cmd.exe", e.options.windowsVerbatimArguments = !0;
288
+ }
289
+ return e;
290
+ }
291
+ o(kn, "parseNonShell");
292
+ function jn(e, t, n) {
293
+ t && !Array.isArray(t) && (n = t, t = null), t = t ? t.slice(0) : [], n = Object.assign({}, n);
294
+ let r = {
295
+ command: e,
296
+ args: t,
297
+ options: n,
298
+ file: void 0,
299
+ original: {
300
+ command: e,
301
+ args: t
302
+ }
303
+ };
304
+ return n.shell ? r : kn(r);
305
+ }
306
+ o(jn, "parse");
307
+ pt.exports = jn;
308
+ });
309
+
310
+ // ../../node_modules/cross-spawn/lib/enoent.js
311
+ var gt = h((Oo, yt) => {
312
+ "use strict";
313
+ var Y = process.platform === "win32";
314
+ function Z(e, t) {
315
+ return Object.assign(new Error(`${t} ${e.command} ENOENT`), {
316
+ code: "ENOENT",
317
+ errno: "ENOENT",
318
+ syscall: `${t} ${e.command}`,
319
+ path: e.command,
320
+ spawnargs: e.args
321
+ });
322
+ }
323
+ o(Z, "notFoundError");
324
+ function $n(e, t) {
325
+ if (!Y)
326
+ return;
327
+ let n = e.emit;
328
+ e.emit = function(r, i) {
329
+ if (r === "exit") {
330
+ let s = ht(i, t);
331
+ if (s)
332
+ return n.call(e, "error", s);
333
+ }
334
+ return n.apply(e, arguments);
335
+ };
336
+ }
337
+ o($n, "hookChildProcess");
338
+ function ht(e, t) {
339
+ return Y && e === 1 && !t.file ? Z(t.original, "spawn") : null;
340
+ }
341
+ o(ht, "verifyENOENT");
342
+ function Ln(e, t) {
343
+ return Y && e === 1 && !t.file ? Z(t.original, "spawnSync") : null;
344
+ }
345
+ o(Ln, "verifyENOENTSync");
346
+ yt.exports = {
347
+ hookChildProcess: $n,
348
+ verifyENOENT: ht,
349
+ verifyENOENTSync: Ln,
350
+ notFoundError: Z
351
+ };
352
+ });
353
+
354
+ // ../../node_modules/cross-spawn/index.js
355
+ var xt = h((Go, E) => {
356
+ "use strict";
357
+ var St = S("child_process"), Q = mt(), J = gt();
358
+ function bt(e, t, n) {
359
+ let r = Q(e, t, n), i = St.spawn(r.command, r.args, r.options);
360
+ return J.hookChildProcess(i, r), i;
361
+ }
362
+ o(bt, "spawn");
363
+ function Nn(e, t, n) {
364
+ let r = Q(e, t, n), i = St.spawnSync(r.command, r.args, r.options);
365
+ return i.error = i.error || J.verifyENOENTSync(i.status, r), i;
366
+ }
367
+ o(Nn, "spawnSync");
368
+ E.exports = bt;
369
+ E.exports.spawn = bt;
370
+ E.exports.sync = Nn;
371
+ E.exports._parse = Q;
372
+ E.exports._enoent = J;
373
+ });
374
+
375
+ // ../../node_modules/merge-stream/index.js
376
+ var Kt = h((rs, Ht) => {
377
+ "use strict";
378
+ var { PassThrough: $r } = S("stream");
379
+ Ht.exports = function() {
380
+ var e = [], t = new $r({ objectMode: !0 });
381
+ return t.setMaxListeners(0), t.add = n, t.isEmpty = r, t.on("unpipe", i), Array.prototype.slice.call(arguments).forEach(n), t;
382
+ function n(s) {
383
+ return Array.isArray(s) ? (s.forEach(n), this) : (e.push(s), s.once("end", i.bind(null, s)), s.once("error", t.emit.bind(t, "error")), s.pipe(t, { end: !1 }), this);
384
+ }
385
+ o(n, "add");
386
+ function r() {
387
+ return e.length == 0;
388
+ }
389
+ o(r, "isEmpty");
390
+ function i(s) {
391
+ e = e.filter(function(a) {
392
+ return a !== s;
393
+ }), !e.length && t.readable && t.end();
394
+ }
395
+ o(i, "remove");
396
+ };
397
+ });
398
+
399
+ // node_modules/execa/index.js
400
+ var an = Re(xt(), 1);
401
+ import { Buffer as Qr } from "node:buffer";
402
+ import Jr from "node:path";
403
+ import Pe from "node:child_process";
404
+ import T from "node:process";
405
+
406
+ // ../../node_modules/strip-final-newline/index.js
407
+ function ee(e) {
408
+ let t = typeof e == "string" ? `
409
+ ` : 10, n = typeof e == "string" ? "\r" : 13;
410
+ return e[e.length - 1] === t && (e = e.slice(0, -1)), e[e.length - 1] === n && (e = e.slice(0, -1)), e;
411
+ }
412
+ o(ee, "stripFinalNewline");
413
+
414
+ // node_modules/npm-run-path/index.js
415
+ import j from "node:process";
416
+ import I from "node:path";
417
+ import { fileURLToPath as wt } from "node:url";
418
+
419
+ // node_modules/path-key/index.js
420
+ function k(e = {}) {
421
+ let {
422
+ env: t = process.env,
423
+ platform: n = process.platform
424
+ } = e;
425
+ return n !== "win32" ? "PATH" : Object.keys(t).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
426
+ }
427
+ o(k, "pathKey");
428
+
429
+ // node_modules/npm-run-path/index.js
430
+ var Bn = /* @__PURE__ */ o(({
431
+ cwd: e = j.cwd(),
432
+ path: t = j.env[k()],
433
+ preferLocal: n = !0,
434
+ execPath: r = j.execPath,
435
+ addExecPath: i = !0
436
+ } = {}) => {
437
+ let s = e instanceof URL ? wt(e) : e, a = I.resolve(s), c = [];
438
+ return n && Mn(c, a), i && Un(c, r, a), [...c, t].join(I.delimiter);
439
+ }, "npmRunPath"), Mn = /* @__PURE__ */ o((e, t) => {
440
+ let n;
441
+ for (; n !== t; )
442
+ e.push(I.join(t, "node_modules/.bin")), n = t, t = I.resolve(t, "..");
443
+ }, "applyPreferLocal"), Un = /* @__PURE__ */ o((e, t, n) => {
444
+ let r = t instanceof URL ? wt(t) : t;
445
+ e.push(I.resolve(n, r, ".."));
446
+ }, "applyExecPath"), Et = /* @__PURE__ */ o(({ env: e = j.env, ...t } = {}) => {
447
+ e = { ...e };
448
+ let n = k({ env: e });
449
+ return t.path = e[n], e[n] = Bn(t), e;
450
+ }, "npmRunPathEnv");
451
+
452
+ // node_modules/mimic-fn/index.js
453
+ var Fn = /* @__PURE__ */ o((e, t, n, r) => {
454
+ if (n === "length" || n === "prototype" || n === "arguments" || n === "caller")
455
+ return;
456
+ let i = Object.getOwnPropertyDescriptor(e, n), s = Object.getOwnPropertyDescriptor(t, n);
457
+ !_n(i, s) && r || Object.defineProperty(e, n, s);
458
+ }, "copyProperty"), _n = /* @__PURE__ */ o(function(e, t) {
459
+ return e === void 0 || e.configurable || e.writable === t.writable && e.enumerable === t.enumerable && e.configurable === t.configurable && (e.writable || e.value === t.value);
460
+ }, "canCopyProperty"), Dn = /* @__PURE__ */ o((e, t) => {
461
+ let n = Object.getPrototypeOf(t);
462
+ n !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, n);
463
+ }, "changePrototype"), qn = /* @__PURE__ */ o((e, t) => `/* Wrapped ${e}*/
464
+ ${t}`, "wrappedToString"), zn = Object.getOwnPropertyDescriptor(Function.prototype, "toString"), Wn = Object.getOwnPropertyDescriptor(Function.prototype.toString, "name"), Hn = /* @__PURE__ */ o((e, t, n) => {
465
+ let r = n === "" ? "" : `with ${n.trim()}() `, i = qn.bind(null, r, t.toString());
466
+ Object.defineProperty(i, "name", Wn), Object.defineProperty(e, "toString", { ...zn, value: i });
467
+ }, "changeToString");
468
+ function te(e, t, { ignoreNonConfigurable: n = !1 } = {}) {
469
+ let { name: r } = e;
470
+ for (let i of Reflect.ownKeys(t))
471
+ Fn(e, t, i, n);
472
+ return Dn(e, t), Hn(e, t, r), e;
473
+ }
474
+ o(te, "mimicFunction");
475
+
476
+ // node_modules/onetime/index.js
477
+ var $ = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ o((e, t = {}) => {
478
+ if (typeof e != "function")
479
+ throw new TypeError("Expected a function");
480
+ let n, r = 0, i = e.displayName || e.name || "<anonymous>", s = /* @__PURE__ */ o(function(...a) {
481
+ if ($.set(s, ++r), r === 1)
482
+ n = e.apply(this, a), e = null;
483
+ else if (t.throw === !0)
484
+ throw new Error(`Function \`${i}\` can only be called once`);
485
+ return n;
486
+ }, "onetime");
487
+ return te(s, e), $.set(s, r), s;
488
+ }, "onetime");
489
+ Tt.callCount = (e) => {
490
+ if (!$.has(e))
491
+ throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);
492
+ return $.get(e);
493
+ };
494
+ var It = Tt;
495
+
496
+ // node_modules/execa/lib/error.js
497
+ import nr from "node:process";
498
+
499
+ // node_modules/human-signals/build/src/main.js
500
+ import { constants as Yn } from "node:os";
501
+
502
+ // node_modules/human-signals/build/src/realtime.js
503
+ var Pt = /* @__PURE__ */ o(() => {
504
+ let e = ne - At + 1;
505
+ return Array.from({ length: e }, Kn);
506
+ }, "getRealtimeSignals"), Kn = /* @__PURE__ */ o((e, t) => ({
507
+ name: `SIGRT${t + 1}`,
508
+ number: At + t,
509
+ action: "terminate",
510
+ description: "Application-specific signal (realtime)",
511
+ standard: "posix"
512
+ }), "getRealtimeSignal"), At = 34, ne = 64;
513
+
514
+ // node_modules/human-signals/build/src/signals.js
515
+ import { constants as Vn } from "node:os";
516
+
517
+ // node_modules/human-signals/build/src/core.js
518
+ var Ct = [
519
+ {
520
+ name: "SIGHUP",
521
+ number: 1,
522
+ action: "terminate",
523
+ description: "Terminal closed",
524
+ standard: "posix"
525
+ },
526
+ {
527
+ name: "SIGINT",
528
+ number: 2,
529
+ action: "terminate",
530
+ description: "User interruption with CTRL-C",
531
+ standard: "ansi"
532
+ },
533
+ {
534
+ name: "SIGQUIT",
535
+ number: 3,
536
+ action: "core",
537
+ description: "User interruption with CTRL-\\",
538
+ standard: "posix"
539
+ },
540
+ {
541
+ name: "SIGILL",
542
+ number: 4,
543
+ action: "core",
544
+ description: "Invalid machine instruction",
545
+ standard: "ansi"
546
+ },
547
+ {
548
+ name: "SIGTRAP",
549
+ number: 5,
550
+ action: "core",
551
+ description: "Debugger breakpoint",
552
+ standard: "posix"
553
+ },
554
+ {
555
+ name: "SIGABRT",
556
+ number: 6,
557
+ action: "core",
558
+ description: "Aborted",
559
+ standard: "ansi"
560
+ },
561
+ {
562
+ name: "SIGIOT",
563
+ number: 6,
564
+ action: "core",
565
+ description: "Aborted",
566
+ standard: "bsd"
567
+ },
568
+ {
569
+ name: "SIGBUS",
570
+ number: 7,
571
+ action: "core",
572
+ description: "Bus error due to misaligned, non-existing address or paging error",
573
+ standard: "bsd"
574
+ },
575
+ {
576
+ name: "SIGEMT",
577
+ number: 7,
578
+ action: "terminate",
579
+ description: "Command should be emulated but is not implemented",
580
+ standard: "other"
581
+ },
582
+ {
583
+ name: "SIGFPE",
584
+ number: 8,
585
+ action: "core",
586
+ description: "Floating point arithmetic error",
587
+ standard: "ansi"
588
+ },
589
+ {
590
+ name: "SIGKILL",
591
+ number: 9,
592
+ action: "terminate",
593
+ description: "Forced termination",
594
+ standard: "posix",
595
+ forced: !0
596
+ },
597
+ {
598
+ name: "SIGUSR1",
599
+ number: 10,
600
+ action: "terminate",
601
+ description: "Application-specific signal",
602
+ standard: "posix"
603
+ },
604
+ {
605
+ name: "SIGSEGV",
606
+ number: 11,
607
+ action: "core",
608
+ description: "Segmentation fault",
609
+ standard: "ansi"
610
+ },
611
+ {
612
+ name: "SIGUSR2",
613
+ number: 12,
614
+ action: "terminate",
615
+ description: "Application-specific signal",
616
+ standard: "posix"
617
+ },
618
+ {
619
+ name: "SIGPIPE",
620
+ number: 13,
621
+ action: "terminate",
622
+ description: "Broken pipe or socket",
623
+ standard: "posix"
624
+ },
625
+ {
626
+ name: "SIGALRM",
627
+ number: 14,
628
+ action: "terminate",
629
+ description: "Timeout or timer",
630
+ standard: "posix"
631
+ },
632
+ {
633
+ name: "SIGTERM",
634
+ number: 15,
635
+ action: "terminate",
636
+ description: "Termination",
637
+ standard: "ansi"
638
+ },
639
+ {
640
+ name: "SIGSTKFLT",
641
+ number: 16,
642
+ action: "terminate",
643
+ description: "Stack is empty or overflowed",
644
+ standard: "other"
645
+ },
646
+ {
647
+ name: "SIGCHLD",
648
+ number: 17,
649
+ action: "ignore",
650
+ description: "Child process terminated, paused or unpaused",
651
+ standard: "posix"
652
+ },
653
+ {
654
+ name: "SIGCLD",
655
+ number: 17,
656
+ action: "ignore",
657
+ description: "Child process terminated, paused or unpaused",
658
+ standard: "other"
659
+ },
660
+ {
661
+ name: "SIGCONT",
662
+ number: 18,
663
+ action: "unpause",
664
+ description: "Unpaused",
665
+ standard: "posix",
666
+ forced: !0
667
+ },
668
+ {
669
+ name: "SIGSTOP",
670
+ number: 19,
671
+ action: "pause",
672
+ description: "Paused",
673
+ standard: "posix",
674
+ forced: !0
675
+ },
676
+ {
677
+ name: "SIGTSTP",
678
+ number: 20,
679
+ action: "pause",
680
+ description: 'Paused using CTRL-Z or "suspend"',
681
+ standard: "posix"
682
+ },
683
+ {
684
+ name: "SIGTTIN",
685
+ number: 21,
686
+ action: "pause",
687
+ description: "Background process cannot read terminal input",
688
+ standard: "posix"
689
+ },
690
+ {
691
+ name: "SIGBREAK",
692
+ number: 21,
693
+ action: "terminate",
694
+ description: "User interruption with CTRL-BREAK",
695
+ standard: "other"
696
+ },
697
+ {
698
+ name: "SIGTTOU",
699
+ number: 22,
700
+ action: "pause",
701
+ description: "Background process cannot write to terminal output",
702
+ standard: "posix"
703
+ },
704
+ {
705
+ name: "SIGURG",
706
+ number: 23,
707
+ action: "ignore",
708
+ description: "Socket received out-of-band data",
709
+ standard: "bsd"
710
+ },
711
+ {
712
+ name: "SIGXCPU",
713
+ number: 24,
714
+ action: "core",
715
+ description: "Process timed out",
716
+ standard: "bsd"
717
+ },
718
+ {
719
+ name: "SIGXFSZ",
720
+ number: 25,
721
+ action: "core",
722
+ description: "File too big",
723
+ standard: "bsd"
724
+ },
725
+ {
726
+ name: "SIGVTALRM",
727
+ number: 26,
728
+ action: "terminate",
729
+ description: "Timeout or timer",
730
+ standard: "bsd"
731
+ },
732
+ {
733
+ name: "SIGPROF",
734
+ number: 27,
735
+ action: "terminate",
736
+ description: "Timeout or timer",
737
+ standard: "bsd"
738
+ },
739
+ {
740
+ name: "SIGWINCH",
741
+ number: 28,
742
+ action: "ignore",
743
+ description: "Terminal window size changed",
744
+ standard: "bsd"
745
+ },
746
+ {
747
+ name: "SIGIO",
748
+ number: 29,
749
+ action: "terminate",
750
+ description: "I/O is available",
751
+ standard: "other"
752
+ },
753
+ {
754
+ name: "SIGPOLL",
755
+ number: 29,
756
+ action: "terminate",
757
+ description: "Watched event",
758
+ standard: "other"
759
+ },
760
+ {
761
+ name: "SIGINFO",
762
+ number: 29,
763
+ action: "ignore",
764
+ description: "Request for process information",
765
+ standard: "other"
766
+ },
767
+ {
768
+ name: "SIGPWR",
769
+ number: 30,
770
+ action: "terminate",
771
+ description: "Device running out of power",
772
+ standard: "systemv"
773
+ },
774
+ {
775
+ name: "SIGSYS",
776
+ number: 31,
777
+ action: "core",
778
+ description: "Invalid system call",
779
+ standard: "other"
780
+ },
781
+ {
782
+ name: "SIGUNUSED",
783
+ number: 31,
784
+ action: "terminate",
785
+ description: "Invalid system call",
786
+ standard: "other"
787
+ }
788
+ ];
789
+
790
+ // node_modules/human-signals/build/src/signals.js
791
+ var re = /* @__PURE__ */ o(() => {
792
+ let e = Pt();
793
+ return [...Ct, ...e].map(Xn);
794
+ }, "getSignals"), Xn = /* @__PURE__ */ o(({
795
+ name: e,
796
+ number: t,
797
+ description: n,
798
+ action: r,
799
+ forced: i = !1,
800
+ standard: s
801
+ }) => {
802
+ let {
803
+ signals: { [e]: a }
804
+ } = Vn, c = a !== void 0;
805
+ return { name: e, number: c ? a : t, description: n, supported: c, action: r, forced: i, standard: s };
806
+ }, "normalizeSignal");
807
+
808
+ // node_modules/human-signals/build/src/main.js
809
+ var Zn = /* @__PURE__ */ o(() => {
810
+ let e = re();
811
+ return Object.fromEntries(e.map(Qn));
812
+ }, "getSignalsByName"), Qn = /* @__PURE__ */ o(({
813
+ name: e,
814
+ number: t,
815
+ description: n,
816
+ supported: r,
817
+ action: i,
818
+ forced: s,
819
+ standard: a
820
+ }) => [e, { name: e, number: t, description: n, supported: r, action: i, forced: s, standard: a }], "getSignalByName"), vt = Zn(), Jn = /* @__PURE__ */ o(() => {
821
+ let e = re(), t = ne + 1, n = Array.from(
822
+ { length: t },
823
+ (r, i) => er(i, e)
824
+ );
825
+ return Object.assign({}, ...n);
826
+ }, "getSignalsByNumber"), er = /* @__PURE__ */ o((e, t) => {
827
+ let n = tr(e, t);
828
+ if (n === void 0)
829
+ return {};
830
+ let { name: r, description: i, supported: s, action: a, forced: c, standard: u } = n;
831
+ return {
832
+ [e]: {
833
+ name: r,
834
+ number: e,
835
+ description: i,
836
+ supported: s,
837
+ action: a,
838
+ forced: c,
839
+ standard: u
840
+ }
841
+ };
842
+ }, "getSignalByNumber"), tr = /* @__PURE__ */ o((e, t) => {
843
+ let n = t.find(({ name: r }) => Yn.signals[r] === e);
844
+ return n !== void 0 ? n : t.find((r) => r.number === e);
845
+ }, "findSignalByNumber"), ii = Jn();
846
+
847
+ // node_modules/execa/lib/error.js
848
+ var rr = /* @__PURE__ */ o(({ timedOut: e, timeout: t, errorCode: n, signal: r, signalDescription: i, exitCode: s, isCanceled: a }) => e ? `timed out after ${t} milliseconds` : a ? "was canceled" : n !== void 0 ? `failed with ${n}` : r !== void 0 ? `was killed with ${r} (${i})` : s !== void 0 ? `failed with exit code ${s}` : "failed", "getErrorPrefix"), P = /* @__PURE__ */ o(({
849
+ stdout: e,
850
+ stderr: t,
851
+ all: n,
852
+ error: r,
853
+ signal: i,
854
+ exitCode: s,
855
+ command: a,
856
+ escapedCommand: c,
857
+ timedOut: u,
858
+ isCanceled: f,
859
+ killed: l,
860
+ parsed: { options: { timeout: p, cwd: d = nr.cwd() } }
861
+ }) => {
862
+ s = s === null ? void 0 : s, i = i === null ? void 0 : i;
863
+ let y = i === void 0 ? void 0 : vt[i].description, m = r && r.code, x = `Command ${rr({ timedOut: u, timeout: p, errorCode: m, signal: i, signalDescription: y, exitCode: s, isCanceled: f })}: ${a}`, v = Object.prototype.toString.call(r) === "[object Error]", O = v ? `${x}
864
+ ${r.message}` : x, R = [O, t, e].filter(Boolean).join(`
865
+ `);
866
+ return v ? (r.originalMessage = r.message, r.message = R) : r = new Error(R), r.shortMessage = O, r.command = a, r.escapedCommand = c, r.exitCode = s, r.signal = i, r.signalDescription = y, r.stdout = e, r.stderr = t, r.cwd = d, n !== void 0 && (r.all = n), "bufferedData" in r && delete r.bufferedData, r.failed = !0, r.timedOut = !!u, r.isCanceled = f, r.killed = l && !u, r;
867
+ }, "makeError");
868
+
869
+ // node_modules/execa/lib/stdio.js
870
+ var L = ["stdin", "stdout", "stderr"], or = /* @__PURE__ */ o((e) => L.some((t) => e[t] !== void 0), "hasAlias"), oe = /* @__PURE__ */ o((e) => {
871
+ if (!e)
872
+ return;
873
+ let { stdio: t } = e;
874
+ if (t === void 0)
875
+ return L.map((r) => e[r]);
876
+ if (or(e))
877
+ throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${L.map((r) => `\`${r}\``).join(", ")}`);
878
+ if (typeof t == "string")
879
+ return t;
880
+ if (!Array.isArray(t))
881
+ throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
882
+ let n = Math.max(t.length, L.length);
883
+ return Array.from({ length: n }, (r, i) => t[i]);
884
+ }, "normalizeStdio"), Ot = /* @__PURE__ */ o((e) => {
885
+ let t = oe(e);
886
+ return t === "ipc" ? "ipc" : t === void 0 || typeof t == "string" ? [t, t, t, "ipc"] : t.includes("ipc") ? t : [...t, "ipc"];
887
+ }, "normalizeStdioNode");
888
+
889
+ // node_modules/execa/lib/kill.js
890
+ import ar from "node:os";
891
+
892
+ // node_modules/signal-exit/dist/mjs/signals.js
893
+ var b = [];
894
+ b.push("SIGHUP", "SIGINT", "SIGTERM");
895
+ process.platform !== "win32" && b.push(
896
+ "SIGALRM",
897
+ "SIGABRT",
898
+ "SIGVTALRM",
899
+ "SIGXCPU",
900
+ "SIGXFSZ",
901
+ "SIGUSR2",
902
+ "SIGTRAP",
903
+ "SIGSYS",
904
+ "SIGQUIT",
905
+ "SIGIOT"
906
+ // should detect profiler and enable/disable accordingly.
907
+ // see #21
908
+ // 'SIGPROF'
909
+ );
910
+ process.platform === "linux" && b.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
911
+
912
+ // node_modules/signal-exit/dist/mjs/index.js
913
+ var N = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeListener == "function" && typeof e.emit == "function" && typeof e.reallyExit == "function" && typeof e.listeners == "function" && typeof e.kill == "function" && typeof e.pid == "number" && typeof e.on == "function", "processOk"), ie = Symbol.for("signal-exit emitter"), se = globalThis, ir = Object.defineProperty.bind(Object), ae = class {
914
+ static {
915
+ o(this, "Emitter");
916
+ }
917
+ emitted = {
918
+ afterExit: !1,
919
+ exit: !1
920
+ };
921
+ listeners = {
922
+ afterExit: [],
923
+ exit: []
924
+ };
925
+ count = 0;
926
+ id = Math.random();
927
+ constructor() {
928
+ if (se[ie])
929
+ return se[ie];
930
+ ir(se, ie, {
931
+ value: this,
932
+ writable: !1,
933
+ enumerable: !1,
934
+ configurable: !1
935
+ });
936
+ }
937
+ on(t, n) {
938
+ this.listeners[t].push(n);
939
+ }
940
+ removeListener(t, n) {
941
+ let r = this.listeners[t], i = r.indexOf(n);
942
+ i !== -1 && (i === 0 && r.length === 1 ? r.length = 0 : r.splice(i, 1));
943
+ }
944
+ emit(t, n, r) {
945
+ if (this.emitted[t])
946
+ return !1;
947
+ this.emitted[t] = !0;
948
+ let i = !1;
949
+ for (let s of this.listeners[t])
950
+ i = s(n, r) === !0 || i;
951
+ return t === "exit" && (i = this.emit("afterExit", n, r) || i), i;
952
+ }
953
+ }, B = class {
954
+ static {
955
+ o(this, "SignalExitBase");
956
+ }
957
+ }, sr = /* @__PURE__ */ o((e) => ({
958
+ onExit(t, n) {
959
+ return e.onExit(t, n);
960
+ },
961
+ load() {
962
+ return e.load();
963
+ },
964
+ unload() {
965
+ return e.unload();
966
+ }
967
+ }), "signalExitWrap"), ce = class extends B {
968
+ static {
969
+ o(this, "SignalExitFallback");
970
+ }
971
+ onExit() {
972
+ return () => {
973
+ };
974
+ }
975
+ load() {
976
+ }
977
+ unload() {
978
+ }
979
+ }, ue = class extends B {
980
+ static {
981
+ o(this, "SignalExit");
982
+ }
983
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
984
+ // so use a supported signal instead
985
+ /* c8 ignore start */
986
+ #s = fe.platform === "win32" ? "SIGINT" : "SIGHUP";
987
+ /* c8 ignore stop */
988
+ #t = new ae();
989
+ #e;
990
+ #o;
991
+ #i;
992
+ #r = {};
993
+ #n = !1;
994
+ constructor(t) {
995
+ super(), this.#e = t, this.#r = {};
996
+ for (let n of b)
997
+ this.#r[n] = () => {
998
+ let r = this.#e.listeners(n), { count: i } = this.#t, s = t;
999
+ if (typeof s.__signal_exit_emitter__ == "object" && typeof s.__signal_exit_emitter__.count == "number" && (i += s.__signal_exit_emitter__.count), r.length === i) {
1000
+ this.unload();
1001
+ let a = this.#t.emit("exit", null, n), c = n === "SIGHUP" ? this.#s : n;
1002
+ a || t.kill(t.pid, c);
1003
+ }
1004
+ };
1005
+ this.#i = t.reallyExit, this.#o = t.emit;
1006
+ }
1007
+ onExit(t, n) {
1008
+ if (!N(this.#e))
1009
+ return () => {
1010
+ };
1011
+ this.#n === !1 && this.load();
1012
+ let r = n?.alwaysLast ? "afterExit" : "exit";
1013
+ return this.#t.on(r, t), () => {
1014
+ this.#t.removeListener(r, t), this.#t.listeners.exit.length === 0 && this.#t.listeners.afterExit.length === 0 && this.unload();
1015
+ };
1016
+ }
1017
+ load() {
1018
+ if (!this.#n) {
1019
+ this.#n = !0, this.#t.count += 1;
1020
+ for (let t of b)
1021
+ try {
1022
+ let n = this.#r[t];
1023
+ n && this.#e.on(t, n);
1024
+ } catch {
1025
+ }
1026
+ this.#e.emit = (t, ...n) => this.#c(t, ...n), this.#e.reallyExit = (t) => this.#a(t);
1027
+ }
1028
+ }
1029
+ unload() {
1030
+ this.#n && (this.#n = !1, b.forEach((t) => {
1031
+ let n = this.#r[t];
1032
+ if (!n)
1033
+ throw new Error("Listener not defined for signal: " + t);
1034
+ try {
1035
+ this.#e.removeListener(t, n);
1036
+ } catch {
1037
+ }
1038
+ }), this.#e.emit = this.#o, this.#e.reallyExit = this.#i, this.#t.count -= 1);
1039
+ }
1040
+ #a(t) {
1041
+ return N(this.#e) ? (this.#e.exitCode = t || 0, this.#t.emit("exit", this.#e.exitCode, null), this.#i.call(this.#e, this.#e.exitCode)) : 0;
1042
+ }
1043
+ #c(t, ...n) {
1044
+ let r = this.#o;
1045
+ if (t === "exit" && N(this.#e)) {
1046
+ typeof n[0] == "number" && (this.#e.exitCode = n[0]);
1047
+ let i = r.call(this.#e, t, ...n);
1048
+ return this.#t.emit("exit", this.#e.exitCode, null), i;
1049
+ } else
1050
+ return r.call(this.#e, t, ...n);
1051
+ }
1052
+ }, fe = globalThis.process, {
1053
+ /**
1054
+ * Called when the process is exiting, whether via signal, explicit
1055
+ * exit, or running out of stuff to do.
1056
+ *
1057
+ * If the global process object is not suitable for instrumentation,
1058
+ * then this will be a no-op.
1059
+ *
1060
+ * Returns a function that may be used to unload signal-exit.
1061
+ */
1062
+ onExit: Rt,
1063
+ /**
1064
+ * Load the listeners. Likely you never need to call this, unless
1065
+ * doing a rather deep integration with signal-exit functionality.
1066
+ * Mostly exposed for the benefit of testing.
1067
+ *
1068
+ * @internal
1069
+ */
1070
+ load: yi,
1071
+ /**
1072
+ * Unload the listeners. Likely you never need to call this, unless
1073
+ * doing a rather deep integration with signal-exit functionality.
1074
+ * Mostly exposed for the benefit of testing.
1075
+ *
1076
+ * @internal
1077
+ */
1078
+ unload: gi
1079
+ } = sr(N(fe) ? new ue(fe) : new ce());
1080
+
1081
+ // node_modules/execa/lib/kill.js
1082
+ var cr = 1e3 * 5, Gt = /* @__PURE__ */ o((e, t = "SIGTERM", n = {}) => {
1083
+ let r = e(t);
1084
+ return ur(e, t, n, r), r;
1085
+ }, "spawnedKill"), ur = /* @__PURE__ */ o((e, t, n, r) => {
1086
+ if (!fr(t, n, r))
1087
+ return;
1088
+ let i = dr(n), s = setTimeout(() => {
1089
+ e("SIGKILL");
1090
+ }, i);
1091
+ s.unref && s.unref();
1092
+ }, "setKillTimeout"), fr = /* @__PURE__ */ o((e, { forceKillAfterTimeout: t }, n) => lr(e) && t !== !1 && n, "shouldForceKill"), lr = /* @__PURE__ */ o((e) => e === ar.constants.signals.SIGTERM || typeof e == "string" && e.toUpperCase() === "SIGTERM", "isSigterm"), dr = /* @__PURE__ */ o(({ forceKillAfterTimeout: e = !0 }) => {
1093
+ if (e === !0)
1094
+ return cr;
1095
+ if (!Number.isFinite(e) || e < 0)
1096
+ throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);
1097
+ return e;
1098
+ }, "getForceKillAfterTimeout"), kt = /* @__PURE__ */ o((e, t) => {
1099
+ e.kill() && (t.isCanceled = !0);
1100
+ }, "spawnedCancel"), pr = /* @__PURE__ */ o((e, t, n) => {
1101
+ e.kill(t), n(Object.assign(new Error("Timed out"), { timedOut: !0, signal: t }));
1102
+ }, "timeoutKill"), jt = /* @__PURE__ */ o((e, { timeout: t, killSignal: n = "SIGTERM" }, r) => {
1103
+ if (t === 0 || t === void 0)
1104
+ return r;
1105
+ let i, s = new Promise((c, u) => {
1106
+ i = setTimeout(() => {
1107
+ pr(e, n, u);
1108
+ }, t);
1109
+ }), a = r.finally(() => {
1110
+ clearTimeout(i);
1111
+ });
1112
+ return Promise.race([s, a]);
1113
+ }, "setupTimeout"), $t = /* @__PURE__ */ o(({ timeout: e }) => {
1114
+ if (e !== void 0 && (!Number.isFinite(e) || e < 0))
1115
+ throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);
1116
+ }, "validateTimeout"), Lt = /* @__PURE__ */ o(async (e, { cleanup: t, detached: n }, r) => {
1117
+ if (!t || n)
1118
+ return r;
1119
+ let i = Rt(() => {
1120
+ e.kill();
1121
+ });
1122
+ return r.finally(() => {
1123
+ i();
1124
+ });
1125
+ }, "setExitHandler");
1126
+
1127
+ // node_modules/execa/lib/pipe.js
1128
+ import { createWriteStream as mr } from "node:fs";
1129
+ import { ChildProcess as hr } from "node:child_process";
1130
+
1131
+ // node_modules/is-stream/index.js
1132
+ function M(e) {
1133
+ return e !== null && typeof e == "object" && typeof e.pipe == "function";
1134
+ }
1135
+ o(M, "isStream");
1136
+ function le(e) {
1137
+ return M(e) && e.writable !== !1 && typeof e._write == "function" && typeof e._writableState == "object";
1138
+ }
1139
+ o(le, "isWritableStream");
1140
+
1141
+ // node_modules/execa/lib/pipe.js
1142
+ var yr = /* @__PURE__ */ o((e) => e instanceof hr && typeof e.then == "function", "isExecaChildProcess"), de = /* @__PURE__ */ o((e, t, n) => {
1143
+ if (typeof n == "string")
1144
+ return e[t].pipe(mr(n)), e;
1145
+ if (le(n))
1146
+ return e[t].pipe(n), e;
1147
+ if (!yr(n))
1148
+ throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
1149
+ if (!le(n.stdin))
1150
+ throw new TypeError("The target child process's stdin must be available.");
1151
+ return e[t].pipe(n.stdin), n;
1152
+ }, "pipeToTarget"), Nt = /* @__PURE__ */ o((e) => {
1153
+ e.stdout !== null && (e.pipeStdout = de.bind(void 0, e, "stdout")), e.stderr !== null && (e.pipeStderr = de.bind(void 0, e, "stderr")), e.all !== void 0 && (e.pipeAll = de.bind(void 0, e, "all"));
1154
+ }, "addPipeMethods");
1155
+
1156
+ // node_modules/execa/lib/stream.js
1157
+ import { createReadStream as Lr, readFileSync as Nr } from "node:fs";
1158
+ import { setTimeout as Br } from "node:timers/promises";
1159
+
1160
+ // node_modules/get-stream/source/contents.js
1161
+ var A = /* @__PURE__ */ o(async (e, { init: t, convertChunk: n, getSize: r, truncateChunk: i, addChunk: s, getFinalChunk: a, finalize: c }, { maxBuffer: u = Number.POSITIVE_INFINITY } = {}) => {
1162
+ if (!Sr(e))
1163
+ throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
1164
+ let f = t();
1165
+ f.length = 0;
1166
+ try {
1167
+ for await (let l of e) {
1168
+ let p = br(l), d = n[p](l, f);
1169
+ Ut({ convertedChunk: d, state: f, getSize: r, truncateChunk: i, addChunk: s, maxBuffer: u });
1170
+ }
1171
+ return gr({ state: f, convertChunk: n, getSize: r, truncateChunk: i, addChunk: s, getFinalChunk: a, maxBuffer: u }), c(f);
1172
+ } catch (l) {
1173
+ throw l.bufferedData = c(f), l;
1174
+ }
1175
+ }, "getStreamContents"), gr = /* @__PURE__ */ o(({ state: e, getSize: t, truncateChunk: n, addChunk: r, getFinalChunk: i, maxBuffer: s }) => {
1176
+ let a = i(e);
1177
+ a !== void 0 && Ut({ convertedChunk: a, state: e, getSize: t, truncateChunk: n, addChunk: r, maxBuffer: s });
1178
+ }, "appendFinalChunk"), Ut = /* @__PURE__ */ o(({ convertedChunk: e, state: t, getSize: n, truncateChunk: r, addChunk: i, maxBuffer: s }) => {
1179
+ let a = n(e), c = t.length + a;
1180
+ if (c <= s) {
1181
+ Bt(e, t, i, c);
1182
+ return;
1183
+ }
1184
+ let u = r(e, s - t.length);
1185
+ throw u !== void 0 && Bt(u, t, i, s), new U();
1186
+ }, "appendChunk"), Bt = /* @__PURE__ */ o((e, t, n, r) => {
1187
+ t.contents = n(e, t, r), t.length = r;
1188
+ }, "addNewChunk"), Sr = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && typeof e[Symbol.asyncIterator] == "function", "isAsyncIterable"), br = /* @__PURE__ */ o((e) => {
1189
+ let t = typeof e;
1190
+ if (t === "string")
1191
+ return "string";
1192
+ if (t !== "object" || e === null)
1193
+ return "others";
1194
+ if (globalThis.Buffer?.isBuffer(e))
1195
+ return "buffer";
1196
+ let n = Mt.call(e);
1197
+ return n === "[object ArrayBuffer]" ? "arrayBuffer" : n === "[object DataView]" ? "dataView" : Number.isInteger(e.byteLength) && Number.isInteger(e.byteOffset) && Mt.call(e.buffer) === "[object ArrayBuffer]" ? "typedArray" : "others";
1198
+ }, "getChunkType"), { toString: Mt } = Object.prototype, U = class extends Error {
1199
+ static {
1200
+ o(this, "MaxBufferError");
1201
+ }
1202
+ name = "MaxBufferError";
1203
+ constructor() {
1204
+ super("maxBuffer exceeded");
1205
+ }
1206
+ };
1207
+
1208
+ // node_modules/get-stream/source/utils.js
1209
+ var pe = /* @__PURE__ */ o((e) => e, "identity"), me = /* @__PURE__ */ o(() => {
1210
+ }, "noop"), he = /* @__PURE__ */ o(({ contents: e }) => e, "getContentsProp"), F = /* @__PURE__ */ o((e) => {
1211
+ throw new Error(`Streams in object mode are not supported: ${String(e)}`);
1212
+ }, "throwObjectStream"), _ = /* @__PURE__ */ o((e) => e.length, "getLengthProp");
1213
+
1214
+ // node_modules/get-stream/source/array-buffer.js
1215
+ async function ye(e, t) {
1216
+ return A(e, vr, t);
1217
+ }
1218
+ o(ye, "getStreamAsArrayBuffer");
1219
+ var xr = /* @__PURE__ */ o(() => ({ contents: new ArrayBuffer(0) }), "initArrayBuffer"), wr = /* @__PURE__ */ o((e) => Er.encode(e), "useTextEncoder"), Er = new TextEncoder(), Ft = /* @__PURE__ */ o((e) => new Uint8Array(e), "useUint8Array"), _t = /* @__PURE__ */ o((e) => new Uint8Array(e.buffer, e.byteOffset, e.byteLength), "useUint8ArrayWithOffset"), Tr = /* @__PURE__ */ o((e, t) => e.slice(0, t), "truncateArrayBufferChunk"), Ir = /* @__PURE__ */ o((e, { contents: t, length: n }, r) => {
1220
+ let i = zt() ? Ar(t, r) : Pr(t, r);
1221
+ return new Uint8Array(i).set(e, n), i;
1222
+ }, "addArrayBufferChunk"), Pr = /* @__PURE__ */ o((e, t) => {
1223
+ if (t <= e.byteLength)
1224
+ return e;
1225
+ let n = new ArrayBuffer(qt(t));
1226
+ return new Uint8Array(n).set(new Uint8Array(e), 0), n;
1227
+ }, "resizeArrayBufferSlow"), Ar = /* @__PURE__ */ o((e, t) => {
1228
+ if (t <= e.maxByteLength)
1229
+ return e.resize(t), e;
1230
+ let n = new ArrayBuffer(t, { maxByteLength: qt(t) });
1231
+ return new Uint8Array(n).set(new Uint8Array(e), 0), n;
1232
+ }, "resizeArrayBuffer"), qt = /* @__PURE__ */ o((e) => Dt ** Math.ceil(Math.log(e) / Math.log(Dt)), "getNewContentsLength"), Dt = 2, Cr = /* @__PURE__ */ o(({ contents: e, length: t }) => zt() ? e : e.slice(0, t), "finalizeArrayBuffer"), zt = /* @__PURE__ */ o(() => "resize" in ArrayBuffer.prototype, "hasArrayBufferResize"), vr = {
1233
+ init: xr,
1234
+ convertChunk: {
1235
+ string: wr,
1236
+ buffer: Ft,
1237
+ arrayBuffer: Ft,
1238
+ dataView: _t,
1239
+ typedArray: _t,
1240
+ others: F
1241
+ },
1242
+ getSize: _,
1243
+ truncateChunk: Tr,
1244
+ addChunk: Ir,
1245
+ getFinalChunk: me,
1246
+ finalize: Cr
1247
+ };
1248
+
1249
+ // node_modules/get-stream/source/buffer.js
1250
+ async function D(e, t) {
1251
+ if (!("Buffer" in globalThis))
1252
+ throw new Error("getStreamAsBuffer() is only supported in Node.js");
1253
+ try {
1254
+ return Wt(await ye(e, t));
1255
+ } catch (n) {
1256
+ throw n.bufferedData !== void 0 && (n.bufferedData = Wt(n.bufferedData)), n;
1257
+ }
1258
+ }
1259
+ o(D, "getStreamAsBuffer");
1260
+ var Wt = /* @__PURE__ */ o((e) => globalThis.Buffer.from(e), "arrayBufferToNodeBuffer");
1261
+
1262
+ // node_modules/get-stream/source/string.js
1263
+ async function ge(e, t) {
1264
+ return A(e, jr, t);
1265
+ }
1266
+ o(ge, "getStreamAsString");
1267
+ var Or = /* @__PURE__ */ o(() => ({ contents: "", textDecoder: new TextDecoder() }), "initString"), q = /* @__PURE__ */ o((e, { textDecoder: t }) => t.decode(e, { stream: !0 }), "useTextDecoder"), Rr = /* @__PURE__ */ o((e, { contents: t }) => t + e, "addStringChunk"), Gr = /* @__PURE__ */ o((e, t) => e.slice(0, t), "truncateStringChunk"), kr = /* @__PURE__ */ o(({ textDecoder: e }) => {
1268
+ let t = e.decode();
1269
+ return t === "" ? void 0 : t;
1270
+ }, "getFinalStringChunk"), jr = {
1271
+ init: Or,
1272
+ convertChunk: {
1273
+ string: pe,
1274
+ buffer: q,
1275
+ arrayBuffer: q,
1276
+ dataView: q,
1277
+ typedArray: q,
1278
+ others: F
1279
+ },
1280
+ getSize: _,
1281
+ truncateChunk: Gr,
1282
+ addChunk: Rr,
1283
+ getFinalChunk: kr,
1284
+ finalize: he
1285
+ };
1286
+
1287
+ // node_modules/execa/lib/stream.js
1288
+ var Vt = Re(Kt(), 1);
1289
+ var Xt = /* @__PURE__ */ o((e) => {
1290
+ if (e !== void 0)
1291
+ throw new TypeError("The `input` and `inputFile` options cannot be both set.");
1292
+ }, "validateInputOptions"), Mr = /* @__PURE__ */ o(({ input: e, inputFile: t }) => typeof t != "string" ? e : (Xt(e), Nr(t)), "getInputSync"), Yt = /* @__PURE__ */ o((e) => {
1293
+ let t = Mr(e);
1294
+ if (M(t))
1295
+ throw new TypeError("The `input` option cannot be a stream in sync mode");
1296
+ return t;
1297
+ }, "handleInputSync"), Ur = /* @__PURE__ */ o(({ input: e, inputFile: t }) => typeof t != "string" ? e : (Xt(e), Lr(t)), "getInput"), Zt = /* @__PURE__ */ o((e, t) => {
1298
+ let n = Ur(t);
1299
+ n !== void 0 && (M(n) ? n.pipe(e.stdin) : e.stdin.end(n));
1300
+ }, "handleInput"), Qt = /* @__PURE__ */ o((e, { all: t }) => {
1301
+ if (!t || !e.stdout && !e.stderr)
1302
+ return;
1303
+ let n = (0, Vt.default)();
1304
+ return e.stdout && n.add(e.stdout), e.stderr && n.add(e.stderr), n;
1305
+ }, "makeAllStream"), Se = /* @__PURE__ */ o(async (e, t) => {
1306
+ if (!(!e || t === void 0)) {
1307
+ await Br(0), e.destroy();
1308
+ try {
1309
+ return await t;
1310
+ } catch (n) {
1311
+ return n.bufferedData;
1312
+ }
1313
+ }
1314
+ }, "getBufferedData"), be = /* @__PURE__ */ o((e, { encoding: t, buffer: n, maxBuffer: r }) => {
1315
+ if (!(!e || !n))
1316
+ return t === "utf8" || t === "utf-8" ? ge(e, { maxBuffer: r }) : t === null || t === "buffer" ? D(e, { maxBuffer: r }) : Fr(e, r, t);
1317
+ }, "getStreamPromise"), Fr = /* @__PURE__ */ o(async (e, t, n) => (await D(e, { maxBuffer: t })).toString(n), "applyEncoding"), Jt = /* @__PURE__ */ o(async ({ stdout: e, stderr: t, all: n }, { encoding: r, buffer: i, maxBuffer: s }, a) => {
1318
+ let c = be(e, { encoding: r, buffer: i, maxBuffer: s }), u = be(t, { encoding: r, buffer: i, maxBuffer: s }), f = be(n, { encoding: r, buffer: i, maxBuffer: s * 2 });
1319
+ try {
1320
+ return await Promise.all([a, c, u, f]);
1321
+ } catch (l) {
1322
+ return Promise.all([
1323
+ { error: l, signal: l.signal, timedOut: l.timedOut },
1324
+ Se(e, c),
1325
+ Se(t, u),
1326
+ Se(n, f)
1327
+ ]);
1328
+ }
1329
+ }, "getSpawnedResult");
1330
+
1331
+ // node_modules/execa/lib/promise.js
1332
+ var _r = (async () => {
1333
+ })().constructor.prototype, Dr = ["then", "catch", "finally"].map((e) => [
1334
+ e,
1335
+ Reflect.getOwnPropertyDescriptor(_r, e)
1336
+ ]), xe = /* @__PURE__ */ o((e, t) => {
1337
+ for (let [n, r] of Dr) {
1338
+ let i = typeof t == "function" ? (...s) => Reflect.apply(r.value, t(), s) : r.value.bind(t);
1339
+ Reflect.defineProperty(e, n, { ...r, value: i });
1340
+ }
1341
+ }, "mergePromise"), en = /* @__PURE__ */ o((e) => new Promise((t, n) => {
1342
+ e.on("exit", (r, i) => {
1343
+ t({ exitCode: r, signal: i });
1344
+ }), e.on("error", (r) => {
1345
+ n(r);
1346
+ }), e.stdin && e.stdin.on("error", (r) => {
1347
+ n(r);
1348
+ });
1349
+ }), "getSpawnedPromise");
1350
+
1351
+ // node_modules/execa/lib/command.js
1352
+ import { Buffer as qr } from "node:buffer";
1353
+ import { ChildProcess as zr } from "node:child_process";
1354
+ var rn = /* @__PURE__ */ o((e, t = []) => Array.isArray(t) ? [e, ...t] : [e], "normalizeArgs"), Wr = /^[\w.-]+$/, Hr = /* @__PURE__ */ o((e) => typeof e != "string" || Wr.test(e) ? e : `"${e.replaceAll('"', '\\"')}"`, "escapeArg"), we = /* @__PURE__ */ o((e, t) => rn(e, t).join(" "), "joinCommand"), Ee = /* @__PURE__ */ o((e, t) => rn(e, t).map((n) => Hr(n)).join(" "), "getEscapedCommand"), Kr = / +/g;
1355
+ var tn = /* @__PURE__ */ o((e) => {
1356
+ let t = typeof e;
1357
+ if (t === "string")
1358
+ return e;
1359
+ if (t === "number")
1360
+ return String(e);
1361
+ if (t === "object" && e !== null && !(e instanceof zr) && "stdout" in e) {
1362
+ let n = typeof e.stdout;
1363
+ if (n === "string")
1364
+ return e.stdout;
1365
+ if (qr.isBuffer(e.stdout))
1366
+ return e.stdout.toString();
1367
+ throw new TypeError(`Unexpected "${n}" stdout in template expression`);
1368
+ }
1369
+ throw new TypeError(`Unexpected "${t}" in template expression`);
1370
+ }, "parseExpression"), nn = /* @__PURE__ */ o((e, t, n) => n || e.length === 0 || t.length === 0 ? [...e, ...t] : [
1371
+ ...e.slice(0, -1),
1372
+ `${e.at(-1)}${t[0]}`,
1373
+ ...t.slice(1)
1374
+ ], "concatTokens"), Vr = /* @__PURE__ */ o(({ templates: e, expressions: t, tokens: n, index: r, template: i }) => {
1375
+ let s = i ?? e.raw[r], a = s.split(Kr).filter(Boolean), c = nn(
1376
+ n,
1377
+ a,
1378
+ s.startsWith(" ")
1379
+ );
1380
+ if (r === t.length)
1381
+ return c;
1382
+ let u = t[r], f = Array.isArray(u) ? u.map((l) => tn(l)) : [tn(u)];
1383
+ return nn(
1384
+ c,
1385
+ f,
1386
+ s.endsWith(" ")
1387
+ );
1388
+ }, "parseTemplate"), Te = /* @__PURE__ */ o((e, t) => {
1389
+ let n = [];
1390
+ for (let [r, i] of e.entries())
1391
+ n = Vr({ templates: e, expressions: t, tokens: n, index: r, template: i });
1392
+ return n;
1393
+ }, "parseTemplates");
1394
+
1395
+ // node_modules/execa/lib/verbose.js
1396
+ import { debuglog as Xr } from "node:util";
1397
+ import Yr from "node:process";
1398
+ var on = Xr("execa").enabled, z = /* @__PURE__ */ o((e, t) => String(e).padStart(t, "0"), "padField"), Zr = /* @__PURE__ */ o(() => {
1399
+ let e = /* @__PURE__ */ new Date();
1400
+ return `${z(e.getHours(), 2)}:${z(e.getMinutes(), 2)}:${z(e.getSeconds(), 2)}.${z(e.getMilliseconds(), 3)}`;
1401
+ }, "getTimestamp"), Ie = /* @__PURE__ */ o((e, { verbose: t }) => {
1402
+ t && Yr.stderr.write(`[${Zr()}] ${e}
1403
+ `);
1404
+ }, "logCommand");
1405
+
1406
+ // node_modules/execa/index.js
1407
+ var eo = 1e3 * 1e3 * 100, to = /* @__PURE__ */ o(({ env: e, extendEnv: t, preferLocal: n, localDir: r, execPath: i }) => {
1408
+ let s = t ? { ...T.env, ...e } : e;
1409
+ return n ? Et({ env: s, cwd: r, execPath: i }) : s;
1410
+ }, "getEnv"), cn = /* @__PURE__ */ o((e, t, n = {}) => {
1411
+ let r = an.default._parse(e, t, n);
1412
+ return e = r.command, t = r.args, n = r.options, n = {
1413
+ maxBuffer: eo,
1414
+ buffer: !0,
1415
+ stripFinalNewline: !0,
1416
+ extendEnv: !0,
1417
+ preferLocal: !1,
1418
+ localDir: n.cwd || T.cwd(),
1419
+ execPath: T.execPath,
1420
+ encoding: "utf8",
1421
+ reject: !0,
1422
+ cleanup: !0,
1423
+ all: !1,
1424
+ windowsHide: !0,
1425
+ verbose: on,
1426
+ ...n
1427
+ }, n.env = to(n), n.stdio = oe(n), T.platform === "win32" && Jr.basename(e, ".exe") === "cmd" && t.unshift("/q"), { file: e, args: t, options: n, parsed: r };
1428
+ }, "handleArguments"), C = /* @__PURE__ */ o((e, t, n) => typeof t != "string" && !Qr.isBuffer(t) ? n === void 0 ? void 0 : "" : e.stripFinalNewline ? ee(t) : t, "handleOutput");
1429
+ function un(e, t, n) {
1430
+ let r = cn(e, t, n), i = we(e, t), s = Ee(e, t);
1431
+ Ie(s, r.options), $t(r.options);
1432
+ let a;
1433
+ try {
1434
+ a = Pe.spawn(r.file, r.args, r.options);
1435
+ } catch (y) {
1436
+ let m = new Pe.ChildProcess(), g = Promise.reject(P({
1437
+ error: y,
1438
+ stdout: "",
1439
+ stderr: "",
1440
+ all: "",
1441
+ command: i,
1442
+ escapedCommand: s,
1443
+ parsed: r,
1444
+ timedOut: !1,
1445
+ isCanceled: !1,
1446
+ killed: !1
1447
+ }));
1448
+ return xe(m, g), m;
1449
+ }
1450
+ let c = en(a), u = jt(a, r.options, c), f = Lt(a, r.options, u), l = { isCanceled: !1 };
1451
+ a.kill = Gt.bind(null, a.kill.bind(a)), a.cancel = kt.bind(null, a, l);
1452
+ let d = It(/* @__PURE__ */ o(async () => {
1453
+ let [{ error: y, exitCode: m, signal: g, timedOut: x }, v, O, R] = await Jt(a, r.options, f), Ae = C(r.options, v), Ce = C(r.options, O), ve = C(r.options, R);
1454
+ if (y || m !== 0 || g !== null) {
1455
+ let Oe = P({
1456
+ error: y,
1457
+ exitCode: m,
1458
+ signal: g,
1459
+ stdout: Ae,
1460
+ stderr: Ce,
1461
+ all: ve,
1462
+ command: i,
1463
+ escapedCommand: s,
1464
+ parsed: r,
1465
+ timedOut: x,
1466
+ isCanceled: l.isCanceled || (r.options.signal ? r.options.signal.aborted : !1),
1467
+ killed: a.killed
1468
+ });
1469
+ if (!r.options.reject)
1470
+ return Oe;
1471
+ throw Oe;
1472
+ }
1473
+ return {
1474
+ command: i,
1475
+ escapedCommand: s,
1476
+ exitCode: 0,
1477
+ stdout: Ae,
1478
+ stderr: Ce,
1479
+ all: ve,
1480
+ failed: !1,
1481
+ timedOut: !1,
1482
+ isCanceled: !1,
1483
+ killed: !1
1484
+ };
1485
+ }, "handlePromise"));
1486
+ return Zt(a, r.options), a.all = Qt(a, r.options), Nt(a), xe(a, d), a;
1487
+ }
1488
+ o(un, "execa");
1489
+ function no(e, t, n) {
1490
+ let r = cn(e, t, n), i = we(e, t), s = Ee(e, t);
1491
+ Ie(s, r.options);
1492
+ let a = Yt(r.options), c;
1493
+ try {
1494
+ c = Pe.spawnSync(r.file, r.args, { ...r.options, input: a });
1495
+ } catch (l) {
1496
+ throw P({
1497
+ error: l,
1498
+ stdout: "",
1499
+ stderr: "",
1500
+ all: "",
1501
+ command: i,
1502
+ escapedCommand: s,
1503
+ parsed: r,
1504
+ timedOut: !1,
1505
+ isCanceled: !1,
1506
+ killed: !1
1507
+ });
1508
+ }
1509
+ let u = C(r.options, c.stdout, c.error), f = C(r.options, c.stderr, c.error);
1510
+ if (c.error || c.status !== 0 || c.signal !== null) {
1511
+ let l = P({
1512
+ stdout: u,
1513
+ stderr: f,
1514
+ error: c.error,
1515
+ signal: c.signal,
1516
+ exitCode: c.status,
1517
+ command: i,
1518
+ escapedCommand: s,
1519
+ parsed: r,
1520
+ timedOut: c.error && c.error.code === "ETIMEDOUT",
1521
+ isCanceled: !1,
1522
+ killed: c.signal !== null
1523
+ });
1524
+ if (!r.options.reject)
1525
+ return l;
1526
+ throw l;
1527
+ }
1528
+ return {
1529
+ command: i,
1530
+ escapedCommand: s,
1531
+ exitCode: 0,
1532
+ stdout: u,
1533
+ stderr: f,
1534
+ failed: !1,
1535
+ timedOut: !1,
1536
+ isCanceled: !1,
1537
+ killed: !1
1538
+ };
1539
+ }
1540
+ o(no, "execaSync");
1541
+ var ro = /* @__PURE__ */ o(({ input: e, inputFile: t, stdio: n }) => e === void 0 && t === void 0 && n === void 0 ? { stdin: "inherit" } : {}, "normalizeScriptStdin"), sn = /* @__PURE__ */ o((e = {}) => ({
1542
+ preferLocal: !0,
1543
+ ...ro(e),
1544
+ ...e
1545
+ }), "normalizeScriptOptions");
1546
+ function fn(e) {
1547
+ function t(n, ...r) {
1548
+ if (!Array.isArray(n))
1549
+ return fn({ ...e, ...n });
1550
+ let [i, ...s] = Te(n, r);
1551
+ return un(i, s, sn(e));
1552
+ }
1553
+ return o(t, "$"), t.sync = (n, ...r) => {
1554
+ if (!Array.isArray(n))
1555
+ throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
1556
+ let [i, ...s] = Te(n, r);
1557
+ return no(i, s, sn(e));
1558
+ }, t;
1559
+ }
1560
+ o(fn, "create$");
1561
+ var Bs = fn();
1562
+ function Ms(e, t, n = {}) {
1563
+ t && !Array.isArray(t) && typeof t == "object" && (n = t, t = []);
1564
+ let r = Ot(n), i = T.execArgv.filter((c) => !c.startsWith("--inspect")), {
1565
+ nodePath: s = T.execPath,
1566
+ nodeOptions: a = i
1567
+ } = n;
1568
+ return un(
1569
+ s,
1570
+ [
1571
+ ...a,
1572
+ e,
1573
+ ...Array.isArray(t) ? t : []
1574
+ ],
1575
+ {
1576
+ ...n,
1577
+ stdin: void 0,
1578
+ stdout: void 0,
1579
+ stderr: void 0,
1580
+ stdio: r,
1581
+ shell: !1
1582
+ }
1583
+ );
1584
+ }
1585
+ o(Ms, "execaNode");
1586
+
1587
+ // ../../core/src/shared/utils/module.ts
1588
+ import { fileURLToPath as oo, pathToFileURL as io } from "node:url";
1589
+ var so = /* @__PURE__ */ o((...e) => typeof import.meta.resolve != "function" && process.env.VITEST === "true" ? (console.warn(
1590
+ "importMetaResolve from within Storybook is being used in a Vitest test, but it shouldn't be. Please report this at https://github.com/storybookjs/storybook/issues/new?template=bug_report.yml"
1591
+ ), io(e[0]).href) : import.meta.resolve(...e), "importMetaResolve"), qs = /* @__PURE__ */ o((e, t) => ke(oo(so(Ge(e, "package.json"), t))), "resolvePackageDir");
1592
+
1593
+ export {
1594
+ un as a,
1595
+ Ms as b,
1596
+ so as c,
1597
+ qs as d
1598
+ };