@storybook/addon-vitest 0.0.0-pr-31819-sha-b9cc1551 → 0.0.0-pr-31819-sha-8b7e5823
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/_node-chunks/{chunk-FMQIQP6D.js → chunk-JSCRRX7J.js} +18 -33
- package/dist/_node-chunks/{chunk-VFT2PRGV.js → chunk-L5EWH7GC.js} +1 -1
- package/dist/_node-chunks/{chunk-XWQZZ2C3.js → chunk-RCVH25XB.js} +379 -367
- package/dist/node/coverage-reporter.js +90 -90
- package/dist/node/vitest.js +45 -46
- package/dist/postinstall.js +5 -5
- package/dist/preset.js +6 -6
- package/package.json +2 -3
- package/static/coverage-reporter.cjs +0 -10
|
@@ -8,19 +8,23 @@ const require = CJS_COMPAT_NODE_MODULE.createRequire(import.meta.url);
|
|
|
8
8
|
// ------------------------------------------------------------
|
|
9
9
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
10
10
|
// ------------------------------------------------------------
|
|
11
|
+
import {
|
|
12
|
+
c as Ge,
|
|
13
|
+
f as ke
|
|
14
|
+
} from "./chunk-W26ZMSD3.js";
|
|
11
15
|
import {
|
|
12
16
|
a as o,
|
|
13
17
|
b as S,
|
|
14
18
|
c as h,
|
|
15
|
-
e as
|
|
19
|
+
e as Re
|
|
16
20
|
} from "./chunk-KVKHJ5OL.js";
|
|
17
21
|
|
|
18
22
|
// ../../node_modules/isexe/windows.js
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
function
|
|
23
|
+
var Be = h((ao, Ne) => {
|
|
24
|
+
Ne.exports = Le;
|
|
25
|
+
Le.sync = dn;
|
|
26
|
+
var je = S("fs");
|
|
27
|
+
function ln(e, t) {
|
|
24
28
|
var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
|
|
25
29
|
if (!n || (n = n.split(";"), n.indexOf("") !== -1))
|
|
26
30
|
return !0;
|
|
@@ -31,55 +35,55 @@ var je = h((no, ke) => {
|
|
|
31
35
|
}
|
|
32
36
|
return !1;
|
|
33
37
|
}
|
|
34
|
-
o(
|
|
38
|
+
o(ln, "checkPathExt");
|
|
35
39
|
function $e(e, t, n) {
|
|
36
|
-
return !e.isSymbolicLink() && !e.isFile() ? !1 :
|
|
40
|
+
return !e.isSymbolicLink() && !e.isFile() ? !1 : ln(t, n);
|
|
37
41
|
}
|
|
38
42
|
o($e, "checkStat");
|
|
39
|
-
function
|
|
40
|
-
|
|
43
|
+
function Le(e, t, n) {
|
|
44
|
+
je.stat(e, function(r, i) {
|
|
41
45
|
n(r, r ? !1 : $e(i, e, t));
|
|
42
46
|
});
|
|
43
47
|
}
|
|
44
|
-
o(
|
|
45
|
-
function
|
|
46
|
-
return $e(
|
|
48
|
+
o(Le, "isexe");
|
|
49
|
+
function dn(e, t) {
|
|
50
|
+
return $e(je.statSync(e), e, t);
|
|
47
51
|
}
|
|
48
|
-
o(
|
|
52
|
+
o(dn, "sync");
|
|
49
53
|
});
|
|
50
54
|
|
|
51
55
|
// ../../node_modules/isexe/mode.js
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
n(r, r ? !1 :
|
|
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));
|
|
59
63
|
});
|
|
60
64
|
}
|
|
61
|
-
o(
|
|
62
|
-
function
|
|
63
|
-
return
|
|
65
|
+
o(Ue, "isexe");
|
|
66
|
+
function pn(e, t) {
|
|
67
|
+
return Fe(Me.statSync(e), t);
|
|
64
68
|
}
|
|
65
|
-
o(
|
|
66
|
-
function
|
|
67
|
-
return e.isFile() &&
|
|
69
|
+
o(pn, "sync");
|
|
70
|
+
function Fe(e, t) {
|
|
71
|
+
return e.isFile() && mn(e, t);
|
|
68
72
|
}
|
|
69
|
-
o(
|
|
70
|
-
function
|
|
73
|
+
o(Fe, "checkStat");
|
|
74
|
+
function mn(e, t) {
|
|
71
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;
|
|
72
76
|
return p;
|
|
73
77
|
}
|
|
74
|
-
o(
|
|
78
|
+
o(mn, "checkMode");
|
|
75
79
|
});
|
|
76
80
|
|
|
77
81
|
// ../../node_modules/isexe/index.js
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
process.platform === "win32" || global.TESTING_WINDOWS ?
|
|
81
|
-
|
|
82
|
-
W.sync =
|
|
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;
|
|
83
87
|
function W(e, t, n) {
|
|
84
88
|
if (typeof t == "function" && (n = t, t = {}), !n) {
|
|
85
89
|
if (typeof Promise != "function")
|
|
@@ -90,27 +94,27 @@ var De = h((ao, _e) => {
|
|
|
90
94
|
});
|
|
91
95
|
});
|
|
92
96
|
}
|
|
93
|
-
|
|
97
|
+
G(e, t || {}, function(r, i) {
|
|
94
98
|
r && (r.code === "EACCES" || t && t.ignoreErrors) && (r = null, i = !1), n(r, i);
|
|
95
99
|
});
|
|
96
100
|
}
|
|
97
101
|
o(W, "isexe");
|
|
98
|
-
function
|
|
102
|
+
function hn(e, t) {
|
|
99
103
|
try {
|
|
100
|
-
return
|
|
104
|
+
return G.sync(e, t || {});
|
|
101
105
|
} catch (n) {
|
|
102
106
|
if (t && t.ignoreErrors || n.code === "EACCES")
|
|
103
107
|
return !1;
|
|
104
108
|
throw n;
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
|
-
o(
|
|
111
|
+
o(hn, "sync");
|
|
108
112
|
});
|
|
109
113
|
|
|
110
114
|
// ../../node_modules/which/which.js
|
|
111
|
-
var
|
|
112
|
-
var w = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys",
|
|
113
|
-
let n = t.colon ||
|
|
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(/\\/) ? [""] : [
|
|
114
118
|
// windows always checks the cwd first
|
|
115
119
|
...w ? [process.cwd()] : [],
|
|
116
120
|
...(t.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
@@ -121,18 +125,18 @@ var Ve = h((uo, Xe) => {
|
|
|
121
125
|
pathExt: s,
|
|
122
126
|
pathExtExe: i
|
|
123
127
|
};
|
|
124
|
-
}, "getPathInfo"),
|
|
128
|
+
}, "getPathInfo"), Xe = /* @__PURE__ */ o((e, t, n) => {
|
|
125
129
|
typeof t == "function" && (n = t, t = {}), t || (t = {});
|
|
126
|
-
let { pathEnv: r, pathExt: i, pathExtExe: s } =
|
|
130
|
+
let { pathEnv: r, pathExt: i, pathExtExe: s } = Ve(e, t), a = [], c = /* @__PURE__ */ o((f) => new Promise((l, p) => {
|
|
127
131
|
if (f === r.length)
|
|
128
|
-
return t.all && a.length ? l(a) : p(
|
|
129
|
-
let d = r[f], y = /^".*"$/.test(d) ? d.slice(1, -1) : d, m =
|
|
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;
|
|
130
134
|
l(u(g, f, 0));
|
|
131
135
|
}), "step"), u = /* @__PURE__ */ o((f, l, p) => new Promise((d, y) => {
|
|
132
136
|
if (p === i.length)
|
|
133
137
|
return d(c(l + 1));
|
|
134
138
|
let m = i[p];
|
|
135
|
-
|
|
139
|
+
He(f + m, { pathExt: s }, (g, x) => {
|
|
136
140
|
if (!g && x)
|
|
137
141
|
if (t.all)
|
|
138
142
|
a.push(f + m);
|
|
@@ -142,15 +146,15 @@ var Ve = h((uo, Xe) => {
|
|
|
142
146
|
});
|
|
143
147
|
}), "subStep");
|
|
144
148
|
return n ? c(0).then((f) => n(null, f), n) : c(0);
|
|
145
|
-
}, "which"),
|
|
149
|
+
}, "which"), gn = /* @__PURE__ */ o((e, t) => {
|
|
146
150
|
t = t || {};
|
|
147
|
-
let { pathEnv: n, pathExt: r, pathExtExe: i } =
|
|
151
|
+
let { pathEnv: n, pathExt: r, pathExtExe: i } = Ve(e, t), s = [];
|
|
148
152
|
for (let a = 0; a < n.length; a++) {
|
|
149
|
-
let c = n[a], u = /^".*"$/.test(c) ? c.slice(1, -1) : c, f =
|
|
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;
|
|
150
154
|
for (let p = 0; p < r.length; p++) {
|
|
151
155
|
let d = l + r[p];
|
|
152
156
|
try {
|
|
153
|
-
if (
|
|
157
|
+
if (He.sync(d, { pathExt: i }))
|
|
154
158
|
if (t.all)
|
|
155
159
|
s.push(d);
|
|
156
160
|
else
|
|
@@ -163,28 +167,28 @@ var Ve = h((uo, Xe) => {
|
|
|
163
167
|
return s;
|
|
164
168
|
if (t.nothrow)
|
|
165
169
|
return null;
|
|
166
|
-
throw
|
|
170
|
+
throw Ke(e);
|
|
167
171
|
}, "whichSync");
|
|
168
|
-
|
|
169
|
-
|
|
172
|
+
Ye.exports = Xe;
|
|
173
|
+
Xe.sync = gn;
|
|
170
174
|
});
|
|
171
175
|
|
|
172
176
|
// ../../node_modules/path-key/index.js
|
|
173
|
-
var
|
|
177
|
+
var Je = h((go, H) => {
|
|
174
178
|
"use strict";
|
|
175
|
-
var
|
|
179
|
+
var Qe = /* @__PURE__ */ o((e = {}) => {
|
|
176
180
|
let t = e.env || process.env;
|
|
177
181
|
return (e.platform || process.platform) !== "win32" ? "PATH" : Object.keys(t).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
|
|
178
182
|
}, "pathKey");
|
|
179
|
-
H.exports =
|
|
180
|
-
H.exports.default =
|
|
183
|
+
H.exports = Qe;
|
|
184
|
+
H.exports.default = Qe;
|
|
181
185
|
});
|
|
182
186
|
|
|
183
187
|
// ../../node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
184
|
-
var
|
|
188
|
+
var rt = h((bo, nt) => {
|
|
185
189
|
"use strict";
|
|
186
|
-
var
|
|
187
|
-
function
|
|
190
|
+
var et = S("path"), Sn = Ze(), bn = Je();
|
|
191
|
+
function tt(e, t) {
|
|
188
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;
|
|
189
193
|
if (s)
|
|
190
194
|
try {
|
|
@@ -193,52 +197,52 @@ var tt = h((mo, et) => {
|
|
|
193
197
|
}
|
|
194
198
|
let a;
|
|
195
199
|
try {
|
|
196
|
-
a =
|
|
197
|
-
path: n[
|
|
198
|
-
pathExt: t ?
|
|
200
|
+
a = Sn.sync(e.command, {
|
|
201
|
+
path: n[bn({ env: n })],
|
|
202
|
+
pathExt: t ? et.delimiter : void 0
|
|
199
203
|
});
|
|
200
204
|
} catch {
|
|
201
205
|
} finally {
|
|
202
206
|
s && process.chdir(r);
|
|
203
207
|
}
|
|
204
|
-
return a && (a =
|
|
208
|
+
return a && (a = et.resolve(i ? e.options.cwd : "", a)), a;
|
|
205
209
|
}
|
|
206
|
-
o(
|
|
207
|
-
function
|
|
208
|
-
return
|
|
210
|
+
o(tt, "resolveCommandAttempt");
|
|
211
|
+
function xn(e) {
|
|
212
|
+
return tt(e) || tt(e, !0);
|
|
209
213
|
}
|
|
210
|
-
o(
|
|
211
|
-
|
|
214
|
+
o(xn, "resolveCommand");
|
|
215
|
+
nt.exports = xn;
|
|
212
216
|
});
|
|
213
217
|
|
|
214
218
|
// ../../node_modules/cross-spawn/lib/util/escape.js
|
|
215
|
-
var
|
|
219
|
+
var ot = h((wo, V) => {
|
|
216
220
|
"use strict";
|
|
217
221
|
var K = /([()\][%!^"`<>&|;, *?])/g;
|
|
218
|
-
function
|
|
222
|
+
function wn(e) {
|
|
219
223
|
return e = e.replace(K, "^$1"), e;
|
|
220
224
|
}
|
|
221
|
-
o(
|
|
222
|
-
function
|
|
225
|
+
o(wn, "escapeCommand");
|
|
226
|
+
function En(e, t) {
|
|
223
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;
|
|
224
228
|
}
|
|
225
|
-
o(
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
o(En, "escapeArgument");
|
|
230
|
+
V.exports.command = wn;
|
|
231
|
+
V.exports.argument = En;
|
|
228
232
|
});
|
|
229
233
|
|
|
230
234
|
// ../../node_modules/shebang-regex/index.js
|
|
231
|
-
var
|
|
235
|
+
var st = h((To, it) => {
|
|
232
236
|
"use strict";
|
|
233
|
-
|
|
237
|
+
it.exports = /^#!(.*)/;
|
|
234
238
|
});
|
|
235
239
|
|
|
236
240
|
// ../../node_modules/shebang-command/index.js
|
|
237
|
-
var
|
|
241
|
+
var ct = h((Io, at) => {
|
|
238
242
|
"use strict";
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
let t = e.match(
|
|
243
|
+
var Tn = st();
|
|
244
|
+
at.exports = (e = "") => {
|
|
245
|
+
let t = e.match(Tn);
|
|
242
246
|
if (!t)
|
|
243
247
|
return null;
|
|
244
248
|
let [n, r] = t[0].replace(/#! ?/, "").split(" "), i = n.split("/").pop();
|
|
@@ -247,45 +251,45 @@ var st = h((bo, it) => {
|
|
|
247
251
|
});
|
|
248
252
|
|
|
249
253
|
// ../../node_modules/cross-spawn/lib/util/readShebang.js
|
|
250
|
-
var
|
|
254
|
+
var ft = h((Po, ut) => {
|
|
251
255
|
"use strict";
|
|
252
|
-
var
|
|
253
|
-
function
|
|
256
|
+
var X = S("fs"), In = ct();
|
|
257
|
+
function Pn(e) {
|
|
254
258
|
let n = Buffer.alloc(150), r;
|
|
255
259
|
try {
|
|
256
|
-
r =
|
|
260
|
+
r = X.openSync(e, "r"), X.readSync(r, n, 0, 150, 0), X.closeSync(r);
|
|
257
261
|
} catch {
|
|
258
262
|
}
|
|
259
|
-
return
|
|
263
|
+
return In(n.toString());
|
|
260
264
|
}
|
|
261
|
-
o(
|
|
262
|
-
|
|
265
|
+
o(Pn, "readShebang");
|
|
266
|
+
ut.exports = Pn;
|
|
263
267
|
});
|
|
264
268
|
|
|
265
269
|
// ../../node_modules/cross-spawn/lib/parse.js
|
|
266
|
-
var
|
|
270
|
+
var mt = h((Co, pt) => {
|
|
267
271
|
"use strict";
|
|
268
|
-
var An = S("path"),
|
|
269
|
-
function
|
|
270
|
-
e.file =
|
|
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);
|
|
271
275
|
let t = e.file && Cn(e.file);
|
|
272
|
-
return t ? (e.args.unshift(e.file), e.command = t,
|
|
276
|
+
return t ? (e.args.unshift(e.file), e.command = t, lt(e)) : e.file;
|
|
273
277
|
}
|
|
274
|
-
o(
|
|
275
|
-
function
|
|
276
|
-
if (!
|
|
278
|
+
o(Gn, "detectShebang");
|
|
279
|
+
function kn(e) {
|
|
280
|
+
if (!vn)
|
|
277
281
|
return e;
|
|
278
|
-
let t =
|
|
282
|
+
let t = Gn(e), n = !On.test(t);
|
|
279
283
|
if (e.options.forceShell || n) {
|
|
280
|
-
let r =
|
|
281
|
-
e.command = An.normalize(e.command), e.command =
|
|
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));
|
|
282
286
|
let i = [e.command].concat(e.args).join(" ");
|
|
283
287
|
e.args = ["/d", "/s", "/c", `"${i}"`], e.command = process.env.comspec || "cmd.exe", e.options.windowsVerbatimArguments = !0;
|
|
284
288
|
}
|
|
285
289
|
return e;
|
|
286
290
|
}
|
|
287
|
-
o(
|
|
288
|
-
function
|
|
291
|
+
o(kn, "parseNonShell");
|
|
292
|
+
function jn(e, t, n) {
|
|
289
293
|
t && !Array.isArray(t) && (n = t, t = null), t = t ? t.slice(0) : [], n = Object.assign({}, n);
|
|
290
294
|
let r = {
|
|
291
295
|
command: e,
|
|
@@ -297,14 +301,14 @@ var dt = h((Eo, lt) => {
|
|
|
297
301
|
args: t
|
|
298
302
|
}
|
|
299
303
|
};
|
|
300
|
-
return n.shell ? r :
|
|
304
|
+
return n.shell ? r : kn(r);
|
|
301
305
|
}
|
|
302
|
-
o(
|
|
303
|
-
|
|
306
|
+
o(jn, "parse");
|
|
307
|
+
pt.exports = jn;
|
|
304
308
|
});
|
|
305
309
|
|
|
306
310
|
// ../../node_modules/cross-spawn/lib/enoent.js
|
|
307
|
-
var
|
|
311
|
+
var gt = h((Oo, yt) => {
|
|
308
312
|
"use strict";
|
|
309
313
|
var Y = process.platform === "win32";
|
|
310
314
|
function Z(e, t) {
|
|
@@ -323,7 +327,7 @@ var ht = h((Ao, mt) => {
|
|
|
323
327
|
let n = e.emit;
|
|
324
328
|
e.emit = function(r, i) {
|
|
325
329
|
if (r === "exit") {
|
|
326
|
-
let s =
|
|
330
|
+
let s = ht(i, t);
|
|
327
331
|
if (s)
|
|
328
332
|
return n.call(e, "error", s);
|
|
329
333
|
}
|
|
@@ -331,48 +335,48 @@ var ht = h((Ao, mt) => {
|
|
|
331
335
|
};
|
|
332
336
|
}
|
|
333
337
|
o($n, "hookChildProcess");
|
|
334
|
-
function
|
|
338
|
+
function ht(e, t) {
|
|
335
339
|
return Y && e === 1 && !t.file ? Z(t.original, "spawn") : null;
|
|
336
340
|
}
|
|
337
|
-
o(
|
|
338
|
-
function
|
|
341
|
+
o(ht, "verifyENOENT");
|
|
342
|
+
function Ln(e, t) {
|
|
339
343
|
return Y && e === 1 && !t.file ? Z(t.original, "spawnSync") : null;
|
|
340
344
|
}
|
|
341
|
-
o(
|
|
342
|
-
|
|
345
|
+
o(Ln, "verifyENOENTSync");
|
|
346
|
+
yt.exports = {
|
|
343
347
|
hookChildProcess: $n,
|
|
344
|
-
verifyENOENT:
|
|
345
|
-
verifyENOENTSync:
|
|
348
|
+
verifyENOENT: ht,
|
|
349
|
+
verifyENOENTSync: Ln,
|
|
346
350
|
notFoundError: Z
|
|
347
351
|
};
|
|
348
352
|
});
|
|
349
353
|
|
|
350
354
|
// ../../node_modules/cross-spawn/index.js
|
|
351
|
-
var
|
|
355
|
+
var xt = h((Go, E) => {
|
|
352
356
|
"use strict";
|
|
353
|
-
var
|
|
354
|
-
function
|
|
355
|
-
let r = Q(e, t, n), i =
|
|
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);
|
|
356
360
|
return J.hookChildProcess(i, r), i;
|
|
357
361
|
}
|
|
358
|
-
o(
|
|
359
|
-
function
|
|
360
|
-
let r = Q(e, t, n), i =
|
|
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);
|
|
361
365
|
return i.error = i.error || J.verifyENOENTSync(i.status, r), i;
|
|
362
366
|
}
|
|
363
|
-
o(
|
|
364
|
-
E.exports =
|
|
365
|
-
E.exports.spawn =
|
|
366
|
-
E.exports.sync =
|
|
367
|
+
o(Nn, "spawnSync");
|
|
368
|
+
E.exports = bt;
|
|
369
|
+
E.exports.spawn = bt;
|
|
370
|
+
E.exports.sync = Nn;
|
|
367
371
|
E.exports._parse = Q;
|
|
368
372
|
E.exports._enoent = J;
|
|
369
373
|
});
|
|
370
374
|
|
|
371
375
|
// ../../node_modules/merge-stream/index.js
|
|
372
|
-
var
|
|
376
|
+
var Kt = h((rs, Ht) => {
|
|
373
377
|
"use strict";
|
|
374
378
|
var { PassThrough: $r } = S("stream");
|
|
375
|
-
|
|
379
|
+
Ht.exports = function() {
|
|
376
380
|
var e = [], t = new $r({ objectMode: !0 });
|
|
377
381
|
return t.setMaxListeners(0), t.add = n, t.isEmpty = r, t.on("unpipe", i), Array.prototype.slice.call(arguments).forEach(n), t;
|
|
378
382
|
function n(s) {
|
|
@@ -393,10 +397,10 @@ var Wt = h((Qi, qt) => {
|
|
|
393
397
|
});
|
|
394
398
|
|
|
395
399
|
// node_modules/execa/index.js
|
|
396
|
-
var
|
|
397
|
-
import { Buffer as
|
|
398
|
-
import
|
|
399
|
-
import
|
|
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";
|
|
400
404
|
import T from "node:process";
|
|
401
405
|
|
|
402
406
|
// ../../node_modules/strip-final-newline/index.js
|
|
@@ -408,98 +412,98 @@ function ee(e) {
|
|
|
408
412
|
o(ee, "stripFinalNewline");
|
|
409
413
|
|
|
410
414
|
// node_modules/npm-run-path/index.js
|
|
411
|
-
import
|
|
412
|
-
import
|
|
413
|
-
import { fileURLToPath as
|
|
415
|
+
import j from "node:process";
|
|
416
|
+
import I from "node:path";
|
|
417
|
+
import { fileURLToPath as wt } from "node:url";
|
|
414
418
|
|
|
415
419
|
// node_modules/path-key/index.js
|
|
416
|
-
function
|
|
420
|
+
function k(e = {}) {
|
|
417
421
|
let {
|
|
418
422
|
env: t = process.env,
|
|
419
423
|
platform: n = process.platform
|
|
420
424
|
} = e;
|
|
421
425
|
return n !== "win32" ? "PATH" : Object.keys(t).reverse().find((r) => r.toUpperCase() === "PATH") || "Path";
|
|
422
426
|
}
|
|
423
|
-
o(
|
|
427
|
+
o(k, "pathKey");
|
|
424
428
|
|
|
425
429
|
// node_modules/npm-run-path/index.js
|
|
426
|
-
var
|
|
427
|
-
cwd: e =
|
|
428
|
-
path: t =
|
|
430
|
+
var Bn = /* @__PURE__ */ o(({
|
|
431
|
+
cwd: e = j.cwd(),
|
|
432
|
+
path: t = j.env[k()],
|
|
429
433
|
preferLocal: n = !0,
|
|
430
|
-
execPath: r =
|
|
434
|
+
execPath: r = j.execPath,
|
|
431
435
|
addExecPath: i = !0
|
|
432
436
|
} = {}) => {
|
|
433
|
-
let s = e instanceof URL ?
|
|
434
|
-
return n &&
|
|
435
|
-
}, "npmRunPath"),
|
|
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) => {
|
|
436
440
|
let n;
|
|
437
441
|
for (; n !== t; )
|
|
438
|
-
e.push(
|
|
439
|
-
}, "applyPreferLocal"),
|
|
440
|
-
let r = t instanceof URL ?
|
|
441
|
-
e.push(
|
|
442
|
-
}, "applyExecPath"),
|
|
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 } = {}) => {
|
|
443
447
|
e = { ...e };
|
|
444
|
-
let n =
|
|
445
|
-
return t.path = e[n], e[n] =
|
|
448
|
+
let n = k({ env: e });
|
|
449
|
+
return t.path = e[n], e[n] = Bn(t), e;
|
|
446
450
|
}, "npmRunPathEnv");
|
|
447
451
|
|
|
448
452
|
// node_modules/mimic-fn/index.js
|
|
449
|
-
var
|
|
453
|
+
var Fn = /* @__PURE__ */ o((e, t, n, r) => {
|
|
450
454
|
if (n === "length" || n === "prototype" || n === "arguments" || n === "caller")
|
|
451
455
|
return;
|
|
452
456
|
let i = Object.getOwnPropertyDescriptor(e, n), s = Object.getOwnPropertyDescriptor(t, n);
|
|
453
|
-
!
|
|
454
|
-
}, "copyProperty"),
|
|
457
|
+
!_n(i, s) && r || Object.defineProperty(e, n, s);
|
|
458
|
+
}, "copyProperty"), _n = /* @__PURE__ */ o(function(e, t) {
|
|
455
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);
|
|
456
|
-
}, "canCopyProperty"),
|
|
460
|
+
}, "canCopyProperty"), Dn = /* @__PURE__ */ o((e, t) => {
|
|
457
461
|
let n = Object.getPrototypeOf(t);
|
|
458
462
|
n !== Object.getPrototypeOf(e) && Object.setPrototypeOf(e, n);
|
|
459
|
-
}, "changePrototype"),
|
|
460
|
-
${t}`, "wrappedToString"),
|
|
461
|
-
let r = n === "" ? "" : `with ${n.trim()}() `, i =
|
|
462
|
-
Object.defineProperty(i, "name",
|
|
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 });
|
|
463
467
|
}, "changeToString");
|
|
464
468
|
function te(e, t, { ignoreNonConfigurable: n = !1 } = {}) {
|
|
465
469
|
let { name: r } = e;
|
|
466
470
|
for (let i of Reflect.ownKeys(t))
|
|
467
|
-
|
|
468
|
-
return
|
|
471
|
+
Fn(e, t, i, n);
|
|
472
|
+
return Dn(e, t), Hn(e, t, r), e;
|
|
469
473
|
}
|
|
470
474
|
o(te, "mimicFunction");
|
|
471
475
|
|
|
472
476
|
// node_modules/onetime/index.js
|
|
473
|
-
var
|
|
477
|
+
var $ = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ o((e, t = {}) => {
|
|
474
478
|
if (typeof e != "function")
|
|
475
479
|
throw new TypeError("Expected a function");
|
|
476
480
|
let n, r = 0, i = e.displayName || e.name || "<anonymous>", s = /* @__PURE__ */ o(function(...a) {
|
|
477
|
-
if (
|
|
481
|
+
if ($.set(s, ++r), r === 1)
|
|
478
482
|
n = e.apply(this, a), e = null;
|
|
479
483
|
else if (t.throw === !0)
|
|
480
484
|
throw new Error(`Function \`${i}\` can only be called once`);
|
|
481
485
|
return n;
|
|
482
486
|
}, "onetime");
|
|
483
|
-
return te(s, e),
|
|
487
|
+
return te(s, e), $.set(s, r), s;
|
|
484
488
|
}, "onetime");
|
|
485
|
-
|
|
486
|
-
if (
|
|
489
|
+
Tt.callCount = (e) => {
|
|
490
|
+
if (!$.has(e))
|
|
487
491
|
throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);
|
|
488
|
-
return
|
|
492
|
+
return $.get(e);
|
|
489
493
|
};
|
|
490
|
-
var
|
|
494
|
+
var It = Tt;
|
|
491
495
|
|
|
492
496
|
// node_modules/execa/lib/error.js
|
|
493
|
-
import
|
|
497
|
+
import nr from "node:process";
|
|
494
498
|
|
|
495
499
|
// node_modules/human-signals/build/src/main.js
|
|
496
|
-
import { constants as
|
|
500
|
+
import { constants as Yn } from "node:os";
|
|
497
501
|
|
|
498
502
|
// node_modules/human-signals/build/src/realtime.js
|
|
499
|
-
var
|
|
503
|
+
var Pt = /* @__PURE__ */ o(() => {
|
|
500
504
|
let e = ne - At + 1;
|
|
501
|
-
return Array.from({ length: e },
|
|
502
|
-
}, "getRealtimeSignals"),
|
|
505
|
+
return Array.from({ length: e }, Kn);
|
|
506
|
+
}, "getRealtimeSignals"), Kn = /* @__PURE__ */ o((e, t) => ({
|
|
503
507
|
name: `SIGRT${t + 1}`,
|
|
504
508
|
number: At + t,
|
|
505
509
|
action: "terminate",
|
|
@@ -508,7 +512,7 @@ var Tt = /* @__PURE__ */ o(() => {
|
|
|
508
512
|
}), "getRealtimeSignal"), At = 34, ne = 64;
|
|
509
513
|
|
|
510
514
|
// node_modules/human-signals/build/src/signals.js
|
|
511
|
-
import { constants as
|
|
515
|
+
import { constants as Vn } from "node:os";
|
|
512
516
|
|
|
513
517
|
// node_modules/human-signals/build/src/core.js
|
|
514
518
|
var Ct = [
|
|
@@ -785,9 +789,9 @@ var Ct = [
|
|
|
785
789
|
|
|
786
790
|
// node_modules/human-signals/build/src/signals.js
|
|
787
791
|
var re = /* @__PURE__ */ o(() => {
|
|
788
|
-
let e =
|
|
789
|
-
return [...Ct, ...e].map(
|
|
790
|
-
}, "getSignals"),
|
|
792
|
+
let e = Pt();
|
|
793
|
+
return [...Ct, ...e].map(Xn);
|
|
794
|
+
}, "getSignals"), Xn = /* @__PURE__ */ o(({
|
|
791
795
|
name: e,
|
|
792
796
|
number: t,
|
|
793
797
|
description: n,
|
|
@@ -797,15 +801,15 @@ var re = /* @__PURE__ */ o(() => {
|
|
|
797
801
|
}) => {
|
|
798
802
|
let {
|
|
799
803
|
signals: { [e]: a }
|
|
800
|
-
} =
|
|
804
|
+
} = Vn, c = a !== void 0;
|
|
801
805
|
return { name: e, number: c ? a : t, description: n, supported: c, action: r, forced: i, standard: s };
|
|
802
806
|
}, "normalizeSignal");
|
|
803
807
|
|
|
804
808
|
// node_modules/human-signals/build/src/main.js
|
|
805
|
-
var
|
|
809
|
+
var Zn = /* @__PURE__ */ o(() => {
|
|
806
810
|
let e = re();
|
|
807
|
-
return Object.fromEntries(e.map(
|
|
808
|
-
}, "getSignalsByName"),
|
|
811
|
+
return Object.fromEntries(e.map(Qn));
|
|
812
|
+
}, "getSignalsByName"), Qn = /* @__PURE__ */ o(({
|
|
809
813
|
name: e,
|
|
810
814
|
number: t,
|
|
811
815
|
description: n,
|
|
@@ -813,14 +817,14 @@ var Vn = /* @__PURE__ */ o(() => {
|
|
|
813
817
|
action: i,
|
|
814
818
|
forced: s,
|
|
815
819
|
standard: a
|
|
816
|
-
}) => [e, { name: e, number: t, description: n, supported: r, action: i, forced: s, standard: a }], "getSignalByName"),
|
|
820
|
+
}) => [e, { name: e, number: t, description: n, supported: r, action: i, forced: s, standard: a }], "getSignalByName"), vt = Zn(), Jn = /* @__PURE__ */ o(() => {
|
|
817
821
|
let e = re(), t = ne + 1, n = Array.from(
|
|
818
822
|
{ length: t },
|
|
819
|
-
(r, i) =>
|
|
823
|
+
(r, i) => er(i, e)
|
|
820
824
|
);
|
|
821
825
|
return Object.assign({}, ...n);
|
|
822
|
-
}, "getSignalsByNumber"),
|
|
823
|
-
let n =
|
|
826
|
+
}, "getSignalsByNumber"), er = /* @__PURE__ */ o((e, t) => {
|
|
827
|
+
let n = tr(e, t);
|
|
824
828
|
if (n === void 0)
|
|
825
829
|
return {};
|
|
826
830
|
let { name: r, description: i, supported: s, action: a, forced: c, standard: u } = n;
|
|
@@ -835,13 +839,13 @@ var Vn = /* @__PURE__ */ o(() => {
|
|
|
835
839
|
standard: u
|
|
836
840
|
}
|
|
837
841
|
};
|
|
838
|
-
}, "getSignalByNumber"),
|
|
839
|
-
let n = t.find(({ name: r }) =>
|
|
842
|
+
}, "getSignalByNumber"), tr = /* @__PURE__ */ o((e, t) => {
|
|
843
|
+
let n = t.find(({ name: r }) => Yn.signals[r] === e);
|
|
840
844
|
return n !== void 0 ? n : t.find((r) => r.number === e);
|
|
841
|
-
}, "findSignalByNumber"),
|
|
845
|
+
}, "findSignalByNumber"), ii = Jn();
|
|
842
846
|
|
|
843
847
|
// node_modules/execa/lib/error.js
|
|
844
|
-
var
|
|
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(({
|
|
845
849
|
stdout: e,
|
|
846
850
|
stderr: t,
|
|
847
851
|
all: n,
|
|
@@ -853,37 +857,37 @@ var tr = /* @__PURE__ */ o(({ timedOut: e, timeout: t, errorCode: n, signal: r,
|
|
|
853
857
|
timedOut: u,
|
|
854
858
|
isCanceled: f,
|
|
855
859
|
killed: l,
|
|
856
|
-
parsed: { options: { timeout: p, cwd: d =
|
|
860
|
+
parsed: { options: { timeout: p, cwd: d = nr.cwd() } }
|
|
857
861
|
}) => {
|
|
858
862
|
s = s === null ? void 0 : s, i = i === null ? void 0 : i;
|
|
859
|
-
let y = i === void 0 ? void 0 :
|
|
860
|
-
${r.message}` : x,
|
|
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(`
|
|
861
865
|
`);
|
|
862
|
-
return v ? (r.originalMessage = r.message, r.message =
|
|
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;
|
|
863
867
|
}, "makeError");
|
|
864
868
|
|
|
865
869
|
// node_modules/execa/lib/stdio.js
|
|
866
|
-
var
|
|
870
|
+
var L = ["stdin", "stdout", "stderr"], or = /* @__PURE__ */ o((e) => L.some((t) => e[t] !== void 0), "hasAlias"), oe = /* @__PURE__ */ o((e) => {
|
|
867
871
|
if (!e)
|
|
868
872
|
return;
|
|
869
873
|
let { stdio: t } = e;
|
|
870
874
|
if (t === void 0)
|
|
871
|
-
return
|
|
872
|
-
if (
|
|
873
|
-
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${
|
|
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(", ")}`);
|
|
874
878
|
if (typeof t == "string")
|
|
875
879
|
return t;
|
|
876
880
|
if (!Array.isArray(t))
|
|
877
881
|
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);
|
|
878
|
-
let n = Math.max(t.length,
|
|
882
|
+
let n = Math.max(t.length, L.length);
|
|
879
883
|
return Array.from({ length: n }, (r, i) => t[i]);
|
|
880
|
-
}, "normalizeStdio"),
|
|
884
|
+
}, "normalizeStdio"), Ot = /* @__PURE__ */ o((e) => {
|
|
881
885
|
let t = oe(e);
|
|
882
886
|
return t === "ipc" ? "ipc" : t === void 0 || typeof t == "string" ? [t, t, t, "ipc"] : t.includes("ipc") ? t : [...t, "ipc"];
|
|
883
887
|
}, "normalizeStdioNode");
|
|
884
888
|
|
|
885
889
|
// node_modules/execa/lib/kill.js
|
|
886
|
-
import
|
|
890
|
+
import ar from "node:os";
|
|
887
891
|
|
|
888
892
|
// node_modules/signal-exit/dist/mjs/signals.js
|
|
889
893
|
var b = [];
|
|
@@ -906,7 +910,7 @@ process.platform !== "win32" && b.push(
|
|
|
906
910
|
process.platform === "linux" && b.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
|
|
907
911
|
|
|
908
912
|
// node_modules/signal-exit/dist/mjs/index.js
|
|
909
|
-
var
|
|
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 {
|
|
910
914
|
static {
|
|
911
915
|
o(this, "Emitter");
|
|
912
916
|
}
|
|
@@ -923,7 +927,7 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
923
927
|
constructor() {
|
|
924
928
|
if (se[ie])
|
|
925
929
|
return se[ie];
|
|
926
|
-
|
|
930
|
+
ir(se, ie, {
|
|
927
931
|
value: this,
|
|
928
932
|
writable: !1,
|
|
929
933
|
enumerable: !1,
|
|
@@ -946,11 +950,11 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
946
950
|
i = s(n, r) === !0 || i;
|
|
947
951
|
return t === "exit" && (i = this.emit("afterExit", n, r) || i), i;
|
|
948
952
|
}
|
|
949
|
-
},
|
|
953
|
+
}, B = class {
|
|
950
954
|
static {
|
|
951
955
|
o(this, "SignalExitBase");
|
|
952
956
|
}
|
|
953
|
-
},
|
|
957
|
+
}, sr = /* @__PURE__ */ o((e) => ({
|
|
954
958
|
onExit(t, n) {
|
|
955
959
|
return e.onExit(t, n);
|
|
956
960
|
},
|
|
@@ -960,7 +964,7 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
960
964
|
unload() {
|
|
961
965
|
return e.unload();
|
|
962
966
|
}
|
|
963
|
-
}), "signalExitWrap"), ce = class extends
|
|
967
|
+
}), "signalExitWrap"), ce = class extends B {
|
|
964
968
|
static {
|
|
965
969
|
o(this, "SignalExitFallback");
|
|
966
970
|
}
|
|
@@ -972,7 +976,7 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
972
976
|
}
|
|
973
977
|
unload() {
|
|
974
978
|
}
|
|
975
|
-
}, ue = class extends
|
|
979
|
+
}, ue = class extends B {
|
|
976
980
|
static {
|
|
977
981
|
o(this, "SignalExit");
|
|
978
982
|
}
|
|
@@ -1001,7 +1005,7 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
1001
1005
|
this.#i = t.reallyExit, this.#o = t.emit;
|
|
1002
1006
|
}
|
|
1003
1007
|
onExit(t, n) {
|
|
1004
|
-
if (!
|
|
1008
|
+
if (!N(this.#e))
|
|
1005
1009
|
return () => {
|
|
1006
1010
|
};
|
|
1007
1011
|
this.#n === !1 && this.load();
|
|
@@ -1034,11 +1038,11 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
1034
1038
|
}), this.#e.emit = this.#o, this.#e.reallyExit = this.#i, this.#t.count -= 1);
|
|
1035
1039
|
}
|
|
1036
1040
|
#a(t) {
|
|
1037
|
-
return
|
|
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;
|
|
1038
1042
|
}
|
|
1039
1043
|
#c(t, ...n) {
|
|
1040
1044
|
let r = this.#o;
|
|
1041
|
-
if (t === "exit" &&
|
|
1045
|
+
if (t === "exit" && N(this.#e)) {
|
|
1042
1046
|
typeof n[0] == "number" && (this.#e.exitCode = n[0]);
|
|
1043
1047
|
let i = r.call(this.#e, t, ...n);
|
|
1044
1048
|
return this.#t.emit("exit", this.#e.exitCode, null), i;
|
|
@@ -1055,7 +1059,7 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
1055
1059
|
*
|
|
1056
1060
|
* Returns a function that may be used to unload signal-exit.
|
|
1057
1061
|
*/
|
|
1058
|
-
onExit:
|
|
1062
|
+
onExit: Rt,
|
|
1059
1063
|
/**
|
|
1060
1064
|
* Load the listeners. Likely you never need to call this, unless
|
|
1061
1065
|
* doing a rather deep integration with signal-exit functionality.
|
|
@@ -1063,7 +1067,7 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
1063
1067
|
*
|
|
1064
1068
|
* @internal
|
|
1065
1069
|
*/
|
|
1066
|
-
load:
|
|
1070
|
+
load: yi,
|
|
1067
1071
|
/**
|
|
1068
1072
|
* Unload the listeners. Likely you never need to call this, unless
|
|
1069
1073
|
* doing a rather deep integration with signal-exit functionality.
|
|
@@ -1071,36 +1075,36 @@ var B = /* @__PURE__ */ o((e) => !!e && typeof e == "object" && typeof e.removeL
|
|
|
1071
1075
|
*
|
|
1072
1076
|
* @internal
|
|
1073
1077
|
*/
|
|
1074
|
-
unload:
|
|
1075
|
-
} =
|
|
1078
|
+
unload: gi
|
|
1079
|
+
} = sr(N(fe) ? new ue(fe) : new ce());
|
|
1076
1080
|
|
|
1077
1081
|
// node_modules/execa/lib/kill.js
|
|
1078
|
-
var
|
|
1082
|
+
var cr = 1e3 * 5, Gt = /* @__PURE__ */ o((e, t = "SIGTERM", n = {}) => {
|
|
1079
1083
|
let r = e(t);
|
|
1080
|
-
return
|
|
1081
|
-
}, "spawnedKill"),
|
|
1082
|
-
if (!
|
|
1084
|
+
return ur(e, t, n, r), r;
|
|
1085
|
+
}, "spawnedKill"), ur = /* @__PURE__ */ o((e, t, n, r) => {
|
|
1086
|
+
if (!fr(t, n, r))
|
|
1083
1087
|
return;
|
|
1084
|
-
let i =
|
|
1088
|
+
let i = dr(n), s = setTimeout(() => {
|
|
1085
1089
|
e("SIGKILL");
|
|
1086
1090
|
}, i);
|
|
1087
1091
|
s.unref && s.unref();
|
|
1088
|
-
}, "setKillTimeout"),
|
|
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 }) => {
|
|
1089
1093
|
if (e === !0)
|
|
1090
|
-
return
|
|
1094
|
+
return cr;
|
|
1091
1095
|
if (!Number.isFinite(e) || e < 0)
|
|
1092
1096
|
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);
|
|
1093
1097
|
return e;
|
|
1094
|
-
}, "getForceKillAfterTimeout"),
|
|
1098
|
+
}, "getForceKillAfterTimeout"), kt = /* @__PURE__ */ o((e, t) => {
|
|
1095
1099
|
e.kill() && (t.isCanceled = !0);
|
|
1096
|
-
}, "spawnedCancel"),
|
|
1100
|
+
}, "spawnedCancel"), pr = /* @__PURE__ */ o((e, t, n) => {
|
|
1097
1101
|
e.kill(t), n(Object.assign(new Error("Timed out"), { timedOut: !0, signal: t }));
|
|
1098
|
-
}, "timeoutKill"),
|
|
1102
|
+
}, "timeoutKill"), jt = /* @__PURE__ */ o((e, { timeout: t, killSignal: n = "SIGTERM" }, r) => {
|
|
1099
1103
|
if (t === 0 || t === void 0)
|
|
1100
1104
|
return r;
|
|
1101
1105
|
let i, s = new Promise((c, u) => {
|
|
1102
1106
|
i = setTimeout(() => {
|
|
1103
|
-
|
|
1107
|
+
pr(e, n, u);
|
|
1104
1108
|
}, t);
|
|
1105
1109
|
}), a = r.finally(() => {
|
|
1106
1110
|
clearTimeout(i);
|
|
@@ -1109,10 +1113,10 @@ var sr = 1e3 * 5, Ot = /* @__PURE__ */ o((e, t = "SIGTERM", n = {}) => {
|
|
|
1109
1113
|
}, "setupTimeout"), $t = /* @__PURE__ */ o(({ timeout: e }) => {
|
|
1110
1114
|
if (e !== void 0 && (!Number.isFinite(e) || e < 0))
|
|
1111
1115
|
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);
|
|
1112
|
-
}, "validateTimeout"),
|
|
1116
|
+
}, "validateTimeout"), Lt = /* @__PURE__ */ o(async (e, { cleanup: t, detached: n }, r) => {
|
|
1113
1117
|
if (!t || n)
|
|
1114
1118
|
return r;
|
|
1115
|
-
let i =
|
|
1119
|
+
let i = Rt(() => {
|
|
1116
1120
|
e.kill();
|
|
1117
1121
|
});
|
|
1118
1122
|
return r.finally(() => {
|
|
@@ -1121,67 +1125,67 @@ var sr = 1e3 * 5, Ot = /* @__PURE__ */ o((e, t = "SIGTERM", n = {}) => {
|
|
|
1121
1125
|
}, "setExitHandler");
|
|
1122
1126
|
|
|
1123
1127
|
// node_modules/execa/lib/pipe.js
|
|
1124
|
-
import { createWriteStream as
|
|
1125
|
-
import { ChildProcess as
|
|
1128
|
+
import { createWriteStream as mr } from "node:fs";
|
|
1129
|
+
import { ChildProcess as hr } from "node:child_process";
|
|
1126
1130
|
|
|
1127
1131
|
// node_modules/is-stream/index.js
|
|
1128
|
-
function
|
|
1132
|
+
function M(e) {
|
|
1129
1133
|
return e !== null && typeof e == "object" && typeof e.pipe == "function";
|
|
1130
1134
|
}
|
|
1131
|
-
o(
|
|
1135
|
+
o(M, "isStream");
|
|
1132
1136
|
function le(e) {
|
|
1133
|
-
return
|
|
1137
|
+
return M(e) && e.writable !== !1 && typeof e._write == "function" && typeof e._writableState == "object";
|
|
1134
1138
|
}
|
|
1135
1139
|
o(le, "isWritableStream");
|
|
1136
1140
|
|
|
1137
1141
|
// node_modules/execa/lib/pipe.js
|
|
1138
|
-
var
|
|
1142
|
+
var yr = /* @__PURE__ */ o((e) => e instanceof hr && typeof e.then == "function", "isExecaChildProcess"), de = /* @__PURE__ */ o((e, t, n) => {
|
|
1139
1143
|
if (typeof n == "string")
|
|
1140
|
-
return e[t].pipe(
|
|
1144
|
+
return e[t].pipe(mr(n)), e;
|
|
1141
1145
|
if (le(n))
|
|
1142
1146
|
return e[t].pipe(n), e;
|
|
1143
|
-
if (!
|
|
1147
|
+
if (!yr(n))
|
|
1144
1148
|
throw new TypeError("The second argument must be a string, a stream or an Execa child process.");
|
|
1145
1149
|
if (!le(n.stdin))
|
|
1146
1150
|
throw new TypeError("The target child process's stdin must be available.");
|
|
1147
1151
|
return e[t].pipe(n.stdin), n;
|
|
1148
|
-
}, "pipeToTarget"),
|
|
1152
|
+
}, "pipeToTarget"), Nt = /* @__PURE__ */ o((e) => {
|
|
1149
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"));
|
|
1150
1154
|
}, "addPipeMethods");
|
|
1151
1155
|
|
|
1152
1156
|
// node_modules/execa/lib/stream.js
|
|
1153
|
-
import { createReadStream as
|
|
1154
|
-
import { setTimeout as
|
|
1157
|
+
import { createReadStream as Lr, readFileSync as Nr } from "node:fs";
|
|
1158
|
+
import { setTimeout as Br } from "node:timers/promises";
|
|
1155
1159
|
|
|
1156
1160
|
// node_modules/get-stream/source/contents.js
|
|
1157
|
-
var
|
|
1158
|
-
if (!
|
|
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))
|
|
1159
1163
|
throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
|
|
1160
1164
|
let f = t();
|
|
1161
1165
|
f.length = 0;
|
|
1162
1166
|
try {
|
|
1163
1167
|
for await (let l of e) {
|
|
1164
|
-
let p =
|
|
1165
|
-
|
|
1168
|
+
let p = br(l), d = n[p](l, f);
|
|
1169
|
+
Ut({ convertedChunk: d, state: f, getSize: r, truncateChunk: i, addChunk: s, maxBuffer: u });
|
|
1166
1170
|
}
|
|
1167
|
-
return
|
|
1171
|
+
return gr({ state: f, convertChunk: n, getSize: r, truncateChunk: i, addChunk: s, getFinalChunk: a, maxBuffer: u }), c(f);
|
|
1168
1172
|
} catch (l) {
|
|
1169
1173
|
throw l.bufferedData = c(f), l;
|
|
1170
1174
|
}
|
|
1171
|
-
}, "getStreamContents"),
|
|
1175
|
+
}, "getStreamContents"), gr = /* @__PURE__ */ o(({ state: e, getSize: t, truncateChunk: n, addChunk: r, getFinalChunk: i, maxBuffer: s }) => {
|
|
1172
1176
|
let a = i(e);
|
|
1173
|
-
a !== void 0 &&
|
|
1174
|
-
}, "appendFinalChunk"),
|
|
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 }) => {
|
|
1175
1179
|
let a = n(e), c = t.length + a;
|
|
1176
1180
|
if (c <= s) {
|
|
1177
|
-
|
|
1181
|
+
Bt(e, t, i, c);
|
|
1178
1182
|
return;
|
|
1179
1183
|
}
|
|
1180
1184
|
let u = r(e, s - t.length);
|
|
1181
|
-
throw u !== void 0 &&
|
|
1182
|
-
}, "appendChunk"),
|
|
1185
|
+
throw u !== void 0 && Bt(u, t, i, s), new U();
|
|
1186
|
+
}, "appendChunk"), Bt = /* @__PURE__ */ o((e, t, n, r) => {
|
|
1183
1187
|
t.contents = n(e, t, r), t.length = r;
|
|
1184
|
-
}, "addNewChunk"),
|
|
1188
|
+
}, "addNewChunk"), Sr = /* @__PURE__ */ o((e) => typeof e == "object" && e !== null && typeof e[Symbol.asyncIterator] == "function", "isAsyncIterable"), br = /* @__PURE__ */ o((e) => {
|
|
1185
1189
|
let t = typeof e;
|
|
1186
1190
|
if (t === "string")
|
|
1187
1191
|
return "string";
|
|
@@ -1189,9 +1193,9 @@ var I = /* @__PURE__ */ o(async (e, { init: t, convertChunk: n, getSize: r, trun
|
|
|
1189
1193
|
return "others";
|
|
1190
1194
|
if (globalThis.Buffer?.isBuffer(e))
|
|
1191
1195
|
return "buffer";
|
|
1192
|
-
let n =
|
|
1193
|
-
return n === "[object ArrayBuffer]" ? "arrayBuffer" : n === "[object DataView]" ? "dataView" : Number.isInteger(e.byteLength) && Number.isInteger(e.byteOffset) &&
|
|
1194
|
-
}, "getChunkType"), { toString:
|
|
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 {
|
|
1195
1199
|
static {
|
|
1196
1200
|
o(this, "MaxBufferError");
|
|
1197
1201
|
}
|
|
@@ -1203,41 +1207,41 @@ var I = /* @__PURE__ */ o(async (e, { init: t, convertChunk: n, getSize: r, trun
|
|
|
1203
1207
|
|
|
1204
1208
|
// node_modules/get-stream/source/utils.js
|
|
1205
1209
|
var pe = /* @__PURE__ */ o((e) => e, "identity"), me = /* @__PURE__ */ o(() => {
|
|
1206
|
-
}, "noop"), he = /* @__PURE__ */ o(({ contents: e }) => e, "getContentsProp"),
|
|
1210
|
+
}, "noop"), he = /* @__PURE__ */ o(({ contents: e }) => e, "getContentsProp"), F = /* @__PURE__ */ o((e) => {
|
|
1207
1211
|
throw new Error(`Streams in object mode are not supported: ${String(e)}`);
|
|
1208
1212
|
}, "throwObjectStream"), _ = /* @__PURE__ */ o((e) => e.length, "getLengthProp");
|
|
1209
1213
|
|
|
1210
1214
|
// node_modules/get-stream/source/array-buffer.js
|
|
1211
1215
|
async function ye(e, t) {
|
|
1212
|
-
return
|
|
1216
|
+
return A(e, vr, t);
|
|
1213
1217
|
}
|
|
1214
1218
|
o(ye, "getStreamAsArrayBuffer");
|
|
1215
|
-
var
|
|
1216
|
-
let i =
|
|
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);
|
|
1217
1221
|
return new Uint8Array(i).set(e, n), i;
|
|
1218
|
-
}, "addArrayBufferChunk"),
|
|
1222
|
+
}, "addArrayBufferChunk"), Pr = /* @__PURE__ */ o((e, t) => {
|
|
1219
1223
|
if (t <= e.byteLength)
|
|
1220
1224
|
return e;
|
|
1221
|
-
let n = new ArrayBuffer(
|
|
1225
|
+
let n = new ArrayBuffer(qt(t));
|
|
1222
1226
|
return new Uint8Array(n).set(new Uint8Array(e), 0), n;
|
|
1223
1227
|
}, "resizeArrayBufferSlow"), Ar = /* @__PURE__ */ o((e, t) => {
|
|
1224
1228
|
if (t <= e.maxByteLength)
|
|
1225
1229
|
return e.resize(t), e;
|
|
1226
|
-
let n = new ArrayBuffer(t, { maxByteLength:
|
|
1230
|
+
let n = new ArrayBuffer(t, { maxByteLength: qt(t) });
|
|
1227
1231
|
return new Uint8Array(n).set(new Uint8Array(e), 0), n;
|
|
1228
|
-
}, "resizeArrayBuffer"),
|
|
1229
|
-
init:
|
|
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,
|
|
1230
1234
|
convertChunk: {
|
|
1231
|
-
string:
|
|
1232
|
-
buffer:
|
|
1233
|
-
arrayBuffer:
|
|
1234
|
-
dataView:
|
|
1235
|
-
typedArray:
|
|
1236
|
-
others:
|
|
1235
|
+
string: wr,
|
|
1236
|
+
buffer: Ft,
|
|
1237
|
+
arrayBuffer: Ft,
|
|
1238
|
+
dataView: _t,
|
|
1239
|
+
typedArray: _t,
|
|
1240
|
+
others: F
|
|
1237
1241
|
},
|
|
1238
1242
|
getSize: _,
|
|
1239
|
-
truncateChunk:
|
|
1240
|
-
addChunk:
|
|
1243
|
+
truncateChunk: Tr,
|
|
1244
|
+
addChunk: Ir,
|
|
1241
1245
|
getFinalChunk: me,
|
|
1242
1246
|
finalize: Cr
|
|
1243
1247
|
};
|
|
@@ -1247,60 +1251,60 @@ async function D(e, t) {
|
|
|
1247
1251
|
if (!("Buffer" in globalThis))
|
|
1248
1252
|
throw new Error("getStreamAsBuffer() is only supported in Node.js");
|
|
1249
1253
|
try {
|
|
1250
|
-
return
|
|
1254
|
+
return Wt(await ye(e, t));
|
|
1251
1255
|
} catch (n) {
|
|
1252
|
-
throw n.bufferedData !== void 0 && (n.bufferedData =
|
|
1256
|
+
throw n.bufferedData !== void 0 && (n.bufferedData = Wt(n.bufferedData)), n;
|
|
1253
1257
|
}
|
|
1254
1258
|
}
|
|
1255
1259
|
o(D, "getStreamAsBuffer");
|
|
1256
|
-
var
|
|
1260
|
+
var Wt = /* @__PURE__ */ o((e) => globalThis.Buffer.from(e), "arrayBufferToNodeBuffer");
|
|
1257
1261
|
|
|
1258
1262
|
// node_modules/get-stream/source/string.js
|
|
1259
1263
|
async function ge(e, t) {
|
|
1260
|
-
return
|
|
1264
|
+
return A(e, jr, t);
|
|
1261
1265
|
}
|
|
1262
1266
|
o(ge, "getStreamAsString");
|
|
1263
|
-
var
|
|
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 }) => {
|
|
1264
1268
|
let t = e.decode();
|
|
1265
1269
|
return t === "" ? void 0 : t;
|
|
1266
|
-
}, "getFinalStringChunk"),
|
|
1267
|
-
init:
|
|
1270
|
+
}, "getFinalStringChunk"), jr = {
|
|
1271
|
+
init: Or,
|
|
1268
1272
|
convertChunk: {
|
|
1269
1273
|
string: pe,
|
|
1270
|
-
buffer:
|
|
1271
|
-
arrayBuffer:
|
|
1272
|
-
dataView:
|
|
1273
|
-
typedArray:
|
|
1274
|
-
others:
|
|
1274
|
+
buffer: q,
|
|
1275
|
+
arrayBuffer: q,
|
|
1276
|
+
dataView: q,
|
|
1277
|
+
typedArray: q,
|
|
1278
|
+
others: F
|
|
1275
1279
|
},
|
|
1276
1280
|
getSize: _,
|
|
1277
|
-
truncateChunk:
|
|
1278
|
-
addChunk:
|
|
1279
|
-
getFinalChunk:
|
|
1281
|
+
truncateChunk: Gr,
|
|
1282
|
+
addChunk: Rr,
|
|
1283
|
+
getFinalChunk: kr,
|
|
1280
1284
|
finalize: he
|
|
1281
1285
|
};
|
|
1282
1286
|
|
|
1283
1287
|
// node_modules/execa/lib/stream.js
|
|
1284
|
-
var
|
|
1285
|
-
var
|
|
1288
|
+
var Vt = Re(Kt(), 1);
|
|
1289
|
+
var Xt = /* @__PURE__ */ o((e) => {
|
|
1286
1290
|
if (e !== void 0)
|
|
1287
1291
|
throw new TypeError("The `input` and `inputFile` options cannot be both set.");
|
|
1288
|
-
}, "validateInputOptions"),
|
|
1289
|
-
let t =
|
|
1290
|
-
if (
|
|
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))
|
|
1291
1295
|
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
1292
1296
|
return t;
|
|
1293
|
-
}, "handleInputSync"),
|
|
1294
|
-
let n =
|
|
1295
|
-
n !== void 0 && (
|
|
1296
|
-
}, "handleInput"),
|
|
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 }) => {
|
|
1297
1301
|
if (!t || !e.stdout && !e.stderr)
|
|
1298
1302
|
return;
|
|
1299
|
-
let n = (0,
|
|
1303
|
+
let n = (0, Vt.default)();
|
|
1300
1304
|
return e.stdout && n.add(e.stdout), e.stderr && n.add(e.stderr), n;
|
|
1301
1305
|
}, "makeAllStream"), Se = /* @__PURE__ */ o(async (e, t) => {
|
|
1302
1306
|
if (!(!e || t === void 0)) {
|
|
1303
|
-
await
|
|
1307
|
+
await Br(0), e.destroy();
|
|
1304
1308
|
try {
|
|
1305
1309
|
return await t;
|
|
1306
1310
|
} catch (n) {
|
|
@@ -1309,8 +1313,8 @@ var Kt = /* @__PURE__ */ o((e) => {
|
|
|
1309
1313
|
}
|
|
1310
1314
|
}, "getBufferedData"), be = /* @__PURE__ */ o((e, { encoding: t, buffer: n, maxBuffer: r }) => {
|
|
1311
1315
|
if (!(!e || !n))
|
|
1312
|
-
return t === "utf8" || t === "utf-8" ? ge(e, { maxBuffer: r }) : t === null || t === "buffer" ? D(e, { maxBuffer: r }) :
|
|
1313
|
-
}, "getStreamPromise"),
|
|
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) => {
|
|
1314
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 });
|
|
1315
1319
|
try {
|
|
1316
1320
|
return await Promise.all([a, c, u, f]);
|
|
@@ -1325,16 +1329,16 @@ var Kt = /* @__PURE__ */ o((e) => {
|
|
|
1325
1329
|
}, "getSpawnedResult");
|
|
1326
1330
|
|
|
1327
1331
|
// node_modules/execa/lib/promise.js
|
|
1328
|
-
var
|
|
1329
|
-
})().constructor.prototype,
|
|
1332
|
+
var _r = (async () => {
|
|
1333
|
+
})().constructor.prototype, Dr = ["then", "catch", "finally"].map((e) => [
|
|
1330
1334
|
e,
|
|
1331
|
-
Reflect.getOwnPropertyDescriptor(
|
|
1335
|
+
Reflect.getOwnPropertyDescriptor(_r, e)
|
|
1332
1336
|
]), xe = /* @__PURE__ */ o((e, t) => {
|
|
1333
|
-
for (let [n, r] of
|
|
1337
|
+
for (let [n, r] of Dr) {
|
|
1334
1338
|
let i = typeof t == "function" ? (...s) => Reflect.apply(r.value, t(), s) : r.value.bind(t);
|
|
1335
1339
|
Reflect.defineProperty(e, n, { ...r, value: i });
|
|
1336
1340
|
}
|
|
1337
|
-
}, "mergePromise"),
|
|
1341
|
+
}, "mergePromise"), en = /* @__PURE__ */ o((e) => new Promise((t, n) => {
|
|
1338
1342
|
e.on("exit", (r, i) => {
|
|
1339
1343
|
t({ exitCode: r, signal: i });
|
|
1340
1344
|
}), e.on("error", (r) => {
|
|
@@ -1345,38 +1349,38 @@ var Fr = (async () => {
|
|
|
1345
1349
|
}), "getSpawnedPromise");
|
|
1346
1350
|
|
|
1347
1351
|
// node_modules/execa/lib/command.js
|
|
1348
|
-
import { Buffer as
|
|
1349
|
-
import { ChildProcess as
|
|
1350
|
-
var
|
|
1351
|
-
var
|
|
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) => {
|
|
1352
1356
|
let t = typeof e;
|
|
1353
1357
|
if (t === "string")
|
|
1354
1358
|
return e;
|
|
1355
1359
|
if (t === "number")
|
|
1356
1360
|
return String(e);
|
|
1357
|
-
if (t === "object" && e !== null && !(e instanceof
|
|
1361
|
+
if (t === "object" && e !== null && !(e instanceof zr) && "stdout" in e) {
|
|
1358
1362
|
let n = typeof e.stdout;
|
|
1359
1363
|
if (n === "string")
|
|
1360
1364
|
return e.stdout;
|
|
1361
|
-
if (
|
|
1365
|
+
if (qr.isBuffer(e.stdout))
|
|
1362
1366
|
return e.stdout.toString();
|
|
1363
1367
|
throw new TypeError(`Unexpected "${n}" stdout in template expression`);
|
|
1364
1368
|
}
|
|
1365
1369
|
throw new TypeError(`Unexpected "${t}" in template expression`);
|
|
1366
|
-
}, "parseExpression"),
|
|
1370
|
+
}, "parseExpression"), nn = /* @__PURE__ */ o((e, t, n) => n || e.length === 0 || t.length === 0 ? [...e, ...t] : [
|
|
1367
1371
|
...e.slice(0, -1),
|
|
1368
1372
|
`${e.at(-1)}${t[0]}`,
|
|
1369
1373
|
...t.slice(1)
|
|
1370
|
-
], "concatTokens"),
|
|
1371
|
-
let s = i ?? e.raw[r], a = s.split(
|
|
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(
|
|
1372
1376
|
n,
|
|
1373
1377
|
a,
|
|
1374
1378
|
s.startsWith(" ")
|
|
1375
1379
|
);
|
|
1376
1380
|
if (r === t.length)
|
|
1377
1381
|
return c;
|
|
1378
|
-
let u = t[r], f = Array.isArray(u) ? u.map((l) =>
|
|
1379
|
-
return
|
|
1382
|
+
let u = t[r], f = Array.isArray(u) ? u.map((l) => tn(l)) : [tn(u)];
|
|
1383
|
+
return nn(
|
|
1380
1384
|
c,
|
|
1381
1385
|
f,
|
|
1382
1386
|
s.endsWith(" ")
|
|
@@ -1384,29 +1388,29 @@ var Jt = /* @__PURE__ */ o((e) => {
|
|
|
1384
1388
|
}, "parseTemplate"), Te = /* @__PURE__ */ o((e, t) => {
|
|
1385
1389
|
let n = [];
|
|
1386
1390
|
for (let [r, i] of e.entries())
|
|
1387
|
-
n =
|
|
1391
|
+
n = Vr({ templates: e, expressions: t, tokens: n, index: r, template: i });
|
|
1388
1392
|
return n;
|
|
1389
1393
|
}, "parseTemplates");
|
|
1390
1394
|
|
|
1391
1395
|
// node_modules/execa/lib/verbose.js
|
|
1392
|
-
import { debuglog as
|
|
1393
|
-
import
|
|
1394
|
-
var
|
|
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(() => {
|
|
1395
1399
|
let e = /* @__PURE__ */ new Date();
|
|
1396
|
-
return `${
|
|
1397
|
-
}, "getTimestamp"),
|
|
1398
|
-
t &&
|
|
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}
|
|
1399
1403
|
`);
|
|
1400
1404
|
}, "logCommand");
|
|
1401
1405
|
|
|
1402
1406
|
// node_modules/execa/index.js
|
|
1403
|
-
var
|
|
1407
|
+
var eo = 1e3 * 1e3 * 100, to = /* @__PURE__ */ o(({ env: e, extendEnv: t, preferLocal: n, localDir: r, execPath: i }) => {
|
|
1404
1408
|
let s = t ? { ...T.env, ...e } : e;
|
|
1405
|
-
return n ?
|
|
1406
|
-
}, "getEnv"),
|
|
1407
|
-
let r =
|
|
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);
|
|
1408
1412
|
return e = r.command, t = r.args, n = r.options, n = {
|
|
1409
|
-
maxBuffer:
|
|
1413
|
+
maxBuffer: eo,
|
|
1410
1414
|
buffer: !0,
|
|
1411
1415
|
stripFinalNewline: !0,
|
|
1412
1416
|
extendEnv: !0,
|
|
@@ -1418,18 +1422,18 @@ var Qr = 1e3 * 1e3 * 100, Jr = /* @__PURE__ */ o(({ env: e, extendEnv: t, prefer
|
|
|
1418
1422
|
cleanup: !0,
|
|
1419
1423
|
all: !1,
|
|
1420
1424
|
windowsHide: !0,
|
|
1421
|
-
verbose:
|
|
1425
|
+
verbose: on,
|
|
1422
1426
|
...n
|
|
1423
|
-
}, n.env =
|
|
1424
|
-
}, "handleArguments"),
|
|
1425
|
-
function
|
|
1426
|
-
let r =
|
|
1427
|
-
|
|
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);
|
|
1428
1432
|
let a;
|
|
1429
1433
|
try {
|
|
1430
|
-
a =
|
|
1434
|
+
a = Pe.spawn(r.file, r.args, r.options);
|
|
1431
1435
|
} catch (y) {
|
|
1432
|
-
let m = new
|
|
1436
|
+
let m = new Pe.ChildProcess(), g = Promise.reject(P({
|
|
1433
1437
|
error: y,
|
|
1434
1438
|
stdout: "",
|
|
1435
1439
|
stderr: "",
|
|
@@ -1443,17 +1447,17 @@ function an(e, t, n) {
|
|
|
1443
1447
|
}));
|
|
1444
1448
|
return xe(m, g), m;
|
|
1445
1449
|
}
|
|
1446
|
-
let c =
|
|
1447
|
-
a.kill =
|
|
1448
|
-
let d =
|
|
1449
|
-
let [{ error: y, exitCode: m, signal: g, timedOut: x }, v, O,
|
|
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);
|
|
1450
1454
|
if (y || m !== 0 || g !== null) {
|
|
1451
|
-
let Oe =
|
|
1455
|
+
let Oe = P({
|
|
1452
1456
|
error: y,
|
|
1453
1457
|
exitCode: m,
|
|
1454
1458
|
signal: g,
|
|
1455
|
-
stdout:
|
|
1456
|
-
stderr:
|
|
1459
|
+
stdout: Ae,
|
|
1460
|
+
stderr: Ce,
|
|
1457
1461
|
all: ve,
|
|
1458
1462
|
command: i,
|
|
1459
1463
|
escapedCommand: s,
|
|
@@ -1470,8 +1474,8 @@ function an(e, t, n) {
|
|
|
1470
1474
|
command: i,
|
|
1471
1475
|
escapedCommand: s,
|
|
1472
1476
|
exitCode: 0,
|
|
1473
|
-
stdout:
|
|
1474
|
-
stderr:
|
|
1477
|
+
stdout: Ae,
|
|
1478
|
+
stderr: Ce,
|
|
1475
1479
|
all: ve,
|
|
1476
1480
|
failed: !1,
|
|
1477
1481
|
timedOut: !1,
|
|
@@ -1479,17 +1483,17 @@ function an(e, t, n) {
|
|
|
1479
1483
|
killed: !1
|
|
1480
1484
|
};
|
|
1481
1485
|
}, "handlePromise"));
|
|
1482
|
-
return
|
|
1486
|
+
return Zt(a, r.options), a.all = Qt(a, r.options), Nt(a), xe(a, d), a;
|
|
1483
1487
|
}
|
|
1484
|
-
o(
|
|
1485
|
-
function
|
|
1486
|
-
let r =
|
|
1487
|
-
|
|
1488
|
-
let a =
|
|
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;
|
|
1489
1493
|
try {
|
|
1490
|
-
c =
|
|
1494
|
+
c = Pe.spawnSync(r.file, r.args, { ...r.options, input: a });
|
|
1491
1495
|
} catch (l) {
|
|
1492
|
-
throw
|
|
1496
|
+
throw P({
|
|
1493
1497
|
error: l,
|
|
1494
1498
|
stdout: "",
|
|
1495
1499
|
stderr: "",
|
|
@@ -1502,9 +1506,9 @@ function eo(e, t, n) {
|
|
|
1502
1506
|
killed: !1
|
|
1503
1507
|
});
|
|
1504
1508
|
}
|
|
1505
|
-
let u =
|
|
1509
|
+
let u = C(r.options, c.stdout, c.error), f = C(r.options, c.stderr, c.error);
|
|
1506
1510
|
if (c.error || c.status !== 0 || c.signal !== null) {
|
|
1507
|
-
let l =
|
|
1511
|
+
let l = P({
|
|
1508
1512
|
stdout: u,
|
|
1509
1513
|
stderr: f,
|
|
1510
1514
|
error: c.error,
|
|
@@ -1533,35 +1537,35 @@ function eo(e, t, n) {
|
|
|
1533
1537
|
killed: !1
|
|
1534
1538
|
};
|
|
1535
1539
|
}
|
|
1536
|
-
o(
|
|
1537
|
-
var
|
|
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 = {}) => ({
|
|
1538
1542
|
preferLocal: !0,
|
|
1539
|
-
...
|
|
1543
|
+
...ro(e),
|
|
1540
1544
|
...e
|
|
1541
1545
|
}), "normalizeScriptOptions");
|
|
1542
|
-
function
|
|
1546
|
+
function fn(e) {
|
|
1543
1547
|
function t(n, ...r) {
|
|
1544
1548
|
if (!Array.isArray(n))
|
|
1545
|
-
return
|
|
1549
|
+
return fn({ ...e, ...n });
|
|
1546
1550
|
let [i, ...s] = Te(n, r);
|
|
1547
|
-
return
|
|
1551
|
+
return un(i, s, sn(e));
|
|
1548
1552
|
}
|
|
1549
1553
|
return o(t, "$"), t.sync = (n, ...r) => {
|
|
1550
1554
|
if (!Array.isArray(n))
|
|
1551
1555
|
throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");
|
|
1552
1556
|
let [i, ...s] = Te(n, r);
|
|
1553
|
-
return
|
|
1557
|
+
return no(i, s, sn(e));
|
|
1554
1558
|
}, t;
|
|
1555
1559
|
}
|
|
1556
|
-
o(
|
|
1557
|
-
var
|
|
1558
|
-
function
|
|
1560
|
+
o(fn, "create$");
|
|
1561
|
+
var Bs = fn();
|
|
1562
|
+
function Ms(e, t, n = {}) {
|
|
1559
1563
|
t && !Array.isArray(t) && typeof t == "object" && (n = t, t = []);
|
|
1560
|
-
let r =
|
|
1564
|
+
let r = Ot(n), i = T.execArgv.filter((c) => !c.startsWith("--inspect")), {
|
|
1561
1565
|
nodePath: s = T.execPath,
|
|
1562
1566
|
nodeOptions: a = i
|
|
1563
1567
|
} = n;
|
|
1564
|
-
return
|
|
1568
|
+
return un(
|
|
1565
1569
|
s,
|
|
1566
1570
|
[
|
|
1567
1571
|
...a,
|
|
@@ -1578,9 +1582,17 @@ function Ns(e, t, n = {}) {
|
|
|
1578
1582
|
}
|
|
1579
1583
|
);
|
|
1580
1584
|
}
|
|
1581
|
-
o(
|
|
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");
|
|
1582
1592
|
|
|
1583
1593
|
export {
|
|
1584
|
-
|
|
1585
|
-
|
|
1594
|
+
un as a,
|
|
1595
|
+
Ms as b,
|
|
1596
|
+
so as c,
|
|
1597
|
+
qs as d
|
|
1586
1598
|
};
|