@teams-max/mwsp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +3 -0
  2. package/bin/mwsp.js +36 -0
  3. package/es/cli/build.d.ts +2 -0
  4. package/es/cli/build.js +82 -0
  5. package/es/cli/cli.d.ts +1 -0
  6. package/es/cli/cli.js +42 -0
  7. package/es/cli/dev.d.ts +1 -0
  8. package/es/cli/dev.js +44 -0
  9. package/es/cli/start.d.ts +2 -0
  10. package/es/cli/start.js +46 -0
  11. package/es/cli/update.d.ts +2 -0
  12. package/es/cli/update.js +38 -0
  13. package/es/index.d.ts +1 -0
  14. package/es/index.js +1 -0
  15. package/es/internal/buildNotify.d.ts +10 -0
  16. package/es/internal/buildNotify.js +123 -0
  17. package/es/internal/cross-spawn/LICENSE +21 -0
  18. package/es/internal/cross-spawn/index.d.ts +39 -0
  19. package/es/internal/cross-spawn/index.js +512 -0
  20. package/es/internal/cross-spawn/package.json +1 -0
  21. package/es/internal/datetimeFormat.d.ts +9 -0
  22. package/es/internal/datetimeFormat.js +96 -0
  23. package/es/internal/exec.d.ts +1 -0
  24. package/es/internal/exec.js +27 -0
  25. package/es/internal/execa/LICENSE +9 -0
  26. package/es/internal/execa/index.d.ts +534 -0
  27. package/es/internal/execa/index.js +1870 -0
  28. package/es/internal/execa/package.json +1 -0
  29. package/es/internal/merge-stream/LICENSE +21 -0
  30. package/es/internal/merge-stream/index.d.ts +19 -0
  31. package/es/internal/merge-stream/index.js +68 -0
  32. package/es/internal/merge-stream/package.json +1 -0
  33. package/es/internal/utils.d.ts +14 -0
  34. package/es/internal/utils.js +90 -0
  35. package/lib/cli/build.d.ts +2 -0
  36. package/lib/cli/build.js +84 -0
  37. package/lib/cli/cli.d.ts +1 -0
  38. package/lib/cli/cli.js +60 -0
  39. package/lib/cli/dev.d.ts +1 -0
  40. package/lib/cli/dev.js +62 -0
  41. package/lib/cli/start.d.ts +2 -0
  42. package/lib/cli/start.js +59 -0
  43. package/lib/cli/update.d.ts +2 -0
  44. package/lib/cli/update.js +50 -0
  45. package/lib/index.d.ts +1 -0
  46. package/lib/index.js +29 -0
  47. package/lib/internal/buildNotify.d.ts +10 -0
  48. package/lib/internal/buildNotify.js +112 -0
  49. package/lib/internal/cross-spawn/LICENSE +21 -0
  50. package/lib/internal/cross-spawn/index.d.ts +39 -0
  51. package/lib/internal/cross-spawn/index.js +465 -0
  52. package/lib/internal/cross-spawn/package.json +1 -0
  53. package/lib/internal/datetimeFormat.d.ts +9 -0
  54. package/lib/internal/datetimeFormat.js +106 -0
  55. package/lib/internal/exec.d.ts +1 -0
  56. package/lib/internal/exec.js +60 -0
  57. package/lib/internal/execa/LICENSE +9 -0
  58. package/lib/internal/execa/index.d.ts +534 -0
  59. package/lib/internal/execa/index.js +1579 -0
  60. package/lib/internal/execa/package.json +1 -0
  61. package/lib/internal/merge-stream/LICENSE +21 -0
  62. package/lib/internal/merge-stream/index.d.ts +19 -0
  63. package/lib/internal/merge-stream/index.js +62 -0
  64. package/lib/internal/merge-stream/package.json +1 -0
  65. package/lib/internal/utils.d.ts +14 -0
  66. package/lib/internal/utils.js +100 -0
  67. package/package.json +44 -0
@@ -0,0 +1,1579 @@
1
+ // src/internal/execa/index.js
2
+ module.exports = (() => {
3
+ var e = {
4
+ 205: (e2, t2, r) => {
5
+ var n = r(223);
6
+ var o = function() {
7
+ };
8
+ var i = function(e3) {
9
+ return e3.setHeader && typeof e3.abort === "function";
10
+ };
11
+ var s = function(e3) {
12
+ return e3.stdio && Array.isArray(e3.stdio) && e3.stdio.length === 3;
13
+ };
14
+ var a = function(e3, t3, r2) {
15
+ if (typeof t3 === "function")
16
+ return a(e3, null, t3);
17
+ if (!t3)
18
+ t3 = {};
19
+ r2 = n(r2 || o);
20
+ var c = e3._writableState;
21
+ var u = e3._readableState;
22
+ var d = t3.readable || t3.readable !== false && e3.readable;
23
+ var l = t3.writable || t3.writable !== false && e3.writable;
24
+ var f = false;
25
+ var p = function() {
26
+ if (!e3.writable)
27
+ m();
28
+ };
29
+ var m = function() {
30
+ l = false;
31
+ if (!d)
32
+ r2.call(e3);
33
+ };
34
+ var x = function() {
35
+ d = false;
36
+ if (!l)
37
+ r2.call(e3);
38
+ };
39
+ var b = function(t4) {
40
+ r2.call(e3, t4 ? new Error("exited with error code: " + t4) : null);
41
+ };
42
+ var g = function(t4) {
43
+ r2.call(e3, t4);
44
+ };
45
+ var v = function() {
46
+ process.nextTick(y);
47
+ };
48
+ var y = function() {
49
+ if (f)
50
+ return;
51
+ if (d && !(u && u.ended && !u.destroyed))
52
+ return r2.call(e3, new Error("premature close"));
53
+ if (l && !(c && c.ended && !c.destroyed))
54
+ return r2.call(e3, new Error("premature close"));
55
+ };
56
+ var h = function() {
57
+ e3.req.on("finish", m);
58
+ };
59
+ if (i(e3)) {
60
+ e3.on("complete", m);
61
+ e3.on("abort", v);
62
+ if (e3.req)
63
+ h();
64
+ else
65
+ e3.on("request", h);
66
+ } else if (l && !c) {
67
+ e3.on("end", p);
68
+ e3.on("close", p);
69
+ }
70
+ if (s(e3))
71
+ e3.on("exit", b);
72
+ e3.on("end", x);
73
+ e3.on("finish", m);
74
+ if (t3.error !== false)
75
+ e3.on("error", g);
76
+ e3.on("close", v);
77
+ return function() {
78
+ f = true;
79
+ e3.removeListener("complete", m);
80
+ e3.removeListener("abort", v);
81
+ e3.removeListener("request", h);
82
+ if (e3.req)
83
+ e3.req.removeListener("finish", m);
84
+ e3.removeListener("end", p);
85
+ e3.removeListener("close", p);
86
+ e3.removeListener("finish", m);
87
+ e3.removeListener("exit", b);
88
+ e3.removeListener("end", x);
89
+ e3.removeListener("error", g);
90
+ e3.removeListener("close", v);
91
+ };
92
+ };
93
+ e2.exports = a;
94
+ },
95
+ 447: (e2, t2, r) => {
96
+ "use strict";
97
+ const n = r(622);
98
+ const o = r(129);
99
+ const i = r(213);
100
+ const s = r(174);
101
+ const a = r(502);
102
+ const c = r(82);
103
+ const u = r(187);
104
+ const d = r(166);
105
+ const { spawnedKill: l, spawnedCancel: f, setupTimeout: p, setExitHandler: m } = r(819);
106
+ const {
107
+ handleInput: x,
108
+ getSpawnedResult: b,
109
+ makeAllStream: g,
110
+ validateInputSync: v
111
+ } = r(592);
112
+ const { mergePromise: y, getSpawnedPromise: h } = r(814);
113
+ const { joinCommand: S, parseCommand: w } = r(286);
114
+ const I = 1e3 * 1e3 * 100;
115
+ const G = ({ env: e3, extendEnv: t3, preferLocal: r2, localDir: n2, execPath: o2 }) => {
116
+ const i2 = t3 ? { ...process.env, ...e3 } : e3;
117
+ if (r2) {
118
+ return a.env({ env: i2, cwd: n2, execPath: o2 });
119
+ }
120
+ return i2;
121
+ };
122
+ const T = (e3, t3, r2 = {}) => {
123
+ const o2 = i._parse(e3, t3, r2);
124
+ e3 = o2.command;
125
+ t3 = o2.args;
126
+ r2 = o2.options;
127
+ r2 = {
128
+ maxBuffer: I,
129
+ buffer: true,
130
+ stripFinalNewline: true,
131
+ extendEnv: true,
132
+ preferLocal: false,
133
+ localDir: r2.cwd || process.cwd(),
134
+ execPath: process.execPath,
135
+ encoding: "utf8",
136
+ reject: true,
137
+ cleanup: true,
138
+ all: false,
139
+ windowsHide: true,
140
+ ...r2
141
+ };
142
+ r2.env = G(r2);
143
+ r2.stdio = d(r2);
144
+ if (process.platform === "win32" && n.basename(e3, ".exe") === "cmd") {
145
+ t3.unshift("/q");
146
+ }
147
+ return { file: e3, args: t3, options: r2, parsed: o2 };
148
+ };
149
+ const E = (e3, t3, r2) => {
150
+ if (typeof t3 !== "string" && !Buffer.isBuffer(t3)) {
151
+ return r2 === void 0 ? void 0 : "";
152
+ }
153
+ if (e3.stripFinalNewline) {
154
+ return s(t3);
155
+ }
156
+ return t3;
157
+ };
158
+ const C = (e3, t3, r2) => {
159
+ const n2 = T(e3, t3, r2);
160
+ const s2 = S(e3, t3);
161
+ let a2;
162
+ try {
163
+ a2 = o.spawn(n2.file, n2.args, n2.options);
164
+ } catch (e4) {
165
+ const t4 = new o.ChildProcess();
166
+ const r3 = Promise.reject(
167
+ u({
168
+ error: e4,
169
+ stdout: "",
170
+ stderr: "",
171
+ all: "",
172
+ command: s2,
173
+ parsed: n2,
174
+ timedOut: false,
175
+ isCanceled: false,
176
+ killed: false
177
+ })
178
+ );
179
+ return y(t4, r3);
180
+ }
181
+ const d2 = h(a2);
182
+ const v2 = p(a2, n2.options, d2);
183
+ const w2 = m(a2, n2.options, v2);
184
+ const I2 = { isCanceled: false };
185
+ a2.kill = l.bind(null, a2.kill.bind(a2));
186
+ a2.cancel = f.bind(null, a2, I2);
187
+ const G2 = async () => {
188
+ const [{ error: e4, exitCode: t4, signal: r3, timedOut: o2 }, i2, c2, d3] = await b(
189
+ a2,
190
+ n2.options,
191
+ w2
192
+ );
193
+ const l2 = E(n2.options, i2);
194
+ const f2 = E(n2.options, c2);
195
+ const p2 = E(n2.options, d3);
196
+ if (e4 || t4 !== 0 || r3 !== null) {
197
+ const i3 = u({
198
+ error: e4,
199
+ exitCode: t4,
200
+ signal: r3,
201
+ stdout: l2,
202
+ stderr: f2,
203
+ all: p2,
204
+ command: s2,
205
+ parsed: n2,
206
+ timedOut: o2,
207
+ isCanceled: I2.isCanceled,
208
+ killed: a2.killed
209
+ });
210
+ if (!n2.options.reject) {
211
+ return i3;
212
+ }
213
+ throw i3;
214
+ }
215
+ return {
216
+ command: s2,
217
+ exitCode: 0,
218
+ stdout: l2,
219
+ stderr: f2,
220
+ all: p2,
221
+ failed: false,
222
+ timedOut: false,
223
+ isCanceled: false,
224
+ killed: false
225
+ };
226
+ };
227
+ const C2 = c(G2);
228
+ i._enoent.hookChildProcess(a2, n2.parsed);
229
+ x(a2, n2.options.input);
230
+ a2.all = g(a2, n2.options);
231
+ return y(a2, C2);
232
+ };
233
+ e2.exports = C;
234
+ e2.exports.sync = (e3, t3, r2) => {
235
+ const n2 = T(e3, t3, r2);
236
+ const i2 = S(e3, t3);
237
+ v(n2.options);
238
+ let s2;
239
+ try {
240
+ s2 = o.spawnSync(n2.file, n2.args, n2.options);
241
+ } catch (e4) {
242
+ throw u({
243
+ error: e4,
244
+ stdout: "",
245
+ stderr: "",
246
+ all: "",
247
+ command: i2,
248
+ parsed: n2,
249
+ timedOut: false,
250
+ isCanceled: false,
251
+ killed: false
252
+ });
253
+ }
254
+ const a2 = E(n2.options, s2.stdout, s2.error);
255
+ const c2 = E(n2.options, s2.stderr, s2.error);
256
+ if (s2.error || s2.status !== 0 || s2.signal !== null) {
257
+ const e4 = u({
258
+ stdout: a2,
259
+ stderr: c2,
260
+ error: s2.error,
261
+ signal: s2.signal,
262
+ exitCode: s2.status,
263
+ command: i2,
264
+ parsed: n2,
265
+ timedOut: s2.error && s2.error.code === "ETIMEDOUT",
266
+ isCanceled: false,
267
+ killed: s2.signal !== null
268
+ });
269
+ if (!n2.options.reject) {
270
+ return e4;
271
+ }
272
+ throw e4;
273
+ }
274
+ return {
275
+ command: i2,
276
+ exitCode: 0,
277
+ stdout: a2,
278
+ stderr: c2,
279
+ failed: false,
280
+ timedOut: false,
281
+ isCanceled: false,
282
+ killed: false
283
+ };
284
+ };
285
+ e2.exports.command = (e3, t3) => {
286
+ const [r2, ...n2] = w(e3);
287
+ return C(r2, n2, t3);
288
+ };
289
+ e2.exports.commandSync = (e3, t3) => {
290
+ const [r2, ...n2] = w(e3);
291
+ return C.sync(r2, n2, t3);
292
+ };
293
+ e2.exports.node = (e3, t3, r2 = {}) => {
294
+ if (t3 && !Array.isArray(t3) && typeof t3 === "object") {
295
+ r2 = t3;
296
+ t3 = [];
297
+ }
298
+ const n2 = d.node(r2);
299
+ const { nodePath: o2 = process.execPath, nodeOptions: i2 = process.execArgv } = r2;
300
+ return C(o2, [...i2, e3, ...Array.isArray(t3) ? t3 : []], {
301
+ ...r2,
302
+ stdin: void 0,
303
+ stdout: void 0,
304
+ stderr: void 0,
305
+ stdio: n2,
306
+ shell: false
307
+ });
308
+ };
309
+ },
310
+ 286: (e2) => {
311
+ "use strict";
312
+ const t2 = / +/g;
313
+ const r = (e3, t3 = []) => {
314
+ if (!Array.isArray(t3)) {
315
+ return e3;
316
+ }
317
+ return [e3, ...t3].join(" ");
318
+ };
319
+ const n = (e3, t3, r2) => {
320
+ if (r2 === 0) {
321
+ return [t3];
322
+ }
323
+ const n2 = e3[e3.length - 1];
324
+ if (n2.endsWith("\\")) {
325
+ return [...e3.slice(0, -1), `${n2.slice(0, -1)} ${t3}`];
326
+ }
327
+ return [...e3, t3];
328
+ };
329
+ const o = (e3) => {
330
+ return e3.trim().split(t2).reduce(n, []);
331
+ };
332
+ e2.exports = { joinCommand: r, parseCommand: o };
333
+ },
334
+ 187: (e2, t2, r) => {
335
+ "use strict";
336
+ const { signalsByName: n } = r(779);
337
+ const o = ({
338
+ timedOut: e3,
339
+ timeout: t3,
340
+ errorCode: r2,
341
+ signal: n2,
342
+ signalDescription: o2,
343
+ exitCode: i2,
344
+ isCanceled: s
345
+ }) => {
346
+ if (e3) {
347
+ return `timed out after ${t3} milliseconds`;
348
+ }
349
+ if (s) {
350
+ return "was canceled";
351
+ }
352
+ if (r2 !== void 0) {
353
+ return `failed with ${r2}`;
354
+ }
355
+ if (n2 !== void 0) {
356
+ return `was killed with ${n2} (${o2})`;
357
+ }
358
+ if (i2 !== void 0) {
359
+ return `failed with exit code ${i2}`;
360
+ }
361
+ return "failed";
362
+ };
363
+ const i = ({
364
+ stdout: e3,
365
+ stderr: t3,
366
+ all: r2,
367
+ error: i2,
368
+ signal: s,
369
+ exitCode: a,
370
+ command: c,
371
+ timedOut: u,
372
+ isCanceled: d,
373
+ killed: l,
374
+ parsed: {
375
+ options: { timeout: f }
376
+ }
377
+ }) => {
378
+ a = a === null ? void 0 : a;
379
+ s = s === null ? void 0 : s;
380
+ const p = s === void 0 ? void 0 : n[s].description;
381
+ const m = i2 && i2.code;
382
+ const x = o({
383
+ timedOut: u,
384
+ timeout: f,
385
+ errorCode: m,
386
+ signal: s,
387
+ signalDescription: p,
388
+ exitCode: a,
389
+ isCanceled: d
390
+ });
391
+ const b = `Command ${x}: ${c}`;
392
+ const g = Object.prototype.toString.call(i2) === "[object Error]";
393
+ const v = g ? `${b}
394
+ ${i2.message}` : b;
395
+ const y = [v, t3, e3].filter(Boolean).join("\n");
396
+ if (g) {
397
+ i2.originalMessage = i2.message;
398
+ i2.message = y;
399
+ } else {
400
+ i2 = new Error(y);
401
+ }
402
+ i2.shortMessage = v;
403
+ i2.command = c;
404
+ i2.exitCode = a;
405
+ i2.signal = s;
406
+ i2.signalDescription = p;
407
+ i2.stdout = e3;
408
+ i2.stderr = t3;
409
+ if (r2 !== void 0) {
410
+ i2.all = r2;
411
+ }
412
+ if ("bufferedData" in i2) {
413
+ delete i2.bufferedData;
414
+ }
415
+ i2.failed = true;
416
+ i2.timedOut = Boolean(u);
417
+ i2.isCanceled = d;
418
+ i2.killed = l && !u;
419
+ return i2;
420
+ };
421
+ e2.exports = i;
422
+ },
423
+ 819: (e2, t2, r) => {
424
+ "use strict";
425
+ const n = r(87);
426
+ const o = r(931);
427
+ const i = 1e3 * 5;
428
+ const s = (e3, t3 = "SIGTERM", r2 = {}) => {
429
+ const n2 = e3(t3);
430
+ a(e3, t3, r2, n2);
431
+ return n2;
432
+ };
433
+ const a = (e3, t3, r2, n2) => {
434
+ if (!c(t3, r2, n2)) {
435
+ return;
436
+ }
437
+ const o2 = d(r2);
438
+ const i2 = setTimeout(() => {
439
+ e3("SIGKILL");
440
+ }, o2);
441
+ if (i2.unref) {
442
+ i2.unref();
443
+ }
444
+ };
445
+ const c = (e3, { forceKillAfterTimeout: t3 }, r2) => {
446
+ return u(e3) && t3 !== false && r2;
447
+ };
448
+ const u = (e3) => {
449
+ return e3 === n.constants.signals.SIGTERM || typeof e3 === "string" && e3.toUpperCase() === "SIGTERM";
450
+ };
451
+ const d = ({ forceKillAfterTimeout: e3 = true }) => {
452
+ if (e3 === true) {
453
+ return i;
454
+ }
455
+ if (!Number.isFinite(e3) || e3 < 0) {
456
+ throw new TypeError(
457
+ `Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e3}\` (${typeof e3})`
458
+ );
459
+ }
460
+ return e3;
461
+ };
462
+ const l = (e3, t3) => {
463
+ const r2 = e3.kill();
464
+ if (r2) {
465
+ t3.isCanceled = true;
466
+ }
467
+ };
468
+ const f = (e3, t3, r2) => {
469
+ e3.kill(t3);
470
+ r2(Object.assign(new Error("Timed out"), { timedOut: true, signal: t3 }));
471
+ };
472
+ const p = (e3, { timeout: t3, killSignal: r2 = "SIGTERM" }, n2) => {
473
+ if (t3 === 0 || t3 === void 0) {
474
+ return n2;
475
+ }
476
+ if (!Number.isFinite(t3) || t3 < 0) {
477
+ throw new TypeError(
478
+ `Expected the \`timeout\` option to be a non-negative integer, got \`${t3}\` (${typeof t3})`
479
+ );
480
+ }
481
+ let o2;
482
+ const i2 = new Promise((n3, i3) => {
483
+ o2 = setTimeout(() => {
484
+ f(e3, r2, i3);
485
+ }, t3);
486
+ });
487
+ const s2 = n2.finally(() => {
488
+ clearTimeout(o2);
489
+ });
490
+ return Promise.race([i2, s2]);
491
+ };
492
+ const m = async (e3, { cleanup: t3, detached: r2 }, n2) => {
493
+ if (!t3 || r2) {
494
+ return n2;
495
+ }
496
+ const i2 = o(() => {
497
+ e3.kill();
498
+ });
499
+ return n2.finally(() => {
500
+ i2();
501
+ });
502
+ };
503
+ e2.exports = { spawnedKill: s, spawnedCancel: l, setupTimeout: p, setExitHandler: m };
504
+ },
505
+ 814: (e2) => {
506
+ "use strict";
507
+ const t2 = (async () => {
508
+ })().constructor.prototype;
509
+ const r = ["then", "catch", "finally"].map((e3) => [
510
+ e3,
511
+ Reflect.getOwnPropertyDescriptor(t2, e3)
512
+ ]);
513
+ const n = (e3, t3) => {
514
+ for (const [n2, o2] of r) {
515
+ const r2 = typeof t3 === "function" ? (...e4) => Reflect.apply(o2.value, t3(), e4) : o2.value.bind(t3);
516
+ Reflect.defineProperty(e3, n2, { ...o2, value: r2 });
517
+ }
518
+ return e3;
519
+ };
520
+ const o = (e3) => {
521
+ return new Promise((t3, r2) => {
522
+ e3.on("exit", (e4, r3) => {
523
+ t3({ exitCode: e4, signal: r3 });
524
+ });
525
+ e3.on("error", (e4) => {
526
+ r2(e4);
527
+ });
528
+ if (e3.stdin) {
529
+ e3.stdin.on("error", (e4) => {
530
+ r2(e4);
531
+ });
532
+ }
533
+ });
534
+ };
535
+ e2.exports = { mergePromise: n, getSpawnedPromise: o };
536
+ },
537
+ 166: (e2) => {
538
+ "use strict";
539
+ const t2 = ["stdin", "stdout", "stderr"];
540
+ const r = (e3) => t2.some((t3) => e3[t3] !== void 0);
541
+ const n = (e3) => {
542
+ if (!e3) {
543
+ return;
544
+ }
545
+ const { stdio: n2 } = e3;
546
+ if (n2 === void 0) {
547
+ return t2.map((t3) => e3[t3]);
548
+ }
549
+ if (r(e3)) {
550
+ throw new Error(
551
+ `It's not possible to provide \`stdio\` in combination with one of ${t2.map((e4) => `\`${e4}\``).join(", ")}`
552
+ );
553
+ }
554
+ if (typeof n2 === "string") {
555
+ return n2;
556
+ }
557
+ if (!Array.isArray(n2)) {
558
+ throw new TypeError(
559
+ `Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof n2}\``
560
+ );
561
+ }
562
+ const o = Math.max(n2.length, t2.length);
563
+ return Array.from({ length: o }, (e4, t3) => n2[t3]);
564
+ };
565
+ e2.exports = n;
566
+ e2.exports.node = (e3) => {
567
+ const t3 = n(e3);
568
+ if (t3 === "ipc") {
569
+ return "ipc";
570
+ }
571
+ if (t3 === void 0 || typeof t3 === "string") {
572
+ return [t3, t3, t3, "ipc"];
573
+ }
574
+ if (t3.includes("ipc")) {
575
+ return t3;
576
+ }
577
+ return [...t3, "ipc"];
578
+ };
579
+ },
580
+ 592: (e2, t2, r) => {
581
+ "use strict";
582
+ const n = r(554);
583
+ const o = r(766);
584
+ const i = r(583);
585
+ const s = (e3, t3) => {
586
+ if (t3 === void 0 || e3.stdin === void 0) {
587
+ return;
588
+ }
589
+ if (n(t3)) {
590
+ t3.pipe(e3.stdin);
591
+ } else {
592
+ e3.stdin.end(t3);
593
+ }
594
+ };
595
+ const a = (e3, { all: t3 }) => {
596
+ if (!t3 || !e3.stdout && !e3.stderr) {
597
+ return;
598
+ }
599
+ const r2 = i();
600
+ if (e3.stdout) {
601
+ r2.add(e3.stdout);
602
+ }
603
+ if (e3.stderr) {
604
+ r2.add(e3.stderr);
605
+ }
606
+ return r2;
607
+ };
608
+ const c = async (e3, t3) => {
609
+ if (!e3) {
610
+ return;
611
+ }
612
+ e3.destroy();
613
+ try {
614
+ return await t3;
615
+ } catch (e4) {
616
+ return e4.bufferedData;
617
+ }
618
+ };
619
+ const u = (e3, { encoding: t3, buffer: r2, maxBuffer: n2 }) => {
620
+ if (!e3 || !r2) {
621
+ return;
622
+ }
623
+ if (t3) {
624
+ return o(e3, { encoding: t3, maxBuffer: n2 });
625
+ }
626
+ return o.buffer(e3, { maxBuffer: n2 });
627
+ };
628
+ const d = async ({ stdout: e3, stderr: t3, all: r2 }, { encoding: n2, buffer: o2, maxBuffer: i2 }, s2) => {
629
+ const a2 = u(e3, { encoding: n2, buffer: o2, maxBuffer: i2 });
630
+ const d2 = u(t3, { encoding: n2, buffer: o2, maxBuffer: i2 });
631
+ const l2 = u(r2, { encoding: n2, buffer: o2, maxBuffer: i2 * 2 });
632
+ try {
633
+ return await Promise.all([s2, a2, d2, l2]);
634
+ } catch (n3) {
635
+ return Promise.all([
636
+ { error: n3, signal: n3.signal, timedOut: n3.timedOut },
637
+ c(e3, a2),
638
+ c(t3, d2),
639
+ c(r2, l2)
640
+ ]);
641
+ }
642
+ };
643
+ const l = ({ input: e3 }) => {
644
+ if (n(e3)) {
645
+ throw new TypeError("The `input` option cannot be a stream in sync mode");
646
+ }
647
+ };
648
+ e2.exports = { handleInput: s, makeAllStream: a, getSpawnedResult: d, validateInputSync: l };
649
+ },
650
+ 585: (e2, t2, r) => {
651
+ "use strict";
652
+ const { PassThrough: n } = r(413);
653
+ e2.exports = (e3) => {
654
+ e3 = { ...e3 };
655
+ const { array: t3 } = e3;
656
+ let { encoding: r2 } = e3;
657
+ const o = r2 === "buffer";
658
+ let i = false;
659
+ if (t3) {
660
+ i = !(r2 || o);
661
+ } else {
662
+ r2 = r2 || "utf8";
663
+ }
664
+ if (o) {
665
+ r2 = null;
666
+ }
667
+ const s = new n({ objectMode: i });
668
+ if (r2) {
669
+ s.setEncoding(r2);
670
+ }
671
+ let a = 0;
672
+ const c = [];
673
+ s.on("data", (e4) => {
674
+ c.push(e4);
675
+ if (i) {
676
+ a = c.length;
677
+ } else {
678
+ a += e4.length;
679
+ }
680
+ });
681
+ s.getBufferedValue = () => {
682
+ if (t3) {
683
+ return c;
684
+ }
685
+ return o ? Buffer.concat(c, a) : c.join("");
686
+ };
687
+ s.getBufferedLength = () => a;
688
+ return s;
689
+ };
690
+ },
691
+ 766: (e2, t2, r) => {
692
+ "use strict";
693
+ const { constants: n } = r(293);
694
+ const o = r(341);
695
+ const i = r(585);
696
+ class MaxBufferError extends Error {
697
+ constructor() {
698
+ super("maxBuffer exceeded");
699
+ this.name = "MaxBufferError";
700
+ }
701
+ }
702
+ async function getStream(e3, t3) {
703
+ if (!e3) {
704
+ return Promise.reject(new Error("Expected a stream"));
705
+ }
706
+ t3 = { maxBuffer: Infinity, ...t3 };
707
+ const { maxBuffer: r2 } = t3;
708
+ let s;
709
+ await new Promise((a, c) => {
710
+ const u = (e4) => {
711
+ if (e4 && s.getBufferedLength() <= n.MAX_LENGTH) {
712
+ e4.bufferedData = s.getBufferedValue();
713
+ }
714
+ c(e4);
715
+ };
716
+ s = o(e3, i(t3), (e4) => {
717
+ if (e4) {
718
+ u(e4);
719
+ return;
720
+ }
721
+ a();
722
+ });
723
+ s.on("data", () => {
724
+ if (s.getBufferedLength() > r2) {
725
+ u(new MaxBufferError());
726
+ }
727
+ });
728
+ });
729
+ return s.getBufferedValue();
730
+ }
731
+ e2.exports = getStream;
732
+ e2.exports.default = getStream;
733
+ e2.exports.buffer = (e3, t3) => getStream(e3, { ...t3, encoding: "buffer" });
734
+ e2.exports.array = (e3, t3) => getStream(e3, { ...t3, array: true });
735
+ e2.exports.MaxBufferError = MaxBufferError;
736
+ },
737
+ 887: (e2, t2) => {
738
+ "use strict";
739
+ Object.defineProperty(t2, "__esModule", { value: true });
740
+ t2.SIGNALS = void 0;
741
+ const r = [
742
+ {
743
+ name: "SIGHUP",
744
+ number: 1,
745
+ action: "terminate",
746
+ description: "Terminal closed",
747
+ standard: "posix"
748
+ },
749
+ {
750
+ name: "SIGINT",
751
+ number: 2,
752
+ action: "terminate",
753
+ description: "User interruption with CTRL-C",
754
+ standard: "ansi"
755
+ },
756
+ {
757
+ name: "SIGQUIT",
758
+ number: 3,
759
+ action: "core",
760
+ description: "User interruption with CTRL-\\",
761
+ standard: "posix"
762
+ },
763
+ {
764
+ name: "SIGILL",
765
+ number: 4,
766
+ action: "core",
767
+ description: "Invalid machine instruction",
768
+ standard: "ansi"
769
+ },
770
+ {
771
+ name: "SIGTRAP",
772
+ number: 5,
773
+ action: "core",
774
+ description: "Debugger breakpoint",
775
+ standard: "posix"
776
+ },
777
+ { name: "SIGABRT", number: 6, action: "core", description: "Aborted", standard: "ansi" },
778
+ { name: "SIGIOT", number: 6, action: "core", description: "Aborted", standard: "bsd" },
779
+ {
780
+ name: "SIGBUS",
781
+ number: 7,
782
+ action: "core",
783
+ description: "Bus error due to misaligned, non-existing address or paging error",
784
+ standard: "bsd"
785
+ },
786
+ {
787
+ name: "SIGEMT",
788
+ number: 7,
789
+ action: "terminate",
790
+ description: "Command should be emulated but is not implemented",
791
+ standard: "other"
792
+ },
793
+ {
794
+ name: "SIGFPE",
795
+ number: 8,
796
+ action: "core",
797
+ description: "Floating point arithmetic error",
798
+ standard: "ansi"
799
+ },
800
+ {
801
+ name: "SIGKILL",
802
+ number: 9,
803
+ action: "terminate",
804
+ description: "Forced termination",
805
+ standard: "posix",
806
+ forced: true
807
+ },
808
+ {
809
+ name: "SIGUSR1",
810
+ number: 10,
811
+ action: "terminate",
812
+ description: "Application-specific signal",
813
+ standard: "posix"
814
+ },
815
+ {
816
+ name: "SIGSEGV",
817
+ number: 11,
818
+ action: "core",
819
+ description: "Segmentation fault",
820
+ standard: "ansi"
821
+ },
822
+ {
823
+ name: "SIGUSR2",
824
+ number: 12,
825
+ action: "terminate",
826
+ description: "Application-specific signal",
827
+ standard: "posix"
828
+ },
829
+ {
830
+ name: "SIGPIPE",
831
+ number: 13,
832
+ action: "terminate",
833
+ description: "Broken pipe or socket",
834
+ standard: "posix"
835
+ },
836
+ {
837
+ name: "SIGALRM",
838
+ number: 14,
839
+ action: "terminate",
840
+ description: "Timeout or timer",
841
+ standard: "posix"
842
+ },
843
+ {
844
+ name: "SIGTERM",
845
+ number: 15,
846
+ action: "terminate",
847
+ description: "Termination",
848
+ standard: "ansi"
849
+ },
850
+ {
851
+ name: "SIGSTKFLT",
852
+ number: 16,
853
+ action: "terminate",
854
+ description: "Stack is empty or overflowed",
855
+ standard: "other"
856
+ },
857
+ {
858
+ name: "SIGCHLD",
859
+ number: 17,
860
+ action: "ignore",
861
+ description: "Child process terminated, paused or unpaused",
862
+ standard: "posix"
863
+ },
864
+ {
865
+ name: "SIGCLD",
866
+ number: 17,
867
+ action: "ignore",
868
+ description: "Child process terminated, paused or unpaused",
869
+ standard: "other"
870
+ },
871
+ {
872
+ name: "SIGCONT",
873
+ number: 18,
874
+ action: "unpause",
875
+ description: "Unpaused",
876
+ standard: "posix",
877
+ forced: true
878
+ },
879
+ {
880
+ name: "SIGSTOP",
881
+ number: 19,
882
+ action: "pause",
883
+ description: "Paused",
884
+ standard: "posix",
885
+ forced: true
886
+ },
887
+ {
888
+ name: "SIGTSTP",
889
+ number: 20,
890
+ action: "pause",
891
+ description: 'Paused using CTRL-Z or "suspend"',
892
+ standard: "posix"
893
+ },
894
+ {
895
+ name: "SIGTTIN",
896
+ number: 21,
897
+ action: "pause",
898
+ description: "Background process cannot read terminal input",
899
+ standard: "posix"
900
+ },
901
+ {
902
+ name: "SIGBREAK",
903
+ number: 21,
904
+ action: "terminate",
905
+ description: "User interruption with CTRL-BREAK",
906
+ standard: "other"
907
+ },
908
+ {
909
+ name: "SIGTTOU",
910
+ number: 22,
911
+ action: "pause",
912
+ description: "Background process cannot write to terminal output",
913
+ standard: "posix"
914
+ },
915
+ {
916
+ name: "SIGURG",
917
+ number: 23,
918
+ action: "ignore",
919
+ description: "Socket received out-of-band data",
920
+ standard: "bsd"
921
+ },
922
+ {
923
+ name: "SIGXCPU",
924
+ number: 24,
925
+ action: "core",
926
+ description: "Process timed out",
927
+ standard: "bsd"
928
+ },
929
+ {
930
+ name: "SIGXFSZ",
931
+ number: 25,
932
+ action: "core",
933
+ description: "File too big",
934
+ standard: "bsd"
935
+ },
936
+ {
937
+ name: "SIGVTALRM",
938
+ number: 26,
939
+ action: "terminate",
940
+ description: "Timeout or timer",
941
+ standard: "bsd"
942
+ },
943
+ {
944
+ name: "SIGPROF",
945
+ number: 27,
946
+ action: "terminate",
947
+ description: "Timeout or timer",
948
+ standard: "bsd"
949
+ },
950
+ {
951
+ name: "SIGWINCH",
952
+ number: 28,
953
+ action: "ignore",
954
+ description: "Terminal window size changed",
955
+ standard: "bsd"
956
+ },
957
+ {
958
+ name: "SIGIO",
959
+ number: 29,
960
+ action: "terminate",
961
+ description: "I/O is available",
962
+ standard: "other"
963
+ },
964
+ {
965
+ name: "SIGPOLL",
966
+ number: 29,
967
+ action: "terminate",
968
+ description: "Watched event",
969
+ standard: "other"
970
+ },
971
+ {
972
+ name: "SIGINFO",
973
+ number: 29,
974
+ action: "ignore",
975
+ description: "Request for process information",
976
+ standard: "other"
977
+ },
978
+ {
979
+ name: "SIGPWR",
980
+ number: 30,
981
+ action: "terminate",
982
+ description: "Device running out of power",
983
+ standard: "systemv"
984
+ },
985
+ {
986
+ name: "SIGSYS",
987
+ number: 31,
988
+ action: "core",
989
+ description: "Invalid system call",
990
+ standard: "other"
991
+ },
992
+ {
993
+ name: "SIGUNUSED",
994
+ number: 31,
995
+ action: "terminate",
996
+ description: "Invalid system call",
997
+ standard: "other"
998
+ }
999
+ ];
1000
+ t2.SIGNALS = r;
1001
+ },
1002
+ 779: (e2, t2, r) => {
1003
+ "use strict";
1004
+ Object.defineProperty(t2, "__esModule", { value: true });
1005
+ t2.signalsByNumber = t2.signalsByName = void 0;
1006
+ var n = r(87);
1007
+ var o = r(435);
1008
+ var i = r(295);
1009
+ const s = function() {
1010
+ const e3 = (0, o.getSignals)();
1011
+ return e3.reduce(a, {});
1012
+ };
1013
+ const a = function(e3, { name: t3, number: r2, description: n2, supported: o2, action: i2, forced: s2, standard: a2 }) {
1014
+ return {
1015
+ ...e3,
1016
+ [t3]: {
1017
+ name: t3,
1018
+ number: r2,
1019
+ description: n2,
1020
+ supported: o2,
1021
+ action: i2,
1022
+ forced: s2,
1023
+ standard: a2
1024
+ }
1025
+ };
1026
+ };
1027
+ const c = s();
1028
+ t2.signalsByName = c;
1029
+ const u = function() {
1030
+ const e3 = (0, o.getSignals)();
1031
+ const t3 = i.SIGRTMAX + 1;
1032
+ const r2 = Array.from({ length: t3 }, (t4, r3) => d(r3, e3));
1033
+ return Object.assign({}, ...r2);
1034
+ };
1035
+ const d = function(e3, t3) {
1036
+ const r2 = l(e3, t3);
1037
+ if (r2 === void 0) {
1038
+ return {};
1039
+ }
1040
+ const { name: n2, description: o2, supported: i2, action: s2, forced: a2, standard: c2 } = r2;
1041
+ return {
1042
+ [e3]: {
1043
+ name: n2,
1044
+ number: e3,
1045
+ description: o2,
1046
+ supported: i2,
1047
+ action: s2,
1048
+ forced: a2,
1049
+ standard: c2
1050
+ }
1051
+ };
1052
+ };
1053
+ const l = function(e3, t3) {
1054
+ const r2 = t3.find(({ name: t4 }) => n.constants.signals[t4] === e3);
1055
+ if (r2 !== void 0) {
1056
+ return r2;
1057
+ }
1058
+ return t3.find((t4) => t4.number === e3);
1059
+ };
1060
+ const f = u();
1061
+ t2.signalsByNumber = f;
1062
+ },
1063
+ 295: (e2, t2) => {
1064
+ "use strict";
1065
+ Object.defineProperty(t2, "__esModule", { value: true });
1066
+ t2.SIGRTMAX = t2.getRealtimeSignals = void 0;
1067
+ const r = function() {
1068
+ const e3 = i - o + 1;
1069
+ return Array.from({ length: e3 }, n);
1070
+ };
1071
+ t2.getRealtimeSignals = r;
1072
+ const n = function(e3, t3) {
1073
+ return {
1074
+ name: `SIGRT${t3 + 1}`,
1075
+ number: o + t3,
1076
+ action: "terminate",
1077
+ description: "Application-specific signal (realtime)",
1078
+ standard: "posix"
1079
+ };
1080
+ };
1081
+ const o = 34;
1082
+ const i = 64;
1083
+ t2.SIGRTMAX = i;
1084
+ },
1085
+ 435: (e2, t2, r) => {
1086
+ "use strict";
1087
+ Object.defineProperty(t2, "__esModule", { value: true });
1088
+ t2.getSignals = void 0;
1089
+ var n = r(87);
1090
+ var o = r(887);
1091
+ var i = r(295);
1092
+ const s = function() {
1093
+ const e3 = (0, i.getRealtimeSignals)();
1094
+ const t3 = [...o.SIGNALS, ...e3].map(a);
1095
+ return t3;
1096
+ };
1097
+ t2.getSignals = s;
1098
+ const a = function({
1099
+ name: e3,
1100
+ number: t3,
1101
+ description: r2,
1102
+ action: o2,
1103
+ forced: i2 = false,
1104
+ standard: s2
1105
+ }) {
1106
+ const {
1107
+ signals: { [e3]: a2 }
1108
+ } = n.constants;
1109
+ const c = a2 !== void 0;
1110
+ const u = c ? a2 : t3;
1111
+ return {
1112
+ name: e3,
1113
+ number: u,
1114
+ description: r2,
1115
+ supported: c,
1116
+ action: o2,
1117
+ forced: i2,
1118
+ standard: s2
1119
+ };
1120
+ };
1121
+ },
1122
+ 554: (e2) => {
1123
+ "use strict";
1124
+ const t2 = (e3) => e3 !== null && typeof e3 === "object" && typeof e3.pipe === "function";
1125
+ t2.writable = (e3) => t2(e3) && e3.writable !== false && typeof e3._write === "function" && typeof e3._writableState === "object";
1126
+ t2.readable = (e3) => t2(e3) && e3.readable !== false && typeof e3._read === "function" && typeof e3._readableState === "object";
1127
+ t2.duplex = (e3) => t2.writable(e3) && t2.readable(e3);
1128
+ t2.transform = (e3) => t2.duplex(e3) && typeof e3._transform === "function" && typeof e3._transformState === "object";
1129
+ e2.exports = t2;
1130
+ },
1131
+ 47: (e2) => {
1132
+ "use strict";
1133
+ const t2 = (e3, t3) => {
1134
+ for (const r of Reflect.ownKeys(t3)) {
1135
+ Object.defineProperty(e3, r, Object.getOwnPropertyDescriptor(t3, r));
1136
+ }
1137
+ return e3;
1138
+ };
1139
+ e2.exports = t2;
1140
+ e2.exports.default = t2;
1141
+ },
1142
+ 502: (e2, t2, r) => {
1143
+ "use strict";
1144
+ const n = r(622);
1145
+ const o = r(278);
1146
+ const i = (e3) => {
1147
+ e3 = { cwd: process.cwd(), path: process.env[o()], execPath: process.execPath, ...e3 };
1148
+ let t3;
1149
+ let r2 = n.resolve(e3.cwd);
1150
+ const i2 = [];
1151
+ while (t3 !== r2) {
1152
+ i2.push(n.join(r2, "node_modules/.bin"));
1153
+ t3 = r2;
1154
+ r2 = n.resolve(r2, "..");
1155
+ }
1156
+ const s = n.resolve(e3.cwd, e3.execPath, "..");
1157
+ i2.push(s);
1158
+ return i2.concat(e3.path).join(n.delimiter);
1159
+ };
1160
+ e2.exports = i;
1161
+ e2.exports.default = i;
1162
+ e2.exports.env = (t3) => {
1163
+ t3 = { env: process.env, ...t3 };
1164
+ const r2 = { ...t3.env };
1165
+ const n2 = o({ env: r2 });
1166
+ t3.path = r2[n2];
1167
+ r2[n2] = e2.exports(t3);
1168
+ return r2;
1169
+ };
1170
+ },
1171
+ 278: (e2) => {
1172
+ "use strict";
1173
+ const t2 = (e3 = {}) => {
1174
+ const t3 = e3.env || process.env;
1175
+ const r = e3.platform || process.platform;
1176
+ if (r !== "win32") {
1177
+ return "PATH";
1178
+ }
1179
+ return Object.keys(t3).reverse().find((e4) => e4.toUpperCase() === "PATH") || "Path";
1180
+ };
1181
+ e2.exports = t2;
1182
+ e2.exports.default = t2;
1183
+ },
1184
+ 223: (e2, t2, r) => {
1185
+ var n = r(940);
1186
+ e2.exports = n(once);
1187
+ e2.exports.strict = n(onceStrict);
1188
+ once.proto = once(function() {
1189
+ Object.defineProperty(Function.prototype, "once", {
1190
+ value: function() {
1191
+ return once(this);
1192
+ },
1193
+ configurable: true
1194
+ });
1195
+ Object.defineProperty(Function.prototype, "onceStrict", {
1196
+ value: function() {
1197
+ return onceStrict(this);
1198
+ },
1199
+ configurable: true
1200
+ });
1201
+ });
1202
+ function once(e3) {
1203
+ var t3 = function() {
1204
+ if (t3.called)
1205
+ return t3.value;
1206
+ t3.called = true;
1207
+ return t3.value = e3.apply(this, arguments);
1208
+ };
1209
+ t3.called = false;
1210
+ return t3;
1211
+ }
1212
+ function onceStrict(e3) {
1213
+ var t3 = function() {
1214
+ if (t3.called)
1215
+ throw new Error(t3.onceError);
1216
+ t3.called = true;
1217
+ return t3.value = e3.apply(this, arguments);
1218
+ };
1219
+ var r2 = e3.name || "Function wrapped with `once`";
1220
+ t3.onceError = r2 + " shouldn't be called more than once";
1221
+ t3.called = false;
1222
+ return t3;
1223
+ }
1224
+ },
1225
+ 82: (e2, t2, r) => {
1226
+ "use strict";
1227
+ const n = r(47);
1228
+ const o = /* @__PURE__ */ new WeakMap();
1229
+ const i = (e3, t3 = {}) => {
1230
+ if (typeof e3 !== "function") {
1231
+ throw new TypeError("Expected a function");
1232
+ }
1233
+ let r2;
1234
+ let i2 = 0;
1235
+ const s = e3.displayName || e3.name || "<anonymous>";
1236
+ const a = function(...n2) {
1237
+ o.set(a, ++i2);
1238
+ if (i2 === 1) {
1239
+ r2 = e3.apply(this, n2);
1240
+ e3 = null;
1241
+ } else if (t3.throw === true) {
1242
+ throw new Error(`Function \`${s}\` can only be called once`);
1243
+ }
1244
+ return r2;
1245
+ };
1246
+ n(a, e3);
1247
+ o.set(a, i2);
1248
+ return a;
1249
+ };
1250
+ e2.exports = i;
1251
+ e2.exports.default = i;
1252
+ e2.exports.callCount = (e3) => {
1253
+ if (!o.has(e3)) {
1254
+ throw new Error(
1255
+ `The given function \`${e3.name}\` is not wrapped by the \`onetime\` package`
1256
+ );
1257
+ }
1258
+ return o.get(e3);
1259
+ };
1260
+ },
1261
+ 341: (e2, t2, r) => {
1262
+ var n = r(223);
1263
+ var o = r(205);
1264
+ var i = r(747);
1265
+ var s = function() {
1266
+ };
1267
+ var a = /^v?\.0/.test(process.version);
1268
+ var c = function(e3) {
1269
+ return typeof e3 === "function";
1270
+ };
1271
+ var u = function(e3) {
1272
+ if (!a)
1273
+ return false;
1274
+ if (!i)
1275
+ return false;
1276
+ return (e3 instanceof (i.ReadStream || s) || e3 instanceof (i.WriteStream || s)) && c(e3.close);
1277
+ };
1278
+ var d = function(e3) {
1279
+ return e3.setHeader && c(e3.abort);
1280
+ };
1281
+ var l = function(e3, t3, r2, i2) {
1282
+ i2 = n(i2);
1283
+ var a2 = false;
1284
+ e3.on("close", function() {
1285
+ a2 = true;
1286
+ });
1287
+ o(e3, { readable: t3, writable: r2 }, function(e4) {
1288
+ if (e4)
1289
+ return i2(e4);
1290
+ a2 = true;
1291
+ i2();
1292
+ });
1293
+ var l2 = false;
1294
+ return function(t4) {
1295
+ if (a2)
1296
+ return;
1297
+ if (l2)
1298
+ return;
1299
+ l2 = true;
1300
+ if (u(e3))
1301
+ return e3.close(s);
1302
+ if (d(e3))
1303
+ return e3.abort();
1304
+ if (c(e3.destroy))
1305
+ return e3.destroy();
1306
+ i2(t4 || new Error("stream was destroyed"));
1307
+ };
1308
+ };
1309
+ var f = function(e3) {
1310
+ e3();
1311
+ };
1312
+ var p = function(e3, t3) {
1313
+ return e3.pipe(t3);
1314
+ };
1315
+ var m = function() {
1316
+ var e3 = Array.prototype.slice.call(arguments);
1317
+ var t3 = c(e3[e3.length - 1] || s) && e3.pop() || s;
1318
+ if (Array.isArray(e3[0]))
1319
+ e3 = e3[0];
1320
+ if (e3.length < 2)
1321
+ throw new Error("pump requires two streams per minimum");
1322
+ var r2;
1323
+ var n2 = e3.map(function(o2, i2) {
1324
+ var s2 = i2 < e3.length - 1;
1325
+ var a2 = i2 > 0;
1326
+ return l(o2, s2, a2, function(e4) {
1327
+ if (!r2)
1328
+ r2 = e4;
1329
+ if (e4)
1330
+ n2.forEach(f);
1331
+ if (s2)
1332
+ return;
1333
+ n2.forEach(f);
1334
+ t3(r2);
1335
+ });
1336
+ });
1337
+ return e3.reduce(p);
1338
+ };
1339
+ e2.exports = m;
1340
+ },
1341
+ 931: (e2, t2, r) => {
1342
+ var n = r(357);
1343
+ var o = r(710);
1344
+ var i = /^win/i.test(process.platform);
1345
+ var s = r(614);
1346
+ if (typeof s !== "function") {
1347
+ s = s.EventEmitter;
1348
+ }
1349
+ var a;
1350
+ if (process.__signal_exit_emitter__) {
1351
+ a = process.__signal_exit_emitter__;
1352
+ } else {
1353
+ a = process.__signal_exit_emitter__ = new s();
1354
+ a.count = 0;
1355
+ a.emitted = {};
1356
+ }
1357
+ if (!a.infinite) {
1358
+ a.setMaxListeners(Infinity);
1359
+ a.infinite = true;
1360
+ }
1361
+ e2.exports = function(e3, t3) {
1362
+ n.equal(typeof e3, "function", "a callback must be provided for exit handler");
1363
+ if (u === false) {
1364
+ load();
1365
+ }
1366
+ var r2 = "exit";
1367
+ if (t3 && t3.alwaysLast) {
1368
+ r2 = "afterexit";
1369
+ }
1370
+ var o2 = function() {
1371
+ a.removeListener(r2, e3);
1372
+ if (a.listeners("exit").length === 0 && a.listeners("afterexit").length === 0) {
1373
+ unload();
1374
+ }
1375
+ };
1376
+ a.on(r2, e3);
1377
+ return o2;
1378
+ };
1379
+ e2.exports.unload = unload;
1380
+ function unload() {
1381
+ if (!u) {
1382
+ return;
1383
+ }
1384
+ u = false;
1385
+ o.forEach(function(e3) {
1386
+ try {
1387
+ process.removeListener(e3, c[e3]);
1388
+ } catch (e4) {
1389
+ }
1390
+ });
1391
+ process.emit = l;
1392
+ process.reallyExit = d;
1393
+ a.count -= 1;
1394
+ }
1395
+ function emit(e3, t3, r2) {
1396
+ if (a.emitted[e3]) {
1397
+ return;
1398
+ }
1399
+ a.emitted[e3] = true;
1400
+ a.emit(e3, t3, r2);
1401
+ }
1402
+ var c = {};
1403
+ o.forEach(function(e3) {
1404
+ c[e3] = function listener() {
1405
+ var t3 = process.listeners(e3);
1406
+ if (t3.length === a.count) {
1407
+ unload();
1408
+ emit("exit", null, e3);
1409
+ emit("afterexit", null, e3);
1410
+ if (i && e3 === "SIGHUP") {
1411
+ e3 = "SIGINT";
1412
+ }
1413
+ process.kill(process.pid, e3);
1414
+ }
1415
+ };
1416
+ });
1417
+ e2.exports.signals = function() {
1418
+ return o;
1419
+ };
1420
+ e2.exports.load = load;
1421
+ var u = false;
1422
+ function load() {
1423
+ if (u) {
1424
+ return;
1425
+ }
1426
+ u = true;
1427
+ a.count += 1;
1428
+ o = o.filter(function(e3) {
1429
+ try {
1430
+ process.on(e3, c[e3]);
1431
+ return true;
1432
+ } catch (e4) {
1433
+ return false;
1434
+ }
1435
+ });
1436
+ process.emit = processEmit;
1437
+ process.reallyExit = processReallyExit;
1438
+ }
1439
+ var d = process.reallyExit;
1440
+ function processReallyExit(e3) {
1441
+ process.exitCode = e3 || 0;
1442
+ emit("exit", process.exitCode, null);
1443
+ emit("afterexit", process.exitCode, null);
1444
+ d.call(process, process.exitCode);
1445
+ }
1446
+ var l = process.emit;
1447
+ function processEmit(e3, t3) {
1448
+ if (e3 === "exit") {
1449
+ if (t3 !== void 0) {
1450
+ process.exitCode = t3;
1451
+ }
1452
+ var r2 = l.apply(this, arguments);
1453
+ emit("exit", process.exitCode, null);
1454
+ emit("afterexit", process.exitCode, null);
1455
+ return r2;
1456
+ } else {
1457
+ return l.apply(this, arguments);
1458
+ }
1459
+ }
1460
+ },
1461
+ 710: (e2) => {
1462
+ e2.exports = ["SIGABRT", "SIGALRM", "SIGHUP", "SIGINT", "SIGTERM"];
1463
+ if (process.platform !== "win32") {
1464
+ e2.exports.push(
1465
+ "SIGVTALRM",
1466
+ "SIGXCPU",
1467
+ "SIGXFSZ",
1468
+ "SIGUSR2",
1469
+ "SIGTRAP",
1470
+ "SIGSYS",
1471
+ "SIGQUIT",
1472
+ "SIGIOT"
1473
+ );
1474
+ }
1475
+ if (process.platform === "linux") {
1476
+ e2.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
1477
+ }
1478
+ },
1479
+ 174: (e2) => {
1480
+ "use strict";
1481
+ e2.exports = (e3) => {
1482
+ const t2 = typeof e3 === "string" ? "\n" : "\n".charCodeAt();
1483
+ const r = typeof e3 === "string" ? "\r" : "\r".charCodeAt();
1484
+ if (e3[e3.length - 1] === t2) {
1485
+ e3 = e3.slice(0, e3.length - 1);
1486
+ }
1487
+ if (e3[e3.length - 1] === r) {
1488
+ e3 = e3.slice(0, e3.length - 1);
1489
+ }
1490
+ return e3;
1491
+ };
1492
+ },
1493
+ 940: (e2) => {
1494
+ e2.exports = wrappy;
1495
+ function wrappy(e3, t2) {
1496
+ if (e3 && t2)
1497
+ return wrappy(e3)(t2);
1498
+ if (typeof e3 !== "function")
1499
+ throw new TypeError("need wrapper function");
1500
+ Object.keys(e3).forEach(function(t3) {
1501
+ wrapper[t3] = e3[t3];
1502
+ });
1503
+ return wrapper;
1504
+ function wrapper() {
1505
+ var t3 = new Array(arguments.length);
1506
+ for (var r = 0; r < t3.length; r++) {
1507
+ t3[r] = arguments[r];
1508
+ }
1509
+ var n = e3.apply(this, t3);
1510
+ var o = t3[t3.length - 1];
1511
+ if (typeof n === "function" && n !== o) {
1512
+ Object.keys(o).forEach(function(e4) {
1513
+ n[e4] = o[e4];
1514
+ });
1515
+ }
1516
+ return n;
1517
+ }
1518
+ }
1519
+ },
1520
+ 213: (e2) => {
1521
+ "use strict";
1522
+ e2.exports = require("../cross-spawn");
1523
+ },
1524
+ 583: (e2) => {
1525
+ "use strict";
1526
+ e2.exports = require("../merge-stream");
1527
+ },
1528
+ 357: (e2) => {
1529
+ "use strict";
1530
+ e2.exports = require("assert");
1531
+ },
1532
+ 293: (e2) => {
1533
+ "use strict";
1534
+ e2.exports = require("buffer");
1535
+ },
1536
+ 129: (e2) => {
1537
+ "use strict";
1538
+ e2.exports = require("child_process");
1539
+ },
1540
+ 614: (e2) => {
1541
+ "use strict";
1542
+ e2.exports = require("events");
1543
+ },
1544
+ 747: (e2) => {
1545
+ "use strict";
1546
+ e2.exports = require("fs");
1547
+ },
1548
+ 87: (e2) => {
1549
+ "use strict";
1550
+ e2.exports = require("os");
1551
+ },
1552
+ 622: (e2) => {
1553
+ "use strict";
1554
+ e2.exports = require("path");
1555
+ },
1556
+ 413: (e2) => {
1557
+ "use strict";
1558
+ e2.exports = require("stream");
1559
+ }
1560
+ };
1561
+ var t = {};
1562
+ function __nccwpck_require__(r) {
1563
+ if (t[r]) {
1564
+ return t[r].exports;
1565
+ }
1566
+ var n = t[r] = { exports: {} };
1567
+ var o = true;
1568
+ try {
1569
+ e[r](n, n.exports, __nccwpck_require__);
1570
+ o = false;
1571
+ } finally {
1572
+ if (o)
1573
+ delete t[r];
1574
+ }
1575
+ return n.exports;
1576
+ }
1577
+ __nccwpck_require__.ab = __dirname + "/";
1578
+ return __nccwpck_require__(447);
1579
+ })();